/* ============================================================
   [GE] Online Casino Georgia — визуальный язык
   ------------------------------------------------------------
   Сознательная развилка от azerbaycankazinolari.com (петролевый,
   геометрия 3px, Manrope) и от остальной сети (золото/беж, зелёный/
   коралл, жёлтый/розовый, фиолетовый — см. _DIVERGENCE в 06-AZ-BUILD-PLAN.md).
   Здесь: тёплый пергамент, кобальтовый акцент, МЯГКАЯ геометрия (12-16px),
   серифный заголовок (Noto Serif Georgian — читаемый грузинский шрифт,
   единственный сериф в сети). Разметка компонентов (topbar/optable/btn)
   структурно похожа на AZ намеренно — это проверенный паттерн верстки,
   а не копия витрины: токены, радиусы и типографика другие.
   ============================================================ */

:root {
  --paper: #faf6ef;
  --paper-2: #ffffff;
  --paper-3: #f0e9db;
  --ink: #201b2e;
  --ink-2: #453f57;
  --ink-3: #635c76;
  --line: #e2d9c4;
  --line-2: #ece5d4;

  --accent: #1f4e8c;       /* кобальт — не использовался в сети */
  --accent-hover: #173c6c;
  --accent-soft: #e6edf8;
  --accent-line: #bcd0ec;

  --hot: #a1332b;
  --hot-soft: #f7e6e2;
  --gold: #a9782a;

  --r: 12px;                /* мягкая геометрия вместо острой AZ-геометрии */
  --r-lg: 18px;
  --maxw: 1200px;
  --font-head: "Noto Serif Georgian", "Noto Serif", Georgia, serif;
  --font-body: "Noto Sans Georgian", "Noto Sans", system-ui, -apple-system, sans-serif;
}

html[lang="ru"] {
  --font-head: "Noto Serif", Georgia, serif;
  --font-body: "Noto Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.64;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- шапка ---------- */
.topbar { background: var(--ink); color: #d8d3e4; font-size: 12.5px; letter-spacing: .01em; }
.topbar__row { display: flex; align-items: center; gap: 14px; min-height: 34px; flex-wrap: wrap; padding: 4px 0; }
.topbar__legal { flex: 1; min-width: 220px; }
.topbar .age { color: #fff; border: 1px solid #5c5570; padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.topbar__lang { flex-shrink: 0; white-space: nowrap; }
.topbar__lang a { color: #d8d3e4; }
.topbar__lang a[aria-current="page"] { color: #fff; font-weight: 700; }
.topbar__lang a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 70;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-head); }
.brand__name { font-weight: 700; font-size: 20px; }
.brand__sub { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-body); }

.nav-toggle {
  appearance: none; -webkit-appearance: none; margin-left: auto;
  font: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 13px; line-height: 1;
  min-width: 44px; min-height: 44px;
}
.nav-toggle span { display: block; width: 17px; height: 2px; background: currentColor; margin: 3px 0; border-radius: 2px; }

.primary-nav { display: none; }
.primary-nav__group { border-bottom: 1px solid var(--line-2); }
.primary-nav__group > summary {
  list-style: none; cursor: pointer; padding: 13px 2px;
  font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center;
}
.primary-nav__group > summary::-webkit-details-marker { display: none; }
.primary-nav__group > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin-right: 4px; }
.primary-nav__group[open] > summary::after { transform: rotate(-135deg); }
.primary-nav a { display: block; padding: 9px 2px 9px 14px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.primary-nav a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .nav-toggle[aria-expanded="true"] ~ .primary-nav {
    display: block; position: fixed; z-index: 60;
    top: var(--header-h, 100px); left: 0; right: 0; bottom: 0;
    background: var(--paper-2); overflow-y: auto;
    padding: 6px 20px 60px;
    overscroll-behavior: contain;
  }
}
@media (min-width: 961px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; gap: 2px; align-items: center; margin-left: auto; }
  .primary-nav__group { border: 0; position: relative; }
  .primary-nav__group > summary { padding: 8px 12px; border-radius: var(--r); font-size: 14.5px; }
  .primary-nav__group > summary::after { width: 6px; height: 6px; margin-left: 7px; }
  .primary-nav__group > summary:hover,
  .primary-nav__group[open] > summary { background: var(--accent-soft); color: var(--accent); }
  .primary-nav__group > div {
    position: absolute; top: calc(100% + 5px); left: 0; min-width: 230px; z-index: 70;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 6px; box-shadow: 0 16px 36px rgba(32,27,46,.14);
  }
  .primary-nav a { border-radius: var(--r); padding: 8px 10px; }
  .primary-nav a:hover { background: var(--accent-soft); }
}

/* ---------- типографика ---------- */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 14px; font-weight: 700; }
h1 { font-size: clamp(28px, 4.6vw, 42px); }
h2 { font-size: clamp(21px, 3vw, 27px); margin-top: 42px; }
h3 { font-size: clamp(17px, 2.1vw, 19px); margin-top: 24px; }
p { margin: 0 0 15px; }
.lede { font-size: 18px; line-height: 1.58; color: var(--ink-2); max-width: 68ch; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.op__todo { color: var(--ink-3); font-style: italic; font-size: 13.5px; }
main { padding-bottom: 10px; }

.hero { width: 100%; height: auto; aspect-ratio: 1200 / 675; object-fit: cover; border-radius: var(--r-lg); margin: 0 0 22px; display: block; }

/* ---------- раскрытие партнёрства ---------- */
.cta-disclosure {
  display: flex; gap: 9px; align-items: flex-start;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--paper-2); border-radius: var(--r);
  padding: 12px 15px; margin: 0 0 22px; font-size: 13.5px; color: var(--ink-2);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  background: var(--accent); color: #fff !important; border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--accent) !important; border-color: var(--accent-line); min-height: 34px; font-size: 13.5px; }
.btn--ghost:hover { background: var(--accent-soft); }


/* ---------- прочие блоки ---------- */
.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.note { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--paper-2); padding: 14px 16px; border-radius: var(--r); }
.note--legal { border-left-color: var(--hot); background: var(--hot-soft); border-color: #ecd3cd; }

table.data { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper-2); }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
table.data th { background: var(--paper-3); color: var(--ink-3); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
table.data tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }

/* формы (калькулятор отыгрыша) */
.field { display: block; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.field input, .field select {
  width: 100%; margin-top: 5px; padding: 11px 13px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper-2); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.calc-result { margin-top: 14px; padding: 14px 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r); }
.calc-result:empty { display: none; }
.calc-result b { font-family: var(--font-head); font-size: 18px; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--r); padding: 13px 16px; margin-bottom: 8px; background: var(--paper-2); }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-head); }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- подвал ---------- */
.rg-strip { background: var(--ink); color: #cfc9db; margin-top: 52px; padding: 20px 0; }
.rg-strip__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13.5px; }
.rg-strip .age { border: 1px solid var(--hot); color: #ff9d92; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.rg-strip a { color: #a9c2e0; }
.site-footer { background: #161022; color: #a49bb8; padding: 26px 0 42px; font-size: 13.5px; }
.site-footer a { color: #beb4d1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #a49bb8; } /* .muted наследует --ink-3 (2.94:1 на тёмном фоне) — переопределено до 7.04:1 AA */
.footer-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 22px; }
.footer-cols h4 { font-family: var(--font-head); color: #ece7f5; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 9px; }
.footer-cols a { display: block; padding: 3px 0; }

.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    gap: 10px; align-items: center; padding: 9px 16px;
    background: var(--paper-2); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(32,27,46,.10);
  }
  .sticky-cta__txt { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
  .sticky-cta .btn { min-height: 40px; }
  body { padding-bottom: 62px; }
}

.demand { display: grid; gap: 5px; }
.demand__bar { display: block; height: 5px; background: var(--paper-3); border-radius: 999px; overflow: hidden; }
.demand__bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.demand__txt { font-size: 12.5px; color: var(--ink-3); }
.demand__txt b { font-family: var(--font-head); color: var(--ink); font-size: 14px; }

.hero-img {
  margin: 26px 0 34px; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--paper-3);
}
.hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 675; object-fit: cover; }

/* ---------- რეიტინგ-ცხრილი ოპერატორებზე (გადმოტანილია UZ-საიტიდან, 31.08) ---------- */
.rtable { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); margin: 0 0 30px; box-shadow: 0 8px 24px rgba(32,27,46,.05); }
.rtable__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 15px 20px; background: var(--paper-3); border-bottom: 1px solid var(--line-2); }
.rtable__head h2 { margin: 0; font-size: 17px; font-family: var(--font-head); }
.rtable__head span { font-size: 11.5px; color: var(--ink-3); }
.rt { display: grid; grid-template-columns: 30px 1.9fr 58px 1.2fr 96px 92px 82px 132px; gap: 12px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line-2); }
.rt:first-child { border-top: 0; }
.rt:nth-child(odd) { background: var(--paper); }
.rt--cols { display: grid; grid-template-columns: 30px 1.9fr 58px 1.2fr 96px 92px 82px 132px; gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; background: var(--paper-3); padding: 10px 20px; }
.rt--cols + .rt { border-top: 0; }
.rt__pos { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: var(--ink-3); }
.rt:nth-child(-n+4) .rt__pos { color: var(--gold); }
.rt__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rt__logo { width: 40px; height: 40px; border-radius: 999px; background: #fff; padding: 4px; object-fit: contain; flex: none; border: 1px solid var(--line-2); }
.rt__name { font-family: var(--font-head); font-weight: 700; font-size: 14px; margin: 0; }
.rt__tags { font-size: 11px; color: var(--ink-3); margin: 1px 0 0; }
.rt__cell { font-size: 13px; color: var(--ink-2); }
.rt__rating { font-family: var(--font-head); color: var(--gold); font-weight: 700; font-size: 14.5px; }
.rt__actions .btn { min-height: 36px; padding: 0 14px; font-size: 13px; }

@media (max-width: 900px) {
  .rtable__head span { display: none; }
  .rt--cols { display: none; }
  .rt { grid-template-columns: 28px 1fr; row-gap: 8px; padding: 14px 16px; }
  .rt__brand { grid-column: 2; }
  .rt__cell { grid-column: 2; display: flex; justify-content: space-between; gap: 10px; }
  .rt__cell::before { content: attr(data-k); color: var(--ink-3); font-size: 11px; }
  .rt__actions { grid-column: 1 / -1; }
  .rt__actions .btn { width: 100%; }
}
