/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--orange {
    background: #ff6b35;
    color: #fff;
}

.btn--orange:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn--outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn--outline:hover {
    background: #667eea;
    color: #fff;
}

.btn--white {
    background: #fff;
    color: #667eea;
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn--full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo__text {
    font-size: 18px;
    font-weight: 800;
    color: #333;
    letter-spacing: 1px;
}

.logo__city {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    letter-spacing: 2px;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__list a {
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.nav__list a:hover {
    color: #667eea;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.phone__icon {
    font-size: 20px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav a {
    display: block;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-phone {
    display: block;
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.hero__content {
    max-width: 700px;
}

.hero__title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero__features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature__icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Section Title */
.section__title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.section__title--left {
    text-align: left;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.service-card__icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.service-card__text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card__price {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.portfolio-card__image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.portfolio-card__info {
    padding: 25px;
    background: #fff;
}

.portfolio-card__info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.portfolio-card__info p {
    font-size: 14px;
    color: #666;
}

/* Prices Section */
.prices {
    padding: 100px 0;
    background: #f8f9fa;
}

.prices__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.price-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
}

.price-card--popular {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    border: 2px solid #667eea;
}

.price-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.price-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.price-card__price {
    font-size: 42px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 30px;
}

.price-card__price span {
    font-size: 18px;
    font-weight: 500;
    color: #666;
}

.price-card__list {
    text-align: left;
    margin-bottom: 30px;
}

.price-card__list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.price-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feature__number {
    font-size: 42px;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.about-feature__text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.about-feature__text p {
    font-size: 14px;
    color: #666;
}

.about__image-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta__inner {
    text-align: center;
    color: #fff;
}

.cta__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta__text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Contacts Section */
.contacts {
    padding: 100px 0;
    background: #f8f9fa;
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-item__content strong {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.contact-item__content a,
.contact-item__content p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.contacts__form {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contacts__form h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.contacts__form input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.contacts__form input:focus {
    outline: none;
    border-color: #667eea;
}

.form__privacy {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
    text-align: center;
}

.form__privacy a {
    color: #667eea;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo .logo__text {
    color: #fff;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer__links a:hover {
    color: #fff;
}

.footer__phone a {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.footer__copy {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal__content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal__close:hover {
    background: #667eea;
    color: #fff;
}

/* Quiz */
.quiz__step {
    display: none;
}

.quiz__step.active {
    display: block;
}

.quiz__progress {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.quiz__progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s;
}

.quiz__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.quiz__options {
    display: grid;
    gap: 15px;
}

.quiz__option {
    cursor: pointer;
}

.quiz__option input {
    display: none;
}

.quiz__option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 500;
}

.quiz__option input:checked + .quiz__option-content {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.quiz__option-icon {
    font-size: 24px;
}

.quiz__form input,
.quiz__form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.quiz__form textarea {
    height: 100px;
    resize: vertical;
}

.quiz__form input:focus,
.quiz__form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.quiz__success {
    text-align: center;
    padding: 40px 0;
}

.quiz__success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    margin: 0 auto 30px;
}

.quiz__success p {
    color: #666;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prices__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .price-card--popular {
        transform: none;
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }
    
    .header__phone {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .hero__features {
        flex-direction: column;
        gap: 15px;
    }
    
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about__inner {
        grid-template-columns: 1fr;
    }
    
    .about__image {
        order: -1;
    }
    
    .contacts__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero__title {
        font-size: 24px;
    }
    
    .hero__subtitle {
        font-size: 14px;
    }
    
    .section__title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .cases__grid {
        grid-template-columns: 1fr;
    }
    
    .about__features {
        grid-template-columns: 1fr;
    }
    
    .cta__title {
        font-size: 28px;
    }
    
    .modal__content {
        padding: 20px 15px;
    }
    
    .quiz__title {
        font-size: 18px;
    }
    
    .quiz__body {
        flex-direction: column;
    }
    
    .quiz__left {
        display: none;
    }
}

/* New Hero Section */
.hero {
    padding: 100px 0 60px;
    background: #fff;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.hero__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 15px;
    color: #333;
}

.hero__subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Benefit Cards */
.hero__benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.benefit-card__icon {
    width: 22px;
    height: 22px;
    background: #ff6b35;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.benefit-card__text {
    font-size: 13px;
    line-height: 1.4;
}

.benefit-card__text strong {
    display: block;
    color: #333;
    margin-bottom: 2px;
}

.benefit-card__text span {
    color: #666;
}

.btn--large {
    padding: 18px 40px;
    font-size: 17px;
}

.hero__timer {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

.hero__quiz-info {
    margin-top: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.hero__quiz-info p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.hero__quiz-info ul {
    font-size: 14px;
    color: #333;
}

.hero__quiz-info li {
    margin-bottom: 5px;
}

.hero__image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* Cases Section */
.cases {
    padding: 80px 0;
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.case-slider {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.case-slider__images {
    position: relative;
    height: 100%;
}

.case-slider__images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
}

.case-slider__images img.active {
    opacity: 1;
}

.case-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-slider__btn--prev { left: 10px; }
.case-slider__btn--next { right: 10px; }

.case-slider__btn:hover {
    background: #f5f5f5;
}

.case-slider__dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.case-slider__dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.case-slider__dot.active {
    background: #fff;
}

.case-card__info {
    padding: 20px;
}

.case-card__info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.case-card__type {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.case-card__details {
    font-size: 13px;
    color: #333;
    margin-bottom: 15px;
}

.case-card__details div {
    margin-bottom: 5px;
}

.case-card__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Quiz Modal New */
.quiz-modal {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
}

.quiz__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #ff6b35;
}

.quiz__progress-percent {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.quiz__header .modal__close {
    position: static;
    background: transparent;
    color: #fff;
    font-size: 28px;
    width: auto;
    height: auto;
}

.quiz__body {
    display: flex;
}

.quiz__left {
    flex: 1;
    min-height: 400px;
}

.quiz__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz__right {
    flex: 1;
    padding: 30px;
}

.quiz__options--checkbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz__checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz__checkbox:hover {
    border-color: #ddd;
}

.quiz__checkbox input {
    display: none;
}

.quiz__checkbox-box {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quiz__checkbox input:checked + .quiz__checkbox-box {
    background: #ff6b35;
    border-color: #ff6b35;
}

.quiz__checkbox input:checked + .quiz__checkbox-box::after {
    content: "✓";
    color: #fff;
    font-size: 12px;
}

.quiz__checkbox input:checked ~ span:last-child {
    font-weight: 600;
}

.quiz__nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.quiz__btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz__btn--next {
    background: #ff6b35;
    color: #fff;
}

.quiz__btn--next:hover {
    background: #e55a2b;
}

.quiz__btn--back {
    background: #f5f5f5;
    color: #333;
    padding: 12px 18px;
}

.quiz__btn--back:hover {
    background: #eee;
}

.quiz__enter {
    font-size: 13px;
    color: #999;
}

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }
    
    .hero__image {
        order: -1;
    }
    
    .hero__image img {
        height: 300px;
    }
    
    .hero__benefits {
        grid-template-columns: 1fr;
    }
    
    .hero__title {
        font-size: 24px;
    }
    
    .cases__grid {
        grid-template-columns: 1fr;
    }
}
