/* =========================================================
   Экосистема Квинтэссенция — стили сайта
   Палитра снята с фирменной айдентики (см. assets/).
   ========================================================= */

:root {
  /* цвета бренда */
  --navy:        #252443;
  --navy-2:      #2C2B4B;
  --navy-deep:   #16193A;
  --green:       #32463B;
  --copper:      #946553;
  --copper-dk:   #7A5243;
  --copper-lt:   #D9B2A1;
  --silver:      #E0D7DA;
  --cream:       #FAEFE9;
  --sand:        #F3E6DF;
  --white:       #FFFFFF;

  /* производные */
  --ink:         var(--navy-deep);
  --ink-70:      rgba(22, 25, 58, 0.70);
  --ink-60:      rgba(22, 25, 58, 0.62);
  --ink-45:      rgba(22, 25, 58, 0.45);
  --ink-16:      rgba(22, 25, 58, 0.16);
  --ink-10:      rgba(22, 25, 58, 0.10);
  --on-navy:     var(--cream);
  --on-navy-75:  rgba(250, 239, 233, 0.76);
  --on-navy-60:  rgba(250, 239, 233, 0.62);
  --hairline:    rgba(224, 215, 218, 0.90);
  --hairline-dk: rgba(224, 215, 218, 0.14);

  /* типографика */
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans:  "Golos Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* геометрия */
  --wrap:   1240px;
  --gut:    100px;
  --radius: 4px;
  --pill:   999px;
}

/* ---------- сброс ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; font-family: var(--serif); }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--copper-dk); }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--cream);
}
.skip:focus { left: 12px; top: 12px; }

/* иконки: единый штриховой стиль */
.ico {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--lg { stroke-width: 1.4; }

/* ---------- каркас ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.section { padding: 104px 0; }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--navy  { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 46px;
}
.section__head--single { display: block; }

.section__title {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin-top: 16px;
  max-width: 17ch;
}
.section__title--light { color: var(--cream); max-width: 20ch; }

.section__note {
  max-width: 34ch;
  color: var(--ink-60);
  font-size: 16px;
  line-height: 1.6;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}
.section--navy .eyebrow { color: var(--copper-lt); }
.eyebrow--muted { color: var(--ink-45); }
.eyebrow--faint { color: rgba(250, 239, 233, 0.42); margin-bottom: 4px; }

.eyebrow--dot { display: flex; align-items: center; gap: 10px; }
.eyebrow--dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 34px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--copper); color: var(--cream); }
.btn--primary:hover { background: var(--copper-dk); color: var(--cream); }

.btn--outline {
  border-color: rgba(224, 215, 218, 0.32);
  color: var(--cream);
}
.btn--outline:hover { border-color: var(--copper-lt); color: var(--cream); }
.btn--outline .ico { color: var(--copper-lt); }

.btn--ghost {
  border-color: rgba(217, 178, 161, 0.5);
  color: var(--copper-lt);
}
.btn--ghost:hover { border-color: var(--copper-lt); color: var(--cream); }

.btn--quiet {
  border-color: var(--ink-16);
  color: var(--ink-70);
  background: transparent;
}
.btn--quiet:hover { border-color: var(--copper); color: var(--copper); }

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--hairline-dk);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-stuck { box-shadow: 0 10px 34px rgba(0, 0, 0, 0.26); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 78px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand:hover { color: inherit; }
.brand__mark { width: 34px; height: auto; }
.brand__text { display: flex; flex-direction: column; gap: 2px; font-family: var(--serif); }
.brand__line1 { font-size: 15px; letter-spacing: 0.14em; color: var(--cream); }
.brand__line2 { font-size: 11px; letter-spacing: 0.22em; color: var(--copper-lt); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a {
  font-size: 14px;
  color: var(--on-navy-75);
  transition: color .18s ease;
}
.nav > a:hover { color: var(--cream); }
.nav__mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
}
.header-phone:hover { color: var(--copper-lt); }

.burger {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  background: none;
  border: 1px solid rgba(224, 215, 218, 0.28);
  border-radius: 50%;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  margin: 4px auto;
  background: var(--cream);
  transition: transform .22s ease, opacity .22s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- герой ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
}
.hero__glow {
  position: absolute;
  top: -220px; right: 40px;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(148, 101, 83, 0.30) 0%,
              rgba(148, 101, 83, 0.09) 42%,
              rgba(37, 36, 67, 0) 68%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 92px;
  padding-bottom: 96px;
}
.hero__text { display: flex; flex-direction: column; gap: 30px; flex: 1 1 auto; max-width: 720px; }

.hero__title {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--copper-lt); }

.hero__lead {
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.62;
  color: var(--on-navy-75);
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline-dk);
}
.hero__chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--on-navy-75);
}
.hero__chips .ico { color: var(--copper-lt); }

.hero__mark { flex: 0 0 auto; width: 400px; display: flex; justify-content: center; }
.hero__mark img { width: 340px; }

/* ---------- развилка ---------- */

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

.persona {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 30px 26px 26px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.persona:hover {
  border-color: var(--copper-lt);
  box-shadow: 0 14px 34px rgba(22, 25, 58, 0.08);
  transform: translateY(-2px);
}
.persona[aria-selected="true"] {
  border-color: var(--copper);
  box-shadow: 0 14px 34px rgba(148, 101, 83, 0.16);
}
.persona__ico { flex: none; fill: none; stroke: var(--green); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.persona__title { font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.persona__text { font-size: 15px; line-height: 1.6; color: var(--ink-60); }
.persona__cta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--copper);
}
.persona__cta::after { content: " →"; }
.persona[aria-selected="true"] .persona__cta::after { content: " ✓"; }

.route {
  margin-top: 24px;
  padding: 36px 40px 34px;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius);
}
.route[hidden] { display: none; }

.route__head { position: relative; padding-right: 48px; margin-bottom: 28px; }
.route__title { font-size: 28px; line-height: 1.25; color: var(--cream); margin-top: 10px; }
.route__close {
  position: absolute;
  top: -6px; right: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--hairline-dk);
  border-radius: 50%;
  color: var(--on-navy-60);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.route__close:hover { color: var(--cream); border-color: var(--copper-lt); }
.route__close svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.route__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hairline-dk);
}
.route__cell { display: flex; flex-direction: column; gap: 8px; }
.route__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-lt);
}
.route__value { font-size: 16px; line-height: 1.55; color: var(--cream); }
.route__foot { padding: 22px 0 4px; font-size: 15px; line-height: 1.62; color: var(--on-navy-75); max-width: 70ch; }
.route__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 14px; }
.route__actions .btn--quiet { border-color: var(--hairline-dk); color: var(--on-navy-75); }
.route__actions .btn--quiet:hover { border-color: var(--copper-lt); color: var(--cream); }

/* подсветка рекомендованных карточек */
.card--dir.is-suggested,
.card--format.is-suggested {
  border-color: var(--copper);
  box-shadow: 0 16px 40px rgba(148, 101, 83, 0.16);
}
.card--dir.is-suggested::after,
.card--format.is-suggested::after {
  content: "Для вас";
  position: absolute;
  top: 14px; right: 16px;
  padding: 4px 12px;
  background: var(--copper);
  color: var(--cream);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--pill);
}

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

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 30px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card--dir:hover,
.card--format:hover {
  box-shadow: 0 16px 36px rgba(22, 25, 58, 0.1);
  transform: translateY(-6px);
}

.card--dir { border-top: 3px solid var(--copper); gap: 16px; }
.card--dir.card--green { border-top-color: var(--green); }
.card__num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--copper);
}
.card--green .card__num { color: var(--green); }
.card__title { font-size: 27px; line-height: 1.22; }
.card__title--light { color: var(--cream); }
.card__kicker { font-size: 15px; font-weight: 500; color: var(--copper); }
.card__lead { font-size: 15px; line-height: 1.62; color: var(--ink-60); }
.card__lead--light { color: var(--on-navy-75); }

.list { display: flex; flex-direction: column; gap: 10px; }
.list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.55;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--copper-lt);
}

.card--invite {
  justify-content: space-between;
  gap: 24px;
  background: var(--navy);
  border-color: var(--navy);
}

.formats .card--format { padding: 40px 34px; }
.card--accent { border-color: var(--copper); }
.badge {
  position: absolute;
  top: -13px; left: 34px;
  padding: 5px 14px;
  background: var(--copper);
  color: var(--cream);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--pill);
}

.tags {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.tags li { font-size: 14px; color: var(--ink-70); }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  padding: 22px 28px;
  background: rgba(50, 70, 59, 0.06);
  border-left: 2px solid var(--green);
  border-radius: 2px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-70);
}
.callout .ico { color: var(--green); margin-top: 2px; }

/* ---------- искусственный интеллект (направление 05) ---------- */

.ai__glow {
  position: absolute;
  bottom: -340px; left: -140px;
  width: 740px; height: 740px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 70, 59, 0.5) 0%, rgba(37, 36, 67, 0) 66%);
  pointer-events: none;
}
.ai__inner { position: relative; display: flex; gap: 72px; align-items: flex-start; }
.ai__text { flex: 0 0 440px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ai__lead { font-size: 17px; line-height: 1.66; color: var(--on-navy-75); }

.ai__grid { flex: 1 1 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px;
  background: rgba(250, 239, 233, 0.05);
  border: 1px solid var(--hairline-dk);
  border-radius: var(--radius);
}
.tile .ico { color: var(--copper-lt); }
.tile__title { font-size: 21px; line-height: 1.28; color: var(--cream); }
.tile__text { font-size: 14px; line-height: 1.6; color: var(--on-navy-60); }

/* ---------- этапы ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--ink-16);
}
.step__num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--copper-lt); }
.step__title { font-size: 22px; }
.step__text { font-size: 15px; line-height: 1.6; color: var(--ink-60); }

/* ---------- кто ведёт ---------- */

.who {
  padding: 48px 0 64px;
  background: var(--cream);
  border-top: 1px solid var(--ink-16);
}
.who__text { font-size: 17px; line-height: 1.7; color: var(--ink-70); }

/* ---------- заявка ---------- */

.contact { display: flex; gap: 60px; align-items: stretch; }
.contact__form-col { flex: 0 0 520px; display: flex; flex-direction: column; gap: 20px; }
.contact__lead { font-size: 16px; line-height: 1.64; color: var(--ink-60); }
.contact__side { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; }
.contact__side-lead { font-size: 15px; color: var(--ink-60); margin-bottom: 6px; }

.form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.field__input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .18s ease;
}
.field__input--area { height: auto; padding: 16px 20px; resize: vertical; line-height: 1.55; }
.field__input::placeholder { color: var(--ink-45); }
.field__input:focus { outline: none; border-color: var(--copper); }
.field__input.is-invalid { border-color: #A6412F; }

.field__error { font-size: 13px; color: #A6412F; min-height: 0; }
.field__error:empty { display: none; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-60);
}
.check__box { position: absolute; opacity: 0; width: 0; height: 0; }
.check__mark {
  flex: none;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  transition: background-color .16s ease, border-color .16s ease;
}
.check__mark svg { fill: none; stroke: var(--cream); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.check__box:checked + .check__mark { background: var(--copper); border-color: var(--copper); }
.check__box:checked + .check__mark svg { opacity: 1; }
.check__box:focus-visible + .check__mark { outline: 2px solid var(--copper); outline-offset: 3px; }
.check__box.is-invalid + .check__mark { border-color: #A6412F; }

.form__status { font-size: 14px; line-height: 1.55; }
.form__status:empty { display: none; }
.form__status.is-error { color: #A6412F; }
.form__status.is-ok { color: var(--green); }

.channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
.channel:hover { border-color: var(--copper-lt); transform: translateY(-1px); color: inherit; }
.channel .ico { color: var(--copper); }
.channel__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.channel__name { font-size: 16px; font-weight: 500; }
.channel__value { font-size: 15px; color: var(--ink-60); overflow-wrap: anywhere; }

.hours {
  margin-top: auto;
  padding: 26px 28px;
  background: var(--navy);
  border-radius: var(--radius);
}
.hours__title { font-size: 20px; color: var(--cream); margin-bottom: 8px; }
.hours__text { font-size: 14px; line-height: 1.6; color: var(--on-navy-75); }

/* ---------- поп-ап заявки ---------- */

html.no-scroll, html.no-scroll body { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .22s ease;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 25, 58, 0.6);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(22, 25, 58, 0.38);
  padding: 44px 36px 36px;
  transform: translateY(16px) scale(.98);
  transition: transform .28s cubic-bezier(.2, .9, .25, 1);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__panel .form { margin-top: 0; }

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--ink-45);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.modal__close:hover { color: var(--copper); border-color: var(--copper-lt); }
.modal__close svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.modal__title {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.24;
  color: var(--ink);
}
.modal__lead { font-size: 15px; line-height: 1.6; color: var(--ink-60); margin-bottom: 22px; }

@media (max-width: 520px) {
  .modal__panel { padding: 36px 22px 28px; }
}

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

.faq { display: flex; gap: 80px; align-items: flex-start; }
.faq__head { flex: 0 0 360px; }
.faq__list { flex: 1 1 auto; }

.qa { border-top: 1px solid var(--ink-16); }
.qa:last-child { border-bottom: 1px solid var(--ink-16); }
.qa h3 { margin: 0; font: inherit; }

.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  transition: color .18s ease;
}
.qa__q:hover { color: var(--copper); }
.qa__sign { flex: none; fill: none; stroke: var(--copper); stroke-width: 1.6; stroke-linecap: round; }
.qa__bar { transition: opacity .2s ease, transform .2s ease; transform-origin: 12px 12px; }
.qa__q[aria-expanded="true"] .qa__bar { opacity: 0; transform: rotate(90deg); }

.qa__a { padding: 0 0 28px; }
.qa__a[hidden] { display: none; }
.qa__a p { max-width: 72ch; font-size: 15px; line-height: 1.66; color: var(--ink-60); }

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

.footer { background: var(--navy); color: var(--on-navy); padding: 60px 0 40px; }
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 40px;
}
.brand--footer .brand__mark { width: 40px; }
.brand--footer .brand__line1 { font-size: 17px; }
.brand--footer .brand__line2 { font-size: 12px; }

.footer__cols { display: flex; gap: 72px; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14px; color: var(--on-navy-75); }
.footer__col a:hover { color: var(--copper-lt); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline-dk);
  font-size: 13px;
  color: rgba(250, 239, 233, 0.5);
}
.footer__legal a { color: inherit; }
.footer__legal a:hover { color: var(--copper-lt); }

/* ---------- появление при скролле ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- страница политики ---------- */

.doc { max-width: 820px; padding-top: 64px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin-bottom: 12px; }
.doc h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 12px; }
.doc p, .doc li { font-size: 15px; line-height: 1.7; color: var(--ink-70); }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.doc__meta { font-size: 14px; color: var(--ink-45); margin-bottom: 32px; }
.doc__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; font-size: 15px; }

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

@media (max-width: 1180px) {
  :root { --gut: 56px; }
  .nav { gap: 22px; }
  .header-phone { display: none; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__mark { width: 300px; }
  .hero__mark img { width: 260px; }
  .ai__inner { flex-direction: column; gap: 42px; }
  .ai__text { flex: 1 1 auto; max-width: 620px; }
  .ai__grid { width: 100%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { flex-direction: column; }
  .contact__form-col { flex: 1 1 auto; max-width: 560px; }
  .faq { flex-direction: column; gap: 32px; }
  .faq__head { flex: 1 1 auto; }
}

@media (max-width: 900px) {
  :root { --gut: 24px; }

  .section { padding: 64px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
  .section__title { max-width: none; }
  .section__note { max-width: none; }

  /* Шапка на мобильном спрятана над экраном при загрузке и не
     занимает места — выезжает только когда долистали примерно
     до второго блока («С кем мы работаем»). Класс is-revealed
     ставит main.js по прокрутке. */
  .site-header {
    position: fixed;
    inset: 0 0 auto 0;
    transform: translateY(-100%);
    transition: transform .3s ease, box-shadow .25s ease, background-color .25s ease;
  }
  .site-header.is-revealed { transform: translateY(0); }
  html { scroll-padding-top: 16px; }

  .burger { display: block; }
  .header-actions { display: none; }
  .header-inner { min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
  .brand__mark { width: 26px; }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 28px;
    background: var(--navy);
    border-bottom: 1px solid var(--hairline-dk);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > a {
    padding: 16px 0;
    font-size: 16px;
    color: var(--cream);
    border-bottom: 1px solid var(--hairline-dk);
  }
  .nav__mobile-extra { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
  .nav__phone { font-size: 18px; font-weight: 500; color: var(--cream); text-align: center; }

  /* Картинка снова первой, как в исходной вёрстке — место под нее
     нашлось за счёт того, что шапка теперь не занимает места, пока
     её не выехали по скроллу. Слова нигде не меняются, только кегль
     и отступы — так уместили первый экран на iPhone SE (375×667). */
  .hero__inner { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 12px; padding-bottom: 40px; }
  .hero__text { gap: 12px; max-width: none; }
  .hero__glow { top: -160px; right: -180px; width: 620px; height: 620px; }
  .hero__title { font-size: 29px; line-height: 1.16; }
  .hero__lead { font-size: 15.5px; line-height: 1.5; }
  .hero__mark { order: -1; width: 100%; }
  .hero__mark img { width: 112px; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; gap: 8px; padding-top: 0; }
  .hero__actions .btn { width: 100%; height: 46px; }
  .hero__chips { flex-direction: column; gap: 8px; margin-top: 0; padding-top: 8px; }

  .personas { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr; }
  .formats .card--format { padding: 32px 24px; }
  .card { padding: 28px 24px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }

  .route { padding: 28px 24px; }
  .route__grid { grid-template-columns: 1fr; gap: 18px; }
  .route__actions .btn { width: 100%; }

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

  .contact__form-col { flex: 1 1 auto; max-width: none; }

  .qa__q { font-size: 19px; padding: 22px 0; gap: 16px; }

  .footer { padding: 44px 0 32px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__cols { flex-wrap: wrap; gap: 32px 48px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* планшет: не растягиваем карточки на всю ширину */
@media (min-width: 620px) and (max-width: 900px) {
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__chips { flex-direction: row; }
}

/* кнопки-мессенджеры в герое — одной ширины, чтобы короткая
   «MAX» не выглядела огрызком рядом с «Написать в Telegram» */
@media (min-width: 620px) {
  .hero__actions .btn--outline { min-width: 244px; }
}

@media (max-width: 420px) {
  .brand__line1 { font-size: 13px; }
  .brand__line2 { font-size: 9.5px; }
  .brand__mark { width: 28px; }
}

/* ---------- меньше движения ---------- */

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

/* ---------- печать ---------- */

@media print {
  .site-header, .burger, .hero__glow, .ai__glow, .btn, .form { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
}
