:root {
    --bg-main: #1B2028;
    --bg-surface: #262C36;
    --bg-active: #343A46;
    --bg-active-warm: rgba(221, 190, 169, 0.05);
    --color-accent: #DDBEA9;
    --color-accent-alt: #C8A27C;
    --color-cta: #E27D60;
    --color-cta-hover: #e98f75;
    --text-primary: #EAE0D5;
    --text-muted: #8D99AE;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-btn: 16px;
    --radius-pill: 99px;
    --border-color: rgba(255,255,255,0.06);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.25);
    --overlay-dark: rgba(0,0,0,0.7);
    --overlay-backdrop: rgba(0,0,0,0.75);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-main); font-size: 15px; line-height: 1.6; color: var(--text-primary); background: var(--bg-main); }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-alt); }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
h1, h2, h3 { color: var(--text-primary); font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.5rem; margin-top: 1.5em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; margin: 1em 0; background: var(--bg-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background: var(--bg-active); color: var(--color-accent); font-weight: 600; font-size: 0.9rem; }
td { color: var(--text-primary); font-size: 0.9rem; }
tr:last-child td { border-bottom: 0; }

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

/* Breadcrumb */
.breadcrumb { margin-bottom: 20px; padding: 10px 0; }
.breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 4px; color: var(--text-muted); font-weight: 600; }
.breadcrumb a { color: var(--color-accent); }
.breadcrumb a:hover { color: var(--color-accent-alt); }
.breadcrumb li:last-child span { color: var(--text-primary); font-weight: 500; }

/* Header */
.header { background: var(--bg-main); border-bottom: 1px solid var(--border-color); }
.header__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; }
.logo img { height: 32px; width: auto; border-radius: 10px; }
.header__right { display: flex; align-items: center; gap: 12px; }
.header-login { padding: 10px 20px; color: var(--color-accent); font-weight: 500; font-size: 14px; border: 1.5px solid var(--color-accent); border-radius: var(--radius-pill); transition: background .2s, color .2s; }
.header-login:hover { background: var(--bg-active); color: var(--text-primary); }
.header-cta { padding: 12px 28px; background: var(--color-cta); color: #fff; font-weight: 600; font-size: 14px; border-radius: var(--radius-pill); box-shadow: var(--shadow-soft); transition: background .2s, transform .1s; }
.header-cta:hover { background: var(--color-cta-hover); color: #fff; }

/* Banner */
.header_banner { position: relative; margin-bottom: 28px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }
.header_banner picture { display: block; }
.header_banner img { width: 100%; height: auto; min-height: 280px; object-fit: cover; display: block; }
.header_banner__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(180deg, rgba(27,32,40,0.5) 0%, rgba(27,32,40,0.75) 100%); }
.header_banner__text { text-align: center; color: var(--text-primary); }
.header_banner__text_top { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; margin: 0 0 10px; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.header_banner__text_main { font-size: clamp(0.9rem, 2vw, 1rem); margin-bottom: 18px; opacity: 0.95; color: var(--text-muted); }
.header_banner__text_button .btn { display: inline-block; padding: 14px 32px; background: var(--color-cta); color: #fff; font-weight: 600; border-radius: var(--radius-pill); box-shadow: var(--shadow-soft); transition: background .2s; }
.header_banner__text_button .btn:hover { background: var(--color-cta-hover); color: #fff; }

/* TOC */
.toc { background: var(--bg-surface); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 28px; box-shadow: var(--shadow-soft); }
.toc-toggle { color: var(--color-accent); font-weight: 600; cursor: pointer; font-size: 14px; user-select: none; }
.toc-body { margin-top: 12px; }
.toc-body ul { list-style: none; padding: 0; margin: 0; }
.toc-body li { margin: 6px 0; }
.toc-body a { color: var(--text-muted); font-size: 14px; }
.toc-body a:hover { color: var(--color-accent); }

.text_container { margin-bottom: 32px; }
.text_container h1 { margin-bottom: 16px; }
.text_container b { color: var(--color-accent); }

/* Slots */
.slots-list-block { margin: 36px 0; }
.slots_list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.slot-card { background: var(--bg-surface); border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-soft); transition: transform .15s; }
.slot-card:hover { transform: translateY(-2px); }
.slot-card .img-wrap { aspect-ratio: 181/148; background: var(--bg-main); }
.slot-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.slot__card-overlay { position: absolute; inset: 0; background: var(--overlay-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; opacity: 0; transition: opacity 0.2s; }
.slot-card:hover .slot__card-overlay { opacity: 1; }
.slot__card-overlay .btn { padding: 10px 18px; font-size: 12px; border-radius: var(--radius-md); font-weight: 500; transition: background .2s, color .2s; }
.slot__card-overlay .btn_ref { background: var(--color-cta); color: #fff; }
.slot__card-overlay .btn_ref:hover { background: var(--color-cta-hover); color: #fff; }
.slot__card-overlay .btn_play { background: transparent; color: var(--text-primary); border: 1.5px solid var(--color-accent); }
.slot__card-overlay .btn_play:hover { background: var(--bg-active); color: var(--color-accent); }
.demo-name { padding: 12px 14px; }
.demo-name a { color: var(--text-primary); font-size: 13px; font-weight: 500; }
.demo-name a:hover { color: var(--color-accent); }

/* Pros/Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons-side { background: var(--bg-surface); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-soft); }
.pros-cons-side .capt { color: var(--color-accent); font-weight: 600; margin-bottom: 12px; font-size: 14px; }
.pros-cons-item { padding: 6px 0; color: var(--text-primary); font-size: 14px; }

/* Bonus block */
.bonus-block { margin: 28px 0; }
.bonus-item { background: var(--bg-surface); border-radius: var(--radius-lg); overflow: hidden; padding: 20px; box-shadow: var(--shadow-soft); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.bonus-item-top-img img { width: 100%; max-width: 160px; height: auto; border-radius: var(--radius-md); }
.bonus-item-top-titles .capt { color: var(--color-accent); font-weight: 600; font-size: 1rem; margin: 0 0 6px; }
.bonus-item-top-titles .text { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; }
.main-button { display: inline-block; padding: 12px 24px; background: var(--color-cta); color: #fff; font-weight: 600; font-size: 14px; border-radius: var(--radius-btn); transition: background .2s; }
.main-button:hover { background: var(--color-cta-hover); color: #fff; }
.inline-cta-wrap { display: block; margin: 14px 0 18px; }
.inline-cta { display: inline-block; padding: 10px 24px; min-width: 200px; text-align: center; background: var(--color-cta); color: #fff; font-weight: 600; font-size: 14px; border-radius: var(--radius-pill); transition: background .2s; box-sizing: border-box; }
.inline-cta:hover { background: var(--color-cta-hover); color: #fff; }

/* FAQ */
.faq { margin: 36px 0; }
.faq-title { font-family: var(--font-display); margin-bottom: 18px; }
.faq-list__item { background: var(--bg-surface); border-radius: var(--radius-lg); margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow-soft); }
.faq-question { padding: 16px 18px; margin: 0; font-size: 15px; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 500; user-select: none; transition: background .15s; }
.faq-question:hover { background: var(--bg-active); }
.faq-question svg { flex-shrink: 0; stroke: var(--color-accent); stroke-width: 1.5; stroke-linecap: round; transition: transform .2s; }
.faq-list__item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer-inner { padding: 0 18px 16px; }
.faq-answer p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Footer */
.footer { background: var(--bg-surface); padding: 36px 0 28px; margin-top: 48px; border-top: 1px solid var(--border-color); }
.footer-top { margin-bottom: 24px; }
.footer-icons--top { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.footer-icons--top__item img { height: 28px; width: auto; opacity: 0.85; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border-color); text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-bottom: 16px; font-size: 14px; }
.footer-nav a { color: var(--color-accent); }
.footer-nav a:hover { color: var(--color-accent-alt); text-decoration: underline; }
.copyright { text-align: center; font-size: 12px; color: var(--text-muted); }

/* Scroll top */
.scroll-top { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; background: var(--bg-surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 90; box-shadow: var(--shadow-soft); transition: background .2s; }
.scroll-top:hover { background: var(--color-accent); }
.scroll-top svg { stroke: var(--color-accent); stroke-width: 2; stroke-linecap: round; }
.scroll-top:hover svg { stroke: var(--bg-main); }

/* Popup */
.popup-form { display: none; position: fixed; inset: 0; background: var(--overlay-backdrop); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.popup-form.active { display: flex; }
.popup-form-inner { background: var(--bg-surface); border-radius: var(--radius-lg); max-width: 400px; overflow: hidden; text-align: center; padding: 28px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.popup-form-image { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 16px; }
.popup-form-popup-title { color: var(--text-primary); font-weight: 600; margin-bottom: 8px; font-size: 1.1rem; }
.popup-form-popup-text { color: var(--color-accent); margin-bottom: 18px; font-size: 14px; }
.popup-form-button { display: inline-block; padding: 12px 28px; background: var(--color-cta); color: #fff; font-weight: 600; border-radius: var(--radius-btn); }
.popup-form-button:hover { background: var(--color-cta-hover); color: #fff; }
.popup-form-close-button { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; background: var(--bg-active); color: var(--text-primary); border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 20px; line-height: 1; }
