:root {
    /* Tokens aligned with old_templates/melbet_tepmlate_with_text */
    --hero-sand: #ffb803;
    --hero-deep: #1a1a1a;
    --hero-gold: #ffb803;
    --hero-gold-bright: #ffd454;
    --hero-cream: #ffffff;
    --accent-pink-rgb: 255, 184, 3;
    --accent-gold-rgb: 255, 184, 3;
    --accent-green-rgb: 255, 213, 84;
    --accent-blue-rgb: 35, 46, 63;
    --ui-panel: 35, 46, 63;
    --ui-panel-2: 42, 42, 42;

    --primary-color: #2a2a2a;
    --secondary-color: #ffb803;
    --tertiary-color: #1a1a1a;
    --btn-dark-color: #3a3a3a;
    --btn-yellow-text: #1a1a1a;
    --hero-login-bg: #2a2a2a;

    --primary-color-light: #2a2a2a;
    --btn-secondary-color: #ffb803;
    --blue-color: #ffb803;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 148px;
}

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

.anchor-heading {
    scroll-margin-top: 148px;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100%;
    min-height: 100dvh;
    position: relative;
    background:
        radial-gradient(ellipse 95% 75% at 50% 45%, rgba(255, 184, 3, 0.14) 0%, transparent 58%),
        radial-gradient(ellipse 120% 85% at 50% 115%, rgba(255, 184, 3, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 80% 55% at 15% 15%, rgba(255, 184, 3, 0.1) 0%, transparent 48%),
        radial-gradient(ellipse 70% 50% at 90% 25%, rgba(35, 46, 63, 0.25) 0%, transparent 46%),
        linear-gradient(180deg, #232e3f 0%, #1a1a1a 42%, #14161c 100%);
    display: flex;
    flex-direction: column;
}

.page-fill {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.page-fill > .content-section {
    flex: 1 1 auto;
}

.page-fill > .legal-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.page-fill .legal-main .content-section {
    flex: 1 1 auto;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-color);
    padding: 10px 0;
}

.page-legal .header {
    background: var(--primary-color);
}

.header-content {
    max-width: 1600px;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .lang-dropdown--mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .lang-dropdown--desktop {
        display: none;
    }
}

/* Header Left Section */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language dropdown (header right) */
.lang-dropdown {
    position: relative;
    flex-shrink: 0;
    z-index: 1100;
}

.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
    padding: 8px 12px;
    min-height: 42px;
    border-radius: 6px;
    border: 1px solid rgba(var(--accent-gold-rgb), 0.45);
    background: rgba(var(--ui-panel), 0.96);
    color: #e5e5e5;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    user-select: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 1px rgba(var(--accent-gold-rgb), 0.08) inset;
    -webkit-appearance: none;
    appearance: none;
}

.lang-dropdown--mobile .lang-dropdown-btn {
    anchor-name: --lang-dropdown-mobile;
}

.lang-dropdown--desktop .lang-dropdown-btn {
    anchor-name: --lang-dropdown-desktop;
}

.lang-dropdown-btn:hover {
    background: rgba(var(--ui-panel-2), 0.98);
    border-color: rgba(var(--accent-gold-rgb), 0.75);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(var(--accent-gold-rgb), 0.15) inset;
}

.lang-dropdown-btn:focus {
    outline: 2px solid rgba(var(--accent-gold-rgb), 0.55);
    outline-offset: 2px;
}

.lang-dropdown-btn-label {
    white-space: nowrap;
}

.lang-dropdown-chevron {
    flex-shrink: 0;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.lang-dropdown:has(.lang-dropdown-panel:popover-open) .lang-dropdown-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-panel {
    min-width: 10rem;
    max-height: min(70vh, 22rem);
    overflow-y: auto;
    padding: 6px 0;
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 12, 12, 0.98);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(var(--accent-gold-rgb), 0.06) inset;
}

/* Popover: explicit display:none until :popover-open (plain display:flex kept panel visible) */
.lang-dropdown-panel[popover] {
    display: none;
    position: fixed;
    inset: auto;
}

.lang-dropdown-panel[popover]:popover-open {
    display: flex;
    flex-direction: column;
}

/* Light-dismiss is native; position under trigger via anchor */

.lang-dropdown--mobile .lang-dropdown-panel[popover] {
    position-anchor: --lang-dropdown-mobile;
    top: calc(anchor(bottom) + 6px);
    right: anchor(right);
    left: auto;
    bottom: auto;
}

.lang-dropdown--desktop .lang-dropdown-panel[popover] {
    position-anchor: --lang-dropdown-desktop;
    top: calc(anchor(bottom) + 6px);
    right: anchor(right);
    left: auto;
    bottom: auto;
}

.lang-dropdown-item-form {
    display: contents;
}

.lang-dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: none;
    text-align: left;
}

button.lang-dropdown-item {
    width: 100%;
    background: none;
    font: inherit;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
}

.lang-dropdown-item.lang-dropdown-link {
    color: #ffb803;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.lang-dropdown-item.lang-dropdown-link:hover {
    background: rgba(var(--accent-gold-rgb), 0.14);
    color: #f8fafc;
}

.lang-dropdown-current {
    color: rgba(var(--accent-gold-rgb), 0.55);
    cursor: pointer;
}

.footer-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 12px;
    margin-top: 12px;
    justify-content: flex-end;
    max-width: 100%;
}

.footer-langs a {
    color: rgba(var(--accent-gold-rgb), 0.92);
    text-decoration: none;
}

.footer-langs a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .lang-dropdown-btn {
        padding: 6px 10px;
        min-height: 38px;
        font-size: 12px;
    }
}

.download-links {
    display: none;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 12px;
}

.download-nav {
    display: flex;
    gap: 10px;
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s;
    opacity: .7;
}

.download-link:hover {
    opacity: 0.8;
}

.download-icon {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-header-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    transform: scale(1.2);
}


.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--btn-dark-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    box-shadow: 0 1px 1px 0 hsla(340, 35%, 40%, .18) inset;
}


.btn-login-icon {
    display: block;
    width: 130px;
    text-decoration: none;
    color: #FFF;
    transition: filter 0.2s;
    font-weight: 600;
    font-size: 14px;
}

.btn-login-icon:hover {
    filter: brightness(1.2);
}
/* Header Search Section */
.header-search {
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 0;
    position: relative;
    border: 1px solid rgba(var(--accent-pink-rgb), 0.32);
    height: 50px;
}

.header-search-link {
    display: block;
    width: 100%;
    max-width: 220px;
    margin-left: 40px;
    margin-right: auto;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.search-input::placeholder {
    color: #9ca3af;
    opacity: 0.85;
}

.search-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;

}

.search-btn .icon-img {
    filter: brightness(0) invert(1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 42px;
    background: var(--secondary-color);
    color: var(--btn-yellow-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.btn-signup:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .download-links {
        display: flex;
    }

    .header-content {
        padding: 10px 0px;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-search {
        max-width: none;
        min-width: 0;
    }

    .search-input {
        padding: 10px 12px;
        font-size: 12px;
    }

    .header-actions {
        gap: 8px;
    }

    /* Hide header register link on mobile; play CTA remains */
    .header-actions .btn-signup {
        display: none;
    }

    .btn-login-icon {
        margin-left: auto;
        width: 100px;
    }

}


.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    padding: 118px 20px 0px 20px;
    overflow: hidden;
    background: #14161c;
}

/* Removed container-bg-img from HTML; hero background is flat Melbet dark */
.container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow:
        inset 0 0 100px 90px rgba(5, 12, 24, 0.78),
        inset 0 -120px 100px -40px rgba(255, 184, 3, 0.06);
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;

    margin: 0 auto;
}



.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;

    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    flex-shrink: 0;
    margin: auto;
    z-index: 1;
}

.banner-container {
    height: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin-top: auto;
    margin-bottom: auto;
}

.banner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }

    .banner-container {
        display: none;
    }
}

.headline-1 {
    text-align: center;
    color: #cccccc;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(var(--accent-pink-rgb), 0.3);
}

.headline-2 {
    text-align: center;
    color: #ffb803;
    font-size: 30px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow:
        0 0 26px rgba(255, 184, 3, 0.45),
        0 0 18px rgba(255, 184, 3, 0.35),
        0 0 12px rgba(255, 184, 3, 0.2),
        0 2px 18px rgba(0, 0, 0, 0.65);
}

.btn-register {
    width: 100%;
    padding: 18px;
    background: var(--secondary-color);
    color: var(--btn-yellow-text);
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s;
}

a.btn-register {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.btn-register:hover {
    transform: scale(1.02);
}

.form-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-login-banner {
    width: 100%;
    padding: 18px;
    background: var(--hero-login-bg);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login-banner:hover {
    transform: scale(1.02);
}

/* Content Section */
.content-section {
    position: relative;
    background:
        radial-gradient(ellipse 88% 52% at 50% 0%, rgba(255, 200, 40, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 95% 48% at 50% 100%, rgba(255, 184, 3, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 78% 60% at 50% 45%, rgba(255, 170, 20, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 72% 55% at 12% 38%, rgba(20, 50, 90, 0.18) 0%, transparent 50%),
        linear-gradient(125deg, #2a3228 0%, #2f3028 28%, #252820 55%, #161812 100%);
    padding: 60px 20px;
    padding-top: 72px;
}

.content-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 245, 210, 0.06) 0%, rgba(12, 14, 8, 0.32) 100%);
}

.content-section > * {
    position: relative;
    z-index: 1;
}

.content-max-width {
    max-width: 900px;
    margin: 0 auto;
}

.content-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.3;
}

.content-button-wrapper {
    text-align: center;
    margin: 32px 0;
}

.content-btn {
    display: inline-block;
    min-width: 200px;
    padding: 18px 50px;
    background: var(--secondary-color);
    color: var(--btn-yellow-text);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.2s;
    text-transform: uppercase;
}

.content-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 184, 3, 0.35);
}

/* Pros / cons cards (RU, before bottom CTA) */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 8px 0 12px;
}

.pros-block,
.cons-block {
    border-radius: 14px;
    padding: 22px 24px;
    background: rgba(15, 17, 26, 0.92);
}

.pros-block {
    border: 1px solid rgba(74, 222, 128, 0.4);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.06) inset;
}

.cons-block {
    border: 1px solid rgba(248, 113, 113, 0.42);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.06) inset;
}

.pros-cons-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pros-block .pros-cons-title {
    color: #4ade80;
}

.cons-block .pros-cons-title {
    color: #f87171;
}

.pros-cons-head-icon {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.pros-cons-head-icon svg {
    display: block;
}

.pros-cons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pros-cons-list li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pros-block .pros-cons-list li::before {
    content: "✓";
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #4ade80;
    margin-top: 1px;
}

.cons-block .pros-cons-list li::before {
    content: "✗";
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #f87171;
    margin-top: 1px;
}

@media (max-width: 700px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

/* Under H1 (RU): same visual language as vavada-casino212.ru */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border-left: 3px solid rgba(212, 175, 55, 0.6);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.article-meta-icon {
    width: 16px;
    height: 16px;
    fill: rgba(212, 175, 55, 0.7);
    flex-shrink: 0;
}

.article-meta-label {
    color: rgba(126, 200, 255, 0.95);
    font-weight: 600;
}

.rating-card {
    background: linear-gradient(135deg, rgba(18, 28, 48, 0.96) 0%, rgba(24, 40, 64, 0.96) 100%);
    border: 1px solid rgba(255, 184, 3, 0.35);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
}

.rating-card-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    text-align: center;
    border-right: 1px solid rgba(255, 184, 3, 0.22);
    padding-right: 24px;
}

.rating-number {
    font-size: 54px;
    font-weight: 700;
    color: #ffb803;
    line-height: 1;
}

.rating-max {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.rating-stars {
    display: flex;
    gap: 3px;
    margin: 8px 0;
}

.rating-stars .star {
    color: #ffb803;
    font-size: 20px;
}

.rating-stars .star-half {
    color: #ffb803;
    font-size: 20px;
    opacity: 0.5;
}

.rating-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.rating-card-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.fact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
}

.fact-value {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.fact-value.good {
    color: #4ade80;
}

.fact-value.warn {
    color: #ffb803;
}

@media (max-width: 600px) {
    .rating-card {
        grid-template-columns: 1fr;
    }

    .rating-card-score {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding-right: 0;
        padding-bottom: 20px;
    }

    .rating-card-facts {
        grid-template-columns: 1fr 1fr;
    }
}

/* Quick stats table (RU) — vavada-casino212.ru */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 32px;
    font-size: 14px;
}

.stats-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.stats-table tr:last-child {
    border-bottom: none;
}

.stats-table td {
    padding: 11px 14px;
}

.stats-table td:first-child {
    color: rgba(255, 255, 255, 0.5);
    width: 40%;
    font-size: 13px;
}

.stats-table td:last-child {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.stats-table tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.025);
}

.text-content {
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.8;
}

.text-content p {
    margin-bottom: 25px;
}

/* Table of contents (under first paragraph) */
.article-toc {
    max-width: 28rem;
    width: 100%;
    margin: 0.25rem auto 1.75rem;
    padding: 1rem 1.25rem 1.1rem;
    border: 1px solid rgba(var(--accent-pink-rgb), 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
}

.article-toc-heading {
    margin: 0 0 0.9rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffb803;
    letter-spacing: 0.02em;
}

.text-content .article-toc-list {
    margin: 0;
    padding: 0 0 0 1.35rem;
    list-style: decimal;
    font-size: 0.95rem;
    line-height: 1.45;
}

.article-toc-list .level-1 {
    margin: 0 0 0.55rem;
    padding-left: 0.15rem;
}

.article-toc-list .level-1:last-child {
    margin-bottom: 0;
}

.article-toc-list a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: inherit;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.article-toc-list a:hover {
    color: rgb(var(--accent-blue-rgb));
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-toc {
        max-width: 100%;
    }
}

.content-screen-figure {
    margin: 28px 0 32px;
    text-align: center;
}

.content-screen-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.text-content h2,
.text-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ffb803;
    text-align: left;
}

.text-content ul,
.text-content ol {
    margin: 0 0 20px 1.2em;
    padding: 0;
}

.text-content li {
    margin-bottom: 8px;
}

.faq-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid rgba(var(--accent-gold-rgb), 0.22);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 28px 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    position: relative;
    line-height: 1.35;
    text-shadow: 0 0 18px rgba(var(--accent-gold-rgb), 0.08);
}

.faq-summary .faq-question {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: 700;
    color: inherit;
    line-height: inherit;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    color: #ffffff;
}

.faq-item[open] .faq-summary:hover {
    color: #fecdd3;
}

.faq-summary::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid rgba(var(--accent-gold-rgb), 0.88);
    border-bottom: 2px solid rgba(var(--accent-gold-rgb), 0.88);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
    transform: rotate(-135deg);
    margin-top: -2px;
}

.faq-item[open] .faq-summary {
    color: #7ec8ff;
    text-shadow: 0 0 20px rgba(255, 184, 3, 0.28);
}

.faq-body {
    padding: 0 0 18px 0;
}

.faq-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.7;
}

.faq-body .faq-answer-plain {
    margin: 0 0 12px 0;
    font-weight: 600;
}


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

    .content-section {
        padding: 0px 20px;
    }

    .content-max-width {
        padding-top: 40px;
    }

    .content-title {
        font-size: 24px;
    }

    .content-btn {
        padding: 15px 35px;
        font-size: 16px;
    }

    .text-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .text-content h2,
    .text-content h3 {
        font-size: 20px;
        margin-top: 30px;
    }

    .faq-summary {
        font-size: 16px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .headline-2 {
        font-size: 25px;
    }
}

@media (max-width: 600px) {
    .header-search {
        display: none;
    }

    .form-container {
        padding: 20px;
    }

    .logo-header-img {
        height: 50px;
        transform: scale(1.3);
    }

    .header-actions {
        width: 100%;
    }
    .headline-1 {
        font-size: 14px;
    }
}

/* Footer */
.footer {
    flex-shrink: 0;
    background:
        radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255, 184, 3, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #1f2329 0%, #14161c 100%);
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 184, 3, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
}

.footer-nav a {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, opacity 0.2s;
}

.footer-nav a:hover {
    color: rgb(var(--accent-blue-rgb));
    text-decoration: underline;
}

.legal-main {
    min-height: 50vh;
    /* padding-top: 72px; */
}

.legal-document .text-content h2,
.legal-document .text-content h3 {
    font-size: 20px;
    margin-top: 28px;
    margin-bottom: 14px;
    color: #ffb803;
}

.legal-link {
    color: #ffb803;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-link:hover {
    color: rgb(var(--accent-blue-rgb));
}

.legal-meta {
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65) !important;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.age-restriction-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-pink-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.age-number {
    font-size: 22px;
    font-weight: 700;
    color: rgba(232, 237, 248, 0.95);
    position: absolute;
}

.age-plus {
    font-size: 10px;
    color: rgba(232, 237, 248, 0.95);
    position: absolute;
    top: 8px;
    left: 32px;
}

.footer-copyright {
    color: rgba(156, 163, 175, 0.92);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px 0 !important;
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.footer-disclaimer p:first-child {
    margin-bottom: 5px;
}


@media (max-width: 768px) {
    .footer {
        padding: 15px 20px;
    }

    .age-restriction-icon {
        width: 45px;
        height: 45px;
    }

    .age-number {
        font-size: 20px;
    }

    .age-plus {
        font-size: 9px;
        top: 7px;
        left: 28px;
    }

    .footer-disclaimer p {
        font-size: 12px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav {
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid rgba(var(--accent-pink-rgb), 0.15);
    }
}

.content-wrapper {
    position: relative;
}

.form-container {
    gap: 20px;
}

/* Hero logo: desktop only (mobile — centered logo in .header) */
.form-container .logo {
    display: none;
}

@media (min-width: 769px) {
    .form-container .logo {
        display: flex;
        justify-content: center;
        text-decoration: none;
    }

    .form-container .logo-img {
        max-height: 80px;
        width: 100%;
        height: auto;
        object-fit: contain;
        transform: none;
    }
}

/* Hero CTA — old template: yellow «Регистрация», dark «Вход» (#2a2a2a) */
.form-container .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.form-container .hero-buttons > a[href] {
    display: block;
    width: 100%;
}

.form-container .hero-buttons button.btn-register {
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.form-container .hero-buttons .btn-register,
.form-container .hero-buttons a.btn-register {
    background: var(--secondary-color) !important;
    font-weight: 600;
    color: var(--btn-yellow-text) !important;
    border: none;
    border-radius: 15px;
    box-shadow: none;
}

.form-container .hero-buttons .btn-register.btn-login,
.form-container .hero-buttons a.btn-register.btn-login {
    background: var(--hero-login-bg) !important;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.form-container .hero-buttons .btn-register:hover,
.form-container .hero-buttons a.btn-register:hover,
.form-container .hero-buttons button.btn-register:hover {
    transform: scale(1.02);
}

body.page-legal {
    padding-top: 148px;
}

body.page-legal .legal-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
}

body.page-legal .legal-wrap h1 {
    color: #fff;
    margin-bottom: 20px;
}

body.page-legal .legal-wrap p {
    margin-bottom: 16px;
}

body.page-legal .legal-wrap a {
    color: #ffb803;
    font-weight: 700;
}

body.page-legal .legal-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #ffb803;
    font-weight: bold;
    text-decoration: none;
}

/* Mobile-only promo strip after header */
.banerBody.mobile-promo-banner,
.mobile-promo-banner {
    display: none;
}

.noCopy {
    -webkit-user-select: none;
    user-select: none;
}

@keyframes mobile-promo-bg-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes mobile-promo-shine {
    0% {
        transform: translateX(-55%) skewX(-12deg);
        opacity: 0.4;
    }

    50% {
        opacity: 0.72;
    }

    100% {
        transform: translateX(155%) skewX(-12deg);
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .banerBody.mobile-promo-banner,
    .mobile-promo-banner {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 0 12px 10px;
        /* clear fixed .header (включая нижний градиент-хвост) */
        margin-top: max(90px, env(safe-area-inset-top, 0px) + 72px);
        position: relative;
        z-index: 50;
    }

    .mobile-promo-banner__link {
        display: block;
        text-decoration: none;
        color: inherit;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-promo-banner__banner.bonusBanner {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        min-height: 168px;
        max-height: 220px;
        isolation: isolate;
        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(255, 184, 3, 0.28),
            inset 0 1px 0 rgba(255, 220, 120, 0.15);
        background:
            radial-gradient(ellipse 120% 90% at 20% 80%, rgba(255, 200, 60, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 90% 70% at 85% 15%, rgba(255, 165, 10, 0.28) 0%, transparent 50%),
            linear-gradient(
                125deg,
                #4a3206 0%,
                #ffb803 22%,
                #2a1810 42%,
                #ffd54a 58%,
                #1a1408 78%,
                #e6a800 100%
            );
        background-size: 100% 100%, 100% 100%, 280% 280%;
        animation: mobile-promo-bg-shift 10s ease-in-out infinite;
    }

    .mobile-promo-banner__banner.bonusBanner::before {
        content: '';
        position: absolute;
        inset: -40% -20%;
        z-index: 0;
        pointer-events: none;
        background: linear-gradient(
            95deg,
            transparent 0%,
            rgba(255, 248, 200, 0.22) 42%,
            rgba(255, 214, 80, 0.55) 50%,
            rgba(255, 248, 200, 0.18) 58%,
            transparent 100%
        );
        mix-blend-mode: overlay;
        animation: mobile-promo-shine 5.5s ease-in-out infinite;
    }

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

    .mobile-promo-banner__backImg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .mobile-promo-banner__mainImg.bonusBannerMain {
        position: absolute;
        right: -15px;
        bottom: 0;
        height: 100%;
        width: auto;
        max-width: 55%;
        object-fit: contain;
        object-position: top;
        z-index: 1;
        pointer-events: none;
    }

    .mobile-promo-banner__inside {
        position: relative;
        z-index: 2;
        padding: 14px 16px 16px;
        display: flex;
        flex-direction: column;
        gap: 13px;
        justify-content: center;
        min-height: 168px;
        box-sizing: border-box;
    }

    .mobile-promo-banner__text {
        margin: 0;
    }

    .mobile-promo-banner__lead {
        margin: 0;
        font-size: clamp(2.6rem, 10.4vw, 3.575rem);
        font-weight: 800;
        line-height: 0.95;
        color: #ffd54a;
        text-shadow:
            0 2px 14px rgba(0, 0, 0, 0.5),
            0 0 28px rgba(255, 184, 3, 0.55);
    }

    .mobile-promo-banner__sub {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin: 5px 0 0;
        font-size: 1.235rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95);
        line-height: 1.25;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    }

    .mobile-promo-banner__sub b {
        font-weight: 800;
        color: #fff;
    }

    .mobile-promo-banner__info {
        display: flex;
        gap: 13px;
        margin-top: 5px;
    }

    .mobile-promo-banner__iblock {
        flex: 1;
        min-width: 0;
        background: linear-gradient(165deg, rgba(40, 28, 6, 0.72) 0%, rgba(20, 14, 5, 0.55) 100%);
        border-radius: 10px;
        padding: 8px 10px;
        border: 1px solid rgba(255, 184, 3, 0.42);
        box-shadow: inset 0 0 0 1px rgba(255, 230, 140, 0.08);
    }

    .mobile-promo-banner__iblock-title {
        margin: 0;
        font-size: 0.956rem;
        font-weight: 800;
        color: #ffd54a;
        line-height: 1.1;
        text-shadow: 0 0 18px rgba(255, 184, 3, 0.45);
    }

    .mobile-promo-banner__iblock .mobile-promo-under {
        margin-top: 5px;
        margin-bottom: 0;
        font-size: 0.592rem;
        line-height: 1.2;
        color: rgba(255, 248, 220, 0.9);
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }
}

/* ========== melbet_tepmlate_with_text: shell + navigation ========== */

.header.melbet-header {
    padding: 0 !important;
    background: var(--primary-color) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    padding-left: 10px !important;
}

.page-legal .header.melbet-header {
    background: var(--primary-color) !important;
}

.header.melbet-header .header-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
}

.melbet-top {
    background: #2a2a2a;
    padding: 10px 0px 10px 60px;
}

.melbet-top-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.melbet-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-start;
}

.melbet-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding-right: 10px;
}

.melbet-logo-img {
    height: auto;
    width: 150px;
    display: block;
}

.melbet-flag-img {
    height: 38px;
    width: auto;
    display: block;
    margin-left: 4px;
}

.melbet-btn {
    height: 25px;
    padding: 0 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.melbet-btn-dark {
    background: #3a3a3a;
    color: #ffffff;
}

.melbet-btn-yellow {
    background: var(--secondary-color);
    color: #1a1a1a;
}

.melbet-btn:hover {
    opacity: 0.9;
}

.melbet-gift-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 8px;
}

.gift-svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.melbet-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.settings-svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.melbet-caret {
    font-size: 10px;
    opacity: 0.8;
}

.melbet-bottom {
    background: var(--secondary-color);
    padding: 10px 20px 10px 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 0;
    clip-path: polygon(60px 0%, 100% 0%, 100% 100%, 0% 100%);
}

.melbet-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.melbet-nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.melbet-nav-link:hover {
    opacity: 0.8;
}

.melbet-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.melbet-book-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.book-svg {
    width: 24px;
    height: 24px;
    fill: #1a1a1a;
}

/* Lang dropdown in melbet strip — mimic .melbet-icon-text */
.header.melbet-header .lang-dropdown--melbet-header {
    flex-shrink: 0;
}

.header.melbet-header .lang-dropdown-btn.lang-dropdown-btn--melbet {
    anchor-name: --lang-dropdown-melbet;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    border: none !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    cursor: pointer;
}

/* Panel anchored under Melbet trigger (same logic as --desktop/--mobile) */
.header.melbet-header .lang-dropdown--melbet-header .lang-dropdown-panel[popover] {
    position-anchor: --lang-dropdown-melbet;
    top: calc(anchor(bottom) + 6px);
    right: anchor(right);
    left: auto;
    bottom: auto;
    margin: 0;
}

.header.melbet-header .lang-dropdown-btn.lang-dropdown-btn--melbet:hover {
    opacity: 0.9;
}

.header.melbet-header .lang-dropdown-btn.lang-dropdown-btn--melbet:focus {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

@media (max-width: 1200px) {
    .melbet-nav-link-cyber {
        display: none;
    }

    .melbet-top-content {
        flex-wrap: wrap;
    }

    .melbet-nav {
        gap: 12px;
    }

    .melbet-nav-link {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header.melbet-header .melbet-gift-icon {
        display: none;
    }

    .header.melbet-header .melbet-icon-text {
        display: none;
    }

    .melbet-header {
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 10px;
    }

    .btn-register-header {
        margin-left: 0;
    }

    .melbet-top {
        padding: 10px 15px;
        width: 100%;
    }

    .melbet-top-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .melbet-flag-img {
        height: 30px;
    }

    .melbet-left {
        display: none;
    }

    /* Row 1: downloads | lang; row 2: регистрация 60% / вход 40%; правый inset для RU и «Вход» */
    .header.melbet-header .melbet-right {
        display: grid;
        grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
        grid-template-areas:
            "dl lang"
            "reg play";
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-right: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header.melbet-header .melbet-right .download-links {
        grid-area: dl;
        justify-self: center;
        align-self: center;
        width: max-content;
        max-width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        column-gap: 10px;
    }

    .header.melbet-header .melbet-right .download-nav {
        flex-shrink: 0;
    }

    .header.melbet-header .melbet-right .download-label {
        font-size: 11px;
        white-space: nowrap;
    }

    .header.melbet-header .melbet-right .btn-register-header {
        grid-area: reg;
        margin-left: 0 !important;
        min-width: 0;
        width: auto;
        max-width: 100%;
        justify-self: stretch;
        box-sizing: border-box;
    }

    .header.melbet-header .melbet-right > a.melbet-btn.melbet-btn-dark:not(.melbet-btn-app) {
        grid-area: play;
        min-width: 0;
        max-width: 100%;
        justify-self: stretch;
        box-sizing: border-box;
    }

    .header.melbet-header .melbet-right .lang-dropdown--melbet-header {
        grid-area: lang;
        justify-self: center;
        align-self: center;
        min-width: 0;
        width: max-content;
        max-width: 100%;
    }

    .header.melbet-header .melbet-right .melbet-btn {
        font-size: clamp(9px, 3vw, 11px);
        padding: 0 clamp(4px, 1.5vw, 10px);
        height: auto;
        min-height: 28px;
        white-space: nowrap;
        text-align: center;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .melbet-gift-icon {
        width: 28px;
        height: 28px;
    }

    .settings-svg {
        width: 16px;
        height: 16px;
    }

    .melbet-bottom {
        display: none;
    }

    .melbet-btn-app {
        display: none;
    }

    .download-links {
        display: flex;
    }

    .melbet-flag-img {
        display: none;
    }
}

@media (max-width: 600px) {
    .melbet-top {
        padding: 0;
    }

    .melbet-top-content {
        gap: 8px;
    }

    .melbet-flag-img {
        height: 24px;
    }

    .melbet-left {
        flex-wrap: wrap;
        gap: 6px;
    }

    .melbet-btn {
        font-size: 10px;
        padding: 0 6px;
        height: auto;
        min-height: 26px;
    }

    .melbet-btn-friday {
        display: none;
    }

    .melbet-caret {
        font-size: 8px;
    }

    .header.melbet-header .lang-dropdown-btn.lang-dropdown-btn--melbet {
        font-size: 11px !important;
        gap: 2px;
    }

    /* Narrow phones: hide «Скачать:» label; icons stay */
    .header.melbet-header .download-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .header.melbet-header .melbet-right .melbet-btn {
        font-size: clamp(8px, 3.4vw, 10px);
        padding: 4px 4px;
        min-height: 26px;
    }
}
