* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.phone-link {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s;
}

.phone-link:hover {
    transform: scale(1.05);
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s;
}

.hero-image {
    margin: 40px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255,107,107,0.6);
}

.btn-large {
    padding: 22px 50px;
    font-size: 22px;
}

/* Преимущества */
.benefits {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #667eea;
}

/* Квиз */
.quiz-section {
    padding: 80px 0;
    background: white;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

.quiz-question {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.quiz-select,
.quiz-input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.quiz-select:focus,
.quiz-input:focus {
    outline: none;
    border-color: #667eea;
}

.quiz-next,
.quiz-submit {
    width: 100%;
    margin-top: 20px;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.delivery-btn {
    padding: 15px 30px;
    font-size: 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.delivery-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
    font-size: 12px;
    color: #666;
}

.checkbox-label input {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

/* Галерея */
.gallery {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* CTA */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 20px;
    margin-bottom: 30px;
}

.phone-link-large {
    display: block;
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin-top: 20px;
    text-decoration: none;
}

/* Футер */
.footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Фиксированный телефон на мобильных */
.fixed-phone {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255,107,107,0.5);
    z-index: 999;
    animation: pulse 2s infinite;
    text-decoration: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(255,107,107,0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 5px 30px rgba(255,107,107,0.8);
    }
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.modal-content form input:focus {
    outline: none;
    border-color: #667eea;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .fixed-phone {
        display: flex;
    }
    
    .phone-link {
        font-size: 16px;
    }
    
    .quiz-container {
        padding: 20px;
    }
}

@media (min-width: 769px) {
    .fixed-phone {
        display: none;
    }
}