* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0b1528;
}

.fullscreen-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;

    background-image: url('../dav.02.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-color: #0b1528;

    z-index: -1;
}

.ui-element {
    position: fixed;
    right: 24px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 10px;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.ui-element:hover,
.ui-element:active {
    color: rgba(255, 255, 255, 0.95);
}

.corner-link {
    bottom: 20px;
    font-size: 18px;
    letter-spacing: 1px;
}

.dav-label {
    position: absolute;
    right: 18px;
    bottom: 90px;
    z-index: 21;
    background: none;
    border: none;
    color: rgba(222, 242, 255, 0.78);
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 4px 6px;
    cursor: default;
    font-family: monospace;
    user-select: none;
    text-decoration: none;
}

.download-btn {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: none;
    border: none;
    color: rgba(180, 210, 240, 0.60);
    font-size: 16px;
    cursor: pointer;
}

/* 🍔 СТИЛІ ДЛЯ БУРГЕРА ТА МЕНЮ */

/* Кнопка бургера в лівому верхньому кутку */
.burger-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 200;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Лінії бургера */
.burger-line {
    width: 95%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Анімація перетворення бургера в хрестик при відкритті */
.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Бічне меню (ховається ліворуч за екран) */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px;

    width: 250px;
    height: 100vh;
    height: 100dvh;

    background-color: #0b1528;
    /* Напівпрозорий темний фон */
    backdrop-filter: blur(10px);
    /* Ефект розмиття фону */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 150;

    transition: left 0.3s ease;
    padding: 20px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 30px;
    box-sizing: border-box;
}

/* Стан, коли меню відкрите */
.side-menu.open {
    left: 0;
}

/* Стілі для посилань всередині меню */
.menu-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease, padding-left 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.menu-link:hover,
.menu-link:active {
    color: #ffffff;
    padding-left: 8px;
}



/* Окреме дублювання анімації для бургер-кнопки */
.burger-btn {
    opacity: 0;
    visibility: hidden;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 4s;
}

.title-container {
    position: absolute;
    top: 17%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    z-index: 10;
}

.road-text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.7rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

    opacity: 0;
    visibility: hidden;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 2.8s;
}

.main-title-subtitle {
    margin-top: 8px;
    /* Динамічний відступ від заголовка */

    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.6rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

    opacity: 0;
    visibility: hidden;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 3.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        visibility: visible;
    }
}

/* Мова */
/* Блок з мовами */
.lang-switcher {
    /* position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    */
    width: 70%;
    align-self: flex-end;
    position: relative;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Головна кнопка поточної мови */
.lang-current {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(180, 210, 240, 0.60);
    font-size: 14px;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 16px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lang-current:active {
    background: rgba(255, 255, 255, 0.1);
}

/* Стрілочка */
.dropdown-arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

/* Список мов (ховається внизу, розгортається вгору) */
.lang-options {
    position: absolute;
    /* bottom: calc(100% - 10px); */
    /* Зсув вгору над головною кнопкою */
    left: 0;
    width: 100%;
    background-color: #121e33;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
    overflow: hidden;
}

/* Елемент списку (кнопка мови) */
.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: monospace;
    cursor: pointer;
    padding: 12px 16px;
    text-align: left;
    width: 100%;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lang-btn:active,
.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Сховати активну мову зі списку вибору (навіщо вибирати те, що вже вибрано) */
.lang-btn.active {
    display: block;
    color: rgba(255, 255, 255, 0.3);
    cursor: default;
    pointer-events: none;
    background: none !important;
}

/* Клас відкриття дропдауну */
.lang-switcher.open .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Поворот стрілочки при відкритті */
.lang-switcher.open .dropdown-arrow {
    transform: rotate(-180deg);
}