:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fbfcfe;
  --text: #18202b;
  --muted: #697586;

  --line: #e4e9f0;
  --line-strong: #d6dee9;
  --line-soft: #edf2f7;
  --row-border: #e7edf4;
  --header-line: #e7ecf3;

  --accent: #243041;
  --accent-soft: #f3f6fa;
  --accent-line: #dbe3ec;
  --accent-line-strong: #cfd8e3;
  --accent-text-soft: #243041;

  --sponsored: #fffdf8;
  --sponsored-line: #ecd9a3;

  --radius: 16px;
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.035);
  --container: 1180px;

  --expanded-bg: #fafbfd;

  --tab-border: #d6dee9;
  --tab-border-active: #dbe3ec;
  --tab-bg: #ffffff;
  --tab-bg-active: #f3f6fa;

  --mobile-trigger-bg: #ffffff;
  --mobile-trigger-border: #d6dee9;
  --mobile-trigger-text: #475467;
  --mobile-trigger-text-active: #243041;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

html,
body {
  overflow-y: auto;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: #243041;
  text-decoration: none;
}

a:hover {
  color: #18202b;
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(100%, 820px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  padding: 6px 0;
}

.brand-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand-name:hover {
  text-decoration: none;
}

.brand-logo-link,
.brand-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}

.brand-tagline,
.brand-subtitle {
  font-size: 0.875rem;
  color: #7a8699;
}

.burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
}

.burger:hover {
  background: #f8fafc;
  border-color: var(--line-strong);
}

.burger span {
  display: block;
  height: 2px;
  background: #243041;
  border-radius: 2px;
}

.main-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 16px;
  right: 16px;
  background: #ffffff;
  border: 1px solid var(--header-line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  padding: 12px;
  flex-direction: column;
  gap: 8px;
}

.main-nav.open {
  display: flex;
}

.nav-link,
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #243041;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.nav-link:hover,
.main-nav a:hover {
  background: #f7f9fc;
  border-color: #edf2f7;
  color: #18202b;
  text-decoration: none;
}

.nav-link.active,
.main-nav a.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-text-soft);
}

/* ========================================
   RATING TABS
   ======================================== */

.ratings-nav-section {
  background: #ffffff;
  border-bottom: 1px solid var(--header-line);
}

.ratings-tabs-wrap {
  position: relative;
  padding: 12px 0;
}

.ratings-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  width: 44px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 75%);
  pointer-events: none;
}

.ratings-tabs-wrap::before {
  content: "›";
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.ratings-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ratings-tabs::-webkit-scrollbar {
  display: none;
}

.rating-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: #243041;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.rating-tab:hover {
  background: #f7f9fc;
  border-color: var(--accent-line-strong);
  color: #18202b;
  text-decoration: none;
}

.rating-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-text-soft);
}

/* ========================================
   PAGE / HERO
   ======================================== */

.page-content,
.page-main {
  padding: 28px 0 56px;
}

.hero,
.page-intro {
  padding: 8px 0 12px;   /* было 8px 0 20px — уменьшаем нижний padding */
}

.page-title,
.content-title {
  margin: 0 0 12px;
  color: var(--text);
}

.page-title {
  font-size: 2.35rem;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.page-subtitle,
.page-description,
.table-description,
.table-card-description {
  margin: 0 0 8px;        /* было 0 0 14px — уменьшаем нижний margin */
  max-width: 760px;
  color: #526071;
}

.page-description > p:last-child {
  margin-bottom: 0;
}

.rating-meta,
.page-intro-meta {
  color: #7a8699;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.rating-meta {
  margin-top: 14px;
  gap: 8px;
}

.page-intro-meta {
  margin-bottom: 14px;
  gap: 8px 16px;
}

.meta-separator {
  color: #c7ced8;
}

/* ========================================
   SURFACE / CARD
   ======================================== */

.table-card,
.content-page .narrow {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.table-card {
  padding: 14px 16px;
  overflow: visible;
}

.content-page .narrow {
  padding: 28px;
}

.intro-split-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: 28px 32px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.intro-split-col {
  min-width: 0;
}

.intro-split-col > *:first-child {
  margin-top: 0;
}

.intro-split-col > *:last-child {
  margin-bottom: 0;
}

.intro-split-col-left p,
.intro-split-col-left li,
.intro-split-col-right p,
.intro-split-col-right li {
  color: #333a48;
}

.intro-split-col-right ul,
.intro-split-col-right ol {
  margin: 0;
  padding-left: 20px;
}

.intro-split-col-right li + li {
  margin-top: 8px;
}

.table-title,
.table-card-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #111827;
}

.table-search-wrap {
  position: relative;
  width: 100%;
}

.table-search-hint {
  margin: 8px 2px 0;
  color: #7a8699;
  font-size: 0.875rem;
  line-height: 1.4;
}

.table-search-icon {
  position: absolute;
  top: 13px;        /* (44px высота поля - 16px иконка) / 2 = 14, минус 1px визуальная коррекция */
  left: 14px;
  transform: none;  /* убираем translateY */
  width: 16px;
  height: 16px;
  color: #98a2b3;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.table-search-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.table-search {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid #d8e0eb;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
  outline: none;
  box-shadow: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.table-search::placeholder {
  color: #94a3b8;
}

.table-search:hover {
  border-color: #cfd8e3;
  background: #fcfdff;
}

.table-search:focus {
  border-color: #cfd8e3;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(36, 48, 65, 0.08);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 0;
  border-radius: 0;
}

/* ========================================
   DESKTOP TABLE
   ======================================== */

.desktop-rating {
  display: block;
}

.rating-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.4;
}

.table-card > .desktop-rating {
  overflow: hidden;
}

/* ========================================
   TABLE HEADER INNER
   ======================================== */

.th-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.th-inner svg {
  flex-shrink: 0;
  display: block;
}

/* ========================================
   ПЕРЕНОС ТЕКСТА В ЯЧЕЙКАХ ТАБЛИЦЫ
   ======================================== */

.rating-table td {
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.clients-text {
  display: block;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.5;
}

.specialization-text {
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.facts-cell {
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

/* ========================================
   КОЛОНКИ ТАБЛИЦЫ — ширины
   Сумма: 4% + 21% + 22% + 16% + 37% = 100%
   ======================================== */

.rating-table .col-rank {
  width: 4%;
}

.rating-table .col-company {
  width: 21%;
}

.rating-table .col-spec {
  width: 22%;
}

.rating-table .col-facts {
  width: 16%;
}

.rating-table .col-clients {
  width: 37%;
}

/* Homepage: без колонки rank, сумма = 100% */
.rating-table-homepage .col-company {
  width: 22%;
}

.rating-table-homepage .col-spec {
  width: 23%;
}

.rating-table-homepage .col-facts {
  width: 18%;
}

.rating-table-homepage .col-clients {
  width: 37%;
}


.rating-table th,
.rating-table td {
  padding: 10px 10px;
  text-align: left;
}

.rating-table th:first-child,
.rating-table td.rank-cell {
  padding-left: 6px;
  padding-right: 6px;
}

.rating-table th {
  position: sticky;
  top: -1px;
  z-index: 2;
  background: #f7f9fc;
  color: #748091;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
  box-shadow: inset 0 -1px 0 var(--line-strong);
  white-space: nowrap;
}

.rating-table td {
  border-bottom: 1px solid var(--row-border);
  vertical-align: top;
  color: #243041;
}

.rating-row:hover td,
.rating-row-sponsored:hover td,
.rating-row-adv:hover td {
  background: #fafcfe;
}

.rating-row.is-expanded td {
  border-bottom-color: transparent;
  background: #ffffff;
}

.rank-cell {
  width: 38px;
  text-align: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
  padding: 10px 4px 8px;
}

.rank-cell-sponsored,
.rank-cell-adv {
  padding-top: 10px;
}

.rank-favicon {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 4px;
  object-fit: cover;
  vertical-align: middle;
}

.company-cell {
  min-width: 0;
  position: relative;
  padding-bottom: 8px;
}

.company-cell-expandable {
  cursor: pointer;
}

.company-main {
  min-height: 34px;
}

.company-link,
.mobile-company-link,
.mobile-company-name {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(24, 32, 43, 0.2);
  text-underline-offset: 2px;
}

.company-link {
  font-size: 14px;
}

.mobile-company-link,
.mobile-company-name {
  font-size: 1rem;
}

.company-link:hover,
.mobile-company-link:hover {
  color: var(--text);
  text-decoration-color: rgba(24, 32, 43, 0.7);
  text-decoration-style: solid;
}

.company-link-with-favicon,
.mobile-company-with-favicon,
.rating-table-homepage .company-link-with-favicon,
.mobile-card-homepage .mobile-company-with-favicon,
.mobile-card-homepage .mobile-company-name.mobile-company-with-favicon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rating-table-homepage .company-link-with-favicon,
.mobile-card-homepage .mobile-company-with-favicon,
.mobile-card-homepage .mobile-company-name.mobile-company-with-favicon {
  gap: 10px;
}

.inline-favicon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 16px;
  display: inline-block;
}

.company-city,
.mobile-city {
  margin-top: 3px;
  color: #7a8699;
  line-height: 1.35;
}

.company-city {
  font-size: 11px;
}

.mobile-city {
  font-size: 0.84rem;
}

.company-city a,
.mobile-city a,
.company-city a:visited,
.mobile-city a:visited,
.company-highlight-link,
.mobile-city > a {
  color: #7f8aa3;
  text-decoration: none !important;
}

.company-city a:hover,
.mobile-city a:hover,
.company-city a:focus,
.mobile-city a:focus,
.company-highlight-link:hover,
.mobile-city > a:hover {
  color: #667085;
  text-decoration: none !important;
}

.specialization-text,
.facts-cell {
  color: #445164;
  font-size: 13px;
}

.facts-cell {
  line-height: 1.45;
}

.clients-cell,
.sponsored-cell-last {
  position: relative;
}

.clients-cell-inner {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  padding-bottom: 14px;
}

.clients-text {
  display: block;
}

/* ========================================
   DESKTOP ATTACHED TAB
   ======================================== */

.row-tab-anchor {
  display: flex;
  justify-content: flex-start;
  position: relative;
  margin-top: 6px;
  margin-bottom: -9px;
  z-index: 2;
}

.attached-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 23px;
  padding: 3px 9px 4px;
  border: 1px solid var(--line-strong);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  background: #ffffff;
  color: #667085;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.attached-tab:hover {
  background: #f7f9fc;
  border-color: var(--accent-line-strong);
  color: #344054;
}

.rating-row.is-expanded .attached-tab,
.company-cell-expandable.open .attached-tab {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-text-soft);
}

.attached-tab-inline {
  position: relative;
}

.attached-tab-label {
  white-space: nowrap;
}

.attached-tab-icon,
.inline-disclosure-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  transition: transform 0.2s ease;
}

.attached-tab-icon svg,
.inline-disclosure-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.rating-row.is-expanded .attached-tab-icon {
  transform: rotate(180deg);
}

/* ========================================
   EXPANDED ROW / CONTENT
   ======================================== */

.expanded-row {
  display: none;
}

.expanded-row.open {
  display: table-row;
}

.expanded-row td {
  position: relative;
  padding: 0;
  background: var(--expanded-bg);
  border-bottom: 1px solid var(--row-border);
  border-top: none;
}

.expanded-panel {
  position: static;
  padding: 18px;
}

.expanded-panel.has-ad-badge {
  padding-bottom: 36px;
}

.expanded-panel-desktop {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 24px;
}

.expanded-title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #7a8699;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.expanded-title.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #98a2b3;
  flex: 0 0 14px;
}

.section-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.expanded-pitch {
  margin: 0 0 10px;
  color: #223041;
  font-size: 14px;
  line-height: 1.5;
}

.expanded-industries-inline {
  color: #66758a;
  font-size: 13px;
  line-height: 1.45;
}

.expanded-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expanded-links a,
.contact-links-line a {
  color: #243041;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(36, 48, 65, 0.2);
  text-underline-offset: 2px;
}

.expanded-links a:hover,
.contact-links-line a:hover {
  color: #18202b;
  text-decoration-color: rgba(24, 32, 43, 0.7);
  text-decoration-style: solid;
}

.contact-links-line,
.contact-links-line-mobile {
  font-size: 13px;
}

.contact-links-line {
  line-height: 1.5;
}

.contact-links-line-mobile {
  line-height: 1.55;
}

.contact-links-line + .contact-links-line {
  margin-top: 8px;
}

.contact-links-line-secondary {
  color: #667085;
}

.mobile-expanded-panel .expanded-links a {
  display: block;
}

.mobile-expanded-panel .contact-links-line {
  line-height: 1.7;
}

.mobile-expanded-panel .expanded-pitch {
  margin-top: 2px;
}

.mobile-expanded-panel .expanded-industries-inline {
  margin-top: 8px;
}

.section-gap-top {
  margin-top: 16px;
}

.section-gap-top-contacts {
  margin-top: 22px;
}

/* ========================================
   TABLE FOOTER BUTTON
   ======================================== */

.rating-more {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.rating-more-button {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
  color: #243041;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rating-more-button:hover {
  background: #f7f9fc;
  border-color: var(--accent-line-strong);
  color: #18202b;
}

/* ========================================
   MOBILE CARDS
   ======================================== */

.mobile-cards {
  display: none;
}

.force-mobile-cards {
  max-width: 560px;
  margin: 0 auto;
}

.mobile-card,
.mobile-card-sponsored,
.mobile-card-expand,
.mobile-card-adv {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-top: 8px;   /* было 12px */
  overflow: hidden;
  transition: background 0.15s;
  box-shadow: none;
}

.mobile-card.open,
.mobile-card-sponsored.open {
  background: #ffffff;
}

.mobile-card-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mobile-card-header-homepage {
  display: block;
}

.mobile-card-header-sponsored {
  position: relative;
  padding-bottom: 18px;
}

.mobile-rank,
.mobile-rank-adv,
.mobile-rank-favicon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f4f7fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text);
}

.mobile-rank-favicon-img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

.mobile-header-main,
.mobile-company-block,
.mobile-card-homepage .mobile-header-main,
.mobile-card-sponsored .mobile-header-main {
  min-width: 0;
}

.mobile-card-homepage .mobile-header-main {
  width: 100%;
}

.mobile-specialization-row {
  margin-top: 8px;
}

.mobile-specialization {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #f9fbfd;
  color: #425066;
  font-size: 0.74rem;
  line-height: 1.2;
  word-break: break-word;
}

.mobile-meta-block {
  margin-top: 8px;
}

.mobile-meta-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #344054;
}

.mobile-clients {
  margin-top: 4px;
}

.mobile-clients .mobile-meta-text {
  color: var(--muted);
}

/* ========================================
   MOBILE DISCLOSURE BUTTON
   ======================================== */

.mobile-inline-disclosure-row {
  margin-top: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.mobile-inline-disclosure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px 6px 10px;
  border: 1px solid var(--mobile-trigger-border);
  border-radius: 10px;
  background: var(--mobile-trigger-bg);
  color: var(--mobile-trigger-text);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.mobile-inline-disclosure-row:hover .mobile-inline-disclosure {
  background: #f7f9fc;
  border-color: var(--accent-line-strong);
  color: #344054;
}

.mobile-inline-disclosure[aria-expanded="true"],
.mobile-card.open .mobile-inline-disclosure,
.mobile-inline-disclosure-row-expandable.open .mobile-inline-disclosure {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--mobile-trigger-text-active);
}

.mobile-inline-disclosure[aria-expanded="true"] .inline-disclosure-icon,
.mobile-inline-disclosure-row-expandable.open .inline-disclosure-icon,
.mobile-card.open .inline-disclosure-icon {
  transform: rotate(180deg);
}

.inline-disclosure-label {
  white-space: nowrap;
  letter-spacing: 0;
}

.mobile-expanded-panel {
  display: none;
  background: var(--expanded-bg);
  margin: 12px -14px -14px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 16px 16px;
}

.mobile-expanded-panel.open {
  display: block;
}

.mobile-industries-inline {
  margin-bottom: 0;
  font-size: 13px;
}

.mobile-card-expandable.open .mobile-card-header {
  margin-bottom: 0;
}

/* ========================================
   AD / SPONSORED / EXPAND CONTENT BLOCKS
   ======================================== */

.rating-row-sponsored td,
.rating-row-adv td {
  background: #ffffff;
}

.rank-cell-adv,
.mobile-rank-adv,
.rank-cell-sponsored,
.mobile-rank-favicon {
  color: #b08a33;
}

.mobile-card-adv {
  border-color: var(--line);
  background: var(--surface);
}

.mobile-card-sponsored {
  position: relative;
}

.mobile-card-sponsored .mobile-expanded-panel {
  background: var(--expanded-bg);
}

.mobile-card-sponsored .mobile-inline-disclosure-row {
  margin-bottom: 0;
}

.sponsored-row-inner,
.expand-row-inner {
  padding: 10px 0;
}

.sponsored-label,
.mobile-ad-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sponsored-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.sponsored-title,
.expand-title {
  font-weight: 700;
  color: #101828;
  text-decoration: none;
}

.expand-title {
  font-size: 1rem;
}

.sponsored-description,
.expand-description {
  margin-top: 6px;
  color: #667085;
  line-height: 1.5;
}

.expand-description {
  color: #475467;
  line-height: 1.6;
  margin-bottom: 14px;
}

.sponsored-erid,
.expand-erid,
.mobile-erid {
  font-size: 12px;
  color: #667085;
}

.sponsored-link {
  font-weight: 700;
}

.expand-link-wrap {
  margin-top: 10px;
}

.expand-link {
  color: #0f62fe;
  font-weight: 600;
  text-decoration: none;
}

.expand-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.expand-section + .expand-section {
  margin-top: 16px;
}

.expand-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #344054;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.expand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expand-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 13px;
}

.expand-links-list {
  margin: 0;
  padding-left: 18px;
}

.expand-links-list li + li {
  margin-top: 6px;
}

.expand-links-list a {
  color: #0f62fe;
  text-decoration: none;
}

.expand-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expand-link-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0f62fe;
  font-weight: 600;
  text-decoration: none;
}

.expand-link-chip.alt {
  background: #f4f4f5;
  color: #344054;
}

/* ========================================
   AD BADGE / TOOLTIP
   ======================================== */

.ad-note-desktop,
.ad-note-mobile,
.ad-badge {
  font-size: 11px;
  line-height: 1;
  color: #8c97a8;
  white-space: nowrap;
}

.ad-note-desktop {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.ad-note-mobile {
  flex: 0 0 auto;
  position: static;
  margin: 0 0 -1px 0;
  line-height: 1;
  align-self: flex-end;
}

.mobile-card-adv .mobile-header-main {
  display: flex;
  flex-direction: column;
}

.mobile-ad-note-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: -1px;
}

.mobile-ad-note-row .ad-note-mobile {
  display: inline-block;
  text-align: right;
}

.mobile-inline-disclosure-row .ad-note-mobile {
  display: inline-block;
}

.sponsored-cell-last {
  padding-bottom: 2px;
}

.sponsored-cell-last .clients-cell-inner {
  position: static;
  padding-bottom: 0;
  min-height: 0;
}

.ad-badge-wrap {
  position: absolute;
  right: 8px;
  bottom: 1px;
  z-index: 5;
  line-height: 1;
}

.ad-badge {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 400;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.ad-badge:hover,
.ad-badge:focus {
  background: transparent;
  color: #8b95a7;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.ad-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 220px;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #1a2232;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.2);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  pointer-events: none;
}

.ad-tooltip-row + .ad-tooltip-row {
  margin-top: 6px;
}

.ad-badge-wrap:hover .ad-tooltip,
.ad-badge-wrap:focus-within .ad-tooltip,
.ad-badge-wrap.is-open .ad-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-ad-badge-wrap {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 5;
  line-height: 1;
}

.mobile-card-sponsored .ad-badge {
  min-height: auto;
  color: #9aa3b2;
}

.mobile-card-sponsored .ad-tooltip {
  right: 0;
  bottom: 18px;
}

.rating-row-sponsored.is-expanded .sponsored-cell-last > .clients-cell-inner > .ad-badge-wrap {
  display: none;
}

.expanded-ad-badge-row {
  position: absolute;
  right: 8px;
  bottom: 1px;
  z-index: 5;
  line-height: 1;
}

.expanded-ad-badge-row .ad-badge-wrap {
  position: relative;
  right: auto;
  bottom: auto;
}

.expanded-ad-badge-row .ad-tooltip {
  right: 0;
  bottom: calc(100% + 8px);
}

/* ========================================
   META TOOLTIPS (кол-во компаний, дата)
   ======================================== */

.table-meta-item {
  position: relative;
  cursor: default;
}

.table-meta-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);

  /* По умолчанию — прижат к левому краю элемента */
  left: 0;
  transform: translateY(4px);

  min-width: 0;
  width: max-content;
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #1a2232;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.2);
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
  text-align: left;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  pointer-events: none;
  z-index: 20;
}

/* Стрелка — под левым краем тултипа */
.table-meta-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 10px;
  transform: none;
  border: 5px solid transparent;
  border-top-color: #1a2232;
}

/* Hover — только не touch */
@media (hover: hover) {
  .table-meta-item:hover .table-meta-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Клик — touch */
.table-meta-item.is-open .table-meta-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Дата — у правого края, тултип прижат вправо */
.table-meta-item.tooltip-right .table-meta-tooltip {
  left: auto;
  right: 0;
  transform: translateY(4px);
  text-align: center;
  min-width: 0;
  width: max-content;
}

.table-meta-item.tooltip-right .table-meta-tooltip::after {
  left: auto;
  right: 10px;
}

@media (hover: hover) {
  .table-meta-item.tooltip-right:hover .table-meta-tooltip {
    transform: translateY(0);
  }
}

.table-meta-item.tooltip-right.is-open .table-meta-tooltip {
  transform: translateY(0);
}

/* ========================================
   STATES / HELPERS
   ======================================== */

.mobile-loading,
.empty-state {
  color: var(--muted);
  padding: 12px 4px;
}

.desktop-only {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;        /* ← фиксированный padding вместо min-height */
}

.footer-copy {
  font-size: 0.875rem;
  color: #7a8699;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: #7a8699;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Мобайл */
@media (max-width: 599px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 0 20px;
  }

  .footer-copy {
    font-size: 0.8rem;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-links a {
    font-size: 0.8rem;
  }
}

/* ========================================
   STATIC CONTENT PAGES
   ======================================== */

.static-page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 0 40px;
}

.content-section + .content-section {
  margin-top: 20px;
}

.content-title {
  font-size: 28px;
  line-height: 1.2;
}

.content-paragraph {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.content-list {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.7;
}

.content-list li + li {
  margin-top: 8px;
}

.content-figure {
  margin: 0;
}

.content-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.content-caption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.content-cta {
  padding-top: 8px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.primary-button:hover {
  opacity: 0.9;
}

.content-page h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.content-page p,
.content-page li {
  color: #333a48;
}

/* ========================================
   TABLE CARD HEADER + TOOLBAR
   ======================================== */

.table-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4px;
}

.table-toolbar .table-search-wrap {
  width: 100%;
}

.table-below-search {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  min-height: 18px;
  width: 100%;
}

.table-search-hint {
  margin: 0;
  color: #7a8699;
  font-size: 0.82rem;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.table-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.table-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #7a8699;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  cursor: default;
}

.table-meta-item svg {
  color: #98a2b3;
  flex-shrink: 0;
}

/* Мобайл */
@media (max-width: 599px) {
  .table-search-hint {
    display: none;
  }

  .table-below-search {
    margin-top: 8px;   /* было 5px — увеличиваем сверху */
    justify-content: flex-start;
  }

  /* На мобайле .table-meta растягивается на всю ширину
     и разводит 546 и дату по краям */
  .table-meta {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .table-toolbar {
    margin-bottom: 8px;  /* было 4px — увеличиваем снизу до карточек */
  }
}

/* Десктоп: ограничиваем ширину поля поиска */
@media (min-width: 900px) {
  .table-toolbar .table-search-wrap {
    max-width: 480px;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (min-width: 900px) {
  .burger {
    display: none;
  }

  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 8px;
  }

  .nav-link,
  .main-nav a {
    min-height: 36px;
    padding: 0 14px;
  }

  .desktop-only {
    display: table-cell;
  }

  .desktop-rating {
    display: block;
  }

  .mobile-cards {
    display: none;
  }

  .ratings-tabs-wrap::after,
  .ratings-tabs-wrap::before {
    display: none;
  }

  .ratings-tabs {
    overflow: visible;
    flex-wrap: wrap;
  }
}

@media (max-width: 899px) {
  .brand-logo {
    height: 36px;
  }

  .brand-tagline,
  .brand-subtitle {
    max-width: 220px;
  }

  .page-title {
    font-size: 1.9rem;
    line-height: 1.06;
    letter-spacing: -0.025em;
  }

  .table-card,
  .content-page .narrow {
    border-radius: 16px;
  }

  .table-card {
    padding: 14px;
  }

  .content-page .narrow {
    padding: 20px;
  }

    .intro-split-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
  }

  .desktop-rating {
    display: none;
  }

  .mobile-cards {
    display: block;
  }

  .table-wrapper {
    overflow: visible;
    border: none;
  }

  .rating-table {
    min-width: 0;
  }

  .meta-separator {
    display: none;
  }

  .table-search-icon {
    top: 13px;  /* (42px - 16px) / 2 = 13 — совпадает, менять не нужно */
  }

 /*  .rating-more {
    margin-top: 14px;
  } */

  .rating-more-button {
    width: 100%;
  }

  .main-nav {
    top: 72px;
    left: 16px;
    right: 16px;
  }

  .nav-link,
  .main-nav a {
    min-height: 40px;
    padding: 0 12px;
  }

  .table-search {
    height: 42px;
    border-radius: 11px;
  }

  .mobile-specialization {
    border-radius: 8px;
  }

  .mobile-inline-disclosure {
    border-radius: 10px;
  }
}


/* ========================================
   FEATURES GRID (главная страница)
   ======================================== */

.features-section {
  margin: 4px 0 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e4e9f0;
  border-radius: 12px;
  background: #ffffff;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px; /* выравнивает иконку по первой строке заголовка */
  background: none;
  color: #7a8699;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px; /* одинаковый отступ между заголовком и текстом */
}

.feature-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a2633;
  line-height: 1.3;
}

.feature-desc {
  margin: 0;
  font-size: 13px;
  color: #526071;
  line-height: 1.45;
}

/* Мобайл: одна колонка если очень узко */
@media (max-width: 400px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Десктоп: четыре в ряд */
@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    margin-top: 1px;
  }

  .feature-icon svg {
    width: 22px;
    height: 22px;
  }

  .feature-title {
    font-size: 15px;
  }
}


/* ========================================
   СЕКЦИЯ: РЕЙТИНГИ ПО НАПРАВЛЕНИЯМ
   ======================================== */

.ratings-section {
  padding: 12px 0 8px;
  border-top: none;   /* было: 1px solid var(--line) */
  margin-top: 20px;
  padding-top: 0;
}

.ratings-section-head {
  margin-bottom: 20px;
}

.ratings-section-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ratings-section-desc {
  margin: 0;
  font-size: 0.95rem;
  color: #526071;
}

/* Сетка карточек рейтингов */
.ratings-grid {
  display: grid;
  grid-template-columns: 1fr;   /* мобайл: одна колонка */
  gap: 8px;
}

/* Планшет: две колонки */
@media (min-width: 500px) {
  .ratings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* Десктоп: три колонки */
@media (min-width: 700px) {
  .ratings-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* Карточка рейтинга */
.rating-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.rating-card:hover {
  border-color: var(--accent-line-strong);
  background: var(--accent-soft);
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
  text-decoration: none;
  color: var(--text);
}

.rating-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: #4a607a;
  transition: background 0.18s ease;
}

.rating-card:hover .rating-card-icon {
  background: #e6edf6;
}

.rating-card-body {
  flex: 1;
  min-width: 0;
}

.rating-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 3px;
}

.rating-card-desc {
  font-size: 0.78rem;
  color: #667085;
  line-height: 1.35;
}

.rating-card-arrow {
  display: inline-flex;
  align-items: center;
  color: #b0baca;
  flex-shrink: 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.rating-card:hover .rating-card-arrow {
  color: #6b7f99;
  transform: translateX(2px);
}



 

/* ========================================
   СЕКЦИЯ: ФАКТЫ (TRUST)
   ======================================== */

.trust-section {
  padding: 24px 0 48px;  /* было 32px сверху */
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.trust-item {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: none;
}

.trust-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.trust-label {
  font-size: 0.82rem;
  color: #667085;
  line-height: 1.4;
}

/* Мобайл: одна колонка */
@media (max-width: 599px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
  }

  .trust-item:last-child {
    border-bottom: none;
  }

  .trust-value {
    font-size: 1.45rem;
  }

  .trust-section {
    padding-bottom: 24px;   /* было 48px */
  }
}

/* ========================================
   БЛОК ПОСЛЕ ТАБЛИЦЫ (SEO-текст)
   ======================================== */

.after-table-content {
  margin-top: 10px;
}

.after-table-content .narrow {
  border: none;
  background: transparent;
  padding: 18px 0;
}

.after-table-content h2 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.after-table-content h2:first-child {
  margin-top: 0;
}


.after-table-content h2 + * {
  margin-top: 0;
}

.after-table-content p {
  margin: 0;
}

.after-table-content p + p {
  margin-top: 14px;
}

.after-table-content p,
.after-table-content li {
  color: #445164;
  font-size: 0.95rem;
  line-height: 1.65;
}

.after-table-content ul,
.after-table-content ol {
  padding-left: 20px;
   margin: 12px 0 16px;
}

.after-table-content li + li {
  margin-top: 6px;
}

.after-table-content .content-section + .content-section {
  margin-top: 0;
}

@media (max-width: 899px) {
  .after-table-content .narrow {
    padding: 20px;
  }
}

/* ========================================
   СТРАНИЦА РЕКЛАМОДАТЕЛЯМ
   ======================================== */

/* Hero блок */
.adv-hero {
  padding: 28px 0 18px;
}

.adv-hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.adv-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(36, 50, 69, 0.08) 0%, rgba(36, 50, 69, 0) 72%);
  pointer-events: none;
}

.adv-hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #516072;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.adv-hero-title {
  margin: 0 0 14px;
  font-size: 2.35rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #1a202c;
}

.adv-hero-lead {
  max-width: 760px;
  margin: 0;
  color: #526071;
  font-size: 1.05rem;
  line-height: 1.7;
}

.adv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* Кнопки */
.adv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.adv-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.adv-btn-primary {
  background: #243245;
  color: #fff;
  border-color: #243245;
}

.adv-btn-primary:hover {
  background: #101722;
  border-color: #101722;
  color: #fff;
}

.adv-btn-secondary {
  background: #fff;
  color: #243245;
  border-color: #cbd5e0;
}

.adv-btn-secondary:hover {
  background: #f7f9fc;
  border-color: #b8c2d0;
}

/* Секции */
.adv-section {
  padding: 14px 0 0;
}

/* Карточки */
.adv-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
  padding: 24px;
  margin-bottom: 20px;
}

/* Блок заголовка без фона и рамки */
.adv-card-header {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
}

.adv-section-title {
  margin: 16px 0 6px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #1a202c;
  font-weight: 700;
}

.adv-section-subtitle {
  margin: 0 0 12px;
  color: #667085;
  font-size: 0.96rem;
  font-weight: 400;
}

/* Отступ сверху у первого формата, чтобы не слипался с подзаголовком */
.adv-format:first-child {
  margin-top: 12px;
}

/* Списки */
.adv-list {
  margin: 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.7;
}

.adv-list li + li {
  margin-top: 8px;
}

/* Форматы рекламы */
.adv-format {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 14px;
}

.adv-format-title {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a202c;
  letter-spacing: -0.02em;
}

.adv-format-content {
  display: grid;
  gap: 18px;
}

.adv-format-text p,
.adv-format-text ul {
  margin: 0 0 12px;
  color: #344054;
  line-height: 1.65;
}

.adv-format-text ul {
  padding-left: 20px;
}

.adv-format-text ul li + li {
  margin-top: 6px;
}

/* Таблица прайса */
.adv-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  margin-bottom: 14px;
}

.adv-table {
  width: 100%;
  min-width: 600px; /* минимум для достаточной ширины на десктопе */
  border-collapse: collapse;
  table-layout: fixed; /* фиксированная ширина столбцов */
}

.adv-table thead th {
  background: #f7f9fc;
  color: #5f6b7a;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  padding: 15px 16px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap; /* избегаем переноса в заголовках, кроме первого */
}

.adv-table thead th:first-child {
  text-align: left;
  width: 120px;
  max-width: 120px;
  padding-left: 10px;
  padding-right: 10px;
  white-space: normal; /* перенос для длинных заголовков */
  word-break: break-word;
}

.adv-table tbody td {
  padding: 15px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #243041;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}

.adv-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  max-width: 120px;
  white-space: normal;    /* чтобы текст переносился */
  word-break: break-word;
  padding-left: 10px;
  padding-right: 10px;
  overflow-wrap: break-word;
}

.adv-table tbody tr:last-child td {
  border-bottom: none;
}

.adv-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.adv-table tbody tr:hover td {
  background: #f8fbff;
}

.adv-table tbody td:not(:first-child) {
  font-weight: 700;
  white-space: nowrap;
}

/* Примечание под таблицей */
.adv-note {
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 2px;
}

/* Шаги "Как начать" */
.adv-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.adv-step {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.adv-step-num {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f3f6fb 0%, #e9eef5 100%);
  color: #2e3a49;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.adv-step-title {
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 4px;
}

.adv-step-text {
  color: #526071;
  line-height: 1.6;
}

/* Контактная информация */
.adv-contact-info {
  margin-bottom: 18px;
  color: #344054;
  line-height: 1.65;
}

.adv-contact-actions {
  display: flex;
  justify-content: flex-end;
}

/* Адаптив для мобильных */
@media (max-width: 899px) {
  .adv-hero-card,
  .adv-card,
  .adv-format {
    border-radius: 18px;
    padding: 18px;
  }

  .adv-hero-title {
    font-size: 1.8rem;
  }

  .adv-hero-actions {
    flex-direction: column;
  }

  .adv-hero-actions .adv-btn,
  .adv-contact-actions .adv-btn {
    width: 100%;
  }

  .adv-contact-actions {
    justify-content: stretch;
  }

  .adv-table {
    min-width: 400px;
  }

  .adv-table thead th,
  .adv-table tbody td {
    padding: 12px 10px;
    font-size: 0.9rem;
  }

    .adv-table thead th:first-child,
  .adv-table tbody td:first-child {
    width: 100px;
    max-width: 100px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 599px) {
  .adv-hero-title {
    font-size: 1.5rem;
  }

  .adv-hero-lead {
    font-size: 0.95rem;
  }

  .adv-section-title {
    font-size: 1.3rem;
  }

  .adv-format-title {
    font-size: 1.1rem;
  }

  .adv-table {
    min-width: 360px;
  }

  .adv-table {
    table-layout: auto !important;    /* гибкая таблица */
    width: 100% !important;
    min-width: unset !important;
  }

  .adv-table thead th,
  .adv-table tbody td {
    padding: 6px 6px !important;      /* убираем внутренние отступы */
    font-size: 0.85rem;
  }

  .adv-table thead th:first-child,
  .adv-table tbody td:first-child {
    width: auto !important;           /* снимаем фиксированную ширину */
    max-width: none !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  
  .adv-table tbody td {
    white-space: normal !important;   /* разрешаем перенос текста */
  }

}

/* Изображения примеров */
.ad-format-example img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.08);
  margin-top: 12px;
}

/* Убираем верхний margin у первого заголовка в секции */
.adv-section > .container > h2.adv-section-title:first-child,
.adv-section > .container > .adv-card > h2.adv-section-title:first-child {
  margin-top: 0;
}

.adv-card-header {
  padding-left: 18px;
  padding-right: 24px;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
}

.ad-format-example figcaption {
  font-size: 0.85rem;
  color: #667085;
  margin-top: 6px;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 599px) {
  .ad-format-example figcaption {
    font-size: 0.75rem;
    margin-top: 4px;
    padding: 0 10px;
  }

  .ad-format-example img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(20, 20, 20, 0.06);
  }
}

.adv-table tbody td:first-child {
  max-width: 100px;    /* или попробуйте 100px */
  white-space: normal; /* для переноса */
  padding-left: 10px;  /* уменьшить слева */
  padding-right: 10px;
  word-break: break-word;
}

/* Важно: таблице нужно задать table-layout: fixed, чтобы ширина столбцов React работала */
.adv-table {
  width: 100%;
  min-width: 360px; /* с учетом мобильного отображения */
  border-collapse: collapse;
  table-layout: fixed; /* фиксированная таблица для контроля ширины столбцов */
}

/* Ограничиваем ширину первого столбца */
.adv-table thead th:first-child,
.adv-table tbody td:first-child {
  width: 120px;       /* или 100px — подберите по дизайну */
  max-width: 120px;
  padding-left: 10px;
  padding-right: 10px;
  white-space: normal;   /* чтобы текст переносился */
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: left;      /* сохраните выравнивание */
}

.ad-format-example {
  max-width: 100%; /* ограничиваем шириной родителя */
  margin-top: 12px;
}

.ad-format-example img {
  display: block;       /* без лишних пробелов */
  max-width: 100%;      /* не выходит за пределы контейнера */
  height: auto;         /* сохраняет пропорции */
  margin-left: auto;    /* опционально, центрировать */
  margin-right: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.08);
}
.ad-format-example figcaption {
  font-size: 0.85rem;
  color: #667085;
  margin-top: 6px;
  text-align: center;
  line-height: 1.4;
}

/* Мобильные стили для изображений и подписей */
@media (max-width: 599px) {
  .ad-format-example img {
    box-shadow: 0 2px 8px rgba(20, 20, 20, 0.06);
    border-radius: 8px;
  }
  .ad-format-example figcaption {
    font-size: 0.75rem;
    margin-top: 4px;
    padding: 0 10px;
  }
}

.adv-table thead th:first-child {
  width: 120px;
  max-width: 120px;
  white-space: normal;
  padding-left: 10px;
  padding-right: 10px;
}

.adv-price-header {
  margin-bottom: 0px;
}

.adv-price-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 6px;
}

.adv-price-text {
  font-size: 0.95rem;
  color: #526071;
  margin: 0;
  line-height: 1.5;
}

.ad-format-example {
  margin: 12px 0 12px 0; /* отступ сверху и снизу, слева и справа 0 */
}

figure.ad-format-example {
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
}

.adv-form-grid,
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.adv-form-field,
.contact-form-field {
  display: flex;
  flex-direction: column;
}


.adv-form-field-full,
.contact-form-field-full {
  grid-column: 1 / -1;
}

.adv-captcha-field {
  margin-top: 10px;
}

.adv-form-footer {
  margin-top: 18px;
}

.adv-submit-btn {
  min-width: 170px;
}

label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
}

.required {
  color: red;
}



.form-message {
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  /* margin: 0 auto; */
  padding: 12px 14px;

  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.10);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-banner__text {
  font-size: 13px;
  line-height: 1.45;
  color: #526071;
}

.cookie-banner__text a {
  color: #243041;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  flex-shrink: 0;
}

.cookie-banner__btn {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #243041;
  border-radius: 10px;
  background: #243041;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cookie-banner__btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media (max-width: 599px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;

    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__text {
    font-size: 12px;
  }

  .cookie-banner__btn {
    width: 100%;
  }
}

/* ========================================
   FAQ CARDS (для методологии / рекламодателям)
   ======================================== */

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.faq-card {
  padding: 18px 18px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.03);
}

.faq-question {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a202c;
  letter-spacing: -0.01em;
}

.faq-answer {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #344054;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 10px;
}

.content-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(17, 24, 39, 0.35);
  transition: text-decoration-thickness 0.2s ease, text-decoration-color 0.2s ease;
}

.content-link:hover,
.content-link:focus {
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(17, 24, 39, 0.65);
}
/* ===== Вкладка «Кейсы» со звездой (13.07.2026) =====
   Порт стилей из web/templates/base.html витрины: там они лежали в локальном <style>,
   а Grav-половина сайта их не видела. Теперь вкладка выглядит одинаково на обеих. */
.rating-tab-cases {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rating-tab-cases .tab-star {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-flex;
}
.rating-tab-cases .tab-star svg {
  width: 14px;
  height: 14px;
  display: block;
}
