/* VIABUY theme — один файл стилів.
   1. Токени й база  2. Хедер/футер сайту  3. Секції архівних сторінок  4. Казино-розділ  5. Адаптив */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url(../fonts/open-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url(../fonts/open-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --yellow: #f9b31d;
  --yellow-600: #d99800;
  --yellow-100: #fdedc4;
  --yellow-50: #fff8e6;
  --gold: #c9a23a;
  --ink: #262a30;
  --ink-2: #3b4048;
  --muted: #646b75;
  --line: #e4e6ea;
  --soft: #f5f6f7;
  --dark: #2e353b;
  --dark-2: #22272c;
  --green: #1d8a57;
  --green-50: #e9f6ef;
  --red: #c0412d;
  --red-50: #fcecea;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 24, 30, .05), 0 8px 24px rgba(20, 24, 30, .06);
  --wrap: 1200px;
  --gutter: 24px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink); background: #fff; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

/* Кнопки, чипи */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: var(--radius-sm);
  background: var(--dark); color: var(--yellow); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; font-size: 15px; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--dark-2); color: var(--yellow); }
.btn--cta { background: var(--yellow); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 16px; white-space: nowrap; }
.btn--cta:hover { background: var(--yellow-600); color: var(--ink); }
.btn--cta .icon { width: 18px; height: 18px; }
.btn--lg { min-height: 54px; padding-inline: 30px; font-size: 17px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
a.chip:hover { border-color: var(--yellow); background: var(--yellow-50); }
.chip--sample { padding: 1px 8px; font-size: 11px; border-color: #f0c2bb; background: var(--red-50); color: var(--red); vertical-align: middle; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid currentColor; font-size: 12px; font-weight: 800; flex: none; }
.age--lg { width: 56px; height: 56px; font-size: 18px; border-width: 3px; color: var(--red); }

/* Текст */
.prose { overflow-wrap: break-word; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--yellow-600); }
.prose a { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-weight: 700; }
.prose blockquote { margin: 0 0 1em; padding: 4px 0 4px 18px; border-left: 4px solid var(--yellow); color: var(--ink-2); }
.prose img { border-radius: 10px; }
.legal h2 { font-size: 22px; }
.legal { font-size: 16px; }

/* Хлібні крихти */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: #b3b8bf; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--yellow-600); text-decoration: underline; text-decoration-color: currentColor; }

/* Перемикач мов */
.langs { position: relative; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { background: var(--soft); }
.langs summary .icon { width: 18px; height: 18px; }
.langs summary .icon--sm { width: 14px; height: 14px; transition: transform .15s; }
.langs[open] summary .icon--sm { transform: rotate(180deg); }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 180px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.langs--up ul { top: auto; bottom: calc(100% + 6px); }
.langs li a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.langs li a:hover { background: var(--soft); }
.langs li a[aria-current] { font-weight: 700; background: var(--yellow-50); }

/* Логотип: словесний знак */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__word { font-weight: 800; font-size: 26px; letter-spacing: .06em; color: var(--gold); line-height: 1; }
.logo__img { max-height: 40px; width: auto; }
.logo__suffix { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--yellow); }

/* Бургер */
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--radius-sm); cursor: pointer; place-items: center; }
.burger:hover { background: var(--soft); }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* ---------- 2. Хедер / футер сайту ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; gap: 16px; }
.site-header .logo { justify-self: center; }
.site-header__end { justify-self: end; display: flex; align-items: center; gap: 4px; }
.site-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none; font-size: 15px; color: var(--ink-2); }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { background: var(--soft); color: var(--ink); }

.site-footer { background: var(--dark); color: #d6d9de; padding: 48px 0 24px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.site-footer__note { margin-top: 16px; max-width: 560px; color: #aab0b8; font-size: 14px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.site-footer__list li { margin-bottom: 8px; break-inside: avoid; }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #9aa1aa; }
.site-footer .langs summary, .cx-footer .langs summary { color: #d6d9de; }
.site-footer .langs summary:hover, .cx-footer .langs summary:hover { background: rgba(255, 255, 255, .08); }
.site-footer .langs ul, .cx-footer .langs ul { color: var(--ink); }

/* Плашка архіву */
.archive-bar { background: var(--yellow-50); border-bottom: 1px solid var(--yellow-100); font-size: 15px; line-height: 1.6; }
.archive-bar__inner { display: flex; gap: 12px; align-items: flex-start; padding-block: 14px; }
.archive-bar p { margin: 0; }
.archive-bar__ico { color: var(--yellow-600); margin-top: 1px; }

/* ---------- 3. Секції архівних сторінок ---------- */
.page-head { padding: 48px 0 8px; }
.page-head__title { font-size: clamp(30px, 4vw, 44px); font-weight: 500; }
.section { padding: 64px 0; }
.section--tight { padding: 28px 0 56px; }
.section--grey { background: var(--soft); }
.section--yellow { background: var(--yellow); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .checks__ico { color: var(--yellow); }
.section__title { font-size: clamp(26px, 3vw, 36px); font-weight: 500; }
.section__title--center { text-align: center; }
.section__intro { text-align: center; max-width: 680px; margin: -4px auto 32px; color: var(--muted); }

.hero { padding: 56px 0 64px; background: var(--soft); overflow: hidden; }
.hero--yellow { background: var(--yellow); }
.hero--dark { background: var(--dark); color: #fff; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero__grid--solo { grid-template-columns: 1fr; max-width: 860px; }
.hero__title { font-size: clamp(32px, 4.6vw, 54px); font-weight: 500; line-height: 1.18; margin-bottom: 18px; }
.hero__hl { display: block; color: var(--yellow-600); }
.hero--yellow .hero__hl { color: var(--ink); }
.hero--dark .hero__hl { color: var(--yellow); }
.hero__lead { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.hero--dark .hero__lead { color: #d6d9de; }
.hero__media img { margin-inline: auto; max-height: 460px; width: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--left .split__media { order: -1; }
.split--solo { grid-template-columns: 1fr; max-width: 860px; }
.split__media img { margin-inline: auto; max-height: 520px; width: auto; border-radius: 12px; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks__ico { color: var(--yellow-600); margin-top: 3px; }
.section--yellow .checks__ico { color: var(--ink); }

.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section--white .card { background: var(--soft); border-color: transparent; }
.section--dark .card { background: var(--dark-2); border-color: transparent; }
.card__ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--yellow-50); color: var(--yellow-600); margin-bottom: 16px; }
.section--yellow .card__ico { background: var(--yellow-100); color: var(--ink); }
.card__img img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; }
.card__title { font-size: 19px; }
.card__text { font-size: 16px; color: var(--ink-2); }
.section--dark .card__text { color: #c9cdd3; }
.card__text p:last-child { margin-bottom: 0; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pricebox { background: var(--soft); border-radius: var(--radius); padding: 28px; }
.pricebox__h { font-size: 18px; margin: 22px 0 8px; }
.pricebox__h:first-child { margin-top: 0; }
.pricebox__list { margin: 0; }
.pricebox__row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 15px; }
.pricebox__row dt { color: var(--ink-2); flex: 0 1 auto; }
.pricebox__row dd { margin: 0 0 0 auto; font-weight: 700; white-space: nowrap; text-align: right; }
.pricebox__row::after { content: ""; order: 1; flex: 1 1 24px; border-bottom: 1px dashed #c9cdd3; transform: translateY(-4px); }
.pricebox__row dd { order: 2; }
.pricebox__note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

.qnotice { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qnotice__label { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--soft); font-size: 14px; font-weight: 700; color: var(--muted); }
.qnotice__label .icon { color: var(--yellow-600); }
.qnotice__body { margin: 0; padding: 24px 28px; border-left: 4px solid var(--yellow); }
.qnotice__title { font-size: 24px; font-weight: 500; }

.figure { margin: 0 auto; }
.figure img { border-radius: 12px; margin-inline: auto; }
.figure figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }

.linkcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.linkcard { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.linkcard:hover { border-color: var(--yellow); box-shadow: var(--shadow); color: var(--ink); }
.linkcard__title { font-weight: 700; font-size: 17px; line-height: 1.35; }
.linkcard__text { font-size: 15px; color: var(--muted); line-height: 1.55; }
.linkcard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--yellow-600); }

/* FAQ (спільний) */
.faq__title { font-size: clamp(26px, 3vw, 34px); }
.faq__list { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; font-weight: 700; line-height: 1.45; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ico { transition: transform .15s; color: var(--yellow-600); }
.faq__item[open] .faq__ico { transform: rotate(180deg); }
.faq__item[open] { border-color: var(--yellow-100); box-shadow: var(--shadow); }
.faq__a { padding: 0 20px 18px; color: var(--ink-2); font-size: 16px; }

.notfound { text-align: center; }
.notfound__code { font-size: 96px; font-weight: 800; color: var(--yellow); line-height: 1; margin-bottom: 8px; }
.notfound__title { font-size: 34px; }
.post-list { padding-left: 1.2em; }

/* ---------- 5. Адаптив ---------- */
@media (max-width: 1080px) {
}

/* Карта сайту (templates/sitemap.php): казино-розділ ліворуч, VIABUY і «Про нас» праворуч, мови внизу */
.sitemap { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.sitemap__group { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: #fff; }
.sitemap__group--casino { grid-row: span 2; }
.sitemap__group--langs { grid-column: 1 / -1; background: var(--soft); border-color: transparent; }
.sitemap__title { font-size: 20px; font-weight: 600; margin: 0 0 10px; padding-left: 12px; border-left: 4px solid var(--yellow); line-height: 1.25; }
.sitemap__list { list-style: none; margin: 0; padding: 0; }
.sitemap__list li + li { border-top: 1px solid var(--soft); }
.sitemap__list a { display: block; padding: 8px 0; text-decoration: none; font-size: 16px; line-height: 1.45; }
.sitemap__list a:hover { color: var(--yellow-600); }
.sitemap__main { font-weight: 700; }
.sitemap__list--sub { margin: 0 0 10px 2px; padding-left: 16px; border-left: 2px solid var(--yellow-100); }
.sitemap__list--sub li + li { border-top: 0; }
.sitemap__list--sub a { padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.sitemap__langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sitemap__intro { color: var(--muted); max-width: 720px; }
.sitemap__intro p { margin: 0; }

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .site-header__bar { grid-template-columns: auto 1fr; min-height: 62px; }
  .site-header .logo { justify-self: start; order: -1; }
  .site-header__spacer { display: none; }
  .burger { display: inline-grid; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 24, 30, .08); padding: 10px var(--gutter) 18px; max-height: calc(100vh - 62px); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .site-nav__list a { padding: 12px 6px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--soft); width: 100%; }
  .logo__word { font-size: 22px; }
  .site-footer__bottom .langs, .cx-footer__bottom .langs { display: none; }
  .hero__grid, .split, .pricing { grid-template-columns: 1fr; gap: 28px; }
  .split--left .split__media { order: 0; }
  .hero { padding: 36px 0 44px; }
  .section { padding: 48px 0; }
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .linkcards { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid, .cx-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .sitemap { grid-template-columns: 1fr; gap: 16px; }
  .sitemap__group--casino { grid-row: auto; }
  .sitemap__group { padding: 18px 18px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .cards--2, .cards--3, .cards--4, .linkcards { grid-template-columns: 1fr; }
  .pricebox { padding: 20px; }
  .qnotice__body { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
