:root {
    /* =========================================================
       PARIWIN — design tokens
       Brand: acid lime #ADFF00 (logo) / #F8FF13 (accent)
       Base:  deep graphite-navy #16131A / #241536
       ========================================================= */

    /* ===== Base / Neutrals ===== */
    --color-bg: #16131A;

    /* тексти */
    --color-text: #ffffff;
    --color-text-strong: #E8E4EE;   /* тіло тексту, не акцент */
    --color-text-muted: #B5AEC2;
    --color-text-dim: rgba(255, 255, 255, 0.68);
    --color-text-subtle: rgba(255, 255, 255, 0.52);
    --color-text-accent: #ADFF00;

    --color-header: #241536;
    --color-footer: #241536;
    --color-sidebar-bg: #241536;

    --color-card-bg: rgba(255, 255, 255, 0.04);
    --color-card-border: #3A2E47;

    --color-surface:   #221A2B;
    --color-surface-2: #2C2137;
    --color-bg-deep:   #0E0B12;

    --color-border-soft:   rgba(173, 255, 0, 0.14);
    --color-border-softer: rgba(173, 255, 0, 0.07);
    --color-border-strong: rgba(173, 255, 0, 0.30);

    /* Фірмовий фіолетовий — із фавікона бренду */
    --color-brand-purple:       #3E1152;
    --color-brand-purple-light: #5A1E76;

    /* ===== Brand (Pariwin lime) ===== */
    --color-primary:        #ADFF00;
    --color-primary-hover:  #C2FF3D;
    --color-primary-active: #96DD00;
    --color-primary-pressed:#7CB800;

    /* Secondary — кислотно-жовтий акцент платформи */
    --color-secondary:        #F8FF13;
    --color-secondary-hover:  #FAEB00;
    --color-secondary-active: #FCD100;

    /* Links */
    --color-link:       #ADFF00;
    --color-link-hover: #F8FF13;

    /* Button text — на лаймі завжди темний текст (контраст 15:1) */
    --color-btn-text-dark:  #0E0B12;
    --color-btn-text-light: #0E0B12;

    /* Gradients */
    --gradient-btn-primary:   linear-gradient(135deg, #ADFF00, #F8FF13 75%);
    --gradient-btn-secondary: linear-gradient(135deg, #3E1152, #5A1E76 70%);

    /* ===== Hero glow ===== */
    --gradient-hero-left:  radial-gradient(circle at top left,  rgba(173, 255, 0, 0.20), transparent 55%);
    --gradient-hero-right: radial-gradient(circle at top right, rgba(248, 255, 19, 0.13), transparent 55%);

    /* ===== Sections ===== */
    --color-jackpot-bg1:    #241536;
    --color-jackpot-bg2:    #0E0B12;
    --color-games-bg:       rgba(22, 19, 26, 0.98);
    --color-games-thumb-bg: #2C2137;

    /* ===== Banner / slider dots ===== */
    --color-banner-bg:         #16131A;
    --color-banner-dot:        rgba(62, 17, 82, 0.75);
    --color-banner-dot-border: rgba(255, 255, 255, 0.5);
    --color-banner-dot-active: #ADFF00;

    /* ===== Link underline gradient ===== */
    --color-link-underline-from: #7CB800;
    --color-link-underline-to:   #F8FF13;

    /* ===== Accessibility ===== */
    --focus-ring:    rgba(173, 255, 0, 0.45);
    --color-success: #03B88C;
    --color-error:   #E21A3D;
    --color-warning: #FFB800;

    /* ===== Badge ===== */
    --color-badge-live: #C92C4B;
    --color-badge-fast: #ADFF00;
}

/* ====== RESET / БАЗА ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px;
}

/* Посилання, кнопки */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ====== ЛЕЙАУТ ====== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.content {
    min-height: 60vh;
}

/* ====== КНОПКИ ====== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 15px;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    background: var(--gradient-btn-primary);
    color: var(--color-btn-text-dark);
    text-decoration: none;
    transition: 0.2s all;
    white-space: nowrap;
    border: 1px solid #ffffff;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px 2px rgba(108, 108, 108, 0.4);
    background-color: var(--color-btn-text-light);
    color: #000;
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-border-strong);
    color: var(--color-primary);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: rgba(173, 255, 0, 0.10);
    border-color: var(--color-primary);
    color: var(--color-primary-hover);
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient-btn-primary);
    color: var(--color-btn-text-dark);
    border: 1px solid var(--color-primary);
}

.btn--primary:hover {
    box-shadow: 0 4px 10px 2px rgba(1, 255, 0, 0.3);
    background: var(--color-bg);
    color: var(--color-primary);
}

/* ====== ХЕДЕР ====== */

.header {
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(14px);
    background: var(--color-header);
    border-bottom: 1px solid var(--color-border-soft);
    overflow: visible;
}

.scrolled {
    position: fixed !important;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 16px;
}

/* ЛОГО */

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 30px;
    width: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

.logo {
    flex: 0 0 auto;
}

/* КОНТЕЙНЕР МЕНЮ + КНОПОК (десктоп) */

.header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 24px;
}

.main-nav__list {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav__item a {
    font-size: 14px;
    opacity: 0.84;
    position: relative;
    padding: 4px 0;
}

.main-nav__item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-link-underline-from), var(--color-link-underline-to));
    transition: width 0.18s ease;
}

.main-nav__item a:hover::after,
.main-nav__item a.active::after {
    width: 100%;
}

/* КНОПКИ У ХЕДЕРІ (праворуч) */

.auth {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.auth a {
    font-size: 14px;
}

/* БУРГЕР */

.header-burger {
    display: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-burger span,
.header-burger span::before,
.header-burger span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-text-strong);
    position: relative;
    transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease, bottom 0.18s ease;
}

.header-burger span::before,
.header-burger span::after {
    content: "";
    position: absolute;
}

.header-burger span::before {
    top: -5px;
}

.header-burger span::after {
    bottom: -5px;
}

.header-burger.active span {
    transform: rotate(45deg);
}

.header-burger.active span::before {
    top: 0;
    transform: rotate(-90deg);
}

.header-burger.active span::after {
    bottom: 0;
    opacity: 0;
}

/* ====== МОБІЛЬНИЙ ХЕДЕР ====== */

@media (max-width: 768px) {
    .header__inner {
        padding: 10px 12px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 8px;
    }

    body {
        padding-bottom: 240px;
    }

    .logo-img {
        height: 40px;
    }

    .header-burger {
        display: inline-flex;
        justify-self: center;
    }

    .auth {
        justify-self: end;
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    .auth .btn {
        padding-inline: 14px;
        white-space: nowrap;
    }

    .header-menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--color-header);
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
        z-index: 40;
    }

    .header-menu.header-menu--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ====== HERO ====== */

.hero {
    padding: 40px 0 32px;
    background: var(--gradient-hero-left), var(--gradient-hero-right);
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero p {
    font-size: 15px;
    max-width: 520px;
    color: rgba(245, 245, 247, 0.88);
    margin-bottom: 20px;
}

.hero .hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-side {
    justify-self: end;
}

.jackpot-widget {
    min-width: 260px;
    max-width: 320px;
    padding: 16px 18px;
    border-radius: 18px;
    background: radial-gradient(circle at top, var(--color-jackpot-bg1), var(--color-jackpot-bg2));
    border: 1px solid var(--color-border-soft);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.jackpot-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.7;
    margin-bottom: 10px;
}

.jackpot-amount {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.jackpot-timer {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 14px;
}

/* ====== СЕКЦІЇ ====== */

section {
    padding: 32px 0;
}

section h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

section p {
    font-size: 14px;
    color: rgba(245, 245, 247, 0.9);
}

/* ====== ПРОМО-КАРТКИ ====== */

.promos .promo-list {
    margin-top: 16px;
    display: grid;
    gap: 16px;
}

.promo-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
}

.promo-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.promo-card p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* ====== ІГРИ / СІТКА ====== */

.games {
    border-top: 1px solid var(--color-border-softer);
}

.games-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.games-header a {
    font-size: 13px;
    opacity: 0.8;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.game-card {
    background: var(--color-games-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--color-border-softer);
    display: flex;
    flex-direction: column;
    min-height: 190px;
}

.game-thumb {
    position: relative;
    padding-top: 62%;
    overflow: hidden;
    background: var(--color-games-thumb-bg);
}

.game-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-body {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-name {
    font-size: 14px;
    font-weight: 600;
}

.game-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

/* ====== КОНТЕНТНІ СТОРІНКИ ====== */

.page-content {
    padding-top: 28px;
    padding-bottom: 32px;
    margin-top: 0;
}

.page-content h1 {
    font-size: 28px;
    margin-bottom: 14px;
}

.page-content p + p {
    margin-top: 10px;
}

/* ===== ФУТЕР ===== */

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    background: var(--color-footer);
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--color-border-soft);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer__inner p {
    font-size: 14px;
    color: rgba(245, 245, 247, 0.9);
    margin: 0;
    max-width: 500px;
    line-height: 1.45;
}

.footer__links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer__col {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__col li + li {
    margin-top: 6px;
}

.footer__col a {
    font-size: 14px;
    color: rgba(245, 245, 247, 0.9);
    text-decoration: none;
}

.footer__col a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer__links {
        flex-direction: column;
        gap: 16px;
    }

    .footer__inner p {
        max-width: 100%;
    }
}

/* ====== ОБГОРТКА БАНЕРА ====== */

.banner-carousel-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto 0;
}

/* ===== БАНЕР ===== */

.banner-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 360px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-banner-bg);
}

.banner-carousel__viewport {
    position: absolute;
    inset: 0;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.banner-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.banner-slide__image {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-slide__content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    text-align: left;
    margin-left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.banner-slide__content p {
    color: #efefef;
}

.banner-slide__content h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.banner-slide__content p {
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-banner-dot-border);
    background: var(--color-banner-dot);
    cursor: pointer;
    transition: all 0.2s ease;
}

.banner-dot.is-active {
    background: var(--color-banner-dot-active);
    border-color: var(--color-text-strong);
    transform: scale(1.15);
}

.banner-slide__image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.10) 100%
    );
}

@media (max-width: 600px) {
    .banner-slide__content .btn {
        width: auto;
        max-width: 100%;
        display: inline-flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .banner-slide__content .btn {
        width: auto;
        max-width: 100%;
    }
}

.page-text,
.content-box {
    font-family: "Inter", system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.55;
}
.content-box > ol li,
.content-box > ul li
    {
    margin-left: 15px;
}
.page-text h1,
.content-box h1,
.page-text h2,
.content-box h2,
.page-text h3,
.content-box h3 {
    font-weight: 800;
    line-height: 1.25;
    margin: 26px 0 12px;
    color: var(--color-text-accent);
}

.page-text h1,
.content-box h1 {
    font-size: 28px;
}

.page-text h2,
.content-box h2 {
    font-size: 24px;
    margin-top: 0;
}

.page-text h3,
.content-box h3 {
    font-size: 20px;
}

.page-text p,
.content-box p {
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--color-text-strong);
}

.page-text ul,
.content-box ul {
    list-style: none;
    margin: 10px 0 20px 0;
    padding-left: 0;
}

.page-text ul:not(.related-links__list) li,
.content-box ul:not(.related-links__list) li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: rgba(235, 235, 245, 0.9);
}

.page-text ul:not(.related-links__list) li::before,
.content-box ul:not(.related-links__list) li::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 6px;
}

.content-box {
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    padding: 26px 26px;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}

/* ====== АДАПТИВ ====== */

@media (max-width: 960px) {
    .hero .container {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-side {
        justify-self: start;
    }

    .main-nav__list {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .header__inner {
        padding-inline: 12px;
    }

    .logo-img {
        height: 40px;
    }

    .header-menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--color-header);
        padding: 0 16px 16px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
        z-index: 40;
    }

    .header-menu.header-menu--open {
        transform: translateY(16px);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .auth {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }

    .auth .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .banner-carousel-wrapper {
        padding: 0 12px;
    }

    .banner-carousel {
        width: 100%;
        height: 260px;
        border-radius: 12px;
    }

    .banner-slide__content {
        margin-left: 16px;
        margin-right: 16px;
        max-width: none;
        top: 50%;
        transform: translateY(-50%);
    }

    .banner-slide__content h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .banner-slide__content p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .btn--primary {
        display: inline-block;
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero .hero-actions {
        flex-direction: column;
    }

    .game-card {
        min-height: 170px;
    }
}

/* ===== FAQ ===== */

.faq {
    padding: 32px 0 40px;
}

.faq__title {
    font-size: 24px;
    margin-bottom: 18px;
    color: var(--color-text-strong);
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq__item {
    background: var(--color-primary);
    border-radius: 14px;
    overflow: hidden;
}

.faq__question {
    width: 100%;
    padding: 20px 24px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
}

.faq__question:hover {
    background: rgba(0, 0, 0, 0.08);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item.open .faq__answer {
    max-height: 500px;
    padding: 0 24px 22px 24px;
}

.faq__answer p {
    font-size: 16px;
    line-height: 1.45;
    color: #000 !important;
}

.faq__icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: #000;
    top: 50%;
    left: 0;
    transform-origin: center;
    transition: transform 0.25s ease;
}

.faq__icon::before {
    transform: rotate(45deg);
}

.faq__icon::after {
    transform: rotate(-45deg);
}

.faq__item.open .faq__icon::before {
    transform: rotate(0deg);
}

.faq__item.open .faq__icon::after {
    transform: rotate(0deg);
    opacity: 0;
}

@media (max-width: 600px) {
    .faq__question {
        padding: 16px 18px;
        font-size: 16px;
    }

    .faq__answer p {
        font-size: 14px;
    }
}

/* ===== ВІДГУКИ ===== */

.reviews {
    padding: 32px 0 40px;
}

.reviews__title {
    font-size: 24px;
    margin-bottom: 18px;
    color: var(--color-text-strong);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.review-card {
    position: relative;
    padding: 18px 20px 20px;
    border-radius: 18px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.review-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary);
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    border-color: rgba(1, 255, 0, 0.5);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.review-card__name {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-strong);
}

.review-card__meta {
    font-size: 12px;
    opacity: 0.75;
}

.review-card__text {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(245, 245, 247, 0.94);
}

@media (max-width: 600px) {
    .reviews__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .review-card {
        padding: 16px 16px 18px;
    }

    .review-card__text {
        font-size: 13px;
    }
}

.img-center {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

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

.content-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--gradient-btn-primary);
    color: var(--color-btn-text-dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.content-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    text-decoration: none;
}

.content-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.center-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.faq__question > h3 {
    margin: 0;
    color: #000000;
}

table {
    display: block !important;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    margin-bottom: 30px;
    border: 1px solid var(--color-card-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

thead,
tbody {
    display: flex;
    flex-direction: column;
    width: 100%;
}

tr {
    display: flex;
    width: 100%;
}

table th,
table td {
    display: flex;
    width: 100%;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border-soft);
    font-size: 15px;
    color: var(--color-text);
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
    min-width: 110px;
    background-color: var(--color-surface);
}

table thead th {
    background-color: var(--color-bg-deep);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 18px;
}

.content-box > a > img {
    margin: 20px auto;
}

.banner-slide__content > .banner-slide__title {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer__navigation {
    width: 100%;
    padding: 0 16px;
    margin-bottom: 16px;
}

.footer__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.footer__item {
    padding: 0;
    background: none;
    margin: 0;
}

.footer__item::before {
    display: none;
}

.footer__link {
    font-size: 13px;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.footer__link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.footer__bottom {
    width: 100%;
    padding: 0 16px;
    border-top: 1px solid var(--color-border-soft);
    padding-top: 16px;
    margin-top: 8px;
}

.footer__disclaimer {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 12px;
    color: var(--color-text-subtle);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer__list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer__disclaimer {
        font-size: 11px;
    }
}


/* ==============================================
   SIDEBAR
   ============================================== */

:root {
    --header-height: 64px;
    --sidebar-width: 200px;
    --sidebar-collapsed-width: 64px;
    --sidebar-bg: var(--color-sidebar-bg);
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --sidebar-item-color: #8B93A8;
    --sidebar-item-hover: #ffffff;
    --sidebar-item-active: var(--color-primary);
    --sidebar-item-active-bg: rgba(1, 255, 0, 0.08);
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 70;
    height: var(--header-height);
    background: var(--color-header);
    border-bottom: 1px solid var(--color-border-soft);
}

.header__inner {
    height: 100%;
    max-width: 100%;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-burger {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-burger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.layout {
    display: flex;
    padding-left: var(--sidebar-width);
    transition: padding-left 0.25s ease;
    flex: 1 0 auto;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

body.sidebar-collapsed .layout {
    padding-left: var(--sidebar-collapsed-width);
}

.layout main {
    flex: 1 0 auto;
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    z-index: 50;
    display: flex;
    flex-direction: column;
    padding: 14px 10px 60px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.25s ease, transform 0.25s ease;
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar__title {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

body.sidebar-collapsed .sidebar__link {
    justify-content: center;
    padding: 10px 8px;
}

body.sidebar-collapsed .sidebar__collapse svg {
    transform: rotate(180deg);
}

.sidebar__nav {
    flex: 1;
}

.sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar__item {
    position: relative;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--sidebar-item-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.sidebar__link:hover {
    color: var(--sidebar-item-hover);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.sidebar__item.is-active .sidebar__link {
    color: var(--sidebar-item-active);
    background: var(--sidebar-item-active-bg);
}

.sidebar__item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--sidebar-item-active);
}

.sidebar__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar__icon svg {
    width: 100%;
    height: 100%;
}

.sidebar__title {
    transition: opacity 0.2s ease;
}

.sidebar__collapse {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    height: 34px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sidebar-border);
    border-radius: 10px;
    color: var(--sidebar-item-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar__collapse:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sidebar-item-hover);
}

.sidebar__collapse svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.sidebar__close {
    display: none;
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.sidebar__overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 45;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.sidebar-mobile-open .sidebar__overlay {
    display: block;
    opacity: 1;
}

@media (max-width: 960px) {
    .layout {
        padding-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.6);
    }

    body.sidebar-mobile-open .sidebar {
        transform: translateX(0);
    }

    .sidebar__close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar__collapse {
        display: none;
    }

    .sidebar__title {
        display: inline-block !important;
        opacity: 1 !important;
        width: auto !important;
    }

    .sidebar__link {
        padding: 12px 14px;
        font-size: 14px;
    }

    .header-burger {
        display: inline-flex;
    }

    body.sidebar-collapsed .layout {
        padding-left: 0;
    }

    body.sidebar-collapsed .sidebar {
        width: 260px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .header__inner {
        padding: 10px 12px;
        gap: 8px;
    }

    .logo-img {
        height: 36px;
    }

    .auth .btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}


/* ==============================================
   LIVE-CASINO
   ============================================== */

.live-casino-section {
    padding: 24px 0 40px;
}

.live-casino-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.live-casino-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.live-casino-header h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.live-casino-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.live-casino-tile {
    background: var(--color-surface);
    border-radius: 10px;
    border: 1px solid var(--color-border-softer);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.live-casino-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(1, 255, 0, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.live-casino-tile__image {
    position: relative;
    aspect-ratio: 4 / 4;
    overflow: hidden;
    background: radial-gradient(ellipse at top, var(--color-surface-2) 0%, var(--color-bg-deep) 70%);
}

.live-casino-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.2s ease;
}

.live-casino-tile:hover .live-casino-tile__image img {
    transform: scale(1.05);
    filter: blur(2px) brightness(0.55);
}

.live-casino-tile__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 3;
}

.live-casino-tile:hover .live-casino-tile__overlay {
    opacity: 1;
}

.live-casino-tile__play {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-btn-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(1, 255, 0, 0.18);
    transform: scale(0.85);
    transition: transform 0.2s ease;
}

.live-casino-tile:hover .live-casino-tile__play {
    transform: scale(1);
}

.live-casino-tile__play svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.live-casino-tile__meta {
    padding: 10px 12px 12px;
    background: var(--color-surface-2);
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-top: 1px solid var(--color-border-softer);
}

.live-casino-tile__provider {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-casino-tile__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-casino-tile__stake {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-dim);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-casino-tile__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: var(--color-badge-live);
    color: #fff;
    border-radius: 3px;
    text-transform: uppercase;
    line-height: 1.3;
    z-index: 2;
}

.live-casino-tile__badge--fast {
    background: var(--color-badge-fast);
    color: var(--color-btn-text-dark);
}

@media (max-width: 1100px) {
    .live-casino-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .live-casino-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .live-casino-tile__provider { font-size: 9px; }
    .live-casino-tile__name     { font-size: 12px; }
    .live-casino-tile__stake    { font-size: 10px; }
    .live-casino-tile__meta     { padding: 8px 10px 10px; }
}

@media (max-width: 420px) {
    .live-casino-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==============================================
   PROMOTIONS
   ============================================== */

.promotions-section {
    padding: 24px 0 40px;
}

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

.promotions-header {
    margin-bottom: 20px;
}

.promotions-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.promo-banner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo-banner__link {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--color-border-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    background: var(--color-surface);
}

.promo-banner__link:hover {
    transform: translateY(-4px);
    border-color: rgba(1, 255, 0, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
    text-decoration: none;
}

.promo-banner__image {
    position: relative;
    aspect-ratio: 1920 / 757;
    background: linear-gradient(135deg, var(--color-surface-2), var(--color-bg-deep));
    overflow: hidden;
}

.promo-banner__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.promo-banner__link:hover .promo-banner__image img {
    transform: scale(1.03);
}

.promo-banner__image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.15), transparent 60%),
        radial-gradient(circle at 15% 90%, rgba(0, 0, 0, 0.35), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.promo-banner__svg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.promo-banner__svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.promo-banner__text {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 55%;
    color: #fff;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.promo-banner__title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 2px;
}

.promo-banner__sub {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.promo-banner__amount {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.promo-banner__extra {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 2px;
    line-height: 1.1;
}

.promo-banner__footer {
    background: var(--color-bg-deep);
    padding: 10px 16px;
    text-align: center;
}

.promo-banner__dates {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: inline-block;
    border: 1px solid var(--color-border-soft);
    letter-spacing: 0.02em;
}

.promo-banner__note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    padding: 0 4px;
    line-height: 1.3;
}

@media (max-width: 1100px) {
    .promo-banner__title  { font-size: 20px; }
    .promo-banner__amount { font-size: 18px; }
    .promo-banner__sub    { font-size: 13px; }
}

@media (max-width: 900px) {
    .promotions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .promo-banner__title  { font-size: 26px; }
    .promo-banner__amount { font-size: 20px; }
}












.header__right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}



/* ====== HERO BANNER (головна) ====== */
.hero-banner {
    position: relative;
    margin: 16px 16px 0;
    border-radius: 18px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}
.hero-banner__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}
.hero-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(13, 0, 26, 0.92) 0%,
        rgba(26, 0, 50, 0.75) 35%,
        rgba(26, 0, 50, 0.4) 60%,
        rgba(26, 0, 50, 0.1) 100%
    );
    z-index: 2;
}
.hero-banner__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 48px 56px;
    display: flex;
    align-items: center;
}
.hero-banner__content {
    max-width: 480px;
}
.hero-banner__title {
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.hero-banner__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
    margin: 0 0 28px;
}
.hero-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    background: var(--gradient-btn-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    transition: transform 0.18s, box-shadow 0.18s;
    white-space: nowrap;
}
.hero-banner__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(173, 255, 0, 0.4);
    text-decoration: none;
}

/* ====== CATEGORY FILTERS (chips під банером) ====== */
.category-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 16px 24px;
    margin: 0;
}

.category-filters__nav,
.category-filters__search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 999px;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
}

.category-filters__nav:hover,
.category-filters__search:hover {
    background: rgba(173, 255, 0, 0.1);
    border-color: var(--color-primary);
}

.category-filters__scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1 1 auto;
    min-width: 0;
}

.category-filters__scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 32px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 999px;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.category-chip:hover {
    background: rgba(173, 255, 0, 0.12);
    border-color: var(--color-primary);
    text-decoration: none;
}

.category-chip.is-active {
    background: rgba(173, 255, 0, 0.18);
    border-color: var(--color-primary);
    color: #fff;
}

.category-chip__live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-badge-live);
    box-shadow: 0 0 6px rgba(201, 44, 75, 0.6);
    flex-shrink: 0;
    display: inline-block;
}

@media (max-width: 768px) {
    .hero-banner {
        margin: 12px 12px 0;
        min-height: 220px;
        border-radius: 14px;
    }
    .hero-banner__inner { padding: 28px 24px; }
    .hero-banner__title { font-size: 26px; }
    .hero-banner__subtitle { font-size: 15px; margin-bottom: 20px; }
    .hero-banner__btn { padding: 11px 24px; font-size: 14px; }

    .category-filters {
        padding: 14px 12px 6px;
        gap: 8px;
    }
    .category-filters__nav,
    .category-filters__search {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }
    .category-chip {
        padding: 8px 14px;
        height: 34px;
        font-size: 12px;
    }
}
/* ====== END HERO + CATEGORIES ====== */

/* =========================================================
   PARIWIN — фірмова типографіка та компоненти
   ========================================================= */

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Заголовки — важкий похилий шрифт, як у вордмарку PARIWIN */
.page-text h1,
.page-text h2,
.hero-banner__title {
    font-family: "Archivo", "Inter", system-ui, "Segoe UI", sans-serif;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.page-text h1 {
    color: var(--color-primary);          /* фолбек: суцільний лайм */
    background: linear-gradient(100deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .page-text h1 {
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}

.page-text h2 {
    position: relative;
    padding-left: 16px;
}

.page-text h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 5px;
    border-radius: 3px;
    background: var(--gradient-btn-primary);
}

.page-text h3 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Таблиці з горизонтальним скролом на вузьких екранах */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 14px;
    border: 1px solid var(--color-border-soft);
}

.table-responsive > table {
    margin: 0;
    min-width: 520px;
    border: 0;
}

/* Хлібні крихти */
.breadcrumbs {
    padding: 14px 0 4px;
    font-size: 13px;
    color: var(--color-text-subtle);
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: "/";
    margin-right: 8px;
    color: var(--color-border-strong);
}

.breadcrumbs__link {
    color: var(--color-text-muted);
}

.breadcrumbs__link:hover {
    color: var(--color-primary);
}

.breadcrumbs__item[aria-current="page"] {
    color: var(--color-text-dim);
}

/* Блок автора / E-E-A-T */
.author-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 32px 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-soft);
}

.author-box__avatar {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Archivo", sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 20px;
    color: var(--color-btn-text-dark);
    background: var(--gradient-btn-primary);
}

.author-box__name {
    font-weight: 700;
    font-size: 15px;
}

.author-box__role {
    font-size: 13px;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.author-box__bio {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--color-text-dim);
}

.author-box__meta {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--color-text-subtle);
}

/* Блок перелінковки */
.related-links {
    margin: 32px 0 8px;
    padding: 20px;
    border-radius: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
}

.related-links__title {
    font-family: "Archivo", sans-serif;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.related-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.related-links__link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-soft);
    transition: border-color .2s, color .2s;
}

.related-links__link:hover {
    color: var(--color-primary);
    border-color: var(--color-border-strong);
    text-decoration: none;
}

/* Контекстні посилання в тілі тексту */
.page-text p a,
.page-text li a,
.page-text td a {
    color: var(--color-link);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.page-text p a:hover,
.page-text li a:hover,
.page-text td a:hover {
    color: var(--color-link-hover);
}

/* Зображення контенту */
.page-text img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid var(--color-border-soft);
}

/* Вікове обмеження у футері */
.footer__age {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--color-error);
}

.footer__bottom {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* Фокус — доступність */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Перемикач мови UA / RU */
.lang-switch {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 38px;
    padding: 0 10px;
    margin-right: 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-soft);
    transition: color .2s, border-color .2s;
}

.lang-switch:hover {
    color: var(--color-primary);
    border-color: var(--color-border-strong);
    text-decoration: none;
}

.header__right {
    display: flex;
    align-items: center;
}

@media (max-width: 480px) {
    .lang-switch { min-width: 38px; height: 34px; margin-right: 6px; }
}


/* =========================================================
   PARIWIN — мобільний хедер і сайдбар
   ========================================================= */

/* Перемикач мови в сайдбарі — резерв для вузьких екранів */
.sidebar__lang {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 4px 12px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-soft);
}

.sidebar__lang svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.sidebar__lang:hover {
    color: var(--color-primary);
    border-color: var(--color-border-strong);
    text-decoration: none;
}

@media (max-width: 768px) {
    .logo-img { height: 28px; max-width: 140px; }
}

@media (max-width: 560px) {
    /* Місця на все не вистачає: перемикач мови їде в сайдбар */
    .header .lang-switch { display: none; }
    .sidebar__lang       { display: flex; }

    .header__inner { gap: 8px; }
    .logo-img      { height: 26px; max-width: 124px; }

    .header .btn {
        padding: 9px 12px;
        font-size: 13px;
        border-radius: 12px;
    }

    .auth { gap: 6px; }
}

@media (max-width: 380px) {
    .logo-img      { height: 23px; max-width: 110px; }
    .header .btn   { padding: 8px 10px; font-size: 12px; }
    .header__inner { gap: 6px; }
}

/* Пігулки перелінковки на вузьких екранах */
@media (max-width: 480px) {
    .related-links      { padding: 16px; }
    .related-links__list { gap: 8px; }
    .related-links__link { font-size: 13px; padding: 7px 12px; }
    .author-box         { flex-direction: column; gap: 12px; }
}

/* =========================================================
   PARIWIN — герой-банер: креатив у картинці, кнопка в HTML
   ========================================================= */

.hero-banner {
    /* Перекриває старий шаблонний блок вище: там display:flex + min-height,
       через які кнопка центрувалась поверх картинки. */
    display: block;
    align-items: initial;
    min-height: 0;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin: 14px 0 6px;
    border: 1px solid var(--color-border-soft);
    background: var(--color-bg-deep);
    line-height: 0;
}

.hero-banner__link {
    display: block;
}

.hero-banner__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    margin: 0;
    border: 0;
}

/* Кнопка — ПІД банером. Класти її поверх не можна: у лівому нижньому куті
   креативу надрукований рядок «Вейджер 40х · Мін. депозит ₴500 · 21+». */
.hero-banner__cta {
    display: flex;
    justify-content: center;
    margin: 12px 0 18px;
    line-height: 1;
}

.hero-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.01em;
    color: var(--color-btn-text-dark);
    background: var(--gradient-btn-primary);
    border: 1px solid var(--color-primary);
    box-shadow: 0 8px 24px rgba(173, 255, 0, 0.22);
    transition: transform .15s ease, box-shadow .15s ease;
}

.hero-banner__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(173, 255, 0, 0.32);
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-banner     { border-radius: 14px; }
    .hero-banner__btn { padding: 11px 20px; font-size: 14px; border-radius: 12px; }
}

@media (max-width: 480px) {
    .hero-banner__btn { padding: 9px 16px; font-size: 13px; }
}


/* Банер: на вузьких екранах кадруємо по лівій частині, де лежить офер.
   Інакше при 375 px увесь креатив стискається до 117 px і текст не читається. */
@media (max-width: 768px) {
    .hero-banner__img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
        object-position: left center;
    }
}

@media (max-width: 480px) {
    .hero-banner__img {
        aspect-ratio: 4 / 3;
    }
    .hero-banner__cta { margin: 10px 0 14px; }
    .hero-banner__btn { width: 100%; }
}

/* =========================================================
   PARIWIN — адаптація під екрани
   Порядок: від великих до малих, у кінці — сенсорні пристрої.
   ========================================================= */

/* Банер і чипи вирівняні з текстовим блоком через .container.
   Власних падінгів НЕ задаємо — інакше краї розходяться з текстом. */
.hero-wrap .hero-banner {
    margin-left: 0;
    margin-right: 0;
}

/* ---- Планшет-ландшафт і малий ноутбук ---------------------------------- */
@media (max-width: 1100px) {
    .page-text h1 { font-size: 30px; }
    .page-text h2 { font-size: 23px; }
}

/* ---- Планшет ----------------------------------------------------------- */
@media (max-width: 900px) {
    .content-box   { padding: 22px 20px; }
    .page-text h1  { font-size: 27px; }
    .page-text h2  { font-size: 21px; }
    .page-text h3  { font-size: 18px; }
}

/* ---- Великий телефон / малий планшет ----------------------------------- */
@media (max-width: 600px) {
    .content-box       { padding: 18px 16px; border-radius: 14px; }
    .page-text h1      { font-size: 24px; line-height: 1.22; }
    .page-text h2      { font-size: 19px; padding-left: 13px; }
    .page-text h2::before { width: 4px; }
    .page-text h3      { font-size: 17px; }
    .page-text p,
    .page-text li      { font-size: 15.5px; line-height: 1.65; }
    .page-text img     { border-radius: 12px; margin: 16px 0; }
    .breadcrumbs       { font-size: 12.5px; }
    .author-box        { padding: 16px; border-radius: 14px; }
    .related-links     { padding: 16px; border-radius: 14px; }
}

/* ---- Малий телефон ----------------------------------------------------- */
@media (max-width: 400px) {
    .content-box   { padding: 14px 12px; }
    .page-text h1  { font-size: 22px; }
    .page-text h2  { font-size: 18px; }
    .page-text p,
    .page-text li  { font-size: 15px; }
    .table-responsive > table { min-width: 460px; }
}

/* ---- Телефон у ландшафті: банер не має з'їдати весь екран -------------- */
@media (max-height: 520px) and (orientation: landscape) {
    .hero-banner__img {
        aspect-ratio: auto;
        height: 190px;
        object-fit: cover;
        object-position: left center;
    }
}

/* =========================================================
   Сенсорні пристрої: тап-таргети мінімум 44 px
   Ціль лишається візуально тією ж — росте лише клікабельна площа.
   ========================================================= */
@media (hover: none), (max-width: 768px) {

    .logo {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .header-burger {
        width: 44px;
        height: 44px;
    }

    .header .btn,
    .hero-banner__btn {
        min-height: 44px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .sidebar__close {
        width: 44px;
        height: 44px;
        font-size: 26px;
    }

    .sidebar__link {
        min-height: 46px;
    }

    .sidebar__lang {
        min-height: 46px;
    }

    .category-chip {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        padding-top: 0;
        padding-bottom: 0;
    }

    .category-filters__search {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .related-links__link {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .lang-switch {
        min-height: 44px;
    }

    .faq__question {
        min-height: 48px;
    }

    .footer__link {
        display: inline-block;
        padding: 6px 0;
    }
}
