/* ============================================================
   Пешехонова Консалт — страницы услуг (общий шаблон)
   Консультации, Регистрация, Минпромторг, Обучение, Онлайн-бизнес (дальше — Сопровождение, Субсидии, Тендеры).
   Макеты: design/source/*.pdf (артборд 1920 px), контейнер 1176 px.
   Кегли сняты по высоте заглавных букв рендера макета (шрифт сайта — Inter).
   Страницы собирает tools/build_service_pages.mjs из content/services.json и content/pages/*.json.
   ============================================================ */

:root {
  /* 1176px — ширина контента в макете (1920 − 2×372) */
  --shell: 1224px;

  --ink: #181d27;
  --ink-soft: #3d444d;
  --muted: #6b7278;
  --muted-2: #9aa3ac;

  --accent: #72aaca;
  --accent-dark: #4e819f;

  --bg: #f4f8fb;
  --card: #fff;
  --neutral: #f0f0f0;
  --pill: #dceaf3;
  --line: #e4e9ed;

  --dark: #313131;

  --r-block: 48px;
  --r-card: 20px;
  --r-field: 20px;

  --hero: linear-gradient(97deg, #253641 0%, #2b3f4b 33%, #375060 62%, #456578 85%, #4d7288 100%);
  --site-flow: linear-gradient(105deg, #fff 0%, #c2f0ec 25%, #72abca 50%, #c2f0ec 75%, #fff 100%);

  --ease: cubic-bezier(.32, .72, 0, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

@keyframes brand-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- логотип: перелив сквозь маску (фирменный приём Стратега) ---------- */

.brand-logo {
  display: block;
  aspect-ratio: 109.5 / 52;
  background: var(--site-flow);
  background-size: 220% 100%;
  animation: brand-flow 7s ease-in-out infinite;
  -webkit-mask: url("img/logo.svg?v=cefadf81") center / contain no-repeat;
  mask: url("img/logo.svg?v=cefadf81") center / contain no-repeat;
}

/* ---------- кнопки ---------- */

.btn {
  --h: 60px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: var(--h);
  padding: 0 8px 0 28px;
  border: 0;
  border-radius: calc(var(--h) / 2);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s;
}
.btn--sm { --h: 46px; padding: 0 6px 0 22px; gap: 14px; font-size: 15px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--light { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 30, 40, .10); }
.btn--light:hover { box-shadow: 0 10px 26px rgba(10, 25, 35, .22); }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { box-shadow: 0 8px 20px rgba(20, 30, 40, .14); }

.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #3d3d3d; }

.btn--outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 1px #c9d2d9, 0 8px 20px rgba(20, 40, 55, .10); }

.btn__ic {
  display: grid;
  place-items: center;
  width: calc(var(--h) - 16px);
  height: calc(var(--h) - 16px);
  border-radius: 50%;
  flex: none;
}
.btn--sm .btn__ic { width: calc(var(--h) - 12px); height: calc(var(--h) - 12px); }
.btn__ic--blue { background: var(--accent); color: #fff; }
.btn__ic--dark { background: #23282d; color: #fff; }
.btn__ic--ghost { background: rgba(255, 255, 255, .16); color: #fff; }
.btn__ic--ghost-dark { background: #eceff1; color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  background: var(--hero);
  border-radius: 0 0 var(--r-block) var(--r-block);
  color: #fff;
  overflow: hidden;
  padding-bottom: 88px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 55%;
  height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(160, 205, 230, .16), rgba(160, 205, 230, 0) 70%);
  pointer-events: none;
}

/* фото под затемнением: непрозрачность затемнения снята регрессией по рендеру макета
   (0,97 у левого края → 0,71 у правого), кадр по центру — как в макете */
.hero--photo { background: #2a3c47; }
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero--photo::after {
  inset: 0;
  height: auto;
  background: linear-gradient(90deg, rgba(40, 57, 67, .97) 0%, rgba(37, 54, 65, .9) 36%, rgba(38, 59, 72, .85) 51%,
    rgba(47, 72, 84, .82) 66%, rgba(45, 72, 88, .74) 80%, rgba(54, 84, 101, .71) 100%);
}
@media (max-width: 760px) {
  .hero--photo::after { background: rgba(37, 54, 65, .9); }
}

/* декоративные листы: положение и поворот — с макета, реагируют на курсор */
.hero__sheets {
  position: absolute;
  inset: 0;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  pointer-events: none;
}
.hero__sheet {
  position: absolute;
  left: calc(var(--x) * 1px + 24px);
  top: calc(var(--y) * 1px);
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  margin: calc(var(--h) * -.5px) 0 0 calc(var(--w) * -.5px);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px rgba(0, 0, 0, .16);
  rotate: calc(var(--r) * 1deg);
  translate: var(--tx, 0px) var(--ty, 0px);
  animation: sheet-float calc(var(--d, 7) * 1s) calc(var(--dl, 0) * -1s) ease-in-out infinite;
  will-change: translate, transform;
}
@keyframes sheet-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1.2deg); }
}

/* header */

.header { position: relative; z-index: 3; }

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 96px;
}
.header__cta { justify-self: end; }

.logo { justify-self: start; }
.logo .brand-logo { width: 107px; }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  font-size: 16.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__link:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .45); }
.nav__link.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.nav__chev { margin-top: 2px; }

/* наведение на пункт меню — по слову проходит волна градиента сайта за 5 с (класс ставит
   service.js, цикл доигрывает до конца; в начале и в конце волны — цвет пункта, без скачка) */
.nav__link.is-flow {
  --flow: linear-gradient(90deg, #fff 0 30%, #c2f0ec 42%, #72abca 50%, #c2f0ec 58%, #fff 70% 100%);
  background: var(--flow) 100% 50% / 300% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: nav-flow 5s ease-in-out;
}
.nav__link.is-active.is-flow {
  --flow: linear-gradient(90deg, #72aaca 0 30%, #c2f0ec 42%, #fff 50%, #c2f0ec 58%, #72aaca 70% 100%);
}
.nav__link:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 4px; border-radius: 2px; }
@keyframes nav-flow {
  from { background-position: 100% 50%; }
  to { background-position: 0% 50%; }
}

/* «Услуги ▾» — в макете стрелка у пункта; раскрываем список страниц услуг */
.nav__drop { position: relative; }
.nav__drop .nav__chev { transition: rotate .3s var(--ease); }
.nav__drop:hover .nav__chev,
.nav__drop:focus-within .nav__chev { rotate: 180deg; }
.nav__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 5;
  display: grid;
  min-width: 250px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 30, 42, .22);
  opacity: 0;
  visibility: hidden;
  translate: -50% 14px;
  transition: opacity .25s, translate .35s var(--ease), visibility 0s .35s;
}
/* мостик над меню: курсор не теряет наведение по пути вниз */
.nav__menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav__drop:hover .nav__menu,
.nav__drop:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  translate: -50% 8px;
  transition: opacity .25s, translate .35s var(--ease), visibility 0s;
}
.nav__menu a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav__menu a:hover,
.nav__menu a:focus-visible { background: var(--bg); color: var(--accent-dark); outline: none; }
.nav__menu a[aria-current="page"] { color: var(--accent-dark); }

.burger { display: none; }

.mobile-menu { display: none; }

/* hero body */

.hero__body { position: relative; z-index: 1; padding-top: 84px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 26px;
}
.crumbs a:hover { color: #fff; }
.crumbs__cur { color: rgba(255, 255, 255, .8); }

.hero__title {
  margin: 0 0 18px;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.hero__lead {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, .95);
}

.hero__text {
  margin: 0 0 40px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .62);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.chips { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 13px 23px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
}
.chips b { font-weight: inherit; color: #8cc0e0; }
.hero--photo .chips li { background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ============================================================
   общие блоки секций
   ============================================================ */

.section { padding: 100px 0; }
.section--steps { padding-top: 100px; padding-bottom: 100px; }
.section--form { padding: 128px 0 100px; }
.section--faq { padding-bottom: 120px; }
/* карточка со списком: отступы сняты с «Обучения» и «Онлайн-бизнеса» (до карточки 174, между карточками 117) */
.section--card { padding: 74px 0 70px; }
.section--card + .section--card { padding-top: 47px; }
/* в «Онлайн-бизнесе» форма стоит сразу под карточками сроков */
.section--timing + .section--form { padding-top: 0; }

.eyebrow {
  display: flex;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--muted-2);
}
.eyebrow span { color: #c4ccd3; }

.h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
/* «Как мы работаем», «Что ещё может быть полезно», «Частые вопросы» — в макетах крупнее (44 px) */
.h2--plain { margin-bottom: 46px; font-size: 44px; line-height: 1.12; }

.section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}
.section__head .btn { flex: none; margin-top: 6px; }

/* ============================================================
   аккордеон «Что входит в услугу»
   ============================================================ */

.acc { display: grid; gap: 12px; }

.acc__item {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(23, 44, 60, .04);
  transition: box-shadow .25s;
}
.acc__item:hover { box-shadow: 0 6px 22px rgba(23, 44, 60, .07); }

.acc__head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 17px;
  width: 100%;
  padding: 25px 28px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.acc__head .badge { margin-right: 2px; }

.acc__num { font-size: 13px; font-weight: 500; color: var(--accent); }

.acc__title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

.badge {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  color: #6b7278;
  white-space: nowrap;
}

.acc__plus {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  flex: none;
  transition: background-color .2s, transform .35s var(--ease);
}
.acc__plus--bare { background: none; width: 26px; height: 26px; }
.acc__plus::before,
.acc__plus::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  background: #2b3138;
  border-radius: 1px;
  transition: opacity .25s, rotate .35s var(--ease);
}
.acc__plus::before { width: 13px; height: 1.6px; }
.acc__plus::after { width: 1.6px; height: 13px; }
.acc__head:hover .acc__plus { background: #e5edf3; }

.acc__item.is-open .acc__plus,
.faq__item.is-open .acc__plus { rotate: 180deg; }
.acc__item.is-open .acc__plus::after,
.faq__item.is-open .acc__plus::after { opacity: 0; }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.acc__item.is-open > .acc__panel,
.faq__item.is-open > .acc__panel { grid-template-rows: 1fr; }
.acc__panel-in { overflow: hidden; }

.acc__desc {
  margin: 0 28px 22px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0 16px 16px;
}
/* без «Для кого» — две плашки, как в макете «Онлайн-бизнес»: результат шире срока */
.facts--2 { grid-template-columns: minmax(0, 572fr) minmax(0, 328fr) minmax(0, 236fr); }
.fact {
  padding: 18px 20px 22px;
  border-radius: 16px;
  background: var(--bg);
}
.fact__label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.fact__value { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink-soft); }

/* ============================================================
   карточка-список «Кому подойдёт», «После обучения вы будете»
   ============================================================ */

.lcard {
  padding: 33px 44px 36px;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(23, 44, 60, .04);
}
.lcard .eyebrow { margin-bottom: 28px; }
.lcard .h2 { margin-bottom: 26px; font-size: 34px; }
/* «После обучения вы будете» — тёмная карточка в градиенте героя */
.lcard--dark { background: var(--hero); color: #fff; box-shadow: none; }
.lcard--dark .eyebrow { color: rgba(255, 255, 255, .6); }
.lcard--dark .eyebrow span { color: rgba(255, 255, 255, .45); }
.lcard--dark .checks li { color: rgba(255, 255, 255, .94); }

.checks { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.checks li {
  position: relative;
  padding-left: 40px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%235a90b4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ============================================================
   сравнение «Без документов / С нашей защитой»
   ============================================================ */

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compare__col {
  padding: 32px 44px 33px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(23, 44, 60, .04);
}
.compare__col--good { background: var(--hero); color: #fff; box-shadow: none; }
.compare__title { margin: 0 0 22px; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.compare__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.compare__list li {
  position: relative;
  padding-left: 40px;
  font-size: 16px;
  line-height: 1.5;
  color: #8b8f93;
}
.compare__list li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f7e2e0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 4l4 4M8 4L4 8' stroke='%23d64541' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.compare__col--good .compare__list li { color: rgba(255, 255, 255, .94); }
.compare__col--good .compare__list li::before {
  background: #dceaf3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%235a90b4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ============================================================
   сроки «Сколько это займёт»
   ============================================================ */

.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tcard {
  padding: 28px 28px 25px;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(23, 44, 60, .04);
}
.tcard__value { margin: 0 0 17px; font-size: 27px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: #5a93b6; }
.tcard__text { margin: 0; font-size: 15px; line-height: 22px; color: #8b8f93; }

/* ============================================================
   этапы работы
   ============================================================ */

.section--steps .h2--plain { margin-bottom: 60px; }

.steps { margin: 0; padding: 0 0 0 4px; list-style: none; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: start;
  gap: 24px;
  padding-bottom: 42px;
}
.step:last-child { padding-bottom: 0; }

.step::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: -6px;
  width: 1px;
  background: var(--line);
}
.step:last-child::before { display: none; }

.step__dot {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 500;
  color: #9aa3ac;
}

.step__body { padding-top: 7px; }
.step__title { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.step__text { margin: 0; max-width: 640px; font-size: 15px; line-height: 1.55; color: var(--muted); }

.pill {
  margin-top: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pill);
  font-size: 12px;
  color: #3f637a;
  white-space: nowrap;
}

/* ============================================================
   форма
   ============================================================ */

.form {
  width: 100%;
  max-width: 568px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 32px;
  background: var(--neutral);
}

.form__field + .form__field { margin-top: 12px; }

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-field);
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 86px; resize: vertical; line-height: 1.5; }

.form ::placeholder { color: #b3b3b3; }

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(114, 170, 202, .18);
}
.form .is-invalid { border-color: #d98a8a; }

.consent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 2px 20px;
  cursor: pointer;
  font-size: 13px;
  color: #8a8a8a;
}
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fff;
  color: transparent;
  flex: none;
  transition: background-color .2s, color .2s;
}
.consent input:checked + .consent__box { background: var(--accent); color: #fff; }
.consent input:focus-visible + .consent__box { box-shadow: 0 0 0 3px rgba(114, 170, 202, .35); }
.consent__text a { color: #8a8a8a; text-decoration: underline; text-underline-offset: 2px; }
.consent__text a:hover { color: var(--ink); }

.form__submit {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s, box-shadow .25s;
}
.form__submit:hover { background: #649cbd; box-shadow: 0 10px 24px rgba(114, 170, 202, .35); }

.form__note { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: #5f6b73; text-align: center; }
.form__note.is-ok { color: #3f7a53; }

/* ============================================================
   смежные услуги
   ============================================================ */

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.rcard {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-height: 255px;
  padding: 26px 24px 28px;
  border-radius: var(--r-card);
  background: var(--neutral);
  transition: background-color .25s, transform .25s var(--ease);
}
.rcard:hover { background: #eaecee; transform: translateY(-3px); }

.rcard__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 16px; }
.rcard__title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.rcard__text { margin: 0; font-size: 15px; line-height: 1.5; color: #8b8f93; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 2px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: color .2s;
}
.faq__head:hover { color: var(--accent-dark); }

.faq__text {
  margin: 0 120px 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  position: relative;
  margin-top: 40px;
  padding: 88px 0 28px;
  border-radius: var(--r-block) var(--r-block) 0 0;
  background:
    radial-gradient(62% 86% at 97% 6%, rgba(114, 170, 202, .30), rgba(114, 170, 202, 0) 68%),
    var(--dark);
  color: #fff;
  overflow: hidden;
}

.footer__cta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer__kicker { margin: 0 0 14px; font-size: 15px; color: rgba(255, 255, 255, .5); }

.footer__title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.footer__title em { font-style: normal; color: var(--accent); }

.footer__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; flex: none; }

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  transition: color .2s;
}
.footer__link .btn__ic { width: 34px; height: 34px; }
.footer__link:hover { color: #fff; }
.footer__link:hover .btn__ic { background: rgba(255, 255, 255, .26); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  padding: 68px 0 44px;
}

.footer__logo { display: block; width: 137px; margin-bottom: 28px; }
.footer__about { margin: 0 0 30px; max-width: 300px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .58); }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .85);
  transition: background-color .2s, color .2s;
}
.socials a:hover { background: var(--accent); color: #fff; }

.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__colhead {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}
.footer__col a, .footer__col span { font-size: 15px; color: rgba(255, 255, 255, .78); overflow-wrap: anywhere; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__col a[aria-current="page"] { color: var(--accent); }
.footer__col span { color: rgba(255, 255, 255, .55); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: rgba(255, 255, 255, .42);
}
.footer__bottom p { margin: 0; }
.footer__bottom a { transition: color .2s, opacity .2s; }
.footer__bottom a:hover { color: rgba(255, 255, 255, .8); }

/* подпись «Стратега» — как на всех наших сайтах, перелив в цветах сайта Яны */
.by {
  font-weight: 500;
  background: linear-gradient(90deg, #72abca 0%, #c2f0ec 50%, #72abca 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brand-flow 5s ease-in-out infinite;
}
.footer__bottom .by { margin-left: auto; } /* в правом углу — Дима 17.09 */
.footer__bottom .by:hover { opacity: .8; }
.by:focus-visible { outline: 2px solid #c2f0ec; outline-offset: 3px; border-radius: 2px; }

/* ============================================================
   адаптив
   ============================================================ */

@media (max-width: 1180px) {
  .nav { gap: 24px; }
  .nav__link { font-size: 15px; }
  .header__cta { --h: 44px; font-size: 14px; }
  .hero__sheets { opacity: .6; }
}

@media (max-width: 1040px) {
  :root { --r-block: 36px; }

  .header__inner { grid-template-columns: auto 1fr; }
  .nav, .header__cta { display: none; }
  .burger {
    display: grid;
    gap: 5px;
    justify-self: end;
    padding: 10px 6px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .burger span { width: 24px; height: 2px; border-radius: 2px; background: #fff; transition: translate .25s, rotate .25s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { translate: 0 7px; rotate: 45deg; }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { translate: 0 -7px; rotate: -45deg; }

  .mobile-menu {
    display: grid;
    gap: 4px;
    padding: 8px 24px 28px;
    max-width: var(--shell);
    margin: 0 auto;
  }
  .mobile-menu a { padding: 12px 0; font-size: 17px; font-weight: 500; color: rgba(255, 255, 255, .9); }
  .mobile-menu a.is-active { color: var(--accent); }
  .mobile-menu .btn { margin-top: 14px; justify-self: start; }

  .hero__sheets { display: none; }
  .hero__body { padding-top: 56px; }
  .hero { padding-bottom: 64px; }
  .hero__title { font-size: 44px; }

  .section { padding: 76px 0; }
  .section--card { padding: 56px 0 50px; }
  .section--card + .section--card { padding-top: 32px; }
  .h2 { font-size: 30px; }
  .h2--plain { font-size: 36px; }
  .footer__title { font-size: 34px; }
  .lcard .h2 { font-size: 30px; }

  .section__head { flex-direction: column; gap: 24px; }
  .section__head .btn { margin-top: 0; }

  .tcards { grid-template-columns: minmax(0, 1fr); }

  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__cta { flex-direction: column; gap: 32px; }
  .footer__actions { align-items: flex-start; }
}

@media (max-width: 760px) {
  .hero__title { font-size: 36px; }
  .hero__lead { font-size: 18px; }
  .h2 { font-size: 26px; }
  .h2--plain { font-size: 30px; }
  .footer__title { font-size: 28px; }
  .footer { padding-top: 72px; }

  .section__head .h2 br, .hero__lead br { display: none; }
  .acc__head { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 20px 18px; gap: 12px; row-gap: 14px; }
  /* длинные сроки («1–3 дня + сопровождение») на 320 px иначе распирают карточку */
  .acc__head .badge { grid-column: 2; grid-row: 2; justify-self: start; white-space: normal; }
  .acc__plus { grid-column: 3; grid-row: 1; }
  .acc__title { font-size: 17px; }
  .acc__desc { margin: 0 18px 18px; font-size: 16px; }
  .fact__value { font-size: 16px; }
  .facts, .facts--2 { grid-template-columns: minmax(0, 1fr); padding: 0 18px 18px; }
  .fact__value, .acc__desc, .acc__title { overflow-wrap: break-word; }

  .lcard, .compare__col { padding: 28px 22px 30px; }
  .lcard .h2 { font-size: 26px; }
  .compare { grid-template-columns: minmax(0, 1fr); }

  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .step::before { left: 22px; top: 44px; }
  .step__dot { width: 44px; height: 44px; font-size: 13px; }
  .pill { grid-column: 2; margin-top: 12px; justify-self: start; }

  .related { grid-template-columns: minmax(0, 1fr); }
  .rcard { min-height: 0; gap: 22px; }

  .faq__head { font-size: 16px; }
  .faq__text { margin-right: 32px; }

  .form { padding: 22px; border-radius: 24px; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__bottom .by { align-self: flex-end; }
}

@media (max-width: 480px) {
  .footer__actions .btn { justify-content: space-between; }
  .hero__title { font-size: 30px; }
  .h2--plain { font-size: 28px; }
  .btn { --h: 52px; font-size: 15px; padding-left: 22px; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .chips li { font-size: 13px; padding: 10px 18px; border-radius: 24px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Inter шире Onest: на самых узких экранах длинная кнопка иначе вылезает за край */
@media (max-width: 360px) {
  .btn { gap: 10px; padding-left: 18px; font-size: 14px; }
}

/* ============================================================
   лёгкие эффекты — Дима 17.09: «добавь немного эффектов, но без лишнего»
   ============================================================ */

/* появление при прокрутке (html.reveal-on ставит service.js) */
.reveal-on .rv:not(.is-visible) { opacity: 0; }
.rv.is-visible { animation: rv-in .8s var(--ease) var(--rv-delay, 0ms) backwards; }
@keyframes rv-in {
  from { opacity: 0; translate: 0 28px; }
}

@media (hover: hover) {
  /* фото в герое чуть приближается под курсором */
  .hero__photo img { transition: scale 1.6s var(--ease); }
  .hero--photo:hover .hero__photo img { scale: 1.04; }

  /* этап под курсором подсвечивается */
  .step__dot { transition: background-color .35s, color .35s, box-shadow .35s; }
  .step:hover .step__dot { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1px var(--accent); }

  /* карточки сроков приподнимаются */
  .tcard { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
  .tcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(23, 44, 60, .1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .brand-logo, .hero__sheet, .nav__link, .by, .rv { animation: none !important; }
}
