/* ============================================================
   Снекі Торг Джеркі — фріспіни без депозиту
   Design concept: a card-catalog for casino offers, styled after
   a casino chip tray + ticket stub, not a generic SaaS card kit.
   ============================================================ */

:root {
    --felt-900: #0e3326;
    --felt-800: #144a37;
    --felt-700: #1c6349;
    --brass-500: #c79a3d;
    --brass-400: #dab55c;
    --paper-100: #f6f2e8;
    --paper-050: #fbf9f3;
    --ink-900: #1c211d;
    --ink-600: #4a544c;
    --line: #d8cfb8;
    --red-flag: #8a3324;

    --font-display: "Montserrat", -apple-system, Segoe UI, sans-serif;
    --font-body: "Montserrat", -apple-system, Segoe UI, sans-serif;

    --radius-chip: 999px;
    --radius-card: 6px;
    --shadow-card: 0 1px 0 rgba(14, 51, 38, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-900);
    background: var(--paper-100);
    line-height: 1.55;
}

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

a { color: var(--felt-800); text-decoration-thickness: 1px; }
a:hover { color: var(--brass-500); }

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

/* ---------- Header / nav ---------- */

.site-header {
    background: var(--felt-900);
    border-bottom: 3px solid var(--brass-500);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--paper-050);
}

.brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--brass-400), var(--brass-500) 60%, #a67d2b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--felt-900);
    font-size: 15px;
    flex: none;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.2px;
}

.brand-tag {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--brass-400);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--paper-100);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    background: var(--felt-700);
    color: var(--brass-400);
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-chip);
    padding: 3px;
    flex: none;
}

.lang-switch a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-chip);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--paper-100);
}

.lang-switch a.is-active {
    background: var(--brass-500);
    color: var(--felt-900);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--brass-500);
    color: var(--paper-100);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 20px;
    line-height: 1;
}

/* ---------- Hero ---------- */

.hero {
    background:
        radial-gradient(ellipse at top right, rgba(199,154,61,0.16), transparent 55%),
        var(--felt-800);
    color: var(--paper-050);
    padding: 44px 0 40px;
    border-bottom: 1px solid var(--felt-900);
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    margin: 0 0 12px;
    max-width: 18ch;
}

.hero p.lede {
    font-size: 17px;
    max-width: 62ch;
    color: #e4ddc8;
    margin: 0 0 20px;
}

.breadcrumbs {
    font-size: 13px;
    color: #b8c9bf;
    margin-bottom: 14px;
}
.breadcrumbs a { color: #b8c9bf; }
.breadcrumbs span { color: var(--brass-400); }

/* ---------- CTA chip button ---------- */

.cta-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, var(--brass-400), var(--brass-500));
    color: var(--felt-900) !important;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: var(--radius-chip);
    text-decoration: none;
    border: 2px solid #9a7526;
    box-shadow: 0 3px 0 #8a6a22;
    cursor: pointer;
}
.cta-chip:hover { transform: translateY(1px); box-shadow: 0 2px 0 #8a6a22; }
.cta-chip small { display: block; font-weight: 500; font-size: 11px; opacity: 0.75; }

.cta-block {
    background: var(--felt-900);
    color: var(--paper-050);
    border-radius: var(--radius-card);
    padding: 26px 24px;
    margin: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cta-block .cta-text h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 19px; }
.cta-block .cta-text p { margin: 0; color: #cdd9d0; font-size: 14px; }

/* ---------- Layout: article + sidebar ---------- */

.page-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    padding: 36px 0 60px;
    align-items: start;
}

article.content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: 23px;
    margin: 34px 0 12px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}
article.content h2:first-child { border-top: none; margin-top: 0; }

article.content p { margin: 0 0 14px; font-size: 16px; max-width: 72ch; }
article.content ul, article.content ol { margin: 0 0 16px; padding-left: 22px; max-width: 68ch; }
article.content li { margin-bottom: 6px; }
article.content strong { color: var(--felt-900); }

.pull-note {
    border-left: 3px solid var(--brass-500);
    background: var(--paper-050);
    padding: 12px 16px;
    font-size: 14.5px;
    margin: 18px 0;
    max-width: 68ch;
}

/* ---------- Offer table ---------- */

.offer-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: 14.5px;
    background: var(--paper-050);
}
.offer-table th, .offer-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}
.offer-table th {
    background: var(--felt-900);
    color: var(--paper-100);
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 13px;
}
.offer-table tr:last-child td { border-bottom: none; }
.offer-table a { font-weight: 600; }

/* ---------- Casino offer box (cardmates-style comparison card) ---------- */

.offer-box {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 18px;
    align-items: center;
    background: var(--paper-050);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
    margin: 18px 0;
}

.offer-box .offer-logo {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: none;
}
.offer-box .offer-logo img {
    max-width: 76%;
    max-height: 76%;
    object-fit: contain;
}

.offer-box .offer-main h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    margin: 0 0 4px;
}
.offer-box .offer-bonus {
    font-weight: 700;
    color: var(--felt-900);
    font-size: 15px;
    margin: 0 0 4px;
}
.offer-box .offer-terms {
    font-size: 12.5px;
    color: var(--ink-600);
    margin: 0 0 6px;
}
.offer-box .offer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.offer-box .offer-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--felt-800);
    background: #e7ede8;
    border-radius: 4px;
    padding: 3px 8px;
}

.offer-box .offer-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: none;
}
.offer-box .stars {
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--brass-500);
    white-space: nowrap;
}
.offer-box .stars strong {
    color: var(--ink-900);
    font-size: 15px;
    margin-right: 3px;
}
.offer-box .offer-cta {
    display: inline-block;
    background: var(--felt-800);
    color: #fff !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.offer-box .offer-cta:hover { background: var(--felt-700); }

.offer-box.is-warning {
    grid-template-columns: 1fr;
    border-left: 4px solid var(--red-flag);
    background: #fbf1e6;
}
.offer-box.is-warning .offer-main h3 { color: var(--red-flag); }

.offer-list-note {
    font-size: 12px;
    color: var(--ink-600);
    margin: -8px 0 20px;
}

@media (max-width: 640px) {
    .offer-box { grid-template-columns: 64px 1fr; }
    .offer-box .offer-rating { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .offer-box .offer-logo { width: 64px; height: 64px; }
}


/* ---------- Catalog grid (home) ---------- */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 18px 0 30px;
}

.catalog-card {
    background: var(--paper-050);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 16px;
    text-decoration: none;
    color: var(--ink-900);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.catalog-card:hover { border-color: var(--brass-500); }
.catalog-card .badge {
    align-self: flex-start;
    background: var(--felt-900);
    color: var(--brass-400);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-chip);
}
.catalog-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    margin: 2px 0 0;
}
.catalog-card p { font-size: 13px; color: var(--ink-600); margin: 0; }

/* ---------- Sidebar ---------- */

.sidebar-box {
    background: var(--paper-050);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 18px;
    margin-bottom: 20px;
}
.sidebar-box h4 {
    font-family: var(--font-display);
    font-size: 14px;
    margin: 0 0 10px;
    text-transform: none;
}
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box li { margin-bottom: 8px; font-size: 14px; }
.sidebar-box li a { text-decoration: none; }

/* ---------- Author box ---------- */

.author-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--paper-050);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 16px;
    margin: 30px 0;
}
.author-box img {
    width: 56px; height: 56px; border-radius: 50%;
    border: 2px solid var(--brass-500);
    flex: none;
}
.author-box .author-name { font-weight: 700; font-size: 15px; margin: 0; }
.author-box .author-role { font-size: 12.5px; color: var(--brass-500); margin: 0 0 6px; font-weight: 600; }
.author-box p.bio { font-size: 13.5px; color: var(--ink-600); margin: 0; }
.author-box .meta-date { font-size: 12px; color: var(--ink-600); margin-top: 6px; }

/* ---------- Disclaimer ---------- */

.disclaimer {
    background: #fbf1e6;
    border: 1px solid #e3cda0;
    border-left: 4px solid var(--red-flag);
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 12.5px;
    color: #5c4a2e;
    margin: 24px 0;
}
.disclaimer strong { color: var(--red-flag); }

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    background: var(--red-flag);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    margin-right: 6px;
    flex: none;
}

/* ---------- Draft stub ---------- */

.draft-note {
    font-size: 13px;
    color: var(--ink-600);
    background: #eef1ea;
    border: 1px dashed var(--line);
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--felt-900);
    color: #c9d3cb;
    padding: 34px 0 24px;
    font-size: 13.5px;
    margin-top: 40px;
}
.site-footer a { color: #d8e2da; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}
.footer-cols h5 {
    color: var(--brass-400);
    font-family: var(--font-display);
    font-size: 13px;
    margin: 0 0 10px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-col-wide { grid-column: span 2; }
.footer-casino-list { columns: 2; column-gap: 20px; }
.footer-casino-list li { break-inside: avoid; }
@media (max-width: 640px) {
    .footer-col-wide { grid-column: span 1; }
    .footer-casino-list { columns: 1; }
}
.footer-bottom {
    border-top: 1px solid var(--felt-700);
    padding-top: 16px;
    font-size: 12px;
    color: #92a396;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .page-body { grid-template-columns: 1fr; }
    .main-nav { display: none; width: 100%; flex-direction: column; }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 10px 8px; }
    .nav-toggle { display: inline-block; }
    .header-bar { flex-wrap: wrap; }
}

@media (max-width: 520px) {
    .hero { padding: 30px 0; }
    .cta-block { flex-direction: column; align-items: stretch; text-align: left; }
    .cta-chip { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

:focus-visible {
    outline: 3px solid var(--brass-500);
    outline-offset: 2px;
}
