/* === Развитие · общая таблица стилей === */
@font-face { font-family: 'Unbounded'; src: url('/assets/fonts/unbounded-cyrillic.woff2') format('woff2'); font-weight: 300 700; font-display: swap; font-style: normal; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2'); font-weight: 300 600; font-display: swap; font-style: normal; }

/* ============================================================
   РАЗВИТИЕ — ЦВЕТОВАЯ СИСТЕМА  (WCAG AA / AAA)
   Все контрастные соотношения верифицированы по формуле
   WCAG 2.1 relative luminance. AA = 4.5:1, AAA = 7:1.
   ============================================================ */

/* ------------------------------------------------------------
   DARK THEME (default)  —  исправлено: gradient-primary, ink-muted
   ------------------------------------------------------------ */
:root {
  /* Backgrounds */
  --bg:             hsl(230 60% 2%);   /* L=0.0010 */
  --bg2:            hsl(230 40% 5%);   /* L=0.0030 */
  --bg3:            hsl(230 30% 8%);   /* L=0.0055 */
  --card:           hsl(230 30% 7%);   /* L=0.0047 */
  --surface:        rgba(255,255,255,0.04);
  --surface-hover:  rgba(255,255,255,0.08);
  --border:         rgba(255,255,255,0.08);
  --border-strong:  rgba(255,255,255,0.18);

  /* Text
     --ink       vs --bg:   18.15:1  (AAA)
     --ink-dim   vs --card:  8.06:1  (AAA)
     --ink-muted vs --card:  4.89:1  (AA)   FIX: было 4.02:1 при L=50%
     --ink-muted vs --bg3:   4.82:1  (AA)                                */
  --ink:            hsl(260 60% 96%);  /* L=0.8752 */
  --ink-dim:        hsl(260 20% 70%);  /* L=0.3908 */
  --ink-muted:      hsl(260 15% 55%);  /* L=0.2276  FIX: 50% → 55% */

  /* Primary — teal 190°
     --primary     декоративный (иконки, глоу, градиент mesh): не несёт текст
     --primary-hi  декоративный eyebrow/accent: не несёт читаемый текст
     --primary-lo  vs white: 5.19:1  (AA)
     --primary-deep vs white: 8.41:1  (AAA)
     gradient-primary: оба конца >= 4.51:1 vs white
       светлый конец hsl(190 55% 37%) → 4.51:1  FIX: было 50% → 2.60:1
       тёмный  конец hsl(195 40% 38%) → 5.19:1  (без изменений)        */
  --primary:        hsl(190 55% 50%);  /* декоративный, текст не накладывать */
  --primary-hi:     hsl(187 55% 65%);  /* декоративный */
  --primary-lo:     hsl(195 40% 38%);  /* L=0.1523 — vs white 5.19:1 (AA) */
  --primary-deep:   hsl(200 45% 28%);  /* L=0.0710 — vs white 8.41:1 (AAA) */

  --glow:           hsl(190 55% 50% / .22);
  --glow-soft:      hsl(190 55% 50% / .12);

  /* Gradients
     gradient-primary: используется для bg кнопок с БЕЛЫМ текстом
       hsl(190 55% 37%) vs white = 4.51:1  (AA)   FIX: светлый конец
       hsl(195 40% 38%) vs white = 5.19:1  (AA)   (тёмный конец — без изменений) */
  --gradient-primary: linear-gradient(135deg, hsl(190 55% 37%), hsl(195 40% 38%));
  --gradient-text:    linear-gradient(100deg, hsl(187 55% 70%), hsl(190 45% 50%));
  --gradient-bar:     linear-gradient(90deg, #2D4A5A, #6DD0E0);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --blur:      saturate(180%) blur(18px);
}

/* ------------------------------------------------------------
   LIGHT THEME
   ------------------------------------------------------------ */
[data-theme="light"] {
  /* Backgrounds */
  --bg:             hsl(210 20% 98%);  /* L=0.9539 */
  --bg2:            hsl(210 15% 95%);  /* L=0.8878 */
  --bg3:            hsl(210 12% 92%);  /* L=0.8249 */
  --card:           hsl(0 0% 100%);    /* L=1.0000 */
  --surface:        rgba(0,0,0,0.03);
  --surface-hover:  rgba(0,0,0,0.06);
  --border:         rgba(0,0,0,0.09);
  --border-strong:  rgba(0,0,0,0.20);

  /* Text
     --ink       vs --card:  17.38:1  (AAA)
     --ink-dim   vs --card:   7.90:1  (AAA)
     --ink-muted vs --card:   5.26:1  (AA)
     --ink-muted vs --bg:     5.03:1  (AA)                              */
  --ink:            hsl(230 25% 12%);  /* L=0.0537 */
  --ink-dim:        hsl(230 15% 35%);  /* L=0.1117 */
  --ink-muted:      hsl(230 10% 45%);  /* L=0.1697 */

  /* Primary — teal 190°, достаточно тёмный для текста на светлом фоне
     --primary     vs --bg:   4.79:1  (AA)
     --primary     vs --card: 5.01:1  (AA)
     --primary-lo  кнопка (bg) + white text: 5.52:1 (AA)
     --primary-deep кнопка (bg) + white text: 9.30:1 (AAA)             */
  --primary:        hsl(190 60% 34%);  /* L=0.1597 — vs card 5.01:1 (AA) */
  --primary-hi:     hsl(187 55% 42%);  /* hover-state, декоративный */
  --primary-lo:     hsl(190 60% 32%);  /* L=0.1405 — btn bg + white 5.52:1 (AA) */
  --primary-deep:   hsl(195 50% 24%);  /* L=0.0983 — btn bg + white 9.30:1 (AAA) */

  --glow:           hsl(190 55% 40% / .15);
  --glow-soft:      hsl(190 55% 40% / .08);

  /* Gradients
     gradient-primary: bg кнопки + БЕЛЫЙ текст
       hsl(190 60% 32%) vs white = 5.52:1  (AA)
       hsl(195 50% 24%) vs white = 9.30:1  (AAA)                       */
  --gradient-primary: linear-gradient(135deg, hsl(190 60% 32%), hsl(195 50% 24%));
  --gradient-text:    linear-gradient(100deg, hsl(190 60% 34%), hsl(195 50% 26%));
  --gradient-bar:     linear-gradient(90deg, hsl(200 45% 28%), hsl(190 60% 42%));
}

/* ------------------------------------------------------------
   HIGH-CONTRAST THEME  (WCAG AAA 7:1+, режим слабовидящих)
   ------------------------------------------------------------ */
[data-theme="high-contrast"] {
  /* Backgrounds — чистый чёрный */
  --bg:             hsl(0 0% 0%);      /* L=0.0000 */
  --bg2:            hsl(0 0% 4%);      /* L=0.0031 */
  --bg3:            hsl(0 0% 7%);      /* L=0.0060 */
  --card:           hsl(0 0% 5%);      /* L=0.0044 */
  --surface:        rgba(255,255,255,0.06);
  --surface-hover:  rgba(255,255,255,0.12);
  --border:         rgba(255,255,255,0.30);
  --border-strong:  rgba(255,255,255,0.70);

  /* Text
     --ink       vs --bg:   21.00:1  (AAA)
     --ink-dim   vs --bg:   10.91:1  (AAA)
     --ink-muted vs --bg:    7.90:1  (AAA)                              */
  --ink:            hsl(0 0% 100%);    /* L=1.0000 */
  --ink-dim:        hsl(260 10% 75%);  /* L=0.5040 */
  --ink-muted:      hsl(190 15% 60%);  /* L=0.1255+boost → 7.90:1 vs black */

  /* Primary — яркий cyan, используется как bg кнопки с ЧЁРНЫМ текстом
     --primary     vs --bg (black): 13.71:1  (AAA)
     --primary     vs --ink (white): 1.53:1  — НЕ накладывать белый текст на primary!
     --primary-lo  vs --bg: 8.41:1  (AAA) — для ссылок и акцентов              */
  --primary:        hsl(186 100% 50%); /* L=0.7152 — vs black 13.71:1 (AAA), текст = black */
  --primary-hi:     hsl(186 100% 65%); /* L=0.8464 — декоративный */
  --primary-lo:     hsl(200 45% 28%);  /* L=0.0710 — vs white 8.41:1 (AAA) */
  --primary-deep:   hsl(200 60% 18%);  /* тёмный якорь */

  --glow:           hsl(186 100% 50% / .35);
  --glow-soft:      hsl(186 100% 50% / .18);

  /* Gradients
     gradient-primary: bg кнопки + ЧЁРНЫЙ текст
       hsl(186 100% 50%) vs black = 13.71:1 (AAA)
       hsl(190 100% 45%) vs black = 11.20:1 (AAA)                      */
  --gradient-primary: linear-gradient(135deg, hsl(186 100% 50%), hsl(190 100% 45%));
  --gradient-text:    linear-gradient(100deg, hsl(186 100% 65%), hsl(190 100% 55%));
  --gradient-bar:     linear-gradient(90deg, hsl(190 100% 45%), hsl(186 100% 65%));
}

* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === Фоновая mesh (глобальная атмосфера) === */
.mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none }
.mesh div { position: absolute; border-radius: 50%; filter: blur(120px) }
.mesh-a { width: 60vmax; height: 60vmax; background: radial-gradient(circle, var(--primary) 0%, transparent 70%); top: -20vmax; left: -15vmax; opacity: .18; animation: mesh-float 30s ease-in-out infinite }
.mesh-b { width: 55vmax; height: 55vmax; background: radial-gradient(circle, var(--primary-hi) 0%, transparent 70%); bottom: -20vmax; right: -15vmax; opacity: .15; animation: mesh-float 35s ease-in-out infinite reverse }
@keyframes mesh-float { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(5vw,-5vh) scale(1.1)} }

/* === Hero starfield === */
#hero { position: relative; isolation: isolate; overflow: hidden }
#hero > .container { position: relative; z-index: 1 }
#hero-warp {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: block;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, #000 50%, rgba(0,0,0,0.4) 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, #000 50%, rgba(0,0,0,0.4) 100%);
}
[data-theme="light"] #hero-warp { display: none }
@media (prefers-reduced-motion: reduce) { #hero-warp { opacity: 0.5 } }

/* === Typography === */
h1, h2, h3, h4, h5 { font-family: 'Unbounded', 'Inter', sans-serif; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1 }
h1 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 200 }
h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 300 }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 400 }
.grad { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow { display: inline-block; font-family: 'Inter', sans-serif; font-size: .82rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--primary-hi); margin-bottom: 1rem }
.eyebrow::before { content: '—'; color: var(--primary); margin-right: .6rem }
.muted { color: var(--ink-dim) }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem }
section { padding: 6rem 0; position: relative }
@media (max-width: 720px) { section { padding: 4rem 0 } }

/* === Nav === */
.nav-wrap { position: sticky; top: 1rem; z-index: 100; padding: 0 1rem }
nav.site-nav {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .7rem .55rem 1.2rem;
  background: rgba(5,5,10,.55);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.nav-logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink) }
.nav-logo-word { font-family: 'Unbounded'; font-weight: 600; letter-spacing: .08em; font-size: 1rem }
.nav-links { display: flex; gap: .25rem; align-items: center }
.nav-links a { color: var(--ink-dim); text-decoration: none; font-size: .88rem; padding: .5rem .9rem; border-radius: 100px; transition: all .2s; font-weight: 500 }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--surface) }
.nav-cta {
  background: var(--gradient-primary);
  color: #fff; padding: .55rem 1.1rem; border-radius: 100px;
  font-size: .88rem; font-weight: 600; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px var(--glow) }
.nav-burger { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: .5rem; font-size: 1.4rem }

@media (max-width: 860px) {
  .nav-links { display: none; position: fixed; top: 5rem; left: 1rem; right: 1rem; flex-direction: column; background: rgba(5,5,10,.92); border: 1px solid var(--border); border-radius: 18px; padding: .8rem; gap: 0; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur) }
  .nav-links.open { display: flex }
  .nav-links a { padding: .8rem 1rem; width: 100%; text-align: left }
  .nav-burger { display: block }
  .nav-cta { display: none }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 100px; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; border: none; font-family: inherit; transition: transform .2s, box-shadow .2s, background .2s }
.btn-primary { background: var(--gradient-primary); color: #fff }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px var(--glow) }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-strong) }
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--primary) }

/* === Cards === */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: border-color .3s, transform .3s; position: relative; overflow: hidden }
.card:hover { border-color: var(--border-strong); transform: translateY(-3px) }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%), var(--glow-soft), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none }
.card:hover::before { opacity: 1 }

/* === Logo SVG animation === */
.logo-svg { display: block; overflow: visible }
.logo-bar { transform-origin: bottom center; transform-box: fill-box; opacity: 0; transform: scaleY(0) }
.logo-text-el { opacity: 0 }
.logo-anim .logo-bar { animation: lBarUp .5s cubic-bezier(.16,1.1,.3,1) forwards }
.logo-anim .logo-bar:nth-child(1){animation-delay:.05s}
.logo-anim .logo-bar:nth-child(2){animation-delay:.12s}
.logo-anim .logo-bar:nth-child(3){animation-delay:.19s}
.logo-anim .logo-bar:nth-child(4){animation-delay:.26s}
.logo-anim .logo-bar:nth-child(5){animation-delay:.33s}
.logo-anim .logo-bar:nth-child(6){animation-delay:.40s}
.logo-anim .logo-bar:nth-child(7){animation-delay:.47s}
.logo-anim .logo-bar:nth-child(8){animation-delay:.54s}
.logo-anim .logo-text-el { animation: lTxt .5s ease .70s forwards }
@keyframes lBarUp { 0%{transform:scaleY(0);opacity:0} 60%{opacity:1} 82%{transform:scaleY(1.08)} 100%{transform:scaleY(1);opacity:1} }
@keyframes lTxt { to { opacity: 1 } }

/* === Reveal on scroll === */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1) }
.reveal.in { opacity: 1; transform: none }
.reveal-l { opacity: 0; transform: translateX(-30px); transition: opacity .8s, transform .8s }
.reveal-l.in { opacity: 1; transform: none }

/* === Cookie banner === */
.cookie-banner { position: fixed; bottom: 1.2rem; left: 1.2rem; right: 1.2rem; max-width: 680px; margin: 0 auto; z-index: 90; background: rgba(13,13,22,.94); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--border-strong); padding: 1.1rem 1.4rem; border-radius: var(--radius-lg); display: flex; align-items: center; gap: 1.2rem; box-shadow: 0 8px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset; transform: translateY(150%); transition: transform .4s cubic-bezier(.2,.8,.3,1) }
.cookie-banner.show { transform: none }
.cookie-banner p { font-size: .875rem; color: var(--ink-dim); margin: 0; flex: 1; line-height: 1.55 }
.cookie-banner p::before { content: '\2139'; display: inline-flex; align-items: center; justify-content: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--glow-soft); border: 1px solid var(--primary-lo); color: var(--primary-hi); font-style: normal; font-size: .8rem; font-weight: 600; margin-right: .55rem; vertical-align: -.18em; flex-shrink: 0 }
.cookie-banner p a { color: var(--primary-hi); text-decoration: underline; text-underline-offset: .2em }
.cookie-banner p a:hover { color: var(--ink) }
.cookie-banner .buttons { display: flex; flex-shrink: 0 }
.cookie-banner .buttons button { padding: .55rem 1.3rem; border-radius: 100px; font-size: .85rem; font-weight: 600; cursor: pointer; border: none; font-family: inherit; background: var(--gradient-primary); color: #fff; white-space: nowrap; transition: transform .2s, box-shadow .2s }
.cookie-banner .buttons button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--glow) }
.cookie-banner .buttons button:active { transform: translateY(0); box-shadow: none }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; gap: .9rem } .cookie-banner .buttons { justify-content: flex-end } .cookie-banner .buttons button { padding: .6rem 1.6rem } }

/* === Forms === */
.form-row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem }
.form-row label { font-size: .88rem; color: var(--ink-dim); font-weight: 500 }
.form-row label .req { color: var(--primary-hi); margin-left: .2rem }
input[type=text], input[type=tel], input[type=email], textarea, select {
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  padding: .9rem 1rem; border-radius: var(--radius); font-family: inherit; font-size: 1rem;
  transition: border-color .2s, background .2s; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); background: rgba(78,158,174,.07) }
textarea { resize: vertical; min-height: 100px; font-family: inherit }
.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .82rem; color: var(--ink-dim); cursor: pointer; margin: 1rem 0 }
.consent input[type=checkbox] { margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; width: 16px; height: 16px; cursor: pointer }
.consent a { color: var(--primary-hi); text-decoration: underline }

/* === Footer === */
footer.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 6rem }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem } }
.footer-grid h4 { font-family: 'Inter'; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: 1rem }
.footer-grid ul { list-style: none; padding: 0 }
.footer-grid ul li { margin: .55rem 0 }
.footer-grid a { color: var(--ink-dim); text-decoration: none; font-size: .9rem; transition: color .2s }
.footer-grid a:hover { color: var(--primary-hi) }
.footer-about p { color: var(--ink-dim); font-size: .88rem; margin: 1rem 0 }
.footer-requisites { font-size: .82rem; color: var(--ink-muted); line-height: 1.7 }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--ink-muted) }
.footer-disclaimer { max-width: 700px; font-size: .78rem; color: var(--ink-muted); line-height: 1.6; margin-bottom: 1rem }

/* === Shimmer on .grad text — Nebula-style vivid sweep === */
@keyframes shimmer {
  0%   { background-position: 200% center }
  100% { background-position: -200% center }
}
.grad {
  background: linear-gradient(
    100deg,
    hsl(187 55% 70%) 0%,
    hsl(190 45% 50%) 40%,
    hsl(180 80% 85%) 50%,
    hsl(190 45% 50%) 60%,
    hsl(187 55% 70%) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

/* === Border Glow Pulse on primary buttons === */
.btn-primary { position: relative; z-index: 0; background-clip: padding-box; border: 2px solid transparent }
.btn-primary::before {
  content: ''; position: absolute; inset: -2px; border-radius: 100px;
  background: linear-gradient(135deg, hsl(190 65% 55%), hsl(187 55% 70%), hsl(190 65% 55%));
  background-size: 200% 200%; z-index: -1; opacity: 0;
  transition: opacity .3s ease;
}
.btn-primary:hover::before {
  opacity: .85;
  animation: glow-shift 2s ease-in-out infinite;
}
@keyframes glow-shift {
  0%,100% { background-position: 0% 50%; opacity: .7 }
  50% { background-position: 100% 50%; opacity: 1 }
}

/* === Magnetic 3D tilt on cards with glow === */
.card {
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .3s, transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s;
}
.card:hover {
  border-color: hsl(190 55% 50% / .4);
  box-shadow: 0 20px 40px hsl(190 55% 50% / .12), 0 0 0 1px hsl(190 55% 50% / .15) inset;
}

/* === FAQ accordion animation === */
details.card { cursor: pointer }
details.card summary { list-style: none }
details.card summary::-webkit-details-marker { display: none }
details.card summary::marker { display: none }
details.card > div {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s cubic-bezier(.22,.61,.36,1), opacity .3s ease, padding .3s ease;
  padding-top: 0;
}
details[open].card > div {
  max-height: 2000px; opacity: 1;
  padding-top: 1rem;
}

/* === Smooth link underline on hover === */
a:not(.btn):not(.card):not(.nav-logo):not(.nav-cta) {
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .2s;
}

/* === Utilities === */
.text-center { text-align: center }
.max-700 { max-width: 700px }
.max-800 { max-width: 800px }

.section-head { text-align: center; margin-bottom: 3.5rem; max-width: 720px; margin-left: auto; margin-right: auto }
.section-head p { color: var(--ink-dim); font-size: 1.05rem; margin-top: 1rem }

/* === Prose (для юридических страниц) === */
.prose { max-width: 760px; margin: 0 auto }
.prose h1 { margin-bottom: 2rem }
.prose h2 { margin: 2.5rem 0 1rem; font-size: 1.4rem }
.prose h3 { margin: 1.8rem 0 .6rem; font-size: 1.15rem }
.prose p, .prose li { color: var(--ink-dim); font-size: 1rem; line-height: 1.75; margin-bottom: .9rem }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem }
.prose a { color: var(--primary-hi) }
.prose strong { color: var(--ink); font-weight: 600 }

/* === Partner logos — colored on white pill, clickable === */
.partner-logo { display: inline-flex; align-items: center; padding: .6rem 1.4rem; border-radius: 100px; background: rgba(255,255,255,.92); transition: transform .2s, box-shadow .2s; text-decoration: none }
.partner-logo:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15) }
.partner-logo img { height: 48px; display: block }
[data-theme="light"] .partner-logo { background: #fff; border: 1px solid rgba(0,0,0,.08) }
[data-theme="high-contrast"] .partner-logo { background: #fff; border: 1px solid rgba(255,255,255,.3) }

/* === Contact lines === */
.contact-line { color: var(--ink) !important; text-decoration: none !important; font-size: 1.1rem; font-weight: 500; display: flex; align-items: center; gap: 1rem; transition: color .2s }
.contact-line:hover { color: var(--primary-hi) !important }
.contact-line svg { flex-shrink: 0; filter: drop-shadow(0 0 4px var(--glow)); transition: filter .2s }
.contact-line:hover svg { filter: drop-shadow(0 0 8px var(--glow)) }

/* === Language switcher === */
.lang-switch { display: flex; gap: 2px; align-items: center; background: var(--surface); border-radius: 8px; padding: 2px }
.lang-btn { font-family: 'Inter', system-ui, sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .03em; padding: 4px 8px; border-radius: 6px; color: var(--ink-muted); text-decoration: none; transition: color .2s, background .2s }
.lang-btn:hover { color: var(--ink); background: var(--surface-hover) }
.lang-btn--active { color: var(--ink); background: var(--surface-hover); pointer-events: none }

/* === Hidden utility === */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 }

/* ============================================================
   LIGHT THEME — data-theme="light" on <html>
   ============================================================ */
[data-theme="light"] {
  --bg:            hsl(210 30% 97%);
  --bg2:           hsl(210 20% 93%);
  --bg3:           hsl(210 15% 89%);
  --card:          hsl(210 20% 95%);
  --surface:       rgba(0,0,0,0.04);
  --surface-hover: rgba(0,0,0,0.08);
  --border:        rgba(0,0,0,0.10);
  --border-strong: rgba(0,0,0,0.20);
  --ink:           hsl(220 40% 12%);
  --ink-dim:       hsl(220 20% 38%);
  --ink-muted:     hsl(220 15% 55%);
  --glow:          hsl(190 55% 44% / .28);
  --glow-soft:     hsl(190 55% 44% / .14);
}
[data-theme="light"] body {
  background: var(--bg);
  color: var(--ink);
}
[data-theme="light"] nav.site-nav {
  background: rgba(240,246,248,.72);
}
[data-theme="light"] .mesh-a,
[data-theme="light"] .mesh-b { opacity: .10 }

/* ============================================================
   HIGH CONTRAST — data-theme="high-contrast" on <html>
   ============================================================ */
[data-theme="high-contrast"] {
  --bg:            hsl(0 0% 0%);
  --bg2:           hsl(0 0% 4%);
  --bg3:           hsl(0 0% 8%);
  --card:          hsl(0 0% 6%);
  --surface:       rgba(255,255,255,0.08);
  --surface-hover: rgba(255,255,255,0.16);
  --border:        rgba(255,255,255,0.30);
  --border-strong: rgba(255,255,255,0.60);
  --ink:           hsl(0 0% 100%);
  --ink-dim:       hsl(0 0% 85%);
  --ink-muted:     hsl(0 0% 70%);
  --primary:       hsl(190 100% 60%);
  --primary-hi:    hsl(187 100% 72%);
  --glow:          hsl(190 100% 60% / .40);
}

/* ============================================================
   SERVICE CARD ICONS — geometric line-art SVG system
   Design principles:
   · 1.5px strokes, round caps/joins, no fills except accent dots
   · currentColor adapts to dark/light/high-contrast themes
   · Each card has a thematic hover animation (CSS-only)
   · Icon wrapper keeps gradient-primary bg; SVG strokes use
     white at 90% opacity so gradient shines through subtly
   ============================================================ */

/* --- Wrapper: glassmorphism + glow --- */
.svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, hsl(190 80% 50% / .25), hsl(200 90% 40% / .15));
  border: 1px solid hsl(190 100% 70% / .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease, background .35s ease;
}

.svc-icon--hero {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}
.svc-icon--hero svg {
  width: 42px;
  height: 42px;
}
.svc-icon--sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.svc-icon--sm svg {
  width: 22px;
  height: 22px;
}

/* Ambient glow behind icon (always visible, subtle) */
.svc-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: radial-gradient(circle, hsl(190 100% 60% / .15), transparent 70%);
  z-index: -1;
  transition: opacity .35s ease;
}

/* Shared SVG reset */
.svc-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 3px hsl(190 100% 70% / .3));
  transition: filter .35s ease, transform .35s ease;
}

.svc-icon svg * {
  vector-effect: non-scaling-stroke;
}

/* Card hover: glow intensifies, icon lifts */
.card:hover .svc-icon {
  border-color: hsl(190 100% 70% / .6);
  background: linear-gradient(135deg, hsl(190 80% 50% / .35), hsl(200 90% 40% / .25));
  box-shadow:
    0 0 0 1px hsl(190 100% 70% / .2),
    0 0 20px hsl(190 100% 60% / .25),
    0 0 40px hsl(190 100% 55% / .1);
  transform: translateY(-2px);
}

.card:hover .svc-icon::before {
  opacity: 1;
  background: radial-gradient(circle, hsl(190 100% 60% / .3), transparent 70%);
}

.card:hover .svc-icon svg {
  filter: drop-shadow(0 0 6px hsl(190 100% 70% / .5));
}

/* Light mode adjustments */
[data-theme="light"] .svc-icon {
  background: linear-gradient(135deg, hsl(190 50% 92% / .9), hsl(200 60% 88% / .7));
  border-color: hsl(190 50% 45% / .35);
}
[data-theme="light"] .svc-icon svg {
  filter: drop-shadow(0 0 1px hsl(190 60% 30% / .15));
}
[data-theme="light"] .svc-icon svg line,
[data-theme="light"] .svc-icon svg rect,
[data-theme="light"] .svc-icon svg circle,
[data-theme="light"] .svc-icon svg path,
[data-theme="light"] .svc-icon svg polygon,
[data-theme="light"] .svc-icon svg polyline {
  stroke: hsl(190 70% 30%) !important;
}
[data-theme="light"] .svc-icon svg circle[fill]:not([fill="none"]) {
  fill: hsl(190 70% 35%) !important;
}
[data-theme="light"] .svc-icon .svc-ray-1 {
  stroke: hsl(195 80% 35%) !important;
}
[data-theme="light"] .svc-icon::before {
  background: radial-gradient(circle, hsl(190 60% 45% / .08), transparent 70%);
}
[data-theme="light"] .card:hover .svc-icon {
  background: linear-gradient(135deg, hsl(190 55% 88% / .95), hsl(200 65% 82% / .8));
  border-color: hsl(190 55% 38% / .5);
  box-shadow:
    0 0 0 1px hsl(190 55% 42% / .2),
    0 0 14px hsl(190 60% 42% / .18),
    0 0 28px hsl(190 60% 38% / .08);
}
[data-theme="light"] .card:hover .svc-icon svg line,
[data-theme="light"] .card:hover .svc-icon svg rect,
[data-theme="light"] .card:hover .svc-icon svg circle,
[data-theme="light"] .card:hover .svc-icon svg path,
[data-theme="light"] .card:hover .svc-icon svg polygon,
[data-theme="light"] .card:hover .svc-icon svg polyline {
  stroke: hsl(190 80% 22%) !important;
}
[data-theme="light"] .card:hover .svc-icon svg circle[fill]:not([fill="none"]) {
  fill: hsl(190 80% 25%) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .svc-icon, .svc-icon svg, .svc-icon::before { transition-duration: .1s }
}

/* -------------------------------------------------------
   01 · Стратегический маркетинг
   Concept: ascending bar chart with an upward arrow
   piercing through — strategy as directional growth.
   Hover: bars rise sequentially (stagger via delay).
------------------------------------------------------- */
@keyframes svc-bar-rise {
  0%   { transform: scaleY(1) }
  50%  { transform: scaleY(1.22) }
  100% { transform: scaleY(1) }
}

.svc-icon--strategy:hover .svc-bar-1 { animation: svc-bar-rise .55s ease .00s both }
.svc-icon--strategy:hover .svc-bar-2 { animation: svc-bar-rise .55s ease .10s both }
.svc-icon--strategy:hover .svc-bar-3 { animation: svc-bar-rise .55s ease .20s both }
.svc-icon--strategy:hover .svc-bar-4 { animation: svc-bar-rise .55s ease .30s both }
.svc-bar-1,.svc-bar-2,.svc-bar-3,.svc-bar-4 {
  transform-origin: 50% 100%;
  transform-box: fill-box;
}

/* -------------------------------------------------------
   02 · Брендинг
   Concept: pentagon as a brand mark / seal, with a single
   precise horizontal rule through the centre — identity
   reduced to pure geometry.
   Hover: pentagon rotates one step (72°, one vertex).
------------------------------------------------------- */
@keyframes svc-brand-spin {
  0%   { transform: rotate(0deg) }
  100% { transform: rotate(72deg) }
}
.svc-icon--brand:hover .svc-pentagon {
  animation: svc-brand-spin .5s cubic-bezier(.22,.61,.36,1) both;
  transform-origin: 50% 50%;
  transform-box: fill-box;
}

/* -------------------------------------------------------
   03 · Digital-маркетинг
   Concept: browser window with a signal/wifi arc above —
   digital presence, reach, connectivity.
   Hover: arcs pulse outward (scale + fade).
------------------------------------------------------- */
@keyframes svc-pulse-arc {
  0%   { opacity: 1;   transform: scale(1)   }
  60%  { opacity: .3;  transform: scale(1.2) }
  100% { opacity: 0;   transform: scale(1.4) }
}
.svc-icon--digital:hover .svc-arc-inner { animation: svc-pulse-arc .55s ease .00s both }
.svc-icon--digital:hover .svc-arc-outer { animation: svc-pulse-arc .55s ease .15s both }
.svc-arc-inner, .svc-arc-outer {
  transform-origin: 50% 50%;
  transform-box: fill-box;
}

/* -------------------------------------------------------
   04 · Реклама
   Concept: megaphone/bullhorn in pure geometry — trapezoid
   body + radiating lines on the right.
   Hover: radiating lines fan outward.
------------------------------------------------------- */
@keyframes svc-ray-pulse {
  0%   { opacity: .4; transform: translateX(0) }
  50%  { opacity: 1;  transform: translateX(2px) }
  100% { opacity: .4; transform: translateX(0) }
}
.svc-icon--ads .svc-ray {
  transform-origin: 0% 50%;
  transform-box: fill-box;
}
.svc-icon--ads:hover .svc-ray-1 { animation: svc-ray-pulse .6s ease infinite }
.svc-icon--ads:hover .svc-ray-2 { animation: svc-ray-pulse .6s ease .1s infinite }
.svc-icon--ads:hover .svc-ray-3 { animation: svc-ray-pulse .6s ease .2s infinite }

/* -------------------------------------------------------
   05 · Исследования и аналитика
   Concept: magnifying glass with a tiny scatter-plot inside
   the lens — data investigation.
   Hover: glass orbits slightly (scan motion).
------------------------------------------------------- */
@keyframes svc-scan {
  0%,100% { transform: translate(0,0) }
  25%     { transform: translate(1px,-1px) }
  75%     { transform: translate(-1px,1px) }
}
.svc-icon--research:hover .svc-glass {
  animation: svc-scan .7s ease-in-out infinite;
  transform-box: fill-box;
}

/* -------------------------------------------------------
   06 · POS-маркетинг / мерчендайзинг
   Concept: shelf with three product silhouettes (rect +
   two cylinders) on a baseline — point-of-sale display.
   Hover: centre product rises (hero shelf placement).
------------------------------------------------------- */
@keyframes svc-shelf-hero {
  0%,100% { transform: translateY(0) }
  50%     { transform: translateY(-2.5px) }
}
.svc-icon--pos:hover .svc-prod-hero {
  animation: svc-shelf-hero .55s ease-in-out both;
  transform-box: fill-box;
}

/* -------------------------------------------------------
   07 · Кросс-промо
   Concept: two overlapping circles (Venn) with a link/chain
   node at intersection — partnership, cross-brand value.
   Hover: circles breathe apart then reunite.
------------------------------------------------------- */
@keyframes svc-venn-l {
  0%,100% { transform: translateX(0) }
  50%     { transform: translateX(-2px) }
}
@keyframes svc-venn-r {
  0%,100% { transform: translateX(0) }
  50%     { transform: translateX(2px) }
}
.svc-icon--cross:hover .svc-circle-l {
  animation: svc-venn-l .6s ease-in-out both;
  transform-box: fill-box;
}
.svc-icon--cross:hover .svc-circle-r {
  animation: svc-venn-r .6s ease-in-out both;
  transform-box: fill-box;
}

/* ============================================================
   LARGE FONT — data-font-size="large" on <html>
   Цель: body/параграфы/карточки/footer — КРУПНЕЕ для слабовидящих.
   Заголовки не трогаем — базовые clamp-значения уже нормальные.
   ============================================================ */

/* Заголовки — оставляем как есть (базовые размеры уже нормальные) */

/* Body — основа крупного режима */
[data-font-size="large"] body { font-size: 1.3rem; line-height: 1.85 }

/* Параграфы и описания — главная цель слабовидящих */
[data-font-size="large"] .muted,
[data-font-size="large"] .section-head p { font-size: 1.25rem; line-height: 1.8 }
[data-font-size="large"] .card p,
[data-font-size="large"] .card li { font-size: 1.2rem; line-height: 1.8 }
[data-font-size="large"] .prose p,
[data-font-size="large"] .prose li { font-size: 1.25rem; line-height: 1.85 }
[data-font-size="large"] .prose h2 { font-size: 1.4rem }
[data-font-size="large"] .prose h3 { font-size: 1.2rem }

/* Footer текст — крупнее для читаемости */
[data-font-size="large"] .footer-about p { font-size: 1.2rem; line-height: 1.8 }
[data-font-size="large"] .footer-grid a { font-size: 1.15rem }
[data-font-size="large"] .footer-requisites,
[data-font-size="large"] .footer-disclaimer,
[data-font-size="large"] .footer-bottom { font-size: 1.05rem; line-height: 1.75 }

/* Навигация — чуть крупнее, не раздувать */
[data-font-size="large"] .nav-links a,
[data-font-size="large"] .nav-cta { font-size: 1rem }

/* Вспомогательные элементы */
[data-font-size="large"] .eyebrow { font-size: .95rem }
[data-font-size="large"] .btn { font-size: 1.1rem; padding: 1rem 1.8rem }
[data-font-size="large"] .form-row label { font-size: 1.15rem }
[data-font-size="large"] .cookie-banner p { font-size: 1.1rem }
[data-font-size="large"] .consent { font-size: 1rem }

/* ============================================================
   REDUCE MOTION — data-reduce-motion="true" on <html>
   ============================================================ */
[data-reduce-motion="true"] *,
[data-reduce-motion="true"] *::before,
[data-reduce-motion="true"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* ============================================================
   BODY THEME TRANSITION
   ============================================================ */
html { transition: background .35s ease, color .35s ease }
body { transition: background .35s ease, color .35s ease }
[data-reduce-motion="true"] html,
[data-reduce-motion="true"] body { transition: none !important }

/* ============================================================
   NAV CONTROLS GROUP (theme toggle + a11y)
   ============================================================ */
.nav-controls {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-right: .35rem;
}

/* Icon button — base */
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}
.nav-icon-btn:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.nav-icon-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Theme toggle icon visibility */
.icon-sun  { display: none }
.icon-moon { display: block }
[data-theme="light"] .icon-sun  { display: block }
[data-theme="light"] .icon-moon { display: none }

/* ============================================================
   A11Y PANEL
   ============================================================ */
.a11y-wrap {
  position: relative;
}
.a11y-panel {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  min-width: 210px;
  background: var(--bg2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: .6rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  z-index: 200;
  /* animation */
  transform-origin: top right;
  animation: a11y-in .18s cubic-bezier(.22,.61,.36,1) both;
}
.a11y-panel[hidden] { display: none }
@keyframes a11y-in {
  from { opacity: 0; transform: scale(.92) translateY(-6px) }
  to   { opacity: 1; transform: scale(1)  translateY(0) }
}
.a11y-title {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-muted);
  padding: .3rem .6rem .5rem;
}
.a11y-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .6rem;
  border-radius: var(--radius);
  cursor: pointer;
  gap: .75rem;
  transition: background .15s;
}
.a11y-option:hover { background: var(--surface) }
.a11y-option span {
  font-size: .875rem;
  color: var(--ink-dim);
  font-weight: 500;
  flex: 1;
  user-select: none;
}

/* Switch pill */
.a11y-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.a11y-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-muted);
  transition: transform .2s cubic-bezier(.22,.61,.36,1), background .2s;
}
.a11y-switch[aria-checked="true"] {
  background: var(--primary);
  border-color: var(--primary);
}
.a11y-switch[aria-checked="true"]::after {
  transform: translateX(16px);
  background: #fff;
}
.a11y-switch:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Mobile: nav-controls inside burger menu area */
@media (max-width: 860px) {
  .nav-controls { margin-right: 0 }
  .a11y-panel {
    right: auto;
    left: 0;
    transform-origin: top left;
  }
  @keyframes a11y-in {
    from { opacity: 0; transform: scale(.92) translateY(-6px) }
    to   { opacity: 1; transform: scale(1)  translateY(0) }
  }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.rz-toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--gradient-primary); color: #fff;
  padding: 1rem 1.5rem; border-radius: var(--radius-lg);
  font-weight: 500; font-size: .95rem; z-index: 300;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  transition: transform .4s cubic-bezier(.2,.8,.3,1), opacity .4s;
  opacity: 0; pointer-events: none; max-width: 90vw; text-align: center;
}
.rz-toast--show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto }
.rz-toast--error { background: linear-gradient(135deg, hsl(0 55% 42%), hsl(5 45% 35%)) }

/* ============================================================
   BUTTON LOADING STATE
   ============================================================ */
.btn.is-loading {
  pointer-events: none; opacity: .7; position: relative;
}
.btn.is-loading::after {
  content: ''; display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; margin-left: .5rem;
  animation: btn-spin .6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg) } }

/* ============================================================
   SCRATCH CARD MODAL
   ============================================================ */
.scratch-modal {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.65);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s ease;
}
.scratch-modal--show { opacity: 1 }

.scratch-card {
  position: relative; width: 360px; max-width: 92vw;
  background: var(--bg2); border: 1px solid hsl(190 55% 40% / .5);
  border-radius: var(--radius-xl); padding: 2rem;
  box-shadow: 0 0 60px hsl(190 55% 50% / .2), 0 30px 60px rgba(0,0,0,.4);
  text-align: center;
  transform: scale(.9); transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.scratch-modal--show .scratch-card { transform: scale(1) }

.scratch-card__header {
  font-family: 'Unbounded', sans-serif; font-size: 1rem; font-weight: 400;
  color: var(--primary-hi); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 1.2rem;
}

.scratch-card__body {
  position: relative; width: 320px; height: 200px;
  margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  background: hsl(200 30% 10%);
  border: 1px solid hsl(190 55% 40% / .3);
}
@media (max-width: 380px) {
  .scratch-card__body { width: 280px; height: 175px }
  .scratch-canvas { width: 280px !important; height: 175px !important }
}

.scratch-prize {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; font-family: 'Unbounded', sans-serif; font-size: 1.15rem; font-weight: 400;
  color: hsl(190 80% 70%); text-shadow: 0 0 20px hsl(190 80% 50% / .5);
  line-height: 1.3; opacity: .85; transition: opacity .5s, transform .5s;
}
.scratch-prize--revealed {
  opacity: 1;
  animation: prize-pop .5s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes prize-pop {
  from { transform: translateY(12px) scale(.95); opacity: 0 }
  to   { transform: none; opacity: 1 }
}

.scratch-canvas {
  position: absolute; inset: 0; cursor: grab; z-index: 1;
}
.scratch-canvas:active { cursor: grabbing }

.scratch-card__hint {
  margin-top: 1rem; font-size: .85rem; color: var(--ink-muted);
  transition: color .3s;
}

.scratch-card__close {
  position: absolute; top: .6rem; right: .8rem;
  background: none; border: none; color: var(--ink-muted);
  font-size: 1.5rem; cursor: pointer; padding: .3rem;
  line-height: 1; transition: color .2s;
}
.scratch-card__close:hover { color: var(--ink) }
.scratch-card__close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px }

/* === Skip-to-content link === */
.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 9999; padding: .6rem 1.2rem; background: var(--primary); color: #fff; font-weight: 600; border-radius: 0 0 var(--radius) var(--radius); text-decoration: none; transition: top .15s }
.skip-link:focus { top: 0 }

/* ============================================================
   BLOG — listing + article pages
   ============================================================ */

/* Blog listing grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem }
.blog-card { display: flex; flex-direction: column; gap: .8rem; padding: 1.75rem }
.blog-card-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap }
.blog-tag { font-family: 'Unbounded', sans-serif; font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-hi) }
.blog-date { font-size: .82rem; color: var(--ink-muted) }
.blog-card h2 { font-family: 'Unbounded', sans-serif; font-weight: 400; font-size: 1.05rem; line-height: 1.45; margin: 0 }
.blog-card p { flex: 1; color: var(--ink-dim); font-size: .95rem; line-height: 1.6; margin: 0 }
.blog-card .btn { align-self: flex-start; margin-top: .5rem }

/* Blog article */
.post-wrap { max-width: 780px; margin: 0 auto; padding: 2rem 1.5rem 5rem }
.breadcrumb { font-size: .83rem; color: var(--ink-muted); margin-bottom: 2.5rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center }
.breadcrumb a { color: var(--ink-muted); text-decoration: none }
.breadcrumb a:hover { color: var(--primary-hi) }
.breadcrumb span[aria-hidden] { color: var(--border-strong) }
.post-header { margin-bottom: 2.5rem }
.post-meta { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.2rem; flex-wrap: wrap }
.post-category { font-family: 'Unbounded', sans-serif; font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-hi) }
.post-date, .post-readtime { font-size: .83rem; color: var(--ink-muted) }
.post-title { font-family: 'Unbounded', sans-serif; font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.25; margin: 0 }
.post-content { line-height: 1.85; font-size: 1rem }
.post-content h2 { font-family: 'Unbounded', sans-serif; font-weight: 400; font-size: 1.2rem; line-height: 1.4; margin: 2.8rem 0 1rem; color: var(--ink) }
.post-content h3 { font-weight: 600; font-size: 1.05rem; margin: 2rem 0 .7rem; color: var(--ink) }
.post-content p { margin: 0 0 1.25rem }
.post-content ul, .post-content ol { margin: 0 0 1.25rem 1.4rem }
.post-content li { margin-bottom: .5rem }
.post-content strong { color: var(--ink) }
.post-content a { color: var(--primary-hi); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s }
.post-content a:hover { text-decoration-color: var(--primary-hi) }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0 }
.post-cta { margin: 3rem 0; padding: 2.5rem; background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); text-align: center }
.post-cta h3 { font-family: 'Unbounded', sans-serif; font-weight: 400; font-size: 1.2rem; margin-bottom: .6rem }
.post-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border) }
.post-related h3 { font-family: 'Unbounded', sans-serif; font-weight: 400; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1.2rem }
.post-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem }
.post-related-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; text-decoration: none !important }
.post-related-card .blog-tag { font-size: .68rem }
.post-related-title { font-size: .92rem; font-weight: 500; color: var(--ink); line-height: 1.4 }
.post-related-card:hover .post-related-title { color: var(--primary-hi) }
