/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #1a1a1a;
    background: #f7f7f7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Цифры в ценах — шрифт как в примере */
.digit,
[class*="price"] .digit,
.service-item .digit,
.contacts__phone .digit,
.footer__phone .digit {
    font-family: 'Sofia Sans Extra Condensed', 'Inter Tight', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

.price-tag .digit,
.price-tag b, .price-tag strong,
.header__phone .digit {
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 92%;
}

.section-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #000;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.15;
    max-width: 500px;
}

.section-padding {
    padding: 40px 0;
}

/* Cards on gray background */
.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
}

/* ===== HEADER ===== */
.header {
    background: #f7f7f7;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    background: #000;
    border-radius: 16px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid transparent;
    max-width: 1360px;
    margin: 0 auto;
    width: 92%;
}

.header__logo-img {
    height: 100px;
    width: auto;
    display: block;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__nav a {
    font-size: 14px;
    color: #fff;
    transition: color 0.2s;
    font-weight: 400;
}

.header__nav a:hover {
    color: #aaa;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header__social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    color: #fff;
}

.header__social a:hover {
    opacity: 0.6;
}

.header__social a svg {
    width: 86px;
    height: 86px;
}

.header__social a .max-logo,
.contacts__social a .max-logo,
.footer__social a .max-logo {
    width: 100%;
    height: 100%;
}

.btn .max-logo {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.header__hours {
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    text-align: right;
    line-height: 1.3;
}

.header__phones {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.header__phones .header__phone {
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #8bc34a;
    white-space: nowrap;
    line-height: 1.2;
    transition: color 0.2s;
}

.header__phones .header__phone:hover {
    color: #aaa;
}

.header__phones .header__phone--primary {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 700;
}

.header__phones .header__phone--secondary {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 700;
    color: #8bc34a;
}

.header__phone {
    font-size: 18px;
    font-weight: 700;
    color: #8bc34a;
    transition: color 0.2s;
    white-space: nowrap;
}

.header__phone:hover {
    color: #aaa;
}

/* ===== MOBILE MENU TRIGGER ===== */
.menu-trigger {
    display: none;
    width: 24px;
    height: 16px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

/* ===== MOBILE DROPDOWN ===== */
.header__mobile {
    display: none;
    flex-direction: column;
    background: #000;
    max-width: 1360px;
    width: 92%;
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
    padding: 10px 24px 20px;
    gap: 8px;
    position: relative;
    z-index: 100;
}

.header__mobile--open {
    display: flex;
}

/* Dark overlay for mobile menu */
.header__mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

.header__mobile-overlay.active {
    display: block;
}

.header__mobile a {
    color: #fff;
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header__mobile a:last-of-type {
    border-bottom: none;
}

.header__mobile-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.header__mobile-phone {
    font-weight: 600;
    font-size: 16px !important;
}


/* ===== HERO ===== */
.hero {
    padding: 0;
    background: #f7f7f7;
}

.hero__card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    display: flex;
    gap: 0;
    align-items: flex-start;
    max-width: 1360px;
    margin: 0 auto;
    width: 92%;
    overflow: hidden;
}

.hero__content {
    flex: 1;
    padding: 0 40px 20px;
}

.hero__title {
    margin-top: 0;
}

.hero__title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 14px;
    color: #000;
    letter-spacing: -0.5px;
}

.hero__subtitle {
    font-size: 16px;
    color: #777;
    margin-bottom: 28px;
    line-height: 1.15;
}

.hero__guarantee {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 28px;
    line-height: 1.4;
    max-width: 500px;
    background: #f9fff9;
    border: 1px solid #c8e6c9;
    border-left: 4px solid #8bc34a;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 0 0 50px 0;
}

.hero__guarantee small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #888;
    line-height: 1.3;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    justify-content: center;
}

.hero__image {
    flex: 0 0 45%;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.btn-dark {
    background: linear-gradient(135deg, #444, #111);
    color: #fff;
}

.btn-dark:hover {
    opacity: 0.8;
}

.btn-gray {
    background: linear-gradient(135deg, #d5d5d5, #646464);
    color: #fff;
}

.btn-gray:hover {
    opacity: 0.8;
}

.btn-outline {
    background: transparent;
    color: #000;
    border: 1px solid #ddd;
}

.btn-outline:hover {
    border-color: #999;
}

/* ===== PRICE TAGS ===== */
.price-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 12px;
    color: #000;
    text-align: center;
    transition: border-color 0.2s;
}

.price-tag:hover {
    border-color: #999;
}

.price-tag svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: #f7f7f7;
    padding: 8px 0;
}

.cta-section .hero__card {
    padding: 28px 40px;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cta-section .btn {
    white-space: nowrap;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: #f7f7f7;
    padding: 8px 0;
}

.services__card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    max-width: 1360px;
    margin: 0 auto;
    width: 92%;
}

.pricing-row {
    color: #777;
}

.pricing-row div:nth-child(1),
.pricing-row div:nth-child(3) {
    color: #000;
    font-weight: 600;
}

.services__header {
    margin-bottom: 20px;
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: #f7f7f7;
    border-radius: 16px;
}

.service-item__icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-item__icon svg {
    width: 20px;
    height: 20px;
}

.service-item__name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 3px;
}

.service-item__desc {
    font-size: 13px;
    color: #777;
    line-height: 1.3;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    background: #f7f7f7;
    padding: 8px 0;
}

.how-it-works__card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 1360px;
    margin: 0 auto;
    width: 92%;
}

.how-it-works__image {
    margin-top: 0;
    display: flex;
    align-items: center;
}

.how-it-works__image img {
    width: 100%;
    border-radius: 12px;
    max-height: 320px;
    object-fit: cover;
}


.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f7f7f7;
    border-radius: 16px;
}

.step-row__num {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-row__title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
}

.step-row__text {
    font-size: 13px;
    color: #777;
}

/* ===== PORTFOLIO / BEFORE-AFTER ===== */
.portfolio {
    background: #f7f7f7;
    padding: 8px 0;
}

.portfolio__card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    max-width: 1360px;
    margin: 0 auto;
    width: 92%;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.portfolio__item {
    border-radius: 12px;
    overflow: hidden;
}

.portfolio__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f0f0f0;
    border-radius: 12px;
    padding: 12px;
}

.portfolio__side {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portfolio__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    text-align: center;
    letter-spacing: 0.5px;
}

.portfolio__side img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s;
}

.portfolio__side:hover img {
    transform: scale(1.04);
}

.portfolio__video {
    background: #f0f0f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
}

.portfolio__video iframe,
.portfolio__video video {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* ===== GUARANTEE SECTION ===== */
.guarantee {
    background: #f7f7f7;
    padding: 8px 0;
}

.guarantee__card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    max-width: 1360px;
    margin: 0 auto;
    width: 92%;
    display: flex;
    gap: 36px;
    align-items: center;
}

.guarantee__content {
    flex: 1;
}

.guarantee__image {
    flex: 0 0 300px;
}

.guarantee__image img {
    width: 100%;
    border-radius: 16px;
}

.guarantee__list {
    margin: 18px 0;
}

.guarantee__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
}

.guarantee__item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #000;
}

.guarantee__item-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== CONTACTS ===== */
.contacts {
    background: #f7f7f7;
    padding: 8px 0;
}

.contacts__card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    max-width: 1360px;
    margin: 0 auto;
    width: 92%;
}

.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.contacts__label {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.contacts__text {
    font-size: 15px;
    color: #777;
    margin-bottom: 12px;
    line-height: 1.2;
}

.contacts__phone {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 22px;
    font-weight: 700;
    color: #000;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.contacts__phone:hover {
    color: #777;
}

.contacts__social {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.contacts__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.contacts__social a:hover {
    opacity: 0.6;
}

.contacts__social a svg {
    width: 88px;
    height: 88px;
}

.contacts__map {
    border-radius: 16px;
    overflow: hidden;
}

.contacts__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.contacts__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ===== FAQ ===== */
.faq {
    background: #f7f7f7;
    padding: 8px 0;
}

.faq__card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    max-width: 1360px;
    margin: 0 auto;
    width: 92%;
}

.faq-item {
    border-top: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    gap: 16px;
}

.faq-question:hover {
    color: #555;
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-icon.open {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 13px;
    color: #777;
    line-height: 1.3;
}

.faq-answer.open {
    max-height: 200px;
    padding-bottom: 14px;
}

/* ===== FOOTER ===== */
.footer {
    background: #000;
    color: #fff;
    padding: 24px 0 12px;
}

.footer__inner {
    max-width: 1360px;
    margin: 0 auto;
    width: 92%;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer__logo img {
    height: 90px;
    width: auto;
}

.footer__label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.footer__text {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
    margin-bottom: 8px;
}

.footer__phone {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.footer__phone:hover {
    color: rgba(255,255,255,0.6);
}

.footer__social {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.footer__social a:hover {
    opacity: 0.6;
}

.footer__social a svg {
    width: 88px;
    height: 88px;
    fill: #fff;
}

.footer__nav-title {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.footer__nav a {
    display: block;
    font-size: 13px;
    color: #fff;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer__nav a:hover {
    color: rgba(255,255,255,0.6);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}

.footer__bottom a {
    color: rgba(255,255,255,0.5);
}

.footer__bottom a:hover {
    color: rgba(255,255,255,0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero__title {
        font-size: 26px;
    }

    .hero__subtitle {
        font-size: 15px;
    }
    
    .hero__image {
        flex: 0 0 35%;
    }

    .hero__image img {
        height: 100%;
    }

    .section-title {
        font-size: 26px;
    }

    .how-it-works__card > div {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 992px) {
    .header__nav {
        display: none;
    }

    .header__hours {
        display: none;
    }

    .menu-trigger {
        display: flex;
    }

    .hero__card {
        flex-direction: column;
        padding: 0;
    }

    .hero__content {
        padding: 24px 20px;
    }

    .hero__image {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero__image img {
        height: 260px;
    }

    .hero__title {
        font-size: 24px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section-title {
        font-size: 24px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .guarantee__card {
        flex-direction: column;
    }

    .guarantee__image {
        flex: 0 0 100%;
    }

    .contacts__inner {
        grid-template-columns: 1fr;
    }

    .portfolio__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container, .header__inner, .hero__card, .services__card,
    .how-it-works__card, .portfolio__card, .guarantee__card,
    .contacts__card, .faq__card, .footer__inner {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .header__inner {
        padding: 8px 14px;
        border-radius: 10px;
    }

    .hero__card {
        padding: 0;
        border-radius: 10px;
    }

    .hero__content {
        padding: 20px 16px;
    }


    .hero__title {
        font-size: 20px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .hero__image img {
        height: 100%;
    }

    .header__phone {
        font-size: 15px;
    }

    .header__social a {
        width: 18px;
        height: 18px;
    }

    .header__social a svg {
        width: 86px;
        height: 86px;
    }

    .btn .max-logo {
        width: 14px;
        height: 14px;
    }

    .services__card, .how-it-works__card, .portfolio__card,
    .guarantee__card, .contacts__card, .faq__card {
        padding: 24px 16px;
        border-radius: 10px;
    }

    .service-item {
        padding: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    .contacts__phone {
        font-size: 18px;
    }

    .footer__phone {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 18px;
    }

    .section-title {
        font-size: 18px;
    }

    .hero__card {
        padding: 16px 12px;
    }

    .header__phone {
        font-size: 13px;
    }
}
