img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px}
/*! This file is auto-generated */
.wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}/* ============================================================================
   Melbet — премиум-редизайн (жёлто-чёрная гамма)
   Источник дизайна: _preview/index.html (одобренное превью)
   ============================================================================ */

/* ==========================================================================
   1. Шрифты
   ========================================================================== */
@font-face{ 
  font-family: 'Gilroy';
  src: url('/wp-content/themes/melbet/assets/fonts/Gilroy-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
 }
@font-face{ 
  font-family: 'Inter';
  src: url('/wp-content/themes/melbet/assets/fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
 }
@font-face{ 
  font-family: 'Inter';
  src: url('/wp-content/themes/melbet/assets/fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
 }
@font-face{ 
  font-family: 'Inter';
  src: url('/wp-content/themes/melbet/assets/fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
 }
@font-face{ 
  font-family: 'Inter';
  src: url('/wp-content/themes/melbet/assets/fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
 }

/* ==========================================================================
   2. Дизайн-токены
   ========================================================================== */
:root {
  --c-dark: #15181D;        /* графит: шапка, подвал, hero, trust */
  --c-dark-2: #1E232B;      /* карточки на тёмном */
  --c-dark-3: #1B2027;      /* светлый край hero-градиента */
  --c-dark-4: #101318;      /* тёмный край hero-градиента */
  --c-yellow: #FFDD2D;
  --c-yellow-2: #FFC700;
  --c-white: #FFFFFF;
  --c-bg: #F6F7F9;
  --c-text: #15181D;
  --c-text-muted: #6B7280;
  --c-line: #E5E7EB;
  --grad-cta: linear-gradient(180deg, #FFDD2D 0%, #FFC700 100%);
  --r-btn: 12px;
  --r-card: 16px;
  --shadow-card: 0 1px 2px rgba(21,24,29,.06), 0 8px 24px rgba(21,24,29,.08);
  --shadow-card-hover: 0 2px 4px rgba(21,24,29,.06), 0 16px 40px rgba(21,24,29,.14);
  --shadow-cta: 0 6px 20px rgba(255,199,0,.35);
  --f-head: 'Gilroy', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --container: 1200px;
}

/* ==========================================================================
   3. Сброс и база
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Страховка от мелких горизонтальных переполнений на мобильных
   (clip — современный вариант, hidden — фолбэк для старых браузеров) */
html { overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

/* Утилиты для картинок (используются в шаблонах: img.contain, img.cover) */
.cover { object-fit: cover; width: 100%; height: 100%; }
.contain { object-fit: contain; width: 100%; height: 100%; }

/* Фокус для клавиатурной навигации */
.btn:focus-visible,
.nav__link:focus-visible,
.lang:focus-visible,
.burger:focus-visible,
.nav__close:focus-visible,
.faq__title:focus-visible,
.footer__link:focus-visible,
.footer__menu-link:focus-visible,
.footer__privacy-link:focus-visible,
.header__logo:focus-visible,
.header__logo a:focus-visible,
.footer__logo:focus-visible,
.language-switcher a:focus-visible,
.breadcrumbs a:focus-visible,
.pagination a:focus-visible,
.card--post a:focus-visible,
.fixed-banner:focus-visible {
  outline: 2px solid var(--c-yellow);
  outline-offset: 2px;
}

.section__title {
  font-size: 36px;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
}

/* Скрытые для глаз, доступные для скринридеров элементы (WP-пагинация и др.) */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   4. Контейнер
   ========================================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   5. Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}

/* .btn--ember — легаси-класс из контента в БД и текущих шаблонов, алиас .btn--cta */
.btn--cta,
.btn--ember {
  background: var(--grad-cta);
  color: var(--c-dark);
  box-shadow: var(--shadow-cta);
}
.btn--cta:hover,
.btn--ember:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,199,0,.45);
  color: var(--c-dark);
}
.btn--cta:active,
.btn--ember:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,.28);
}
.btn--ghost:hover {
  border-color: var(--c-yellow);
  color: var(--c-yellow);
}

.btn--lg {
  font-size: 17px;
  padding: 18px 36px;
}

/* ==========================================================================
   6. Шапка
   ========================================================================== */
.header {
  --header-h: 76px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-dark);
  color: var(--c-white);
  transition: box-shadow .25s ease;
}

.header--stuck {
  --header-h: 64px;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

/* Учёт админ-бара WP для залогиненных */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
}

.header__wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  transition: height .25s ease;
}

.header__logo { flex-shrink: 0; display: inline-flex; align-items: center; }
.header__logo img { height: 40px; width: auto; }

.nav,
.header__nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  padding: 10px 14px;
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover {
  color: var(--c-white);
  background: rgba(255,255,255,.06);
}
.nav__link--active { color: var(--c-yellow); }
.nav__link--active:hover { color: var(--c-yellow); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Совместимость с текущей разметкой шапки (header__nav / header__nav-top):
   меню слева, кнопки справа, бургер в конце */
.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}
.header__nav .header__nav-menu { order: 1; }
.header__nav-top {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 2;
  margin-left: auto;
}
.header__nav .burger { order: 3; }

/* Обычная .btn на тёмной шапке (ссылка «Вхід» без модификатора) */
.header .btn:not(.btn--cta):not(.btn--ember) {
  color: var(--c-white);
  border-color: rgba(255,255,255,.28);
}
.header .btn:not(.btn--cta):not(.btn--ember):hover {
  border-color: var(--c-yellow);
  color: var(--c-yellow);
}

/* Круглая кнопка выбора языка (разметка превью) */
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  background: transparent;
  transition: border-color .2s ease, color .2s ease;
}
.lang:hover { border-color: var(--c-yellow); color: var(--c-yellow); }

/* Переключатель языков Polylang (custom_language_switcher):
   текущий флаг + выпадающий список флагов */
.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.language-switcher .flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.language-switcher .selected-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  cursor: pointer;
  transition: border-color .2s ease;
}
.language-switcher:hover .selected-language,
.language-switcher.open .selected-language { border-color: var(--c-yellow); }

.language-switcher .language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 110;
  margin: 0;
  padding: 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--c-dark-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-btn);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
/* Класс .open вешает JS по клику/тапу (планшеты и тач-устройства) */
.language-switcher:hover .language-menu,
.language-switcher:focus-within .language-menu,
.language-switcher.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.language-switcher .language-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color .2s ease;
}
.language-switcher .language-menu a:hover { border-color: var(--c-yellow); }

/* Бургер */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.burger__line {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-white);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.burger__line:nth-child(1) { top: 14px; }
.burger__line:nth-child(2) { top: 21px; }
.burger__line:nth-child(3) { top: 28px; }

.burger--open .burger__line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger--open .burger__line:nth-child(2) { opacity: 0; }
.burger--open .burger__line:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Крестик закрытия внутри мобильной панели (виден только на мобильных) */
.nav__close { display: none; }

/* ==========================================================================
   7. Секции главной
   ========================================================================== */

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 78% 30%, rgba(255,221,45,.16) 0%, rgba(255,221,45,0) 70%),
    radial-gradient(560px 380px at 15% 90%, rgba(255,199,0,.08) 0%, rgba(255,199,0,0) 70%),
    linear-gradient(160deg, var(--c-dark-3) 0%, var(--c-dark) 55%, var(--c-dark-4) 100%);
  color: var(--c-white);
  padding: 112px 0 96px;
}

/* Едва заметный диагональный узор */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.025) 0,
    rgba(255,255,255,.025) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
}

.hero__wrap {
  position: relative;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
}

.hero__title {
  font-size: 52px;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__text {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255,255,255,.75);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.hero__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: border-color .25s ease, background-color .25s ease;
}
.badge:hover {
  border-color: rgba(255,221,45,.45);
  background: rgba(255,221,45,.06);
}
.badge__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--c-yellow);
}

/* --- Преимущества --- */
.advantages {
  background: var(--c-bg);
  padding: 96px 0;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--grad-cta);
  color: var(--c-dark);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }

.card__title {
  font-size: 19px;
  margin-bottom: 10px;
}

.card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin: 0;
}

/* --- Платёжные системы --- */
.payments {
  background: var(--c-white);
  padding: 96px 0;
}

.pay-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.pay-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 26px;
  border-radius: var(--r-card);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.pay-strip__item:hover {
  transform: translateY(-3px);
  background: var(--c-white);
  border-color: transparent;
  box-shadow: var(--shadow-card);
}

.pay-strip__visa {
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
  color: #1A1F71;
}

.pay-strip__mc-circles {
  position: relative;
  width: 34px;
  height: 22px;
  flex-shrink: 0;
}
.pay-strip__mc-circles::before,
.pay-strip__mc-circles::after {
  content: '';
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.pay-strip__mc-circles::before { left: 0; background: #EB001B; }
.pay-strip__mc-circles::after { right: 0; background: rgba(247,158,27,.9); }

.pay-strip__privat { color: #75B443; font-weight: 700; }
.pay-strip__mono { color: var(--c-text); font-weight: 700; }

.pay-strip__usdt-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #26A17B;
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.pay-strip__pay-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--c-text);
}

/* --- Надёжность (статистика) --- */
.trust {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 360px at 50% 0%, rgba(255,221,45,.07) 0%, rgba(255,221,45,0) 70%),
    var(--c-dark);
  color: var(--c-white);
  padding: 96px 0;
}

.trust .section__title { color: var(--c-white); }

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  background: var(--c-dark-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-card);
  padding: 36px 24px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255,221,45,.35);
}

.stat__number {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--c-yellow);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.stat__label {
  font-size: 15px;
  color: rgba(255,255,255,.6);
}

/* --- FAQ --- */
.section-faq {
  background: var(--c-bg);
  padding: 96px 0;
}

.section-faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FAQ внутри контентной зоны (front-page.php выводит .section-faq
   в .frontpage без собственного контейнера) */
.frontpage .section-faq {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FAQ по старой разметке внутренних шаблонов (index.php, home.php,
   page-default.php, page-bonus.php): .section-faq лежит внутри .container
   без обёртки .section-faq__list — гасим паддинг секции и разводим карточки */
.container .section-faq {
  background: transparent;
  padding: 0;
}
.section-faq > .faq + .faq { margin-top: 12px; }

.faq {
  background: var(--c-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq__heading { margin: 0; }

.faq__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 22px 28px;
  border: 0;
  background: transparent;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}
.faq__title:hover { color: var(--c-yellow-2); }

.faq__chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--c-text-muted);
  transition: transform .3s ease, color .3s ease;
}

.faq--open .faq__chevron {
  transform: rotate(45deg);
  color: var(--c-yellow-2);
}

.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.faq--open .faq__body { grid-template-rows: 1fr; }

.faq__body-inner { overflow: hidden; min-height: 0; }

.faq__text {
  margin: 0;
  padding: 0 28px 24px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--c-text-muted);
}
.faq__text p { margin: 0 0 10px; }
.faq__text p:last-child { margin-bottom: 0; }

/* ==========================================================================
   8. Контент из редактора
   ========================================================================== */

/* Обёртка контента главной (the_content) */
.frontpage {
  padding: 48px 0 80px;
}

/* --- Типографика контентных зон --- */
.frontpage h1,
.text-box h1 {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.frontpage h2, .frontpage h3, .frontpage h4,
.text-box h2, .text-box h3, .text-box h4,
.section-text h2, .section-text h3, .section-text h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.25;
  margin: 32px 0 16px;
}
.frontpage h2, .text-box h2, .section-text h2 { font-size: 28px; }
.frontpage h3, .text-box h3, .section-text h3 { font-size: 22px; }
.frontpage h4, .text-box h4, .section-text h4 { font-size: 18px; }

.frontpage p,
.text-box p,
.section-text p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.frontpage ul, .frontpage ol,
.text-box ul, .text-box ol,
.section-text ul, .section-text ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.frontpage li,
.text-box li,
.section-text li {
  line-height: 1.7;
  margin-bottom: 8px;
}
.frontpage ul li::marker,
.text-box ul li::marker,
.section-text ul li::marker { color: var(--c-yellow-2); }

/* Ссылки в тексте: тёмные с жёлтым подчёркиванием */
.frontpage a:not(.btn):not(.wp-block-button__link),
.text-box a:not(.btn):not(.wp-block-button__link),
.section-text a:not(.btn):not(.wp-block-button__link) {
  color: var(--c-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c-yellow-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background-color .2s ease;
}
.frontpage a:not(.btn):not(.wp-block-button__link):hover,
.text-box a:not(.btn):not(.wp-block-button__link):hover,
.section-text a:not(.btn):not(.wp-block-button__link):hover {
  background: rgba(255,221,45,.3);
}

.frontpage img,
.text-box img,
.section-text img {
  margin: 24px auto;
  border-radius: var(--r-card);
  max-height: 70vh;
  object-fit: contain;
}

.frontpage blockquote,
.text-box blockquote,
.section-text blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--c-white);
  border-left: 4px solid var(--c-yellow);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  box-shadow: var(--shadow-card);
}
.frontpage blockquote p:last-child,
.text-box blockquote p:last-child,
.section-text blockquote p:last-child { margin-bottom: 0; }

/* Таблицы в контенте */
.frontpage table,
.text-box table,
.section-text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.frontpage table td, .frontpage table th,
.text-box table td, .text-box table th,
.section-text table td, .section-text table th {
  padding: 13px 18px;
  border: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.frontpage table tr:nth-child(even),
.text-box table tr:nth-child(even),
.section-text table tr:nth-child(even) { background: var(--c-bg); }
.frontpage table th,
.text-box table th,
.section-text table th {
  background: var(--c-dark);
  color: var(--c-white);
  font-weight: 600;
}

/* --- Заголовок секции (ACF-блок title-block, 404, front-page) --- */
.section-head {
  position: relative;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.25;
  color: var(--c-text);
  margin: 48px 0 20px;
  padding-left: 18px;
}
.section-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-cta);
}
.section-head:first-child { margin-top: 0; }
.section-head h1, .section-head h2, .section-head h3,
.section-head h4, .section-head h5, .section-head h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
}

/* --- Текстовая секция (ACF-блок text-block, 404) — белая карточка --- */
.section-text {
  background: var(--c-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
  margin-bottom: 24px;
  overflow: hidden;
}

/* Вариант «с кнопкой»: ссылки внутри превращаются в CTA */
.section-text--btn a:not(.btn),
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-cta);
  color: var(--c-dark);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 32px;
  border-radius: var(--r-btn);
  box-shadow: var(--shadow-cta);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease;
}
.section-text--btn a:not(.btn):hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,199,0,.45);
  background: var(--grad-cta);
  color: var(--c-dark);
}

/* Вариант «с маркерами»: жёлтые галочки вместо точек */
.section-text--li ul {
  list-style: none;
  padding-left: 0;
}
.section-text--li ul li {
  position: relative;
  padding-left: 32px;
}
.section-text--li ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad-cta);
}
.section-text--li ul li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--c-dark);
  border-bottom: 2px solid var(--c-dark);
  transform: rotate(-45deg);
}

/* --- Плюсы/минусы (ACF-блок adv-block) --- */
.section-goods {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.section-goods__list {
  flex: 1;
  margin: 0;
  padding: 24px 28px 24px 46px;
  border-radius: var(--r-card);
  background: #F0FDF4;
  color: #166534;
  box-shadow: var(--shadow-card);
  line-height: 1.6;
}
.section-goods__list li { margin-bottom: 8px; }
.section-goods__list li::marker { color: #16A34A; }
.section-goods__list--bad {
  background: #FEF2F2;
  color: #991B1B;
}
.section-goods__list--bad li::marker { color: #DC2626; }

/* --- Таблицы-карточки (.section-table зашит в контент в БД,
       чаще всего как figure.wp-block-table.section-table) --- */
.section-table,
.wp-block-table {
  margin: 24px 0;
  background: var(--c-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 8px;
  overflow-x: auto;
}
.section-table table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.section-table table td, .section-table table th,
.wp-block-table table td, .wp-block-table table th {
  padding: 13px 18px;
  border: 1px solid var(--c-line);
  vertical-align: top;
}
.section-table table tr:nth-child(even),
.wp-block-table table tr:nth-child(even) { background: var(--c-bg); }
.section-table table th,
.wp-block-table table th {
  background: var(--c-dark);
  color: var(--c-white);
  font-weight: 600;
  text-align: left;
}
/* Внутри карточки-таблицы границы у самой таблицы, у ячеек — только разделители */
.section-table table tr:first-child td,
.wp-block-table table tr:first-child td { border-top: 0; }
.section-table table tr:last-child td,
.wp-block-table table tr:last-child td { border-bottom: 0; }
.section-table table td:first-child, .section-table table th:first-child,
.wp-block-table table td:first-child, .wp-block-table table th:first-child { border-left: 0; }
.section-table table td:last-child, .section-table table th:last-child,
.wp-block-table table td:last-child, .wp-block-table table th:last-child { border-right: 0; }

/* --- Служебные классы Gutenberg, зашитые в контент --- */
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-text-align-left { text-align: left; }
.aligncenter { margin-left: auto; margin-right: auto; }

.wp-element-caption,
.wp-caption-text {
  font-size: 13.5px;
  color: var(--c-text-muted);
  text-align: center;
  margin-top: 8px;
}

.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: 32px auto;
}

.wp-block-image { margin: 24px 0; }
.wp-block-image img { border-radius: var(--r-card); }

/* Встройки (YouTube и др.) не шире контентной зоны */
.frontpage iframe,
.text-box iframe,
.section-text iframe { max-width: 100%; }
figure.wp-block-embed { margin: 0 0 20px; }

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-button { margin: 0; }

/* Оглавление статьи */
.wp-block-table-of-contents {
  background: var(--c-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 20px 28px;
  margin: 24px 0;
}
.wp-block-table-of-contents ol { margin: 0; padding-left: 20px; }
.wp-block-table-of-contents li { margin-bottom: 6px; }
.wp-block-table-of-contents__entry {
  color: var(--c-text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--c-yellow-2);
  text-underline-offset: 3px;
}
.wp-block-table-of-contents__entry:hover { background: rgba(255,221,45,.3); }

/* ==========================================================================
   9. Внутренние страницы
   ========================================================================== */

/* --- Шапка страницы (тёмная полоса с заголовком) --- */
.page-head {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 300px at 80% 20%, rgba(255,221,45,.12) 0%, rgba(255,221,45,0) 70%),
    linear-gradient(160deg, var(--c-dark-3) 0%, var(--c-dark) 60%, var(--c-dark-4) 100%);
  color: var(--c-white);
  padding: 56px 0;
}
.page-head__title {
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 0;
}
.page-head .breadcrumbs { margin: 0 0 16px; }

/* --- Хлебные крошки --- */
.breadcrumbs {
  margin: 24px 0;
  font-size: 14px;
  color: var(--c-text-muted);
}
.breadcrumbs__wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs__url,
.breadcrumbs__link {
  color: inherit;
  transition: color .2s ease;
}
.breadcrumbs__url:hover,
.breadcrumbs__link:hover { color: var(--c-yellow-2); }
.breadcrumbs__line,
.breadcrumbs__text { margin: 0; }
.breadcrumbs__line { color: var(--c-line); }
.breadcrumbs__text { font-weight: 500; }
/* На тёмной .page-head крошки светлеют */
.page-head .breadcrumbs { color: rgba(255,255,255,.6); }
.page-head .breadcrumbs__url:hover,
.page-head .breadcrumbs__link:hover { color: var(--c-yellow); }
.page-head .breadcrumbs__line { color: rgba(255,255,255,.25); }

/* --- Архив статей --- */
.archive-articles { padding: 48px 0 80px; }
.archive-articles__title {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.archive-articles__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

/* --- Карточка статьи (новая разметка) --- */
.card--post {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.card--post .card__img,
.card--post__img {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}
.card--post .card__img img,
.card--post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card--post:hover .card__img img,
.card--post:hover .card--post__img img { transform: scale(1.04); }
.card--post .card__body,
.card--post__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px 28px;
}
.card--post .card__date,
.card--post__date {
  font-size: 13.5px;
  color: var(--c-text-muted);
  margin-bottom: 10px;
}
.card--post .card__title,
.card--post__title { font-size: 20px; margin-bottom: 10px; }
.card--post .card__title a:hover,
.card--post__title a:hover { color: var(--c-yellow-2); }
.card--post .card__excerpt,
.card--post__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin: 0 0 16px;
}
.card--post .card__more,
.card--post__more {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-yellow-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.card--post .card__more:hover,
.card--post__more:hover { color: var(--c-yellow-2); }

/* --- Карточка статьи (текущая разметка templates/article-temp.php) --- */
.article {
  display: flex;
  gap: 0;
  background: var(--c-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.article__img-box {
  flex: 0 0 320px;
  min-height: 200px;
}
.article__img { display: block; width: 100%; height: 100%; }
.article__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article__text-side {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px;
}
.article__header { margin-bottom: 10px; }
.article__title { font-size: 20px; margin-bottom: 6px; }
.article__title a:hover { color: var(--c-yellow-2); }
.article__date,
.article__read {
  font-size: 13.5px;
  color: var(--c-text-muted);
  margin-right: 12px;
}
.article__description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}
.article__description p { margin: 0; }
.article__link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--c-yellow-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.article__link:hover { color: var(--c-yellow-2); }

/* --- Одиночная статья (single-article.php) --- */
.preview-box {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: var(--c-dark);
  color: var(--c-white);
  overflow: hidden;
}
.preview-box__thumbnail {
  position: absolute;
  inset: 0;
}
.preview-box__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}
.preview-box__wrap {
  position: relative;
  width: 100%;
  padding-top: 96px;
  padding-bottom: 48px;
}
.preview-box__text-box h1 {
  font-size: 40px;
  letter-spacing: -0.02em;
  max-width: 820px;
}

.text-page { padding: 48px 0 80px; }
.text-page__wrap { max-width: 860px; }
.text-box {
  background: var(--c-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 40px 48px;
}
.text-box__thumbnail {
  display: block;
  margin: 0 0 28px;
  border-radius: var(--r-card);
  overflow: hidden;
}
.text-box__thumbnail img { border-radius: 0; margin: 0; }

/* --- Пагинация (the_posts_pagination) --- */
.pagination { margin: 24px 0 0; }
.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-btn);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.pagination a.page-numbers:hover {
  border-color: var(--c-yellow-2);
  transform: translateY(-2px);
}
.pagination .page-numbers.current {
  background: var(--grad-cta);
  border-color: transparent;
  color: var(--c-dark);
  box-shadow: var(--shadow-cta);
}
.pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  color: var(--c-text-muted);
}

/* --- Страница бонусов (page-bonus.php) --- */
.bonus { padding: 48px 0 80px; }
.bonus__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.single-bonus {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  padding: 32px 28px 28px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--c-dark-2);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.single-bonus:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.single-bonus__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Затемнение фоновой картинки для читаемости текста */
.single-bonus::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(21,24,29,.25) 0%, rgba(21,24,29,.72) 100%);
}
.single-bonus__logo,
.single-bonus__text,
.single-bonus__btn {
  position: relative;
  z-index: 2;
}
.single-bonus__logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}
.single-bonus__text {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  color: var(--c-white);
  margin-bottom: 24px;
}
.single-bonus__btn { margin-top: auto; }

@media (max-width: 1024px) {
  .bonus__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bonus__list { grid-template-columns: 1fr; gap: 18px; }
}

/* --- Страница 404 --- */
.err-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 0 96px;
}
.err-404__number {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 140px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-dark);
  background: var(--grad-cta);
  padding: 0 24px;
  border-radius: var(--r-card);
  margin-bottom: 28px;
}
.err-404__title {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
@media (max-width: 480px) {
  .err-404__number { font-size: 96px; }
  .err-404__title { font-size: 24px; }
}

/* ==========================================================================
   10. Подвал и фиксированный баннер
   ========================================================================== */
.footer {
  background: var(--c-dark);
  color: rgba(255,255,255,.65);
  padding: 72px 0 0;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand { max-width: 300px; }
.footer__logo img { height: 36px; width: auto; margin-bottom: 16px; }
.footer__tagline { font-size: 14px; line-height: 1.6; margin: 0; }

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__col-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 18px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  transition: color .2s ease;
}
.footer__link:hover { color: var(--c-yellow); }

.footer__responsible {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 420px;
}

/* Бейдж 18+ (используется и в текущем footer.php внутри .footer__text) */
.footer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  vertical-align: middle;
  border-radius: 50%;
  border: 2px solid var(--c-yellow);
  color: var(--c-yellow);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 15px;
}
/* Компактный вариант в строке копирайта */
.footer__text .footer__age {
  width: 32px;
  height: 32px;
  margin-left: 10px;
  font-size: 12px;
  border-width: 1px;
}

.footer__responsible-text {
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  font-size: 13.5px;
}

.footer__copy { color: rgba(255,255,255,.45); }

/* Совместимость с текущей разметкой подвала (footer__wrap/menu/text) */
.footer__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
}
.footer__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}
.footer__menu-link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: color .2s ease;
}
.footer__menu-link:hover { color: var(--c-yellow); }
.footer__text {
  font-size: 13.5px;
  color: rgba(255,255,255,.45);
  text-align: center;
}
.footer__privacy-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  transition: color .2s ease;
}
.footer__privacy-link:hover { color: var(--c-yellow); }

/* --- Фиксированный баннер (только мобильные) --- */
.fixed-banner { display: none; }

@media (max-width: 768px) {
  .fixed-banner {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--c-dark);
    box-shadow: 0 -8px 24px rgba(0,0,0,.45);
    padding: 10px 16px;
  }
  .fixed-banner__btn {
    display: flex;
    width: 100%;
  }
  /* Баннер не должен перекрывать открытое мобильное меню */
  body.no-scroll .fixed-banner { display: none; }
}

/* ==========================================================================
   11. Адаптив
   ========================================================================== */
@media (max-width: 1024px) {
  .section__title { font-size: 32px; margin-bottom: 40px; }
  .hero { padding: 88px 0 80px; }
  .hero__title { font-size: 44px; }
  .advantages, .payments, .trust, .section-faq { padding: 80px 0; }
  .frontpage .section-faq { padding: 0; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__link { padding: 10px 10px; }

  .preview-box__text-box h1 { font-size: 34px; }
  .page-head__title { font-size: 34px; }
}

@media (max-width: 768px) {
  /* На мобильных высота шапки фиксированная (не сжимается в stuck),
     чтобы панель .nav (top: var(--header-h)) всегда примыкала без щели */
  .header, .header--stuck { --header-h: 64px; }
  .header__wrap { gap: 16px; }
  .header__logo img { height: 34px; }

  .burger { display: block; }

  .header__actions .btn--ghost { display: none; }
  .header__actions .btn--cta { padding: 12px 18px; font-size: 14px; }
  .header__nav-top .btn:not(.btn--cta):not(.btn--ember) { display: none; }
  .header__nav-top .btn--cta,
  .header__nav-top .btn--ember { padding: 12px 18px; font-size: 14px; }

  /* Мобильная выезжающая панель меню: на весь экран, поверх шапки */
  .nav,
  .header__nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px 20px 24px;
    background: var(--c-dark);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
    overflow-y: auto;
  }

  .nav--open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Крестик закрытия: прилипает к верху панели и не пролистывается */
  .nav__close {
    display: block;
    position: sticky;
    top: 0;
    z-index: 2;
    align-self: flex-end;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    cursor: pointer;
  }
  .nav__close::before,
  .nav__close::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 10px;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-white);
  }
  .nav__close::before { transform: rotate(45deg); }
  .nav__close::after { transform: rotate(-45deg); }

  .nav__link {
    font-size: 18px;
    font-weight: 600;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    border-radius: 0;
  }

  /* Переключатель языков внутри мобильной панели: раскрытый список */
  .nav .language-switcher,
  .header__nav-menu .language-switcher {
    margin-top: 16px;
    align-self: flex-start;
  }
  .nav .language-switcher .language-menu,
  .header__nav-menu .language-switcher .language-menu {
    position: static;
    flex-direction: row;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav .language-switcher .selected-language,
  .header__nav-menu .language-switcher .selected-language { display: none; }

  .hero { padding: 64px 0; }
  .hero__title { font-size: 34px; }
  .hero__text { font-size: 17px; margin-bottom: 32px; }
  .hero__actions { flex-direction: column; gap: 12px; margin-bottom: 40px; }
  .hero__actions .btn { width: 100%; max-width: 340px; }

  .section__title { font-size: 28px; margin-bottom: 32px; }
  .advantages, .payments, .trust, .section-faq { padding: 64px 0; }
  .frontpage .section-faq { padding: 0; }

  .stat { padding: 28px 20px; }
  .stat__number { font-size: 32px; }

  .faq__title { padding: 18px 20px; font-size: 16px; }
  .faq__text { padding: 0 20px 20px; }

  /* Контент и внутренние страницы */
  .frontpage { padding: 32px 0 56px; }
  .frontpage h1, .text-box h1 { font-size: 28px; }
  .frontpage h2, .text-box h2, .section-text h2 { font-size: 24px; }
  .frontpage h3, .text-box h3, .section-text h3 { font-size: 19px; }
  .section-text { padding: 24px 20px; }
  .section-goods { flex-direction: column; }

  /* Голые таблицы в контенте (без обёртки .section-table/.wp-block-table):
     прокрутка внутри таблицы вместо растягивания всей страницы */
  .frontpage table,
  .text-box table,
  .section-text table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Длинные слова и URL в контенте не должны распирать контейнер */
  .frontpage, .text-box, .section-text, .faq__text {
    overflow-wrap: break-word;
  }

  .section-table, .wp-block-table { padding: 4px; }
  .section-table table, .wp-block-table table { font-size: 14px; }
  .section-table table td, .section-table table th,
  .wp-block-table table td, .wp-block-table table th { padding: 10px 12px; }

  .page-head { padding: 40px 0; }
  .page-head__title { font-size: 28px; }

  .archive-articles { padding: 32px 0 56px; }
  .archive-articles__title { font-size: 28px; margin-bottom: 28px; }

  .article { flex-direction: column; }
  .article__img-box { flex-basis: auto; }
  .article__img { aspect-ratio: 16 / 9; }

  .preview-box { min-height: 240px; }
  .preview-box__wrap { padding-top: 64px; padding-bottom: 32px; }
  .preview-box__text-box h1 { font-size: 26px; }

  .text-page { padding: 32px 0 56px; }
  .text-box { padding: 28px 20px; }

  .footer { padding-top: 56px; }
  .footer__top { flex-direction: column; gap: 36px; padding-bottom: 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Отступ снизу под фиксированный баннер */
  .footer { padding-bottom: 72px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero__title { font-size: 28px; }
  .hero__badges { gap: 8px; }
  .badge { font-size: 13px; padding: 9px 14px; }

  .advantages__grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; gap: 16px; }

  .section__title { font-size: 24px; }

  .pay-strip { gap: 10px; }
  .pay-strip__item { height: 52px; padding: 0 18px; font-size: 14px; }
  .pay-strip__visa { font-size: 17px; }
  .pay-strip__mc-circles { width: 28px; height: 18px; }
  .pay-strip__mc-circles::before, .pay-strip__mc-circles::after { width: 18px; height: 18px; }

  .section-head { font-size: 20px; }
  .section-table table, .wp-block-table table { font-size: 13px; }
  .section-table table td, .section-table table th,
  .wp-block-table table td, .wp-block-table table th { padding: 8px 8px; }

  .card--post .card__body, .card--post__body { padding: 20px 18px 22px; }
  .article__text-side { padding: 20px 18px; }

  .pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; }

  /* Кнопки из контента (btn--ember и др.) с длинными надписями:
     разрешаем перенос, чтобы не распирали экран */
  .frontpage .btn, .text-box .btn, .section-text .btn, .wp-block-button .btn {
    white-space: normal;
    max-width: 100%;
  }
}

/* Узкие мобильные (320–400px): шапка впритык — ужимаем логотип, кнопку и отступы */
@media (max-width: 400px) {
  .header__wrap { gap: 10px; }
  .header__logo { flex-shrink: 1; min-width: 0; }
  .header__logo img { height: 30px; }
  .header__actions { gap: 8px; }
  .header__actions .btn--cta,
  .header__nav-top .btn--cta,
  .header__nav-top .btn--ember { padding: 11px 14px; font-size: 13px; }
  .burger { width: 40px; }
}

/* ==========================================================================
   Уменьшение анимаций (prefers-reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
:root{--wp--preset--aspect-ratio--square:1;--wp--preset--aspect-ratio--4-3:4/3;--wp--preset--aspect-ratio--3-4:3/4;--wp--preset--aspect-ratio--3-2:3/2;--wp--preset--aspect-ratio--2-3:2/3;--wp--preset--aspect-ratio--16-9:16/9;--wp--preset--aspect-ratio--9-16:9/16;--wp--preset--color--black:#000000;--wp--preset--color--cyan-bluish-gray:#abb8c3;--wp--preset--color--white:#ffffff;--wp--preset--color--pale-pink:#f78da7;--wp--preset--color--vivid-red:#cf2e2e;--wp--preset--color--luminous-vivid-orange:#ff6900;--wp--preset--color--luminous-vivid-amber:#fcb900;--wp--preset--color--light-green-cyan:#7bdcb5;--wp--preset--color--vivid-green-cyan:#00d084;--wp--preset--color--pale-cyan-blue:#8ed1fc;--wp--preset--color--vivid-cyan-blue:#0693e3;--wp--preset--color--vivid-purple:#9b51e0;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple:linear-gradient(135deg,rgb(6,147,227) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan:linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange:linear-gradient(135deg,rgb(252,185,0) 0%,rgb(255,105,0) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red:linear-gradient(135deg,rgb(255,105,0) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray:linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum:linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple:linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux:linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk:linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean:linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass:linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight:linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small:13px;--wp--preset--font-size--medium:20px;--wp--preset--font-size--large:36px;--wp--preset--font-size--x-large:42px;--wp--preset--spacing--20:0.44rem;--wp--preset--spacing--30:0.67rem;--wp--preset--spacing--40:1rem;--wp--preset--spacing--50:1.5rem;--wp--preset--spacing--60:2.25rem;--wp--preset--spacing--70:3.38rem;--wp--preset--spacing--80:5.06rem;--wp--preset--shadow--natural:6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep:12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp:6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined:6px 6px 0px -3px rgb(255, 255, 255), 6px 6px rgb(0, 0, 0);--wp--preset--shadow--crisp:6px 6px 0px rgb(0, 0, 0)}.wp-block-button{--wp--preset--dimension--25:25%;--wp--preset--dimension--50:50%;--wp--preset--dimension--75:75%;--wp--preset--dimension--100:100%}:where(body){margin:0}:where(.is-layout-flex){gap:.5em}:where(.is-layout-grid){gap:.5em}body .is-layout-flex{display:flex}.is-layout-flex{flex-wrap:wrap;align-items:center}.is-layout-flex>:is(*,div){margin:0}body .is-layout-grid{display:grid}.is-layout-grid>:is(*,div){margin:0}body{padding-top:0;padding-right:0;padding-bottom:0;padding-left:0}:root :where(.wp-element-button,.wp-block-button__link){background-color:#32373c;border-width:0;color:#fff;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;padding-top:calc(0.667em + 2px);padding-right:calc(1.333em + 2px);padding-bottom:calc(0.667em + 2px);padding-left:calc(1.333em + 2px);text-decoration:none;text-transform:inherit}.has-black-color{color:var(--wp--preset--color--black)!important}.has-cyan-bluish-gray-color{color:var(--wp--preset--color--cyan-bluish-gray)!important}.has-white-color{color:var(--wp--preset--color--white)!important}.has-pale-pink-color{color:var(--wp--preset--color--pale-pink)!important}.has-vivid-red-color{color:var(--wp--preset--color--vivid-red)!important}.has-luminous-vivid-orange-color{color:var(--wp--preset--color--luminous-vivid-orange)!important}.has-luminous-vivid-amber-color{color:var(--wp--preset--color--luminous-vivid-amber)!important}.has-light-green-cyan-color{color:var(--wp--preset--color--light-green-cyan)!important}.has-vivid-green-cyan-color{color:var(--wp--preset--color--vivid-green-cyan)!important}.has-pale-cyan-blue-color{color:var(--wp--preset--color--pale-cyan-blue)!important}.has-vivid-cyan-blue-color{color:var(--wp--preset--color--vivid-cyan-blue)!important}.has-vivid-purple-color{color:var(--wp--preset--color--vivid-purple)!important}.has-black-background-color{background-color:var(--wp--preset--color--black)!important}.has-cyan-bluish-gray-background-color{background-color:var(--wp--preset--color--cyan-bluish-gray)!important}.has-white-background-color{background-color:var(--wp--preset--color--white)!important}.has-pale-pink-background-color{background-color:var(--wp--preset--color--pale-pink)!important}.has-vivid-red-background-color{background-color:var(--wp--preset--color--vivid-red)!important}.has-luminous-vivid-orange-background-color{background-color:var(--wp--preset--color--luminous-vivid-orange)!important}.has-luminous-vivid-amber-background-color{background-color:var(--wp--preset--color--luminous-vivid-amber)!important}.has-light-green-cyan-background-color{background-color:var(--wp--preset--color--light-green-cyan)!important}.has-vivid-green-cyan-background-color{background-color:var(--wp--preset--color--vivid-green-cyan)!important}.has-pale-cyan-blue-background-color{background-color:var(--wp--preset--color--pale-cyan-blue)!important}.has-vivid-cyan-blue-background-color{background-color:var(--wp--preset--color--vivid-cyan-blue)!important}.has-vivid-purple-background-color{background-color:var(--wp--preset--color--vivid-purple)!important}.has-black-border-color{border-color:var(--wp--preset--color--black)!important}.has-cyan-bluish-gray-border-color{border-color:var(--wp--preset--color--cyan-bluish-gray)!important}.has-white-border-color{border-color:var(--wp--preset--color--white)!important}.has-pale-pink-border-color{border-color:var(--wp--preset--color--pale-pink)!important}.has-vivid-red-border-color{border-color:var(--wp--preset--color--vivid-red)!important}.has-luminous-vivid-orange-border-color{border-color:var(--wp--preset--color--luminous-vivid-orange)!important}.has-luminous-vivid-amber-border-color{border-color:var(--wp--preset--color--luminous-vivid-amber)!important}.has-light-green-cyan-border-color{border-color:var(--wp--preset--color--light-green-cyan)!important}.has-vivid-green-cyan-border-color{border-color:var(--wp--preset--color--vivid-green-cyan)!important}.has-pale-cyan-blue-border-color{border-color:var(--wp--preset--color--pale-cyan-blue)!important}.has-vivid-cyan-blue-border-color{border-color:var(--wp--preset--color--vivid-cyan-blue)!important}.has-vivid-purple-border-color{border-color:var(--wp--preset--color--vivid-purple)!important}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple)!important}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan)!important}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange)!important}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background:var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red)!important}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray)!important}.has-cool-to-warm-spectrum-gradient-background{background:var(--wp--preset--gradient--cool-to-warm-spectrum)!important}.has-blush-light-purple-gradient-background{background:var(--wp--preset--gradient--blush-light-purple)!important}.has-blush-bordeaux-gradient-background{background:var(--wp--preset--gradient--blush-bordeaux)!important}.has-luminous-dusk-gradient-background{background:var(--wp--preset--gradient--luminous-dusk)!important}.has-pale-ocean-gradient-background{background:var(--wp--preset--gradient--pale-ocean)!important}.has-electric-grass-gradient-background{background:var(--wp--preset--gradient--electric-grass)!important}.has-midnight-gradient-background{background:var(--wp--preset--gradient--midnight)!important}.has-small-font-size{font-size:var(--wp--preset--font-size--small)!important}.has-medium-font-size{font-size:var(--wp--preset--font-size--medium)!important}.has-large-font-size{font-size:var(--wp--preset--font-size--large)!important}.has-x-large-font-size{font-size:var(--wp--preset--font-size--x-large)!important}