* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logo-img {
    width: 273px;
    height: 103px;
    object-fit: contain;
    display: block;
}

.logo h1 {
    color: var(--secondary-color);
    font-size: 28px;
    margin-bottom: 5px;
}

.logo p {
    color: #666;
    font-size: 14px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.phone-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--primary-color);
}

.btn-callback {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-callback:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Главный баннер */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0066cc 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.phone-link-large {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 30px;
    border: 2px solid var(--white);
    border-radius: 30px;
    transition: all 0.3s;
}

.phone-link-large:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* Преимущества */
.advantages {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.advantage-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 22px;
}

/* Галерея */
.gallery {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-cta {
    text-align: center;
}

/* Квиз */
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.quiz-progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 25%;
    transition: width 0.3s;
    border-radius: 3px;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.quiz-question {
    color: var(--secondary-color);
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background: #fff5f2;
}

.quiz-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.quiz-option span {
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

.quiz-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: bold;
}

.quiz-option:has(input:checked) {
    border-color: var(--primary-color);
    background: #fff5f2;
}

.quiz-range {
    margin-bottom: 30px;
}

#areaRange {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

#areaRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

#areaRange::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.range-value {
    text-align: center;
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 20px;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-secondary {
    background: #e0e0e0;
    color: var(--text-color);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.quiz-form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-form-fields input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    color: #333;
}

.quiz-form-fields input::placeholder {
    color: #999;
}

.quiz-form-fields input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Цены */
.pricing {
    padding: 80px 0;
    background: var(--light-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.price-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s;
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.price-card h3 {
    color: var(--secondary-color);
    font-size: 28px;
    margin-bottom: 20px;
}

.price {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 30px;
}

.price-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-features li:before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Процесс работы */
.process {
    padding: 80px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.process-step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 22px;
}

.process-cta {
    text-align: center;
}

/* Футер */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 10px;
}

.footer-contact {
    text-align: right;
}

.footer-links {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* Модальные окна */
.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;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.callback-form input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    color: #333;
}

.callback-form input::placeholder {
    color: #999;
}

.callback-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Плавающая кнопка телефона */
.floating-phone {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    z-index: 1500;
    animation: pulse 2s infinite;
    text-decoration: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    }
}

.floating-phone svg {
    width: 28px;
    height: 28px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        text-align: center;
    }

    .logo-img {
        width: 200px;
        height: auto;
        max-height: 75px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .header-phone {
        flex-direction: column;
        width: 100%;
    }

    .btn-callback {
        width: 100%;
    }

    .hero-cta {
        flex-direction: column;
    }

    .phone-link-large {
        width: 100%;
        text-align: center;
    }

    .quiz-container {
        padding: 20px;
    }

    .quiz-question {
        font-size: 20px;
    }

    .quiz-option span {
        font-size: 16px;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    .floating-phone {
        display: flex;
    }
}

@media (min-width: 769px) {
    .floating-phone {
        display: none;
    }
}