/* --- ПОДКЛЮЧЕНИЕ ШРИФТОВ PROXIMA NOVA --- */
@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_light.otf') format('opentype');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_bold.otf') format('opentype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_boldit.otf') format('opentype');
    font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_extrabold.otf') format('opentype');
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_black.ttf') format('truetype');
    font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_blackit.otf') format('opentype');
    font-weight: 900; font-style: italic; font-display: swap;
}

/* CSS-переменные */
:root {
    --bg-dark: #10121A;
    --bg-card: #1C1E28;
    --primary-blue: #3A8BFF;
    --primary-blue-mid: #2d7ff5;
    --primary-blue-darker: #0062FF;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A3B1;
    --border-radius-card: 20px;
    --border-radius-button: 12px;
}

/* Общие стили */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-weight: 800; }
h1 { font-weight: 900; }
h2 { text-align: center; font-size: 2.5rem; margin-bottom: 60px; }

/* Финальная система отступов */
section:not(#address-checker) {
    padding-top: 100px;
}
#vpn-promo {
    padding-top: 50px;
}


/* Шапка */
.header {
    padding: 15px 0; position: fixed; top: 20px;
    left: 0; width: 100%; z-index: 100; transition: top 0.3s ease;
}
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 32px; display: block; }
.nav-menu-pill {
    background-color: rgba(28, 30, 40, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px; padding: 5px;
    display: flex;
    align-items: center;
}
.nav-links { display: flex; list-style: none; gap: 5px; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none; font-weight: 700;
    padding: 10px 20px; border-radius: 50px; transition: all 0.3s ease;
    font-size: 0.9rem;
}
.nav-links a:hover { color: var(--text-primary); background-color: rgba(255, 255, 255, 0.1); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-actions--mobile { display: none; } /* Скрываем мобильные кнопки по умолчанию */
.hamburger-menu { display: none; } /* Скрываем гамбургер по умолчанию */

/* Кнопки */
.btn {
    display: inline-block; padding: 12px 28px; border-radius: var(--border-radius-button);
    text-decoration: none; font-weight: 700; cursor: pointer;
    transition: all 0.3s ease; font-size: 1rem; position: relative;
    overflow: hidden; border: none;
}
.btn-primary {
    background-image: linear-gradient(145deg, var(--primary-blue-mid) 0%, var(--primary-blue-darker) 100%);
    color: var(--text-primary);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2),
        0 8px 15px rgba(58, 139, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
}
.btn-primary::before {
    content: ''; position: absolute; top: 1px; left: 50%;
    transform: translateX(-50%); width: 90%; height: 2px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2),
        0 12px 25px rgba(58, 139, 255, 0.35);
    filter: brightness(1.1);
}
.btn-secondary {
    background-color: #2a2d3a; color: var(--text-primary);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}
.btn-secondary:hover { background-color: #343846; transform: translateY(-2px); }
.btn-large { padding: 16px 40px; font-size: 1.1rem; }

/* Новый баннер */
.hero-banner {
    height: 500px;
    background-image: url('img/hero-banner-art.png');
    background-size: cover;
    background-position: center;
}

/* Блок проверки адреса */
#address-checker {
    padding: 0;
    margin-top: -100px;
    position: relative; 
    z-index: 10;
}
.address-checker-block {
    background-color: var(--bg-card);
    padding: 50px 60px;
    border-radius: var(--border-radius-card);
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.address-checker-block h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.address-checker-block p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.address-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.address-form input {
    background-color: var(--bg-dark);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 1rem;
    width: 300px;
    font-family: 'Proxima Nova', sans-serif;
    transition: border-color 0.3s ease;
}
.address-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Стили тарифов */
.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.tariffs-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.tariffs-subheading {
    text-align: center; font-size: 1.8rem;
    margin-top: 80px; margin-bottom: 40px; color: var(--text-primary);
}
.tariff-card {
    background-color: var(--bg-card); padding: 40px; border-radius: var(--border-radius-card);
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}
.tariff-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(58, 139, 255, 0.5);
}
.tariff-card--package {
    border-color: var(--primary-blue);
    background-image: radial-gradient(circle at 50% 0%, rgba(58, 139, 255, 0.15), transparent 70%);
    background-color: var(--bg-card);
}
.tariff-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.tariff-speed, .tariff-price { font-weight: 800; }
.tariff-speed { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 5px; }
.tariff-speed span { font-size: 1rem; font-weight: 700; color: var(--text-secondary); }
.tariff-price { font-size: 2rem; margin-bottom: 20px; }
.tariff-price span { font-size: 1rem; font-weight: 700; color: var(--text-secondary); }
.tariff-description { color: var(--text-secondary); margin-bottom: 30px; flex-grow: 1; }
.tariff-features {
    list-style: none; margin-bottom: 30px; flex-grow: 1;
    display: flex; flex-direction: column; gap: 10px;
}
.tariff-features li { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); }
.tariff-features svg { width: 20px; height: 20px; color: var(--primary-blue); flex-shrink: 0; }

/* VPN-блок */
.promo-block {
    background: linear-gradient(135deg, #1E2A47 0%, #161D2A 100%);
    border-radius: var(--border-radius-card); padding: 50px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 40px; border: 1px solid rgba(58, 139, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.promo-block__text { flex-basis: 60%; }
.promo-block__text h3 {
    font-size: 2.2rem; font-weight: 900; margin-bottom: 15px;
    background: -webkit-linear-gradient(135deg, var(--primary-blue), #fff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.promo-block__text p {
    color: var(--text-secondary); line-height: 1.6;
    margin-bottom: 25px; max-width: 500px;
}
.promo-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.promo-features li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.promo-features svg { width: 20px; height: 20px; color: var(--primary-blue); flex-shrink: 0; }
.promo-block__action { text-align: center; flex-shrink: 0; }
.promo-price-big { font-size: 3rem; font-weight: 900; margin-bottom: 20px; }
.promo-price-big span { font-size: 1.2rem; font-weight: 700; color: var(--text-secondary); }

/* Преимущества */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-item { background-color: var(--bg-card); padding: 30px; border-radius: var(--border-radius-card); text-align: center; }
.feature-item svg { width: 48px; height: 48px; color: var(--primary-blue); margin-bottom: 20px; }
.feature-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-item p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* Подвал */
.footer {
    background-color: var(--bg-card); padding: 60px 0;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-column { flex: 1; min-width: 200px; }
.logo-footer img { height: 32px; opacity: 0.8; }
.footer-column h4 { font-size: 1.1rem; margin-bottom: 20px; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-column a:hover { color: var(--primary-blue); }
.footer-bottom {
    text-align: center; margin-top: 60px; padding-top: 30px;
    border-top: 1px solid #333; color: var(--text-secondary); font-size: 0.9rem;
}

/* Стили модального окна */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.is-open {
    opacity: 1; visibility: visible;
}
.modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
}
.modal-content {
    position: relative; z-index: 1001;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    width: 100%; max-width: 500px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal.is-open .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute; top: 10px; right: 15px;
    background: none; border: none; color: var(--text-secondary);
    font-size: 2.5rem; line-height: 1;
    cursor: pointer; transition: color 0.3s ease;
}
.modal-close:hover {
    color: var(--text-primary);
}
.modal-content h3 {
    font-size: 2rem; margin-bottom: 15px;
}
.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}
.modal-tariff-details {
    background-color: var(--bg-dark);
    border: 1px solid #333;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 30px;
    display: none; 
}
.modal-tariff-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    font-size: 1rem;
}
.modal-tariff-info li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-tariff-info li span {
    color: var(--text-secondary);
}
.modal-tariff-info li strong {
    color: var(--text-primary);
    font-weight: 700;
}
#modal-tariff-name {
    color: var(--primary-blue) !important;
    font-size: 1.1rem;
}
.modal-form {
    display: flex; flex-direction: column; gap: 15px;
}
.modal-form input {
    background-color: var(--bg-dark);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Proxima Nova', sans-serif;
    transition: border-color 0.3s ease;
    text-align: center;
}
.modal-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* --- НОВЫЙ БЛОК: Стили для мобильной навигации --- */
@media (max-width: 992px) {
    .header {
        top: 0;
        padding: 10px 0;
        background-color: rgba(28, 30, 40, 0.9);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    
    /* Скрываем десктопное меню и кнопки */
    .nav-menu-pill .nav-links {
        display: none;
    }
    .header-actions--desktop {
        display: none;
    }

    /* Стили для гамбургер-кнопки */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 101; /* Выше чем меню */
    }

    .hamburger-menu span {
        width: 30px;
        height: 3px;
        background-color: var(--text-primary);
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }

    .hamburger-menu.is-active span:nth-child(1) {
        transform: rotate(45deg);
    }
    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    .hamburger-menu.is-active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Стили для выдвижной панели */
    .nav-menu-pill {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        
        border-radius: 0;
        border: none;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu-pill.is-open {
        transform: translateX(0);
    }

    /* Показываем и стилизуем ссылки и кнопки внутри панели */
    .nav-menu-pill .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .nav-menu-pill .nav-links a {
        font-size: 1.2rem;
    }

    .header-actions--mobile {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    /* Адаптация блока проверки адреса */
    .address-checker-block h1 {
        font-size: 2.5rem;
    }
    .address-checker-block {
        padding: 40px 20px;
    }
}
