/* Основные стили и переменные */
:root {
    --dark-purple: #4B0082;
    --bright-yellow: #FFD700;
    --graphite-gray: #2E2E2E;
    --smoky-white: #F5F5F5;
    --aquamarine: #7FFFD4;
    
    --font-size-h1: clamp(2rem, 5vw, 3.5rem);
    --font-size-h2: clamp(1.5rem, 4vw, 2.5rem);
    --font-size-h3: clamp(1.2rem, 3vw, 1.8rem);
    --font-size-body: clamp(1rem, 2.5vw, 1.1rem);
    
    --container-max-width: 1200px;
    --section-padding: clamp(3rem, 8vw, 6rem);
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--graphite-gray);
    background-color: var(--smoky-white);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

p {
    font-size: var(--font-size-body);
    margin-bottom: 1rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-purple);
    color: white;
    padding: 1rem;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max-width);
    margin: 0 auto;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-accept {
    background: var(--bright-yellow);
    color: var(--graphite-gray);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background: var(--aquamarine);
    transform: translateY(-2px);
}

.btn-info {
    color: var(--aquamarine);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--aquamarine);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: var(--aquamarine);
    color: var(--dark-purple);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--dark-purple), #6A0DAD);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(75, 0, 130, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2rem;
    font-weight: 900;
    color: var(--bright-yellow);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.logo a:hover {
    color: var(--aquamarine);
    text-shadow: 0 0 10px rgba(127, 255, 212, 0.5);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--bright-yellow);
    color: var(--dark-purple);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-purple), #6A0DAD);
    color: white;
    padding: var(--section-padding) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/tapQLG.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--bright-yellow);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--bright-yellow), var(--aquamarine));
    color: var(--dark-purple);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
    animation: bounce 0.6s ease;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--aquamarine);
}

.btn-secondary:hover {
    background: var(--aquamarine);
    color: var(--dark-purple);
    transform: translateY(-3px);
}

/* Секции */
.section {
    padding: var(--section-padding) 0;
}

.section:nth-child(even) {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--graphite-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.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)); }

/* Карточки */
.card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--smoky-white);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(75, 0, 130, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--bright-yellow), var(--aquamarine));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-image {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.card-image img {
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card h3 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

/* Форма заказа */
.order-form {
    background: linear-gradient(135deg, var(--dark-purple), #6A0DAD);
    padding: var(--section-padding) 0;
    color: white;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--bright-yellow);
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--bright-yellow);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

select.form-control {
    cursor: pointer;
    color: white;
}

select.form-control option {
    background: var(--dark-purple);
    color: white;
    padding: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.2rem;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* FAQ */
.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(75, 0, 130, 0.1);
}

.faq-toggle {
    display: none;
}

.faq-question {
    background: var(--dark-purple);
    color: white;
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    margin: 0;
    border: none;
    user-select: none;
}

.faq-question:hover {
    background: #6A0DAD;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid var(--smoky-white);
}

.faq-toggle:checked + .faq-question + .faq-answer {
    max-height: 500px;
    padding: 2rem;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-toggle:checked + .faq-question .faq-icon {
    transform: rotate(180deg);
}

.faq-toggle:checked + .faq-question {
    background: #6A0DAD;
}

/* Отзывы */
.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.1);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--bright-yellow);
    font-weight: bold;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-purple);
}

/* Footer */
.footer {
    background: var(--graphite-gray);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--bright-yellow);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--aquamarine);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.legal-links {
    list-style: none;
}

.legal-links li {
    margin-bottom: 0.5rem;
}

.legal-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--aquamarine);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Адаптивность */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    :root {
        --section-padding: 2rem;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}
