/*!
Theme Name: vipluck-theme
Author: —
Version: 1.0.5
*/

:root {
  --primary: #22375f;        /* глубокий тёмно-синий — логотип, заголовки, ссылки */
  --primary-2: #2f4a7a;
  --accent: #5a68b8;         /* индиго — акценты вместо оранжевого */
  --dark: #1c2e50;           /* тёмно-синие секции */
  --dark2: #26406e;
  --bg: #ede6d8;             /* тёплый кремовый фон страницы */
  --surface: #faf6ee;        /* карточки / светлые секции */
  --line: #dcd2bf;           /* тёплая граница */
  --text: #33415c;           /* синевато-серый текст */
  --muted: #8b8676;          /* тёплый серый */
  --radius: 10px;
  --shadow: 0 10px 30px -16px rgba(26,44,77,.35);
  /* переменные, на которые опираются блоки постпроцесса конвейера
     (оценка, содержание, sparkline-полосы, таблицы сравнения) */
  --wp--preset--color--primary: #5a68b8;
  --wp--preset--color--contrast: #22375f;
  --wp--preset--font-family--heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-weight: 800; letter-spacing: 0; color: var(--primary); }
h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin: 0 0 12px; }
h2 { font-size: clamp(24px, 2.7vw, 32px); margin: 0 0 16px; }
h3 { font-size: 19px; margin: 0 0 8px; }
a { color: var(--primary); text-decoration: none; }
p { margin: 0 0 12px; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER: светлый кремовый, тёмно-синий текст (как на официальном сайте) */
.site-header { background: #f4eee1; color: var(--text); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(26,44,77,.5); }
.top-strip { display: none; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 24px; }
.brand a { display: flex; align-items: center; gap: 10px; color: var(--primary); font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
/* логотип-картинка — это тот же wordmark «VipLuck», что и текст рядом: показываем
   только текст, иначе двоится */
.brand img { display: none; }
.site-nav { display: flex; gap: 20px; align-items: center; }
.site-nav a { color: var(--primary); padding: 6px 2px; border-radius: 6px; font-weight: 600; opacity: .82; font-size: 13px; white-space: nowrap; }
/* выше специфичность, чем у CSS постпроцесса (`.site-nav a`), — иначе он
   срезает горизонтальные отступы и пункты слипаются */
.site-header .site-nav a { padding: 6px 2px; font-size: 13px; }
.site-nav a:hover { background: rgba(26,44,77,.06); opacity: 1; }
/* На десктопе скрипт постпроцесса клонирует кнопку «Einloggen» в меню —
   в шапке она уже есть справа, поэтому дубль в меню прячем (на мобиле он
   остаётся единственным входом в выпадашке — там нужен). */
@media (min-width: 1101px) { .site-nav .cta-btn { display: none; } }
.header-cta { display: flex; gap: 8px; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 13px;
  background: linear-gradient(180deg, #7b88cf 0%, #4a57a0 100%);
  color: #fff; border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  text-transform: uppercase; letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -8px rgba(58,72,150,.55);
  transition: transform .1s ease, filter .15s ease;
}
.cta-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.cta-btn.big { padding: 15px 30px; font-size: 15px; border-radius: 12px; }
.cta-btn.ghost {
  background: transparent; color: var(--primary);
  border: 1.5px solid rgba(34,55,95,.45); box-shadow: none;
}
.cta-btn.ghost:hover { background: rgba(34,55,95,.06); filter: none; transform: translateY(-1px); }
/* ghost-кнопки на тёмном фоне (hero, тёмные секции) — светлые */
.hero .cta-btn.ghost, section.dark .cta-btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .cta-btn.ghost:hover, section.dark .cta-btn.ghost:hover { background: rgba(255,255,255,.12); }
.burger { display: none; background: none; border: 0; color: var(--primary); font-size: 22px; cursor: pointer; padding: 6px 10px; }

/* HERO: тёмно-синий градиент, светлый текст */
.hero {
  position: relative;
  min-height: 480px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2c4d 0%, #2c4372 90%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,32,58,.55) 0%, rgba(20,32,58,.88) 100%);
  z-index: 1;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  filter: saturate(1.05);
  opacity: .5;
}
.hero .container { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { color: #fff; max-width: 720px; }
.hero .kicker { display: inline-block; padding: 5px 12px; background: rgba(122,136,207,.18); color: #c8cff2; border: 1px solid rgba(122,136,207,.5); border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
/* color обязателен: базовое правило `section .lead{color:var(--muted)}` иначе
   красит подзаголовок героя в тусклый серый на тёмном фоне */
.hero .lead { max-width: 620px; font-size: 17px; color: rgba(255,255,255,.92); opacity: 1; margin-bottom: 22px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* PROMO WIDGET — таймер + промокод */
.promo-widget {
  background: linear-gradient(135deg, #243a63 0%, #2d4a7d 100%);
  color: #fff;
  border-radius: 14px; padding: 22px;
  box-shadow: var(--shadow);
  max-width: 460px;
  border: 1px solid rgba(255,255,255,.2);
}
.promo-widget .row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
/* wordmark в виджете тёмный — на синем фоне осветляем */
.promo-widget .brand-mini, .promo-widget img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .55; }
.promo-widget .timer {
  font-family: monospace; background: rgba(122,136,207,.2); color: #c8cff2;
  padding: 5px 10px; border-radius: 6px; font-weight: 900; font-size: 15px; letter-spacing: .06em;
}
.promo-widget h3 { color: #fff; font-size: 17px; margin: 6px 0 12px; }
.code-box { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); padding: 10px; border-radius: 8px; border: 1px dashed rgba(255,255,255,.25); margin-bottom: 12px; }
.code-box code { flex: 1; font-family: monospace; font-size: 15px; font-weight: 700; color: #c8cff2; letter-spacing: .06em; }
.copy-btn { background: rgba(255,255,255,.14); color: #fff; border: 0; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 11px; text-transform: uppercase; }
.promo-widget .note { font-size: 11px; opacity: .55; margin-top: 8px; }

/* SECTIONS — чередование фонов */
section { padding: 48px 0; }
section.alt { background: var(--surface); }
section.dark { background: var(--dark); color: #e6eaf4; }
section.dark h2, section.dark h3 { color: #fff; }
section .lead { max-width: 780px; margin: 0 auto 32px; text-align: center; color: var(--muted); }
section.dark .lead { color: rgba(255,255,255,.72); }

.section-head { text-align: center; margin-bottom: 32px; }
.section-head .eyebrow { display: inline-block; padding: 4px 12px; background: rgba(34,55,95,.08); color: var(--primary); border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
section.dark .section-head .eyebrow { background: rgba(122,136,207,.2); color: #c8cff2; }

/* BONUS CARDS — с крупной цифрой в углу */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.bonus-card {
  position: relative;
  background: #fff; border-radius: 14px; padding: 24px 20px 20px;
  box-shadow: 0 2px 12px rgba(26,44,77,.07);
  border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  overflow: hidden;
}
.bonus-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px -12px rgba(34,55,95,.28); }
.bonus-card .num { display: none; }
.bonus-card .badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: #fff; margin-bottom: 12px; }
.bonus-card h3 { font-size: 22px; margin: 0 0 6px; }
.bonus-card .amount {
  font-family: 'Playfair Display', serif; font-weight: 900;
  color: var(--primary); font-size: 30px; line-height: 1;
  padding: 4px 10px; background: rgba(34,55,95,.08); border-radius: 6px;
  display: inline-block; margin: 6px 0 12px;
}
.bonus-card ul { list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; }
.bonus-card ul li { padding: 5px 0; display: flex; gap: 8px; color: var(--muted); }
.bonus-card ul li::before { content: "✓"; color: var(--accent); font-weight: 900; }

/* SLOT GRID */
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.slot-card {
  position: relative;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(26,44,77,.09);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.slot-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px -10px rgba(26,44,77,.28); }
.slot-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #f2efe7; }
.slot-card .body { padding: 12px 14px 14px; }
.slot-card h4 { font-size: 14px; font-weight: 800; margin: 0 0 3px; letter-spacing: -.01em; }
.slot-card .provider { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.slot-card .play { display: block; margin-top: 10px; padding: 8px 0; text-align: center; background: linear-gradient(180deg, #7b88cf 0%, #4a57a0 100%); color: #fff; font-weight: 800; border-radius: 8px; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }

/* REVIEW CARDS */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: #fff; padding: 22px; border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(26,44,77,.06);
}
.review-card .stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.review-card p { font-size: 13px; margin: 0 0 12px; color: var(--text); font-style: italic; }
.review-card .who { font-size: 12px; color: var(--muted); font-weight: 700; }

/* PAYMENTS */
.payments { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: center; align-items: center; padding: 24px 26px; background: #fff; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(26,44,77,.06); }
.payments img { height: 30px; width: auto; opacity: 1; }
.pay-badge { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 60px; padding: 0 12px; background: #fff; border: 1px solid #e7e0d0; border-radius: 8px; box-shadow: 0 1px 2px rgba(26,44,77,.06); }
.pay-badge img { height: 22px; width: auto; display: block; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; border: 1px solid var(--line); }
.faq summary { font-weight: 800; font-size: 14px; cursor: pointer; list-style: none; padding: 4px 0; color: var(--text); }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 20px; font-weight: 900; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { box-shadow: var(--shadow); }
.faq p { font-size: 13px; margin-top: 10px; color: var(--muted); }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: #fff; padding: 24px 22px 20px;
  border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(26,44,77,.06);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; right: -10px;
  font-family: 'Playfair Display', serif; font-weight: 900; font-size: 84px;
  line-height: 1; color: rgba(90,104,184,.18); pointer-events: none;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }

/* WIKI TEXT */
.wiki { max-width: 780px; margin: 0 auto; }
.wiki h2 { margin-top: 32px; }
.wiki p { font-size: 15px; line-height: 1.65; color: #3b475e; }
.wiki ul, .wiki ol { font-size: 15px; line-height: 1.65; color: #3b475e; margin: 0 0 16px 20px; }
.wiki table, table.wiki { width: 100%; border-collapse: collapse; margin: 20px 0; }
.wiki th, .wiki td, table.wiki th, table.wiki td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.wiki th, table.wiki th { background: rgba(34,55,95,.05); font-weight: 800; }

/* APP SECTION */
.app-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.app-block .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.app-block .spec { background: rgba(255,255,255,.06); padding: 14px; border-radius: 10px; }
.app-block .spec b { display: block; font-size: 20px; color: #c8cff2; font-family: 'Playfair Display', serif; }
.app-block .spec span { font-size: 12px; opacity: .7; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #2c4372 0%, #3a5490 100%);
  color: #fff; border-radius: 16px; padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-banner h2 { margin: 0; color: #fff; }
.cta-banner .amount-strong { background: rgba(122,136,207,.28); padding: 2px 10px; border-radius: 6px; color: #c8cff2; }

/* FOOTER: 4 колонки, лого + платёжные иконки */
.site-footer { background: #1a2c4d; color: rgba(255,255,255,.7); padding: 42px 0 22px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
/* wordmark тёмный — на тёмном футере инвертируем в белый */
.footer-brand img { height: 30px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: .85; }
.footer-brand p { font-size: 12px; opacity: .6; max-width: 260px; }
.footer-brand .logos { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.footer-brand .logos img { height: 26px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer ul a { color: rgba(255,255,255,.65); font-size: 13px; }
.site-footer ul a:hover { color: #fff; }
.footer-payments { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-payments .pay-badge { height: 36px; min-width: 54px; padding: 0 11px; background: #fff; border-color: transparent; }
.footer-payments .pay-badge img { height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; opacity: .5; margin-top: 20px; flex-wrap: wrap; gap: 10px; }

/* ── Блоки, которые дорисовывает конвейер при выкладке ──────────────── */
/* Таблицы сравнения в теле статьи: у постпроцесса рамка белая (невидима на
   кремовом) — перекрываем на тёмную. */
.table-wrap td, .table-wrap th { border: 1px solid rgba(34,55,95,.16) !important; }
.table-wrap th { background: rgba(34,55,95,.05); font-weight: 800; }
.table-wrap { border-radius: 10px; }
/* Статья завода */
.article-body { color: #3b475e; }
.article-body h2, .article-body h3 { color: var(--primary); }
.article-body a { color: var(--accent); }

/* ── Планшет: прячем строчное меню и кнопки шапки, включаем бургер ─────
   Порог 1100 совпадает с CSS постпроцесса (#hd-unit), который на этой ширине
   показывает бургер. `!important` на сетках — потому что в разметке у .steps и
   .promo-widget стоят инлайновые grid-template-columns, которые иначе
   не дают колонкам схлопнуться на телефоне. */
@media (max-width: 1100px) {
  .header-cta { display: none; }
  .burger { display: inline-flex; }
  .header-main { position: relative; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #f4eee1; border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px 20px; box-shadow: var(--shadow); z-index: 30;
  }
  /* открывают меню оба скрипта: наш (inline display:flex) и постпроцесса
     (.site-header.sx-slab) — поддерживаем оба */
  .site-header.sx-slab .site-nav { display: flex; }
  .site-nav a, .site-header .site-nav a { display: block; width: 100%; padding: 13px 4px; font-size: 15px; border-bottom: 1px solid var(--line); opacity: 1; }
  .site-nav a:last-child { border-bottom: 0; }
  /* скрипт постпроцесса клонирует кнопку «Einloggen» в конец меню —
     в выпадашке она должна быть обычным пунктом, а не кнопкой-пилюлей */
  .site-nav .cta-btn, .site-nav .cta-btn.ghost {
    background: none; border: 0; border-bottom: 1px solid var(--line);
    border-radius: 0; box-shadow: none; color: var(--primary);
    text-transform: none; letter-spacing: 0; font-weight: 600;
    justify-content: flex-start; padding: 13px 4px; width: 100%;
  }
}
@media (max-width: 900px) {
  .bonus-grid, .slot-grid, .reviews, .steps { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-block { grid-template-columns: 1fr; }
  .hero { min-height: 380px; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 860px) {
  /* широкие таблицы данных (в т.ч. table.wiki с инлайновым overflow:hidden) —
     скроллим внутри своей ширины, а не растягиваем страницу */
  .wiki table, table.wiki, .table-wrap table {
    display: block; overflow-x: auto !important; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; border-radius: 10px;
  }
  .wiki table td, .wiki table th, table.wiki td, table.wiki th { white-space: nowrap; }
}
@media (max-width: 720px) {
  /* оффер-виджет: в разметке инлайновый grid `auto 1fr auto` — на телефоне
     в одну колонку */
  .promo-widget { grid-template-columns: 1fr !important; text-align: center; gap: 14px !important; }
  .promo-widget > * { justify-self: center; }
  .promo-widget .cta-btn, .promo-widget .cta-btn.big { width: 100%; }
  .promo-widget .code-box { flex-wrap: wrap; }
  .promo-widget [style*="display:flex"] { justify-content: center; }
}
@media (max-width: 560px) {
  .bonus-grid, .slot-grid, .reviews, .steps { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 24px; flex-direction: column; text-align: center; }
  .container { padding: 0 14px; }
  section { padding: 32px 0; }
  h1 { font-size: 26px; }
  .hero .lead { font-size: 15px; }
}

/* лишняя кнопка первого экрана, которую всегда добавляет конвейер (ensure_hero_cta) —
   собственные кнопки шаблона (.hero-actions) остаются на месте на каждой странице */
.hero-btns { display: none !important; }
