/* Recapwiser — общие стили сайта: токены, полотно, шапка, герой, крошки, кнопки, карточки, футер, cookie-баннер.
   Значения — из макетов design/Site *.dc.html (handoff 10.11.2026). Стили страниц — assets/css/pages/<страница>.css */

:root {
  --ink: oklch(0.22 0.012 280);       /* основной текст, тёмные кнопки */
  --ink-2: oklch(0.30 0.012 280);     /* текст статей */
  --ink-3: oklch(0.45 0.012 280);     /* подзаголовки, описания */
  --ink-nav: oklch(0.40 0.012 280);   /* пункты меню */
  --muted: oklch(0.55 0.012 280);     /* мета, крошки, подписи */
  --line: oklch(0.905 0.006 80);      /* разделители, рамки карточек */
  --line-2: oklch(0.86 0.008 80);     /* рамки кнопок и полей */
  --line-3: oklch(0.93 0.004 80);     /* разделители внутри серых секций */
  --paper: oklch(0.975 0.004 80);     /* серые секции */
  --hover: oklch(0.955 0.006 80);
  --accent: oklch(0.52 0.21 285);     /* ссылки, акценты, активное */
  --accent-soft: oklch(0.52 0.21 285 / .10);
  --accent-dark: oklch(0.74 0.15 285);/* акцент на тёмном фоне */
  --dark: oklch(0.15 0.008 280);      /* тёмные секции и футер */
  --ok: oklch(0.42 0.13 150);
  --danger: oklch(0.50 0.18 25);
  --warn: oklch(0.50 0.12 70);
  --wash: oklch(0.22 0.012 280 / .06);/* подложка пунктов меню при наведении */
  --shadow-card: 0 0 0 1px oklch(0.22 0.012 280 / .08), 0 10px 30px -14px oklch(0.3 0.03 285 / .35);
  --shadow-pop: 0 0 0 1px oklch(0.22 0.012 280 / .08), 0 24px 48px -20px oklch(0.3 0.03 285 / .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Schibsted Grotesk", "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; overflow-x: hidden; background: #fff; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }   /* ловушка для ботов в формах */
.linkish { padding: 0; border: 0; background: none; cursor: pointer; }
.linkish:hover { color: var(--accent); }

/* полотно страницы — белое, скруглено снизу над тёмным футером */
.site { display: flex; flex-direction: column; min-height: 100vh; background: var(--dark); }
.canvas { position: relative; z-index: 2; background: #fff; border-radius: 0 0 36px 36px; box-shadow: 0 40px 80px -20px oklch(0 0 0 / .5); }
.canvas > main { display: block; }

@keyframes rw-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes rw-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes rw-blob1 { 0%, 100% { transform: translate(-10%, -20%) scale(1); } 50% { transform: translate(15%, 10%) scale(1.15); } }
@keyframes rw-blob2 { 0%, 100% { transform: translate(10%, 10%) scale(1.1); } 50% { transform: translate(-15%, -10%) scale(1); } }
@keyframes rw-sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(220%) skewX(-18deg); } }

/* ---------- шапка: плавающая капсула ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 10; padding: 14px 20px; pointer-events: none; }
.nav { pointer-events: auto; max-width: 1100px; height: 56px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 8px; font-size: 14px;
  border-radius: 999px; background: oklch(1 0 0 / .72); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: var(--shadow-card); }
.nav-logo { display: flex; align-items: center; gap: 9px; margin-right: 12px; font-weight: 600; font-size: 15px; }
.nav-logo:hover { color: inherit; }
.nav-logo img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 2px; color: var(--ink-nav); }
.nav-links a { padding: 7px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a.is-current { background: var(--wash); color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-login { padding: 7px 14px; border-radius: 999px; color: var(--ink-nav); }
.nav-login:hover { background: var(--wash); color: var(--ink); }
.nav-cta { position: relative; overflow: hidden; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; }
.nav-cta:hover { background: var(--accent); color: #fff; }
.nav-burger { display: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px; place-items: center; cursor: pointer; color: var(--ink); background: var(--wash); }
.nav-burger .i-close, .nav-burger[aria-expanded="true"] .i-open { display: none; }
.nav-burger[aria-expanded="true"] .i-close { display: block; }
.menu { position: absolute; top: 78px; left: 20px; right: 20px; max-width: 1100px; margin: 0 auto; padding: 10px; display: flex; flex-direction: column; gap: 2px;
  pointer-events: auto; font-size: 16px; color: var(--ink); border-radius: 24px; background: oklch(1 0 0 / .93);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: var(--shadow-pop); animation: rw-in .25s var(--ease) both; }
.menu[hidden] { display: none; }
.menu a { padding: 13px 14px; border-radius: 14px; }
.menu a:hover { background: var(--wash); color: var(--ink); }
.menu .menu-login { margin-top: 4px; border-top: 1px solid var(--line-3); color: var(--ink-3); }
@media (max-width: 980px) {
  .nav-links, .nav-login { display: none; }
  .nav-burger { display: grid; width: 44px; height: 44px; }
  .nav-cta { padding: 12px 18px; }
}
@media (min-width: 981px) { .menu { display: none !important; } }

/* ---------- герой внутренних страниц: цветные пятна, затухание в белый ---------- */
.hero-wrap { position: relative; overflow: hidden; margin-top: -84px; padding-top: 84px; }
.blobs { position: absolute; inset: 0; pointer-events: none; }
.blobs.fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 40%; background: linear-gradient(to bottom, #fff0, #fff); }
.blobs i { position: absolute; border-radius: 50%; filter: blur(50px); }
.blobs .blob-a { left: -10%; top: -20%; width: 50vw; height: 50vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle at 40% 40%, oklch(0.88 0.08 285) 0%, oklch(0.88 0.08 285 / 0) 62%); animation: rw-blob1 22s ease-in-out infinite; }
.blobs .blob-b { right: -10%; top: 0; width: 42vw; height: 42vw; max-width: 680px; max-height: 680px;
  background: radial-gradient(circle at 50% 50%, oklch(0.9 0.06 320) 0%, oklch(0.9 0.06 320 / 0) 62%); animation: rw-blob2 26s ease-in-out infinite; }
.hero { position: relative; z-index: 2; max-width: 1200px; width: 100%; margin: 0 auto; padding: 96px 32px 72px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.hero h1, .h1 { margin: 0; max-width: 16ch; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.lead { margin: 0; max-width: 54ch; color: var(--ink-3); font-size: 19px; line-height: 1.5; }
.meta-line { font-size: 13px; color: var(--muted); }
.meta-line a, .u-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rise { animation: rw-rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .1s; } .rise.d2 { animation-delay: .2s; } .rise.d3 { animation-delay: .3s; } .rise.d4 { animation-delay: .4s; }
@media (max-width: 720px) { .hero { padding: 40px 20px 48px; } }

/* ---------- крошки (Yoast): одна строка, последний — фиолетовый и обрезается многоточием ---------- */
.crumbs { display: flex; align-items: center; max-width: 100%; min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.crumbs > span { display: flex; align-items: center; min-width: 0; }
.crumbs span span { display: inline-flex; align-items: center; min-width: 0; }
.crumbs a { display: inline-block; padding: 4px 0; margin: -4px 0; }   /* зона нажатия 24px, строка не выше */
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 8px; }
.crumbs .breadcrumb_last { overflow: hidden; text-overflow: ellipsis; color: var(--accent); font-weight: 500; }

/* ---------- секции и заголовки ---------- */
.wrap { max-width: 1264px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }   /* как в макете: 1200 + поля (content-box) */
.wrap-b { position: relative; max-width: 1200px; width: 100%; margin: 0 auto; padding-left: 32px; padding-right: 32px; }   /* секции макета с box-sizing:border-box */
.sec-paper { background: var(--paper); border-top: 1px solid var(--line-3); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
/* надзаголовок секции и крупный заголовок (FAQ, About и др.) */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); }
.h2-xl { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
.h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
.h2-lg { margin: 0; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.muted { color: var(--muted); }
@media (max-width: 720px) { .wrap, .wrap-b { padding-left: 20px; padding-right: 20px; } }

/* ---------- кнопки ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 500; font-size: 16px; line-height: 1.2; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); color: #fff; }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--hover); color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--accent-dark); color: oklch(0.17 0.03 285); }
.btn-glass { border-color: oklch(1 0 0 / .18); background: oklch(1 0 0 / .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: oklch(0.95 0.005 80); }
.btn-glass:hover { background: oklch(1 0 0 / .12); color: #fff; }
.sheen-bar { position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, #fff0, oklch(0.52 0.21 285 / .25), #fff0); animation: rw-sheen 3.2s ease-in-out 1s infinite; pointer-events: none; }
.ctarow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 720px) {
  .ctarow { flex-wrap: nowrap; gap: 8px; }
  .ctarow .btn { padding: 14px 18px; font-size: 15px; white-space: nowrap; }
}

/* ---------- карточки с «прожектором» за курсором ---------- */
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: inherit; }
a.card:hover { border-color: var(--line-2); color: inherit; }
.spot-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; }
.card > :not(.spot-glow):not(.spot-border) { position: relative; }
/* светящаяся рамка за курсором (тот же data-spot-glow, маска оставляет 1px по краю) */
.spot-border { position: absolute; inset: 0; padding: 1px; border-radius: 16px; pointer-events: none; opacity: 0; transition: opacity .35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.card-text { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.card-more { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--accent); }

/* ---------- появление при прокрутке (только с JS и без «уменьшить движение») ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- футер ---------- */
.foot { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--dark); color: oklch(0.95 0.005 80); }
.foot-bg { position: absolute; inset: 0; pointer-events: none; }
.foot-bg i { position: absolute; border-radius: 50%; filter: blur(60px); }
.foot-bg .blob-a { left: 20%; top: 10%; width: 48vw; height: 48vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, oklch(0.5 0.2 285 / .6) 0%, oklch(0.5 0.2 285 / 0) 62%); animation: rw-blob1 24s ease-in-out infinite; }
.foot-bg .blob-b { right: 5%; top: 0; width: 36vw; height: 36vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, oklch(0.6 0.14 320 / .45) 0%, oklch(0.6 0.14 320 / 0) 62%); animation: rw-blob2 28s ease-in-out infinite; }
.foot-word { position: absolute; left: 0; right: 0; bottom: -.14em; text-align: center; font-size: clamp(110px, 20vw, 320px); font-weight: 700; letter-spacing: -.06em; line-height: 1;
  white-space: nowrap; background: linear-gradient(to bottom, oklch(1 0 0 / .11), oklch(1 0 0 / 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-cta { position: relative; max-width: 1200px; width: 100%; margin: 0 auto; padding: 120px 32px 80px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.foot-cta h2 { margin: 0; max-width: 16ch; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.foot-cta p { margin: 0; max-width: 46ch; color: oklch(0.72 0.01 280); font-size: 19px; line-height: 1.5; }
.foot-note { font-size: 13px; color: oklch(0.64 0.01 280); }
.foot-bar { position: relative; padding-top: 28px; border-top: 1px solid oklch(1 0 0 / .08); }
.foot-links { max-width: 1264px; margin: 0 auto; padding: 0 32px 32px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; font-size: 13.5px; }
.foot-brand { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-logo { display: flex; align-items: center; gap: 9px; font-weight: 600; color: oklch(0.95 0.005 80); }
.foot-logo:hover { color: #fff; }
.foot-logo img { width: 22px; height: 22px; border-radius: 6px; }
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; color: oklch(0.72 0.01 280); }
.foot-legal .linkish { font-size: 13.5px; color: inherit; }
.foot-menu { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover, .foot .linkish:hover { color: var(--accent-dark); }
.foot-copy { margin-left: auto; }
@media (max-width: 720px) {
  .foot-cta { padding: 72px 20px 40px; }
  .foot-links { padding: 0 20px 28px; gap: 20px; flex-direction: column; align-items: flex-start; }
  .foot-copy { margin-left: 0; }
  .foot-word { font-size: clamp(54px, 15vw, 320px); }
}

/* ---------- cookie-баннер ---------- */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 50; max-width: 460px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--ink);
  border-radius: 16px; background: oklch(1 0 0 / .94); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: var(--shadow-pop);
  animation: rw-rise .6s var(--ease) both; }
.cookie[hidden], .cookie [hidden] { display: none !important; }
.cookie-text { display: flex; flex-direction: column; gap: 6px; }
.cookie-title { font-weight: 600; font-size: 15px; }
.cookie-body { line-height: 1.5; color: oklch(0.35 0.012 280); }
.cookie-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie-custom { display: flex; flex-direction: column; animation: rw-in .25s both; }
.cookie-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-3); }
.cookie-cat { font-weight: 500; }
.cookie-desc { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.cookie-always { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.switch { position: relative; flex: none; width: 34px; height: 20px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: background .25s; }
.switch span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px oklch(0 0 0 / .25); transition: left .25s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] span { left: 16px; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cbtn { padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px; background: none; font-weight: 500; font-size: 14px; white-space: nowrap; cursor: pointer; }
.cbtn-dark { background: var(--ink); color: #fff; }
.cbtn-dark:hover { border-color: var(--accent); background: var(--accent); }
.cbtn-line:hover { background: var(--hover); }
.cbtn-soft { border-color: var(--line-2); }
.cbtn-soft:hover { background: var(--hover); }
.cookie-customise { margin-left: auto; padding: 0; border: 0; background: none; font-size: 13.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.cookie-customise:hover { color: var(--ink); }
@media (max-width: 720px) { .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------- уменьшить движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .blobs i, .foot-bg i, .sheen-bar { animation: none !important; }
}
