/* Cinzel — заголовки, кнопки, меню */
@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/cinzel.bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Основной текст (параграфы, списки, контент) */
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost.book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-heading: 'Cinzel', serif;
    --font-body: 'Jost', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #ff923b #100B07;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text_color, #f2f2f2);
    background-color: #0D0C0C;
    overflow-x: hidden;
}

/* ========================================================================
   9. SIDEBAR STYLES (from sidebar.css)
   ======================================================================== */

.aside {
    pointer-events: none;
    position: fixed;
    top: -20px;
    bottom: 0;
    z-index: 10;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
    --tw-translate-y: 10%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    overflow: auto;
    background-color: var(--side_nav);
    padding: 20px 15px;
    color: var(--side_nav_text);
    opacity: 0;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
    transition: transform .2s, width .2s ease-in-out, opacity .2s ease-in-out;
}

.aside::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .aside {
        pointer-events: auto;
        bottom: auto;
        top: 70px;
        left: 0;
        right: auto;
        margin-top: 0;
        margin-bottom: 0;
        height: calc(100vh - 70px);
        width: auto;
        max-width: 240px;
        --tw-translate-y: 0px;
        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
        opacity: 1;
    }
    
    /* RTL support - sidebar on right side */
    [dir="rtl"] .aside {
        left: auto;
        right: 0;
    }
}

@media (max-width: 768px) {
    .aside {
        height: calc(100dvh - 115px);
    }
}

.aside span {
    visibility: visible;
    transition: all .3s ease-in-out;
    max-width: 500px;
    opacity: 1;
}

.aside ul {
    overflow: hidden;
}

.aside ul li a {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-weight: 700;
    font-style: normal;
}


.aside ul li a span {
    position: relative;
    z-index: 10;
    width: 240px;
}

.aside .sidebar-menu .sidebar-text {
    width: 100%;
    max-width: 100%;
}

.aside ul li a figure {
    position: relative;
    z-index: 10;
}

.aside ul li a img {
    height: 20px;
    min-width: 20px;
}

.aside.active {
    pointer-events: auto;
    --tw-translate-y: 0px;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    opacity: 1;
    z-index: 999;
    border-radius: 0;
}

@media (min-width: 768px) {
    .aside.collapsed {
        max-width: 0;
        width: 0;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
        transition: all .3s ease-in-out;
    }
    
    .aside.collapsed span {
        visibility: hidden;
        padding-right: 0;
        max-width: 0;
        transition: all .3s ease-in-out;
        opacity: 0;
    }
    
    .aside.collapsed .hero-section-sidebar {
        display: none;
    }
    
    .aside.collapsed .sidebar-item {
        display: none;
    }
    
    .aside.collapsed ul li a {
        justify-content: center;
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* ========================================================================
   10. HEADER STYLES (from header.css)
   ======================================================================== */

.header {
    background-color: var(--top_nav);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.header_hamburger {
    border-width: 2px;
    border-color: #faffe5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    position: relative;
    background: transparent;
    cursor: pointer;
}

.header_hamburger svg {
    width: 32px;
    height: 32px;
}

.header_hamburger svg path,
.header_hamburger svg rect {
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}

.header_hamburger svg .arrow {
    opacity: 1;
    transform-origin: center;
}

.header_hamburger.collapsed svg .bar1,
.header_hamburger.active svg .bar1 {
    transform: translateX(0);
}

.header_hamburger.collapsed svg .bar2,
.header_hamburger.active svg .bar2 {
    opacity: 2;
    transform: translateX(25%);
}

.header_hamburger.collapsed svg .bar3,
.header_hamburger.active svg .bar3 {
    transform: translateX(0);
}

.header_hamburger.collapsed svg .arrow,
.header_hamburger.active svg .arrow {
    transform: translateX(0px) scaleX(-1);
    opacity: 1;
}

.header_popupbtns {
    display: none;
    gap: 10px;
}

@media (min-width: 768px) {
    .header_popupbtns {
        display: flex;
        align-items: center;
    }
}

/* === HEADINGS (H1-H6) === */
h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-style: normal;
    line-height: 1.4;
}

/* Desktop sizes */
h1, h1.section-title {
    font-size: 42px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}

/* Mobile sizes */
@media (max-width: 767px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    h4 {
        font-size: 20px;
    }
    
    h5 {
        font-size: 18px;
    }
    
    h6 {
        font-size: 16px;
    }
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

@media (min-width: 768px) {
    .page-wrapper {
        flex-direction: row;
    }
}

p{
    margin: 10px 0;
    font-size: 17px;
}

.main-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 70px;
}

/* Когда sidebar виден — отступ под его ширину */
@media (min-width: 768px) {
    .main-content {
        margin-left: 240px;
        margin-right: 0;
    }
    [dir="rtl"] .main-content {
        margin-right: 240px;
        margin-left: 0;
    }
}

/* Когда sidebar (aside.js-popup) свернут — у main нет отступа */
.aside.js-popup.collapsed + .main-content {
    margin-left: 0;
    margin-right: 0;
}

/* === HEADER === */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 10px 15px;
    display: flex;
}

@media (min-width: 768px) {
    .site-header {
        padding-left: 20px;
        padding-right: 40px;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 10px;

}

@media (max-width: 767px) {
    .header-logo-section {
        width: 100%;
    }
    .header-logo-section a {
        margin: 0 auto;
        display: block;
    }
    .logo-image {
        margin-left: -35px;
    }
}

@media (min-width: 768px) {
    .header-logo-section {
        gap: 25px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-buttons .btn {
    background: radial-gradient(95.91% 58.63% at 50% 100%, #FCA04F 1.43%, #433A79 50.71%, #272147 100%) padding-box,
                radial-gradient(100% 100% at 56.59% 100%, #FDB981 0%, #4D438A 100%) border-box;
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: 0px 10px 10px -8px #1D1936B8, 0px 2px 0px 0px var(--neutral700, #272147);
    padding: 10px 30px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgb(0 0 0), 1px 1px 1px rgb(0 0 0);

}

/* Mobile: Fixed buttons at bottom */
@media (max-width: 767px) {
    .header-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        gap: 10px;
        z-index: 1000;
        background-color: #100b07;
        padding: 15px 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-buttons .btn {
        width: 50%;
        flex: 1;
        border-radius: 0 !important;
        padding: 10px 10px !important;
        font-size: 20px !important;
        margin: 0;
    }
    
    .header-buttons .btn-secondary {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Кнопка гамбургер-меню (index.html:23-30) */
.hamburger-menu.header_hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}


.hamburger-menu.header_hamburger:focus {
    outline: none;
}

.hamburger-menu.header_hamburger svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.hamburger-menu.header_hamburger svg rect,
.hamburger-menu.header_hamburger svg path {
    fill: var(--side_nav_text, #faffe5);
    transition: fill 0.2s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-menu.header_hamburger:hover svg rect,
.hamburger-menu.header_hamburger:hover svg path {
    fill: #FFD66D;
}

.hamburger-menu {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 10px;
    padding: 8px;
}

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

/* Inline SVG logo (when no logo.filename from CMS) */
.header-logo-section .logo-svg,
.header-logo-section a {
    color: var(--side_nav_text, #faffe5);
}
.logo-svg {
    width: 160px;
    height: 40px;
    max-height: 40px;
    vertical-align: middle;
}
.header-logo-section .logo-svg {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .logo-image {
        max-height: 65px;
        width: 160px;
    }
    .logo-svg {
        width: 160px;
        height: 50px;
        max-height: 50px;
    }
}

/* === SIDEBAR (nav menu — Cinzel) === */
.sidebar,
.sidebar *,
aside,
aside * {
    font-family: var(--font-body);
}

.aside span,
.aside ul li a span,
.sidebar-text,
.sidebar-menu a,
.sidebar a,
nav a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-style: normal;
    color: #fff;
    font-size: 16px;
    transition: color 0.25s ease;
}

.aside span:hover,
.aside ul li a:hover span,
.aside ul li a span:hover,
.sidebar-text:hover,
.sidebar-menu a:hover,
.sidebar a:hover,
nav a:hover {
    color: #FFD66D;
}

.sidebar {
    background-color: #0D0C0C;
    
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #403030;
}

.sidebar-item {
    border-bottom: 1px solid #403030;
}

/* Hero Section in Sidebar */
.hero-section-sidebar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 300px;
    max-width: 100%;
    overflow: hidden;
    background-image: url('../img/banner.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 30px 10px;
    border-radius: 12px;
    margin-top: 10px;
}

.hero-section-sidebar .top-logo {
    max-width: 150px;
    margin-bottom: 10px;
}

.hero-section-sidebar .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 15px 10px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
    background: rgb(16 11 7 / 78%);
    border-radius: 10px;
}

.hero-section-sidebar .hero-subtitle {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
    font-weight: 700;
    font-style: normal;
    font-family: var(--font-body);
    padding-bottom: 5px;
    text-shadow: 1px 1px 2px rgb(0 0 0), 1px 1px 1px rgb(0 0 0);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

.hero-section-sidebar .hero-title {
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 10px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow: hidden;
}

.hero-section-sidebar .hero-bonus {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

.hero-section-sidebar .custom-button  {
    height: 40px;
}
.hero-section-sidebar .custom-button .btn-center{
    padding: 10px 0;
    font-size: 12px;
}
.hero-section-sidebar .custom-button .btn-left {
    width: 20px;
}
.hero-section-sidebar .custom-button .btn-right {
    width: 20px;
}

.hero-section-sidebar .hero-btn:hover {
    color: #FFD66D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.top-logo {
    max-width: 360px;
}
/* Кнопка из трёх частей (left / center / right) */
.custom-button {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.custom-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 65%,
        transparent 100%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
    animation: button-shine 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}

.custom-button .btn-left,
.custom-button .btn-center,
.custom-button .btn-right {
    position: relative;
    z-index: 1;
}

@keyframes button-shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.custom-button .btn-left {
    width: 50px;
    background: url('../img/left-green.png') no-repeat center left;
    background-size: 100% 100%;
    flex-shrink: 0;
}

.custom-button .btn-center {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/mid-green.png') repeat-x center;
    background-size: 100% 100%;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgb(0 0 0);
    padding: 0 10px;
    white-space: nowrap;
    min-width: 0;
}

.custom-button .btn-right {
    width: 50px;
    background: url('../img/right-green.png') no-repeat center right;
    background-size: 100% 100%;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .custom-button {
        height: 50px;
    }
    .custom-button .btn-center {
        font-size: 18px;
        padding: 0 8px;
    }
    .custom-button .btn-left,
    .custom-button .btn-right {
        width: 30px;
    }
}

/* Кнопки в хедере (left-but.png, mid.png, right.png) */
.header-buttons .custom-button {
    height: 45px;
}

.header-buttons .custom-button .btn-left {
    width: 26px;
    background: url('../img/left-but.png') no-repeat center left;
    background-size: 100% 100%;
}

.header-buttons .custom-button .btn-center {
    background: url('../img/mid.png') repeat-x center;
    background-size: auto 100%;
    font-size: 17px;
    padding: 0 10px;
}

.header-buttons .custom-button .btn-right {
    width: 26px;
    background: url('../img/right.png') no-repeat center right;
    background-size: 100% 100%;
}

@media (max-width: 767px) {
    .header-buttons .custom-button {
        height: 40px;
        min-width: 0;
    }
    .header-buttons .custom-button .btn-left,
    .header-buttons .custom-button .btn-right {
        width: 30px;
    }
    .header-buttons .custom-button .btn-center {
        font-size: 12px;
        padding: 0 6px;
    }
}

/* Когда sidebar свернут (collapsed), убираем padding справа */
.sidebar.collapsed {
    max-width: 70px;
    transition: all .3s ease-in-out;
}

.sidebar.collapsed .sidebar-link {
    padding-right: 0;
}

.sidebar-icon {
    min-width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Иконки внутри sidebar должны использовать цвет из переменной */
.sidebar-icon path {
    fill: var(--side_nav_text);
}

.sidebar-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-bottom: 6px;
    min-width: 0;
}

.sidebar-text-inner {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.sidebar-text::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    background-image: url('../img/add.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Перенос текста в пунктах сайдбара: снимаем фиксированную ширину и overflow */
.aside .sidebar-menu {
    overflow: visible;
}

.sidebar-menu .sidebar-link {
    min-width: 0;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-menu .sidebar-text {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 0%;
    box-sizing: border-box;
}

.sidebar-menu .sidebar-text-inner {
    min-width: 0;
    max-width: 100%;
}

.hero-section {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 350px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background-image: linear-gradient(0deg, #0d0c0c 0%, #0d0c0c96 30%, transparent 65%), url(../img/banner.webp);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .hero-section {
        background-image: linear-gradient(0deg, #0d0c0c 0%, #0d0c0c96 30%, transparent 65%), url(../img/banner.webp);
        min-height: 500px;
    }
}

.hero-background {
    position: absolute;
    left: 0;
    top: 0;
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
}

.main-content {
    padding-top: 70px;
}

.hero-content {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    background-image: url('../img/base.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767px){
    .hero-section {
        align-items: flex-end;
        justify-content: center;
    }
    .hero-content {
        text-align: center;
        position: relative;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 15px;
    }
    .hero-content .hero-subtitle,
    .hero-content .hero-title,
    .hero-content .hero-bonus {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding: 0;
    }
    .top-logo {
        max-width: 230px;
    }
    .hero-title {
        font-size: 25px;
        padding-bottom: 15px;
    }
    .hero-section-sidebar .hero-btn, .hero-btn {
        margin: 0 auto;
        width: 100%;
        padding: 15px;
        font-size: 20px;
        background-size: 100% 100%;
    }
}
@media (min-width: 768px) {
    .hero-content {
        padding: 20px 25px;
        max-width: 550px;
        left: 0;
        right: auto;
    }
}



.hero-subtitle {
    font-weight: 700;
    overflow-wrap: break-word;
    word-break: break-word;
    font-style: normal;
    font-family:  var(--font-body);
    padding-bottom: 5px;
    text-shadow: 1px 1px 2px rgb(0 0 0), 1px 1px 1px rgb(0 0 0);
    max-width: 100%;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 21px;
        margin: 0;
    }
}

.hero-title {
    font-weight: 700;
    font-style: normal;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    font-family:  var(--font-heading);
    padding-bottom: 5px;
    text-shadow: 1px 1px 2px rgb(0 0 0), 1px 1px 1px rgb(0 0 0);
    max-width: 100%;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
}


.hero-btn:hover {
    color: #FFD66D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-btn {
        padding: 1rem 4rem;
        font-size: 1.2rem;
    }
}

.section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 767px) {
    .section {
        padding-top: 20px;
    }
}

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

@media (min-width: 768px) {
    .section-container {
        padding: 0 30px;
    }
}


/* === BONUS BANNER === */
.bonus-banner {
    padding: 0;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: center;
    color: white;
    justify-content: space-between;
    border-radius: 10px;
    padding: 15px 20px;
    background-color: var(--secondary);
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .bonus-grid {
        gap: 0;
        padding: 15px 45px;
    }
}

.bonus-logo {
    grid-column: span 6;
}

@media (min-width: 1024px) {
    .bonus-logo {
        grid-column: span 4;
    }
}

.bonus-logo-image {
    max-width: 130px;
}

@media (min-width: 768px) {
    .bonus-logo-image {
        max-width: 200px;
    }
}

.bonus-info {
    grid-column: span 12;
    order: 3;
}

@media (min-width: 1024px) {
    .bonus-info {
        grid-column: span 4;
        order: 2;
    }
}

.bonus-box {
    display: flex;
    flex-direction: column;
    background-color: rgba(36, 38, 38, 0.3);
    border-radius: 12px;
    padding: 13px 20px;
    line-height: 1.2;
}

.bonus-label {
    font-size: 15px;
}

@media (min-width: 1024px) {
    .bonus-label {
        font-size: 18px;
    }
}

@media (min-width: 1280px) {
    .bonus-label {
        font-size: 20px;
    }
}

.bonus-amount {
    font-weight: 700;
    font-size: 22px;
}

@media (min-width: 1024px) {
    .bonus-amount {
        font-size: 32px;
    }
}

@media (min-width: 1280px) {
    .bonus-amount {
        font-size: 37px;
    }
}

.bonus-amount strong {
    color: var(--links_color);
}

.bonus-button-wrapper {
    grid-column: span 6;
    order: 2;
    text-align: end;
}

@media (min-width: 1024px) {
    .bonus-button-wrapper {
        grid-column: span 4;
        order: 3;
    }
}

/* === FOOTER === */
.site-footer {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    background: linear-gradient(0deg, #1A1212, #0D0C0C);
}

@media (min-width: 768px) {
    .site-footer {
        padding: 50px 40px;
    }
}

.footer-providers {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid var(--text_color);
}


.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo-link {
    display: block;
}

.footer-logo {
    max-width: 108px;
}

.footer-logo-link .logo-svg {
    color: var(--text_color, #f2f2f2);
    height: 28px;
    width: auto;
    max-width: 108px;
}

@media (min-width: 768px) {
    .footer-logo {
        max-width: 155px;
    }
    .footer-logo-link .logo-svg {
        max-width: 155px;
        height: 32px;
    }
}

.footer-text {
    color: #868686;
    font-size: 14px;
    line-height: 1.2;
}

.footer-text p {
    margin-bottom: 25px;
    text-align: center;
}

.footer-payments {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-payments-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #403030;
}

.footer-payments-compliance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}



@media (min-width: 768px) {
    .footer-contacts a::after {
        content: '|';
        position: absolute;
        right: -12px;
    }
    
    .footer-contacts a:last-child::after {
        content: '';
    }
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    border-radius: 3px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-style: normal;
    cursor: pointer;
    transition: all 0.3s;
}

/* === INFO TABLE === */
table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, rgba(16, 11, 7, 0.95), rgba(43, 24, 15, 0.95));
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 30px 0;
}

table thead {
    background: linear-gradient(135deg, #ff923b, #ff6b1a);
}

table thead th {
    padding: 18px 15px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    color: #FFF1D2;
    border-bottom: 2px solid rgba(255, 146, 59, 0.3);
    -webkit-text-stroke: 0.5px rgba(114, 80, 52, 0.4);
    text-shadow: 
        0px 1px 2px rgba(0, 0, 0, 0.4),
        0px 1px 0px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    table thead th {
        padding: 10px 15px;
        font-size: 16px;
    }
}

table tbody tr {
    border-bottom: 1px solid rgba(255, 146, 59, 0.1);
}

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

table tbody td {
    padding: 15px 15px;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    vertical-align: top;
}

@media (min-width: 768px) {
    table tbody td {
        padding: 18px 20px;
        font-size: 15px;
    }
}

table tbody td:first-child {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: #ff923b;
    white-space: nowrap;
}

@media (min-width: 768px) {
    table tbody td:first-child {
        font-size: 16px;
    }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    table {
        margin: 20px 0;
        border-radius: 0;
    }
    
    table thead th {
        font-size: 11px;
        padding: 12px 8px;
        white-space: nowrap;
    }
    
    table tbody td {
        font-size: 11px;
        padding: 12px 8px;
    }
    
    table tbody td:first-child {
        font-size: 12px;
    }
}

/* Tablet view - optimize column widths */
@media (min-width: 768px) and (max-width: 1023px) {
    table thead th:first-child,
    table tbody td:first-child {
        width: 15%;
    }
    
    table thead th:nth-child(2),
    table tbody td:nth-child(2) {
        width: 25%;
    }
    
    table thead th:nth-child(3),
    table tbody td:nth-child(3) {
        width: 30%;
    }
    
    table thead th:nth-child(4),
    table tbody td:nth-child(4) {
        width: 30%;
    }
}

/* Desktop view - optimize column widths */
@media (min-width: 1024px) {
    table thead th:first-child,
    table tbody td:first-child {
        width: 12%;
    }
    
    table thead th:nth-child(2),
    table tbody td:nth-child(2) {
        width: 23%;
    }
    
    table thead th:nth-child(3),
    table tbody td:nth-child(3) {
        width: 32%;
    }
    
    table thead th:nth-child(4),
    table tbody td:nth-child(4) {
        width: 33%;
    }
}

/* === LINKS (GLOBAL) === */
a {
    color: #FFD66D;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: #FFD66D;
}

a:active,
a:visited {
    color: #FFD66D;
}

/* Remove text-decoration from buttons and navigation links */
.header-buttons a,
.header-buttons .btn,
.btn-cta,
.btn-secondary,
.btn-cta-large,
.btn-cta-banner,
.hero-btn,
.sidebar-link,
.aside a,
nav a,
button a {
    text-decoration: none;
}

.header-buttons a:hover,
.header-buttons .btn:hover,
.btn-cta:hover,
.btn-secondary:hover,
.btn-cta-large:hover,
.btn-cta-banner:hover,
.hero-btn:hover,
.aside a:hover,
nav a:hover,
button a:hover {
    text-decoration: none;
    color: #FFD66D;
}

.sidebar-link:hover {
    color: #FFD66D;
    cursor: pointer;
    text-decoration: none;
}

/* === SCROLLBAR STYLES === */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #100B07;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 146, 59, 0.3);
    border-radius: 6px;
    border: 2px solid #100B07;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 146, 59, 0.5);
}

/* === SEMANTIC REPLACEMENT CLASSES === */
/* Replaced complex Tailwind classes with semantic ones */

.sidebar-content {
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

@media (min-width: 640px) {
    .footer-bottom-content {
        flex-direction: row;
        text-align: left;
        gap: 50px;
    }
}

/* === SEMANTIC-SPECIFIC (wood, lexical table) === */
.wood-background {
    background: #0E0000;
    z-index: 21;
    border-bottom: 1px solid #403030
  }

.lexical-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 25px 0;
}

.lexical-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .lexical-table td,
    .lexical-table th {
        padding: 6px;
        font-size: 14px;
    }
}


ol,ul {
    padding: 15px 35px;
    margin-bottom: 15px;
    border: 1px solid #403030;
}
.main-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 15px 0;
    object-fit: cover; /* Помогает избежать искажений, если где-то жестко задана высота */
}

ol li,
ul li {
    padding: 5px 0 0 0;
}

[dir="rtl"] ol li::before {
    left: auto;
    right: 0;
}
/* RTL-блоке */
[dir="rtl"] [style*="text-align: left"] {
    text-align: inherit !important;
}

/* === RTL: кнопки === */
[dir="rtl"] .custom-button {
    flex-direction: row-reverse;
}
[dir="rtl"] .custom-button .btn-left {
    background: url('../img/left-green.png') no-repeat center right;
    background-size: 100% 100%;
}
[dir="rtl"] .custom-button .btn-right {
    background: url('../img/right-green.png') no-repeat center left;
    background-size: 100% 100%;
}
[dir="rtl"] .header-buttons .custom-button .btn-left {
    background: url('../img/left-but.png') no-repeat center right;
    background-size: 100% 100%;
}
[dir="rtl"] .header-buttons .custom-button .btn-right {
    background: url('../img/right.png') no-repeat center left;
    background-size: 100% 100%;
}
@media (max-width: 767px) {
    [dir="rtl"] .header-buttons .btn-secondary {
        border-right: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* --- Slots Block Styles --- */
.slots-wrapper {
  margin: 30px 0;
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  align-items: start;
}
.slot-card {
  text-align: center;
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.slot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 1;
}
.slot-image {
  border-radius: 6px;
  overflow: hidden;
}
.slot-image img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
}
.slot-name {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: calc(100% - 16px);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  background: #450C88;
  color: #FFFFFF;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}
.slot-card:hover .slot-name{
  opacity: 1;
}
.slot-card:hover::before {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
}
@media (max-width: 600px) {
  .slots-grid {
    gap: 10px;
  }
  .slot-name {
    font-size: 12px;
  }
}
