@charset "UTF-8";
/* =========================================================================
   SEO-Krasnodar — main stylesheet
   2026 rebuild. Mobile-first, CSS custom properties, no frameworks.
   ========================================================================= */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --ink: #101a24;
  --ink-2: #233140;
  --muted: #5f6e7e;
  --muted-2: #7d8b99;

  --brand: #0b74c4;
  --brand-2: #4eb6ff;
  --brand-dark: #0a63a3;
  --brand-soft: #e9f4fd;
  --brand-softer: #f2f9ff;

  --accent: #f2572b;
  --accent-deep: #9b2226;
  --success: #16a34a;
  --success-dark: #11803a;

  --line: #e3eaf1;
  --line-2: #eef3f8;
  --bg: #ffffff;
  --bg-soft: #f6fafd;
  --navy: #0c1a25;
  --navy-2: #142838;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(16, 26, 36, .06), 0 2px 8px rgba(16, 26, 36, .05);
  --shadow-md: 0 6px 20px rgba(16, 26, 36, .08), 0 2px 6px rgba(16, 26, 36, .05);
  --shadow-lg: 0 24px 60px rgba(11, 40, 66, .16), 0 8px 20px rgba(11, 40, 66, .08);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 18px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 76px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 32px; --header-h: 84px; }
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-dark); }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid rgba(14, 127, 208, .55);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(78, 182, 255, .3); }

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 999;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------- icons */
.i {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
  vertical-align: -.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.messenger .i,
.fab__item--tg .i,
.fab__item--max .i,
.i--solid { fill: currentColor; stroke: none; }

/* sprite helpers — contact circles (2x sheet 320x160, cells 40x40) */
.ci {
  display: inline-block;
  flex: none;
  width: 40px;
  height: 40px;
  background-image: url('../img/sprite-contact.webp');
  background-repeat: no-repeat;
  background-size: 160px 80px;
}
.ci--address  { background-position: 0 0; }
.ci--email    { background-position: -40px 0; }
.ci--phone    { background-position: -80px 0; }
.ci--telegram { background-position: -120px 0; }

/* sprite helpers — colored illustration circles (2x sheet 600x1000, cells 200x200)
   Размер задаётся переменной --s, все смещения считаются от неё. */
.ico {
  --s: 100px;
  display: block;
  width: var(--s);
  height: var(--s);
  margin: 0 auto 18px;
  background-image: url('../img/sprite-circles.webp');
  background-repeat: no-repeat;
  background-size: calc(var(--s) * 3) calc(var(--s) * 5);
}
.ico--rs1 { background-position: 0 0; }
.ico--rs2 { background-position: calc(var(--s) * -1) 0; }
.ico--rs3 { background-position: calc(var(--s) * -2) 0; }
.ico--rs4 { background-position: 0 calc(var(--s) * -1); }
.ico--rs5 { background-position: calc(var(--s) * -1) calc(var(--s) * -1); }
.ico--rs6 { background-position: calc(var(--s) * -2) calc(var(--s) * -1); }
.ico--rs7 { background-position: 0 calc(var(--s) * -2); }
.ico--rs8 { background-position: calc(var(--s) * -1) calc(var(--s) * -2); }
.ico--dr1 { background-position: calc(var(--s) * -2) calc(var(--s) * -2); }
.ico--dr2 { background-position: 0 calc(var(--s) * -3); }
.ico--dr3 { background-position: calc(var(--s) * -1) calc(var(--s) * -3); }
.ico--dr4 { background-position: calc(var(--s) * -2) calc(var(--s) * -3); }
.ico--dr5 { background-position: 0 calc(var(--s) * -4); }
.ico--dr6 { background-position: calc(var(--s) * -1) calc(var(--s) * -4); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              box-shadow .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 1.15em; height: 1.15em; }

.btn--primary {
  background: linear-gradient(180deg, #1bb35a 0%, var(--success) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, .28), 0 2px 0 rgba(0, 0, 0, .06) inset;
}
.btn--primary:hover {
  color: #fff;
  background: linear-gradient(180deg, var(--success) 0%, var(--success-dark) 100%);
  box-shadow: 0 14px 30px rgba(22, 163, 74, .34);
  transform: translateY(-1px);
}

.btn--outline {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
}
.btn--outline:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-dark); }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink-2);
  background: #fff;
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-softer); }

.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 17px 36px; font-size: 16px; gap: 12px; }
.btn--lg .i { width: 1.25em; height: 1.25em; }

/* акцентная часть заголовка */
.text-accent { color: var(--accent-deep); font-weight: 800; }

/* ---------------------------------------------------------------- topbar */
.topbar {
  background: var(--navy);
  color: #cfdae4;
  font-size: 14px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-block: 6px;
}
.topbar__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfdae4;
  white-space: nowrap;
}
.topbar__link:hover { color: #fff; }
.topbar__link .i { width: 16px; height: 16px; color: var(--brand-2); }
.topbar__text sup { font-size: .72em; }
.topbar__messengers { display: flex; gap: 8px; }
@media (max-width: 540px) {
  .topbar__link--mail, .topbar__text { display: none; }
  .topbar__contacts { gap: 6px 14px; }
}

.messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.messenger .i { width: 18px; height: 18px; }
.messenger--tg { background: #2698d6; }
.messenger--max { background: #6d49f5; }
.messenger:hover { transform: translateY(-2px); color: #fff; filter: brightness(1.08); }

/* ---------------------------------------------------------------- header */
.header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #fff;
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .25s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 24px rgba(16, 26, 36, .1); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.logo { display: block; flex: none; }
.logo img { width: 196px; height: auto; }
@media (min-width: 768px) { .logo img { width: 228px; } }
@media (min-width: 1200px) { .logo img { width: 248px; } }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: block;
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav__link:hover { background: var(--brand-softer); color: var(--brand); }
.nav__link.is-active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav__extra { display: none; }

.header__cta { display: none; flex: none; }

.burger {
  position: relative;
  z-index: 140;
  margin-left: auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: background-color .18s var(--ease);
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1100px) {
  .burger { display: none; }
  .nav { display: block; margin-left: auto; }
  .nav__list { gap: 0; }
  .nav__link { font-size: 13.5px; padding: 8px 7px; }
}
@media (min-width: 1200px) {
  .nav__link { font-size: 14px; padding: 9px 9px; }
  .header__cta { display: inline-flex; }
}

/* mobile drawer */
@media (max-width: 1099px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 130;
    display: block;
    width: min(360px, 88vw);
    padding: 88px 22px 32px;
    background: #fff;
    box-shadow: -20px 0 60px rgba(16, 26, 36, .18);
    transform: translateX(102%);
    transition: transform .32s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 13px 14px; font-size: 16px; border-radius: 12px; }
  .nav__link:hover { background: var(--brand-softer); }
  .nav__extra { display: block; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
  .nav__phone { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--ink); }
  .nav__phone .i { width: 18px; height: 18px; color: var(--brand); }
  .nav__mail { display: block; margin-top: 8px; font-size: 15px; }
  .nav__hours { margin-top: 6px; font-size: 14px; color: var(--muted); }
  .nav__messengers { display: flex; gap: 10px; margin-top: 18px; }
  .nav__messengers .messenger { width: 44px; height: 44px; }
  .nav__messengers .messenger .i { width: 22px; height: 22px; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(10, 22, 33, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .3s var(--ease);
  }
  .nav-overlay.is-open { opacity: 1; }
  body.nav-locked { overflow: hidden; }
}
@media (min-width: 1100px) { .nav-overlay { display: none !important; } }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(38px, 6vw, 74px) 0 clamp(56px, 7vw, 96px);
  background-color: #eef6fc;
  background-image: url('../img/bg-hero-960.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}
@media (min-width: 900px) {
  .hero { background-image: url('../img/bg-hero-1920.webp'); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 460px at 8% 0%, rgba(255, 255, 255, .96), rgba(255, 255, 255, 0) 70%),
    radial-gradient(700px 400px at 100% 10%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 65%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.08fr .92fr; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(14, 127, 208, .16);
  color: var(--brand-dark);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .16);
}

.hero__title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.06;
  color: var(--ink);
  text-wrap: balance;
}
.hero__lead {
  margin-top: 18px;
  max-width: 40em;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-2);
}
.hero__note {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero__facts li {
  padding: 9px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(14, 127, 208, .12);
  font-size: 13.5px;
  color: var(--ink-2);
}
.hero__facts b {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--brand);
  margin-right: 4px;
}

.formcard {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .9);
}
.formcard__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}
.formcard__sub {
  margin-top: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ----------------------------------------------------------------- sec-head */
.sec-head { margin-bottom: clamp(26px, 4vw, 46px); }
.sec-head__kicker {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.sec-head__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  text-wrap: balance;
}
.sec-head__title--sm { font-size: clamp(1.35rem, 2.8vw, 1.8rem); }
.sec-head__sub {
  margin-top: 12px;
  max-width: 62ch;
  font-size: clamp(.98rem, 1.5vw, 1.1rem);
  color: var(--muted);
}
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__sub { margin-inline: auto; }

/* ---------------------------------------------------------------- result */
.result {
  padding: clamp(46px, 7vw, 86px) 0 clamp(30px, 4vw, 54px);
  background:
    radial-gradient(760px 420px at 50% -10%, #f2f9ff 0%, rgba(242, 249, 255, 0) 70%),
    var(--bg);
}
.result .sec-head { text-align: center; }
.result .sec-head__sub { margin-inline: auto; }

.result__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 520px) { .result__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .result__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.result__item {
  padding: 24px 18px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.result__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 127, 208, .18);
}
.result__item p { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 519px) {
  .result__item { padding: 18px 16px 20px; display: flex; align-items: center; gap: 14px; text-align: left; }
  .result__item .ico { --s: 68px; margin: 0; flex: none; }
  .result__item p { font-size: 14.5px; }
}

/* ---------------------------------------------------------------- slider base */
.slider { position: relative; }
.slider__viewport { position: relative; }
.slider__track {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline-offset: 6px; }

.slider__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-2);
  transform: translateY(-50%);
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), opacity .18s var(--ease);
}
.slider__nav .i { width: 20px; height: 20px; }
.slider__nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.slider__nav--prev { left: -8px; }
.slider__nav--next { right: -8px; }
.slider__nav[disabled] { opacity: .35; pointer-events: none; }
@media (min-width: 1100px) {
  .slider__nav { width: 54px; height: 54px; }
  .slider__nav--prev { left: -26px; }
  .slider__nav--next { right: -26px; }
}
/* full-bleed карусель сертификатов: стрелки внутрь вьюпорта */
.slider--certs .slider__nav--prev { left: max(10px, calc(50% - 300px)); }
.slider--certs .slider__nav--next { right: max(10px, calc(50% - 300px)); }
@media (max-width: 520px) {
  .slider--certs .slider__nav { width: 42px; height: 42px; }
  .slider--certs .slider__nav--prev { left: 8px; }
  .slider--certs .slider__nav--next { right: 8px; }
}

/* ---------------------------------------------------------------- works */
.portfolio { padding: clamp(20px, 3vw, 40px) 0 clamp(46px, 7vw, 90px); background: var(--bg); }

.works__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
}
.works__slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-2);
  background: #f4f8fb;
  cursor: zoom-in;
}

.works__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
}
.works__counter {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.works__counter-sep { color: var(--muted-2); font-weight: 600; }
.works__hint { font-size: 13.5px; color: var(--muted); }
.works__bar .btn { margin-left: auto; }
@media (max-width: 560px) { .works__hint { display: none; } }

.works__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.works__thumb {
  flex: 0 0 auto;
  width: 92px;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f4f8fb;
  scroll-snap-align: center;
  transition: border-color .18s var(--ease), transform .18s var(--ease), opacity .18s var(--ease);
  opacity: .72;
}
.works__thumb img { width: 100%; height: auto; }
.works__thumb:hover { opacity: 1; transform: translateY(-2px); }
.works__thumb[aria-current="true"] { border-color: var(--brand); opacity: 1; }
@media (min-width: 768px) { .works__thumb { width: 124px; } }

/* ---------------------------------------------------------------- dark sections */
.section-dark { position: relative; isolation: isolate; color: #eaf2f8; overflow: hidden; }
.section-dark .sec-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(9, 32, 52, .9) 0%, rgba(10, 46, 76, .82) 45%, rgba(12, 58, 94, .76) 100%);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

/* ---------------------------------------------------------------- analiz */
.analiz { padding: clamp(46px, 7vw, 92px) 0; }
.analiz__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}
@media (min-width: 900px) { .analiz__inner { grid-template-columns: 1.05fr .95fr; } }

.analiz__title {
  font-size: clamp(1.4rem, 3.2vw, 2.05rem);
  color: #fff;
  text-wrap: balance;
}
.analiz__list { margin-top: 22px; display: grid; gap: 12px; }
.analiz__list li {
  position: relative;
  padding-left: 34px;
  font-size: 15.5px;
  color: #d8e6f0;
}
.analiz__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(78, 182, 255, .22);
  box-shadow: inset 0 0 0 1px rgba(78, 182, 255, .55);
}
.analiz__list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: .72em;
  width: 6px;
  height: 3px;
  border-left: 2px solid #7ecbff;
  border-bottom: 2px solid #7ecbff;
  transform: rotate(-45deg);
}
.analiz__hint { margin-top: 22px; font-size: 14px; color: #9fb8c9; }

/* ---------------------------------------------------------------- forms */
.form { position: relative; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .01em;
}
.req { color: var(--accent); margin-left: 2px; }

.field__input {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}
.field__input::placeholder { color: #a6b3bf; }
.field__input:hover { border-color: #cfdce8; }
.field__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 127, 208, .14);
}
.field__input[aria-invalid="true"] {
  border-color: #e04e3c;
  background: #fff8f7;
}
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(224, 78, 60, .14); }

.form--dark .field__label { color: #cfe2f0; }
.form--dark .field__input {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
.form--dark .field__input::placeholder { color: rgba(220, 236, 246, .55); }
.form--dark .field__input:hover { border-color: rgba(255, 255, 255, .34); }
.form--dark .field__input:focus {
  border-color: #7ecbff;
  box-shadow: 0 0 0 4px rgba(126, 203, 255, .2);
  background: rgba(255, 255, 255, .12);
}
.form--dark .field__input[aria-invalid="true"] { border-color: #ff9d8d; background: rgba(255, 80, 60, .12); }

.form--card {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: rgba(9, 27, 42, .42);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
}

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12.8px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.check input:checked {
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.6 4.6L19 7.2'/%3E%3C/svg%3E") center / 15px no-repeat;
  border-color: var(--brand);
}
.check input:focus-visible { outline: 3px solid rgba(14, 127, 208, .4); outline-offset: 2px; }
.check a { text-decoration: underline; text-decoration-color: rgba(14, 127, 208, .4); text-underline-offset: 2px; }
.form--dark .check { color: #b9cddb; }
.form--dark .check a { color: #9ed4ff; }
.form--dark .check input { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.form--dark .check input:checked { background-color: var(--brand-2); border-color: var(--brand-2); }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.45;
}
.form__status.is-ok { display: block; background: #e9f9ef; color: #0f6c33; border: 1px solid #b9ecc9; }
.form__status.is-err { display: block; background: #fdecea; color: #a32617; border: 1px solid #f6c2bb; }
.form--dark .form__status.is-ok { background: rgba(22, 163, 74, .18); color: #b6f0c8; border-color: rgba(22, 163, 74, .4); }
.form--dark .form__status.is-err { background: rgba(224, 78, 60, .18); color: #ffc4bb; border-color: rgba(224, 78, 60, .4); }

.form__noscript { font-size: 13px; color: var(--muted); }
.form--dark .form__noscript { color: #a9c1d1; }

.form .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- tariff */
.tariff { padding: clamp(48px, 7vw, 92px) 0; background: var(--bg-soft); }
.tariff .sec-head { text-align: center; }
.tariff .sec-head__sub { margin-inline: auto; }

.tariff__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  counter-reset: tariff;
}
@media (min-width: 860px) {
  .tariff__list { grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
}
.tariff__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(16, 26, 36, .04);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.tariff__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 127, 208, .2);
}
.tariff__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border-radius: 12px;
  background: var(--brand-softer);
  color: var(--brand);
}
.tariff__icon .i { width: 23px; height: 23px; stroke-width: 2; }
.tariff__text { font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* ---------------------------------------------------------------- promo */
.promo { padding: clamp(60px, 8vw, 110px) 0; }
.promo__card {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(30px, 4.5vw, 56px) clamp(20px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.promo__card .promo__title {
  max-width: 21em;
  margin-inline: auto;
  font-size: clamp(1.3rem, 2.9vw, 2rem);
  line-height: 1.22;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

.promo__lead {
  max-width: 780px;
  margin: 18px auto 0;
  font-size: clamp(15px, 1.4vw, 16.5px);
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
}

.promo__sub {
  margin: 34px auto 0;
  max-width: 640px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--muted);
}

.promo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px 20px;
  max-width: 880px;
  margin: 26px auto 0;
  padding: 0;
}
@media (min-width: 560px) {
  .promo__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
}
@media (min-width: 900px) {
  .promo__grid { grid-template-columns: repeat(3, 1fr); gap: 38px 28px; margin-top: 30px; }
}

.promo__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.promo__item .ico { --s: 72px; margin-bottom: 14px; }
@media (max-width: 559px) { .promo__item .ico { --s: 64px; margin-bottom: 12px; } }

.promo__item-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}
.promo__item-text {
  margin-top: 4px;
  font-size: 13.8px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: balance;
}

.promo__cta { margin-top: clamp(30px, 4vw, 44px); }
.promo__cta .btn {
  box-shadow: 0 16px 34px rgba(22, 163, 74, .32), 0 2px 0 rgba(255, 255, 255, .22) inset;
}
@media (max-width: 520px) {
  .promo__cta .btn { width: 100%; padding-inline: 20px; }
}

/* очень узкие экраны: заголовок не должен рассыпаться на 7 коротких строк */
@media (max-width: 400px) {
  .promo__card { padding-inline: 16px; }
  .promo__card .promo__title { font-size: 1.15rem; line-height: 1.28; text-wrap: pretty; }
  .promo__lead { font-size: 14.5px; line-height: 1.55; }
  .promo__sub { margin-top: 26px; font-size: 12.5px; }
  .promo__cta .btn { font-size: 15px; min-height: 52px; }
}

/* ---------------------------------------------------------------- about */
.about { padding: clamp(48px, 7vw, 96px) 0; background: var(--bg); }
.about .sec-head { text-align: center; }
.about__title {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  color: var(--ink);
}
.about__accent { color: var(--brand); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 900px) { .about__grid { grid-template-columns: .9fr 1.1fr; } }

.about__left {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 480px) and (max-width: 899px) {
  .about__left { grid-template-columns: 220px 1fr; }
}
@media (min-width: 1100px) {
  .about__left { grid-template-columns: 220px 1fr; }
}

.about__photo { position: relative; width: 100%; max-width: 320px; margin-inline: auto; }
.about__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.02);
  box-shadow: var(--shadow-md);
  background: #eef3f8;
}
.about__photo::after {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  z-index: -1;
  border-radius: var(--radius);
  border: 2px solid rgba(14, 127, 208, .22);
}

.about__facts { display: grid; gap: 14px; }
.about__fact {
  display: grid;
  gap: 2px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.about__fact dt { font-weight: 700; color: var(--ink); }
.about__fact dd { color: var(--muted); }

.about__quote {
  position: relative;
  padding-left: 54px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-2);
  font-style: italic;
}
.about__quote-mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  background: url('../img/sprite-contact.webp') no-repeat 0 -40px;
  background-size: 160px 80px;
  opacity: .9;
}

.about__contacts {
  display: grid;
  gap: 4px;
  margin-top: 26px;
}
.about__contacts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.about__contact-text { font-size: 16.5px; color: var(--ink-2); }
a.about__contact-text:hover { color: var(--brand); }
.about__contact-text--phone {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}

.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------------------------------------------------------------- certificates */
.certs-block { padding: clamp(40px, 6vw, 80px) 0; background: var(--bg-soft); }
.certs-block .sec-head { text-align: center; }
.certs-block .sec-head__sub { margin-inline: auto; }

.slider--certs .slider__track {
  padding-inline: max(var(--gutter), calc(50% - 230px));
  gap: 14px;
  padding-block: 8px 18px;
}
.certs__slide {
  flex: 0 0 min(460px, 78vw);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), opacity .35s var(--ease), box-shadow .35s var(--ease);
  opacity: .55;
  transform: scale(.94);
}
.certs__slide img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.certs__slide.is-active { opacity: 1; transform: scale(1); }
.certs__slide.is-active img { box-shadow: var(--shadow-md); }

.certs__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
}
.certs__dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.certs__dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c6d6e3;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.certs__dots button[aria-current="true"] { background: var(--brand); transform: scale(1.45); }

/* ---------------------------------------------------------------- faq */
.faq { padding: clamp(48px, 7vw, 92px) 0; background: var(--bg); }
.faq__list { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq__item {
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 26, 36, .04);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq__item[open] { border-color: rgba(14, 127, 208, .25); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background-color .16s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--brand-softer); }
.faq__icon { position: relative; flex: none; width: 22px; height: 22px; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 2.2px;
  border-radius: 2px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 20px 20px; }
.faq__a p { font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- cost */
.cost { padding: clamp(46px, 7vw, 92px) 0; }
.cost__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}
@media (min-width: 900px) { .cost__inner { grid-template-columns: 1fr .85fr; } }

.cost__title { font-size: clamp(1.4rem, 3.2vw, 2.1rem); color: #fff; text-wrap: balance; }
.cost__sub { margin-top: 16px; font-size: 15.5px; color: #c9dcea; max-width: 46ch; }
.cost__list { margin-top: 22px; display: grid; gap: 10px; }
.cost__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #dceaf4;
}
.cost__list .i { width: 18px; height: 18px; color: #6fda9a; }
.cost__contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.cost__contacts a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  transition: border-color .18s var(--ease);
}
.cost__contacts a:hover { color: #9ed4ff; border-color: #9ed4ff; }

/* ---------------------------------------------------------------- footer */
.footer {
  background: var(--navy);
  color: #b5c6d3;
  padding-top: clamp(40px, 6vw, 68px);
  font-size: 14.5px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 34px;
}
@media (min-width: 640px) { .footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.25fr .85fr .95fr 1.1fr; gap: 36px; } }

.footer__logo { width: 210px; height: auto; margin-bottom: 16px; }
.footer__about { max-width: 34ch; color: #93a8b8; font-size: 14px; }
.footer__messengers { display: flex; gap: 10px; margin-top: 18px; }
.footer__messengers .messenger {
  width: auto;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.footer__messengers .messenger .i { width: 17px; height: 17px; }
/* на тёмном фоне подписи должны проходить по контрасту (WCAG AA) */
.footer__messengers .messenger--tg { background: #1272a8; }
.footer__messengers .messenger--max { background: #5b39d6; }

.footer__head {
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6f8a9c;
}
.footer__list { display: grid; gap: 10px; }
.footer__list li { display: flex; align-items: flex-start; gap: 9px; color: #a9bccb; }
.footer__list .i { width: 16px; height: 16px; margin-top: 3px; color: var(--brand-2); }
.footer__list a { color: #cfdde7; }
.footer__list a:hover { color: #fff; }
.footer__list--links li { display: block; }
.footer__list--links a { border-bottom: 1px solid rgba(255, 255, 255, .14); padding-bottom: 1px; }
.footer__list--plain li { display: block; font-size: 13.5px; color: #90a5b5; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer__copy { font-size: 13px; color: #7e94a5; }
.footer__copy a { color: #a9bccb; text-decoration: underline; text-underline-offset: 2px; }
.footer__copy a:hover { color: #fff; }
.footer__up {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #cfdde7;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.footer__up .i { width: 18px; height: 18px; }
.footer__up:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* ---------------------------------------------------------------- FAB */
.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
/* пока висит плашка cookie или открыто меню — FAB не мешает */
body.has-cookie .fab,
body.nav-locked .fab { opacity: 0; transform: translateY(12px); pointer-events: none; }
body.nav-locked .cookie { display: none; }
@media (min-width: 768px) { .fab { right: 24px; bottom: 24px; } }

.fab__toggle {
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #1bb35a, var(--success));
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 163, 74, .38), 0 2px 0 rgba(255, 255, 255, .18) inset;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.fab__toggle:hover { transform: scale(1.06); }
.fab__icon { width: 24px; height: 24px; grid-area: 1 / 1; transition: opacity .2s var(--ease), transform .3s var(--ease); }
.fab__icon--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab.is-open .fab__icon--open { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab.is-open .fab__icon--close { opacity: 1; transform: none; }

.fab__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
.fab__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px) scale(.94);
  transition: opacity .22s var(--ease), transform .26s var(--ease), color .18s var(--ease);
}
.fab__item .i { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.fab__item--tg .i { color: #2698d6; }
.fab__item--max .i { color: #6d49f5; }
.fab__item--call .i { color: var(--success); fill: none; stroke: currentColor; }
.fab__item:hover { color: var(--brand); transform: translateY(0) scale(1.03); }
.fab.is-open .fab__menu { pointer-events: auto; }
.fab.is-open .fab__item { opacity: 1; transform: none; }
.fab.is-open .fab__item:nth-child(1) { transition-delay: .06s; }
.fab.is-open .fab__item:nth-child(2) { transition-delay: .03s; }
.fab.is-open .fab__item:nth-child(3) { transition-delay: 0s; }

/* ---------------------------------------------------------------- cookie */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 190;
  width: min(920px, calc(100% - 24px));
  transform: translateX(-50%);
  border-radius: 14px;
  background: #fdf3e3;
  border: 1px solid #f2ddb9;
  box-shadow: 0 16px 40px rgba(49, 32, 8, .18);
  padding: 12px 14px;
  animation: cookie-in .35s var(--ease) both;
}
@keyframes cookie-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.cookie__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.cookie__icon { width: 30px; height: 30px; color: #c98a2e; flex: none; }
.cookie__text { font-size: 12.8px; line-height: 1.45; color: #4a3a22; }
.cookie__text a { color: #8c5a12; text-decoration: underline; text-underline-offset: 2px; }
.cookie__btn {
  flex: none;
  min-width: 74px;
  height: 38px;
  padding: 0 20px;
  border-radius: 9px;
  background: linear-gradient(180deg, #f5b56b, #eda04c);
  color: #3d2a0e;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 0 #cf8a37;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.cookie__btn:hover { transform: translateY(1px); box-shadow: 0 3px 0 #cf8a37; }
.cookie__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #cf8a37; }
@media (max-width: 640px) {
  .cookie__inner { grid-template-columns: auto 1fr; }
  .cookie__btn { grid-column: 1 / -1; width: 100%; }
}

/* ---------------------------------------------------------------- lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lb[hidden] { display: none; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(6, 16, 24, .9); backdrop-filter: blur(4px); }
.lb__figure {
  position: relative;
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: lb-in .28s var(--ease) both;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: none; }
}
.lb__img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 10px;
  background: #fff;
}
.lb__cap { text-align: center; font-size: 14px; color: #c6d7e4; }
.lb__close, .lb__nav {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.lb__close:hover, .lb__nav:hover { background: rgba(255, 255, 255, .24); }
.lb__close .i, .lb__nav .i { width: 22px; height: 22px; }
.lb__close { top: 16px; right: 16px; }
.lb__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (min-width: 768px) {
  .lb__close { top: 24px; right: 24px; }
  .lb__nav--prev { left: 28px; }
  .lb__nav--next { right: 28px; }
}

/* ---------------------------------------------------------------- reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* stagger for grid children */
.js .result__grid .reveal:nth-child(2) { transition-delay: .05s; }
.js .result__grid .reveal:nth-child(3) { transition-delay: .1s; }
.js .result__grid .reveal:nth-child(4) { transition-delay: .15s; }
.js .result__grid .reveal:nth-child(5) { transition-delay: .05s; }
.js .result__grid .reveal:nth-child(6) { transition-delay: .1s; }
.js .result__grid .reveal:nth-child(7) { transition-delay: .15s; }
.js .result__grid .reveal:nth-child(8) { transition-delay: .2s; }

/* ---------------------------------------------------------------- a11y / misc */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* content protection (see main.js) — keep form fields usable */
body.protected, body.protected * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.protected input,
body.protected textarea,
body.protected select,
body.protected .selectable,
body.protected .selectable * { -webkit-user-select: text; user-select: text; }
body.protected img { -webkit-user-drag: none; user-drag: none; }

/* ---------------------------------------------------------------- legal pages */
.legal { padding-bottom: clamp(40px, 6vw, 80px); }
.legal__hero {
  padding: clamp(30px, 5vw, 56px) 0 clamp(20px, 3vw, 32px);
  background:
    radial-gradient(900px 380px at 15% 0%, #eef7fe 0%, rgba(238, 247, 254, 0) 70%),
    var(--bg);
  border-bottom: 1px solid var(--line-2);
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13.5px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { color: #c2cfdb; }
.legal__title { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.legal__meta { margin-top: 12px; font-size: 14px; color: var(--muted); }

.legal__layout { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 48px); padding-top: clamp(26px, 4vw, 44px); }
@media (min-width: 960px) { .legal__layout { grid-template-columns: 280px 1fr; } }

.legal__toc {
  align-self: start;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  font-size: 14px;
}
@media (min-width: 960px) { .legal__toc { position: sticky; top: calc(var(--header-h) + 20px); } }
.legal__toc-title {
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal__toc ol { counter-reset: toc; display: grid; gap: 7px; }
.legal__toc li { counter-increment: toc; display: flex; gap: 8px; line-height: 1.35; }
.legal__toc li::before { content: counter(toc) "."; color: var(--brand); font-weight: 700; flex: none; }
.legal__toc a { color: var(--ink-2); }
.legal__toc a:hover { color: var(--brand); }

.legal__body { max-width: 78ch; }
.legal__body h2 {
  margin: 2.2em 0 .7em;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { margin: 1.6em 0 .5em; font-size: 1.02rem; font-weight: 600; }
.legal__body p { margin-bottom: 1em; color: var(--ink-2); font-size: 15.5px; }
.legal__body ul, .legal__body ol { margin: 0 0 1em; padding-left: 0; display: grid; gap: .5em; }
.legal__body ul li { position: relative; padding-left: 20px; font-size: 15.5px; color: var(--ink-2); }
.legal__body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
}
.legal__body ol { counter-reset: li; }
.legal__body ol li { position: relative; padding-left: 26px; counter-increment: li; font-size: 15.5px; color: var(--ink-2); }
.legal__body ol li::before {
  content: counter(li) ".";
  position: absolute;
  left: 0; top: 0;
  color: var(--brand);
  font-weight: 700;
}
.legal__body a { text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { color: var(--ink); font-weight: 700; }

.requisites {
  width: 100%;
  margin: 1.2em 0 1.6em;
  border-collapse: collapse;
  font-size: 14.5px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.requisites th, .requisites td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.requisites th { width: 42%; font-weight: 600; color: var(--muted); background: var(--bg-soft); }
.requisites td { color: var(--ink-2); }
.requisites tr:last-child th, .requisites tr:last-child td { border-bottom: 0; }

.legal__note {
  margin: 1.4em 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--brand-softer);
  border: 1px solid rgba(14, 127, 208, .16);
  font-size: 14.5px;
  color: var(--ink-2);
}
.legal__back { margin-top: 2.5em; }

/* slim header/footer for legal pages */
.header--slim .header__inner { justify-content: space-between; }
.header__right { display: flex; align-items: center; gap: 14px; }
.header__back {
  font-size: 14px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header__back:hover { color: var(--brand); }
.header__back .i { width: 15px; height: 15px; }
@media (max-width: 560px) { .header__back span { display: none; } }

.footer--slim { padding-top: 26px; }
.footer--slim .footer__bottom { border-top: 0; }

/* ---------------------------------------------------------------- print */
@media print {
  .topbar, .header, .fab, .cookie, .lb, .slider__nav, .works__bar, .certs__bar,
  .hero__form, .form, .footer__messengers, .about__actions { display: none !important; }
  body { color: #000; background: #fff; }
  .section-dark { color: #000; background: #fff !important; }
  .section-dark::before, .sec-bg { display: none !important; }
  a { color: #000; text-decoration: underline; }
  section { break-inside: avoid; }
}
