/* style.css — ПОЛНАЯ ВЕРСИЯ с компактной мобильной шапкой и уменьшенным баннером */

/* ===== Общие сбросы и базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, system-ui, sans-serif;
    line-height: 1.5;
    color: #1e1e2a;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
h2:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #1e3c72;
    margin-top: 0.5rem;
}

.btn {
    display: inline-block;
    background: #1e3c72;
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
    text-align: center;
}
.btn:hover {
    background: #0f2b4f;
}
.btn-outline {
    background: transparent;
    border: 2px solid #1e3c72;
    color: #1e3c72;
}
.btn-outline:hover {
    background: #1e3c72;
    color: #fff;
}

/* ===== Шапка (десктоп) ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}
.header__logo img {
    max-height: 90px;
    width: auto;
}
.header__nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    font-weight: 500;
}
.header__nav a {
    color: #333;
    transition: 0.2s;
}
.header__nav a:hover {
    color: #1e3c72;
}
.header__phone a {
    font-weight: 600;
    color: #1e3c72;
}
.city-selector {
    position: relative;
    cursor: pointer;
}
.city-current {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
}
.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    list-style: none;
    width: 100%;
    display: none;
    z-index: 10;
}
.city-selector:hover .city-dropdown {
    display: block;
}
.city-dropdown li {
    padding: 8px 10px;
    cursor: pointer;
}
.city-dropdown li:hover {
    background: #f5f5f5;
}
.header__callback .btn {
    background: #c9a86c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}
.header__callback .btn:hover {
    background: #b38f4f;
}

/* Десктопный телефон (с текстом) и мобильный (только иконка) */
.header__phone-mobile {
    display: none;
}
.header__phone-desktop {
    display: flex;
    align-items: center;
}

/* Бургер (скрыт на десктопе) */
.header__burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 10;
}
.header__burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #1e3c72;
    margin: 3px 0;
    transition: 0.3s;
}

/* Меню-обёртка (десктоп) */
.header__menu-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    gap: 15px;
}

/* ===== Hero баннер ===== */
.hero {
    background:
        linear-gradient(rgba(71, 71, 71, 0.6), rgba(0, 0, 0, 0.6)),
        url("img/banner.jpg") center/cover no-repeat;
    color: #fff;
    padding: 200px 0;
}
.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hero__content {
    flex: 1 1 50%;
    text-align: left;
}
.hero__content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}
.hero__content .subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
}
.hero__features {
    margin: 30px 0;
}
.hero__features li {
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.hero__features li::before {
    content: "✓";
    background: #ffb347;
    color: #1e1e2a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.hero__form {
    flex: 1 1 350px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    color: #333;
    text-align: left;
}
.hero__form p {
    font-weight: 600;
    margin-bottom: 15px;
}
.hero__form input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    margin-bottom: 15px;
    font-size: 1rem;
}
.hero__form button {
    width: 100%;
}
.hero__form .small {
    font-size: 0.9rem;
    color: #444;
    margin-top: 10px;
}

/* ===== Рейтинги ===== */
.rating {
    background: #fff;
    padding: 40px 0;
}
.rating__list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}
.rating__item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 240px;
    flex: 0 1 auto;
}
.rating__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.rating-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}
.rating-content {
    display: flex;
    flex-direction: column;
}
.rating-content .stars {
    color: #ffc107;
    font-size: 1.4rem;
    letter-spacing: 3px;
    line-height: 1;
    white-space: nowrap;
}
.rating-content span:last-child {
    font-size: 1rem;
    color: #333;
    margin-top: 4px;
    font-weight: 500;
}

/* ===== Цены ===== */
.prices {
    padding: 60px 0;
}
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.price-card {
    background: #f8f9fc;
    border-radius: 20px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.price-icon {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}
.price-card h3 {
    font-size: 1.5rem;
    color: #1e3c72;
    margin-bottom: 20px;
}
.price-list {
    list-style: none;
}
.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
}
.price-list li:last-child {
    border-bottom: none;
}
.price-list .price {
    font-weight: 700;
    color: #1e3c72;
}
.price-card .material-link {
    margin-top: 15px;
    color: #1e3c72;
    font-weight: 600;
    display: inline-block;
}

/* ===== Перечень услуг ===== */
.services-offer {
    padding: 60px 0;
    background: #fff;
}
.services-offer h2 {
    margin-bottom: 40px;
}
.services-offer__inner {
    display: flex;
    gap: 30px;
    align-items: center;
}
.services-offer__image {
    flex: 2;
    text-align: center;
}
.services-offer__form {
    flex: 1;
    background: #fecc12;
    padding: 40px 30px;
    border-radius: 20px;
    color: #333;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.form-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}
.thumb-icon {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}
.guarantee-list {
    list-style: none;
    margin-bottom: 30px;
}
.guarantee-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.guarantee-list i {
    color: #fff;
    font-size: 1.3rem;
}
.offer-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    margin-bottom: 15px;
    font-size: 1rem;
    background: #fff;
}
.offer-form .btn-offer {
    background: #333;
    color: #fff;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.offer-form .btn-offer:hover {
    background: #000;
}

/* ===== Блок "До и после" ===== */
.before-after {
    padding: 60px 0;
    background: #fff;
}
.before-after h2 {
    margin-bottom: 20px;
}
.before-after .subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}
.before-after-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.before-after-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.pair-col {
    text-align: left;
}
.pair-label {
    font-weight: 500;
    color: #1e3c72;
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-align: left;
    padding-left: 5px;
}
.image-container {
    position: relative;
    display: block;
    width: 100%;
}
.image-container img:first-child {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 4px solid #fff;
    box-sizing: border-box;
}
.watermark-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: auto;
    z-index: 2;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.watermark-logo:hover {
    opacity: 1;
}

/* ===== Слайдер (галерея) ===== */
.swiper {
    width: 100%;
    height: 600px;
    margin-top: 30px;
}
.swiper-slide {
    text-align: center;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: rgba(30, 60, 114, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #1e3c72;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: #1e3c72;
}

/* ===== Лайтбокс ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover {
    color: #ccc;
}

/* ===== Почему выгоднее ===== */
.compare {
    padding: 60px 0;
    background: #f8f9fc;
}
.compare__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.compare__col {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.compare__col h3 {
    font-size: 1.8rem;
    color: #1e3c72;
    margin-bottom: 15px;
}
.compare__col p {
    margin-bottom: 15px;
}
.compare__col .badge {
    background: #ffb347;
    color: #1e1e2a;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

/* ===== Этапы работы ===== */
.steps {
    background: #fff;
    padding: 60px 0;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
    counter-reset: step;
}
.step-item {
    text-align: center;
    position: relative;
    counter-increment: step;
}
.step-item:before {
    content: counter(step);
    background: #1e3c72;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
}
.step-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ===== Материалы ===== */
.materials {
    background: #f8f9fc;
    padding: 60px 0;
}
.materials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}
.material-tag {
    background: #fff;
    border: 1px solid #1e3c72;
    color: #1e3c72;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.2s;
}
.material-tag:hover {
    background: #1e3c72;
    color: #fff;
}
.btn-material {
    text-align: center;
    margin-top: 30px;
}

/* ===== Отзывы ===== */
.testimonials {
    padding: 60px 0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.testimonial-card {
    background: #f8f9fc;
    border-radius: 20px;
    padding: 25px;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-author {
    font-weight: 700;
    color: #1e3c72;
}

/* ===== О мастерской ===== */
.about {
    background: #1e3c72;
    color: #fff;
    padding: 60px 0;
}
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.stat {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== Футер ===== */
.footer {
    background: #111;
    color: #aaa;
    padding: 40px 0;
    font-size: 0.9rem;
}
.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer a {
    color: #ccc;
}
.footer a:hover {
    color: #fff;
}
.footer h4 {
    color: #fff;
    margin-bottom: 15px;
}

/* ===== Попап ===== */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 200;
}
.popup__content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    position: relative;
}
.popup__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}
.popup h3 {
    margin-bottom: 20px;
    text-align: center;
}
.popup form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.popup form button {
    width: 100%;
}

/* ===== Блок загрузки фото ===== */
.estimate-upload {
    padding: 60px 0;
    background: #f0f3f8;
}
.estimate-upload h2 {
    margin-bottom: 20px;
}
.estimate-upload p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
}
.estimate-upload__inner {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.estimate-upload__image {
    flex: 1 1 45%;
}
.estimate-upload__image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
.estimate-upload__form {
    flex: 1 1 45%;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.estimate-upload .form-group {
    margin-bottom: 20px;
}
.estimate-upload label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}
.estimate-upload input[type="text"],
.estimate-upload input[type="tel"],
.estimate-upload input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
}
.estimate-upload button {
    width: 100%;
}

/* ===== Чекбокс согласия ===== */
.checkbox-group {
    margin: 15px 0;
    text-align: left;
    font-size: 13px;
}
.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.4;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    vertical-align: middle;
}
.checkbox-group a {
    color: #1e3c72;
    text-decoration: underline;
}
.checkbox-group a:hover {
    text-decoration: none;
}

/* ============================================= */
/* ===== НОВАЯ МОБИЛЬНАЯ ШАПКА (до 768px) ===== */
/* ============================================= */

@media (max-width: 768px) {
    /* ---- Шапка ---- */
    .header__container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding-top: 10px;
        padding-bottom: 10px;
        position: relative;
    }

    .header__logo {
        flex: 0 0 auto;
        max-width: 120px;
    }
    .header__logo img {
        max-height: 50px;
        width: auto;
    }

    .header__right {
        display: flex;
        align-items: center;
        gap: 15px;
        flex: 0 0 auto;
    }

    .header__phone-mobile {
        display: flex;
    }
    .header__phone-desktop {
        display: none;
    }
    .header__phone-mobile .fas {
        font-size: 24px;
        color: #1e3c72;
    }

    .header__burger {
        display: flex;
    }

    .header__menu-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 15px;
        z-index: 200;
        flex: none;
        justify-content: flex-start;
    }

    .header.menu-open .header__menu-wrapper {
        display: flex;
    }

    .header__nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .header__nav ul li {
        width: 100%;
    }
    .header__nav ul li a {
        display: block;
        padding: 8px 0;
    }

    .header__callback .btn {
        width: 100%;
        text-align: center;
    }

    .header__city {
        width: 100%;
    }
    .city-selector {
        width: 100%;
    }
    .city-current {
        display: block;
        width: 100%;
    }

    /* ---- Баннер (hero) ---- */
    .hero {
        padding: 80px 0; /* было 200px */
    }
    .hero__content h1 {
        font-size: 1.8rem; /* было 2.8rem */
    }
    .hero__content .subtitle {
        font-size: 1rem; /* было 1.3rem */
    }
    .hero__form {
        padding: 20px; /* было 30px */
    }
    .hero__features li {
        font-size: 1rem; /* было 1.2rem */
    }

    /* ---- Остальные адаптивные правки ---- */
    h2 {
        font-size: 1.8rem;
    }
    .rating__list {
        gap: 20px;
    }
    .rating__item {
        padding: 15px 20px;
        gap: 15px;
        min-width: 200px;
    }
    .rating-icon {
        width: 40px;
        height: 40px;
    }
    .rating-content .stars {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    .rating-content span:last-child {
        font-size: 0.9rem;
    }
    .services-offer__inner {
        flex-direction: column;
    }
    .services-offer__image,
    .services-offer__form {
        flex: auto;
        width: 100%;
    }
    .before-after-pair {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .watermark-logo {
        width: 20px;
        top: 5px;
        right: 5px;
    }
    .pair-label {
        font-size: 1.1rem;
        padding-left: 0;
    }
    .swiper {
        height: 400px;
    }
    .compare__grid {
        grid-template-columns: 1fr;
    }
    .about__inner {
        grid-template-columns: 1fr;
    }
    .estimate-upload__inner {
        flex-direction: column;
        gap: 20px;
    }
    .estimate-upload__image,
    .estimate-upload__form {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ===== Дополнительно для очень маленьких экранов (до 480px) ===== */
@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }
    .hero__content h1 {
        font-size: 1.4rem;
    }
    .hero__content .subtitle {
        font-size: 0.9rem;
    }
    .hero__features li {
        font-size: 0.9rem;
    }
    .rating__item {
        width: 100%;
        min-width: auto;
    }
}