/* ============================= */
/* Базовые стили и сброс */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================= */
/* Переменные CSS */
/* ============================= */
:root {
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --primary-opacity-10: rgba(59, 130, 246, 0.1);
    --primary-opacity-20: rgba(59, 130, 246, 0.2);
    --primary-opacity-30: rgba(59, 130, 246, 0.3);
    --primary-opacity-50: rgba(59, 130, 246, 0.5);
    --primary-opacity-90: rgba(59, 130, 246, 0.9);
    
    --black: #000000;
    --white: #FFFFFF;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --font-inter: 'Inter', sans-serif;
    --font-pacifico: 'Pacifico', cursive;
}

/* ============================= */
/* Типография */
/* ============================= */
body {
    font-family: var(--font-inter);
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-300);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary);
}

/* Медиа запросы для типографии */
@media (min-width: 768px) {
    h1 {
        font-size: 3.75rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

/* ============================= */
/* Утилитарные классы */
/* ============================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-primary {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-white {
    color: var(--white);
}

.text-gray-300 {
    color: var(--gray-300);
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mr-8 {
    margin-right: 2rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pt-20 {
    padding-top: 5rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pl-2 {
    padding-left: 0.5rem;
}

.pl-6 {
    padding-left: 1.5rem;
}

.pl-12 {
    padding-left: 3rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-12 {
    padding: 3rem;
}

/* ============================= */
/* Флексбокс утилиты */
/* ============================= */
.flex {
    display: flex;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Space утилиты - более полная версия */
.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-0 > * + * {
    margin-top: 0;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

/* ============================= */
/* Сетка */
/* ============================= */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* ============================= */
/* Позиционирование */
/* ============================= */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* ============================= */
/* Размеры */
/* ============================= */
.w-full {
    width: 100%;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-7 {
    width: 1.75rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.w-16 {
    width: 4rem;
}

.w-48 {
    width: 12rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-7 {
    height: 1.75rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-14 {
    height: 3.5rem;
}

.h-16 {
    height: 4rem;
}

.h-auto {
    height: auto;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-full {
    max-width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ============================= */
/* Границы */
/* ============================= */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.border-gray-800 {
    border-color: var(--gray-800);
}

.border-gray-900 {
    border-color: var(--gray-900);
}

.border-white {
    border-color: var(--white);
}

.border-primary {
    border-color: var(--primary);
}

/* Стили для вложенных классов opacity */
.text-primary.hover\:text-sky-400:hover {
    color: #38BDF8;
}

/* Дополнительные hover состояния */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-103:hover {
    transform: scale(1.03);
}

/* ============================= */
/* Закругления */
/* ============================= */
.rounded {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-button {
    border-radius: 12px;
}

/* ============================= */
/* Фоны */
/* ============================= */
.bg-black {
    background-color: var(--black);
}

.bg-white {
    background-color: var(--white);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-transparent {
    background-color: transparent;
}

.bg-gray-900 {
    background-color: var(--gray-900);
}

.bg-gray-800 {
    background-color: var(--gray-800);
}

.bg-opacity-10 {
    background-color: var(--primary-opacity-10);
}

.bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.bg-opacity-60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.bg-opacity-80 {
    background-color: rgba(0, 0, 0, 0.8);
}

.bg-opacity-90 {
    background-color: rgba(0, 0, 0, 0.9);
}

.bg-opacity-95 {
    background-color: rgba(0, 0, 0, 0.95);
}

/* ============================= */
/* Эффекты */
/* ============================= */
.opacity-0 {
    opacity: 0;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-100 {
    opacity: 1;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-primary {
    box-shadow: 0 10px 50px -12px var(--primary-opacity-90);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-all {
    transition-property: all;
}

.duration-300 {
    transition-duration: 300ms;
}

.transform {
    transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0));
}

.-translate-x-1\/2 {
    --tw-translate-x: -50%;
}

.scale-103:hover {
    transform: scale(1.03);
}

.scale-105:hover {
    transform: scale(1.05);
}

/* ============================= */
/* Другие утилиты */
/* ============================= */
.overflow-hidden {
    overflow: hidden;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.list-disc {
    list-style-type: disc;
}

.focus\:outline-none:focus {
    outline: none;
}

/* Для центрирования изображений */
img.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

img.rounded-xl {
    border-radius: 0.75rem;
}

/* Тени для изображений */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-\[0_10px_50px_-12px_rgba\(59\,130\,246\,1\)\] {
    box-shadow: 0 10px 50px -12px rgba(59, 130, 246, 1);
}

/* ============================= */
/* Компоненты */
/* ============================= */

/* Градиентный фон */
.gradient-bg {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(18, 18, 18, 1) 50%,
        rgba(0, 0, 0, 1) 100%
    );
}

/* Hero градиент */
.hero-gradient {
    background: radial-gradient(circle at 70% 50%, var(--primary-opacity-10) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Карточка функции */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid var(--primary-opacity-30);
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-opacity-90);
    box-shadow: 0 10px 30px -10px var(--primary-opacity-90);
}

/* Навигационная ссылка */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Выпадающее меню */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* CTA кнопка */
.cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    background-color: var(--primary-hover);
}

/* Прокрутка вниз */
.scroll-down {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Анимация появления секции */
.section-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Глобус безопасности */
.security-globe {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--primary-opacity-20) 0%, rgba(0, 0, 0, 0) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.security-globe::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--primary-opacity-30);
    box-shadow: 0 0 30px var(--primary-opacity-20);
}

.globe-lines {
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 1px solid var(--primary-opacity-10);
    animation: rotate 20s linear infinite;
}

.globe-lines:nth-child(2) {
    width: 140%;
    height: 140%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.globe-lines:nth-child(3) {
    width: 160%;
    height: 90%;
    animation-duration: 25s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Карточка тарифа */
.pricing-card {
    transition: all 0.3s ease;
    border: 1px solid var(--primary-opacity-10);
    background: rgba(10, 10, 10, 0.5);
}

.pricing-card:hover {
    transform: scale(1.03);
    border-color: var(--primary-opacity-50);
    box-shadow: 0 10px 30px -10px var(--primary-opacity-30);
}

.pricing-card.popular {
    border-color: var(--primary-opacity-50);
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, var(--primary-opacity-10) 100%);
}

/* Переключатель */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* ============================= */
/* Медиа запросы */
/* ============================= */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .sm\:space-y-0 > * + * {
        margin-top: 0;
    }
    
    .sm\:space-x-4 > * + * {
        margin-left: 1rem;
    }
    
    .sm\:space-x-6 > * + * {
        margin-left: 1.5rem;
    }
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }
    
    .md\:block {
        display: block;
    }
    
    .md\:flex {
        display: flex;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md\:w-1\/2 {
        width: 50%;
    }
    
    .md\:mb-0 {
        margin-bottom: 0;
    }
    
    .md\:text-2xl {
        font-size: 1.5rem;
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .lg\:flex-row {
        flex-direction: row;
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:w-1\/2 {
        width: 50%;
    }
    
    .lg\:mb-0 {
        margin-bottom: 0;
    }
    
    .lg\:pl-12 {
        padding-left: 3rem;
    }
}

/* ============================= */
/* Специфичные стили для страниц */
/* ============================= */

/* Hero секция */
#hero {
    background-size: cover;
    background-position: center;
}

#hero.h-25vh {
    height: 25vh;
}

/* Для contact.html */
.max-w-500 {
    max-width: 500px;
}

/* Классы высоты */
.h-\[25vh\] {
    height: 25vh;
}

/* Минимальная высота экрана */
.min-h-screen {
    min-height: 100vh;
}

/* Тени с кастомными значениями */
.shadow-\[0_10px_50px_-12px_rgba\(59\,130\,246\,1\)\] {
    box-shadow: 0 10px 50px -12px rgba(59, 130, 246, 1);
}

/* Закругления с восклицательным знаком */
.\!rounded-button {
    border-radius: 12px !important;
}

/* Текстовые размеры */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-1xl {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

/* Leading (line-height) */
.leading-tight {
    line-height: 1.25;
}

/* Max width с квадратными скобками */
.max-w-\[500px\] {
    max-width: 500px;
}

/* Background opacity для конкретных значений */
.bg-primary.bg-opacity-10 {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Hover состояния для конкретных элементов */
.hover\:bg-blue-600:hover {
    background-color: #2563EB;
}

.hover\:text-sky-400:hover {
    color: #38BDF8;
}

/* Анимационные задержки для section-fade-in */
.section-fade-in[style*="animation-delay: 0.1s"] {
    animation-delay: 0.1s;
}

.section-fade-in[style*="animation-delay: 0.2s"] {
    animation-delay: 0.2s;
}

.section-fade-in[style*="animation-delay: 0.3s"] {
    animation-delay: 0.3s;
}

.section-fade-in[style*="animation-delay: 0.4s"] {
    animation-delay: 0.4s;
}

.section-fade-in[style*="animation-delay: 0.5s"] {
    animation-delay: 0.5s;
}

.section-fade-in[style*="animation-delay: 0.6s"] {
    animation-delay: 0.6s;
}

/* Отрицательные значения z-index */
.-z-1 {
    z-index: -1;
}

/* Transform для translate */
.transform {
    transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

/* Комбинированные классы для left-1/2 и transform */
.left-1\/2.transform.-translate-x-1\/2 {
    left: 50%;
    transform: translateX(-50%);
}

/* Ширина и высота иконок Remix */
.ri-menu-line,
.ri-close-line,
.ri-arrow-down-s-line,
.ri-shield-check-line,
.ri-speed-line,
.ri-eye-off-line,
.ri-global-line,
.ri-wifi-line,
.ri-battery-charge-line,
.ri-check-line,
.ri-arrow-down-line,
.ri-device-line,
.ri-settings-3-line,
.ri-speed-up-line,
.ri-shield-keyhole-line,
.ri-server-line,
.ri-checkbox-circle-line,
.ri-shield-star-line,
.ri-customer-service-2-line,
.ri-refresh-line,
.ri-apple-fill,
.ri-lock-line,
.ri-mail-line,
.ri-time-line {
    font-size: inherit;
}

/* Фиксированные размеры текста для иконок */
.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

/* Стили для списков в правовых документах */
ul[aria-level] {
    margin-bottom: 1rem;
}

/* Курсор */
.cursor-pointer {
    cursor: pointer;
}

/* Дополнительные классы для мобильного меню */
@media (max-width: 767px) {
    .md\:hidden.hidden {
        display: none;
    }
}

/* Классы для space между элементами (для responsive) */
@media (min-width: 640px) {
    .sm\:space-y-0 > * + * {
        margin-top: 0;
    }
    
    .sm\:space-x-4 > * + * {
        margin-left: 1rem;
    }
    
    .sm\:space-x-6 > * + * {
        margin-left: 1.5rem;
    }
}

/* Хвер эффекты для ссылок */
.hover\:text-primary:hover {
    color: var(--primary);
}

.hover\:text-sky-400:hover {
    color: #38BDF8;
}

.hover\:bg-gray-800:hover {
    background-color: var(--gray-800);
}

.hover\:bg-blue-600:hover {
    background-color: var(--primary-hover);
}

.hover\:border-primary:hover {
    border-color: var(--primary);
}

.hover\:opacity-100:hover {
    opacity: 1;
}

/* Дополнительные стили для изображений */
img {
    transition: transform 0.3s ease;
    display: block;
}

img:hover {
    transform: scale(1.05);
}

/* Inline стили для max-height (используются в HTML) */
img[style*="max-height"] {
    height: auto;
    width: auto;
    max-width: 100%;
}

/* Стили для правовых страниц */
strong {
    font-weight: 700;
}

/* Aria level для списков */
li[aria-level="1"] {
    margin-left: 0;
}

li[aria-level="2"] {
    margin-left: 2rem;
}