/* Jost - основной шрифт */
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost.book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost.bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
* {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: #1b405f;
    background-image: url('../img/bg-pattern.png');
    background-repeat: repeat;
    background-size: 200px;
}
/* === HEADINGS (H1-H6) === */
h1, h2, h3, h4, h5, h6 {
    color: #faffe5;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgb(0 0 0), 1px 1px 1px rgb(0 0 0);
}

/* 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;
    }
}

/* Inter для всего контента в main */
.main-content,
.main-content *,
main,
main * {
    font-family: 'Jost', sans-serif !important;
}

p, li, ul, ol, .section-description, .info-text-block {
    font-weight: 400;
}

p {
    margin: 10px 0;
}



.main-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 80px;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .main-content {
        padding-top: 100px;
        padding-right: 30px;
    }
}

/* === 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%;
    padding-left: 7px;
}



.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;
    }
    aside ul li a {
        padding-left: 20px;
    }
}

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

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

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

/* Mobile: Fixed buttons at bottom */
@media (max-width: 767px) {
    .header-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        gap: 20px;
        z-index: 1000;
        background: linear-gradient(to top, rgb(11 25 33), rgb(28 64 95));
        padding: 10px;
        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);
    }
}

.hamburger-menu {
    width: 40px;
    height: 40px;
    background-color: rgb(57 105 147);
    border-radius: 10px;
    padding: 8px;
}

.logo-image {
    max-height: 40px;
    width: auto;
    margin-left: -15px;
}

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

/* === SIDEBAR === */
/* Inter для навигации */
.sidebar,
.sidebar *,
aside,
aside * {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
}

.aside span,
.aside ul li a span,
.sidebar-text {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: #8DBBE2;
    font-size: 18px;
}

.sidebar {
    background-image: url('../img/menu-background-pattern.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 0;
    z-index: 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.sidebar-item {
    border-bottom: 4px solid transparent;
    border-image: url('../img/menu-divider.png') 0 0 4 0 stretch;
    border-image-width: 0 0 4px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding-right: 40px;
}

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

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

.hero-section-sidebar .hero-subtitle {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-section-sidebar .hero-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-family: 'Jost', sans-serif;
    white-space: normal;
    min-width: 0;
    max-width: 100%;
}

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

.hero-section-sidebar .hero-btn {
    display: inline-block;
    padding: 10px 10px;
    font-size: 12px;
    font-weight: 800;
    font-family: 'Jost', sans-serif;
    font-style: normal;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    color: #FFF1D2;
    background-image: url('../img/hero-bg-btn.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: fit-content;
    -webkit-text-stroke: 1px rgba(114, 80, 52, 0.4);
    text-shadow: 1px 1px 2px rgb(0 0 0), 1px 1px 1px rgb(0 0 0);
}

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

/* Когда 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: space-between;
    gap: 10px;
    padding: 10px;
    padding-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === SECTIONS === */
/* Inter для hero section */
.hero-section *:not(.hero-title),
.hero-content *:not(.hero-title) {
    font-family: 'Jost', sans-serif !important;
}

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 350px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background-image: url('../img/mob-bammer.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 0 15px;
}

@media (max-width: 767px){
    .hero-section {
        justify-content: center;
        align-items: flex-end;
        min-height: 400px;
    }
    .hero-bonus {
        margin-bottom: 5px;
        font-size: 15px;
    }
}

.hero-section::before{
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    border-style: solid;
    border-image: url(../img/ornament.png) 100 fill / 53px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-section {
        background-image: url('../img/banner-desk.webp');
        min-height: 350px;
        padding: 20px 30px;
        align-items: top center;
    }
}

.hero-content {
    max-width: 550px;
    width: 100%;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.hero-content p,
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-bonus {
    white-space: normal;
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 767px){
    .hero-content {
        text-align: center;
        background: none;
        position: relative;
        padding: 30px 0;
    }
    .btn-cta {
        margin: 0 auto;
    }
}
@media (min-width: 768px) {
    .hero-content {
        max-width: 450px;
        left: 0;
        right: auto;
    }
}

/* RTL - keep hero-content on the left side */
[dir="rtl"] .hero-content {
    left: 0;
    right: auto;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgb(15 41 63), 1px 1px 1px rgb(15 41 63);
    white-space: normal;
    min-width: 0;
    max-width: 100%;
}

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

.hero-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-family: 'Jost', sans-serif;
    padding-bottom: 15px;
    text-shadow: 1px 1px 2px rgb(0 0 0), 1px 1px 1px rgb(0 0 0);
    white-space: normal;
    min-width: 0;
    max-width: 100%;
}

.hero-bonus {
    text-shadow: 1px 1px 2px rgb(0 0 0), 1px 1px 1px rgb(0 0 0);
    font-family: 'Jost', sans-serif;
    font-weight: bold;
    font-size: 20px;
}

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


.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 800;
    font-style: normal;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    color: #FFF1D2;
    background-image: url('../img/hero-bg-btn.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: fit-content;
    -webkit-text-stroke: 1px rgba(114, 80, 52, 0.4);
    text-shadow: 
        0px 0.5px 2px rgba(0, 0, 0, 0.4),
        0px 1px 0px rgba(0, 0, 0, 0.3);
}

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

@media (min-width: 768px) {
    .hero-btn {
        padding: 15px 20px;
        font-size: 20px;
    }
}

/* Hero custom button (3-part frame) */
.custom-button {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s;
}

@media (max-width: 767px){
    .custom-button {
        height: 45px;
    }
}

.custom-button:hover {
    transform: translateY(-2px);
}

.custom-button .btn-left {
    width: 60px;
    background-image: url('../img/Union.png');
    background-position: center left;
    background-repeat: no-repeat;
    background-size: 100% 75%;
    position: relative;
    z-index: 2;
}

@media (max-width: 767px){
    .custom-button .btn-left {
        width: 40px;
    }
}
.custom-button .btn-left::after{
    content: '';
    background: url('../img/medium-frame-left.png') no-repeat center left;
    position: absolute; 
    background-size: 100% 100%;
    background-repeat: no-repeat;
    inset: 0;
    z-index: 1;
}

.custom-button .btn-center {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/center.png') repeat-x center;
    background-size: 100% 75%;
    margin: 0 -2px;
    position: relative;
    z-index: 1;
    color: #1B405F;
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

@media (max-width: 767px){
    .custom-button .btn-center {
        font-size: 18px;
        padding: 0 10px;
    }
}

.custom-button .btn-center::after{
    content: '';
    background: url('../img/medium-frame-center.png') no-repeat center left;
    position: absolute; 
    background-size: 100% 100%;
    background-repeat: no-repeat;
    inset: 0;
    z-index: 1;
}


.custom-button .btn-right {
    width: 60px;
    background: url('../img/bg-right.png') no-repeat center right;
    background-size: 100% 75%;
    position: relative;
    z-index: 2;
}
 
@media (max-width: 767px){
    .custom-button .btn-right {
        width: 40px;
    }
}

.custom-button .btn-right::after{
    content: '';
    background: url('../img/medium-frame-right.png') no-repeat center left;
    position: absolute; 
    background-size: 100% 100%;
    background-repeat: no-repeat;
    inset: 0;
    z-index: 1;
}

/* Header buttons: frame via ::after — secondary-large-frame */

.header-actions a {
    height: 45px;
}

.header-actions .btn-left {
    width: 10px;
    background-image: url('../img/h-left.png');
    background-position: center left;
    background-repeat: no-repeat;
    background-size: 100% 75%;
    position: relative;
    z-index: 2;
}
.header-actions .custom-button .btn-left::after {
    background: url('../img/secondary-large-frame-left.png') no-repeat center left;
    background-size: 100% 100%;
}

.header-actions .btn-center {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/head-center.png') repeat-x center;
    background-size: 100% 75%;
    padding: 0 10px;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
}
.header-actions .btn-center::after {
    background: url('../img/secondary-large-frame-center.png') no-repeat center left;
    background-size: 100% 100%;
}

.header-actions  .btn-right {
    width: 10px;
    background: url('../img/h-right.png') no-repeat center right;
    background-size: 100% 75%;
    position: relative;
    z-index: 2;
}

.header-actions .btn-right::after {
    background: url('../img/secondary-large-frame-right.png') no-repeat center left;
    background-size: 100% 100%;
}

.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;
    }
}

.section-title {
    font-size: 30px;
    font-weight: bold;
    color: var(--head);
    margin-bottom: 10px;
}

.section-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-align: left;
    max-width: 100%;
}

@media (min-width: 768px) {
    .section-description {
        font-size: 18px;
        line-height: 1.8;
    }
}

/* === FOOTER === */
.site-footer {
    background-color: #0F293F;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin: 20px 0;
    border-radius: 12px;
}

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


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


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

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

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

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

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

/* === BUTTONS === */
.btn {
    display: inline-block;
    border-radius: 3px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

/* Кнопки в header с background-image */
.header-buttons .btn {
    position: relative;
    padding: 5px 10px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    background-color: transparent;
    font-family: 'Jost', sans-serif;
    text-shadow: 1px 1px 2px rgb(0 0 0), 1px 1px 1px rgb(0 0 0);
    font-size: 22px;
    font-weight: 800;
    color: #FFF1D2;
}

.header-buttons .btn_secondary {
    background-image: url("../img/small.png");
}

.header-buttons .btn_cta {
    background-image: url("../img/hero-bg-btn.png");
}

@media (min-width: 768px) {
    .header-buttons .btn {
        padding: 10px 25px;
        font-size: 20px;
    }
}

.btn-secondary {
    background-color: var(--secondary);
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 800;
    font-style: normal;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    color: #FFF1D2;
    -webkit-text-stroke: 1px rgba(114, 80, 52, 0.4);
    text-shadow: 
        0px 0.5px 2px rgba(0, 0, 0, 0.4),
        0px 1px 0px rgba(0, 0, 0, 0.3);
}

/* Убираем background-color для кнопок в header */
.header-buttons .btn-secondary,
.header-buttons .btn-cta {
    background-color: transparent;
}

.btn-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: #FFF1D2;
    overflow-wrap: anywhere;
    white-space: normal;
    max-width: 100%;
    font-style: normal;
    background-image: url('../img/hero-bg-btn.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    border-radius: 3px;
    position: relative;
    z-index: 2;
    -webkit-text-stroke: 1px rgba(114, 80, 52, 0.4);
    text-shadow: 1px 1px 2px rgb(0 0 0), 1px 1px 1px rgb(0 0 0);
}

/* === INFO TEXT BLOCK === */
.info-text-block {
    padding: 10px;
    margin: 0px 0;
    position: relative;
    background-size: auto, auto, auto;
    background-repeat: no-repeat, no-repeat, repeat;
    border: 8px solid transparent;
    border-image: url('../img/frame.png') 8 round;
    text-align: left;
    background: #17354F;
    border-radius: 15px;
}

@media (min-width: 768px) {
    .info-text-block {
        margin-top: 50px;
        padding: 20px;
    }
}

/* Unordered Lists (ul) */
.info-text-block ul{
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .info-text-block ul {
        font-size: 16px;
        line-height: 1.9;
        margin-bottom: 30px;
    }
}

.info-text-block ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.info-text-block ul li:last-child {
    margin-bottom: 0;
}

.info-text-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(180deg, #FFEF5C 0%, #F2B84B 44.73%, #A16519 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 146, 59, 0.5);
}

@media (min-width: 768px) {
    .info-text-block ul li {
        padding-left: 35px;
        margin-bottom: 15px;
    }
    
    .info-text-block ul li::before {
        width: 10px;
        height: 10px;
        top: 9px;
    }
}

/* Ordered Lists (ol) */
.info-text-block ol {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
    counter-reset: ordered-counter;
}

@media (min-width: 768px) {
     .info-text-block ol {
        font-size: 16px;
        line-height: 1.9;
        margin-bottom: 30px;
    }
}

.info-text-block ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    counter-increment: ordered-counter;
}

.info-text-block ol li:last-child {
    margin-bottom: 0;
}

.info-text-block ol li::before {
    content: counter(ordered-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    background: linear-gradient(180deg, #FFEF5C 0%, #F2B84B 44.73%, #A16519 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

@media (min-width: 768px) {
     .info-text-block ol li {
        padding-left: 45px;
        margin-bottom: 15px;
    }
    
    .info-text-block ol li::before {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
}

/* === LINKS (GLOBAL) === */
a {
    color: #ffb509;
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffb509;
}

a:active {
    color: #ffb509;
}

a:visited {
    color: #ffb509;
}

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

.header-buttons a:hover,
.header-buttons .btn:hover,
.btn-cta:hover,
.btn-secondary:hover,
.custom-button:hover,
.hero-btn:hover,
.aside a:hover,
nav a:hover,
button a:hover {
    text-decoration: none !important;
}

.sidebar-link:hover {
    background: #1b405f;
    padding: 0 15px;
    text-decoration: none !important;
}

/* Глобально для всех элементов */
* {
    scrollbar-width: thin;
    scrollbar-color: #1b405f #100B07; /* Для Firefox */
}

/* Для Chrome, Edge и Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 12px;
    display: block; /* Принудительное отображение */
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: #100B07;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: #1b405f;
    border-radius: 6px;
    border: 2px solid #100B07;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background: #265a85; /* Чуть светлее при наведении */
}
/* === SEMANTIC REPLACEMENT CLASSES === */
/* Replaced complex Tailwind classes with semantic ones */

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/sidebar-frame.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 0 0;
}

.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;
    }
}

/* === UTILITY CLASSES === */
.overflow-hidden {
    overflow-x: hidden;
}

.relative {
    position: relative;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-10 {
    gap: 10px;
}

.w-full {
    width: 100%;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.font-bold {
    font-weight: bold;
}

/* Header gradient and bottom border (images on top of gradient) */
header.site-header {
    background:
      url('../img/header-border.png') left bottom repeat-x,
      url('../img/header-border-left.png') left bottom no-repeat,
      url('../img/header-border-bottom-righ.png') right bottom no-repeat,
      linear-gradient(to top, rgb(11 25 33), rgb(28 64 95));
    background-size: auto 5px, 3.5%, 3.5%, cover;
    background-position: left bottom, left bottom, right bottom, 0 0;
    background-repeat: repeat-x, no-repeat, no-repeat, no-repeat;
    padding-bottom: 12px;
    z-index: 3;
  }

.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;
}
.lexical-table p {
    margin: 0;
}
.lexical-table td {
    border: 1px solid #8DBBE2!important;
}

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

/* ========================================================================
   RTL SUPPORT
   ======================================================================== */

/* Section description RTL */
[dir="rtl"] .section-description {
    text-align: right;
}

/* Info text block RTL */
[dir="rtl"] .info-text-block {
    text-align: right;
}

[dir="rtl"] .info-text-paragraph {
    text-align: right;
}

/* Unordered Lists RTL */
[dir="rtl"] .info-text-block ul {
    padding-right: 0;
    padding-left: 0;
}

[dir="rtl"] .info-text-block ul li {
    padding-left: 0;
    padding-right: 30px;
}

@media (min-width: 768px) {
    [dir="rtl"] .info-text-block ul li {
        padding-right: 35px;
        padding-left: 0;
    }
}

[dir="rtl"] .info-text-block ul li::before {
    left: auto;
    right: 0;
}

/* Ordered Lists RTL */
[dir="rtl"] .info-text-block ol {
    padding-right: 0;
    padding-left: 0;
}

[dir="rtl"] .info-text-block ol li {
    padding-left: 0;
    padding-right: 40px;
}

@media (min-width: 768px) {
    [dir="rtl"] .info-text-block ol li {
        padding-right: 45px;
        padding-left: 0;
    }
}

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

/* --- 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;
  }
}
