/* ============================================================
   7gex.com — стили
   Дизайн: по мотивам шаблона «SEO Agency Light»
   Шрифт: Manrope (Google Fonts, полная поддержка кириллицы)
   ============================================================ */

:root {
  --lime: #c3f53c;
  --black: #0c0c0c;
  --ink: #161616;
  --gray-bg: #f2f2f0;
  --gray-card: #ececea;
  --white: #ffffff;
  --muted: #555;
  --telegram: #0088cc;
  --radius-lg: 32px;
  --radius-md: 24px;
  --page-pad: clamp(16px, 2.5vw, 40px);
  --font: "Manrope", "Segoe UI", Arial, sans-serif;
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #f7f7f5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
address { font-style: normal; }

h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

main > section, main > .section-note { margin-inline: var(--page-pad); }

.section-gap { margin-top: clamp(56px, 6vw, 110px); }

/* ---------- Общие элементы ---------- */

.tag-pill {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
}

.section-title {
  font-size: clamp(30px, 3.6vw, 56px);
  max-width: 24ch;
}
.section-title--center { margin-inline: auto; text-align: center; }

.section-subtitle {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted);
  max-width: 62ch;
  margin-top: 18px;
}
.section-subtitle--center { margin-inline: auto; text-align: center; }

.section-head { margin-bottom: clamp(28px, 3vw, 52px); }
.section-head--center { text-align: center; }

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn--lime {
  background: var(--lime);
  color: var(--black);
  padding: 15px 30px;
  font-size: 16px;
}
.btn--small { padding: 12px 22px; font-size: 14px; font-weight: 700; }
.btn--large { padding: 18px 36px; font-size: 17px; }

.btn--outline {
  border: 1px solid #c9c9c6;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 700;
  background: var(--white);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--ink); }

.btn--black {
  background: var(--black);
  color: var(--white);
  padding: 15px 30px;
  font-size: 16px;
}
.btn--black:hover { color: var(--lime); }

.btn--telegram {
  background: var(--telegram);
  color: var(--white);
  padding: 15px 30px;
  font-size: 16px;
}
.btn--telegram i { font-size: 1.25em; }

.btn--ghost {
  border: 1px solid rgba(255 255 255 / 0.4);
  color: var(--white);
  padding: 14px 30px;
  font-size: 15px;
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn--full { width: 100%; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 12px var(--page-pad) 0;
}

.header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 12px 10px 24px;
  box-shadow: 0 6px 24px rgba(0 0 0 / 0.06);
}

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 32px); }

.nav__link {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
  white-space: nowrap;
}
.nav__link:hover, .nav__link--active { border-color: var(--ink); }

/* Выпадающее меню «Услуги» */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0 0 0 / 0.14);
  padding: 12px;
  display: none;
  min-width: 250px;
  z-index: 60;
}
.nav__dropdown-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.nav__dropdown-menu a:hover { background: var(--gray-bg); }
.nav__dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.active .nav__dropdown-menu { display: block; }
.nav__dropdown > .nav__link::after { content: " ▾"; font-size: 0.72em; }

.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.btn--tg-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--telegram);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: none;
}

.nav__menu-footer { display: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0 0 0 / 0.4);
  z-index: 40;
}
.nav-overlay.active { display: block; }

/* ---------- Hero (тёмный блок) ---------- */

.hero {
  margin-top: 20px;
  background: linear-gradient(120deg, #1d201f, #34393b 60%, #272b2a);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: clamp(32px, 4.5vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: -5%;
  bottom: -12%;
  width: 65%;
  height: 55%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 320" fill="none" stroke="white" stroke-width="2" stroke-linecap="round"><path d="M10 300 q60 -18 110 -2 t120 -14 t130 6 t120 -10 t140 4 t150 -8" opacity=".7"/><path d="M290 260 L640 60 M640 60 l-52 8 M640 60 l-6 52" stroke-width="3"/><circle cx="290" cy="260" r="7"/></svg>') left bottom / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 74px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero__lead { font-size: clamp(17px, 1.5vw, 22px); margin-top: 24px; max-width: 46ch; }
.hero__note { font-size: 15.5px; opacity: 0.85; margin-top: 8px; }
.hero__greeting { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime); margin-top: 32px; }
.hero__subtitle { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; margin-top: 8px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Белая карточка результата в hero */
.hero__card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 2.8vw, 48px);
  clip-path: polygon(0 14%, 12% 0, 100% 0, 100% 100%, 0 100%);
  padding-top: clamp(48px, 4vw, 72px);
}

.hero__card-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__card-label i { color: var(--telegram); }

.hero__card-stat {
  font-size: clamp(52px, 4.6vw, 84px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 18px;
  transition: opacity 0.5s ease;
}
.hero__card-caption { font-size: 18px; margin-top: 6px; transition: opacity 0.5s ease; }
.hero__card-small { font-size: 14px; color: var(--muted); margin-top: 14px; }

.hero__proof { display: grid; gap: 12px; margin-top: 22px; }
.hero__proof-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255 255 255 / 0.08);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
}
.hero__proof-item i { color: var(--lime); }

/* Hero внутренних страниц */
.hero--inner .hero__title { max-width: 22ch; }
.hero--inner .hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 56px);
  margin-top: 40px;
}
.hero__stat-number {
  font-size: clamp(40px, 3.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--lime);
  line-height: 1;
}
.hero__stat-label { font-size: 15px; opacity: 0.85; margin-top: 8px; }

/* ---------- Заметка-полоса ---------- */

.section-note {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 44px) clamp(24px, 3.4vw, 64px);
  margin-top: clamp(56px, 6vw, 110px);
}
.section-note--lime { background: var(--lime); }
.section-note h2 { font-size: clamp(26px, 2.6vw, 40px); }
.section-note p { margin-top: 14px; font-size: 17px; max-width: 90ch; }

/* ---------- Карточки ---------- */

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 28px); }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.8vw, 28px); }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.8vw, 28px); }

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.4vw, 44px);
}

.card--highlight { background: var(--black); color: var(--white); }
.card--lime { background: var(--lime); }
.card--gray { background: var(--gray-card); }

.card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--black);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.card--highlight .card__icon { background: var(--lime); }

.card__title { font-size: clamp(20px, 1.7vw, 26px); }
.card__text { font-size: 16px; margin-top: 14px; color: var(--muted); }
.card--highlight .card__text { color: #cfcfcc; }

.card__price {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 20px;
}
.card__price small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Чек-лист (лаймовые галочки) */
.checklist { margin-top: 20px; display: grid; gap: 13px; }
.checklist li { position: relative; padding-left: 36px; font-size: 15.5px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 12.5 10 16.5 18 8" fill="none" stroke="%230c0c0c" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 14px no-repeat;
}
.card--highlight .checklist li { color: #e8e8e5; }

/* Список преимуществ с эмодзи-галочками из оригинала */
.benefits { display: grid; gap: 8px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.card--highlight .benefits { color: #cfcfcc; }

/* ---------- Секция-контейнер (серый фон) ---------- */

.panel {
  background: var(--gray-card);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 56px);
}
.panel--black { background: var(--black); color: var(--white); }
.panel--white { background: var(--white); }

/* ---------- Шаги процесса ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 28px); }

.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.2vw, 40px);
  position: relative;
}
.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--black);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}
.step__title { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; margin-top: 18px; }
.step__duration {
  display: inline-block;
  background: var(--lime);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  margin-top: 8px;
}
.step__list { margin-top: 14px; display: grid; gap: 8px; font-size: 15px; color: var(--muted); list-style: none; }
.step__list li { position: relative; padding-left: 18px; }
.step__list li::before { content: "•"; position: absolute; left: 2px; color: var(--lime); font-weight: 700; }

/* ---------- Вкладки (выбор поисковой системы) ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: clamp(24px, 2.6vw, 40px);
}

.chip {
  border: 1px solid #c9c9c6;
  background: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--lime); border-color: var(--lime); }

.engine-info { display: none; }
.engine-info.active { display: block; }

.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.feature-row i {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.feature-row__title { font-weight: 600; font-size: 17px; }
.feature-row__text { font-size: 15px; color: var(--muted); margin-top: 4px; }
.features-stack { display: grid; gap: 14px; max-width: 760px; margin-inline: auto; }

/* ---------- Калькулятор ---------- */

.calculator__box {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 56px);
}

.calc-group { margin-bottom: clamp(22px, 2.4vw, 36px); }
.calc-group__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9b9b97;
  margin-bottom: 14px;
}
.calc-options { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-option {
  border: 1px solid rgba(255 255 255 / 0.25);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.calc-option:hover { border-color: var(--lime); }
.calc-option.active { background: var(--lime); border-color: var(--lime); color: var(--black); }

.calc-result {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 64px);
  align-items: end;
  background: rgba(255 255 255 / 0.07);
  border-radius: var(--radius-md);
  padding: clamp(20px, 2.4vw, 36px);
  margin-top: 8px;
}
.calc-result__label { font-size: 14px; color: #9b9b97; }
.calc-result__price {
  font-size: clamp(34px, 3.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--lime);
  line-height: 1.1;
}
.calc-result__savings { font-size: clamp(20px, 1.8vw, 28px); font-weight: 600; }

.calc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.conclusion-box {
  background: var(--white);
  border-left: 6px solid var(--lime);
  border-radius: 16px;
  padding: 18px 24px;
  font-size: 15.5px;
  max-width: 760px;
  margin: 22px auto 0;
}
.calculator__box .conclusion-box { background: rgba(255 255 255 / 0.07); color: #e8e8e5; }

/* ---------- Таблица сравнения ---------- */

.comparison { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; }
.comparison__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-top: 1px solid #ececea;
}
.comparison__row:first-child { border-top: 0; background: var(--black); color: var(--white); }
.comparison__cell { padding: 16px clamp(16px, 2vw, 32px); font-size: 15.5px; }
.comparison__row:first-child .comparison__cell { font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
.comparison__cell--param { font-weight: 600; }
.comparison__cell--win { background: #f4fce0; font-weight: 600; }
.comparison__cell--win::after { content: " ✅"; }
.comparison__row:first-child .comparison__cell--win { background: transparent; font-weight: 700; }
.comparison__row:first-child .comparison__cell--win::after { content: ""; }

/* ---------- Форма аудита ---------- */

.audit {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 64px);
}

.audit__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 80px);
  align-items: start;
}

.audit__title { font-size: clamp(28px, 3vw, 46px); }
.audit__subtitle { font-size: 18px; margin-top: 18px; color: #d9d9d5; max-width: 46ch; }
.audit__benefits-title { font-size: 18px; font-weight: 700; margin-top: 28px; }
.audit .checklist { margin-top: 16px; }
.audit .checklist li { color: #e8e8e5; }

.audit__guarantee {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(195 245 60 / 0.12);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-top: 28px;
  font-size: 16px;
}
.audit__guarantee i { color: var(--lime); font-size: 22px; }

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 44px);
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input {
  width: 100%;
  border: 1px solid #dcdcd9;
  background: #fafaf8;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  outline: none;
}
.form-group input:focus { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime); }

.form-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0; }
.form-checkbox input { margin-top: 3px; accent-color: #78a800; }
.form-checkbox a { text-decoration: underline; }

.cf-turnstile { margin: 14px 0; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 6px; max-width: 900px; margin-inline: auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 8px 24px;
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 500;
  cursor: pointer;
  padding: 14px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--black) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14" stroke="white" stroke-width="2.6" stroke-linecap="round"/></svg>') center / 14px no-repeat;
}
.faq-item[open] summary::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 12h14" stroke="white" stroke-width="2.6" stroke-linecap="round"/></svg>');
}
.faq-item p { font-size: 15.5px; color: var(--muted); margin: 4px 0 18px 46px; max-width: 72ch; }

/* ---------- CTA-блок ---------- */

.cta {
  background: var(--lime);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 4.6vw, 88px);
  text-align: center;
}
.cta--black { background: var(--black); color: var(--white); }
.cta__title { font-size: clamp(28px, 3.4vw, 52px); max-width: 24ch; margin-inline: auto; }
.cta__subtitle { font-size: clamp(16px, 1.4vw, 20px); margin: 18px auto 0; max-width: 56ch; }
.cta--black .cta__subtitle { color: #d9d9d5; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.cta .btn--black:hover { color: var(--lime); }
.cta__features { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.6vw, 40px); justify-content: center; margin-top: 32px; font-size: 15px; }
.cta__features span i { color: inherit; margin-right: 8px; }
.cta__note { font-size: 14.5px; margin-top: 24px; opacity: 0.85; }

/* ---------- Кейс ---------- */

.case-meta { display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 28px); margin-top: 24px; font-size: 15px; }
.case-meta span i { margin-right: 8px; color: var(--lime); }
.case-badge {
  display: inline-block;
  background: var(--lime);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.case-block__title { font-size: clamp(24px, 2.4vw, 36px); display: flex; align-items: center; gap: 14px; }
.case-block__title i { color: #9b9b00; font-size: 0.8em; color: #86a800; }
.case-block__content { margin-top: 20px; font-size: 16.5px; }
.case-block__content > p + p, .case-block__content > p + ul { margin-top: 14px; }
.case-block__content ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.case-block__content ul li { position: relative; padding-left: 20px; }
.case-block__content ul li::before { content: "•"; position: absolute; left: 2px; color: #86a800; font-weight: 700; }

.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); margin-top: 22px; }
.results-grid--two { grid-template-columns: repeat(2, 1fr); }

.result-card {
  background: var(--gray-bg);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  text-align: center;
}
.result-card__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.result-card__value { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-size: clamp(19px, 1.7vw, 26px); font-weight: 600; }
.result-card__value .before { color: #a2a29e; text-decoration: line-through; }
.result-card__value i { color: #86a800; font-size: 0.75em; }
.result-card__growth {
  display: inline-block;
  background: var(--lime);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 14px;
  margin-top: 12px;
}
.result-card__note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.case-screenshot { margin-top: 22px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid #e4e4e1; }
.case-screenshot img { width: 100%; }

.subhead { font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; margin-top: clamp(28px, 3vw, 44px); }

/* ---------- Таймлайн (обо мне) ---------- */

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 28px); }
.timeline__item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.2vw, 40px);
}
.timeline__item--future { background: var(--black); color: var(--white); }
.timeline__year {
  display: inline-block;
  background: var(--lime);
  color: var(--black);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 6px 18px;
}
.timeline__item h3 { font-size: 20px; margin-top: 18px; }
.timeline__item p { font-size: 15px; color: var(--muted); margin-top: 10px; }
.timeline__item--future p { color: #cfcfcc; }

/* Причины (01-04) */
.reason { display: flex; gap: clamp(18px, 2vw, 32px); background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 2.4vw, 44px); }
.reason__number { font-size: clamp(36px, 3vw, 56px); font-weight: 500; color: #d3d3cf; line-height: 1; flex: none; }
.reason__title { font-size: clamp(19px, 1.7vw, 26px); }
.reason__text { font-size: 15.5px; color: var(--muted); margin-top: 10px; }
.reason__hint {
  background: var(--gray-bg);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14.5px;
  margin-top: 16px;
}
.reason__hint strong { color: var(--ink); }

/* ---------- Юридические страницы ---------- */

.legal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 72px);
  max-width: 1000px;
  margin-inline: auto;
}
.legal h1 { font-size: clamp(28px, 3.2vw, 48px); margin-bottom: 28px; }
.legal h2 { font-size: clamp(20px, 1.9vw, 28px); margin: 36px 0 14px; }
.legal h3 { font-size: 18px; margin: 22px 0 10px; }
.legal p { margin: 10px 0; font-size: 16px; }
.legal ul { list-style: none; display: grid; gap: 8px; margin: 12px 0; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before { content: "•"; position: absolute; left: 2px; color: #86a800; font-weight: 700; }
.legal a { text-decoration: underline; }
.legal .link-button { text-decoration: underline; padding: 0; font-weight: 600; }

/* ---------- Страница 404 ---------- */

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 60px);
}
.error-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 80px);
  max-width: 880px;
  text-align: center;
}
.error-code { font-size: clamp(80px, 12vw, 160px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.error-title { font-size: clamp(24px, 3vw, 40px); margin-top: 10px; }
.error-description { color: var(--muted); margin-top: 16px; }
.error-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.error-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.error-nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: var(--gray-bg);
  border-radius: 16px;
  padding: 14px 18px;
  transition: background-color 0.2s ease;
}
.error-nav-item:hover { background: var(--lime); }
.error-nav-item i { font-size: 18px; }
.error-nav-title { display: block; font-weight: 600; font-size: 15px; }
.error-nav-desc { display: block; font-size: 12.5px; color: var(--muted); }

/* ---------- Модальное окно ---------- */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0 0 0 / 0.5);
  z-index: 100;
  padding: 20px;
  overflow-y: auto;
}
.modal.active { display: grid; place-items: center; }
.modal__content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 44px);
  width: min(520px, 100%);
  position: relative;
}
.modal__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.modal__header h3 { font-size: 24px; }
.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-bg);
  display: grid;
  place-items: center;
  flex: none;
}
.modal__close:hover { background: var(--lime); }

/* Информационный модал (сообщения) */
.modal--info .modal__content { text-align: center; }
.modal--info .modal__icon { font-size: 52px; margin-bottom: 12px; }

/* ---------- Подвал ---------- */

.footer {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: clamp(56px, 6vw, 110px) var(--page-pad) 0;
  padding: clamp(32px, 3.6vw, 64px) clamp(24px, 3.4vw, 64px) clamp(20px, 2vw, 32px);
}

.footer__main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(28px, 5vw, 100px);
  align-items: start;
}

.footer__brand img { height: 52px; width: auto; border-radius: 6px; margin-bottom: 14px; }
.footer__brand p { font-size: 14.5px; color: #b9b9b5; line-height: 1.6; }

.footer__nav { display: flex; gap: clamp(32px, 5vw, 110px); justify-content: center; }
.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9b9b97;
  margin-bottom: 14px;
}
.footer__nav ul { display: grid; gap: 10px; }
.footer__nav a { position: relative; padding-left: 18px; font-size: 15.5px; }
.footer__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}
.footer__nav a:hover { color: var(--lime); }

.footer__contact .contact-item { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 16px; }
.footer__contact .contact-item i.fa-telegram { color: var(--telegram); font-size: 26px; }
.footer__contact .contact-item i.fa-envelope { font-size: 22px; color: var(--lime); }
.link-button { padding: 0; font-weight: 600; }
.footer .link-button:hover { color: var(--lime); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255 255 255 / 0.12);
  margin-top: clamp(28px, 3vw, 48px);
  padding-top: 22px;
  font-size: 14px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.footer__legal a { border-bottom: 1px dashed rgba(255 255 255 / 0.5); padding-bottom: 1px; }
.footer__legal a:hover { border-bottom-color: transparent; }

/* ---------- Кнопки прокрутки ---------- */

.scroll-btn {
  position: fixed;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--lime);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 30;
}
.scroll-btn.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   Планшет (до 1024px)
   ============================================================ */

@media (max-width: 1024px) {

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0 0 0 / 0.14);
    padding: 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    z-index: 60;
  }
  .nav.active { display: flex; }
  .nav__link { padding: 12px 4px; border-bottom: 0; }

  .nav__dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0 0 6px 18px;
    min-width: 0;
  }
  .nav__dropdown:hover .nav__dropdown-menu { display: none; }
  .nav__dropdown.active .nav__dropdown-menu { display: block; }

  .nav__menu-footer { display: grid; gap: 10px; margin-top: 16px; }

  .burger { display: flex; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { clip-path: none; padding-top: clamp(28px, 2.8vw, 48px); }

  .cards-3, .cards-4, .steps, .timeline { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }

  .audit__grid { grid-template-columns: 1fr; }

  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__nav { justify-content: flex-start; }
}

/* ============================================================
   Мобильные (до 640px)
   ============================================================ */

@media (max-width: 640px) {

  body { font-size: 16px; }

  .header__cta-text { display: none; }
  .header .btn--lime.btn--small { padding: 12px 16px; }

  .hero { padding: 28px 20px; }
  .hero__cta .btn { width: 100%; }

  .cards-3, .cards-4, .cards-2, .steps, .timeline, .results-grid, .error-nav { grid-template-columns: 1fr; }

  .comparison__row { grid-template-columns: 1fr; border-top: 8px solid #f7f7f5; }
  .comparison__row:first-child { display: none; }
  .comparison__cell { padding: 12px 18px; }
  .comparison__cell--param { background: var(--black); color: var(--white); font-size: 14px; }
  .comparison__cell--agency::before { content: "Типичное агентство: "; color: var(--muted); font-weight: 400; }
  .comparison__cell--win::before { content: "7gex: "; font-weight: 700; }

  .calc-actions .btn, .cta__actions .btn, .error-links .btn, .error-links .error-btn { width: 100%; }

  .reason { flex-direction: column; gap: 12px; }

  .footer__main { grid-template-columns: 1fr; }
  .footer__nav { flex-direction: column; gap: 24px; }
  .footer__bottom { justify-content: center; text-align: center; }
}
