/* Лайтек-Плюс — дизайн-система многостраничного сайта. Подключается после styles.css и svet.css.
   Направление: мягкий структурализм — светлая основа, крупная типографика, асимметричная сетка,
   карточки с двойной рамкой, плавающая стеклянная шапка, неспешное движение со своей кривой.
   Правила, которые важнее эффектов: размытие фона только у закреплённых элементов (шапка, меню),
   анимируются только transform и opacity, контраст текста не ниже 4,5:1, всё движение
   выключается при системной настройке «уменьшить движение». */

:root {
  --ease: cubic-bezier(.32, .72, 0, 1);        /* мягкая, «тяжёлая» — для крупных перемещений */
  --ease-out: cubic-bezier(.16, 1, .3, 1);    /* быстрый старт и долгий доезд — для появления */
  --sec-y: clamp(72px, 8vw, 128px);          /* вертикальный воздух между разделами */
  --rb: 28px;                                  /* радиус внешней оболочки карточки */
  --rb-in: calc(var(--rb) - 6px);              /* радиус ядра — концентрично оболочке */
  --island-h: 64px;
  --shadow-soft: 0 30px 60px -40px rgba(16, 60, 100, .35);   /* тень с оттенком фона, не чёрная */
  --z-grain: 1; --z-island: 120; --z-menu: 110; --z-totop: 90;
}

/* ---------- зерно: закреплённый слой, не прокручивается и не мешает кликам ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 2; }

h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---------- плавающая шапка-остров ---------- */
.header, .mobilenav { display: none; }       /* шапка одностраничника в многостраничнике не нужна */
.nav-island {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: var(--z-island);
  width: min(1180px, calc(100% - 28px)); height: var(--island-h);
  display: flex; align-items: center; gap: 20px; padding: 0 10px 0 24px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(16, 34, 46, .07); border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-soft); transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.nav-island.is-scrolled { background: rgba(255, 255, 255, .84); }
.nav-island .logo { margin-right: auto; font-size: 18px; white-space: nowrap; }
.nav-island .logo span { display: none; }
.nav-island__links { display: flex; gap: 4px; }
.nav-island__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-island__links a:hover { color: var(--ink); background: rgba(16, 34, 46, .05); }
.nav-island__links a[aria-current="page"] { color: var(--ink); background: rgba(10, 86, 163, .09); }
.nav-island__cta { flex: 0 0 auto; }
.nav-island .burger { display: none; }

/* ---------- полноэкранное меню: пункты выезжают по очереди ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); display: flex; align-items: center;
  background: rgba(231, 240, 245, .9); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .5s var(--ease), visibility 0s; }
.menu__in { width: min(720px, calc(100% - 48px)); margin: 0 auto; padding: calc(var(--island-h) + 40px) 0 40px; display: flex; flex-direction: column; }
.menu__link, .menu__foot {
  transform: translateY(40px); opacity: 0;
  transition: transform .7s var(--ease-out), opacity .7s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms);
}
.menu.is-open .menu__link, .menu.is-open .menu__foot { transform: none; opacity: 1; }
.menu__link {
  font-size: clamp(28px, 6vw, 48px); line-height: 1.1; letter-spacing: -.02em; padding: 10px 0;
  border-bottom: 1px solid rgba(16, 34, 46, .08); color: var(--ink);
}
.menu__link[aria-current="page"] { color: var(--ice); }
.menu__foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; color: var(--ink-2); }
.menu__foot a { font-size: 22px; color: var(--ink); }

/* ---------- кнопки: пилюля со вложенной стрелкой ---------- */
.btn { transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn__ico {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 30px; height: 30px; margin-right: -14px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ice); font-size: 15px; line-height: 1;
  transition: transform .5s var(--ease);
}
.btn--ghost .btn__ico { background: rgba(10, 86, 163, .08); }
.btn:hover .btn__ico { transform: translate(2px, -2px) scale(1.06); }
.btn--main::after { content: none; }          /* стрелка из светлой темы заменена на вложенную */

/* ---------- эйбрау-метка перед заголовком ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  width: fit-content; justify-self: start;
  background: rgba(10, 86, 163, .08); color: var(--ice);
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}

/* ---------- разделы ---------- */
.sec { padding: var(--sec-y) 0; }
.sec--tint { background: linear-gradient(180deg, rgba(220, 234, 242, .55), rgba(231, 240, 245, 0)); }
.sec__head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec__head h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 400; }
.sec__head p { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); max-width: 60ch; }

/* ---------- первый экран внутренних страниц ---------- */
.phero { padding: calc(var(--island-h) + clamp(64px, 9vw, 132px)) 0 clamp(48px, 6vw, 96px); position: relative; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.phero h1 { font-size: clamp(44px, 7.2vw, 112px); line-height: .96; letter-spacing: -.025em; font-weight: 400; margin-top: 20px; }
.phero .lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 52ch; margin-top: 0; }
.phero + .sec { padding-top: 0; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* первый экран главной: плавающая шапка закреплена сверху, иначе она перекроет заголовок */
.hero { padding-top: calc(var(--island-h) + clamp(56px, 7vw, 96px)); }
.glass { display: block; color: inherit; }
/* белый текст на синей метке был прописан в svet.css только внутри мобильного медиазапроса — на компьютере текст выходил тёмным */
.glass .glass__pill { background: var(--ice); color: #fff; }

/* ---------- хлебные крошки ---------- */
.crumbs { position: absolute; top: calc(var(--island-h) + 34px); left: 0; right: 0; }
.crumbs ol { width: 100%; max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--s3); display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ice); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- карточка с двойной рамкой: оболочка и ядро ---------- */
.bezel { padding: 6px; border-radius: var(--rb); background: rgba(16, 34, 46, .035); border: 1px solid rgba(16, 34, 46, .06); }
.bezel__core {
  height: 100%; border-radius: var(--rb-in); background: #fff; padding: clamp(24px, 2.6vw, 36px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--shadow-soft);
  transition: transform .6s var(--ease);
}
a.bezel { display: block; color: inherit; }
a.bezel:hover .bezel__core { transform: translateY(-4px); }
.bezel__core h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.015em; font-weight: 500; margin-bottom: 10px; }
.bezel__core p { color: var(--ink-2); font-size: 15px; }
.bezel__media { margin: calc(-1 * clamp(24px, 2.6vw, 36px)) calc(-1 * clamp(24px, 2.6vw, 36px)) 24px; overflow: hidden; border-radius: var(--rb-in) var(--rb-in) 0 0; background: #EDF3F7; }
.bezel__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
a.bezel:hover .bezel__media img { transform: scale(1.04); }
.bezel__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--ice); }

/* ---------- асимметричная сетка ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento > * { grid-column: span 4; }
.bento > .is-wide { grid-column: span 8; }
.bento > .is-half { grid-column: span 6; }
.bento > .is-full { grid-column: 1 / -1; }
.bento > .is-big { grid-column: span 8; grid-row: span 2; }
.bento > .is-big .bezel__media img { aspect-ratio: 16 / 11; }

/* ---------- редакционный разворот: крупный текст слева, содержимое справа ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.split__sticky { position: sticky; top: calc(var(--island-h) + 40px); }
.split h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -.03em; font-weight: 400; }
.split__sticky p { color: var(--ink-2); margin-top: 18px; max-width: 42ch; }

/* ---------- нумерованные шаги ---------- */
.steps { list-style: none; counter-reset: st; display: grid; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid rgba(16, 34, 46, .1); }
.steps li:last-child { border-bottom: 1px solid rgba(16, 34, 46, .1); }
.steps li::before { content: counter(st, decimal-leading-zero); font-size: 14px; letter-spacing: .12em; color: var(--ice); padding-top: 4px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.steps p { color: var(--ink-2); margin-top: 6px; }

/* ---------- марки раздела ---------- */
.marks { display: flex; flex-wrap: wrap; gap: 10px; }
.marks li { list-style: none; padding: 14px 24px; border-radius: 999px; background: #fff; border: 1px solid rgba(16, 34, 46, .08); font-size: 17px; color: var(--ink); }

/* ---------- финальный призыв ---------- */
.cta .bezel__core { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; padding: clamp(32px, 4vw, 64px); background: linear-gradient(135deg, #FFFFFF 0%, #EEF5FA 100%); }
.cta h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -.025em; font-weight: 400; }
.cta p { color: var(--ink-2); margin-top: 12px; max-width: 52ch; }

/* ---------- подвал ---------- */
.footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer__phone a { font-size: 22px; color: var(--ink); }

/* ---------- появление при прокрутке (включает anim.js, иначе всё видно сразу) ---------- */
.has-anim [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.has-anim [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .nav-island__links { display: none; }
  .nav-island .burger { display: block; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .phero__grid, .split, .cta .bezel__core { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
}
@media (max-width: 768px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bento > *, .bento > .is-wide, .bento > .is-half, .bento > .is-big { grid-column: auto; grid-row: auto; }
  .nav-island { padding-left: 18px; }
  .nav-island__cta { display: none; }
  .steps li { grid-template-columns: 44px 1fr; gap: 12px; }
  .footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .menu, .menu__link, .menu__foot, .btn, .btn__ico, .bezel__core, .bezel__media img, .nav-island { transition: none; }
  .has-anim [data-reveal] { opacity: 1; transform: none; transition: none; }
}
