/* ===== ОБЩИЕ СТИЛИ ===== */
:root {
    --primary: #7c3aed;    /* Современный фиолетовый */
    --secondary: #f59e0b;  /* Теплый оранжевый */
    --accent: #06d6a0;     /* Свежий акцентный */
    --dark: #1e293b;       /* Темный фон */
    --light: #f8fafc;      /* Светлый фон */
    --text: #334155;       /* Основной текст */
    --text-light: #64748b; /* Второстепенный текст */
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #7c3aed, #f59e0b);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== ХЕДЕР ===== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    box-shadow: var(--shadow);
}

h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

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

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

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

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h2 {
    text-align: center;
    color: var(--dark);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

/* ===== ФИЧИ ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature {
    padding: 25px;
    background: linear-gradient(135deg, var(--white), #f8fafc);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ===== ТАРИФЫ ===== */
.tariffs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.tariff {
    background: linear-gradient(135deg, var(--white), #f8fafc);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.tariff::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.tariff:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tariff h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0;
}

.price span {
    color: var(--secondary);
}

.description {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ===== КНОПКИ ===== */
.btn, .cta a, button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn:hover, .cta a:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active, .cta a:active, button:active {
    transform: translateY(0);
}

/* ===== ЧАТ ===== */
#chat-container {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

#chat-box {
    height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    margin-top: 20px;
    background: var(--white);
    border-radius: var(--radius);
}

.my-message, .other-message {
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 10px;
    max-width: 70%;
    word-wrap: break-word;
}

.my-message {
    background: var(--primary);
    color: var(--white);
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.other-message {
    background: var(--light);
    color: var(--text);
    border-bottom-left-radius: 5px;
}

/* ===== ФОРМЫ ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

label {
    font-weight: 600;
    color: var(--dark);
}

input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* ===== ФУТЕР ===== */
footer {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

/* ===== БАННЕР COOKIE ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.cookie-banner a {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-banner button {
    background: var(--secondary);
    color: var(--dark);
    white-space: nowrap;
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
}

/* ===== БЕГУЩАЯ СТРОКА ===== */
.marquee {
    background: var(--gradient);
    color: var(--white);
    font-size: 14px;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.marquee p {
    animation: marquee 20s linear infinite;
    white-space: nowrap;
    padding: 0;
    margin: 0;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.shield {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw 2s ease-in-out infinite alternate;
}

@keyframes draw {
    0% { stroke-dashoffset: 300; }
    100% { stroke-dashoffset: 0; }
}

.text {
    margin-top: 20px;
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        display: flex;
    }
    
    nav a {
        margin: 5px 20px;
        text-align: center;
    }
    
    .container {
        padding: 20px;
        margin: 15px auto;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .tariffs {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 15px;
        height: 60px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .feature, .tariff {
        padding: 20px 15px;
    }
}