/* 
=== Современный адаптивный CSS для сайта Domain ===
Цветовая палитра:
- Основной фон: #1F1F1F (глубокий графитовый)
- Акцент: #00FFC6 (неоновый мятно-зеленый)
- Вторичный акцент: #FF3B6B (насыщенный кораллово-розовый)
- Дополнительно: #FFD54F (пастельно-желтый)
- Текст: #FFFFFF и #CCCCCC
*/

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-primary: #1F1F1F;
    --color-accent-mint: #00FFC6;
    --color-accent-coral: #FF3B6B;
    --color-accent-yellow: #FFD54F;
    --color-text-white: #FFFFFF;
    --color-text-light: #CCCCCC;
    --gradient-diagonal: linear-gradient(135deg, var(--color-accent-mint), var(--color-accent-coral));
    --gradient-dark: linear-gradient(135deg, #1F1F1F, #2A2A2A);
    --shadow-glow: 0 0 20px rgba(0, 255, 198, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    background: var(--gradient-diagonal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-text-white);
}

h3 {
    font-size: 1.8rem;
    color: var(--color-accent-mint);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-mint), transparent);
    opacity: 0.3;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 198, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--color-accent-mint);
    text-shadow: 0 0 10px rgba(0, 255, 198, 0.5);
}

.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-mint);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--color-accent-mint);
}

.nav a:hover::after {
    width: 100%;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-diagonal);
    color: var(--color-text-white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 198, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent-yellow);
    border: 2px solid var(--color-accent-yellow);
}

.btn-secondary:hover {
    background: var(--color-accent-yellow);
    color: var(--color-bg-primary);
    box-shadow: 0 0 20px rgba(255, 213, 79, 0.4);
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 198, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: center;
}

.hero h1 {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === GRID LAYOUTS === */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* === CARDS === */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-diagonal);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent-mint);
    box-shadow: 0 20px 40px rgba(0, 255, 198, 0.1);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    margin-bottom: 1rem;
}

.card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-yellow);
    margin: 1rem 0;
}

/* === FORMS === */
.form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-white);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent-mint);
    box-shadow: 0 0 10px rgba(0, 255, 198, 0.2);
}

.form-control::placeholder {
    color: var(--color-text-light);
}

select.form-control {
    cursor: pointer;
    color: var(--color-text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

select.form-control option {
    background-color: var(--color-bg-primary);
    color: var(--color-text-white);
    padding: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent-mint);
}

/* === STEPS === */
.steps {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-diagonal);
    z-index: 1;
}

.step {
    background: var(--color-bg-primary);
    border: 3px solid var(--color-accent-mint);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.step-content {
    text-align: center;
    margin-top: 1rem;
}

/* === FOOTER === */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-accent-mint);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-accent-mint);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* === COOKIE POPUP === */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-accent-mint);
    color: #000000 !important;
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-popup * {
    color: #000000 !important;
}

.cookie-popup p {
    color: #000000 !important;
    margin: 0;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-popup .btn {
    background: var(--color-bg-primary);
    color: #FFFFFF !important;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    .nav {
        display: none; /* Упрощенная мобильная версия */
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .steps::before {
        display: none;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .form {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* === ANIMATIONS === */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === PRINT STYLES === */
@media print {
    .header, .cookie-popup {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
