/* --- Переменные (Палитра: Аквамариновый Космос) --- */
:root {
    --dark-bg: #000a1a; /* Глубокий, почти черный, с синим оттенком */
    --card-bg: #0d1b32; /* Темно-синий для карточек */
    --accent-aqua: #00ffff; /* Яркий аквамарин/циан */
    --secondary-aqua: #008080; /* Темный аквамарин для градиентов */
    --light-text: #e6f7ff;
    --subtle-text: #708090;
    --shadow-light: rgba(0, 255, 255, 0.4);
}

/* --- Общие Стили --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hidden {
    display: none !important;
}

/* --- Главная Секция --- */
.hero-section {
    min-height: 70vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    
    /* Фон с радиальным градиентом и легким шумом */
    background: 
        radial-gradient(circle at center, #1e2a3c 0%, var(--dark-bg) 100%),
        repeating-linear-gradient(0deg, #000a1a 0px, #000a1a 1px, transparent 1px, transparent 2px);
}

.tech-title {
    font-family: 'Rajdhani', sans-serif; /* Технологичный шрифт */
    font-size: 4.5em;
    margin-bottom: 30px;
    color: var(--light-text);
    /* Неоновое свечение */
    text-shadow: 0 0 10px var(--accent-aqua), 0 0 20px rgba(0, 255, 255, 0.5);
    font-weight: 700;
}

/* --- Анимация Pulse для Главной Кнопки --- */
.main-button {
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: 700;
    /* Аквамариновый градиент */
    background: linear-gradient(145deg, var(--accent-aqua), var(--secondary-aqua));
    border: none;
    border-radius: 50px; /* Более округлая форма */
    color: var(--dark-bg); /* Темный текст на аквамарине */
    cursor: pointer;
    box-shadow: 0 0 20px var(--shadow-light);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.pulse {
    animation: pulse-anim 2s infinite ease-in-out;
}

@keyframes pulse-anim {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.95; }
    100% { transform: scale(1); opacity: 1; }
}

.main-button:hover {
    box-shadow: 0 0 30px var(--accent-aqua);
}

/* --- Секция Тарифов --- */
.tariffs-container {
    width: 90%;
    max-width: 1200px;
    padding: 60px 0;
    text-align: center;
}

.tariffs-container h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3em;
    margin-bottom: 50px;
    color: var(--accent-aqua);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.tariffs-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.tariff-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.2); 
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

.tariff-card:hover {
    transform: translateY(-8px);
    border: 1px solid var(--accent-aqua);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px var(--shadow-light);
}

/* Анимация появления */
@keyframes fade-in-up {
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
.fade-in.visible {
    animation: fade-in-up 0.6s ease-out forwards;
}

/* --- Стили для Квадратных Иконок-Изображений --- */
.tariff-icon-img {
    width: 80px; /* Размер иконки */
    height: 80px;
    border-radius: 10px; /* Немного закругленные углы */
    object-fit: cover; /* Для корректного отображения изображения */
    margin-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Применение эффекта свечения к изображению */
.aqua-icon {
    /* Добавляем стилизацию свечения к контейнеру изображения */
    box-shadow: 0 0 15px var(--shadow-light); 
    border: 2px solid var(--accent-aqua);
}

.tariff-card:hover .tariff-icon-img {
    transform: scale(1.1) rotate(2deg); /* Небольшая анимация при наведении */
    box-shadow: 0 0 25px var(--accent-aqua);
}
/* Конец стилей для изображений */


.tariff-card h3 {
    font-size: 1.8em;
    margin: 15px 0;
    color: var(--accent-aqua);
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.tariff-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
    width: 100%;
    flex-grow: 1;
}

.tariff-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    display: flex;
    align-items: center;
    font-weight: 400;
}

.check-icon {
    margin-right: 10px;
    color: #4affb5; /* Неоново-зеленый для контраста */
}

.gray-out, .faded-feature {
    color: var(--subtle-text);
    opacity: 0.6;
}

/* --- Оформление Выделенной Карточки ("Профессиональный") --- */
.featured {
    border: 3px solid var(--accent-aqua);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.7); 
    animation: featured-glow 4s infinite alternate ease-in-out;
}

@keyframes featured-glow {
    0% {
        box-shadow: 0 0 50px rgba(0, 255, 255, 0.7);
    }
    100% {
        box-shadow: 0 0 60px rgba(0, 255, 255, 1.0), 0 0 15px var(--secondary-aqua);
    }
}


/* --- Секция Цены и Кнопки (Техно) --- */
.price-tag {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column; 
    align-items: center;
    padding-top: 25px;
    position: relative;
}

/* Аквамариновый разделитель */
.price-tag::before {
    content: '';
    position: absolute;
    top: 0;
    width: 70%;
    height: 3px; /* Толще для акцента */
    background: var(--accent-aqua);
    box-shadow: 0 0 10px var(--shadow-light);
}

.price-tag .price {
    font-size: 2.8em; /* Максимальный акцент */
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--accent-aqua);
    text-shadow: 0 0 10px var(--shadow-light);
    margin-bottom: 18px;
}

.details-button {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 800;
    width: 100%; 
    /* Обратный градиент для кнопки */
    background: linear-gradient(145deg, var(--secondary-aqua), var(--accent-aqua));
    border: 1px solid var(--accent-aqua);
    color: var(--dark-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
}

.details-button:hover {
    background: var(--accent-aqua);
    transform: translateY(-3px) scale(1.01); 
    box-shadow: 0 0 30px var(--accent-aqua); 
}

/* --- Модальное Окно --- */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95); /* Очень темный оверлей */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 2px solid var(--accent-aqua);
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--shadow-light);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    color: var(--subtle-text);
    font-size: 32px;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--accent-aqua);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 2.2em;
    color: var(--accent-aqua);
    margin-top: 10px;
    font-family: 'Rajdhani', sans-serif;
}

.modal-features {
    list-style: none;
    margin-bottom: 30px;
    padding: 0 20px;
}

.modal-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.modal-features li i {
    margin-right: 10px;
    color: #4affb5;
}

.buy-button {
    width: 100%;
    padding: 15px;
    font-size: 1.4em;
    font-weight: 800;
    color: var(--dark-bg);
    background: linear-gradient(90deg, var(--secondary-aqua), var(--accent-aqua));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
}

.buy-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--accent-aqua);
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .tariffs-grid {
        flex-direction: column;
        align-items: center;
    }
    .tariff-card {
        max-width: 90%;
    }
    .tech-title {
        font-size: 2.8em;
    }
}