.header__bg {
    /* Заполняем весь viewport */
    position: relative;
    width: 100%;
    height: 100vh;

    /* Фон масштабируется с сохранением пропорций и покрывает всю область */
    background-image: url("../img/header-bg.webp");
    background-repeat: no-repeat;
    background-size: cover;
    /* ← ключевое изменение */
    background-position: top center;

    /* Гарантируем минимальную высоту на очень маленьких экранах */
    min-height: 600px;
    /* или 100dvh для новых браузеров */
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100px;
    background: rgba(16, 15, 17, 0.94);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    gap: clamp(20px, 4vw, 50px);
    padding: 0 clamp(15px, 5%, 150px);
    box-sizing: border-box;
    z-index: 1000;
}

.header__logo {
    background-image: url("../img/VectorLogo=.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: min(108px, 20vw);
    height: auto;
    aspect-ratio: 108 / 52;
}

.header__logo-link {
    display: block;
    /* или inline-block, в зависимости от макета */
    text-decoration: none;
    outline: none;
}

.header__list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(20px, 3.5vw, 50px);
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "Reaver-Bold", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header__list a {
    transition: color 0.3s ease;
}

.header__lang {
    color: rgb(216, 216, 216);
    font-size: 14px
}

.header__list a:hover,
.header__lang:hover,
.footer__support a:hover {
    color: #ffffff !important;
}

.header__online {
    width: min(150px, 25vw);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.header__online-icon {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.header__online-icon.online {
    background-image: url("../img/Ellipse_1_72.webp");
}

.header__online-icon.offline {
    background-image: url("../img/Ellipse_1_73.webp");
}

.header__online-text {
    margin: 0 10px;
}

.header__button {
    width: 100%;
    max-width: fit-content;
    min-width: 160px;
    height: 44px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    box-sizing: border-box;
    border: 1px solid rgba(208, 190, 162, 1);
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(43.19, 41.73, 49.04, 1), rgba(27, 26, 31, 1));
    transition: opacity 0.3s;
}

/* Опционально: эффект при наведении */
.header__button:hover {
    opacity: 0.7;
}

/* Центральный контентный блок */
.header__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    /* горизонтально — по центру */
    align-items: center;
    /* вертикально — по центру */
    z-index: 10;
    padding-top: 15%;
}

.header__content-block {
    /* Адаптивные размеры на основе экрана 1920x1040 */
    width: clamp(800px, 79vw, 1516px);
    height: auto;

    /* Flexbox layout */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    /* Отступы */
    padding: clamp(24px, 4vh, 48px) clamp(20px, 3vw, 40px);
    box-sizing: border-box;

    /* Стилизация */
    border-radius: 12px;
    background: linear-gradient(90deg,
            rgba(15.51, 15.10, 17.16, 0) 0%,
            rgba(15.51, 15.10, 17.16, 1) 48%,
            rgba(16, 15, 17, 0) 100%);

    /* Полоски сверху и снизу */
    position: relative;
    overflow: hidden;
}

.header__content-block::before,
.header__content-block::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(208, 190, 162, 0)0%,
            rgba(208, 190, 162, 1)48%,
            rgba(208, 190, 162, 0)100%);
}

.header__content-block::before {
    top: 0;
}

.header__content-block::after {
    bottom: 0;
}

.header__logo-main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
}

.header__logo-svg {
    width: clamp(150px, 35vw, 652px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.header__open {
    font-size: clamp(20px, 11.0px + 2.75vw, 72px);
    color: rgba(244, 177, 74, 1);
    text-align: center;
    margin: 0;
}

.header__description {
    font-size: clamp(20px, 9.0px + 2.0vw, 52px);
    color: rgba(208, 190, 162, 1);
    text-align: center;
    margin: 0;
    max-width: 80%;
}

.header__cta-button {
    width: clamp(100px, 75px + 18.75vw, 400px);
    height: clamp(25px, 20.3125px + 1.5625vh, 50px);

    box-sizing: border-box;
    background: rgba(230, 165, 65, 1);
    box-shadow: 0 0 38px rgba(244, 177, 74, 0.36);
    border: 1px solid rgba(208, 190, 162, 1);
    border-radius: 2px;
    color: #ffffff;
    font-size: clamp(10px, 8.25px + 0.75vw, 18px);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: clamp(16px, 6.4px + 3vw, 24px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.header__cta-button:hover {
    opacity: 0.85;
    box-shadow: 0 8px 24px rgba(208, 190, 162, 0.5);
}

/* Адаптивность фонового изображения */
@media (max-width: 1920px) {
    .header__bg {
        background-size: 100vw auto, 100vw auto;
        background-position: center top, center top;
        min-height: calc(100vw * 1039 / 1920);
    }
}

@media (max-width: 1200px) {
    .header__bg {
        background-size: 1200px auto, 1200px auto;
        background-position: center top, center top;
        min-height: calc(1200px * 1039 / 1920);
    }

    .header__nav {
        padding: 0px 0px;
    }
}

@media (max-width: 768px) {
    .header__bg {
        background-size: 768px auto, 768px auto;
        background-position: center top, center top;
        min-height: calc(768px * 1039 / 1920);
    }
}

/* Адаптивность для центрального блока */
@media (max-width: 1250px) {

    .header__logo-svg {
        width: clamp(300px, 45vw, 600px);
    }

    .header__logo {
        display: none;
    }
}

@media (max-width: 768px) {

    .header__content-block {
        width: clamp(300px, 95vw, 600px);
        gap: clamp(6px, 1.5vw, 12px);
    }

    .header__logo-svg {
        width: clamp(250px, 40vw, 500px);
    }

    .button-lk {
        display: none;
    }
}

@media (max-width: 1000px) {
    .header__online {
        display: none;
    }

    .header__nav {
        height: 50px;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 1400px) {
    .header__nav a {
        font-size: 12px;
    }

    .header__online span {
        font-size: 12px;
    }
}

@media (max-width: 1450px) {
    .header__nav {
        height: 80px;
    }

    .header__logo {
        width: min(90px, 20vw);
    }

    .header__online {
        width: min(130px, 22vw);
        height: 44px;
        font-size: clamp(14px, 2.8vw, 16px);
    }

    .header__button {
        width: auto;
        min-width: 180px;
        height: 40px;
        padding: 12px 24px;
        font-size: 18px;
    }

}

/* Мобильная навигация */
@media (max-width: 768px) {
    .header__list {
        display: none;
    }

    .header__online {
        display: none;
    }

    .header__lang {
        display: none;
    }


    .mobile-menu-toggle {
        display: block;
    }

    .header__nav {
        justify-content: space-between;
        padding: 0 20px;
        height: 50px;
    }
}

/* === МОБИЛЬНЫЕ УСТРОЙСТВА === */
@media (max-width: 768px) {
    .header__content {
        position: absolute;
        top: 30px;
        left: 0;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
        padding-top: 15%;
        max-height: 85vh;
    }
}

/* === Планшеты (опционально) === */
@media (max-width: 1024px) {
    .header__bg {
        height: auto;
    }
}

@media (max-width: 426px) {
    .header__content {
        margin-top: 20%;
    }
}

@media (max-width: 320px) {
    .header__content {
        margin-top: 30%;
    }
}