@import url("../fonts/fonts.css");

/* ==========================================================================
   Елена Жирновская — лендинг бизнес-тренера
   Дизайн-токены: цвета и типографика по брендбуку клиента
   ========================================================================== */

:root {
  /* Палитра клиента */
  --ink: #24303a;
  --blue: #005b9a;
  --terra: #cc501d;
  --paper: #faf9f7;
  --white: #fff;

  /* Производные */
  --ink-70: rgba(36, 48, 58, .72);
  --ink-55: rgba(36, 48, 58, .58);
  --blue-soft: rgba(0, 91, 154, .08);
  --blue-line: rgba(0, 91, 154, .18);
  --terra-soft: rgba(204, 80, 29, .08);
  --terra-line: rgba(204, 80, 29, .22);
  --hair: rgba(36, 48, 58, .12);

  /* Типографика */
  --serif: "Literata", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Ритм */
  --pad-x: clamp(20px, 5vw, 96px);
  --pad-y: clamp(48px, 6vh, 88px);
  --maxw: 1440px;
  --radius: 18px;
  --shadow: 0 18px 50px -28px rgba(36, 48, 58, .38);
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, .55vw + 13px, 17px);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* --------------------------------------------------------------- Типографика */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--blue);
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 5.4vw, 78px); }
h2 { font-size: clamp(27px, 3.1vw, 46px); font-weight: 500; }
h3 { font-size: clamp(18px, 1.35vw, 23px); font-weight: 600; line-height: 1.24; }

.lead {
  font-size: clamp(16px, .75vw + 13px, 20px);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 62ch;
  text-wrap: pretty;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after {
  content: "";
  flex: 0 0 clamp(28px, 5vw, 72px);
  height: 1px;
  background: var(--terra-line);
}

.accent { color: var(--terra); }
.muted { color: var(--ink-55); }

/* --------------------------------------------------------------- Раскладка */
.section {
  position: relative;
  padding: calc(var(--pad-y) + 12px) var(--pad-x) var(--pad-y);
  overflow: hidden;
}
.section--paper { background: var(--paper); }
.inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.section-head { max-width: 900px; margin-bottom: clamp(28px, 4vh, 52px); }
.section-head .lead { margin-top: 18px; }

.grid { display: grid; gap: clamp(20px, 2.2vw, 34px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Фирменные дуги */
.arc {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.arc svg { display: block; width: 100%; height: 100%; }
.arc--tr { top: -14vw; right: -12vw; width: 46vw; height: 46vw; }
.arc--bl { bottom: -18vw; left: -14vw; width: 40vw; height: 40vw; }
.section > .inner { position: relative; z-index: 1; }

/* --------------------------------------------------------------- Кнопки */
.btn {
  --btn-bg: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 12px 26px -14px rgba(204, 80, 29, .85);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #b8461a;
  opacity: 0;
  z-index: -1;
  transition: opacity .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(204, 80, 29, .9); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(5px); }

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue-line);
  box-shadow: none;
}
.btn--ghost::after { background: var(--blue-soft); }
.btn--ghost:hover { box-shadow: none; }

.btn--wa { --btn-bg: #23a24d; box-shadow: 0 12px 26px -14px rgba(35, 162, 77, .8); }
.btn--wa::after { background: #1d8b41; }
.btn--tg { --btn-bg: #2ba1dd; box-shadow: 0 12px 26px -14px rgba(43, 161, 221, .8); }
.btn--tg::after { background: #238ab8; background: #2189c0; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------- Шапка */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header.is-stuck {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hair);
  height: 66px;
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__owl { width: 34px; flex: none; }
.brand__owl path, .brand__owl circle, .brand__owl ellipse { stroke: var(--blue); }
.brand__text { border-left: 1px solid var(--blue-line); padding-left: 14px; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.brand__role { font-size: 11.5px; letter-spacing: .04em; color: var(--ink-55); }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 30px); }
.nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-70);
  padding: 6px 2px;
  transition: color .3s var(--ease), transform .3s var(--ease);
  display: inline-block;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--terra); transform: scale(1.06); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--blue-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s;
}
.burger span::before { position: absolute; transform: translateY(-6px); }
.burger span::after { position: absolute; transform: translateY(6px); }
.burger span { position: relative; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: rotate(45deg); }
body.menu-open .burger span::after { transform: rotate(-45deg); }

/* --------------------------------------------------------------- Первый экран */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 40px var(--pad-x);
  overflow: hidden;
}
.hero__body { max-width: 720px; padding-right: clamp(20px, 3vw, 56px); }
.hero h1 { margin: 22px 0 14px; }
.hero__sub {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 30px);
  font-weight: 500;
  line-height: 1.24;
  color: var(--blue);
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero__lead { margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero__media {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 62vh;
}
.hero__frame {
  position: relative;
  width: min(96%, 600px);
  aspect-ratio: 1;
}
.hero__disc {
  position: absolute;
  inset: 0;
  background: var(--blue);
  border-radius: 50%;
  translate: 5% -4%;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 22%;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 40px 80px -46px rgba(36, 48, 58, .7);
}
.hero__ring {
  position: absolute;
  inset: -5.5%;
  border: 1.5px solid var(--terra-line);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  clip-path: polygon(0 0, 62% 0, 62% 100%, 0 100%);
}

/* Метрики */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vh, 48px);
}
.metric {
  border: 1px solid var(--terra-line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, .7);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.metric:hover { transform: translateY(-4px); border-color: var(--terra); background: #fff; }
.metric__num {
  font-family: var(--serif);
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.metric__num span { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); }
.metric__label { font-size: 14px; font-weight: 600; margin-top: 8px; line-height: 1.3; }
.metric__note { font-size: 12.5px; color: var(--ink-55); margin-top: 6px; line-height: 1.35; }

/* --------------------------------------------------------------- Карточки */
.card {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: clamp(22px, 2vw, 32px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-line); }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--blue-soft);
  color: var(--blue);
}
.icon-badge--terra { background: var(--terra-soft); color: var(--terra); }
.icon-badge svg { width: 26px; height: 26px; }

/* Проблемы (секция 2) */
.problems { display: grid; gap: 4px; }
.problem {
  display: flex;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.problem:hover { background: var(--terra-soft); transform: translateX(4px); }
.problem h3 { color: var(--terra); font-size: clamp(16px, 1.1vw, 19px); }
.problem p { margin: 6px 0 0; font-size: 15px; color: var(--ink-70); line-height: 1.5; }

/* Цепочка «как обычно бывает» */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: stretch; }
.chain__item {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.chain__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.chain__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px; top: 50%;
  width: 8px; height: 8px;
  border-top: 1.5px solid var(--blue-line);
  border-right: 1.5px solid var(--blue-line);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}
.chain__item h3 { font-size: 16px; margin-bottom: 8px; }
.chain__item p { font-size: 13px; color: var(--ink-55); margin: 0; line-height: 1.42; }
.chain__item--fail { background: var(--terra); border-color: var(--terra); }
.chain__item--fail h3, .chain__item--fail p { color: #fff; }
.chain__item--fail p { color: rgba(255, 255, 255, .82); }
.chain__item--fail::after { border-color: rgba(255, 255, 255, .5) !important; }

.callout {
  margin-top: clamp(24px, 3vh, 38px);
  display: flex;
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 2vw, 28px) clamp(22px, 2.4vw, 34px);
  background: var(--paper);
  border-left: 3px solid var(--terra);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.section--paper .callout { background: #fff; }
.callout p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.35vw, 23px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--terra);
  text-wrap: pretty;
}

/* Раскладка «фото + контент» */
.split {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
}
.split--rev { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
.split__photo {
  position: relative;
  border-radius: 260px 260px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  background: var(--paper);
}
.split__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Этапы работы */
.steps { display: grid; gap: 6px; }
.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  transition: background .35s var(--ease);
}
.step:hover { background: var(--blue-soft); }
.step__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
}
.step h3 { color: var(--terra); margin-bottom: 8px; }
.step li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink-70);
  line-height: 1.5;
  margin-bottom: 3px;
}
.step li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terra);
}

/* Задачи бизнеса */
.task-card { display: flex; flex-direction: column; gap: 18px; }
.task-card--blue { background: rgba(0, 91, 154, .05); border-color: transparent; }
.task-card--terra { background: var(--terra-soft); border-color: transparent; }
.task-card__head { display: flex; align-items: center; gap: 16px; }
.task-card__head h3 { font-size: clamp(19px, 1.5vw, 25px); font-weight: 600; }
.task-card--terra .task-card__head h3 { color: var(--terra); }
.task-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 11px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-70);
}
.task-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.task-card--terra li::before { background: var(--terra); }

/* Таблица рисков */
.risks { border-top: 1px solid var(--hair); }
.risk {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(16px, 2.4vw, 40px);
  padding: 18px clamp(12px, 1.4vw, 22px);
  border-bottom: 1px solid var(--hair);
  border-left: 3px solid transparent;
  transition: background .35s var(--ease), border-left-color .35s var(--ease), transform .35s var(--ease);
}
.risk:hover { background: var(--paper); border-left-color: var(--terra); transform: translateX(3px); }
.section--paper .risk:hover { background: #fff; }
.risk__head { display: flex; gap: 14px; }
.risk__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  margin-top: 7px;
  flex: none;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.risk:hover .risk__dot { border-color: var(--terra); transform: scale(1.2); }
.risk h3 { font-size: 17px; margin-bottom: 5px; }
.risk p { margin: 0; font-size: 14.5px; color: var(--ink-55); line-height: 1.45; }
.risk__fix { font-size: 15px; color: var(--ink-70); line-height: 1.5; align-self: center; }
.risks__labels {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(16px, 2.4vw, 40px);
  padding: 12px clamp(12px, 1.4vw, 22px);
  background: var(--blue-soft);
  border-radius: 12px 12px 0 0;
}
.risks__labels span {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--blue);
}

/* Кейсы */
.case { display: flex; flex-direction: column; }
.case__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.case__head h3 { color: var(--terra); }
.case__head p { margin: 5px 0 0; font-size: 14px; color: var(--ink-55); line-height: 1.4; }
.case__block + .case__block { margin-top: 14px; }
.case__block b {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--blue);
  margin-bottom: 4px;
}
.case__block p { margin: 0; font-size: 14.5px; color: var(--ink-70); line-height: 1.5; }
.case__more {
  overflow: hidden;
  max-height: 0;
  transition: max-height .55s var(--ease), opacity .4s var(--ease);
  opacity: 0;
}
.case.is-open .case__more { max-height: 1200px; opacity: 1; }
.case__toggle {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--terra);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.case__toggle svg { transition: transform .4s var(--ease); }
.case.is-open .case__toggle svg { transform: rotate(180deg); }

/* Логотипы клиентов */
.logos {
  --gap: clamp(30px, 4vw, 68px);
  position: relative;
  margin: clamp(24px, 3vh, 40px) 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logos__track { display: flex; gap: var(--gap); width: max-content; animation: marquee 46s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos img {
  height: clamp(34px, 3.2vw, 46px);
  width: clamp(110px, 10vw, 150px);
  object-fit: contain;
  flex: none;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .4s var(--ease), opacity .4s var(--ease);
}
.logos img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* Отзывы */
.quote { display: flex; flex-direction: column; }
.quote__mark {
  font-family: var(--serif);
  font-size: 58px;
  line-height: .7;
  color: var(--blue);
  opacity: .28;
  margin-bottom: 10px;
}
.quote p { margin: 0 0 auto; font-size: 15px; line-height: 1.55; color: var(--ink-70); }
.quote__author { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hair); }
.quote__author b { display: block; color: var(--terra); font-size: 15px; }
.quote__author span { font-size: 13.5px; color: var(--ink-55); line-height: 1.35; display: block; }

/* Таймлайн «дорога» */
.timeline { position: relative; padding-left: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 30px; top: 18px; bottom: 18px;
  width: 2px;
  background: repeating-linear-gradient(var(--terra-line) 0 6px, transparent 6px 12px);
}
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(155px, .26fr) 1fr;
  gap: 20px;
  align-items: flex-start;
  padding: 14px 16px 14px 0;
  border-radius: 14px;
  transition: background .35s var(--ease);
}
.tl:hover { background: var(--terra-soft); }
.tl__dot {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  transition: transform .4s var(--ease);
}
.tl:hover .tl__dot { transform: scale(1.07); }
.tl__dot svg { width: 28px; height: 28px; }
.tl h3 { font-size: 19px; }
.tl__year { font-size: 14px; color: var(--terra); font-weight: 600; margin-top: 3px; }
.tl p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-70); }

/* --------------------------------------------------------------- Контакты */
.contact__list { display: grid; gap: 14px; margin: 26px 0 32px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink-70); }
.contact__list li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: .62em;
  flex: none;
}
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.contact__hint { font-size: 14px; color: var(--ink-55); display: flex; gap: 9px; align-items: center; }

.contact__card {
  margin-top: clamp(28px, 4vh, 46px);
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.contact__card .serif { color: #fff; font-size: clamp(19px, 1.7vw, 27px); font-weight: 500; line-height: 1.3; }
.contact__coords { display: grid; gap: 10px; justify-items: start; }
.contact__coords a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 600;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.contact__coords a:hover { opacity: .85; transform: translateX(3px); }
.contact__coords svg { width: 19px; height: 19px; flex: none; opacity: .8; }

/* Форма */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(36, 48, 58, .55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 42px);
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(18px) scale(.98);
  transition: transform .4s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  float: right;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-55);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.modal__close:hover { background: var(--terra-soft); color: var(--terra); }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease);
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field textarea { min-height: 118px; resize: vertical; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--ink-55); line-height: 1.45; margin-bottom: 20px; }
.consent input { margin-top: 3px; accent-color: var(--terra); width: 17px; height: 17px; flex: none; }
.consent a { color: var(--blue); text-decoration: underline; }

.form__status { margin-top: 14px; font-size: 14.5px; display: none; }
.form__status.is-ok { display: block; color: #1d8b41; }
.form__status.is-err { display: block; color: var(--terra); }

/* --------------------------------------------------------------- Подвал */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  padding: 40px var(--pad-x);
  font-size: 14px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
  justify-content: space-between;
}
.footer a { color: rgba(255, 255, 255, .82); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: #fff; }

/* --------------------------------------------------------------- Появление */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- Адаптив */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; padding-right: var(--pad-x); min-height: auto; }
  .hero__body { max-width: none; padding-right: 0; }
  .hero__media { min-height: auto; margin-top: 38px; }
  .hero__frame { width: min(78vw, 440px); }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split__photo { max-width: 420px; margin: 0 auto; aspect-ratio: 3 / 3.6; }
  .contact__card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: calc(var(--header-h) + 14px) var(--pad-x) 28px;
    box-shadow: 0 20px 40px -24px rgba(36, 48, 58, .4);
    transform: translateY(-102%);
    transition: transform .45s var(--ease);
    z-index: -1;
  }
  body.menu-open .nav { transform: none; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--hair); font-size: 17px; }
  .nav a:hover, .nav a.is-active { transform: none; }
  .burger { display: flex; }
  .grid--3, .grid--2, .chain { grid-template-columns: 1fr; }
  .chain__item:not(:last-child)::after {
    right: 50%; top: auto; bottom: -9px;
    transform: translateX(50%) rotate(135deg);
  }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .risk, .risks__labels { grid-template-columns: 1fr; gap: 10px; }
  .risks__labels span:last-child { display: none; }
  .risk__fix {
    padding: 12px 14px;
    background: var(--blue-soft);
    border-radius: 12px;
    font-size: 14.5px;
  }
  .tl { grid-template-columns: 46px 1fr; gap: 14px; }
  .tl__meta { grid-column: 2; }
  .tl p { grid-column: 2; margin-top: 8px; }
  .timeline::before { left: 24px; }
  .tl__dot { width: 46px; height: 46px; }
  .tl__dot svg { width: 22px; height: 22px; }
  .callout { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 560px) {
  .brand__role { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero__cta .btn { width: 100%; }
  .contact__cta .btn { width: 100%; }
  .split__photo { border-radius: 180px 180px var(--radius) var(--radius); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
