/*
Theme Name: Promokod
Theme URI: https://promokod.site/
Author: Promokod.site
Description: Тема сайта промокодов и купонов. Светлая, с зелёными акцентами. Оптимизирована под ИИ-выдачу: JSON-LD (Offer, FAQPage, ItemList), llms.txt, TL;DR-блоки.
Version: 2.13.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: promokod
*/

/* ============================================================
   Промокод.site — промокоды и купоны на скидку
   ============================================================ */

:root {
  /* Цвета — взяты из логотипа: фирменный зелёный #60A52F */
  --bg: #F6FAF3;
  --surface: #FFFFFF;
  --ink: #20261F;
  --muted: #5E6B58;
  --green-brand: #60A52F;   /* заливки, знак, декор */
  --green: #457722;         /* текст, ссылки, кнопки — контраст с белым 5.4:1 */
  --green-dark: #37601B;
  --green-deep: #274413;
  --green-tint: #EFF7E7;
  --amber: #F0A81E;         /* кнопка промокода */
  --amber-dark: #DC9410;
  --amber-ink: #2E1F00;     /* текст на янтарном — белый не проходит по контрасту */
  --amber-tint: #FDF4E2;
  --red: #D8372E;
  --red-dark: #B92A22;
  --red-tint: #FBEDEB;
  --line: #DFE9DA;
  --line-soft: #EFF5EC;

  /* Шрифты */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Тени и радиусы */
  --shadow-sm: 0 1px 2px rgba(32, 38, 31, 0.06), 0 2px 8px rgba(32, 38, 31, 0.05);
  --shadow-md: 0 4px 12px rgba(32, 38, 31, 0.07), 0 12px 32px rgba(32, 38, 31, 0.08);
  --shadow-lg: 0 8px 24px rgba(39, 68, 19, 0.10), 0 24px 64px rgba(39, 68, 19, 0.12);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid rgba(69, 119, 34, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff;
  padding: 10px 18px; z-index: 200; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 860px; }

/* ---------- Зелёная линия под шапкой ---------- */
.greenline {
  height: 4px;
  background: linear-gradient(90deg,
    var(--green-deep) 0%, var(--green-deep) 33.33%,
    var(--green-brand) 33.33%, var(--green-brand) 66.66%,
    var(--amber) 66.66%, var(--amber) 100%);
}

/* Штрих у заголовков */
.dash {
  display: inline-block;
  width: 26px; height: 4px;
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: linear-gradient(90deg,
    #C9E4D3 0%, #C9E4D3 40%,
    var(--green-brand) 40%, var(--green-brand) 75%,
    var(--amber) 75%, var(--amber) 100%);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--amber { background: var(--amber); color: var(--amber-ink); }
.btn--amber:hover { background: var(--amber-dark); color: var(--amber-ink); }
.btn--ghost { background: var(--green-tint); color: var(--green-dark); }
.btn--ghost:hover { background: #D6EEDF; color: var(--green-deep); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header__inner { display: flex; align-items: center; gap: 28px; height: 86px; }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(140deg, var(--green-brand) 0%, var(--green-dark) 100%);
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  flex-shrink: 0;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.logo__name em { font-style: normal; color: var(--green); }
.logo__sub { font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--muted); position: relative; padding: 4px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--green); transition: right .25s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { right: 0; }


.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Герой ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(680px 420px at 12% -10%, rgba(69,119,34,.10), transparent 65%),
    radial-gradient(560px 380px at 96% 6%, rgba(240,168,30,.08), transparent 62%),
    var(--bg);
}
.hero__decor { position: absolute; inset: 0; pointer-events: none; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hero__blob--green { width: 380px; height: 380px; right: 4%; top: 40%; background: rgba(96,165,47,.20); }
.hero__blob--amber { width: 260px; height: 260px; left: -60px; bottom: -80px; background: rgba(240,168,30,.14); }

.hero__inner { position: relative; padding-top: 64px; padding-bottom: 76px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 600; line-height: 1.14; letter-spacing: -.005em;
  margin-bottom: 20px; max-width: 15ch;
}
.hero__title em { font-style: normal; color: var(--green); }

.hero__lead { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 620px; margin-bottom: 28px; }

/* Поиск */
form.search {
  display: flex; align-items: center; gap: 8px;
  max-width: 580px;
  padding: 8px 8px 8px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
form.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(69,119,34,.12); }
.search__icon { color: var(--muted); flex-shrink: 0; }
.search__input { flex: 1; min-width: 0; padding: 10px 4px; border: 0; background: transparent; font-size: 16px; color: var(--ink); }
.search__input::placeholder { color: #8FA79A; }
.search__input:focus { outline: none; }
.search__btn { border-radius: 11px; }

.hero__tags { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.hero__tags a { font-weight: 500; border-bottom: 1px dashed rgba(69,119,34,.4); }
.hero__tags a:hover { border-bottom-style: solid; }
.hero__tags span { color: #B4C9BC; }

/* Статистика */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
  margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat__num { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.1; color: var(--green-deep); }
.stat__label { font-size: 13.5px; color: var(--muted); line-height: 1.35; }

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--bg); }
.section--slim { padding: 52px 0; }

.section__head { max-width: 720px; margin-bottom: 34px; }
.section__head--row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap;
}
.section__title { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 500; line-height: 1.22; margin-bottom: 12px; }
.section__sub { font-size: 16px; color: var(--muted); }
.section__link { font-weight: 600; font-size: 15px; white-space: nowrap; }

/* ---------- TL;DR ---------- */
.tldr {
  background: var(--green-tint);
  border: 1px solid #CFE9DA;
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 30px;
}
.tldr__label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark);
  margin-bottom: 10px;
}
.tldr p { font-size: 15.5px; line-height: 1.62; color: #24503A; }
.tldr p + p { margin-top: 9px; }
.tldr strong { color: var(--green-deep); font-weight: 700; }

/* ---------- Карточка промокода ---------- */
.coupon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.coupon-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.coupon {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.coupon:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #B7DCC6; }

.coupon__head {
  margin: -22px -22px 16px;
  padding: 20px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--green-tint);
  display: flex; align-items: center; justify-content: center;
  min-height: 96px;
  position: relative;
}
.coupon--hot .coupon__head { background: var(--amber-tint); }
.coupon--expired .coupon__head { background: #F2F5F3; }

.coupon__logo { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; }
.coupon__logo-txt {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  color: var(--green-deep); text-align: center; line-height: 1.2; letter-spacing: -.01em;
}
.coupon--hot .coupon__logo-txt { color: #7A4E05; }

.coupon__disc {
  position: absolute; right: 12px; top: 12px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  background: var(--surface); color: var(--green-deep);
  border-radius: 999px; padding: 5px 12px; box-shadow: var(--shadow-sm);
  line-height: 1.2;
}

.coupon__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; line-height: 1.3;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap;
}
.badge--hot { background: var(--amber-tint); color: #7A4E05; }
.badge--excl { background: var(--green-tint); color: var(--green-dark); }
.badge--sale { background: #EEF3F0; color: #4A6455; }
.badge--exp { background: var(--red-tint); color: var(--red-dark); }

.coupon__title { font-size: 17px; overflow-wrap: anywhere; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.coupon__title a { color: var(--ink); }
.coupon__title a:hover { color: var(--green); }

.coupon__store {
  font-size: 13.5px; font-weight: 600; color: var(--green);
  display: inline-block; margin-bottom: 10px;
}

.coupon__meta {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 13.5px; color: var(--muted);
  padding-bottom: 16px;
}
.coupon__meta span { display: flex; align-items: center; gap: 7px; }
.coupon__meta b { color: var(--ink); font-weight: 600; }
.coupon__meta svg { flex-shrink: 0; opacity: .55; }

.coupon__act { margin-top: auto; }

/* Кнопка с «подглядыванием» кода */
.code-btn {
  position: relative; width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border: 0; border-radius: 12px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1;
  background: var(--amber); color: var(--amber-ink);
  transition: background-color .2s ease, transform .15s ease;
}
.code-btn:hover { background: var(--amber-dark); color: var(--amber-ink); }
.code-btn:active { transform: translateY(1px); }
.code-btn--sale { background: var(--green); }
.code-btn--sale:hover { background: var(--green-dark); }
.code-btn--peek { padding-right: 62px; }
.code-btn__peek {
  position: absolute; right: 0; top: 0; bottom: 0; width: 54px;
  border-radius: 0 12px 12px 0;
  background: rgba(46,31,0,.10);
  border-left: 2px dashed rgba(46,31,0,.35);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
}

.code-open {
  display: none; width: 100%; align-items: center; gap: 10px; justify-content: space-between;
  border: 2px dashed var(--green); background: var(--green-tint);
  border-radius: 12px; padding: 10px 12px;
}
.code-open.is-on { display: flex; }
.code-open__val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px; font-weight: 700; color: var(--green-deep);
  letter-spacing: .06em; word-break: break-all;
}
.code-open__copy {
  flex-shrink: 0; border: 0; background: var(--green); color: #fff;
  border-radius: 9px; padding: 8px 12px; font-size: 12.5px; font-weight: 700;
}
.code-open__copy:hover { background: var(--green-dark); }
.code-open__copy.is-done { background: var(--green-deep); }

.coupon__go { display: block; margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Плитки категорий ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.cat-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #B7DCC6; color: var(--ink); }
.cat-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--green-tint); font-size: 20px; flex-shrink: 0;
  transition: background-color .22s ease;
}
.cat-card:hover .cat-card__icon { background: #D3EDDD; }
.cat-card__body { display: flex; flex-direction: column; gap: 3px; padding-right: 12px; min-width: 0; }
.cat-card__title { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.cat-card__desc { font-size: 13.5px; color: var(--muted); }
.cat-card__arrow {
  position: absolute; top: 18px; right: 16px; font-size: 15px; color: var(--green);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .22s ease, transform .22s ease;
}
.cat-card:hover .cat-card__arrow { opacity: 1; transform: translateX(0); }

/* ---------- Плитки магазинов ---------- */
.store-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }

.store-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px; padding: 18px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #B7DCC6; color: var(--ink); }
.store-card__logo { height: 46px; display: grid; place-items: center; margin-bottom: 6px; }
.store-card__logo img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; }
.store-card__logo span { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--green-deep); line-height: 1.15; word-break: break-word; }
.store-card__name { font-size: 14.5px; font-weight: 700; line-height: 1.25; word-break: break-word; }
.store-card__count { font-size: 13px; color: var(--muted); }

/* ---------- Табы ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 9px 18px; font-size: 14.5px; font-weight: 600;
  transition: all .2s ease;
}
.tab:hover { border-color: var(--green); color: var(--green); }
.tab.is-on { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }
.crumbs .sep { color: #B4C9BC; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Шапка магазина ---------- */
.store-hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.store-hero__inner {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px;
  /* Картинка занимает всю высоту текстовой колонки: от верха заголовка
     до низа плашки «Обновлено». */
  align-items: stretch; padding: 34px 0 38px;
}
.store-hero__logo {
  position: relative;
  width: 100%; height: 100%; min-height: 130px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  display: grid; place-items: center; overflow: hidden;
}
/* Картинку выводим из потока: иначе квадратный логотип сам задавал бы
   высоту строки и блок вылезал бы ниже текстовой колонки. */
.store-hero__logo img {
  position: absolute; inset: 10px;
  width: calc(100% - 20px); height: calc(100% - 20px);
  object-fit: contain;
}
.store-hero__logo span { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; color: var(--green-deep); text-align: center; line-height: 1.15; word-break: break-word; }
.store-hero h1 { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 38px); font-weight: 600; line-height: 1.15; margin-bottom: 12px; }
.store-hero__lead { color: var(--muted); font-size: 16.5px; max-width: 720px; margin-bottom: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 13.5px; color: var(--muted);
}
.fact b { color: var(--ink); font-weight: 700; }

/* ---------- Заголовок раздела ---------- */
.page-head { padding: 34px 0 8px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(25px, 3.6vw, 40px); font-weight: 600; line-height: 1.15; margin-bottom: 14px; }

/* ---------- Двухколоночный макет ---------- */
.layout { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.layout--full { grid-template-columns: minmax(0, 1fr); }

.side-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; margin-bottom: 18px;
}
.side-card__title { font-family: var(--font-display); font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.side-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid var(--line-soft); }
.side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.side-list a:hover { color: var(--green); }
.side-list .n { color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- Алфавит ---------- */
.alpha { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 30px; }
.alpha a {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  font-weight: 700; font-size: 14px; color: var(--ink);
}
.alpha a:hover { border-color: var(--green); color: var(--green); }

.alpha-group { font-family: var(--font-display); font-size: 21px; font-weight: 500; margin: 34px 0 16px; color: var(--green-deep); }

/* ---------- Текстовые блоки ---------- */
.prose { max-width: 780px; font-size: 16.5px; line-height: 1.72; }
.prose h2 { font-family: var(--font-display); font-size: clamp(21px, 2.6vw, 28px); font-weight: 500; line-height: 1.25; margin: 1.7em 0 .6em; }
.prose h3 { font-family: var(--font-display); font-size: clamp(17px, 2vw, 21px); font-weight: 500; margin: 1.5em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.05em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--green); }
.prose strong { font-weight: 700; }
.prose a { border-bottom: 1px solid rgba(69,119,34,.3); }
.prose a:hover { border-bottom-color: var(--green); }
.prose table { margin: 1.4em 0; font-size: 15.5px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.prose th { background: var(--green-tint); text-align: left; padding: 12px 15px; font-weight: 700; color: var(--green-deep); border-bottom: 1px solid var(--line); }
.prose td { padding: 12px 15px; border-bottom: 1px solid var(--line-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { width: 34%; }
.prose code { background: var(--green-tint); padding: 2px 7px; border-radius: 6px; font-size: .92em; color: var(--green-deep); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 20px 0; background: none; border: 0; text-align: left;
  font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink);
  transition: color .2s ease;
}
.faq__q:hover { color: var(--green); }
.faq__plus {
  position: relative; flex-shrink: 0;
  width: 26px; height: 26px; margin-top: 1px;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background-color .2s ease, border-color .2s ease;
}
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--green); border-radius: 1px; transition: transform .25s ease, background-color .2s ease;
}
.faq__plus::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq__plus::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq__item.is-open .faq__plus { background: var(--green); border-color: var(--green); }
.faq__item.is-open .faq__plus::before, .faq__item.is-open .faq__plus::after { background: #fff; }
.faq__item.is-open .faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a { display: none; padding: 0 44px 22px 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.faq__item.is-open .faq__a { display: block; }

/* ---------- Пагинация ---------- */
.pagination { margin-top: 42px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  font-weight: 600; color: var(--ink);
  transition: border-color .2s ease, color .2s ease;
}
.pagination .page-numbers:hover { border-color: var(--green); color: var(--green); }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #C0D3C7; margin-top: 0; }
.footer__inner { display: grid; grid-template-columns: 1.5fr minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 40px; padding: 54px 24px 38px; }
.logo--footer { color: #fff; }
.logo--footer:hover { color: #fff; }
.logo--footer .logo__name em { color: #6ED09B; }
.logo--footer .logo__sub { color: #8AA695; }
.footer__desc { margin-top: 18px; font-size: 14.5px; line-height: 1.6; color: #8AA695; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__heading {
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 6px;
}
.footer__col a { font-size: 14.5px; color: #AEC4B6; transition: color .2s ease; }
.footer__col a:hover { color: #fff; }
.footer__legal {
  padding: 26px 24px 34px; border-top: 1px solid rgba(255,255,255,.10);
  display: flex; flex-direction: column; gap: 9px;
}
.footer__legal p { font-size: 13px; line-height: 1.6; color: #7E9788; }

/* ---------- Уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(140%);
  background: var(--green-deep); color: #fff;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg);
  z-index: 300; transition: transform .3s cubic-bezier(.2,.8,.3,1);
}
.toast.is-on { transform: translateX(-50%) translateY(0); }

/* ---------- 404 ---------- */
.big-404 {
  font-family: var(--font-display); font-size: clamp(64px, 12vw, 130px);
  font-weight: 700; line-height: 1; color: var(--green-tint);
  -webkit-text-stroke: 2px var(--green); margin-bottom: 12px;
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1080px) {
  .coupon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 979px) {
  .nav {
    display: none; position: absolute; top: 86px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 6px 24px 16px;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav__link::after { display: none; }
  .burger { display: flex; margin-left: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 767px) {
  .container { padding: 0 18px; }
  .header__inner { height: 72px; gap: 12px; }
  .nav { top: 72px; }
  .hero__inner { padding-top: 40px; padding-bottom: 48px; }
  .hero__title { max-width: none; }
  .section { padding: 48px 0; }
  .section--slim { padding: 36px 0; }
  .coupon-grid, .coupon-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* На узком экране заголовок переносится на несколько строк — тянуть
     картинку на всю высоту нельзя, иначе она станет узкой и длинной. */
  .store-hero__inner { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 24px 0 28px; align-items: start; }
  .store-hero__logo { height: auto; min-height: 0; aspect-ratio: 3 / 2; padding: 8px; }
  .store-hero__logo img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .store-hero__logo span { font-size: 15px; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 18px 30px; }
  .footer__legal { padding: 22px 18px 30px; }
  .prose { font-size: 16px; }
  .prose th { width: auto; }
  .faq__q { font-size: 16px; }
  .faq__a { padding-right: 0; }
}

@media (max-width: 479px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .logo__sub { display: none; }
}

/* Отметка актуальности */
.fact--fresh { background: var(--green-tint); border-color: #CFE9DA; color: var(--green-dark); }
.fact--fresh b { color: var(--green-deep); }


/* ---------- Логотип-картинка ---------- */
.logo__img { height: 56px; width: auto; }
.logo--footer .logo__img { height: 52px; }
@media (max-width: 979px) { .logo__img { height: 50px; } }
@media (max-width: 767px) { .logo__img { height: 44px; } }
@media (max-width: 419px) { .logo__img { height: 38px; } }

/* ============================================================
   Крупный блок предложения — страница про один код
   ============================================================ */
.offer {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 46px 48px 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  overflow: hidden;
}
.offer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--green-deep), var(--green-brand) 55%, var(--amber));
}
.offer--hot::before { background: linear-gradient(90deg, var(--amber-dark), var(--amber)); }
.offer--expired { opacity: .8; }
.offer--expired::before { background: var(--line); }

/* вырезы по бокам — намёк на отрывной купон */
.offer::after {
  content: "";
  position: absolute; left: -13px; right: -13px;
  top: 50%; height: 26px;
  background:
    radial-gradient(circle 13px at 0 50%, var(--bg) 98%, transparent 100%) left center / 26px 26px no-repeat,
    radial-gradient(circle 13px at 100% 50%, var(--bg) 98%, transparent 100%) right center / 26px 26px no-repeat;
  pointer-events: none;
  display: none;
}

.offer__badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.offer__badges .badge { font-size: 12.5px; padding: 6px 14px; }

.offer__disc {
  font-family: var(--font-display);
  font-size: clamp(58px, 9vw, 108px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--green-deep);
  margin-bottom: 14px;
}
.offer__disc--long { font-size: clamp(32px, 5.2vw, 62px); letter-spacing: -.03em; }
.offer--hot .offer__disc { color: #8A5406; }

.offer__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  max-width: 18ch;
  margin: 0 auto 30px;
}

.offer__action { max-width: 520px; margin: 0 auto; }

.offer__btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 22px 30px;
  border: 0; border-radius: 16px;
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 21px); font-weight: 700; line-height: 1;
  background: var(--amber); color: var(--amber-ink);
  box-shadow: 0 6px 20px rgba(240, 168, 30, .35);
  transition: background-color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.offer__btn:hover { background: var(--amber-dark); color: var(--amber-ink); box-shadow: 0 8px 26px rgba(240, 168, 30, .45); }
.offer__btn:active { transform: translateY(2px); }
.offer__btn--sale {
  background: var(--green); color: #fff;
  box-shadow: 0 6px 20px rgba(69, 119, 34, .3);
}
.offer__btn--sale:hover { background: var(--green-dark); color: #fff; box-shadow: 0 8px 26px rgba(69, 119, 34, .4); }

.offer__peek {
  position: absolute; right: 8px; top: 8px; bottom: 8px;
  display: grid; place-items: center;
  min-width: 78px; padding: 0 14px;
  border-radius: 11px;
  background: rgba(46, 31, 0, .12);
  border-left: 2px dashed rgba(46, 31, 0, .32);
  font-size: 14px; font-weight: 800; letter-spacing: .08em;
}

.offer__code {
  margin-top: 4px;
  padding: 18px 20px;
  border-width: 3px;
  border-radius: 16px;
}
.offer__code .code-open__val { font-size: clamp(22px, 3.4vw, 30px); letter-spacing: .1em; }
.offer__code .code-open__copy { padding: 11px 18px; font-size: 14px; border-radius: 11px; }
.offer__go { margin-top: 12px; font-size: 15px; }

.offer__facts {
  list-style: none; margin: 32px 0 0; padding: 26px 0 0;
  border-top: 1px dashed var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px 24px;
}
.offer__facts li { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.offer__fact-l { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.offer__fact-v { font-size: 16.5px; font-weight: 700; color: var(--ink); }

@media (max-width: 767px) {
  .offer { padding: 32px 20px 28px; border-radius: var(--r-md); }
  .offer__title { max-width: none; margin-bottom: 24px; }
  .offer__btn { padding: 19px 22px; }
  .offer__peek { min-width: 62px; padding: 0 10px; font-size: 13px; }
  .offer__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; padding-top: 22px; }
}
@media (max-width: 419px) {
  .offer__facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Промокод виден сразу ---------- */
.offer__code-label {
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.offer__code {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 16px 16px 24px;
  border: 3px dashed var(--green-brand);
  border-radius: 16px;
  background: var(--green-tint);
  margin-bottom: 14px;
}
.offer__code-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(24px, 4vw, 36px); font-weight: 700;
  letter-spacing: .09em; color: var(--green-deep);
  word-break: break-all; line-height: 1.1;
}
.offer__copy {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 18px; border: 0; border-radius: 11px;
  background: var(--green); color: #fff;
  font-size: 14.5px; font-weight: 700;
  transition: background-color .2s ease;
}
.offer__copy:hover { background: var(--green-dark); }
.offer__copy.is-done { background: var(--green-deep); }
.offer__hint { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* код в карточке списка */
.card-nocode {
  margin: 0; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--green-tint); border: 1px dashed var(--line);
  font-size: .88rem; line-height: 1.35; color: var(--green-deep);
}
.card-code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 14px;
  border: 2px dashed var(--green-brand);
  border-radius: 11px;
  background: var(--green-tint);
  margin-bottom: 10px;
}
.card-code__val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px; font-weight: 700; letter-spacing: .07em;
  color: var(--green-deep); word-break: break-all; line-height: 1.2;
}
.card-code__copy {
  flex-shrink: 0; display: grid; place-items: center;
  width: 34px; height: 34px; border: 0; border-radius: 9px;
  background: var(--green); color: #fff;
  transition: background-color .2s ease;
}
.card-code__copy:hover { background: var(--green-dark); }
.card-code__copy.is-done { background: var(--green-deep); }
.coupon__act .code-btn { background: var(--amber); color: var(--amber-ink); }
.coupon__act .code-btn:hover { background: var(--amber-dark); color: var(--amber-ink); }
.coupon__act .code-btn--sale { background: var(--green); color: #fff; }
.coupon__act .code-btn--sale:hover { background: var(--green-dark); color: #fff; }

@media (max-width: 767px) {
  .offer__code { padding: 14px 12px 14px 16px; gap: 10px; border-width: 2px; }
  .offer__copy { padding: 11px 13px; font-size: 13.5px; }
  .offer__copy span { display: none; }
}
