/* Domain - Стильный адаптивный CSS */
:root {
    --primary-color: #C6FF00;        /* Электрический лайм */
    --accent-color: #6A0DAD;         /* Фиолетовый ультрамарин */
    --bg-color: #121212;             /* Темно-серый */
    --text-color: #F8F8F2;           /* Молочный белый */
    --gradient-button: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%);
    --card-bg: rgba(248, 248, 242, 0.05);
    --glow-shadow: 0 0 20px rgba(198, 255, 0, 0.3);
    --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Контейнеры и сетка */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.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));
}

.flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Заголовок сайта */
header {
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(106, 13, 173, 0.1) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(198, 255, 0, 0.2);
}

.logo svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(var(--glow-shadow));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-button);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Героический блок */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(106, 13, 173, 0.1) 50%, var(--bg-color) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(198, 255, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-button);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--soft-shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 201, 255, 0.4);
}

/* Карточки */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(198, 255, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-button);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-shadow);
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    filter: brightness(0.8) contrast(1.1);
    transition: filter 0.3s ease;
}

.card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
    transition: all 0.3s ease;
}

.card-img:hover {
    transform: scale(1.02);
    filter: brightness(1) contrast(1.2);
}

.card:hover img {
    filter: brightness(1) contrast(1.2);
}

/* Секции */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    width: 100px;
    height: 4px;
    background: var(--gradient-button);
    display: block;
    margin: 1rem auto;
    border-radius: 2px;
}

/* Форма */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(198, 255, 0, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: var(--soft-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(198, 255, 0, 0.2);
    background: rgba(248, 248, 242, 0.1);
    border-radius: 15px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select option {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 10px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(198, 255, 0, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

/* Подвал */
footer {
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.1) 0%, var(--bg-color) 100%);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(198, 255, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(198, 255, 0, 0.1);
    opacity: 0.7;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--accent-color), #4A0E78);
    color: var(--text-color);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: all 0.5s ease;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--gradient-button);
    color: var(--bg-color);
}

.cookie-decline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    section {
        padding: 50px 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    /* Adaptations pour la section À Propos */
    #about .grid-2 div:last-child {
        padding-left: 0 !important;
        padding-top: 2rem;
    }
    
    .card-img {
        height: 250px;
    }
    
    /* Адаптация SVG иконки для мобильных */
    .success-icon {
        width: 60px;
        height: 60px;
    }
    
    /* Кнопки на мобильных */
    .btn-outline {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* Анимации загрузки */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Глянцевые эффекты */
.glossy {
    position: relative;
    overflow: hidden;
}

.glossy::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.glossy:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* Стили для кнопок с прозрачным фоном */
.btn-outline {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    background: var(--primary-color) !important;
    color: var(--bg-color) !important;
}

/* SVG иконки */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    filter: drop-shadow(var(--glow-shadow));
} 