/* ===== Шрифты (локально, без внешних запросов) ===== */
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Токены ===== */
:root {
  --brand-deep: #384959;
  --brand-muted: #6B8AA7;
  --brand-accent: #88BDF1;
  --brand-ice: #BEDDFC;

  /* глубина: тот же серо-синий, затемнённый нейтральной тенью */
  --shade-1: #2f3e4c;
  --shade-2: #27343f;
  --shade-3: #1f2a33;
  --text: #E9F3FE;
  --text-soft: #C3D3E3;
  --text-dim: #A4B8CB;
  --error: #FFB4A8;

  --font-display: "Cormorant", "Times New Roman", serif;
  --font-body: "Onest", "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 152px);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --halo: 0 0 0 1px rgba(136, 189, 241, .16), 0 24px 60px -32px rgba(10, 16, 22, .8);
  --halo-hot: 0 0 0 1px rgba(136, 189, 241, .5), 0 0 42px -6px rgba(136, 189, 241, .35), 0 30px 70px -30px rgba(10, 16, 22, .9);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font: 400 17px/1.6 var(--font-body);
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(56, 73, 89, 0) 0%, rgba(20, 28, 35, .55) 100%),
    var(--brand-deep);
  background-attachment: fixed;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--brand-ice); text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--brand-ice); color: var(--shade-3); border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.section { padding-block: var(--section-y); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--brand-ice);
  text-wrap: balance;
}
.section-lead { margin-top: 20px; max-width: 58ch; color: var(--text-soft); font-size: clamp(1rem, .95rem + .25vw, 1.125rem); }

/* ===== Кнопки ===== */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: rgba(190, 221, 252, .35);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font: 600 1rem/1.2 var(--font-body);
  letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), box-shadow .3s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary {
  --btn-bg: var(--brand-accent); --btn-fg: #15202a; --btn-bd: transparent;
  box-shadow: 0 0 0 1px rgba(190, 221, 252, .4) inset, 0 10px 30px -12px rgba(136, 189, 241, .65);
}
.btn--primary:hover { --btn-bg: var(--brand-ice); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 14px 40px -10px rgba(136, 189, 241, .8); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost:hover { --btn-bd: var(--brand-accent); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { cursor: not-allowed; opacity: .6; box-shadow: none; }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(21, 32, 42, .3); border-top-color: #15202a; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-quiet {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--brand-ice); font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 10px) / 100% 1px no-repeat;
  transition: color .2s var(--ease), background-size .3s var(--ease);
}
.link-quiet:hover { color: #fff; background-size: 40% 1px; }
.link-button { padding: 0; border: 0; background: none; font: inherit; line-height: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; cursor: pointer; }

/* ===== Шапка ===== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.site-header.is-scrolled { background: rgba(39, 52, 63, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(136, 189, 241, .14); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-ice); text-decoration: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: .01em; line-height: 1; color: var(--brand-ice); }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.site-nav__list { display: flex; gap: clamp(18px, 2.4vw, 34px); list-style: none; }
.site-nav__list a { position: relative; color: var(--text-soft); text-decoration: none; font-size: .9688rem; padding-block: 8px; transition: color .2s; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--brand-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav__list a:hover { color: #fff; }
.site-nav__list a:hover::after, .site-nav__list a.is-active::after { transform: scaleX(1); }
.site-nav__list a.is-active { color: var(--brand-ice); }

.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: transparent; color: var(--brand-ice); border: 1px solid rgba(190, 221, 252, .3); border-radius: 999px; font: 500 .9375rem var(--font-body); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.nav-toggle__bars::before { content: ""; position: absolute; top: 6px; }
.nav-toggle__bars { transform: translateY(-3px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 28px var(--gutter) 32px;
    background: rgba(31, 42, 51, .97); backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(136, 189, 241, .14), 0 30px 60px -20px rgba(0, 0, 0, .6);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 4px; }
  .site-nav__list a { display: block; padding: 12px 0; font-size: 1.25rem; font-family: var(--font-display); color: var(--brand-ice); border-bottom: 1px solid rgba(107, 138, 167, .25); }
  .site-nav__list a::after { display: none; }
  .site-nav__cta { align-self: flex-start; }
  .site-header.menu-open { background: rgba(31, 42, 51, .97); }
}

/* ===== Hero ===== */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: min(100svh, 1000px);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(56px, 9vh, 120px);
  overflow: hidden;
}
.hero::after { /* мягкое затухание к следующей секции */
  content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1;
  background: linear-gradient(to bottom, rgba(56, 73, 89, 0), var(--brand-deep));
}
.hero__scene { position: absolute; inset: 0; z-index: -2; }
.hero__svg { width: 100%; height: 100%; }
.hero__layer { transition: transform .9s var(--ease); will-change: transform; }
.hero__content { position: relative; }
.hero__kicker { margin-bottom: 22px; color: var(--brand-accent); font-size: .9375rem; font-weight: 500; letter-spacing: .04em; }
.hero__title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 1.2rem + 6.4vw, 6.75rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--brand-ice);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(20, 28, 35, .45);
}
.hero__lead { margin-top: 28px; max-width: 52ch; color: var(--text-soft); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 40px; }
.br-wide { display: none; }
@media (min-width: 1000px) { .br-wide { display: inline; } .hero__title { max-width: none; font-size: clamp(4rem, 1.6rem + 4.6vw, 6.5rem); } }

/* единственный оркестрованный момент: свет проходит по направляющим к точке схода */
.pulse { stroke-dasharray: 90 1400; stroke-dashoffset: 1490; opacity: 0; animation: pulse 6.5s var(--ease) 1.2s infinite; }
.pulse--late { animation-delay: 4.4s; }
@keyframes pulse {
  0% { stroke-dashoffset: 1490; opacity: 0; }
  10% { opacity: 1; }
  55% { stroke-dashoffset: 700; opacity: 1; }
  70%, 100% { stroke-dashoffset: 660; opacity: 0; }
}
.hero__beacon { transform-origin: 1090px 420px; animation: beacon 6.5s ease-out 1.2s infinite; opacity: 0; }
@keyframes beacon { 0%, 40% { transform: scale(.4); opacity: 0; } 50% { opacity: .8; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
.ray { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 1.6s var(--ease) .1s forwards; }
.ray--edge { animation-duration: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 1023px) and (orientation: portrait), (max-width: 767px) {
  .hero { min-height: auto; align-items: flex-start; padding-top: calc(var(--header-h) + min(58vw, 440px)); }
  .hero__scene {
    inset: 0 0 auto; height: calc(var(--header-h) + min(66vw, 500px));
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
    mask-image: linear-gradient(180deg, #000 70%, transparent);
  }
  .hero__kicker { margin-bottom: 16px; }
}
@media (max-width: 767px) {
  .hero__title { font-size: clamp(2.6rem, 1.6rem + 5vw, 3.4rem); line-height: 1.02; }
}

/* ===== Ценностное предложение ===== */
.value { padding-block: clamp(72px, 9vw, 128px) var(--section-y); }
.value__grid { display: grid; gap: 40px; align-items: end; }
.value__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.3rem, 1.2rem + 4vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em;
  color: var(--brand-ice); text-wrap: balance;
}
.value__aside { position: relative; padding-left: 32px; }
.value__rule { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--brand-accent), rgba(107, 138, 167, 0)); }
.value__rule::before { content: ""; position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-ice); box-shadow: 0 0 14px 3px rgba(136, 189, 241, .6); }
.value__text { color: var(--text-soft); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.65; max-width: 46ch; }
@media (min-width: 960px) { .value__grid { grid-template-columns: 1.25fr 1fr; gap: 80px; } .value__title { max-width: 14ch; } }

/* ===== Направления: 3×2 / 2×3 / 1×6 ===== */
.services { background: linear-gradient(180deg, rgba(31, 42, 51, 0) 0%, rgba(31, 42, 51, .45) 40%, rgba(31, 42, 51, 0) 100%); }
.role-grid { display: grid; grid-template-columns: 1fr; gap: 20px; list-style: none; }
@media (min-width: 768px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1200px) { .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

.role-card {
  --mx: 50%; --my: 0%;
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(56, 73, 89, .9), rgba(39, 52, 63, .95));
  border-radius: var(--r-lg);
  box-shadow: var(--halo);
  overflow: hidden;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.role-card::before { /* направленный свет за курсором */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(136, 189, 241, .16), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.role-card:hover, .role-card:focus-within { box-shadow: var(--halo-hot); transform: translateY(-3px); }
.role-card:hover::before { opacity: 1; }
.role-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--shade-2); }
.role-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.role-card:hover .role-card__media img { transform: scale(1.03); }
.role-card__body { position: relative; z-index: 2; flex: 1; padding: 24px 26px 28px; border-top: 1px solid rgba(136, 189, 241, .14); }
.role-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.625rem; line-height: 1.1; color: var(--brand-ice); }
.role-card__text { margin-top: 10px; color: var(--text-soft); font-size: 1rem; }

/* индивидуальная внутренняя композиция при общем внешнем ритме */
@media (min-width: 768px) {
  .role-card--marketing .role-card__media img, .role-card--leaders .role-card__media img { object-position: 60% 50%; }
}

/* ===== Подход: 4×1 / 2×2 / 1×4 ===== */
.approach-grid { display: grid; grid-template-columns: 1fr; gap: 20px; list-style: none; }
@media (min-width: 768px) { .approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1200px) { .approach-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 28px 34px;
  border-radius: var(--r-md);
  background: rgba(39, 52, 63, .55);
  box-shadow: inset 0 0 0 1px rgba(107, 138, 167, .35);
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.tile::after { /* светящаяся верхняя грань */
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(136, 189, 241, 0), var(--brand-accent), rgba(136, 189, 241, 0));
  opacity: .55; transition: opacity .35s var(--ease);
}
.tile:hover { background: rgba(56, 73, 89, .75); box-shadow: inset 0 0 0 1px rgba(136, 189, 241, .5), 0 0 40px -12px rgba(136, 189, 241, .35); }
.tile:hover::after { opacity: 1; }
.tile__glyph { width: 52px; height: 52px; margin-bottom: 28px; }
.tile__title { font-family: var(--font-display); font-weight: 600; font-size: 1.625rem; line-height: 1.1; color: var(--brand-ice); }
.tile__text { margin-top: 12px; color: var(--text-soft); font-size: 1rem; }

/* ===== Этапы: линия перспективы с четырьмя узлами ===== */
.steps { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 0 0 40px 68px; }
.step:last-child { padding-bottom: 0; }
.step::before { /* вертикальная направляющая на мобильных */
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--brand-accent), rgba(107, 138, 167, .25));
}
.step:last-child::before { display: none; }
.step__node {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--shade-2);
  box-shadow: inset 0 0 0 1px rgba(136, 189, 241, .6), 0 0 24px -4px rgba(136, 189, 241, .45);
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; color: var(--brand-ice);
}
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 1.625rem; line-height: 1.12; color: var(--brand-ice); padding-top: 6px; }
.step__text { margin-top: 10px; color: var(--text-soft); max-width: 34ch; }

@media (min-width: 768px) and (max-width: 1199px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px; }
  .step { padding-bottom: 0; }
  .step::before { display: none; }
}
@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
  .steps::before { /* горизонтальная линия, набирающая свет к последнему этапу */
    content: ""; position: absolute; left: 22px; right: 0; top: 22px; height: 1px;
    background: linear-gradient(90deg, rgba(107, 138, 167, .5), var(--brand-accent) 85%, rgba(190, 221, 252, 0));
  }
  .step { padding: 76px 0 0; }
  .step::before { display: none; }
  .step:last-child .step__node { background: var(--brand-accent); color: #15202a; box-shadow: 0 0 0 6px rgba(136, 189, 241, .18), 0 0 40px 2px rgba(136, 189, 241, .55); }
}

/* ===== Приглашение ===== */
.invite { position: relative; isolation: isolate; padding-block: clamp(110px, 14vw, 200px); overflow: hidden; text-align: center; }
.invite__light {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 60% at 50% 100%, rgba(136, 189, 241, .34), transparent 70%),
    conic-gradient(from 180deg at 50% 100%, transparent 0deg 140deg, rgba(190, 221, 252, .08) 160deg, transparent 172deg, rgba(136, 189, 241, .1) 180deg, transparent 188deg, rgba(190, 221, 252, .08) 200deg, transparent 220deg 360deg),
    linear-gradient(180deg, rgba(31, 42, 51, 0), rgba(31, 42, 51, .6));
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
}
.invite__light::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(900px, 90%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--brand-ice), transparent); }
.invite__inner { display: flex; flex-direction: column; align-items: center; }
.invite__title {
  max-width: 18ch;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.3rem, 1.1rem + 4.6vw, 5rem); line-height: 1.02; letter-spacing: -.015em;
  color: var(--brand-ice); text-wrap: balance;
}
.invite__text { margin: 24px 0 40px; color: var(--text-soft); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }

/* ===== Контакты и форма ===== */
.contacts__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contacts__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } }
.contact-list { margin: 40px 0 0; display: grid; gap: 24px; }
.contact-list__row dt { color: var(--text-dim); font-size: .9375rem; margin-bottom: 6px; }
.contact-list__row dd { margin: 0; }
.contact-link {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.15;
  color: var(--brand-ice); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--brand-accent), var(--brand-accent)) left bottom / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.contact-link:hover { color: #fff; background-size: 100% 1px; }

.form-panel {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(56, 73, 89, .85), rgba(31, 42, 51, .92));
  box-shadow: var(--halo);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.request-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field__label { font-size: .9375rem; font-weight: 500; color: var(--text); }
.req { color: var(--brand-accent); }
.field__input {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: 400 1rem/1.4 var(--font-body); color: var(--text);
  background: rgba(31, 42, 51, .7);
  border: 1px solid rgba(107, 138, 167, .55); border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field__input--area { min-height: 140px; resize: vertical; }
.field__input:hover { border-color: var(--brand-muted); }
.field__input:focus { outline: none; border-color: var(--brand-accent); background: rgba(31, 42, 51, .9); box-shadow: 0 0 0 3px rgba(136, 189, 241, .25); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__error { min-height: 0; color: var(--error); font-size: .875rem; }
.field__error:empty { display: none; }
.field-pair { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-pair__legend { padding: 0; margin-bottom: 4px; color: var(--text-dim); font-size: .875rem; }
@media (min-width: 560px) { .field-pair { grid-template-columns: 1fr 1fr; } .field-pair__legend, .field-pair__error { grid-column: 1 / -1; } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; margin-top: 4px; }
.consent__box { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 2px 0 0; border: 1.5px solid var(--brand-muted); border-radius: 6px; background: rgba(31, 42, 51, .7); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.consent__box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #15202a; border-bottom: 2px solid #15202a; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ease); }
.consent__box:checked { background: var(--brand-accent); border-color: var(--brand-accent); }
.consent__box:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent__box[aria-invalid="true"] { border-color: var(--error); }
.consent__label { color: var(--text-soft); font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.consent .field__error { grid-column: 2; }

.form-status { padding: 18px 20px; border-radius: var(--r-sm); font-size: .9688rem; line-height: 1.5; }
.form-status.is-success { background: rgba(136, 189, 241, .14); box-shadow: inset 0 0 0 1px rgba(136, 189, 241, .5); color: var(--text); }
.form-status.is-error { background: rgba(255, 180, 168, .08); box-shadow: inset 0 0 0 1px rgba(255, 180, 168, .45); color: var(--text); }
.form-status strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--brand-ice); }

/* ===== Подвал ===== */
.site-footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--shade-3); border-top: 1px solid rgba(107, 138, 167, .22); color: var(--text-dim); font-size: .875rem; }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__note { margin-top: 8px; }
.site-footer__contacts { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__contacts a { color: var(--text-soft); text-decoration: none; }
.site-footer__contacts a:hover { color: var(--brand-ice); text-decoration: underline; }
.site-footer__legal { display: grid; gap: 4px; line-height: 1.55; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.site-footer__links a, .site-footer__links .link-button { color: var(--text-soft); }
@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .site-footer__contacts, .site-footer__links { justify-content: flex-end; }
}

/* ===== Cookie ===== */
.cookie {
  position: fixed; z-index: 60;
  left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid; gap: 16px;
  max-width: 560px; padding: 20px 22px;
  background: rgba(31, 42, 51, .97); backdrop-filter: blur(12px);
  border-radius: var(--r-md);
  box-shadow: 0 0 0 1px rgba(136, 189, 241, .3), 0 24px 60px -20px rgba(0, 0, 0, .7);
  color: var(--text-soft); font-size: .9375rem; line-height: 1.5;
}
@media (min-width: 640px) { .cookie { left: auto; right: 24px; bottom: 24px; max-width: 480px; } }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__actions .btn { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }

.cookie-dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--shade-2); color: var(--text); box-shadow: 0 0 0 1px rgba(136, 189, 241, .3), 0 30px 80px -20px rgba(0, 0, 0, .8); }
.cookie-dialog::backdrop { background: rgba(15, 21, 27, .7); backdrop-filter: blur(4px); }
.cookie-dialog__form { display: grid; gap: 20px; padding: 28px; }
.cookie-dialog__title { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--brand-ice); }
.cookie-cat { padding: 16px 18px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px rgba(107, 138, 167, .4); }
.cookie-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cookie-cat__name { font-weight: 600; }
.cookie-cat__state { color: var(--text-dim); font-size: .875rem; }
.cookie-cat__desc { margin-top: 8px; color: var(--text-soft); font-size: .9063rem; }
.cookie-switch { appearance: none; -webkit-appearance: none; position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--shade-3); box-shadow: inset 0 0 0 1px var(--brand-muted); cursor: pointer; transition: background-color .2s; flex: none; }
.cookie-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-dim); transition: transform .2s var(--ease), background-color .2s; }
.cookie-switch:checked { background: var(--brand-accent); }
.cookie-switch:checked::after { transform: translateX(20px); background: #15202a; }
.cookie-switch:disabled { cursor: not-allowed; opacity: .5; }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* ===== Появление при прокрутке (один мягкий приём) ===== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ===== Документ политики ===== */
.doc { padding: calc(var(--header-h) + 56px) 0 96px; }
.doc__inner { max-width: 760px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.05; color: var(--brand-ice); margin-bottom: 24px; }
.doc h2 { font-family: var(--font-display); font-size: 1.75rem; color: var(--brand-ice); margin: 40px 0 12px; font-weight: 600; }
.doc p, .doc li { color: var(--text-soft); }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc__draft { padding: 16px 20px; border-radius: var(--r-sm); background: rgba(255, 180, 168, .08); box-shadow: inset 0 0 0 1px rgba(255, 180, 168, .45); margin-bottom: 32px; color: var(--text); }
.todo { padding: 0 4px; border-radius: 4px; background: rgba(136, 189, 241, .18); color: var(--brand-ice); }

/* ===== Уменьшение движения ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .pulse, .hero__beacon { display: none; }
  .ray { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__layer { transform: none !important; }
}
