@charset "UTF-8";

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Строго скрываем горизонтальный скролл */
}

/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
    --font-header: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-golos: 'Golos Text', sans-serif;

    --color-dark: #1A1A1A;
    --color-gray: #666666;
    --color-light: #F9F9F9;
    --color-beige: #FBF9F6;
    --color-sand: #CECAC0;
    --color-accent: #000000;

    --radius: 12px;
    --radius-sm: 6px;
}

/* ============ СБРОС ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-header); font-weight: 700; line-height: 1.2; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============ ТИПОГРАФИКА ============ */
.section__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8C8C8C;
    margin-bottom: 16px;
}

.section__title {
    font-family: var(--font-golos);
    font-size: clamp(26px, 3.5vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.section__title_2 {
    font-family: var(--font-golos);
    font-size: clamp(26px, 3.5vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #6a7469;
    margin-bottom: 20px;
    /*-webkit-text-stroke: 0.5px #000000*/
}

.section__title--center { text-align: center; }

/* ============ КНОПКИ ============ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: transform 0.25s ease, opacity 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
}

.btn--primary {
    background: var(--color-accent);
    color: #FFFFFF;
}

.btn--primary:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

/* Анимированная кнопка "Заказать проект" */
.btn--animated {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.35);
    animation: btnPulse 2.4s infinite;
}

.btn--animated::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transition: left 0.7s ease;
    pointer-events: none;
}

.btn--animated:hover::before { left: 130%; }

@keyframes btnPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.35); }
    70%  { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* ============ ШАПКА ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(221, 221, 211, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #EEE;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 24px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 40px; width: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #4A4A4A;
    transition: color 0.2s ease;
}

.nav__link:hover { color: var(--color-dark); }

/* Телефон в шапке */
.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding: 10px 18px;
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--color-accent);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header__phone:hover {
    background: #2B3A2E;
    transform: translateY(-1px);
}

.header__phone-icon {
    flex-shrink: 0;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.burger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--active span:nth-child(2) { opacity: 0; }
.burger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
    position: relative;
    /* По умолчанию (для ПК) задаем фон с градиентом */
    background: linear-gradient(270deg, 
                rgba(0, 0, 0, 0.70) 0%, 
                rgba(0, 0, 0, 0.40) 40%, 
                rgba(0, 0, 0, 0.3) 70%, 
                rgba(0, 0, 0, 0.1) 100%),
                linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
                url('img/1.png') center/cover no-repeat;
    display: flex;
    align-items: flex-end; /* Прижимаем контент к низу */
    min-height: 95vh;
    box-sizing: border-box;
    padding: 140px 0 60px;
}

/* По умолчанию (на ПК) скрываем мобильные элементы */
.hero__mobile-only {
    display: none;
}

/* --- Стили для ПК (Десктоп) --- */
.hero__container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end; /* Сдвигает всю группу вправо */
}

.hero__content-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 48px;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 20px;
}

.hero__logo-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero__side-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Делает логотип белым, если он черный */
}

.hero__text-side {
    border-left: 2px solid rgba(255, 255, 255, 0.8);
    padding-left: 40px;
    max-width: 480px;
    flex-shrink: 0;
}

.hero__text-side h1 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff; 
    margin-bottom: 24px;
}

.hero__text-side p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 40px;
    max-width: 420px;
}

/* Стили для кнопки внутри Hero (переопределяем, чтобы она была белой) */
.hero .btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; 
    color: #000000; 
    padding: 16px 44px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero .btn--primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}


/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ (max-width: 992px)
   ========================================= */
@media (max-width: 992px) {
    .hero {
        /* Убираем градиенты и фон, так как картинка будет тегом img */
        background: none;
        display: block;
        min-height: auto;
        padding: 80px 0 40px;
    }

    /* Скрываем ПК-версию */
    .hero__desktop-only {
        display: none !important;
    }

    /* Показываем мобильную версию */
    .hero__mobile-only {
        display: block;
        position: relative;
        width: 100vw;
        margin-left: calc(-50vw + 50%); /* Центрируем и вытягиваем на весь экран */
        overflow: hidden;
    }

    .hero__mobile-img {
        width: 100%;
        height: 60vh;
        object-fit: cover;
        display: block;
    }

    .hero__mobile-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 80px 20px 24px 20px;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero__mobile-content h1 {
        color: #FFFFFF;
        font-size: 26px; /* Настроил размер под мобилку */
        line-height: 1.2;
        margin: 0;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    .hero__mobile-content .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}

/* ============ БЛОК 1: О НАС ============ */
.about {
    padding: 100px 0;
    background: var(--color-beige);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: center;
}

/* На ПК возвращаем статистику на первое место (влево) */
.about__stats {
    order: -1; /* Заставляет блок идти первым, несмотря на HTML */
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-right: 32px;
    border-right: 1px solid #E2DDD5;
}

.about__text {
    order: 1;
}

.stat { display: flex; flex-direction: column; }

.stat__num {
    font-family: var(--font-header);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.stat__label {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.4;
}

.about__text p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-gray);
    margin-bottom: 16px;
}
.about__text p:last-child { margin-bottom: 0; }

/* ============ БЛОК 2: УСЛУГИ ============ */
.services {
    padding: 0;
    background: #deded4;
}

/* --- Часть A: Специализации --- */
.services__specs {
    display: grid;
    grid-template-columns: 1.1fr 2.2fr;
    gap: 60px;
    align-items: center;
    padding-top: 100px; /* Добавил отступ сверху, так как общий padding: 0 */
}

.services__specs-left p {
    font-size: 15px;
    line-height: 1.65;
    color: #4A4A4A;
    max-width: 420px;
}

.services__specs-right {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 16px;
    position: relative;
}

.spec-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 12%;
    height: 76%;
    width: 1px;
    background-color: rgba(43, 58, 46, 0.15);
}

.icon-circle {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.icon-circle svg { width: 100%; height: 100%; }

.spec-item:hover .icon-circle { transform: translateY(-5px); }

.spec-item h3 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-dark);
}

.spec-item .beauty-title {
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #4A4A4A;
}

/* Разделитель между частями блока Услуг */
.services__divider {
    border: none;
    border-top: 1px solid rgba(43, 58, 46, 0.2);
    margin: 80px 0;
}

/* --- Часть B: Преимущества (фото слева во всю высоту) --- */
.services__features {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    align-items: stretch;      /* фото растягивается по высоте контента */
    margin-top: 80px;
}

/* Фото — прижато к левому краю экрана, во всю высоту */
.services__features-photo {
    position: relative;
    overflow: hidden;
    min-height: 520px;         /* минимальная высота, чтобы фото не схлопнулось */
}

.services__features-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.services__features-photo:hover img {
    transform: scale(1.04);
}

/* Контент — справа, с внутренними отступами */
.services__features-content {
    padding: 60px 24px 60px 56px;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.services__features-content .section__title_2 {
    margin-bottom: 0;
}

/* Список "Быстро / Качественно / По нормам" */
.advantages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.advantages-list li {
    position: relative;
    padding-left: 24px;
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.advantages-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--color-dark);
    border-radius: 50%;
}

/* Карточки */
.services__features-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.feature-card {
    background: var(--color-beige);
    padding: 24px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid #E8E3DA;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.feature-card__num {
    display: inline-block;
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #8C8C8C;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-gray);
    margin: 0;
}

/* =========================================
   АДАПТИВ (Планшеты и Мобилки)
   ========================================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .services__specs {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .services__specs-left p {
        margin: 0 auto;
    }

    .services__features {
        grid-template-columns: 1fr;
    }

    .services__features-photo {
        min-height: 360px;
        aspect-ratio: 16 / 10;
    }

    .services__features-content {
        padding: 48px 24px;
        max-width: 100%;
        align-items: center;
    }

    .services__features-cards {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }
}

/* Мобилки (до 768px) */
@media (max-width: 768px) {
    .services__specs-right { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 32px 0; 
    }
    
    .spec-item::after { 
        display: none !important; 
    }

    .services__divider { 
        margin: 48px 0; 
    }

    .services__features {
        margin-top: 56px;
    }

    .services__features-photo {
        min-height: 260px;
        aspect-ratio: auto; 
    }

    /* На мобильных разрешаем блоку с фото менять высоту по картинке */
    .services__features-photo img {
        position: static; 
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .services__features-content {
        padding: 40px 20px;
        gap: 22px;
    }
    
    .services__features-content .section__title_2 {
        text-align: center;
        margin-bottom: 24px; 
    }

    .services__features-cards {
        grid-template-columns: 1fr;
    }

    /* Список преимуществ в одну строку с разделителями */
    .advantages-list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
        gap: 0;
    }

    .advantages-list li {
        font-size: 12px;
        padding: 0 8px;
        text-align: center;
        flex: 1;
        white-space: nowrap; 
        position: relative;
        letter-spacing: 0;
    }

    /* Убираем старые точки */
    .advantages-list li::before {
        display: none;
    }

    /* Рисуем вертикальную черту между пунктами */
    .advantages-list li:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 14px;
        width: 1px;
        background-color: #1A1A1A;
    }
}

/* Маленькие мобилки (до 480px) */
@media (max-width: 480px) {
    .services__specs-right { 
        grid-template-columns: 1fr; 
    }
    
    .icon-circle { 
        width: 80px; 
        height: 80px; 
    }
}

/* ============ БЛОК 3: ПРОЕКТЫ ============ */
.projects {
    padding: 100px 0;
    background: var(--color-beige);
}

.projects__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.projects__head p {
    max-width: 620px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-gray);
    margin-top: 16px;
}

/* --- Горизонтальный скролл --- */
.projects__scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #8C8C8C #EDEDED;
}

.projects__scroll::-webkit-scrollbar {
    height: 8px;
}
.projects__scroll::-webkit-scrollbar-track {
    background: #EDEDED;
    border-radius: 4px;
}
.projects__scroll::-webkit-scrollbar-thumb {
    background: #8C8C8C;
    border-radius: 4px;
}
.projects__scroll::-webkit-scrollbar-thumb:hover {
    background: #1A1A1A;
}

/* Карточка */
.project-card {
    flex: 0 0 380px;
    max-width: 380px;
    scroll-snap-align: start;
    cursor: pointer;
    color: inherit;
}

.project-card__img {
    width: 100%;
    /* Полностью убираем aspect-ratio и height */
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.project-card__img img {
    width: 100%;
    height: auto; /* Автоматическая высота по фото */
    display: block;
}

.project-card:hover .project-card__img img { transform: scale(1.05); }

.project-card h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.project-card p {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.4;
}

/* -------- Адаптив -------- */
@media (max-width: 768px) {
    .projects { 
        padding: 64px 0; 
    }

    /* Делаем отступы контейнера чуть меньше для мобилок */
    .projects .container {
        padding: 0 16px;
    }

    .project-card {
        /* Карточка занимает почти всю ширину экрана (например, 85%) */
        flex: 0 0 85vw; 
        max-width: 85vw;
    }

    /* Если хотите, чтобы карточка была впритык к краям экрана, 
       используйте flex: 0 0 calc(100vw - 48px); max-width: calc(100vw - 48px); */

    .project-card h3 { 
        font-size: 18px; /* Чуть увеличили заголовок для мобилок */
        margin-top: 4px;
    }

    .project-card p {
        font-size: 14px;
    }
    
    /* Делаем скроллбар более аккуратным или скрываем его на тач-устройствах */
    .projects__scroll::-webkit-scrollbar {
        display: none; /* Скрываем скроллбар в Chrome/Safari на мобильных */
    }
    .projects__scroll {
        scrollbar-width: none; /* Скрываем скроллбар в Firefox */
    }
}

/* ============ МОДАЛКА-ГАЛЕРЕЯ ============ */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-modal--open { display: flex; }

.gallery-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.92);
    animation: modalFade 0.25s ease;
}

.gallery-modal__window {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: modalSlide 0.3s ease;
    color: #FFFFFF;
}

.gallery-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    z-index: 2;
    transition: background 0.2s ease;
}

.gallery-modal__close:hover { background: rgba(255, 255, 255, 0.25); }

.gallery-modal__title {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    padding: 12px 20px 0 20px; /* Добавили отступ сверху, чтобы текст не прилипал к фото */
    margin: 0;
    flex-shrink: 0; /* Запрещает тексту сжиматься */
    position: relative;
    z-index: 2; /* Чтобы текст гарантированно был поверх фона */
}

/* Просмотрщик */
.gallery-modal__viewer {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    background: transparent; /* Было rgba(255,255,255,0.03) */
    border-radius: 0;
    overflow: visible; /* Чтобы ничего не обрезало */
}

.gallery-modal__image-wrap {
    display: inline-flex; /* Подстраивается под контент */
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
}

.gallery-modal__img {
    max-width: 100%;
    max-height: 70vh; /* Ограничиваем по высоте экрана */
    width: auto;
    height: auto;
    object-fit: contain; /* Не обрезает */
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); /* Красивая тень, опционально */
    transition: opacity 0.2s ease;
}

.gallery-modal__img.loading { opacity: 0; }

/* Стрелки */
.gallery-modal__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    z-index: 3;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-modal__arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-modal__arrow--prev { left: 16px; }
.gallery-modal__arrow--next { right: 16px; }

.gallery-modal__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.gallery-modal__arrow:disabled:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Счётчик */
.gallery-modal__counter {
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Миниатюры */
.gallery-modal__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: thin;
    scrollbar-color: #666 #2A2A2A;
}

.gallery-modal__thumbs::-webkit-scrollbar { height: 6px; }
.gallery-modal__thumbs::-webkit-scrollbar-track { background: #2A2A2A; border-radius: 3px; }
.gallery-modal__thumbs::-webkit-scrollbar-thumb { background: #666; border-radius: 3px; }

.gallery-modal__thumb {
    flex: 0 0 90px;
    width: 90px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-modal__thumb:hover { opacity: 0.85; }

.gallery-modal__thumb.active {
    opacity: 1;
    border-color: #FFFFFF;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .gallery-modal { padding: 0; }

    .gallery-modal__window {
        height: 100vh;
        max-width: 100%;
        gap: 10px;
        padding: 16px;
    }

    .gallery-modal__title {
        font-size: 16px;
        padding-right: 50px;
    }

    .gallery-modal__arrow {
        width: 42px;
        height: 42px;
    }

    .gallery-modal__arrow--prev { left: 8px; }
    .gallery-modal__arrow--next { right: 8px; }

    .gallery-modal__thumb {
        flex: 0 0 70px;
        width: 70px;
        height: 48px;
    }
}

/* ============ БЛОК 4: ЦЕНЫ ============ */
.prices {
    padding: 100px 0;
    background: #deded4;
}

.prices__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.prices__left p {
    font-size: 15px;
    color: #4A4A4A;
    margin-bottom: 28px;
    max-width: 360px;
}

.prices__right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.price-card {
    background: var(--color-beige);
    padding: 28px 36px;
    border-radius: var(--radius-sm);
    border: 1px solid #E8E3DA;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.price-card h3 {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.price-card p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--color-gray);
}

.price-card .price {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    color: var(--color-dark);
}

/* ============ БЛОК 5: ЭТАПЫ РАБОТ (горизонтальный timeline) ============ */
.steps {
    padding: 100px 0;
    background: var(--color-beige);
    overflow: hidden;
}

/* Общая обёртка */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 72px;
    padding: 0 20px;
}

/* Горизонтальная линия через центр кружков */
.timeline__line {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 24px;               /* центр кружка 48px / 2 = 24 */
    height: 2px;
    background: #E2DDD5;
    border-radius: 2px;
    overflow: hidden;
    z-index: 0;
}

/* Заливка, которая растёт по мере появления шагов */
.timeline__line-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1A1A1A 0%, #2B3A2E 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Шаг */
.timeline__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
    padding: 0 8px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Появление */
.timeline__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Задержка для каждого шага */
.timeline__item:nth-child(2) { transition-delay: 0.1s; }
.timeline__item:nth-child(3) { transition-delay: 0.35s; }
.timeline__item:nth-child(4) { transition-delay: 0.6s; }
.timeline__item:nth-child(5) { transition-delay: 0.85s; }
.timeline__item:nth-child(6) { transition-delay: 1.1s; }

/* Кружок с номером — сверху */
.timeline__dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1A1A1A;
    color: #FFFFFF;
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--color-beige);
    margin-bottom: 20px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline__item:hover .timeline__dot {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* Контент шага — снизу */
.timeline__content {
    max-width: 200px;
    width: 100%;
}

.timeline__title {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.timeline__text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-gray);
}

.timeline__text--accent {
    color: #C97B63; /* тёплый акцент — как в исходнике */
}

/* -------- Адаптив -------- */
@media (max-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(5, 1fr);
        padding: 0 10px;
    }
    .timeline__content { max-width: 160px; }
    .timeline__title { font-size: 14px; }
    .timeline__text { font-size: 12px; }
    .timeline__dot { width: 42px; height: 42px; font-size: 14px; }
    .timeline__line { top: 21px; }
}

@media (max-width: 768px) {
    /* На мобильных — вертикальный timeline */
    .timeline {
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding: 0;
        margin-top: 48px;
    }

    .timeline__line {
        left: 23px;
        right: auto;
        top: 20px;
        bottom: 20px;
        width: 2px;
        height: auto;
    }

    .timeline__line-fill {
        width: 100% !important;
        height: 0;
        transition: height 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .timeline.is-visible .timeline__line-fill { height: 100%; }

    .timeline__item {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
        padding: 0;
        opacity: 0;
        transform: translateX(-16px);
    }

    .timeline__item.is-visible {
        opacity: 1;
        transform: translateX(0);
    }

    .timeline__dot {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .timeline__content {
        max-width: 100%;
        padding-top: 4px;
    }

    .timeline__title { font-size: 16px; }
    .timeline__text { font-size: 13.5px; }
}

/* Уважение к reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .timeline__item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .timeline__line-fill { transition: none; }
}

/* -------- Адаптив -------- */
@media (max-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(5, 1fr);
        padding: 0 10px;
    }
    .timeline__content { max-width: 160px; }
    .timeline__title { font-size: 14px; }
    .timeline__text { font-size: 12px; }
    .timeline__dot { width: 42px; height: 42px; font-size: 14px; }
}

@media (max-width: 768px) {
    /* На мобильных превращаем в вертикальный timeline */
    .timeline {
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding: 0;
        margin-top: 48px;
    }

    .timeline__line {
        left: 23px;
        right: auto;
        top: 20px;
        bottom: 20px;
        width: 2px;
        height: auto;
        transform: none;
    }

    .timeline__line-fill {
        width: 100% !important;
        height: 0;
        transition: height 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .timeline.is-visible .timeline__line-fill { height: 100%; }

    .timeline__item,
    .timeline__item--top,
    .timeline__item--bottom {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        opacity: 0;
        transform: translateX(-16px);
    }

    .timeline__item.is-visible {
        opacity: 1;
        transform: translateX(0);
    }

    .timeline__item .timeline__spacer { display: none; }

    .timeline__dot {
        order: 1 !important;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .timeline__content {
        order: 2 !important;
        padding: 4px 0 0 !important;
        max-width: 100%;
        text-align: left;
        justify-content: flex-start;
    }

    .timeline__title { font-size: 16px; }
    .timeline__text { font-size: 13.5px; }
}

/* Уважение к reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .timeline__item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .timeline__line-fill { transition: none; }
}

/* ============================================================
   FAQ — аккордеон с иконкой в кружке
   ============================================================ */
.faq { 
    padding: 100px 0;
    background: #deded4;
}
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 22px 0;
    cursor: pointer;
    transition: padding-left 0.25s ease;
}
.faq-item:hover { padding-left: 6px; }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 500;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid #ddd;
    color: var(--black);
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.faq-item:hover .faq-icon {
    border-color: var(--black);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.faq-answer {
    display: none;
    padding-top: 16px;
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.6;
}
.faq-item.active .faq-answer { display: block; }

/* ============ БЛОК 6: CTA ============ */
.cta {
    padding: 100px 0;
    background: url('img/3.png') center/cover no-repeat;
    text-align: center;
}

.content__cta {
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 700px; /* Задает идеальную ширину под ваш текст */
    margin: 0 auto;   /* Центрирует плашку по центру экрана */
}

.cta__inner h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
}

.cta__inner p {
    font-size: 16px;
    line-height: 1.65;
    color: #000000;
    max-width: 620px;
    margin: 0 auto 32px;
}

/* ============ МОДАЛЬНОЕ ОКНО ============ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal--open { display: flex; }

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: modalFade 0.25s ease;
}

@keyframes modalFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal__window {
    position: relative;
    background: #FFFFFF;
    color: var(--color-dark);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 40px 40px;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #4A4A4A;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover { background: #F5F5F5; color: var(--color-dark); }

.modal__title {
    font-family: var(--font-header);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.modal__subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-gray);
    margin-bottom: 28px;
}

/* ============ ФОРМА ============ */
.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A4A4A;
}

.form__req { color: #C0392B; font-weight: 700; }

.form__input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-dark);
    background: #F7F7F7;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-dark);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.form__input--error {
    border-color: #C0392B;
    background: #FFF5F5;
}

.form__textarea { resize: vertical; min-height: 100px; }

.form__submit { width: 100%; margin-top: 6px; }

.form__note {
    font-size: 12px;
    line-height: 1.5;
    color: #8C8C8C;
    text-align: center;
    margin: 0;
}

/* ============ КАПЧА ============ */
.form__captcha { margin-top: 4px; }

.captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #F7F7F7;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.captcha:hover { border-color: #CCCCCC; }

.captcha--checked {
    border-color: #1B8A3A;
    background: #F0F9F0;
}

.captcha--error {
    border-color: #C0392B;
    background: #FFF5F5;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

.captcha__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.captcha__box {
    width: 24px;
    height: 24px;
    border: 2px solid #B0B0B0;
    border-radius: 4px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.captcha__check {
    color: #FFFFFF;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.captcha--checked .captcha__box {
    background: #1B8A3A;
    border-color: #1B8A3A;
}

.captcha--checked .captcha__check {
    opacity: 1;
    transform: scale(1);
}

.captcha__text {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-dark);
    flex-grow: 1;
}

.captcha__brand {
    color: #B0B0B0;
    flex-shrink: 0;
}

/* ============ УСПЕХ ============ */
.form__success { text-align: center; padding: 8px 0 0; }

.form__success-icon {
    width: 64px;
    height: 64px;
    background: #F0F9F0;
    color: #1B8A3A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form__success-title {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form__success-text {
    font-size: 15px;
    color: var(--color-gray);
    margin-bottom: 24px;
}

/* ============ МОБИЛЬНАЯ АДАПТАЦИЯ ============ */
@media (max-width: 480px) {
    .modal { padding: 0; }

    .modal__window {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 40px 20px 28px;
    }

    .modal__title { font-size: 22px; }
}

/* ============ БЛОК 7: ФУТЕР ============ */
.footer {
    padding: 60px 0 30px;
    background: #deded4;
    border-top: 1px solid #EEE;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer__nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__nav a {
    font-size: 14px;
    color: #4A4A4A;
    transition: color 0.2s ease;
}

.footer__nav a:hover { color: var(--color-dark); }

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.footer__contacts a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
    transition: color 0.2s ease;
}

.footer__contacts a:hover { color: #8C8C8C; }

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid #EEE;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--color-gray);
}

.footer__bottom a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.2s ease;
}

.footer__bottom a:hover {
    opacity: 0.6;
}

/* Иконки */
.footer__contacts .icon {
    display: block;
    flex-shrink: 0;
    color: #8C8C8C;
    transition: color 0.2s ease;
}

.footer__contacts a:hover .icon {
    color: var(--color-dark);
}

/* Мобильная версия — контакты слева */
@media (max-width: 768px) {
    .footer__contacts {
        text-align: left;
    }

    .footer__contacts a {
        justify-content: flex-start;
    }
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1024px) {
    .about__grid,
    .services__specs,
    .services__features,
    .prices__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__stats {
        flex-direction: row;
        justify-content: space-around;
        border-right: none;
        border-bottom: 1px solid #E2DDD5;
        padding: 0 0 32px;
    }

    .stat__num { font-size: 40px; }

    .services__specs-right { grid-template-columns: repeat(4, 1fr); }
    .services__features-right { grid-template-columns: repeat(3, 1fr); }

    .steps__grid { grid-template-columns: repeat(3, 1fr); }
    .projects__grid { grid-template-columns: repeat(2, 1fr); }
    .prices__right { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header__inner { padding: 12px 16px; }
    .logo__img { height: 32px; }

    .burger { display: flex; }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        z-index: 999;
        border-bottom: 1px solid #EEE;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    }

    .nav--open {
        max-height: 500px;
        padding: 8px 0;
    }

    .nav__link {
        padding: 14px 24px;
        font-size: 16px;
        border-bottom: 1px solid #F5F5F5;
    }

    .header__phone {
    margin: 12px 24px;
    justify-content: center;
    font-size: 15px;
    padding: 12px 18px;
}

    .hero { 
        padding: 64px 0 0 0; 
        min-height: auto; 
        background: var(--color-beige);
    }
    
    .hero__grid { 
        display: flex;
        flex-direction: column;
        gap: 24px; 
    }

    /* Скрываем элементы для ПК */
    .hero__content.hero__desktop-only,
    .hero__image-empty { 
        display: none !important; 
    }

    /* Показываем мобильные элементы */
    .hero__mobile-only {
        display: block;
        position: relative;
        width: 100vw;
        margin-left: calc(-50vw + 50%); /* Центрируем и вытягиваем на весь экран */
        overflow: hidden;
    }

    .hero__mobile-img {
        width: 100%;
        height: 60vh;
        object-fit: cover;
        display: block;
    }

    /* Текст и кнопка поверх фото */
    .hero__mobile-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 80px 20px 24px 20px; /* Большой верхний отступ, чтобы текст читался на любом фото */
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%); /* Градиент для читаемости */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero__mobile-content h1 {
        color: #FFFFFF;
        font-size: 28px;
        line-height: 1.2;
        margin: 0;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Тень для лучшей читаемости */
    }

    .hero__mobile-content .btn {
        width: 100%; /* Кнопка на всю ширину */
        text-align: center;
    }

    /* Текст под фото  
    .hero__mobile-text {
        display: block;
        font-size: 15px;
        line-height: 1.6;
        color: var(--color-dark);
        margin: 0;
    }*/

    /* Остальные стили для других блоков (оставляем как было) */
    .about, .services, .projects, .prices, .steps, .cta { padding: 64px 0; }
    .about__stats {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .about__grid {
        /* На мобилке сетка в один столбец, поэтому order будет работать как надо */
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    /* Текст идет первым */
    .about__text {
        order: 1; 
        text-align: left; /* Оставляем текст слева */
    }

    /* Статистика идет второй */
    .about__stats {
        order: 2; 
        flex-direction: column;
        align-items: center; /* Центрируем элементы по горизонтали */
        text-align: center;  /* Центрируем текст внутри статистики */
        padding-right: 0;    /* Убираем отступ для разделительной линии */
        border-right: none;  /* Убираем вертикальную линию справа */
        border-top: 1px solid #E2DDD5; /* Линию можно сделать сверху */
        padding-top: 32px;
        gap: 24px;           /* Чуть уменьшаем расстояние между цифрами */
    }

    /* Сами цифры и подписи */
    .stat {
        align-items: center;
    }

    .stat__num {
        font-size: 36px; /* Делаем цифры чуть меньше для мобилок */
    }


    .services__specs-right { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
    .spec-item::after { display: none !important; }

    .services__features-right { grid-template-columns: 1fr; }
    .services__divider { margin: 48px 0; }

    .projects__grid { grid-template-columns: 1fr; }
    .prices__right { grid-template-columns: 1fr; }
    .steps__grid { grid-template-columns: 1fr; gap: 0; }

    .step {
        padding: 20px 0 20px 0;
        border-top: 1px solid #DDD;
    }
    .step:first-child { border-top: 2px solid var(--color-dark); }

    .footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
    .footer__contacts { text-align: left; }
    .footer__bottom { flex-direction: column; }
}

@media (max-width: 480px) {
    .services__specs-right { grid-template-columns: 1fr; }
    .icon-circle { width: 80px; height: 80px; }
    .stat__num { font-size: 34px; }
}

/* Уважение к reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .btn--animated { animation: none; }
    .btn--animated::before { display: none; }
}