* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b2e14;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.water-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1b4d22 0%, #0f3d1a 50%, #082410 100%);
    z-index: -2;
    overflow: hidden;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(40, 167, 69, 0.15) 0%, rgba(27, 77, 34, 0) 50%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.1) 0%, rgba(27, 77, 34, 0) 50%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    -webkit-animation: waterMove 12s ease infinite alternate;
    animation: waterMove 12s ease infinite alternate;
    z-index: -1;
}

.wave.-two {
    background-image: 
        radial-gradient(circle at 70% 20%, rgba(40, 167, 69, 0.12) 0%, rgba(27, 77, 34, 0) 55%),
        radial-gradient(circle at 20% 80%, rgba(234, 88, 12, 0.05) 0%, rgba(27, 77, 34, 0) 45%);
    background-size: 180% 180%;
    background-position: 100% 50%;
    -webkit-animation: waterMove 18s ease infinite alternate-reverse;
    animation: waterMove 18s ease infinite alternate-reverse;
    opacity: 0.8;
}

.wave.-three {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org"><filter id="ripple"><feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="1" result="wave"/><feDisplacementMap in="SourceGraphic" in2="wave" scale="10"/></filter></svg>#ripple');
    opacity: 0.15;
    pointer-events: none;
}

@-webkit-keyframes waterMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 50% 0%; }
}

@keyframes waterMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 50% 0%; }
}

.header-bar {
    width: 100%;
    background-color: rgba(15, 61, 26, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(40, 167, 69, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

.logo-img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-item {
    position: relative;
    padding: 10px 0;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    text-align: left;
    white-space: nowrap;
}

.nav-link:hover {
    color: #28a745;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(11, 46, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    list-style: none;
    display: none;
    min-width: 260px;
    padding: 8px 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}
.dropdown-item a {
    display: block;
    padding: 10px 16px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.2s, color 0.2s;
    text-align: left;
}

.dropdown-item a:hover {
    background-color: rgba(40, 167, 69, 0.2);
    color: #a3e635;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.btn-download {
    background-color: #28a745;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    justify-content: center;
}

.btn-download:hover {
    background-color: #218838;
    color: #ffffff;
    transform: translateY(-1px);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: #28a745;
}

.hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 600px;
}

/* Контейнер теперь выстраивает элементы строго в столбик ДРУГ ПОД ДРУГОМ */
.download-badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 520px;
}

.android-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(15, 61, 26, 0.9);
    border: 2px solid #28a745;
    padding: 14px 28px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    max-width: 320px;
    justify-content: center;
}

.android-badge:hover {
    background-color: #28a745;
    transform: scale(1.03);
}

/* Карточка инструкции с выравниванием контента по левому краю */
.install-instruction-card {
    background-color: rgba(15, 61, 26, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 167, 69, 0.25);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    text-align: left;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.instruction-title {
    font-size: 16px;
    font-weight: bold;
    color: #a3e635;
    margin-bottom: 16px;
    text-align: left;
}

.instruction-list {
    list-style-type: none; /* Убираем дефолтные маркеры, чтобы они не центрировались */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Прижимаем текст элементов и цифры строго к левому краю */
.instruction-list li {
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.5;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.instruction-list li::before {
    color: #a3e635;
    font-weight: bold;
}

/* Добавляем номера шагов через псевдоэлементы для идеального левого выравнивания */
.instruction-list li:nth-child(1)::before { content: "1."; }
.instruction-list li:nth-child(2)::before { content: "2."; }
.instruction-list li:nth-child(3)::before { content: "3."; }
.instruction-list li:nth-child(4)::before { content: "4."; }
.instruction-list li:nth-child(5)::before { content: "5."; }

.instruction-list strong {
    color: #ffffff;
    font-weight: 600;
}

.warning-text {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.footer-bar {
    width: 100%;
    background-color: rgba(8, 36, 16, 0.95);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid rgba(40, 167, 69, 0.1);
    font-size: 13px;
    color: #64748b;
}

.menu-burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.burger-line {
    width: 100%;
    height: 2px;
    background-color: #e2e8f0;
    transition: transform 0.3s, opacity 0.3s;
}

.footer-copyright {
    width: 100%;
    text-align: center;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: #0f3d1a;
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 460px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #ffffff;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(40, 167, 69, 0.15);
    padding-bottom: 10px;
}

.modal-info-block {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-info-block:last-child {
    margin-bottom: 0;
}

.modal-info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: bold;
}

.modal-info-value {
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.5;
    text-align: left;
}

.modal-email-link {
    color: #a3e635;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}

.modal-email-link:hover {
    color: #28a745;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .menu-burger-btn {
        display: flex;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        height: 100vh;
        background-color: rgba(11, 46, 20, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding: 80px 24px 40px 24px;
        transition: right 0.3s ease;
        z-index: 105;
        overflow-y: auto;
    }

    .mobile-menu-active .nav-container {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        padding: 0;
    }

    .nav-link {
        width: 100%;
        font-size: 15px;
        padding: 12px 0;
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
        line-height: 1.3;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background-color: rgba(8, 36, 16, 0.5);
        border: none;
        border-left: 2px solid #28a745;
        border-radius: 0;
        margin-top: 5px;
        box-shadow: none;
        padding: 4px 0;
    }

    .dropdown-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-item a {
        font-size: 14px;
        padding: 10px 14px;
        text-align: left;
    }

    .btn-download {
        text-align: center;
        justify-content: center;
        margin-top: 15px;
        white-space: nowrap;
    }

    .mobile-menu-active .burger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-active .burger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
}
