/* Сброс и нормализация */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #FFFFFF;
    font-size: 16px;
    line-height: 1.5;
    color: #1F2937;
}

/* Хедер */
header {
    background: #2A1B3D;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem; /* Возвращён исходный gap для корректного расстояния */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-left: -1rem;
}

.burger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
}

.burger-toggle span {
    width: 100%;
    height: 3px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-toggle.active span:nth-child(2) {
    opacity: 0;
}

.burger-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: 7%; /* Сдвиг на 15% вправо */
}

.nav-item {
    position: relative;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.nav-item i {
    font-size: 1rem;
    color: #00AEEF;
    transition: color 0.3s;
    margin-right: 0.75rem;
}

.nav-item:hover i {
    color: #008BCF;
}

.nav-item > span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item > span::after,
.nav-item > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #40C4FF;
    transition: width 0.3s;
}

.nav-item:hover > span::after,
.nav-item:hover > a::after {
    width: 100%;
}

.dropdown-arrow {
    font-size: 0.875rem;
    color: #FFFFFF;
    transition: color 0.3s;
}

.nav-item:hover .dropdown-arrow {
    color: #40C4FF;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #3A2B4D;
    border: 1px solid #4A3B5D;
    border-radius: 0.5rem;
    min-width: 220px;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
}

.dropdown-item:hover {
    background: #4A3B5D;
}

.language-switcher {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .burger-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: #2A1B3D;
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 1.5rem;
        transition: right 0.3s ease;
        z-index: 50;
        overflow-y: auto;
        margin-left: 0; /* Убрано для мобильной версии */
    }

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

    .nav-item {
        width: 100%;
        font-size: 1.25rem;
        padding: 0.5rem 0;
    }

    .nav-item i {
        font-size: 1.125rem;
        margin-right: 0.75rem;
    }

    .nav-item > span {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .dropdown-arrow {
        font-size: 0.875rem;
    }

    .dropdown {
        position: static;
        width: 100%;
        background: #3A2B4D;
        border: none;
        box-shadow: none;
        margin-top: 0.5rem;
        display: none;
    }

    .nav-item.active .dropdown {
        display: block;
    }

    .dropdown-item {
        color: #FFFFFF;
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }

    .dropdown-item:hover {
        background: #4A3B5D;
    }

    .btn-primary {
        color: #FFFFFF;
        font-size: 1.25rem;
        width: auto;
        padding: 0.5rem 1.5rem;
        text-align: center;
    }
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #40C4FF;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.btn-primary {
    background: #00AEEF;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: block;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 auto;
}

.btn-primary:hover {
    background: #008BCF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

/* Основной контент */
main {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.vpn {
    background: #FFFFFF;
    color: #1F2937;
    padding: 3rem 0;
}

.vpn h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeIn 0.6s ease-in;
    color: #1F2937;
    text-align: left;
}

.vpn p {
    font-size: 1.125rem;
    color: #1F2937;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-in;
    text-align: left;
}

.vpn .text-center {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.vpn-intro {
    max-width: 1000px;
    margin: 0 0 3rem;
}

.vpn-intro h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
    text-align: left;
}

.vpn-intro p {
    font-size: 1rem;
    color: #1F2937;
    line-height: 1.6;
    text-align: left;
}

.vpn-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

.vpn-card {
    background: #FFFFFF;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    max-width: 360px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vpn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.vpn-card .card-icon {
    margin-bottom: 1rem;
}

.vpn-card .card-icon i {
    font-size: 2.5rem;
    color: #00AEEF;
    transition: transform 0.3s ease;
}

.vpn-card:hover .card-icon i {
    transform: scale(1.1);
}

.vpn-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.vpn-card p {
    font-size: 0.875rem;
    color: #1F2937;
    line-height: 1.4;
}

/* Promo Section */
.vpn-promo {
    background: #FFFFFF;
    padding: 3rem 0;
}

.vpn-promo .promo-card {
    background: #F0F9FF;
    border: 1px solid #00AEEF;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.vpn-promo h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
    text-align: left;
}

.vpn-promo p {
    font-size: 1rem;
    color: #1F2937;
    line-height: 1.6;
    text-align: left;
}

.vpn-promo a {
    color: #00AEEF;
    text-decoration: none;
}

.vpn-promo a:hover {
    text-decoration: underline;
    color: #008BCF;
}

/* FAQ */
.faq {
    background: #F9FAFB;
    padding: 3rem 0;
}

.faq h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease-in;
    text-align: center;
}

.faq-item {
    background: #FFFFFF;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item .fa-chevron-down {
    transition: transform 0.3s ease;
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

.faq-item p {
    font-size: 0.875rem;
    color: #1F2937;
    line-height: 1.4;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    text-align: left;
}

.faq-item.active p {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.5rem;
}

/* Outro Section */
.vpn-outro {
    background: #FFFFFF;
    padding: 3rem 0;
}

.vpn-outro .outro-card {
    background: #F0F9FF;
    border: 1px solid #00AEEF;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.vpn-outro h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
    text-align: left;
}

.vpn-outro p {
    font-size: 1rem;
    color: #1F2937;
    line-height: 1.6;
    text-align: left;
}

.vpn-outro a {
    color: #00AEEF;
    text-decoration: none;
}

.vpn-outro a:hover {
    text-decoration: underline;
    color: #008BCF;
}

/* Футер */
footer {
    background: #111827;
    color: #FFFFFF;
    padding: 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }
}

.footer-section {
    flex: 1 1;
    min-width: 150px;
}

@media (max-width: 767px) {
    .footer-section {
        flex: 1 1 45%;
    }

    .footer-section:nth-child(4), .footer-section:nth-child(5) {
        flex: 1 1;
    }
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
    text-align: left;
}

.footer-section a:hover {
    color: #60A5FA;
}

.social-links {
    display: flex;
    flex-direction: row !important;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 767px) {
    .social-links {
        gap: 0.75rem;
    }
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-bottom {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-legal {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-legal a {
    color: #D1D5DB;
    text-decoration: none;
    margin: 0;
}

.footer-legal a:hover {
    color: #60A5FA;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .vpn-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .vpn h1 {
        font-size: 1.75rem;
    }

    .vpn p {
        font-size: 1rem;
    }

    .vpn-intro h2 {
        font-size: 1.25rem;
    }

    .vpn-intro p {
        font-size: 0.875rem;
    }

    .vpn-promo h2 {
        font-size: 1.25rem;
    }

    .vpn-promo p {
        font-size: 0.875rem;
    }

    .vpn-outro h2 {
        font-size: 1.25rem;
    }

    .vpn-outro p {
        font-size: 0.875rem;
    }

    .vpn-cards {
        grid-template-columns: 1fr;
    }

    .vpn-card {
        padding: 1rem;
        max-width: 100%;
    }

    .vpn-card h3 {
        font-size: 1rem;
    }

    .vpn-card p {
        font-size: 0.75rem;
    }

    .vpn-card .card-icon i {
        font-size: 2rem;
    }

    .faq h2 {
        font-size: 1.5rem;
    }

    .faq-item {
        padding: 1rem;
    }

    .faq-item h3 {
        font-size: 0.875rem;
    }

    .faq-item p {
        font-size: 0.75rem;
    }
}

/* Стили для нового контейнера с локациями */
.locations-container {
    background: #FFFFFF;
    border: 1px solid #1F2937;
    border-radius: 1rem;
    padding: 3rem;
    max-width: 1000px;
    margin: 2.5rem auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.locations-container h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 2rem;
}

.locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.location-item {
    background: #FFFFFF;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1F2937;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 174, 239, 0.3);
}

.flag-icon {
    width: 64px;
    height: 64px;
    background-size: cover;
    display: inline-block;
    transition: transform 0.3s ease;
}

.location-item:hover .flag-icon {
    transform: scale(1.1);
}