/* ============================================================
   oskidkah.ru — дизайн-система v1 (2026-10)
   Токены: промокодусовский лайм/графит как бренд, промокодиевский
   зелёный как действие, нейтральный холст promokodi. light-dark().
   ============================================================ */

/* ---------- Шрифт (self-hosted Golos Text, cyr + lat) ---------- */

/* ---------- Токены ---------- */
:root {
  color-scheme: light dark;

  --pk-lime: #A8CC32; --pk-lime-deep: #6EA417; --pk-lime-hover: #82A810;
  --pk-ink: #262632; --pk-ink-deep: #14141E; --pk-footer-link: #C6C6D9;

  --pi-green: #2E7D32; --pi-green-hover: #256628; --pi-green-active: #1B5E20; --pi-green-value: #388E3C;
  --pi-bg: #F2F4F7; --pi-surface: #FFFFFF; --pi-text: #1F2933; --pi-text-2: #6B7280; --pi-text-3: #8A8F98;
  --pi-border: #E6E9EE; --pi-input-border: #DDE2E8; --pi-chip: #E9EDF2; --pi-thead: #F8FAFC;
  --pi-trust-bg: #E0EBDD; --pi-trust-fg: #2F5130; --pi-yellow: #FFE066; --pi-warm-bg: #FFF8E6; --pi-warm-fg: #6B5A00;
  --pi-danger: #E64646;

  --x-lime-soft: #EEF5D6; --x-lime-soft-fg: #3D5A0A; --x-lime-dark-fg: #C7E07A;
  --x-card-dark: #1E1E2A; --x-border-dark: #34344A; --x-text-dark-2: #A6ABB5;
  --x-trust-dark-bg: #1F2F22; --x-trust-dark-fg: #BFD9B9; --x-warm-dark-bg: #332B14; --x-warm-dark-fg: #F3DC8A;

  --bg:            light-dark(var(--pi-bg), var(--pk-ink-deep));
  --surface:       light-dark(var(--pi-surface), var(--pk-ink));
  --surface-2:     light-dark(var(--pi-thead), var(--x-card-dark));
  --chip:          light-dark(var(--pi-chip), var(--x-card-dark));
  --text:          light-dark(var(--pi-text), #F2F4F7);
  --text-2:        light-dark(var(--pi-text-2), var(--x-text-dark-2));
  --text-3:        light-dark(var(--pi-text-3), #7C8290);
  --border:        light-dark(var(--pi-border), var(--x-border-dark));
  --border-strong: light-dark(var(--pi-input-border), #45455C);

  --brand: var(--pk-lime); --brand-fg: var(--pk-ink); --brand-hover: var(--pk-lime-hover);
  --brand-soft:    light-dark(var(--x-lime-soft), #2A3314);
  --brand-soft-fg: light-dark(var(--x-lime-soft-fg), var(--x-lime-dark-fg));

  --primary: var(--pk-lime-deep); --primary-hover: var(--pk-lime-hover); --primary-active: #5B8A10; --primary-fg: #fff;
  --tail-bg: light-dark(#EDEDED, #3A3A4E);
  --trust-bg: light-dark(var(--pi-trust-bg), var(--x-trust-dark-bg));
  --trust-fg: light-dark(var(--pi-trust-fg), var(--x-trust-dark-fg));
  --warm-bg:  light-dark(var(--pi-warm-bg), var(--x-warm-dark-bg));
  --warm-fg:  light-dark(var(--pi-warm-fg), var(--x-warm-dark-fg));
  --warm-accent: var(--pi-yellow);
  --danger:   light-dark(var(--pi-danger), #FF7B7B);
  --discount: light-dark(var(--pk-lime-deep), #C7E07A);

  --footer-bg: var(--pk-ink); --footer-bg-2: var(--pk-ink-deep); --footer-fg: var(--pk-footer-link); --footer-head: #fff;
  --focus: light-dark(var(--pi-green), var(--pk-lime));
  --header-bg: color-mix(in srgb, var(--surface) 84%, transparent);
  --logo-plate: #fff;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --fs-xs:  clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-sm:  clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --fs-md:  clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --fs-lg:  clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-xl:  clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  --lh-tight: 1.15; --lh-snug: 1.3; --lh-body: 1.55; --lh-article: 1.65;

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem; --sp-12: 3rem; --sp-16: 4rem;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --container: 1200px; --sidebar-w: 300px; --col-gap: 32px; --header-h: 64px;

  --r-sm: 10px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04);
  --shadow-2: 0 2px 5px rgba(38,38,50,.12);
  --shadow-3: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(38,38,50,.28);
  --ease: cubic-bezier(.2,.8,.2,1); --dur-fast: 150ms; --dur: 200ms; --dur-slow: 280ms;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

@supports not (color: light-dark(#000, #fff)) {
  :root { --bg:#F2F4F7; --surface:#fff; --surface-2:#F8FAFC; --chip:#E9EDF2; --text:#1F2933; --text-2:#6B7280; --text-3:#8A8F98;
          --border:#E6E9EE; --border-strong:#DDE2E8; --brand-soft:#EEF5D6; --brand-soft-fg:#3D5A0A; --trust-bg:#E0EBDD; --trust-fg:#2F5130;
          --warm-bg:#FFF8E6; --warm-fg:#6B5A00; --danger:#E64646; --discount:#6EA417; --tail-bg:#EDEDED; --focus:#2E7D32; }
  @media (prefers-color-scheme: dark) {
    :root { --bg:#14141E; --surface:#262632; --surface-2:#1E1E2A; --chip:#1E1E2A; --text:#F2F4F7; --text-2:#A6ABB5; --text-3:#7C8290;
            --border:#34344A; --border-strong:#45455C; --brand-soft:#2A3314; --brand-soft-fg:#C7E07A; --trust-bg:#1F2F22; --trust-fg:#BFD9B9;
            --warm-bg:#332B14; --warm-fg:#F3DC8A; --danger:#FF7B7B; --discount:#C7E07A; --tail-bg:#3A3A4E; --focus:#A8CC32; }
  }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: var(--font); font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-size: var(--fs-md); line-height: var(--lh-body);
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, h4 { line-height: var(--lh-snug); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
b, strong { font-weight: 600; }
h1 { font-size: var(--fs-2xl); font-weight: 600; }
h2 { font-size: var(--fs-xl); font-weight: 500; }
h3 { font-size: var(--fs-lg); font-weight: 500; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.muted { color: var(--text-2); }
.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; }
.icon { display: inline-block; vertical-align: -0.15em; flex: none; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
::selection { background: var(--brand); color: var(--brand-fg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html { scroll-behavior: smooth; }
}

/* ---------- Сетка ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.page { padding-block: var(--sp-4) var(--sp-10); }
.page > :last-child { margin-bottom: 0; }
.prose > :last-child { margin-bottom: 0; }
.section { margin-block: var(--sp-10); }
.section--tight { margin-block: var(--sp-6); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.section__head h2 { display: flex; align-items: center; gap: var(--sp-2); }
.section__more { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.section__more:hover { color: var(--primary); }
.layout { display: grid; gap: var(--col-gap); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) {
  .layout--aside { grid-template-columns: minmax(0, 1fr) var(--sidebar-w); }
  .aside { position: sticky; top: calc(var(--header-h) + 16px); }
}
.stack > * + * { margin-top: var(--sp-6); }

/* ---------- Поверхности ---------- */
.card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.panel { padding: var(--sp-5); }
.panel + .panel { margin-top: var(--sp-4); }
.panel__title { font-size: var(--fs-sm); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin-bottom: var(--sp-3); display: flex; align-items: center; gap: 6px; }
.panel--trust { background: var(--trust-bg); border-color: transparent; color: var(--trust-fg); }
.panel--trust .panel__title { color: inherit; }
.panel--warm { background: var(--warm-bg); border-color: transparent; color: var(--warm-fg); }
.callout { background: var(--surface-2); border-radius: var(--r-md); padding: var(--sp-5); }
@media (prefers-color-scheme: dark) { .card, .panel { box-shadow: none; } }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-sm);
       border: 1px solid transparent; font-weight: 500; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap; text-decoration: none;
       transition: background var(--dur-fast), box-shadow var(--dur-fast), translate var(--dur-fast), border-color var(--dur-fast); user-select: none; }
.btn:hover { color: inherit; }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: var(--primary-hover); color: #fff; box-shadow: var(--shadow-2); }
.btn--primary:active { background: var(--primary-active); }
.btn--brand { background: var(--brand); color: var(--brand-fg); }
.btn--brand:hover { background: var(--brand-hover); color: var(--brand-fg); box-shadow: var(--shadow-2); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--text-3); color: var(--text); box-shadow: var(--shadow-1); }
.btn--ghost { background: var(--chip); color: var(--text); }
.btn--ghost:hover { background: var(--border); color: var(--text); }
.btn--danger-text { background: transparent; color: var(--danger); padding-inline: 8px; }
.btn--lg { min-height: 48px; padding-inline: 20px; font-size: 16px; }
.btn--sm { min-height: 36px; padding-inline: 12px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Кнопка кода с «хвостом» (как у promokodus: серая подложка с последними буквами кода, зелёная часть с загнутым уголком; на hover уезжает и показывает больше) */
.btn-code { position: relative; display: block; width: 100%; max-width: 300px; height: 44px; border: 0; padding: 0; border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
            background: var(--tail-bg); color: var(--primary-fg); font-weight: 500; font-size: 15px; line-height: 1; text-align: left; transition: box-shadow var(--dur-fast); }
.btn-code__tail { position: absolute; inset: 0 0 0 auto; width: 110px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; color: var(--text-2);
                  font-weight: 600; font-size: 16px; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn-code__label { position: absolute; inset: 0 22px 0 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px 0 12px; background: var(--primary); border-radius: var(--r-sm) 0 0 var(--r-sm); white-space: nowrap; transition: right var(--dur), background var(--dur-fast); }
.btn-code__label::after { content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: linear-gradient(to bottom left, var(--tail-bg) 50%, var(--primary-active) 50%); }
.btn-code:hover { box-shadow: var(--shadow-2); }
.btn-code:hover .btn-code__label { right: 38px; background: var(--primary-hover); }
.btn-code:hover .btn-code__label .icon { transform: rotateY(180deg); }
.btn-code .icon { transition: transform var(--dur); }
.btn-code:active .btn-code__label { background: var(--primary-active); }
.btn-code--sm { height: 36px; font-size: 14px; max-width: 200px; }
.btn-code--sm .btn-code__tail { font-size: 14px; }
.btn-deal { max-width: 300px; width: 100%; font-weight: 500; }
.code-chip--muted { color: var(--text-2); background: transparent; }
.code-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm);
             background: var(--chip); color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: .06em; border: 1px dashed var(--border-strong); user-select: all; }

/* ---------- Бейджи ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; line-height: 1; padding: 5px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.badge--code { background: var(--brand-soft); color: var(--brand-soft-fg); }
.badge--deal { background: var(--chip); color: var(--text); }
.badge--shipping, .badge--verified { background: var(--trust-bg); color: var(--trust-fg); }
.badge--gift { background: var(--brand-soft); color: var(--brand-soft-fg); }
.badge--exclusive { background: var(--warm-bg); color: var(--warm-fg); box-shadow: inset 3px 0 0 var(--warm-accent); }
.badge--expiring { background: var(--warm-bg); color: var(--warm-fg); }
.badge--expired { background: var(--chip); color: var(--text-2); }
.badge--neutral { background: var(--surface-2); color: var(--text-2); }

/* ---------- Табы / чипы ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-md); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 0; background: transparent;
       color: var(--text-2); font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background var(--dur-fast), color var(--dur-fast); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"], .tab--active { background: var(--brand); color: var(--brand-fg); }
.tab__count { font-size: 13px; opacity: .8; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--border);
        background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color var(--dur-fast), background var(--dur-fast); }
.chip:hover { border-color: var(--text-3); color: var(--text); }
.chip--active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-soft-fg); }
.chip__count { color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.chip--warm { background: var(--warm-bg); border-color: transparent; color: var(--warm-fg); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .header { background: var(--header-bg); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }
}
.header__inner { height: 100%; display: flex; align-items: center; gap: var(--sp-4); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: var(--text); flex: none; }
.logo:hover { color: var(--text); }
.logo__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--brand-fg); display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; color: var(--text); background: transparent; border: 0; cursor: pointer; white-space: nowrap; }
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__item.is-open > .nav__link { background: var(--chip); color: var(--text); }
.nav__link--active { box-shadow: inset 0 -2px 0 var(--brand); }
.nav__link--trust .icon { color: var(--trust-fg); }
.nav__link .icon--chev { transition: rotate var(--dur); color: var(--text-3); }
.nav__item.is-open > .nav__link .icon--chev, .nav__item:focus-within > .nav__link .icon--chev { rotate: 180deg; }
.menu-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
              box-shadow: var(--shadow-3); padding: var(--sp-6); display: none; }
.nav__item.is-open > .menu-panel { display: block; }
@media (hover: hover) and (pointer: fine) { .nav__item:hover > .menu-panel, .nav__item:focus-within > .menu-panel { display: block; } }
.mega { width: min(1000px, calc(100vw - 2 * var(--gutter))); }
.nav__item--mega { position: static; }
.nav__item--mega .mega { left: 50%; translate: -50% 0; }
.mega__cols { display: grid; grid-template-columns: 3fr 3fr 3fr 2.6fr; gap: var(--sp-6); }
.mega__col { display: flex; flex-direction: column; gap: 2px; }
.mega__col--side { border-left: 1px solid var(--border); padding-left: var(--sp-6); }
.mega__title { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 0 0 8px 10px; }
.mega__link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--text); }
.mega__link:hover { background: var(--chip); color: var(--text); }
.mega__link .icon { color: var(--brand-soft-fg); }
.mega__count { margin-left: auto; color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.mega__event { margin-top: var(--sp-3); background: var(--warm-bg); color: var(--warm-fg); border-radius: var(--r-md); padding: 12px 14px; display: block; }
.mega__event b { display: block; font-size: 14px; }
.mega__event span { font-size: 13px; }
.mega__foot { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
.dropdown { min-width: 280px; padding: var(--sp-3); }
.dropdown .mega__link { font-size: 15px; }
.header__search { display: none; margin-left: auto; }
.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--chip); }
.season-chip { display: none; }
@media (min-width: 1024px) {
  .nav { display: block; }
  .header__search { display: block; }
  .header__actions { margin-left: 0; }
  .header__burger, .header__search-toggle { display: none; }
  .season-chip { display: inline-flex; }
}
@media (max-width: 767px) { :root { --header-h: 56px; } .logo__text { font-size: 18px; } }

/* Поиск */
.search { position: relative; }
.search__form { position: relative; }
.search__input { width: 100%; height: 44px; padding: 0 44px 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text);
                 font: inherit; font-size: 15px; transition: border-color var(--dur-fast), width var(--dur); }
.search__input::placeholder { color: var(--text-3); }
.search__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.search__btn { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-2); border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer; }
.search__btn:hover { color: var(--primary); }
.header__search .search__input { width: 280px; }
.header__search .search__input:focus { width: 360px; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
           box-shadow: var(--shadow-3); padding: 6px; display: none; z-index: 70; max-height: 420px; overflow: auto; }
.suggest.is-open { display: block; }
.suggest__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--text); }
.suggest__item:hover, .suggest__item[aria-selected="true"] { background: var(--chip); color: var(--text); }
.suggest__logo { width: 28px; height: 28px; border-radius: 6px; background: var(--logo-plate); border: 1px solid var(--border); object-fit: contain; padding: 2px; display: grid; place-items: center; font-weight: 600; color: var(--brand-soft-fg); flex: none; }
.suggest__name { font-weight: 500; }
.suggest__count { margin-left: auto; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.suggest__all { color: var(--primary); font-weight: 500; }
.search-bar { display: none; position: absolute; inset: 0; padding: 8px var(--gutter); background: var(--surface); align-items: center; gap: 8px; z-index: 55; }
html.search-open .search-bar { display: flex; }
.search-bar .search { flex: 1; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(20,20,30,.5); opacity: 0; transition: opacity var(--dur-slow); }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: var(--surface); translate: -100% 0; transition: translate var(--dur-slow) var(--ease);
                 overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--sp-4) var(--sp-8); display: flex; flex-direction: column; }
html.nav-open .drawer { visibility: visible; }
html.nav-open .drawer__backdrop { opacity: 1; }
html.nav-open .drawer__panel { translate: 0 0; }
html.nav-open { overflow: hidden; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-3); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 6px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--border); }
.drawer__link .icon { color: var(--text-3); }
.drawer__group { border-bottom: 1px solid var(--border); }
.drawer__group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 6px; font-size: 16px; font-weight: 500; }
.drawer__group > summary .icon { transition: rotate var(--dur); color: var(--text-3); }
.drawer__group[open] > summary .icon { rotate: 180deg; }
.drawer__sub { padding: 0 0 8px 6px; display: flex; flex-direction: column; }
.drawer__sub a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: var(--text-2); }
.drawer__sub a .mega__count { margin-left: auto; }
.drawer__sub a:hover { color: var(--text); }
.drawer__foot { margin-top: auto; padding-top: var(--sp-6); display: flex; gap: 8px; }

/* ---------- Крошки ---------- */
.crumbs { font-size: 13px; color: var(--text-2); margin: 0 0 var(--sp-3); }
.crumbs__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.crumbs__list::-webkit-scrollbar { display: none; }
.crumbs__list li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs__list li + li::before { content: ""; width: 12px; height: 12px; background: currentColor; opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat; }
.crumbs__list a:hover { color: var(--primary); }
.crumbs__list [aria-current] { color: var(--text); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 2vw + 16px, 40px); box-shadow: var(--shadow-1);
        position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 28%, transparent), transparent); pointer-events: none; }
.hero__title { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.01em; max-width: 22ch; }
.hero__sub { color: var(--text-2); margin: var(--sp-3) 0 var(--sp-5); font-size: var(--fs-md); }
.hero__search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 720px; }
@media (max-width: 479px) { .hero__search { grid-template-columns: 1fr; } }
.hero__search .search__input { height: 52px; font-size: 16px; padding-right: 14px; }
.hero__search .search__btn { display: none; }
.hero__chips { margin-top: var(--sp-4); }
.hero__stats { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-5); color: var(--text-2); font-size: var(--fs-sm); }
.hero__stats b { color: var(--text); font-size: var(--fs-lg); font-weight: 600; display: block; }

/* ---------- Плитки ---------- */
.tiles { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.tiles--scroll-mobile { }
@media (max-width: 767px) {
  .tiles--scroll-mobile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .tiles--scroll-mobile::-webkit-scrollbar { display: none; }
  .tiles--scroll-mobile > * { flex: 0 0 42%; scroll-snap-align: start; }
}
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); display: grid; justify-items: center; gap: 8px; min-height: 132px;
        text-align: center; color: var(--text); transition: translate var(--dur-fast), box-shadow var(--dur-fast); }
.tile:hover { translate: 0 -2px; box-shadow: var(--shadow-2); color: var(--text); }
.tile__logo { width: 120px; height: 48px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--logo-plate); padding: 4px; }
.tile__logo img { max-width: 112px; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.tile__name { font-size: 14px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__count { font-size: 13px; color: var(--text-2); }
.tile--cat { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; align-items: center; gap: 12px; min-height: 80px; padding: 14px 16px; }
.tile__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-soft-fg); display: grid; place-items: center; }
.tile--cat .tile__name { font-size: 15px; white-space: normal; display: block; }
.tile--cat .tile__count { display: block; margin-top: 2px; }
.tile--cat > span:last-child { min-width: 0; }
.cats-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* ---------- Карточка купона ---------- */
.feed { container-type: inline-size; display: grid; gap: var(--sp-4); }
.coupon { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-1);
          display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "side main" "side action"; gap: 0; scroll-margin-top: calc(var(--header-h) + 16px); transition: box-shadow var(--dur-fast); }
.coupon:hover { box-shadow: var(--shadow-2); }
.coupon__ribbon { position: absolute; left: -5px; top: 8px; z-index: 1; background: #AB60CB; color: #fff; font-size: 12px; font-weight: 500; line-height: 18px; padding: 2px 10px; border-radius: 0 4px 4px 0; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.coupon__ribbon::after { content: ""; position: absolute; left: 0; bottom: -4px; border: 2.5px solid transparent; border-top-color: #732695; border-right-color: #732695; }
.coupon:has(> .coupon__ribbon) { padding-top: 26px; } /* узкая карточка: лента не должна лечь на заголовок */
.coupon__side { grid-area: side; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 14px 6px; border-right: 1px solid var(--border); }
.coupon__disc { display: grid; place-items: center; color: var(--discount); font-weight: 600; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: center; line-height: 1; white-space: nowrap; }
.coupon__disc--mid { font-size: 16px; }
.coupon__disc--long { font-size: 13px; }
.coupon__disc--icon { color: var(--brand-soft-fg); }
.coupon__logo { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 120px; height: 44px; background: var(--logo-plate); border-radius: var(--r-sm); padding: 3px 6px; }
.coupon__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.coupon__main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 6px; }
.coupon__title { font-size: 15px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.coupon__title a { color: var(--text); }
.coupon__title a:hover { color: var(--primary); }
.coupon__cond { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.45; white-space: pre-line; min-width: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Обрезанный текст условий раскрывается по клику: без цвета и подчёркивания, только курсор */
.coupon__cond.is-clamped { cursor: pointer; }
.coupon__cond.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.coupon__all { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.coupon__all .icon { color: var(--brand); }
.coupon__all:hover { color: var(--primary); }
.coupon__action { grid-area: action; display: grid; gap: 6px; justify-items: stretch; padding: 4px 16px 14px; }
.coupon__action .btn-code, .coupon__action .btn-deal { max-width: none; }
.coupon__time { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 12px; color: var(--text-3); line-height: 1.3; }
.coupon__time span { display: inline-flex; align-items: center; gap: 4px; }
.coupon__time .is-hot { color: var(--danger); }
.coupon__time .is-verified { color: var(--trust-fg); }
.coupon__noscript { display: inline-flex; }
.coupon--expired .coupon__disc, .coupon--expired .coupon__title a { color: var(--text-3); }
.coupon--expired .coupon__logo img { filter: grayscale(1); opacity: .7; }
.coupon--hero { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); }
.coupon--mini { grid-template-columns: 56px minmax(0, 1fr); }
.coupon--mini .coupon__side { padding: 10px 4px; }
.coupon--mini .coupon__logo { height: 36px; }
.coupon--mini .coupon__ribbon { font-size: 11px; line-height: 16px; padding: 1px 8px; top: 6px; }
.coupon--mini:has(> .coupon__ribbon) { padding-top: 22px; }
.coupon--mini .coupon__disc { font-size: 15px; }
.coupon--mini .coupon__disc--long { font-size: 11px; }
.coupon--mini .coupon__main { padding: 10px 12px 4px; }
.coupon--mini .coupon__title { font-size: 14px; -webkit-line-clamp: 2; }
.coupon--mini .coupon__action { padding: 2px 12px 10px; }
.coupon--mini .btn-code, .coupon--mini .btn-deal { height: 36px; min-height: 36px; font-size: 14px; }
.coupon .code-chip { display: none; } /* код показывается только в окне, кнопка в ленте не меняется */

/* Голоса «сработало / не сработало» */
.votes { display: flex; align-items: center; gap: 4px; }
.vote { display: inline-flex; align-items: center; gap: 3px; background: none; border: 0; padding: 2px; border-radius: 6px; color: var(--text-3); cursor: pointer; font-size: 12px; font-weight: 500; line-height: 1; }
.vote .icon-wrap { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); transition: background var(--dur-fast), color var(--dur-fast); }
.vote--up:hover .icon-wrap, .vote--up.is-active .icon-wrap { background: var(--brand-soft); color: var(--brand-soft-fg); border-color: transparent; }
.vote--down:hover .icon-wrap, .vote--down.is-active .icon-wrap { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); border-color: transparent; }
.vote__n { color: var(--text-2); }
.vote[disabled] { cursor: default; }

@container (min-width: 600px) {
  .coupon { grid-template-columns: 150px minmax(0, 1fr) 272px; grid-template-areas: "side main action"; min-height: 140px; }
  .coupon:has(> .coupon__ribbon) { padding-top: 0; }
  .coupon__side { padding: 18px 10px; gap: 12px; }
  .coupon__disc { font-size: 26px; }
  .coupon__disc--mid { font-size: 22px; }
  .coupon__disc--long { font-size: 17px; }
  .coupon__logo { height: 56px; max-width: 130px; }
  .coupon__main { justify-content: center; padding: 16px 24px; }
  .coupon__title { font-size: 16px; }
  .coupon__action { align-content: center; padding: 20px 20px 16px 24px; border-left: 1px solid var(--border); }
  .coupon--hero .coupon__title { font-size: 18px; font-weight: 500; }
  .coupon--mini { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "side main" "side action"; min-height: 0; }
  .coupon--mini .coupon__side { padding: 10px 4px; } .coupon--mini .coupon__disc { font-size: 15px; } .coupon--mini .coupon__main { padding: 10px 12px 4px; } .coupon--mini .coupon__action { padding: 2px 12px 10px; border-left: 0; }
}
/* Вертикальная карточка (главная, подборки, категории): логотип сверху → заголовок → «Все промокоды» → кнопка → срок */
.feed--cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); container-type: normal; }
.feed--cols .coupon:has(> .coupon__ribbon) { padding-top: 0; }
.feed--cols .coupon { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "side" "main" "action"; align-content: stretch; }
.feed--cols .coupon__side { border-right: 0; border-bottom: 1px solid var(--border); padding: 24px 20px 14px; gap: 10px; }
.feed--cols .coupon__logo { height: 56px; max-width: 143px; }
.feed--cols .coupon__disc { font-size: 26px; } .feed--cols .coupon__disc--mid { font-size: 22px; } .feed--cols .coupon__disc--long { font-size: 18px; }
.feed--cols .coupon__main { padding: 12px 20px 4px; flex: 1; }
.feed--cols .coupon__title { font-size: 16px; }
.feed--cols .coupon__action { padding: 8px 20px 16px; border-left: 0; }
.feed .is-collapsed { display: none; }

/* Рекламная пометка */
.ad-note { font-size: 12px; color: var(--text-2); display: flex; gap: 6px; align-items: flex-start; }
.ad-note .icon { color: var(--text-3); margin-top: 2px; }

/* ---------- Dialog / bottom sheet ---------- */
.dlg { border: 0; padding: 0; background: var(--surface); color: var(--text); border-radius: var(--r-lg); box-shadow: var(--shadow-3); width: min(480px, 92vw); max-height: 85dvh; overflow: auto; }
.dlg::backdrop { background: rgba(20,20,30,.45); }
.dlg__inner { padding: var(--sp-6); }
.dlg__ad { margin-top: 10px; font-size: 11px; color: var(--text-3); line-height: 1.35; }
.dlg__head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-4); }
.dlg__logo { width: 40px; height: 40px; border-radius: 8px; background: var(--logo-plate); border: 1px solid var(--border); padding: 3px; display: grid; place-items: center; flex: none; }
.dlg__logo img { max-width: 32px; max-height: 32px; object-fit: contain; }
.dlg__store { font-size: 13px; color: var(--text-2); }
.dlg__title { font-size: 17px; font-weight: 500; line-height: 1.3; }
.dlg__close { margin-left: auto; align-self: flex-start; }
.dlg__code { background: var(--surface-2); border-radius: var(--r-md); padding: 28px 16px 16px; text-align: center; position: relative; margin-bottom: var(--sp-3); }
.dlg__code-label { position: absolute; top: 10px; left: 0; right: 0; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.dlg__code-value { font-size: 28px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; user-select: all; word-break: break-all; }
.dlg__actions { display: grid; gap: 8px; }
.dlg__status { min-height: 1.2em; font-size: 13px; color: var(--trust-fg); text-align: center; margin: 6px 0 0; }
.dlg__cond { font-size: 14px; color: var(--text-2); margin-top: var(--sp-4); }
.dlg__meta { font-size: 13px; color: var(--text-2); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 767px) {
  .dlg { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 85dvh;
         padding-bottom: env(safe-area-inset-bottom, 0px); translate: 0 100%; transition: translate var(--dur-slow) var(--ease), display var(--dur-slow) allow-discrete, overlay var(--dur-slow) allow-discrete; }
  .dlg[open] { translate: 0 0; }
  @starting-style { .dlg[open] { translate: 0 100%; } }
  .dlg__inner::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 0 auto 14px; }
}

/* Sticky CTA (мобильная страница магазина) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--border);
              translate: 0 110%; transition: translate var(--dur-slow) var(--ease); }
.sticky-cta.is-visible { translate: 0 0; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ---------- Страница магазина ---------- */
.store-head { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--sp-5); display: grid; gap: var(--sp-4); grid-template-columns: 80px minmax(0, 1fr); }
.store-head__logo { width: 80px; height: 80px; border-radius: var(--r-md); background: var(--logo-plate); border: 1px solid var(--border); padding: 8px; display: grid; place-items: center; }
.store-head__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.store-head__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.store-head__title { font-size: var(--fs-2xl); }
.store-head__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--text-2); }
.store-head__meta b { color: var(--text); font-weight: 500; }
.store-head__desc { color: var(--text-2); font-size: 15px; }
.store-head__actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.store-head__tabs { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .store-head { grid-template-columns: 120px minmax(0, 1fr) auto; padding: var(--sp-6); }
  .store-head__logo { width: 120px; height: 120px; }
  .store-head__actions { grid-column: 3; grid-row: 1; flex-direction: column; align-items: stretch; }
  .store-head__actions .btn { justify-content: flex-start; }
}
.store-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.store-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 14px; font-weight: 500; background: var(--surface); }
.store-chip:hover { border-color: var(--text-3); color: var(--text); }
.store-chip img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; background: var(--logo-plate); padding: 2px; border: 1px solid var(--border); }
.store-chip span { color: var(--text-2); font-size: 13px; }

/* Шаги, таблица, статистика, FAQ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; counter-increment: step; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--trust-bg); color: var(--trust-fg); font-weight: 600; display: grid; place-items: center; }
.steps__cols { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .steps__cols { grid-template-columns: 1fr 1fr; } }
.steps__cols h3 { font-size: 15px; font-weight: 500; margin-bottom: var(--sp-3); color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); background: var(--surface-2); padding: 10px 14px; font-weight: 500; }
.table td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.table .code-chip { min-height: 36px; font-size: 14px; }
.table .btn-code { min-width: 170px; }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-top: 1px solid var(--border); padding: 8px 0; }
  .table td { border: 0; padding: 6px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
  .table td::before { content: attr(data-label); font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-4); }
.stat { display: grid; gap: 6px; }
.stat__value { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat__value--chip { display: inline-block; justify-self: start; background: var(--trust-bg); color: var(--trust-fg); padding: 4px 10px; border-radius: 8px; }
.stat__label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.faq { padding: 4px var(--sp-5); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:last-child { border-bottom: 0; }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-size: 16px; font-weight: 500; }
.faq__q .icon { color: var(--text-3); transition: rotate var(--dur); flex: none; }
.faq__item[open] .faq__q .icon { rotate: 180deg; }
.faq__a { color: var(--text-2); padding-bottom: 16px; font-size: 15px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--trust-fg); margin-top: 3px; }

/* Пагинация */
.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: var(--sp-8); }
.pager__link { min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); background: var(--chip); color: var(--text); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.pager__link:hover { background: var(--border); color: var(--text); }
.pager__link[aria-current="page"] { background: var(--primary); color: var(--primary-fg); }
.pager__dots { display: inline-flex; align-items: center; padding: 0 4px; color: var(--text-3); }

/* ---------- Блог ---------- */
.posts { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--dur-fast), translate var(--dur-fast); }
.post-card:hover { box-shadow: var(--shadow-2); translate: 0 -2px; }
.post-card__media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__title { font-size: 17px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__excerpt { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.post-card__meta { font-size: 13px; color: var(--text-2); margin-top: auto; display: flex; gap: 10px; }
@media (min-width: 1024px) { .posts--featured > .post-card:first-child { grid-column: span 2; } .posts--featured > .post-card:first-child .post-card__media { aspect-ratio: 2 / 1; } }
.prose { font-size: 17px; line-height: var(--lh-article); max-width: 740px; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: var(--fs-xl); margin: 2em 0 .7em; }
.prose h3 { font-size: var(--fs-lg); margin: 1.6em 0 .6em; }
.prose img { border-radius: var(--r-md); margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.prose blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--brand); background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); position: sticky; top: var(--header-h); }
.prose--longread { max-width: none; font-size: 16px; }
.store-about__text > h2:first-child { margin-top: 0; font-size: var(--fs-xl); }
.store-about__text > h2:not(:first-child) { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.store-about__text > p:first-child { margin-top: 0; }
.store-about__editor { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.store-about__editor .icon { color: var(--trust-fg); flex: none; margin-top: 2px; }
.store-about__editor b { color: var(--text); font-weight: 600; }
.store-about__text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose--longread h1 { font-size: var(--fs-xl); }
.article-head { margin-bottom: var(--sp-6); }
.article-head__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--text-2); margin-top: var(--sp-3); align-items: center; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-6); aspect-ratio: 2 / 1; background: var(--surface-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.toc { font-size: 14px; }
.toc ol { padding-left: 1.2em; margin: 0; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--primary); }

/* ---------- Формы ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
textarea.input { min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.form-row { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.checkbox input { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; }

/* ---------- Пустое состояние / уведомления ---------- */
.empty { text-align: center; padding: var(--sp-10) var(--sp-4); color: var(--text-2); }
.empty h3 { color: var(--text); margin-bottom: 8px; }
.notice { padding: 12px 16px; border-radius: var(--r-md); background: var(--trust-bg); color: var(--trust-fg); font-size: 14px; }
.notice--warm { background: var(--warm-bg); color: var(--warm-fg); }
.notice--danger { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; background: var(--pk-ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font-size: 14px; z-index: 100; box-shadow: var(--shadow-3); opacity: 0; transition: opacity var(--dur); pointer-events: none; }
.toast.is-visible { opacity: 1; }

/* ---------- Подвал ---------- */
.footer { background: var(--footer-bg); color: var(--footer-fg); margin-top: 0; font-size: 14px; }
.footer a { color: var(--footer-fg); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: var(--sp-8); padding: var(--sp-12) 0 var(--sp-8); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer__title { color: var(--footer-head); font-size: 15px; font-weight: 600; margin-bottom: var(--sp-3); display: flex; align-items: center; gap: 8px; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { line-height: 32px; }
.footer__about { max-width: 320px; }
.footer__about .logo { color: #fff; margin-bottom: var(--sp-3); }
.footer__about .logo:hover { color: #fff; }
.footer__social { display: flex; gap: 8px; margin-top: var(--sp-4); }
.footer__social a { width: 36px; height: 36px; border-radius: var(--r-sm); background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; }
.footer__social a:hover { background: rgba(255,255,255,.2); }
.footer__popular { border-top: 1px solid rgba(255,255,255,.1); padding: var(--sp-5) 0; font-size: 13px; line-height: 1.9; }
.footer__popular b { color: #fff; margin-right: 8px; }
.footer__popular a { white-space: nowrap; }
.footer__popular a + a::before { content: "·"; margin: 0 8px; color: rgba(255,255,255,.35); }
.footer__bottom { background: var(--footer-bg-2); padding: var(--sp-4) 0; font-size: 13px; }
.footer__bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer__bottom p { margin: 0; }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding: var(--sp-12) 0 var(--sp-8); }
.error-hero__code { font-size: var(--fs-3xl); font-weight: 600; color: transparent; -webkit-text-stroke: 2px var(--brand); letter-spacing: .04em; }

/* ---------- Утилиты ---------- */
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.between { justify-content: space-between; }
.grid-3 { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.text-sm { font-size: var(--fs-sm); }
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mb-4 { margin-bottom: var(--sp-4); }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } .hide-desktop { display: none !important; } }
.lead { font-size: var(--fs-lg); color: var(--text-2); max-width: 70ch; }
.page-head { margin-bottom: var(--sp-6); }
.page-head__sub { color: var(--text-2); margin-top: 8px; font-size: var(--fs-md); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-4); }
.toolbar__search { flex: 1 1 280px; max-width: 420px; }
.toolbar__chips { flex: 1 1 100%; max-width: 100%; }
.alpha { position: sticky; top: var(--header-h); z-index: 30; background: var(--bg); padding: 8px 0; display: flex; gap: 4px; flex-wrap: wrap; }
.alpha a, .alpha span { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; background: var(--chip); color: var(--text); }
.alpha a:hover { background: var(--brand); color: var(--brand-fg); }
.alpha span { color: var(--text-3); background: var(--surface-2); font-weight: 400; }
.letter-block { margin-top: var(--sp-6); scroll-margin-top: calc(var(--header-h) + 60px); }
.letter-block__title { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--sp-3); color: var(--primary); font-size: var(--fs-2xl); font-weight: 600; }
.letter-block__letter { margin: 0; font-size: inherit; font-weight: inherit; color: inherit; line-height: inherit; }
.letter-block__count { color: var(--text-3); font-size: var(--fs-sm); font-weight: 400; }
.store-list { list-style: none; margin: 0; padding: 14px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-1);
              display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 2px 24px; }
.store-list a { display: block; padding: 7px 0; color: var(--text); line-height: 1.35; }
.store-list a:hover .store-list__name { color: var(--primary); }
.store-list__name { display: block; font-size: 15px; }
.store-list__meta { display: block; font-size: 12px; color: var(--text-3); }
.store-list__meta b { color: var(--discount); font-weight: 500; }
.empty-note { margin-top: var(--sp-6); color: var(--text-2); }
@media (max-width: 479px) { .store-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 14px; gap: 0 14px; } .store-list__name { font-size: 14px; } }
@media (max-width: 767px) { .alpha { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); } .alpha::-webkit-scrollbar { display: none; } .alpha a, .alpha span { flex: none; } }
.event-card { display: grid; gap: 6px; padding: var(--sp-5); border-radius: var(--r-md); background: var(--warm-bg); color: var(--warm-fg); }
.event-card b { font-size: 17px; }
.event-card--neutral { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.showcase { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.showcase__card { padding: var(--sp-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 8px; align-content: start; }
.showcase__card .icon { color: var(--brand-soft-fg); }
.showcase__card h3 { font-size: var(--fs-lg); }
.progress { position: fixed; top: var(--header-h); left: 0; height: 2px; width: 100%; background: var(--brand); transform-origin: 0 50%; scale: 0 1; z-index: 49; }
@supports (animation-timeline: scroll()) { @media (prefers-reduced-motion: no-preference) { .progress { animation: grow linear both; animation-timeline: scroll(root); } } }
@keyframes grow { from { scale: 0 1; } to { scale: 1 1; } }
.content-auto { content-visibility: auto; contain-intrinsic-size: auto 160px; }
@media print { .header, .footer, .sticky-cta, .drawer, .btn-code, .coupon__action { display: none !important; } }
