/* =========================================================
   Media Product UP — Home
   Макет: Figma MPUP-24 / Home (1440px)
   ========================================================= */

/* ---------- Токены из макета ---------- */
:root {
  --c-main: #8e30d8;        /* A/main */
  --c-light: #b06ee4;       /* A/light */
  --c-dark: #632297;        /* A/dark */
  --c-extra-light: #e8d6f7; /* A/extra-light */
  --c-black: #333333;       /* black */
  --c-navy: #272a30;        /* Темно-синий */
  --c-gray: #727272;        /* Темно-серый */
  --c-bg-gray: #f4f4f4;     /* Серый */
  --c-white: #ffffff;

  --ff-main: "Montserrat", Arial, sans-serif;
  --ff-alt: "Roboto", Arial, sans-serif;

  --radius-card: 22px;
  --shadow-card: 0 4px 17.2px rgba(193, 193, 193, 0.25);
  --shadow-btn: inset 0 -4px 0 rgba(0, 0, 0, 0.25);

  --page: 1440px;
  --container: 1320px;
  --svc-pad: 56px;          /* внутренний отступ блока «Услуги» по бокам */
  /* Единая линия контента: край белых плашек «Услуг». Используется в padding
     полноширинных блоков (100% = ширина экрана), поэтому все секции встают на одну вертикаль. */
  --edge: calc(max(20px, (100% - var(--container)) / 2) + var(--svc-pad));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; } /* якоря не прячутся под шапкой */
body {
  margin: 0;
  font-family: var(--ff-main);
  color: var(--c-black);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.accent { color: var(--c-main); }

/* ---------- Общие элементы ---------- */
.section-title {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.247;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  height: 59px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  background: var(--c-main);
  box-shadow: var(--shadow-btn);
  color: var(--c-white);
  font-family: var(--ff-main);
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s, color .2s;
}
/* Состояния — по макету BUTTONS (Figma): main / hover / active / disabled */
.btn:hover { background: var(--c-light); }
.btn:active { background: var(--c-dark); box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.25); }
.btn:disabled, .btn[aria-disabled="true"] { background: #e8e8e8; box-shadow: none; color: var(--c-white); cursor: default; }
.btn--wide { min-width: 229px; height: 58px; }

.link {
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--c-main);
  transition: color .2s;
}
.link:hover { color: var(--c-light); }
.link:active { color: var(--c-dark); }
.link[aria-disabled="true"] { color: #b3b3b3; pointer-events: none; }

/* ---------- Логотип (собран из 3 слоёв, как в макете) ---------- */
.logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.logo__img { display: block; width: auto; height: 45px; max-width: none; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;          /* на первом экране — без подложки */
}
.header::before {                   /* подложка отдельным слоем: плавно появляется и не мешает fixed-меню */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(18, 7, 31, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.header--scrolled::before { opacity: 1; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 16px var(--edge);
  transition: height .3s, padding .3s;
}
.header--scrolled .header__inner { height: 56px; padding-top: 8px; padding-bottom: 8px; } /* −30% */
.logo__img { transition: height .3s, opacity .3s; }
.header--scrolled .logo__img { height: 36px; }
.nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
  color: #c9a4ff;                   /* цвет начала градиента «встроенная» */
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
}
.nav a { transition: color .2s; }
.nav a:hover { color: var(--c-dark); }  /* тёмно-фиолетовый #632297 */


.burger { display: none; }
.nav__contacts, .nav__logo { display: none; }

/* =========================================================
   Hero — ДНК-спираль (canvas, assets/dna-helix.js)
   ========================================================= */
.hero {
  padding-top: 80px;              /* место под фиксированную шапку */
  color: #f3ecff;
  background: radial-gradient(1100px 700px at 75% 45%, #4b1d8a 0%, #2a0f4d 38%, #12071f 82%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: 640px;
  padding: 40px var(--edge);
}
.hero__title {
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.hero__title span {
  background: linear-gradient(90deg, #c9a4ff, #8f5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__text {
  max-width: 470px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.5;
  color: #b9a6dd;
}
/* Три преимущества с иконками */
.hero__features { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 32px 0 36px; padding: 0; list-style: none; }
.hero__feature { display: flex; flex: 0 1 auto; align-items: flex-start; gap: 12px; min-width: 0; } /* ширина по тексту — заголовок не наезжает на соседнюю иконку */
.hero__feature-ico {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(201, 164, 255, .18);
  border-radius: 12px;
  background: rgba(142, 48, 216, .22);
  color: #c9a4ff;
}
.hero__feature-txt { display: flex; flex-direction: column; gap: 3px; }
.hero__feature-txt b { font-weight: 700; font-size: 14px; line-height: 1.3; white-space: nowrap; color: #f3ecff; }
.hero__feature-txt span { max-width: 112px; font-size: 12.5px; line-height: 1.35; color: #b9a6dd; } /* подпись в две строки */

/* Кнопка со стрелкой в квадрате и подпись под ней */
.hero__btn { gap: 18px; height: 60px; padding: 0 8px 0 28px; }
.hero__btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .16);
  transition: transform .2s;
}
.hero__btn:hover .hero__btn-arrow { transform: translateX(3px); }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; line-height: 1.4; color: #b9a6dd; }
.hero__note svg { flex: none; color: #c9a4ff; }

/* Правая колонка: спираль */
.hero__visual { position: relative; }
.hero__helix { display: block; width: 100%; height: min(78vh, 660px); }

/* Плашки-переход под первым экраном (оформление — как .card в «Услугах») */
.perks {
  --perks-pb: 80px;                 /* белое поле под плашками */
  position: relative;
  z-index: 0;
  padding-bottom: var(--perks-pb);
}
.perks::before {                    /* белый фон с середины плашек — граница hero */
  content: "";
  position: absolute;
  z-index: -1;
  left: 0; right: 0; bottom: 0;
  top: calc((100% - var(--perks-pb)) / 2);
  background: var(--c-white);
}
.perks__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 390px));  /* плашка не шире 390px */
  justify-content: center;
  gap: 20px;
  padding: 0 var(--edge);
}
.card.perk {                        /* .card.perk — чтобы перебить фон .card ниже по файлу */
  position: relative;
  overflow: hidden;
  gap: 32px;
  color: var(--c-black);            /* hero задаёт светлый текст — возвращаем тёмный */
  background: #f5f2fb;              /* светло-светло-фиолетовый */
  justify-content: flex-start;      /* текст прижат к верху — заголовки плашек на одной линии */
}
.perk__num {                         /* крупная цифра — полупрозрачный фон справа внизу (вместо иконки) */
  position: absolute;
  right: 24px;
  bottom: -0.2em;
  font-weight: 800;
  font-size: 150px;
  line-height: 1;
  color: var(--c-main);
  opacity: .15;
  pointer-events: none;
  user-select: none;
}
.perk .card__body { position: relative; z-index: 1; }
.perks__dots { display: none; }
html.js .card.perk {                /* плавное всплытие (класс js ставится в <head>) */
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
}
html.js .card.perk:nth-child(2) { transition-delay: .08s; }
html.js .card.perk:nth-child(3) { transition-delay: .16s; }
html.js .perks.is-visible .card.perk { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .card.perk { opacity: 1; transform: none; transition: none; }
  .nav { transition: none !important; }
}

/* =========================================================
   Services
   ========================================================= */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: var(--container);
  margin: 0 max(20px, calc((100% - var(--container)) / 2));
  padding: 60px var(--svc-pad);
  border-radius: var(--radius-card);
  background: radial-gradient(ellipse at 0% 100%, #f9f9f9 0%, #fcfcfc 100%);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 20px;
  width: 100%;
  max-width: 1208px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding: 48px 40px;
  border-radius: var(--radius-card);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}
.card__icon { width: 38.571px; height: 60px; }
.card__icon--service { width: 60px; height: 60px; }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.4;
}
.card__title { font-weight: 700; font-size: 24px; line-height: 1.4; }
.card__text  { font-size: 16px; letter-spacing: 0.48px; }
.card__price { font-weight: 700; font-size: 24px; color: var(--c-main); }
.card--wide { grid-column: 1 / -1; }  /* последняя плашка при нечётном числе услуг — на всю ширину (класс ставит front-page.php) */

/* =========================================================
   About
   ========================================================= */
.about {
  display: flex;
  align-items: center;
  gap: 114px;
  padding: 75px var(--edge);        /* слева текст, справа диаграмма — по краям белых плашек «Услуг» */
}
.about__media {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 530px;
  border-radius: 22px 0 0 100px;    /* зеркально: картинка у правого края */
}
.about__chart { position: absolute; inset: 0; display: block; width: 100%; height: 100%; } /* диаграмма — assets/about-timeline.js */
.about__media img {
  position: absolute;
  left: 52px;
  top: 84px;
  width: 483px;
  height: 362px;
  object-fit: cover;
}
.about__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 37px;
  width: 537px;
  min-height: 500px;
}
.about__heading { width: 100%; font-weight: 700; }
.about__label,
.about__since { font-size: 24px; line-height: 1.4; color: var(--c-light); }
.about__title { font-size: 48px; line-height: 1.247; color: var(--c-navy); }
.about__since { margin-top: -11px; text-align: right; }
.about__text {
  max-width: 504px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.48px;
  color: var(--c-gray);
}
.about__text p + p { margin-top: 10px; }
.about__text p:last-child { margin-top: 22px; }

/* =========================================================
   Why us
   ========================================================= */
.why {
  max-width: var(--container);
  margin: 0 max(20px, calc((100% - var(--container)) / 2));
  padding: 60px var(--svc-pad) 126px;
  border-radius: var(--radius-card);
  background: var(--c-bg-gray);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px 88px;
  margin-top: 60px;
}
.why__item { display: flex; flex-direction: column; gap: 20px; }
.why__title { font-weight: 700; font-size: 24px; line-height: 1.4; }
.why__text {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.48px;
  opacity: .5;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {                          /* фон во всю ширину, контент — по ширине сайта */
  min-height: 982px;
  margin: 60px 0 0;
  padding: 127px var(--edge) 64px;
  background: var(--c-navy);
  color: var(--c-white);
}
.footer__form-wrap { padding: 0 0 87px; }
.footer__title {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.247;
}
.form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
  margin-top: 80px;
}
.form__fields { display: flex; gap: 113px; }
.field { display: flex; flex-direction: column; width: 446px; }
.field__label {
  font-family: var(--ff-alt);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
}
.field__input {
  height: 38px;
  padding: 18px 0 0;
  border: 0;
  border-bottom: 1px solid var(--c-bg-gray);
  background: transparent;
  color: var(--c-white);
  font-family: var(--ff-alt);
  font-size: 16px;
  outline: none;
}
.field__input:focus { border-bottom-color: var(--c-light); }

.checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  cursor: pointer;
}
.checkbox input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.checkbox__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--c-bg-gray);
  border-radius: 4px;
}
.checkbox input:checked + .checkbox__box {
  background: var(--c-main) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-color: var(--c-main);
}
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--c-light); outline-offset: 2px; }
.checkbox__text {
  max-width: 356px;
  font-family: var(--ff-alt);
  font-size: 14px;
  line-height: 1.25;
}

.footer__bottom {
  padding-top: 61px;
  border-top: 1px solid var(--c-bg-gray);
  font-family: var(--ff-alt);
  font-weight: 700;
  color: var(--c-bg-gray);
}
.footer__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__nav {
  display: flex;
  gap: 30px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.25;
}
.footer__nav a:hover,
.footer__policy:hover,
.footer__phone:hover { color: var(--c-light); }
.footer__row--meta { align-items: center; margin-top: 119px; }
.footer__copy { font-size: 14px; line-height: 1.25; }
.footer__policy {
  position: absolute;
  right: calc(50% - 106px);
  font-size: 14px;
  line-height: 1.25;
}
.footer__phone { font-size: 20px; line-height: 1.25; }

/* =========================================================
   Projects (макет: Figma 5247:323)
   ========================================================= */
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  padding: 60px var(--edge) 20px;
}
.projects__track {                  /* макет Figma 5252:214 — 2 карточки в ряд */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;                    /* по вертикали ×2, по горизонтали ×1,5 */
  width: 100%;
}
.project {                           /* фото сверху с метрикой, белая плашка наезжает на фото */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border-radius: 22px 70px 22px 22px;
  background: var(--c-white);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s;
}
.project:hover { box-shadow: 0 8px 28px rgba(142, 48, 216, .18); }
.project__site a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* вся карточка кликабельна */
.project__media { position: relative; }
.project__img { display: block; width: 100%; height: auto; aspect-ratio: 602 / 318; object-fit: cover; }
.project__metric {
  position: absolute;
  z-index: 1;
  left: 40px;
  top: 22px;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 12px;
  border-radius: 14px;
  background: rgba(142, 48, 216, .85); /* фиолетовая плашка (--c-main) с лёгкой прозрачностью */
  color: var(--c-white);
}
.project__metric span { font-size: 12px; line-height: 1.4; letter-spacing: .03em; }
.project__metric b { font-weight: 800; font-size: 38px; line-height: 1.1; }
.project__body {
  display: flex;
  flex-direction: column;
  padding: 22px 40px 32px;
  border-radius: 0;                  /* верхние углы прямые — ровная граница с фото */
  background: var(--c-white);
}
.project__site { font-weight: 600; font-size: 40px; line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; color: #000; }
.project__text { margin-top: 12px; font-size: 16px; line-height: 1.4; letter-spacing: .03em; color: #000; }
.project__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.project__tags li {
  padding: 2px 6px;
  border: 1px solid var(--c-main);
  border-radius: 10px;
  background: var(--c-white);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .03em;
  color: var(--c-main);
}
.projects__dots { display: none; }
.btn-outline {                       /* secondary button из макета BUTTONS */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 229px;                  /* высота и ширина — как у основных кнопок на странице (.btn--wide) */
  height: 58px;
  padding: 0 24px;
  border: 2px solid var(--c-main);
  border-radius: 100px;
  background: var(--c-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--c-main);
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1.4px;             /* 10% */
  text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--c-light); color: var(--c-light); }
.btn-outline:active { border-color: var(--c-dark); color: var(--c-dark); }
.btn-outline[aria-disabled="true"] { border-color: #e8e8e8; color: #e8e8e8; pointer-events: none; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1400px) {
  .about { gap: 60px; }
  .about__media img { left: 50%; transform: translateX(-50%); width: 72%; height: auto; }
  .about__content { width: auto; flex: 1; }
}

@media (max-width: 1100px) {
  .nav { gap: 24px; }
  :root { --svc-pad: 32px; }
  .services { padding: 48px var(--svc-pad); }
  .card { padding: 36px 28px; }
  .project__body { padding-left: 28px; padding-right: 28px; }
  .project__metric { left: 28px; }
  .project__site { font-size: 32px; }
  .project__metric b { font-size: 32px; }
  .form__fields { gap: 48px; }
  .field { width: 380px; }
}

@media (max-width: 900px) {
  .section-title, .about__title, .footer__title { font-size: 36px; }
  :root {
    --edge: 28px;                   /* мобайл: край белых плашек (12px поле + 16px padding блока «Услуги») */
    --text-edge: var(--edge);       /* мобайл: текстовые блоки (hero, «Агентство», подвал) — по тому же краю 28px, что и плашки */
  }

  /* Header → бургер */
  .header__inner { padding: 12px var(--edge); height: 68px; }
  .header--scrolled .header__inner { height: 48px; padding-top: 6px; padding-bottom: 6px; }

  .logo { transform: scale(.85); transform-origin: left center; }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: #c9a4ff; border-radius: 2px; transition: transform .3s, opacity .3s, background-color .3s; }
  .burger { margin-left: auto; }

  /* Мобильное меню — светлая панель, выезжает справа налево */
  .header { --hh: 68px; --lh: 45px; }
  .header--scrolled { --hh: 48px; --lh: 36px; }
  body.menu-open { overflow: hidden; }
  .burger { position: relative; z-index: 2; }          /* крестик поверх панели */
  .nav > .nav__logo {                                   /* тёмный логотип панели — на месте логотипа шапки */
    display: block;
    position: absolute;
    top: calc((var(--hh) - var(--lh)) / 2);
    left: var(--edge);
    padding: 0;
    line-height: 0;
    transform: scale(.85);
    transform-origin: left center;
  }
  .nav__logo img { width: auto; height: var(--lh); max-width: none; }
  .header--open .burger span { background: var(--c-main); }
  .nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    overflow-y: auto;
    padding: calc(var(--hh) + 67px) var(--edge) 40px;  /* слева = край логотипа */
    background: #f5f2fb;
    color: var(--c-black);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1), visibility 0s .45s, box-shadow .45s;
  }
  .header--open .nav {
    transform: none;
    visibility: visible;
    box-shadow: -16px 0 40px rgba(40, 10, 80, .18);
    transition: transform .45s cubic-bezier(.22, .61, .36, 1), visibility 0s, box-shadow .45s;
  }
  .nav > a { padding: 11px 0; }
  .nav > a:hover { color: var(--c-dark); }
  .nav__contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 72px;                 /* отступ меню → телефон */
  }
  .nav__phone { font-size: 22px; font-weight: 600; color: var(--c-black); }
  .nav__actions { display: flex; align-items: center; gap: 10px; }
  .nav__icon img { width: 44px; height: 44px; }
  .nav__btn { flex: 1; min-width: 0; height: 48px; margin-left: 8px; }
  .header--open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header--open .burger span:nth-child(2) { opacity: 0; }
  .header--open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Hero */
  /* текст по центру экрана по вертикали, спираль — фоном в правой трети */
  .hero { position: relative; padding-top: 68px; }
  .hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px);  /* hero на весь первый экран (68px — шапка), плашки — ниже сгиба */
    padding: 32px var(--text-edge) 48px;
  }
  .hero__content { position: relative; z-index: 1; width: 100%; max-width: 440px; } /* текст на всю ширину между полями, спираль — фоном */
  .hero__title { font-size: clamp(28px, 8vw, 44px); }
  .hero__text { max-width: 85%; }
  .hero__btn { width: auto; max-width: 100%; padding: 0 8px 0 24px; white-space: nowrap; } /* ширина по тексту */
  .hero__visual { position: static; }   /* спираль — фоном всего первого экрана, как раньше */
  .hero__features { flex-direction: column; gap: 12px; margin: 26px 0 30px; }
  .hero__feature { align-items: center; }
  .hero__feature-txt span { max-width: none; }
  .hero__helix {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 52%;                      /* центр спирали ≈ 90% ширины экрана — текст стал шире, спираль сдвинута к краю */
    width: 76%;
    height: 100%;
    opacity: .45;
    pointer-events: none;
  }

  /* Плашки → слайдер */
  .perks { --perks-pb: 56px; }
  .perks__track {
    display: flex;
    justify-content: flex-start;    /* сброс центрирования с десктопа: иначе лента центруется и первая плашка уезжает за левый край без прокрутки */
    gap: 12px;
    padding: 12px var(--edge);      /* место под тень, симметрично — середина не сдвигается */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--edge);
    scrollbar-width: none;
  }
  .perks__track::-webkit-scrollbar { display: none; }
  .card.perk { flex: 0 0 min(82%, 390px); scroll-snap-align: start; padding: 32px 28px; gap: 24px; } /* не шире 390px */
  .perk__num { font-size: 120px; right: 18px; } /* поля как у плашек «Услуг» */
  .perks__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    left: 0; right: 0; bottom: 22px;
  }
  .perks__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--c-extra-light); transition: background .2s, width .2s; }
  .perks__dots span.is-active { width: 22px; border-radius: 4px; background: var(--c-main); }

  /* Projects — одна карточка в ряд */
  .projects { gap: 28px; }
  .projects__track { grid-template-columns: 1fr; gap: 32px; }
  .project__img { aspect-ratio: 602 / 420; }  /* картинка на 30% выше, чем на десктопе */
  .project { border-radius: 22px 60px 22px 22px; }
  .project__body { padding: 20px 28px 28px; }
  .project__metric { top: 18px; }
  .project__site { font-size: 26px; }
  .project__metric b { font-size: 30px; }

  /* Services */
  .services { margin: 0 12px; padding: 40px 16px; gap: 32px; } /* белые плашки — 28px от края экрана */
  .services__grid { grid-template-columns: 1fr; }

  /* About */
  .about { flex-direction: column; align-items: stretch; gap: 40px; padding: 60px var(--text-edge); }  /* текст и диаграмма — по линии текста в плашках */
  .about__media { flex: none; width: 100%; height: auto; aspect-ratio: 3 / 4; margin: 0; border-radius: 0; }
  .about__content { min-height: 0; padding: 0; }
  .about__label, .about__since { font-size: 20px; }
  .about__since { margin-top: -6px; }

  /* Why */
  .why { margin: 0 12px; padding: 40px 44px 60px; } /* 12 + 44 = 56 — по линии текста в плашках «Услуг» */
  .why__grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .why__title { font-size: 20px; }

  /* Footer */
  .footer { min-height: 0; margin-top: 60px; padding: 60px var(--text-edge) 40px; }
  .footer__form-wrap { padding: 0 0 60px; }
  .form { gap: 40px; margin-top: 40px; }
  .form__fields { flex-direction: column; gap: 32px; width: 100%; }
  .field { width: 100%; }
  .footer__bottom { padding-top: 40px; }
  .footer__row { flex-direction: column; gap: 24px; }
  .footer__nav { flex-wrap: wrap; gap: 16px 24px; margin-top: 0; }
  .footer__row--meta { align-items: flex-start; gap: 12px; margin-top: 40px; }
  .footer__policy { position: static; }
  .footer__copy { order: 3; font-weight: 400; }
}

@media (max-width: 480px) {
  .section-title, .about__title, .footer__title { font-size: 30px; }
  .hero__text { font-size: 16px; }
  .card__title, .card__price { font-size: 20px; }
  .card { gap: 28px; }
  .btn, .btn--wide { width: 100%; }
  .hero__btn { width: auto; }
}


/* =========================================================
   Страница проекта (project.html; макет Figma: Projekt, плашки — «Для услуги директа текст»)
   ========================================================= */
/* Светлая шапка для страниц с белым первым экраном */
.header--light .nav { color: var(--c-black); }
.header--light::before { opacity: 1; background: rgba(255, 255, 255, .95); box-shadow: 0 4px 20px rgba(0, 0, 0, .08); } /* белая подложка с лёгкой тенью видна всегда, не только при прокрутке */
.header--light .burger span { background: var(--c-main); }

.case-hero {
  position: relative;
  display: flex;
  align-items: flex-start;           /* верх крошек = верх фото (top: 115px) */
  min-height: 725px;                 /* 115 (шапка 80 + воздух) + 610 блок */
  padding: 115px var(--edge) 60px;  /* сверху: от логотипа до крошек/фото ≈52px (×3 от прежних 17); справа — по линии меню */
}
.case-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(700px, calc(100% - min(584px, 40vw) - 48px));   /* текст не заходит под фото */
}
/* Хлебные крошки */
.breadcrumbs { margin: -3px 0 72px; }   /* после крошек 72px (×3 от 24); −3px: компенсация межстрочного, чтобы верх букв совпал с верхом фото */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; letter-spacing: .03em; }
.breadcrumbs li { display: flex; align-items: center; color: var(--c-black); opacity: .5; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.breadcrumbs a { color: inherit; text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--c-main); }
.breadcrumbs li:has(a) { opacity: .6; }
.breadcrumbs li:has(a):hover { opacity: 1; }
.breadcrumbs li[aria-current] { opacity: 1; color: var(--c-main); font-weight: 600; }
.case-hero__label { font-weight: 600; font-size: 40px; line-height: 1.4; letter-spacing: .03em; color: var(--c-light); }
.case-hero__title { font-weight: 800; font-size: 65px; line-height: 1.2; text-transform: capitalize; color: var(--c-black); }
.case-hero__text { margin-top: 30px; font-size: 24px; line-height: 1.4; letter-spacing: .03em; color: var(--c-black); opacity: .6; }
.case-hero__tags { display: flex; flex-wrap: wrap; gap: 24px; margin: 30px 0 0; padding: 0; list-style: none; }
.case-hero__tags a {                 /* плашки — якоря на карточки «Какие задачи решали» */
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--c-white);
  box-shadow: var(--shadow-card);
  font-weight: 700;
  font-size: 16px;                   /* было 18 */
  line-height: 1.4;
  color: var(--c-main);
  text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s;
}
.case-hero__tags a:hover, .case-hero__tags a:focus-visible { background: var(--c-main); color: var(--c-white); }
.task { scroll-margin-top: 44px; }   /* + scroll-padding 56 у html = 100px: карточка не прячется под шапкой */
.case-hero__desc { max-width: 560px; margin-top: 36px; font-size: 16px; line-height: 1.5; letter-spacing: .03em; color: var(--c-black); opacity: .8; }
.case-hero__media {
  position: absolute;
  top: 115px;
  right: var(--edge);                /* фото внутри контейнера, правый край — по линии меню */
  width: min(584px, 40vw);
  height: 550px;
}
.case-hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px 22px 22px 100px; }
.case-hero__media::before {          /* фиолетовая вертикальная линия на краю фото */
  content: "";
  position: absolute;
  z-index: 1;
  left: -5px;
  top: 78px;
  width: 10px;
  height: 156px;
  border-radius: 5px;
  background: var(--c-main);
}

.tasks {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: var(--container);
  margin: 0 max(20px, calc((100% - var(--container)) / 2));
  padding: 60px var(--svc-pad);
  border-radius: var(--radius-card);
  background: var(--c-bg-gray);
}
.tasks__title { align-self: center; max-width: 537px; line-height: 1.25; }
.task {
  display: flex;
  align-items: flex-start;           /* как в макете: текст и картинка от верхнего края */
  justify-content: space-between;
  gap: 40px;
  padding: 48px 40px;
  border-radius: var(--radius-card);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}
.task--reverse { flex-direction: row-reverse; }
.task__content { display: flex; flex-direction: column; gap: 40px; flex: 0 1 630px; min-width: 0; }
.task__title { font-weight: 600; font-size: 40px; line-height: 1.4; letter-spacing: .03em; color: var(--c-black); }
.task__text { margin-top: -20px; font-size: 16px; line-height: 1.4; letter-spacing: .03em; color: var(--c-black); } /* 40 − 20: отступ заголовок → текст 20px */
.task__text p + p { margin-top: 8px; }
.task__text b { font-weight: 700; }
.task__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.task__metric { display: flex; flex-direction: column; color: var(--c-main); }
.task__metric span { font-size: 16px; line-height: 1.4; letter-spacing: .03em; }
.task__metric b { font-weight: 800; font-size: 65px; line-height: 1.35; }
.task__img { flex: 0 1 362px; width: 362px; min-width: 0; height: auto; aspect-ratio: 362 / 300; object-fit: contain; }

.projects--other { margin-top: 120px; }

@media (max-width: 1100px) {
  .case-hero__label { font-size: 32px; }
  .case-hero__title { font-size: 52px; }
  .case-hero__text { font-size: 20px; }
  .case-hero__tags { gap: 12px; }
  .case-hero__tags a { font-size: 15px; }
  .task { padding: 36px 28px; }
  .task__title { font-size: 32px; }
  .task__metric b { font-size: 52px; }
  .task__img { flex-basis: 280px; width: 280px; }
}

@media (max-width: 900px) {
  .case-hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 100px 0 40px; }
  .case-hero__content { width: auto; padding: 0 var(--edge); }   /* мобайл: по линии логотипа и заголовков секций */
  .breadcrumbs { margin-bottom: 48px; }   /* мобайл: отступ после крошек ×3 (было 16) */
  .breadcrumbs ol { font-size: 13px; }
  .case-hero__label { font-size: 24px; }
  .case-hero__title { font-size: 40px; }
  .case-hero__text { margin-top: 16px; font-size: 18px; }
  .case-hero__tags { gap: 10px; margin-top: 20px; }
  .case-hero__tags a { padding: 7px 12px; font-size: 13px; }
  .case-hero__desc { margin-top: 24px; font-size: 15px; }
  .case-hero__media { display: none; }   /* мобайл: фото первого экрана не показываем */

  .tasks { margin: 0 12px; padding: 40px 16px; gap: 24px; }
  .task, .task--reverse { flex-direction: column; align-items: stretch; gap: 28px; padding: 32px 28px; }
  .task__content { flex: none; gap: 28px; }
  .task__title { font-size: 26px; }
  .task__text { margin-top: -16px; }
  .task__metric b { font-size: 44px; }
  .task__img { order: -1; flex: none; width: 100%; max-width: 360px; align-self: center; }
  .projects--other { margin-top: 60px; }
}

/* =========================================================
   Страница услуги (service-seo.html): первый экран, триплашки, цена, этапы, примеры
   Шапка .header--light, крошки и карточки проектов — как на странице проекта
   ========================================================= */
.svc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(440px, 31vw);
  align-items: start;                /* верх крошек = верх картинки, как на странице проекта */
  gap: 0 112px;                      /* по вертикали — 0: отступ под крошками задаёт .breadcrumbs; по горизонтали — воздух между заголовком и картинкой */
  padding: 115px var(--edge) 72px;   /* сверху — как у .case-hero */
}
.svc-hero > .breadcrumbs { grid-column: 1 / -1; }   /* крошки — отдельной строкой над обеими колонками */
.svc-hero__media { margin-top: 3px; }               /* верх картинки = верх букв надзаголовка (компенсация межстрочного) */
.svc-hero__content { display: flex; flex-direction: column; align-items: flex-start; } /* крошки — общее правило .breadcrumbs (отступы как на странице проекта) */
.svc-hero__eyebrow {                 /* надзаголовок: мелкий капс, как подписи кнопок */
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--c-light);
}
.svc-hero__title { margin-top: 16px; font-weight: 800; font-size: clamp(40px, 4.3vw, 62px); /* «SEO‑продвижение» не переносится — размер от ширины, чтобы не наезжать на картинку */ line-height: 1.15; color: var(--c-black); }
.svc-hero__text { max-width: 640px; margin-top: 28px; font-size: 20px; line-height: 1.5; letter-spacing: .02em; color: var(--c-black); opacity: .7; }
.svc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 48px; }
.svc-hero__actions .btn { min-width: 229px; height: 58px; }

/* Иллюстрация «выдача»: карточка в стиле фото проекта (скругление 22/100, фиолетовая линия слева) */
.svc-hero__media { position: relative; }
.svc-hero__media::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -5px;
  top: 64px;
  width: 10px;
  height: 140px;
  border-radius: 5px;
  background: var(--c-main);
}
.serp {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 36px 52px;
  border-radius: 22px 22px 22px 100px;
  background: radial-gradient(420px 300px at 90% 0%, #e8d6f7 0%, #f5f2fb 70%);
}
.serp__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--c-white);
  box-shadow: var(--shadow-card);
  font-size: 15px;
  color: var(--c-black);
}
.serp__bar i {                       /* лупа */
  position: relative;
  width: 16px; height: 16px;
  border: 2px solid var(--c-main);
  border-radius: 50%;
}
.serp__bar i::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 7px; height: 2px; background: var(--c-main); transform: rotate(45deg); }
.serp__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .6);
}
.serp__item > div { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.serp__pos { flex: none; width: 32px; font-weight: 800; font-size: 28px; line-height: 1; color: var(--c-extra-light); }
.serp__url { font-weight: 600; font-size: 15px; color: var(--c-gray); }
.serp__line { display: block; height: 6px; border-radius: 3px; background: #e6e0ef; }
.serp__line--short { width: 60%; }
.serp__item--you { background: var(--c-white); box-shadow: 0 8px 28px rgba(142, 48, 216, .18); transform: scale(1.03); }
.serp__item--you .serp__pos { color: var(--c-main); }
.serp__item--you .serp__url { color: var(--c-main); }
.serp__item--you .serp__line { background: var(--c-extra-light); }
.serp__up { flex: none; padding: 4px 10px; border-radius: 10px; background: var(--c-main); font-weight: 700; font-size: 14px; color: var(--c-white); }

/* Триплашки: те же .perks, но без перехода через границу тёмного hero */
.perks--page { padding-bottom: 0; }
.perks--page::before { display: none; }

/* Цена: ¼ — цена, ½ — текст, остальное — кнопка */
.price {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 40px;
  margin: 100px var(--edge) 0;
  padding: 48px 40px;
  border-radius: var(--radius-card);
  background: #f5f2fb;
}
.price__value { font-weight: 800; font-size: 65px; line-height: 1.1; color: var(--c-main); white-space: nowrap; }
.price__value span { display: block; font-weight: 600; font-size: 24px; line-height: 1.4; color: var(--c-light); }
.price__title { font-weight: 700; font-size: 24px; line-height: 1.4; color: var(--c-black); }
.price__text p { margin-top: 10px; font-size: 16px; line-height: 1.5; letter-spacing: .03em; color: var(--c-black); opacity: .75; }
.price__btn { justify-self: end; min-width: 229px; height: 58px; }

/* Этапы работы: горизонтальные плашки — слева этап и суть, справа список работ */
.stages {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: var(--container);
  margin: 100px max(20px, calc((100% - var(--container)) / 2)) 0;
  padding: 60px var(--svc-pad);
  border-radius: var(--radius-card);
  background: var(--c-bg-gray);
}
.stages__list { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.stage {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  padding: 44px 40px;
  border-radius: var(--radius-card);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
  counter-increment: stage;
}
.stage::after {                      /* крупная цифра этапа — полупрозрачный фон, как у триплашек */
  content: counter(stage);
  position: absolute;
  right: 28px;
  bottom: -.22em;
  font-weight: 800;
  font-size: 150px;
  line-height: 1;
  color: var(--c-main);
  opacity: .07;
  pointer-events: none;
}
.stage__num { font-weight: 700; font-size: 14px; line-height: 16px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--c-light); }
.stage__title { margin-top: 12px; font-weight: 600; font-size: 32px; line-height: 1.3; letter-spacing: .02em; color: var(--c-black); }
.stage__desc { max-width: 420px; margin-top: 16px; font-size: 16px; line-height: 1.5; letter-spacing: .03em; color: var(--c-gray); }
.stage__body { position: relative; z-index: 1; padding-top: 28px; }
.stage__label { font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--c-black); }
.stage__steps { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; }
.stage__steps li {
  position: relative;
  padding-left: 40px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .03em;
  color: var(--c-black);
  counter-increment: step;
}
.stage__steps li::before {           /* номер пункта в фиолетовом кружке */
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-extra-light);
  font-weight: 700;
  font-size: 13px;
  line-height: 26px;
  text-align: center;
  color: var(--c-main);
}
html.js .stage { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }
html.js .stage.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .stage { opacity: 1; transform: none; transition: none; } }

/* Призыв к действию перед примерами проектов */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px 64px;
  margin: 100px var(--edge) 0;
  padding: 56px;
  border-radius: 22px 100px 22px 22px;          /* как у карточек проектов */
  background: radial-gradient(700px 400px at 85% 30%, #4b1d8a 0%, #2a0f4d 45%, #12071f 100%);
  color: #f3ecff;
}
.cta__title { max-width: 720px; font-weight: 800; font-size: 40px; line-height: 1.2; }
.cta__title span { background: linear-gradient(90deg, #c9a4ff, #8f5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta__text p { max-width: 620px; margin-top: 16px; font-size: 18px; line-height: 1.5; color: #b9a6dd; }
.cta__btn { flex: none; }
.cta + .projects--other { margin-top: 40px; }   /* + padding-top 60 у .projects = 100px, как между остальными блоками */

@media (max-width: 1100px) {
  .svc-hero { column-gap: 64px; }
  .svc-hero__title { font-size: clamp(34px, 4.7vw, 52px); }
  .svc-hero__text { font-size: 18px; }
  .serp { padding: 32px 24px 44px; }
  .price { grid-template-columns: auto 1fr; padding: 40px 28px; }
  .price__value { font-size: 52px; }
  .price__btn { grid-column: 1 / -1; justify-self: start; }
  .stage { gap: 32px 48px; padding: 36px 28px; }
  .stage__title { font-size: 28px; }
  .cta { padding: 44px 40px; }
  .cta__title { font-size: 32px; }
}

@media (max-width: 900px) {
  .svc-hero { grid-template-columns: minmax(0, 1fr); padding: 100px var(--edge) 84px; }   /* minmax(0) — содержимое не растягивает колонку за край экрана */
  .svc-hero__content { container-type: inline-size; }   /* 84 + 12 (поле ленты плашек) = 96px после кнопок = 1,5 × отступа перед ними */
  .svc-hero > .breadcrumbs { margin-bottom: 64px; }   /* на треть больше общего мобильного (48px) */
  .svc-hero__eyebrow { font-size: 14px; letter-spacing: 1.4px; }
  .svc-hero__title { margin-top: 12px; font-size: clamp(26px, 8.4vw, 38px); font-size: min(38px, 9cqw); overflow-wrap: break-word; }   /* кегль от ширины колонки: «GEO‑продвижение», «маркетплейсах» влезают целиком от 320px */
  .svc-hero__text { margin-top: 20px; font-size: 16px; }
  .svc-hero__actions { flex-wrap: nowrap; align-items: center; gap: 20px; margin-top: 64px; }   /* кнопки в одну линию; отступ перед ними ×2 */
  .svc-hero__actions .btn { flex: none; width: auto; min-width: 0; padding: 0 18px; font-size: min(14px, calc(5cqw - 2.8px)); }
  .svc-hero__actions .link { font-size: 14px; font-size: min(14px, calc(5cqw - 2.8px)); letter-spacing: .03em; white-space: nowrap; }   /* кегль от ширины колонки — кнопка и ссылка всегда в одну линию в пределах экрана */
  .svc-hero__long { display: none; }   /* на мобильном кнопка «Обсудить» — иначе с «Посмотреть кейсы» не влезает в одну строку */
  .svc-hero__media { display: none; }   /* как на странице проекта: картинку первого экрана на мобильном не показываем */

  .perks--page { padding-bottom: 36px; }
  .perks--page .perks__dots { bottom: 8px; }

  .price { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 48px var(--edge) 0; padding: 32px 28px; container-type: inline-size; }   /* minmax(0) — длинная цена не растягивает карточку */
  .price__btn { margin-top: 20px; }   /* отступ перед кнопкой 40px — ×2 */
  .price__value { font-size: 32px; font-size: min(44px, 10.4cqw); }   /* «40 000 ₽/мес» в одну строку на любой ширине телефона */
  .price__btn { width: 100%; min-width: 0; }

  .stages { margin: 60px 12px 0; padding: 40px 16px; gap: 24px; }
  .stages__list { gap: 12px; }
  .stage { grid-template-columns: 1fr; gap: 0; padding: 32px 28px; }
  .stage::after { font-size: 110px; right: 18px; }
  .stage__title { margin-top: 10px; font-size: 24px; }
  .stage__desc { margin-top: 12px; font-size: 15px; }
  .stage__body { margin-top: 24px; padding-top: 24px; border-top: 1px solid #eee; }
  .stage__label { font-size: 16px; }
  .stage__steps li { font-size: 15px; }
  .stages + .projects--other { margin-top: 60px; }
  .cta { flex-direction: column; align-items: stretch; margin: 48px var(--edge) 0; padding: 36px 28px; border-radius: 22px 60px 22px 22px; }
  .cta__title { font-size: 28px; }
  .cta__text p { font-size: 16px; }
  .cta__btn { width: 100%; min-width: 0; }
  .cta + .projects--other { margin-top: 12px; }
}

@media (max-width: 370px) {         /* узкие телефоны (320–370): кнопки первого экрана в одну линию за счёт кегля */
  .svc-hero__actions { gap: 16px; }
  .svc-hero__actions .btn { padding: 0 14px; font-size: 13px; font-size: min(13px, calc(5cqw - 2.2px)); letter-spacing: 1.2px; }
  .svc-hero__actions .link { font-size: 13px; font-size: min(13px, calc(5cqw - 2.2px)); }
}

/* =========================================================
   Вопросы и ответы (страница услуги): аккордеон на <details name="faq"> — открыт один вопрос
   ========================================================= */
.faq {
  margin-top: 100px;
  padding: 80px var(--edge) 92px;
  background: #f5f2fb;
}
.faq__list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 40px auto 0; }
.faq__item {
  border: 1px solid #ece6f5;
  border-radius: 16px;
  background: var(--c-white);
  transition: box-shadow .2s, border-color .2s;
}
.faq__item[open] { border-color: transparent; box-shadow: 0 16px 42px rgba(142, 48, 216, .12); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--c-black);
  transition: color .2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--c-main); }
.faq__q:focus-visible { outline: 2px solid var(--c-light); outline-offset: -2px; border-radius: 16px; }
.faq__toggle {                       /* плюс в кружке; у открытого вопроса — поворот в крестик */
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c-extra-light);
  transition: background .2s, transform .2s;
}
.faq__toggle::before, .faq__toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 2px;
  background: var(--c-main);
  transform: translate(-50%, -50%);
  transition: background .2s;
}
.faq__toggle::before { width: 13px; height: 2px; }
.faq__toggle::after { width: 2px; height: 13px; }
.faq__item[open] .faq__toggle { background: var(--c-main); transform: rotate(45deg); }
.faq__item[open] .faq__toggle::before, .faq__item[open] .faq__toggle::after { background: var(--c-white); }
.faq__a { max-width: 94%; padding: 0 24px 22px; font-size: 16px; line-height: 1.6; letter-spacing: .02em; color: var(--c-gray); }
.faq__a p + p { margin-top: 10px; }
main:has(> .faq:last-child) + .footer { margin-top: 0; }   /* лавандовый фон блока сразу переходит в подвал */

@media (max-width: 900px) {
  .faq { margin-top: 60px; padding: 56px var(--edge) 60px; }
  .faq__list { gap: 10px; margin-top: 28px; }
  .faq__q { padding: 18px 18px; font-size: 16px; }
  .faq__toggle { width: 30px; height: 30px; }
  .faq__a { max-width: none; padding: 0 18px 18px; font-size: 15px; }
}

/* Уведомление о cookie — плашка внизу экрана */
.cookie {
  position: fixed;
  z-index: 100;
  left: 50%; bottom: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(880px, calc(100% - 32px));
  padding: 18px 20px 18px 28px;
  border-radius: 16px;
  background: var(--c-white);
  box-shadow: 0 12px 40px rgba(39, 42, 48, .18);
  transform: translateX(-50%);
}
.cookie[hidden] { display: none; }
.cookie__text { font-size: 14px; line-height: 1.5; color: var(--c-black); }
.cookie__text a { color: var(--c-main); text-decoration: underline; }
.cookie__btn { flex: none; min-width: 150px; height: 48px; }

@media (max-width: 600px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 14px; bottom: 16px; padding: 18px; }
  .cookie__text { font-size: 13px; }
  .cookie__btn { width: 100%; }
}
