/* ============================================================
   Даниил Карацапов — лендинг. Dark + single blue accent.
   Layered on Aperture tokens.css. No decorative gradients,
   one product-shadow, sentence case, scale(.95) press.
   ============================================================ */

:root {
  /* Dark canvas rhythm — harmonious extensions of the token dark tiles */
  --pg:       #08080a;   /* page void */
  --tile-a:   #0d0d0f;   /* section A */
  --tile-b:   #151517;   /* section B (one micro-step up) */
  --tile-c:   #1c1c1e;   /* raised cards */
  --tile-card:#161618;

  --line:        rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);

  --txt:    #f5f5f7;
  --txt-2:  #a1a1a6;   /* Apple secondary gray on dark */
  --txt-3:  #6e6e73;

  /* Accent — single accent, themeable. Default = «Салатовый». fill = button bg,
     bright = links/text, ink = text on the fill, line = optional hairline. */
  --accent:        #b6f01e;
  --accent-bright: #c4f53e;
  --accent-ink:    #0c1402;
  --accent-line:   transparent;
  --accent-soft:   rgba(182,240,30,0.13);
  --accent-soft-bd:rgba(182,240,30,0.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Lenis smooth scroll (плавная инерция) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

html, body {
  margin: 0; padding: 0;
  background: var(--pg);
  color: var(--txt);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent-bright); }
a:hover { text-decoration: none; }

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

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 72px); }
.wrap-narrow { max-width: 920px; }
section { position: relative; }
.sec { padding: 60px 0; }
.sec-tight { padding: 50px 0; }

/* Section background tones */
.bg-pg   { background: var(--pg); }
.bg-a    { background: var(--tile-a); }
.bg-b    { background: var(--tile-b); }
.bg-black{ background: #000; }

/* ---------- Type helpers (Cyrillic-tuned tracking) ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--txt);
  margin: 0;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-text);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent-bright); opacity: .8;
}
.eyebrow.center { justify-content: center; }
.lead {
  font-family: var(--font-text);
  font-size: 21px; font-weight: 400; line-height: 1.5;
  letter-spacing: -0.01em; color: var(--txt-2);
  margin: 0; text-wrap: pretty;
}
.muted { color: var(--txt-2); }
.fine { color: var(--txt-3); font-size: 13px; line-height: 1.5; }

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--txt); margin: 0; text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-text); font-size: 17px; font-weight: 400;
  border-radius: var(--r-pill); padding: 14px 26px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, border-color .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn-fill { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-line);
  position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease; }
/* sweeping shine on hover */
.btn-fill::before {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: left .6s cubic-bezier(.16,.7,.3,1);
}
.btn-fill:hover { filter: brightness(1.05); transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn-fill:hover::before { left: 140%; }
.btn-fill:active { transform: translateY(-2px) scale(0.96); }
@media (prefers-reduced-motion: reduce) {
  .btn-fill::before { display: none; }
  .btn-fill:hover { transform: none; }
}
.btn-ghost { background: transparent; color: var(--txt); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: #fff; }
.btn-accent-ghost { background: transparent; color: var(--accent-bright); border-color: color-mix(in srgb, var(--accent-bright) 50%, transparent); }
.btn-accent-ghost:hover { border-color: var(--accent-bright); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 17px 34px; font-size: 18px; }
.btn .i { width: 18px; height: 18px; }

/* ---------- Top nav — floating rounded pill ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 1340px; z-index: 60;
  height: 60px; display: flex; align-items: center;
  border-radius: 20px;
  background: rgba(8,8,10,0.55);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,0.28);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, top .3s ease;
}
.nav.scrolled {
  top: 10px;
  background: rgba(8,8,10,0.82);
  border-color: var(--line-strong);
  box-shadow: 0 14px 44px rgba(0,0,0,0.5);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; max-width: none; padding: 0 22px; }
.brand {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; color: var(--txt); text-decoration: none;
  display: inline-flex; align-items: center; gap: 11px;
}
.brand-plane { display: block; flex: 0 0 auto; width: 30px; height: 30px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 15px; color: var(--txt-2); text-decoration: none; letter-spacing: -0.01em;
  transition: color .18s ease; cursor: pointer;
}
.nav-links a:hover { color: var(--txt); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { margin-left: 0; }
.nav-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-bright); color: var(--accent-ink); text-decoration: none; flex: none; transition: transform .2s ease, filter .2s ease; }
.nav-ic:hover { transform: translateY(-1px); filter: brightness(1.06); }
.nav-ic svg { width: 19px; height: 19px; }
.nav-burger { display: none; margin-left: 0; background: none; border: none; color: var(--txt); cursor: pointer; padding: 9px; }

/* Dropdown в навигации */
.nav-item-drop {
  position: relative;
  display: inline-flex; align-items: center;
}
/* Невидимый «мостик» через зазор — чтобы дропдаун не пропадал при наведении */
.nav-item-drop::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 240px; height: 20px; /* перекрывает 14px зазор до меню */
}
.nav-drop-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 15px; color: var(--txt-2); text-decoration: none; letter-spacing: -0.01em;
  transition: color .18s ease; cursor: pointer;
}
.nav-item-drop:hover .nav-drop-trigger { color: var(--txt); }
.nav-chevron {
  transition: transform .2s ease;
  color: currentColor; opacity: .6;
}
.nav-item-drop:hover .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  min-width: 220px;
  background: rgba(12,12,14,0.96); backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .2s ease, transform .2s cubic-bezier(.2,.8,.2,1);
  z-index: 80;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.nav-dropdown::before {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 6px;
  background: rgba(12,12,14,0.96); clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.nav-item-drop:hover .nav-dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-link {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 14px; color: var(--txt); text-decoration: none;
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-drop-link:hover { color: var(--accent-bright); }

/* ---------- Stats ---------- */
.stat-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.03em; line-height: 1;
  color: var(--txt);
}
.stat-num .accent { color: var(--accent-bright); }
.stat-label { color: var(--txt-2); font-size: 15px; line-height: 1.4; margin-top: 12px; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--tile-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-strong); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.7,.3,1), transform .7s cubic-bezier(.16,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--txt-2); letter-spacing: -0.01em; }
.input, .textarea {
  width: 100%; font-family: var(--font-text); font-size: 16px; color: var(--txt);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 14px 16px; outline: none;
  transition: border-color .18s ease, background .18s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--txt-3); }
.input:focus, .textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); }
.input.err, .textarea.err { border-color: #ff5a4d; }
.textarea { resize: vertical; min-height: 96px; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--txt-3); font-size: 13px; line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; }

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 8px 16px; font-size: 14px; color: var(--txt-2);
  background: rgba(255,255,255,0.02);
}
.chip .i { width: 15px; height: 15px; color: var(--accent-bright); }
.chip.accent { color: var(--accent-bright); border-color: var(--accent-soft-bd); background: var(--accent-soft); }

/* ---------- Icon tile ---------- */
.icon-tile {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-bd);
  color: var(--accent-bright); flex: 0 0 auto;
}
.icon-tile .i { width: 24px; height: 24px; }

/* ---------- Certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
/* On phones: horizontal snap carousel instead of a tall vertical stack */
@media (max-width: 640px) {
  .hero-cta-row { gap: 12px !important; }
  .hero-cta-primary { flex: 1 1 100%; justify-content: center; }
  .hero-cta-half { flex: 1 1 0; min-width: 0; justify-content: center; }
  .hero-trust {
    flex-wrap: nowrap !important; gap: 14px !important;
    justify-content: space-between;
  }
  .hero-trust-item { flex: 1 1 0; min-width: 0; overflow: hidden; }
  .hero-trust-v { font-size: 18px !important; }
  .hero-trust-l { font-size: 11px !important; word-break: break-word; }
  .cert-grid {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -22px; padding: 4px 22px 14px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .cert-grid::-webkit-scrollbar { height: 6px; }
  .cert-grid::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
  .cert-card { flex: 0 0 70%; max-width: 250px; scroll-snap-align: start; }
}

/* ---------- Swipe hint (mobile-only, text-free swipe animation) ---------- */
.swipe-hint { display: none; }
@media (max-width: 640px) {
  .swipe-hint {
    display: inline-flex; align-items: center; gap: 5px; margin-bottom: 14px;
    padding: 6px 12px; border-radius: var(--r-pill);
    background: var(--accent-soft); border: 1px solid var(--accent-soft-bd);
    color: var(--accent-bright);
  }
  .swipe-hint .swipe-dot {
    width: 5px; height: 5px; border-radius: 50%; background: currentColor;
    opacity: .35; animation: swipeDot 1.3s ease-in-out infinite;
  }
  .swipe-hint .swipe-dot:nth-child(1) { animation-delay: 0s; }
  .swipe-hint .swipe-dot:nth-child(2) { animation-delay: .15s; }
  .swipe-hint .swipe-dot:nth-child(3) { animation-delay: .3s; }
  .swipe-hint .i { width: 15px; height: 15px; animation: swipeNudge 1.3s ease-in-out infinite; }
}
@keyframes swipeNudge {
  0%, 100% { transform: translateX(0); opacity: .55; }
  50% { transform: translateX(6px); opacity: 1; }
}
@keyframes swipeDot {
  0%, 100% { opacity: .35; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .swipe-hint .i, .swipe-hint .swipe-dot { animation: none; opacity: 1; }
}

/* ---------- Services: full-width snap carousel on phones ---------- */
@media (max-width: 640px) {
  .svc-x-stack {
    flex-direction: row !important; align-items: stretch;
    gap: 12px !important; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -22px; padding: 0 16px;
    scroll-padding-left: 16px;
    scrollbar-width: none;
  }
  .svc-x-stack::-webkit-scrollbar { display: none; }
  /* calc(100vw - 32px) = экран минус отступы 16px с каждой стороны */
  .svc-x { flex: 0 0 calc(100vw - 32px); max-width: calc(100vw - 32px); scroll-snap-align: start; }
  /* Cases keep carousel */
  .case-list {
    flex-direction: row !important; align-items: stretch;
    gap: 14px !important; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    margin: 0 -22px; padding: 4px 22px 10px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .case-list::-webkit-scrollbar { height: 6px; }
  .case-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
  .case-card { flex: 0 0 86%; max-width: 340px; scroll-snap-align: start; }
}
.cert-card {
  display: flex; flex-direction: column; gap: 14px; text-align: left;
  background: transparent; border: none; padding: 0; cursor: pointer; color: var(--txt);
}
.cert-thumb {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  background: #f4f4f6; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cert-thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: 12px;
  transition: transform .35s cubic-bezier(.16,.7,.3,1);
}
.cert-zoom {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,10,0.45); color: #fff; opacity: 0; transition: opacity .25s ease;
}
.cert-zoom .i { width: 26px; height: 26px;
  padding: 12px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-full);
  box-sizing: content-box; }
.cert-card:hover .cert-thumb { border-color: var(--accent-soft-bd); transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.cert-card:hover .cert-thumb img { transform: scale(1.04); }
.cert-card:hover .cert-zoom { opacity: 1; }
.cert-meta { display: flex; flex-direction: column; gap: 3px; }
.cert-title { font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--txt); line-height: 1.3; }
.cert-issuer { font-size: 13px; color: var(--txt-2); }

/* lightbox */
.cert-lb {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; background: rgba(4,4,6,0.86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: certFade .25s ease;
}
@keyframes certFade { from { opacity: 0; } to { opacity: 1; } }
.cert-lb-stage {
  display: flex; flex-direction: column; gap: 14px; max-width: min(92vw, 720px);
  animation: certPop .3s cubic-bezier(.16,.7,.3,1);
}
@keyframes certPop { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: none; } }
.cert-lb-stage img {
  max-height: 80vh; max-width: 100%; object-fit: contain; border-radius: var(--r-md);
  background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.cert-lb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cert-lb-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; }
.cert-lb-sub { font-size: 14px; color: var(--txt-2); margin-top: 2px; }
.cert-lb-close {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,0.1); color: #fff; border: 1px solid var(--line-strong);
  transition: background .2s ease; }
.cert-lb-close:hover { background: rgba(255,255,255,0.2); }
.cert-lb-nav {
  width: 50px; height: 50px; border-radius: var(--r-full); flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,0.1); color: #fff; border: 1px solid var(--line-strong);
  transition: background .2s ease; }
.cert-lb-nav:hover { background: rgba(255,255,255,0.2); }
.cert-lb-nav .i { transition: none; }
.cert-lb-nav.prev .i { transform: rotate(90deg); }
.cert-lb-nav.next .i { transform: rotate(-90deg); }
@media (max-width: 640px) {
  .cert-lb-nav { position: absolute; bottom: 18px; z-index: 1; }
  .cert-lb-nav.prev { left: 24px; } .cert-lb-nav.next { right: 24px; }
  .cert-lb-stage { max-width: 96vw; }
}

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 600; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: rgba(20,20,22,0.94); color: var(--txt);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 13px 22px 13px 16px; font-size: 15px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(14px);
  animation: toastIn .4s cubic-bezier(.16,.7,.3,1);
}
.toast .ic { width: 28px; height: 28px; border-radius: var(--r-full); background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.toast .ic .i { width: 16px; height: 16px; color: var(--accent-ink); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Cookie notice ---------- */
.cookie-bar {
  position: fixed; left: 20px; bottom: 20px; z-index: 150;
  max-width: 380px; display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--r-lg);
  background: rgba(18,18,20,0.96); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: cookieIn .4s cubic-bezier(.16,.7,.3,1);
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--txt-2); }
.cookie-ok {
  flex: 0 0 auto; cursor: pointer; padding: 9px 22px; border-radius: var(--r-pill);
  background: transparent; color: var(--txt); border: 1px solid var(--line-strong);
  font-family: var(--font-text); font-size: 14px;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.cookie-ok:hover { border-color: var(--accent); color: var(--accent-bright); background: var(--accent-soft); }
.cookie-ok:active { transform: scale(0.96); }
@media (max-width: 560px) {
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- Footer ---------- */
.footer { background: #000; border-top: 1px solid var(--line); }

/* ---------- Contact rows ---------- */
.contact-row {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--txt);
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--tile-card); transition: border-color .2s ease;
}
.contact-row:hover { border-color: var(--line-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .proc-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 36px 24px !important; }
}
@media (max-width: 900px) {
  .sec { padding: 56px 0; }
  .sec-tight { padding: 44px 0; }
  .wrap { padding: 0 22px; }
  .nav { width: calc(100% - 24px); top: 10px; }
  .nav .wrap { padding: 0 16px; gap: 14px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  /* collapse two-column section grids */
  .two-col { grid-template-columns: 1fr !important; gap: 40px !important; }
  /* About: photo needs an explicit ratio once it no longer stretches a column */
  .about-photo-wrap { aspect-ratio: 4 / 3; order: -1; }
  .hero-split-grid { grid-template-columns: 1fr !important; gap: 40px !important;
    min-height: auto !important; padding-top: 36px !important; padding-bottom: 56px !important; }
  .hero-split-grid .hero-copy { order: 1; }
  .svc-row { grid-template-columns: 52px 1fr !important; gap: 18px !important; row-gap: 4px !important; }
  .svc-row p { grid-column: 1 / -1; }
  .feat-grid { grid-template-columns: 1fr !important; }
  .case-head { grid-template-columns: 1fr !important; gap: 16px !important; }
}
@media (max-width: 620px) {
  .proc-grid { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; padding: 20px !important; gap: 16px !important; }
  .stat-num { font-size: 28px !important; }
  .stat-label { font-size: 12px !important; margin-top: 4px !important; }
  .quiz-teaser { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .display { font-size: clamp(34px, 11vw, 56px) !important; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 36px 0; }
  .sec-tight { padding: 24px 0; }
  #certs.sec { padding-bottom: 16px; }
  #process.sec, #process.sec-tight { padding-top: 20px; padding-bottom: 16px; }
  #about.sec { padding-bottom: 16px; }
  #services.sec { padding-top: 20px; }
  /* компактные паддинги карточек/секций (перебиваем inline-стили) */
  .card { padding: 22px !important; }
  .hero-split-grid { padding: 24px 16px 20px !important; }
  .quiz-teaser { padding: clamp(20px, 5vw, 56px) !important; }
  .footer-grid { gap: 24px !important; }
  .lead { font-size: 16px; }
  h2.section-title { font-size: clamp(28px, 8vw, 44px); }
  /* горизонтальные карусели: убираем «вынос» за край, который тянул viewport */
  .cert-grid, .svc-x-stack, .case-list, .proc-grid, .kase-tabs, .kase-grid {
    margin-left: -16px !important; margin-right: -16px !important;
    padding-left: 16px !important; padding-right: 16px !important;
  }
  .cert-lb-nav { width: 40px; height: 40px; bottom: 12px; }
}

/* ============================================================
   BACKGROUND ATMOSPHERE — animated glows + patterns
   Restrained, accent-tinted, sits behind content. Honors
   prefers-reduced-motion (drift freezes, opacity stays).
   ============================================================ */
.atmos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  contain: strict;   /* isolate paint/layout so background drift doesn't repaint the section */
  /* fade the animated background toward the top/bottom edges so glows don't form
     hard blobs at section borders — smooths the transition between blocks */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); }
.no-atmos .atmos { display: none; }
section > .wrap, header > .wrap, section > .atmos ~ * { position: relative; z-index: 1; }

/* soft drifting accent orbs */
.glow {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--accent) 70%, transparent) 0%,
    color-mix(in srgb, var(--accent) 22%, transparent) 38%, transparent 70%);
  filter: blur(60px); opacity: 0.20; will-change: transform;
}
.glow.g1 { width: 520px; height: 520px; top: -160px; left: -120px; animation: drift1 26s ease-in-out infinite; }
.glow.g2 { width: 420px; height: 420px; bottom: -160px; right: -100px; opacity: 0.14; animation: drift2 32s ease-in-out infinite; }
.glow.g3 { width: 300px; height: 300px; top: 30%; right: 16%; opacity: 0.10; animation: drift3 22s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,60px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,-50px) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-60px); } }

/* dotted + line grid patterns, faded toward edges */
.pattern { position: absolute; inset: 0; pointer-events: none; }
.pattern-dots {
  background-image: radial-gradient(rgba(255,255,255,0.06) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}
.pattern-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 0%, transparent 75%);
}
/* slow conveyor for grid */
.pattern-grid.drifting { animation: gridmove 40s linear infinite; }
@keyframes gridmove { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }

@media (prefers-reduced-motion: reduce) {
  .glow, .pattern-grid.drifting { animation: none !important; }
}

/* ============================================================
   QUOTES — auto-rotating animated marquee of marketing wisdom
   ============================================================ */
/* tighter top/bottom breathing room for the quote block */
.quotes-sec { padding: 72px 0; }
.quotes-stage {
  position: relative; min-height: 220px; display: grid; place-items: center;
  text-align: center; padding: 6px;
}
.quote-item {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
}

@media (max-width: 640px) {
  .quotes-stage { min-height: 360px; }
  .quote-text { font-size: 22px; line-height: 1.25; }
}
.quote-mark {
  font-family: var(--font-display); font-size: 120px; line-height: 0.6;
  color: var(--accent-bright); opacity: 0.5; height: 44px;
}
.quote-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -0.02em;
  max-width: 900px; margin: 0; text-wrap: normal; color: var(--txt);
}
.quote-text .hl { color: var(--accent-bright); }
/* typewriter caret: solid while typing, blinking once finished */
.type-caret {
  display: inline-block; width: 3px; height: 0.92em; margin-left: 6px;
  background: var(--accent-bright); border-radius: 2px; vertical-align: -0.08em;
}
.type-caret.done { animation: caretBlink 1s steps(1, end) infinite; }
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .type-caret { display: none; } }
.quote-author { display: flex; align-items: center; gap: 12px; color: var(--txt-2);
  font-size: 16px; transition: opacity .5s ease; }
.quote-author .rule { width: 30px; height: 1px; background: var(--accent-bright); opacity: .7; }
.quote-author b { color: var(--txt); font-weight: 600; }
.quote-dots { display: flex; gap: 9px; justify-content: center; margin-top: 22px; position: relative; z-index: 1; }
.quote-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: var(--line-strong); transition: all .3s ease;
}
.quote-dot.on { background: var(--accent-bright); width: 26px; border-radius: 6px; }

/* ============================================================
   CASES — filterable cards (tabs by service)
   ============================================================ */
.kase-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.kase-tab {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-text); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--txt-2); background: rgba(255,255,255,0.03);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.kase-tab:hover { color: var(--txt); border-color: var(--line-strong); }
.kase-tab.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent-line); }
.kase-tab-n {
  font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: inherit;
}
.kase-tab.on .kase-tab-n { background: rgba(0,0,0,0.18); }

.kase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 22px; }
.kase { overflow: hidden; display: flex; flex-direction: column;
  opacity: 0; animation: kaseIn .5s cubic-bezier(.16,.7,.3,1) forwards;
  animation-delay: calc(var(--d) * 70ms); }
@keyframes kaseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.kase:hover { border-color: var(--accent-soft-bd); }
.kase-photo {
  position: relative; aspect-ratio: 16 / 10; background: var(--tile-b);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.kase-photo image-slot { width: 100%; height: 100%; display: block; }
.kase-photo .kase-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.kase-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
  padding: 6px 12px; border-radius: var(--r-pill);
}
.kase-geo {
  position: absolute; bottom: 14px; left: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8,8,10,0.66); backdrop-filter: blur(8px); color: var(--txt);
  font-size: 13px; padding: 6px 12px; border-radius: var(--r-pill);
}
.kase-geo .i { color: var(--accent-bright); }
.kase-content { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.kase-field { color: var(--accent-bright); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; }
.kase-name { font-family: var(--font-display); font-size: 24px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--txt); margin: -6px 0 0; }
.kase-summary { color: var(--txt-2); font-size: 15px; line-height: 1.5; margin: 0;
  min-height: 68px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.kase-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px;
  padding-top: 16px; border-top: 1px solid var(--line); }
.kase-chips { margin-top: auto; }
.kase-metric-v { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  color: var(--accent-bright); font-size: 26px; line-height: 1.05; }
.kase-metric-l { color: var(--txt-3); font-size: 12.5px; line-height: 1.35; margin-top: 5px; }
.kase-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.kase-chip { font-size: 12px; color: var(--txt-2); padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); }

@media (max-width: 640px) {
  .kase-photo { aspect-ratio: 16 / 8; }
  .kase-content { padding: 14px 16px; gap: 9px; }
  /* фикс. высоты, чтобы строки/блоки во всех карточках были на одном уровне */
  .kase-field { min-height: 2.6em; display: flex; align-items: flex-start; }
  .kase-name { font-size: 19px; min-height: 2.3em; }
  .kase-summary { font-size: 13px; min-height: 5.6em; -webkit-line-clamp: 4; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .kase-metrics { gap: 10px 12px; padding-top: 10px; }
  .kase-metric { min-height: 3.4em; }
  .kase-metric-v { font-size: 20px; }
  .kase-metric-l { font-size: 11px; }
  .kase-chip { font-size: 11px; padding: 4px 9px; }
}

@media (prefers-reduced-motion: reduce) { .kase { animation: none; opacity: 1; } }

/* tabs scroll horizontally + cards become a swipe carousel on phones */
@media (max-width: 640px) {
  .kase-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -22px 16px; padding: 0 22px 4px;
    scrollbar-width: none; }
  .kase-tabs::-webkit-scrollbar { display: none; }
  .kase-tab { flex: 0 0 auto; }
  .kase-grid {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    margin: 0 -22px; padding: 4px 22px 16px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .kase-grid::-webkit-scrollbar { height: 6px; }
  .kase-grid::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
  .kase { flex: 0 0 86%; max-width: 340px; scroll-snap-align: start; }
}

/* ============================================================
   SERVICES — full-width expandable accordion with spotlight glow
   ============================================================ */
.svc-x { position: relative; padding: 0; overflow: hidden; isolation: isolate;
  transition: border-color .25s ease, box-shadow .25s ease; }
.svc-x::before {            /* cursor-following spotlight */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0),
    color-mix(in srgb, var(--accent-bright) 14%, transparent), transparent 60%);
  transition: opacity .3s ease;
}
.svc-x:hover::before { opacity: 1; }
.svc-x:hover { border-color: var(--accent-soft-bd); box-shadow: 0 14px 40px rgba(0,0,0,0.30); }
.svc-x.open { border-color: var(--accent-soft-bd); }
.svc-x > * { position: relative; z-index: 1; }

.svc-x-head { width: 100%; display: grid; grid-template-columns: auto 400px 1fr auto auto;
  align-items: center; gap: 22px; background: transparent; border: none; cursor: pointer;
  color: var(--txt); padding: 24px 28px; text-align: left; }
.svc-x-more { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--accent-bright); text-decoration: none;
  padding: 8px 14px; border: 1px solid var(--accent-soft-bd, rgba(214,255,65,0.3));
  border-radius: var(--r-pill, 999px); transition: background .2s ease, transform .1s ease; }
.svc-x-more:hover { background: rgba(214,255,65,0.12); }
.svc-x-more:active { transform: scale(0.97); }
.svc-x-icon { transition: transform .3s cubic-bezier(.16,.7,.3,1); }
.svc-x:hover .svc-x-icon { transform: translateY(-2px) scale(1.06); }
.svc-x-titles { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.svc-x-name { font-family: var(--font-display); font-size: 21px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--txt); }
.svc-x-tag { color: var(--accent-bright); font-size: 13px; }
.svc-x-result { color: var(--txt-2); font-size: 15px; line-height: 1.5; padding-left: 24px; }
.svc-x-chev { color: var(--txt-3); flex: 0 0 auto; justify-self: end;
  transition: transform .4s cubic-bezier(.16,.7,.3,1), color .2s ease; }
.svc-x-chev.open { transform: rotate(180deg); color: var(--accent-bright); }

.svc-x-body { display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.16,.7,.3,1); }
.svc-x.open .svc-x-body { grid-template-rows: 1fr; }
.svc-x-clip { overflow: hidden; min-height: 0; }
.svc-x-inner { padding: 2px 28px 20px; }
.svc-x-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px;
  padding-top: 18px; border-top: 1px solid var(--line); }
.svc-x-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--txt-3); margin-bottom: 12px; }
.svc-x-list { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px 24px; }
.svc-x-list li { display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; color: var(--txt-2); line-height: 1.4;
  opacity: 0; transform: translateX(-8px); }
.svc-x.open .svc-x-list li { animation: svcItemIn .5s cubic-bezier(.16,.7,.3,1) forwards; }
.svc-x.open .svc-x-list li:nth-child(1) { animation-delay: .05s; }
.svc-x.open .svc-x-list li:nth-child(2) { animation-delay: .11s; }
.svc-x.open .svc-x-list li:nth-child(3) { animation-delay: .17s; }
.svc-x.open .svc-x-list li:nth-child(4) { animation-delay: .23s; }
.svc-x.open .svc-x-list li:nth-child(5) { animation-delay: .29s; }
@keyframes svcItemIn { to { opacity: 1; transform: none; } }
.svc-x-list li .i { color: var(--accent-bright); flex: 0 0 auto; margin-top: 2px; }

.svc-x-aside { display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px; background: var(--accent-soft); border: 1px solid var(--accent-soft-bd);
  border-radius: var(--r-md); align-self: start; }
.svc-x-meta-row { display: flex; flex-direction: column; gap: 3px; }
.svc-x-meta-label { display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--txt-3); text-transform: uppercase; letter-spacing: 0.05em; }
.svc-x-meta-label .i { width: 14px; height: 14px; color: var(--accent-bright); }
.svc-x-meta-val { font-size: 16px; font-weight: 600; color: var(--txt); line-height: 1.4; }
.svc-x-meta-val.accent { color: var(--accent-bright); }
.svc-x-cta { margin-top: 4px; }

@media (max-width: 720px) {
  .svc-x-head { grid-template-columns: auto 1fr auto auto; gap: 12px; padding: 20px; }
  /* в свёрнутой карточке опускаем нижнюю границу — больше воздуха снизу */
  .svc-x:not(.open) .svc-x-head { padding-bottom: 30px; }
  .svc-x-result { display: none; }
  .svc-x-titles { min-width: 0; }
  .svc-x-more { padding: 7px 11px; font-size: 13px; }
  .svc-x-inner { padding: 4px 16px 16px; }
  .svc-x-detail { grid-template-columns: 1fr; gap: 14px; }
  .svc-x-list { grid-template-columns: 1fr; gap: 5px 0; }
  .svc-x-list li { font-size: 13.5px; }
  .svc-x-label { font-size: 11px; margin-bottom: 6px; }
}

/* На узких телефонах — grid: icon | title+tag | chevron */
@media (max-width: 480px) {
  .svc-x-head {
    display: grid;
    grid-template-columns: 44px 1fr 28px;
    gap: 16px;
    padding: 20px;
    align-items: start;
  }
  .svc-x-name   { font-size: 17px; line-height: 1.3; }
  .svc-x-tag    { font-size: 11.5px; }
  .svc-x-result { display: none; }
  .svc-x-more   { display: none; }
  .svc-x-meta-val { font-size: 14px; line-height: 1.4; word-break: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-x.open .svc-x-list li { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   PROCESS — animated chain: flowing current + sequential pulse
   ============================================================ */
.proc-node-row { display: flex; align-items: center; margin-bottom: 22px; }
.proc-node { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-bright); background: var(--accent-soft);
  border: 1px solid var(--accent-soft-bd); position: relative; z-index: 1;
  animation: procNode 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.6s); }
@keyframes procNode {
  0%, 55%, 100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); border-color: var(--accent-soft-bd); }
  10% { box-shadow: 0 0 0 7px var(--accent-soft),
          0 0 26px 2px color-mix(in srgb, var(--accent-bright) 50%, transparent);
        transform: scale(1.12); border-color: var(--accent-bright); }
  22% { box-shadow: 0 0 0 0 transparent; transform: scale(1); border-color: var(--accent-soft-bd); }
}
.proc-link { flex: 1; height: 2px; margin-left: 6px; position: relative; overflow: hidden;
  background: var(--line); border-radius: 2px; }
.proc-link-flow { position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%,
    color-mix(in srgb, var(--accent-bright) 90%, transparent) 50%, transparent 100%);
  background-size: 55% 100%; background-repeat: no-repeat;
  animation: procFlow 5s linear infinite;
  animation-delay: calc(var(--i) * 0.6s); }
@keyframes procFlow {
  0%   { background-position: -60% 0; opacity: 0; }
  4%   { opacity: 1; }
  20%  { background-position: 170% 0; opacity: 1; }
  24%, 100% { background-position: 170% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .proc-node, .proc-link-flow { animation: none; }
  .proc-link-flow { opacity: 1; background-position: 50% 0; }
}
@media (max-width: 1040px) {
  .proc-chain .proc-link { display: none; }   /* segments only read across a single row */
}
/* Phones: turn the steps into a horizontal snap carousel and bring the
   animated chain (flowing links + node pulse) back since they line up again. */
@media (max-width: 640px) {
  .proc-grid {
    display: flex !important; gap: 0 !important;
    overflow-x: auto; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    margin: 0 -22px; padding: 6px 22px 16px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .proc-grid::-webkit-scrollbar { height: 6px; }
  .proc-grid::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
  .proc-step { flex: 0 0 64%; max-width: 230px; scroll-snap-align: start; }
  .proc-chain .proc-link { display: block; }            /* re-enable flowing connector */
  .proc-step:last-child .proc-node-row { padding-right: 0; }
}

/* ---------- Wave section dividers ---------- */
.wave-svg { animation: waveSlide var(--wave-spd, 15s) linear infinite; }
@keyframes waveSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .wave-svg { animation: none !important; } }

/* ---------------- QUIZ FAB (floating "Рассчитать проект") ---------------- */
.quiz-fab {
  position: fixed; left: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 22px; border: none; cursor: pointer;
  background: var(--accent-bright, #b6f01e); color: #0c1402;
  font-family: inherit; font-weight: 700; font-size: 15px;
  border-radius: var(--r-pill, 999px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.05);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  animation: quizFabIn .4s ease both .6s;
}
.quiz-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,0.55); background: var(--accent, #c4f53e); }
.quiz-fab:active { transform: translateY(0) scale(0.98); }
.quiz-fab-ic { display: inline-flex; }
@keyframes quizFabIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
/* Desktop-only */
@media (max-width: 900px) { .quiz-fab { display: none; } }

/* ---------------- MEET IN PERSON (animated map) ---------------- */
.meet-card { padding: 36px; display: flex; flex-direction: column; }
.meet-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0 0 10px; color: #fff; }
.meet-sub { color: var(--txt-2); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.meet-map { position: relative; width: 100%; border-radius: var(--r-md, 14px); overflow: hidden;
  background: radial-gradient(120% 120% at 70% 0%, rgba(182,240,30,0.07), transparent 60%), #0e0f0d;
  border: 1px solid var(--line); }
.meet-map svg { display: block; width: 100%; height: auto; }

.meet-region { stroke: rgba(182,240,30,0.45); stroke-width: 1.5; }
.meet-region-tver { fill: rgba(182,240,30,0.08); animation: meetGlow 4s ease-in-out infinite; }
.meet-region-msk  { fill: rgba(182,240,30,0.13); animation: meetGlow 4s ease-in-out infinite 1.2s; }
@keyframes meetGlow { 0%,100% { fill-opacity: .6; } 50% { fill-opacity: 1; } }

.meet-route { fill: none; stroke: var(--accent-bright, #b6f01e); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 7 9; animation: meetDash 1.1s linear infinite; opacity: .85; }
@keyframes meetDash { to { stroke-dashoffset: -32; } }

.meet-mover { offset-path: path('M135 110 Q210 90 285 175'); animation: meetMove 3.4s ease-in-out infinite; }
.meet-mover-dot { fill: var(--accent-bright, #b6f01e); }
@keyframes meetMove { 0% { offset-distance: 0%; } 55% { offset-distance: 100%; } 100% { offset-distance: 100%; } }

.meet-pin-core { fill: var(--accent-bright, #b6f01e); }
.meet-pulse { fill: var(--accent-bright, #b6f01e); transform-origin: center; transform-box: fill-box;
  animation: meetPulse 2s ease-out infinite; }
.meet-pin-2 .meet-pulse { animation-delay: 1s; }
@keyframes meetPulse { 0% { transform: scale(1); opacity: .55; } 70%,100% { transform: scale(3.4); opacity: 0; } }
.meet-label { fill: #fff; font-family: var(--font-display); font-size: 15px; font-weight: 700; }

.meet-tags { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 26px; }
.meet-tags-row { display: flex; flex-wrap: wrap; gap: 10px; }
.meet-tag { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--accent-bright, #b6f01e); background: rgba(182,240,30,0.08);
  border: 1px solid rgba(182,240,30,0.25); border-radius: var(--r-pill, 999px); }
.meet-btn { width: 100%; margin-top: auto; }

@media (prefers-reduced-motion: reduce) {
  .meet-region, .meet-route, .meet-mover, .meet-pulse { animation: none !important; }
}

/* ---------------- CONTACTS perks (fills left column) ---------------- */
.contact-perks { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 16px; }
.contact-perk { display: flex; align-items: center; gap: 14px; }
.contact-perk-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-md, 12px);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-bright, #b6f01e); background: rgba(182,240,30,0.08);
  border: 1px solid rgba(182,240,30,0.22); }
.contact-perk b { display: block; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; }
.contact-perk-sub { display: block; color: var(--txt-3); font-size: 13.5px; margin-top: 2px; }
/* ---------- Preloader → page reveal ---------- */
body.preloading #root {
  opacity: 0;
  transform: scale(1.04);
}
body.preloading.preloader-done #root {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.16,.7,.3,1);
}

/* ---------- Starfield (подложка блока «Обо мне», звёзды разбегаются от курсора) ---------- */
.star-wrap {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 0%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 0%, transparent 100%);
}
.star-canvas { position: absolute; inset: 0; display: block; }
