@import url('../fonts/fonts.css');

/* ============================================================
   Софтполка — дизайн-система
   Светлая «бумага», чернильный текст, один акцент (кобальт),
   красный — только у партнёрского предложения.
   ============================================================ */

:root {
  --paper: #f6f4ee;
  --paper-2: #ece8dc;
  --surface: #fffefb;
  --ink: #14150f;
  --ink-2: #3c3d35;
  --muted: #75766b;
  --line: #ddd8c8;
  --line-strong: #c3bda8;
  --accent: #1b44f5;
  --accent-soft: #e8ecff;
  --offer: #ef3418;
  --offer-soft: #fff0eb;
  --ok: #16794c;

  --r-card: 16px;
  --r-btn: 12px;
  --r-tile: 18px;
  --wrap: 1240px;
  --pad: 32px;
  --hdr: 72px;

  --shadow-1: 0 1px 2px rgba(20, 21, 15, .05), 0 10px 30px -18px rgba(20, 21, 15, .35);
  --shadow-2: 0 2px 6px rgba(20, 21, 15, .06), 0 30px 70px -30px rgba(20, 21, 15, .45);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3, h4 {
  font-family: 'Golos Text', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -.03em; }
h2 { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.03em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - var(--pad) * 2); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, monospace; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  border-radius: 10px; transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus-visible { transform: none; outline: 2px solid var(--accent); outline-offset: 3px; }

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-btn);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--surface); border-color: var(--ink); }
.btn--sm { height: 42px; padding: 0 16px; font-size: 14px; }
.btn--full { width: 100%; }
.btn[disabled] { cursor: progress; opacity: .62; transform: none; }

.link {
  color: var(--ink); font-weight: 500;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100%;
  background-size: 0% 1px; transition: background-size .28s var(--ease), color .2s;
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }
.link--muted { color: var(--muted); }

/* ---------- Хедер ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.hdr[data-stuck='true'] { border-color: var(--line); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Golos Text', sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand__mark { width: 26px; height: 26px; color: var(--ink); }
.brand__mark .b { transform-origin: center; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav a { font-size: 15px; color: var(--ink-2); padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hdr__search {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  min-width: 220px; color: var(--muted); font-size: 14px;
  transition: border-color .2s;
}
.hdr__search:focus-within { border-color: var(--ink); }
.hdr__search svg { width: 18px; height: 18px; flex: none; }
.hdr__search input { border: 0; background: none; outline: 0; width: 100%; font-size: 14px; color: var(--ink); min-width: 0; }
.hdr__search kbd {
  font: 500 11px/1 'Inter', sans-serif; color: var(--muted);
  border: 1px solid var(--line); border-radius: 5px; padding: 4px 5px;
}
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Секции ---------- */
.sec { padding-block: clamp(56px, 7.5vw, 112px); }
.sec--tight { padding-block: clamp(40px, 5vw, 72px); }
.sec--line { border-top: 1px solid var(--line); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.sec__head p { color: var(--muted); max-width: 46ch; margin-top: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--line-strong); }

/* ---------- Иконки программ ---------- */
.tile {
  --tile-size: 46px;
  position: relative; flex: none;
  width: var(--tile-size); height: var(--tile-size);
  border-radius: calc(var(--tile-size) * .28);
  background: var(--tile-bg, var(--ink));
  color: var(--tile-fg, #fff);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 2px rgba(20, 21, 15, .12);
  overflow: hidden;
}
.tile svg { width: 58%; height: 58%; }
.tile img { width: 74%; height: 74%; }
.tile__glyph {
  width: 58%; height: 58%; background: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.tile--color svg { width: 74%; height: 74%; }
.tile__letter {
  font-family: 'Golos Text', sans-serif; font-weight: 700;
  font-size: calc(var(--tile-size) * .46); line-height: 1; letter-spacing: -.03em;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(24px, 3vw, 48px) clamp(40px, 5vw, 72px); min-height: calc(100svh - var(--hdr)); display: grid; align-items: center; }
.hero.hero--compact { min-height: 0; display: block; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 24px; max-width: 17ch; }
.hero h1 em { font-style: normal; white-space: nowrap; }
.hero__lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); max-width: 52ch; margin-bottom: 32px; }

.searchbar {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 7px 7px 7px 16px;
  box-shadow: var(--shadow-1);
  transition: border-color .2s, box-shadow .2s;
  max-width: 560px;
}
.searchbar:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-1); }
.searchbar svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 16px; padding: 10px 0; }
.searchbar input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.chips__label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; font-size: 13px; color: var(--ink-2); cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.chip:hover { background: var(--surface); border-color: var(--line-strong); transform: translateY(-1px); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.hero__stats { display: flex; gap: 36px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: 'Golos Text', sans-serif; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }

/* Полка иконок */
.shelf {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 12px;
  aspect-ratio: 1 / 1.02; max-width: 480px; margin-left: auto;
}
.shelf .tile { width: 100%; height: 100%; border-radius: 20px; --tile-size: 100%; transition: transform .3s var(--ease); }
.shelf .tile svg { width: 46%; height: 46%; }
.shelf .tile--big { grid-column: span 2; grid-row: span 2; }
.shelf .tile--big svg { width: 52%; height: 52%; }
.shelf .tile:hover { transform: translateY(-3px); }
.shelf__slot {
  grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px;
  box-shadow: var(--shadow-1);
}
.shelf__slot b { font-family: 'Golos Text', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.shelf__slot span { font-size: 12px; color: var(--muted); }
.meter { height: 4px; border-radius: 2px; background: var(--paper-2); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; width: 68%; background: var(--ink); border-radius: 2px; }

/* ---------- Карточки программ ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 18px; min-height: 188px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.card__top { display: flex; align-items: flex-start; gap: 12px; }
.card__rank {
  position: absolute; top: 14px; right: 16px;
  font: 600 12px/1 'Inter', sans-serif; color: var(--line-strong); letter-spacing: .02em;
}
.card__name { font-family: 'Golos Text', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -.015em; line-height: 1.2; }
.card__tag { font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.card__meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card__dl {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); display: grid; place-items: center; cursor: pointer; flex: none;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.card__dl svg { width: 17px; height: 17px; }
.card__dl:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
.card--wide { flex-direction: row; align-items: center; gap: 16px; min-height: 0; padding: 16px; }
.card--wide .card__tag { -webkit-line-clamp: 1; }

/* ---------- Категории ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat {
  position: relative; display: flex; flex-direction: column; gap: 18px; justify-content: space-between;
  min-height: 168px; padding: 20px; border-radius: var(--r-card);
  background: var(--paper-2); border: 1px solid transparent;
  transition: transform .22s var(--ease), background-color .22s, border-color .22s;
}
.cat:hover { transform: translateY(-3px); background: var(--surface); border-color: var(--line-strong); }
.cat__glyph { width: 34px; height: 34px; color: var(--ink); }
.cat__name { display: block; font-family: 'Golos Text', sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.cat__note { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 30ch; }
.cat__count { position: absolute; top: 20px; right: 20px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Блок проверки ---------- */
.check { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { display: grid; gap: 26px; margin-top: 36px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.step__n { font: 600 13px/1 'Inter', sans-serif; color: var(--muted); padding-top: 3px; }
.step b { display: block; font-family: 'Golos Text', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

.manifest {
  background: var(--ink); color: #e9e7de; border-radius: 20px; padding: 26px 26px 22px;
  box-shadow: var(--shadow-2); position: relative; overflow: hidden; min-width: 0;
}
.manifest::after {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(27, 68, 245, .35), transparent 65%); pointer-events: none;
}
.manifest__bar { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; }
.manifest__bar i { width: 9px; height: 9px; border-radius: 50%; background: #45463c; }
.manifest__bar span { margin-left: auto; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8b8c80; }
.manifest dl { margin: 0; display: grid; gap: 14px; }
.manifest dl > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.manifest dt { font-size: 12px; color: #8b8c80; }
.manifest dd { margin: 0; min-width: 0; font-size: 13px; font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; word-break: break-all; }
.manifest__ok { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; padding: 8px 12px; border-radius: 999px; background: rgba(22, 121, 76, .18); color: #7ee2b0; font-size: 12px; font-weight: 500; }
.manifest__ok svg { width: 14px; height: 14px; }

/* ---------- Партнёрский блок ---------- */
.offer {
  position: relative; overflow: hidden;
  background: #14150f; color: #f4f2ea;
  border-radius: 24px; padding: clamp(28px, 4vw, 56px);
}
.offer::before {
  content: ''; position: absolute; right: -10%; top: -60%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(239, 52, 24, .42), transparent 62%);
  pointer-events: none;
}
.offer__grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.offer__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ff8a72; margin-bottom: 18px; }
.offer__kicker s { text-decoration: none; width: 6px; height: 6px; border-radius: 50%; background: var(--offer); }
.offer h2 { font-size: clamp(28px, 3vw, 42px); color: #fff; }
.offer__pitch { color: #bab9ad; margin-top: 16px; max-width: 44ch; }
.offer ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.offer li { display: flex; gap: 10px; font-size: 14.5px; color: #dcdacf; }
.offer li svg { width: 17px; height: 17px; flex: none; color: #7ee2b0; margin-top: 3px; }
.offer__cta { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn--offer { --btn-bg: var(--offer); --btn-fg: #fff; }
.btn--offer:hover { --btn-bg: #ff4626; }
.offer__note { font-size: 12px; color: #8f8e83; }
.offer__legal { position: relative; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 11px; color: #7d7c72; line-height: 1.5; }

/* Мокап окна браузера */
.bwin {
  background: #1e1f18; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
  overflow: hidden; box-shadow: 0 40px 80px -40px #000;
}
.bwin__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.bwin__dot { width: 8px; height: 8px; border-radius: 50%; background: #3a3b30; }
.bwin__url { flex: 1; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .07); display: flex; align-items: center; padding: 0 10px; font-size: 11px; color: #9b9a8e; }
.bwin__body { padding: 18px; display: grid; gap: 10px; }
.bwin__hero { height: 88px; border-radius: 10px; background: linear-gradient(115deg, rgba(239, 52, 24, .9), rgba(255, 138, 60, .55)); }
.bwin__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bwin__row i { height: 44px; border-radius: 8px; background: rgba(255, 255, 255, .07); }
.bwin__line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.bwin__line--s { width: 62%; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; display: grid; gap: 0; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-family: 'Golos Text', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 22px; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 14px; color: var(--ink-2); max-width: 72ch; font-size: 15.5px; }

/* ---------- Футер ---------- */
.ftr { border-top: 1px solid var(--line); padding-block: 56px 40px; margin-top: clamp(40px, 6vw, 88px); }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.ftr__about { font-size: 14px; color: var(--muted); max-width: 34ch; margin-top: 16px; }
.ftr h4 { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.ftr a:hover { color: var(--accent); }
.ftr__bottom { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ftr__bottom p { max-width: 70ch; }

/* ---------- Внутренние страницы ---------- */
.page-head { padding-block: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: clamp(34px, 4vw, 56px); margin-bottom: 18px; }
.head-glyph { width: 40px; height: 40px; flex: none; margin-top: 10px; color: var(--ink); }
.page-head p { color: var(--muted); max-width: 62ch; font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: .5; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-block: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.toolbar .searchbar { flex: 1; min-width: 240px; box-shadow: none; padding: 3px 3px 3px 14px; }
.toolbar .searchbar input { padding: 8px 0; font-size: 15px; }
.select {
  height: 48px; padding: 0 38px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font-size: 14px; color: var(--ink); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2375766b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.grid-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.empty { padding: 72px 0; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-family: 'Golos Text', sans-serif; font-size: 22px; margin-bottom: 8px; }

/* Карточка каталога */
.pcard { display: flex; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.pcard__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pcard__name { font-family: 'Golos Text', sans-serif; font-weight: 600; font-size: 16.5px; letter-spacing: -.015em; line-height: 1.2; }
.pcard__tag { font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__meta { margin-top: auto; font-size: 12px; color: var(--muted); padding-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Страница программы ---------- */
.prog { padding-block: 28px 64px; }
.prog__head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.prog__head .tile { --tile-size: 84px; }
.prog h1 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 10px; }
.prog__tag { font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.prog__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--paper-2); font-size: 12.5px; color: var(--ink-2); }
.tag--ok { background: rgba(22, 121, 76, .1); color: var(--ok); }

.prog__cols { display: grid; grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.prog__main > section { padding-block: 28px; border-top: 1px solid var(--line); }
.prog__main > section:first-child { border-top: 0; padding-top: 0; }
.prog__main h2 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 18px; }
.prose p { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.prose p + p { margin-top: 14px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 4px; }
.feat b { display: block; font-family: 'Golos Text', sans-serif; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs tr { border-bottom: 1px solid var(--line); }
.specs tr:first-child { border-top: 1px solid var(--line); }
.specs th { text-align: left; font-weight: 400; color: var(--muted); padding: 13px 16px 13px 0; width: 42%; vertical-align: top; }
.specs td { padding: 13px 0; color: var(--ink); }
.newbox { background: var(--paper-2); border-radius: 14px; padding: 18px 20px; font-size: 15px; color: var(--ink-2); }
.newbox b { color: var(--ink); }

.dlcard {
  position: sticky; top: calc(var(--hdr) + 20px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-1);
}
.dlcard__row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dlcard__row .tile { --tile-size: 44px; }
.dlcard__name { font-family: 'Golos Text', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -.015em; }
.dlcard__ver { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dlcard .btn { width: 100%; height: 54px; font-size: 16px; }
.dlcard__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 18px; font-size: 12.5px; }
.dlcard__meta div { display: grid; gap: 2px; }
.dlcard__meta span { color: var(--muted); font-size: 11.5px; }
.dlcard__meta b { font-weight: 500; font-variant-numeric: tabular-nums; }
.dlcard__file { margin-top: 14px; font-size: 11px; color: var(--muted); word-break: break-all; }
.dlcard__hash { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted); word-break: break-all; line-height: 1.5; }
.dlcard__hash b { color: var(--ink-2); font-weight: 500; letter-spacing: .06em; }
.dlcard__note { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.dlcard__site { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.dlcard__site:hover { color: var(--accent); }

.alts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* ---------- Юридические тексты ---------- */
.legal { max-width: 780px; padding-block: 40px 80px; }
.legal h1 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 10px; }
.legal .meta { color: var(--muted); font-size: 13px; margin-bottom: 34px; }
.legal h2 { font-size: 22px; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
.legal a { color: var(--accent); }
.legal .crumbs a { color: var(--muted); }
.legal .crumbs a:hover { color: var(--ink); }\n.legal .crumbs a { color: var(--muted); }
.legal .crumbs a:hover { color: var(--ink); }
.legal .callout { background: var(--paper-2); border-radius: 14px; padding: 18px 20px; margin: 20px 0; font-size: 14.5px; }

/* ---------- Демо-плашка ---------- */
.demo-badge {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 8px; opacity: .82;
}
.demo-badge i { width: 6px; height: 6px; border-radius: 50%; background: #ffd48a; }

/* ---------- Модалка скачивания ---------- */
.modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .22s var(--ease);
}
.modal[data-open='true'] { opacity: 1; pointer-events: auto; }
.modal__scrim { position: absolute; inset: 0; background: rgba(15, 16, 11, .58); backdrop-filter: blur(3px); }
.dlg {
  position: relative; width: min(920px, 100%); max-height: min(92vh, 760px); overflow: auto;
  background: var(--surface); border-radius: 22px; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .6);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  transform: translateY(14px) scale(.985); transition: transform .26s var(--ease);
}
.modal[data-open='true'] .dlg { transform: none; }
.dlg__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  transition: background-color .18s, transform .18s;
}
.dlg__close:hover { background: var(--paper-2); transform: rotate(90deg); }
.dlg__close svg { width: 16px; height: 16px; }

.dlg__main { padding: 30px 30px 26px; display: flex; flex-direction: column; }
.dlg__kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.dlg__prod { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.dlg__prod .tile { --tile-size: 54px; }
.dlg__title { font-family: 'Golos Text', sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.dlg__sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.dlg__fname { font-size: 11px; color: var(--muted); margin-top: 4px; word-break: break-all; }
.dlg__file { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px; background: var(--paper); border-radius: 12px; margin-bottom: 22px; }
.dlg__file div { display: grid; gap: 2px; }
.dlg__file span { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.dlg__file b { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }

.count { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: var(--paper-2); }
.ring .fg { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset .95s linear; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Golos Text', sans-serif; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ring b.is-done { color: var(--ok); font-size: 24px; }
.ring.is-done .fg { opacity: 0; }
.count__txt b { display: block; font-family: 'Golos Text', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 2px; }
.count__txt span { font-size: 13px; color: var(--muted); }

.dlg .btn--dl { height: 56px; font-size: 16px; position: relative; overflow: hidden; }
.dlg .btn--dl[disabled] { opacity: 1; background: var(--paper-2); color: var(--muted); cursor: progress; }
.dlg .btn--dl .fill { position: absolute; inset: 0; width: 0%; background: rgba(20, 21, 15, .1); transition: width 1s linear; }
.dlg .btn--dl span { position: relative; }
.dlg__after { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.dlg__after a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.dlg__ok { display: flex; align-items: center; gap: 6px; color: var(--ok); }

.dlg__offer {
  position: relative; background: var(--offer-soft); padding: 26px 26px 22px;
  display: flex; flex-direction: column; border-left: 1px solid var(--line);
  background-image: radial-gradient(120% 60% at 100% 0%, rgba(239, 52, 24, .14), transparent 60%);
}
.dlg__offer-label { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #a8412c; margin-bottom: 16px; }
.dlg__offer-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--offer); }
.ylock { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ylock b { font-family: 'Golos Text', sans-serif; font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: #1a1a1a; }
.ylock b em { font-style: normal; color: var(--offer); }
.ylock__ico { width: 38px; height: 38px; border-radius: 11px; background: var(--offer); display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.ylock__ico svg { width: 18px; height: 18px; }
.dlg__offer p { font-size: 13.5px; line-height: 1.5; color: #5b392f; }
.dlg__offer ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.dlg__offer li { display: flex; gap: 8px; font-size: 12.5px; color: #4a2f26; }
.dlg__offer li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--offer); }
.dlg__offer .btn { margin-top: auto; height: 48px; font-size: 14.5px; }
.dlg__offer small { display: block; text-align: center; font-size: 11px; color: #96685c; margin-top: 10px; }
.dlg__legal { margin-top: 14px; font-size: 9.5px; line-height: 1.5; color: #a9857b; }

@media (max-width: 720px) {
  .dlg { grid-template-columns: 1fr; max-height: 94vh; }
  .dlg__main { padding: 24px 20px 20px; }
  .dlg__offer { border-left: 0; border-top: 1px solid var(--line); padding: 22px 20px 18px; }
  .dlg__offer .btn { margin-top: 18px; }
}

/* ---------- Анимации ---------- */
[data-enter] { animation: enter .7s var(--ease) both; }
[data-enter='2'] { animation-delay: .07s; }
[data-enter='3'] { animation-delay: .14s; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.lift { transition: transform .24s var(--ease), box-shadow .24s var(--ease); }
.lift:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-enter] { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .shelf { margin-inline: auto; max-width: 680px; aspect-ratio: auto; grid-auto-rows: auto; }
  .shelf .tile { height: auto; aspect-ratio: 1; }
  .shelf__slot { grid-column: span 2; }
  .prog__cols { grid-template-columns: 1fr; }
  .dlcard { position: static; order: -1; }
  .check { grid-template-columns: 1fr; }
  .offer__grid { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --pad: 20px; }
  .nav { display: none; }
  .hdr__search { display: none; }
  .burger { display: inline-flex; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alts { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .dlg__file { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-cards, .grid-catalog, .cats { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ftr__grid { grid-template-columns: 1fr; gap: 28px; }
  .prog__head { flex-direction: column; }
  .prog__head .tile { --tile-size: 64px; }
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .shelf .tile--big { grid-column: span 2; grid-row: span 2; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 11.5px; line-height: 1.3; display: block; }
  .dlg__file { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dlg__file b { font-size: 12px; }
  .dlg__after { flex-wrap: wrap; font-size: 11px; }
  .dlg__offer p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .dlg__offer ul { display: none; }
  .dlg__offer .btn { margin-top: 18px; }
  .demo-badge { right: 8px; bottom: 8px; font-size: 9px; padding: 5px 8px; }
}

/* Мобильное меню */
.mmenu {
  position: fixed; inset: var(--hdr) 0 0; z-index: 55; background: var(--paper);
  padding: 28px var(--pad); display: none; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--line);
}
.mmenu[data-open='true'] { display: flex; }
.mmenu a { font-family: 'Golos Text', sans-serif; font-size: 22px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); }


