* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: 60px;
    overflow-x: hidden;
}
body.nav-open {
    overflow: hidden;
    height: 100%;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
input, textarea { font-family: inherit; font-size: 16px; }

.section-title {
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.section-sub {
    text-align: center;
    color: #666;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 28px;
    line-height: 1.4;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 0;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.header .logo {
    display: flex;
    align-items: center;
    gap: 0;
    color: #fff;
    flex-shrink: 0;
}
.header .logo .logo-img {
    height: 50px;
    width: auto;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.header .logo .logo-img img {
    height: 100%;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}
.header .logo-text { display: none; }

:root { --header-h: 70px; }

.header nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: rgba(26, 26, 26, 0.98);
    padding: clamp(12px, 3.5vh, 26px) 24px calc(clamp(12px, 3.5vh, 26px) + env(safe-area-inset-bottom));
    gap: clamp(4px, 2vh, 14px);
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: flex-start;
    justify-content: safe center;
}
.header nav.open {
    display: flex;
    animation: fadeInNav 0.25s ease;
}
@keyframes fadeInNav {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.header nav a {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    font-weight: 500;
    transition: 0.2s;
    padding: clamp(6px, 1.8vh, 12px) 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    letter-spacing: 0.3px;
}
.header nav a:last-child { border-bottom: none; }
.header nav a:hover { color: #fff; background: rgba(255,255,255,0.05); border-radius: 8px; padding-left: 12px; }
.header .btn-small {
    flex: 0 0 auto;
    padding: clamp(10px, 1.8vh, 12px) 28px;
    font-size: 1rem;
    border-radius: 30px;
    background: #fff;
    color: #1a1a1a;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    text-align: center;
    margin-top: clamp(4px, 1.5vh, 8px);
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
.header .btn-small:hover { background: #e0e0e0; transform: translateY(-1px); color: #1a1a1a; }

.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px 4px;
    flex-shrink: 0;
    z-index: 101;
    position: relative;
}
.burger span {
    width: 26px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
    display: block;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    font-weight: 600;
    border-radius: 8px;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
}
.btn-primary:hover { background: #333333; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 14px 28px;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    font-weight: 600;
    border-radius: 8px;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.btn-accent {
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    padding: 14px 28px;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    font-weight: 600;
    border-radius: 8px;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
}
.btn-accent:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

/* ===== HERO ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: #1a1a1a;
    padding: 60px 0 40px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('img/b_minimalist_architect.webp') no-repeat center center/cover;
    opacity: 1;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,26,26,0.4) 0%, rgba(26,26,26,0.7) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 740px;
    color: #fff;
    padding: 16px;
}
.hero-content h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hero-content h1 span { font-weight: 300; }
.hero-content .sub {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    font-weight: 400;
}
.hero-content .price {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
}
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.hero-buttons .btn-accent,
.hero-buttons .btn-outline-light { width: 100%; max-width: 320px; }

/* ===== ADVANTAGES ===== */
.advantages { padding: 48px 0; border-bottom: 1px solid #eee; background: #fafafa; }
.advantages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adv-item {
    text-align: center;
    background: #fff;
    padding: 20px 12px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.3s;
}
.adv-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.05); }
.adv-item .icon-wrap {
    width: 44px; height: 44px; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    background: #1a1a1a; border-radius: 50%;
}
.adv-item .icon-wrap svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.adv-item h4 { font-size: clamp(0.85rem, 2.5vw, 1rem); font-weight: 700; }
.adv-item p { font-size: clamp(0.75rem, 2vw, 0.85rem); color: #666; margin-top: 2px; }

/* ===== GALLERY ===== */
.gallery-section { padding: 48px 0; background: #fff; }
.gallery-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.gallery-tabs button {
    padding: 6px 16px; border-radius: 30px; background: #f0f0f0;
    font-weight: 600; font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: #555; transition: 0.3s; border: 2px solid transparent;
}
.gallery-tabs button.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.gallery-slider {
    position: relative; overflow: hidden; border-radius: 12px;
    background: #e8e8e8; aspect-ratio: 4 / 3; box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.gallery-slider .slider-track { display: flex; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); height: 100%; }
.gallery-slider .slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #e8e8e8; }
.gallery-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-controls { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.slider-controls button {
    width: 40px; height: 40px; border-radius: 50%; background: #1a1a1a;
    color: #fff; font-size: 1.2rem; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.slider-controls button:hover { background: #333; }
.slider-controls button svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.5; fill: none; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.slider-dots span {
    width: 8px; height: 8px; border-radius: 50%; background: #d0d0d0;
    cursor: pointer; transition: 0.25s;
}
.slider-dots span.active { background: #1a1a1a; width: 24px; border-radius: 6px; }
.gallery-section .btn-wrap { text-align: center; margin-top: 24px; }
.gallery-section .btn-wrap .btn-primary { width: auto; padding: 12px 32px; max-width: 280px; margin: 0 auto; }

/* ============================================================
   ABOUT (О компании) — ПОЛНОСТЬЮ ИСПРАВЛЕННЫЙ
   ============================================================ */
.about-section { 
    padding: 56px 0; 
    background: #ffffff; 
    border-top: 1px solid #eee; 
    border-bottom: 1px solid #eee; 
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.about-content { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}
.about-content .badge {
    display: inline-block; 
    background: #1a1a1a; 
    color: #fff;
    font-size: 0.7rem; 
    font-weight: 600; 
    padding: 4px 16px;
    border-radius: 30px; 
    letter-spacing: 0.5px; 
    text-transform: uppercase;
    width: fit-content;
    flex-shrink: 0;
}
.about-content h2 { 
    font-size: clamp(1.4rem, 4vw, 2.4rem); 
    font-weight: 700; 
    letter-spacing: -0.3px; 
    line-height: 1.15;
    word-wrap: break-word;
    max-width: 100%;
}
.about-content h2 span { font-weight: 300; color: #555; }
.about-content p { 
    color: #444; 
    font-size: clamp(0.85rem, 2.5vw, 1.05rem); 
    line-height: 1.6; 
    margin-bottom: 0;
    word-wrap: break-word;
    max-width: 100%;
}
.about-content .feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    margin: 4px 0 8px;
    max-width: 100%;
}
.about-content .feature-list .item {
    display: flex; 
    align-items: center; 
    gap: 8px;
    font-size: clamp(0.8rem, 2vw, 0.95rem); 
    font-weight: 500; 
    color: #1a1a1a;
    word-wrap: break-word;
    min-width: 0;
    max-width: 100%;
}
.about-content .feature-list .item svg { 
    width: 18px; 
    height: 18px; 
    stroke: #1a1a1a; 
    stroke-width: 2; 
    fill: none; 
    flex-shrink: 0; 
}
.about-content .feature-list .item span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.about-video-slider { 
    width: 100%; 
    position: relative;
    min-width: 0;
    max-width: 100%;
}
.about-video-slider .main-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #ddd;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    max-width: 100%;
}
.about-video-slider .main-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    max-width: 100%;
}
.video-thumbs::-webkit-scrollbar { height: 4px; }
.video-thumbs::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.video-thumbs .thumb {
    flex: 0 0 120px;
    aspect-ratio: 16 / 9;
    background: #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.3s;
    position: relative;
    min-width: 0;
}
.video-thumbs .thumb.active { border-color: #1a1a1a; }
.video-thumbs .thumb:hover { opacity: 0.8; }
.video-thumbs .thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.video-thumbs .thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    pointer-events: none;
}
.video-thumbs .thumb.active .play-icon { background: rgba(26,26,26,0.8); }

/* --- АДАПТИВ ДЛЯ ABOUT --- */

/* Планшеты (768–1023px) */
@media (max-width: 1023px) {
    .about-grid { gap: 32px; }
    .about-content .feature-list { 
        grid-template-columns: 1fr 1fr; 
        gap: 6px 16px; 
    }
}

/* Мобильные — переключение на 1 колонку (РАНЬШЕ, при 850px) */
@media (max-width: 850px) {
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 28px; 
    }
    .about-content .feature-list { 
        grid-template-columns: 1fr 1fr; 
        gap: 4px 12px; 
    }
    .about-content h2 { font-size: 1.6rem; }
    .about-content p { font-size: 0.95rem; }
    .video-thumbs .thumb { flex: 0 0 100px; }
}

/* Маленькие планшеты (до 700px) */
@media (max-width: 700px) {
    .about-grid { gap: 24px; }
    .about-content .feature-list { 
        grid-template-columns: 1fr 1fr; 
        gap: 4px 12px; 
    }
    .about-content .feature-list .item { 
        font-size: 0.9rem; 
        padding: 4px 0;
    }
    .about-content { gap: 12px; }
    .about-content p { 
        font-size: 0.9rem; 
        line-height: 1.5;
    }
    .video-thumbs .thumb { flex: 0 0 80px; }
}

/* Телефоны (до 550px) — фичи в 1 колонку */
@media (max-width: 550px) {
    .about-grid { gap: 20px; }
    .about-content .feature-list { 
        grid-template-columns: 1fr; 
        gap: 4px 0; 
    }
    .about-content .feature-list .item { 
        font-size: 0.9rem; 
        padding: 4px 0;
    }
    .about-content h2 { font-size: 1.4rem; }
    .about-content p { font-size: 0.88rem; }
    .video-thumbs .thumb { flex: 0 0 70px; }
    .about-section { padding: 32px 0; }
}

/* Маленькие телефоны (до 420px) */
@media (max-width: 420px) {
    .about-grid { gap: 16px; }
    .about-content { gap: 10px; }
    .about-content .feature-list { 
        grid-template-columns: 1fr; 
        gap: 2px 0; 
    }
    .about-content .feature-list .item { 
        font-size: 0.82rem; 
        padding: 3px 0;
        gap: 6px;
    }
    .about-content .feature-list .item svg { 
        width: 14px; 
        height: 14px; 
        flex-shrink: 0;
    }
    .about-content h2 { 
        font-size: 1.2rem; 
        line-height: 1.2;
    }
    .about-content p { 
        font-size: 0.8rem; 
        line-height: 1.4;
    }
    .about-content .badge { 
        font-size: 0.55rem; 
        padding: 3px 10px;
    }
    .video-thumbs .thumb { flex: 0 0 60px; }
    .about-section { padding: 24px 0; }
}

/* Очень маленькие (до 360px) */
@media (max-width: 360px) {
    .about-grid { gap: 14px; }
    .about-content { gap: 8px; }
    .about-content .feature-list .item { 
        font-size: 0.75rem; 
        padding: 2px 0;
        gap: 4px;
    }
    .about-content .feature-list .item svg { 
        width: 12px; 
        height: 12px; 
    }
    .about-content h2 { 
        font-size: 1.05rem; 
        line-height: 1.2;
    }
    .about-content p { 
        font-size: 0.72rem; 
        line-height: 1.4;
    }
    .about-content .badge { 
        font-size: 0.5rem; 
        padding: 2px 8px;
    }
    .video-thumbs .thumb { flex: 0 0 50px; }
    .about-section { padding: 20px 0; }
    .about-video-slider .main-video { border-radius: 8px; }
}

/* Экстремально маленькие (до 320px) */
@media (max-width: 320px) {
    .about-content h2 { font-size: 0.95rem; }
    .about-content p { font-size: 0.68rem; }
    .about-content .feature-list .item { font-size: 0.7rem; }
    .about-content .feature-list .item svg { width: 10px; height: 10px; }
    .video-thumbs .thumb { flex: 0 0 45px; }
    .video-thumbs .thumb .play-icon { width: 20px; height: 20px; font-size: 10px; }
}

/* ===== CATALOG ===== */
.catalog-section { padding: 48px 0; background: #fff; }
.catalog-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.catalog-controls .sort-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}
.catalog-controls .sort-wrap label {
    font-weight: 500;
    font-size: 0.85rem;
    color: #666;
    flex-shrink: 0;
}
.custom-select {
    position: relative;
    min-width: 160px;
    flex: 1;
    max-width: 280px;
}
.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 10px 40px 10px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a1a1a;
    background: #f5f5f5;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    outline: none;
    min-width: 0;
}
.custom-select select:hover { border-color: #ccc; background: #f0f0f0; }
.custom-select select:focus {
    border-color: #1a1a1a;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.06);
}
.custom-select .arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 0.7rem;
    transition: 0.3s;
}
.custom-select select:focus + .arrow {
    color: #1a1a1a;
    transform: translateY(-50%) rotate(180deg);
}
.custom-select select option { padding: 8px 12px; background: #fff; color: #1a1a1a; }

.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.catalog-item {
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
}
.catalog-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.catalog-item .img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e0e0e0;
    overflow: hidden;
}
.catalog-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.catalog-item .info { padding: 12px 14px 14px; }
.catalog-item .info h4 { font-weight: 600; font-size: clamp(0.85rem, 2.5vw, 1rem); margin-bottom: 0; }
.catalog-item .info .price { font-weight: 700; font-size: clamp(0.9rem, 2.5vw, 1.1rem); color: #1a1a1a; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.pagination button {
    min-width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #f0f0f0;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
    transition: 0.25s;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}
.pagination button:hover { background: #e0e0e0; }
.pagination button.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

.catalog-cta {
    margin-top: 32px;
    padding: 28px 24px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
}
.catalog-cta h3 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 4px;
}
.catalog-cta p {
    color: #666;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 14px;
}
.catalog-cta .btn-primary { width: auto; max-width: 280px; margin: 0 auto; }

/* ============================================================
   MATERIALS (Сопутствующие материалы) — ПОЛНОСТЬЮ ИСПРАВЛЕННЫЙ
   ============================================================ */
.materials-section {
    padding: 48px 0;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.material-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 24px 18px;
    transition: 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.material-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: #ccc;
}
.material-item .mat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 12px;
    flex-shrink: 0;
}
.material-item .mat-icon svg {
    width: 26px;
    height: 26px;
    stroke: #1a1a1a;
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
}
.material-item .mat-info {
    min-width: 0;
    width: 100%;
}
.material-item .mat-info h4 {
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: 0;
    word-wrap: break-word;
}
.material-item .mat-info p {
    color: #666;
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    margin-top: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

/* --- АДАПТИВ ДЛЯ MATERIALS --- */

/* Планшеты (до 1023px) — 2 колонки */
@media (max-width: 1023px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 600px;
    }
}

/* Маленькие планшеты (до 639px) */
@media (max-width: 639px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
    }
    .material-item { 
        padding: 16px 12px; 
    }
    .material-item .mat-icon { 
        width: 44px; 
        height: 44px; 
    }
    .material-item .mat-icon svg { 
        width: 22px; 
        height: 22px; 
    }
}

/* Маленькие телефоны (до 480px) — 1 колонка */
@media (max-width: 480px) {
    .materials-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 100%;
    }
    .material-item {
        padding: 14px 16px;
        flex-direction: row;
        text-align: left;
        gap: 14px;
        align-items: center;
    }
    .material-item .mat-icon { 
        width: 40px; 
        height: 40px; 
        flex-shrink: 0; 
    }
    .material-item .mat-icon svg { 
        width: 20px; 
        height: 20px; 
    }
    .material-item .mat-info h4 { 
        font-size: 0.95rem; 
    }
    .material-item .mat-info p { 
        font-size: 0.8rem; 
    }
}

/* Очень маленькие (320–380px) */
@media (max-width: 380px) {
    .materials-grid { gap: 8px; }
    .material-item { 
        padding: 10px 12px; 
        gap: 10px; 
    }
    .material-item .mat-icon { 
        width: 34px; 
        height: 34px; 
    }
    .material-item .mat-icon svg { 
        width: 18px; 
        height: 18px; 
    }
    .material-item .mat-info h4 { 
        font-size: 0.85rem; 
    }
    .material-item .mat-info p { 
        font-size: 0.7rem; 
        line-height: 1.3;
    }
}

/* Экстремально маленькие (до 340px) */
@media (max-width: 340px) {
    .material-item { 
        padding: 8px 10px; 
        gap: 8px; 
    }
    .material-item .mat-icon { 
        width: 30px; 
        height: 30px; 
    }
    .material-item .mat-icon svg { 
        width: 16px; 
        height: 16px; 
    }
    .material-item .mat-info h4 { 
        font-size: 0.8rem; 
    }
    .material-item .mat-info p { 
        font-size: 0.65rem; 
    }
}

/* ===== VISUAL ===== */
.visual-section { padding: 48px 0; background: #ffffff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; }
.visual-item { background: #f8f8f8; border-radius: 16px; overflow: hidden; transition: 0.3s; border: 1px solid #eee; }
.visual-item:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); border-color: #ccc; }
.visual-item .img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e0e0e0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.visual-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.visual-item .text { padding: 18px 20px 22px; }
.visual-item .text h4 { font-size: clamp(1rem, 2.5vw, 1.15rem); font-weight: 700; margin-bottom: 4px; }
.visual-item .text p { font-size: clamp(0.85rem, 2vw, 0.95rem); color: #555; margin-top: 0; line-height: 1.5; }

/* ===== CALC ===== */
.calc-section { padding: 48px 0; background: #f8f8f8; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.calc-box { background: #fff; padding: 24px 20px; border-radius: 12px; border: 1px solid #eee; max-width: 720px; margin: 0 auto; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.calc-row { margin-bottom: 22px; }
.calc-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: clamp(0.9rem, 2.5vw, 1rem); }
.calc-row input[type="range"] { width: 100%; accent-color: #1a1a1a; height: 5px; border-radius: 4px; background: #e0e0e0; -webkit-appearance: none; appearance: none; }
.calc-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #1a1a1a; cursor: pointer; }
.calc-row input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #1a1a1a; cursor: pointer; border: none; }
.calc-row .range-value { font-weight: 700; color: #1a1a1a; }

.calc-options { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-options span {
    background: #f0f0f0; border: 2px solid transparent; padding: 6px 14px;
    border-radius: 6px; cursor: pointer; font-weight: 500;
    font-size: clamp(0.75rem, 2vw, 0.9rem); transition: 0.2s; user-select: none;
}
.calc-options span.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

.tile-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.tile-selector .tile-option {
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px 6px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    font-weight: 500;
    color: #555;
}
.tile-selector .tile-option:hover { background: #e5e5e5; }
.tile-selector .tile-option.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}
.tile-selector .tile-option .tile-price {
    display: block;
    font-weight: 400;
    font-size: clamp(0.6rem, 1.5vw, 0.7rem);
    color: #999;
    margin-top: 2px;
}
.tile-selector .tile-option.active .tile-price { color: rgba(255,255,255,0.6); }

.calc-total {
    background: #1a1a1a;
    color: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.calc-total .price { font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 800; }
.calc-box .btn-primary { width: 100%; max-width: 100%; }
.calc-note { font-size: clamp(0.75rem, 2vw, 0.85rem); color: #666; text-align: center; margin-top: 12px; }
.calc-note strong { color: #1a1a1a; }

/* ===== DELIVERY ===== */
.delivery-section { padding: 48px 0; background: #fff; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.delivery-info .delivery-feature { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.delivery-info .delivery-feature:last-child { border-bottom: none; }
.delivery-info .delivery-feature .icon-wrap { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #1a1a1a; border-radius: 50%; }
.delivery-info .delivery-feature .icon-wrap svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.delivery-info .delivery-feature h4 { font-size: clamp(0.9rem, 2.5vw, 1rem); font-weight: 600; }
.delivery-info .delivery-feature p { font-size: clamp(0.75rem, 2vw, 0.85rem); color: #666; }
.delivery-map { width: 100%; aspect-ratio: 4 / 3; background: #e8e8e8; border-radius: 12px; overflow: hidden; min-height: 200px; }
.delivery-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ===== AI ===== */
.ai-section {
    padding: 48px 0;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.before-after-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    min-height: 200px;
}
.before-after-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.before-after-wrapper .after-img {
    clip-path: inset(0 50% 0 0);
    -webkit-clip-path: inset(0 50% 0 0);
}
.before-after-wrapper .before-img { z-index: 1; }
.before-after-wrapper .after-img { z-index: 2; }
.before-after-wrapper .divider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #fff;
    z-index: 5;
    transform: translateX(-50%);
    cursor: ew-resize;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
}
.before-after-wrapper .divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    pointer-events: none;
}
.before-after-wrapper .divider-handle svg {
    width: 20px;
    height: 20px;
    stroke: #1a1a1a;
    stroke-width: 2;
    fill: none;
}
.before-after-wrapper .label {
    position: absolute;
    top: 16px;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    z-index: 4;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    pointer-events: none;
    letter-spacing: 0.3px;
}
.before-after-wrapper .label-before { left: 16px; }
.before-after-wrapper .label-after { right: 16px; }
.ai-text { order: 2; }
.ai-text h3 { font-size: clamp(1.4rem, 4.5vw, 2.2rem); font-weight: 700; margin-bottom: 6px; letter-spacing: -0.3px; }
.ai-text h3 span { font-weight: 300; color: #555; }
.ai-text p { color: #555; font-size: clamp(0.95rem, 2.5vw, 1.05rem); margin-bottom: 14px; line-height: 1.6; }
.ai-text .steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ai-text .steps .step { display: flex; align-items: center; gap: 12px; font-size: clamp(0.9rem, 2.5vw, 0.95rem); }
.ai-text .steps .step .num { width: 28px; height: 28px; background: #1a1a1a; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.ai-text .btn-primary { width: auto; max-width: 280px; }

/* ===== FAQ ===== */
.faq-section { padding: 48px 0; background: #fff; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e0e0e0; padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: clamp(0.95rem, 2.5vw, 1.05rem); user-select: none; padding: 4px 0; gap: 12px; }
.faq-question .arrow { transition: transform 0.3s ease; font-size: 1.1rem; color: #888; flex-shrink: 0; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); color: #1a1a1a; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; color: #555; padding: 0; line-height: 1.6; font-size: clamp(0.9rem, 2.5vw, 1rem); }
.faq-item.open .faq-answer { max-height: 300px; padding: 10px 0 2px 0; }

/* ===== FORM ===== */
.form-section { padding: 48px 0; background: #f8f8f8; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.form-box { max-width: 520px; margin: 0 auto; background: #fff; padding: 24px 20px; border-radius: 12px; border: 1px solid #eee; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.form-box input, .form-box textarea {
    width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 1rem; font-family: inherit; margin-bottom: 14px; background: #fff; transition: 0.2s;
}
.form-box input:focus, .form-box textarea:focus { outline: none; border-color: #1a1a1a; box-shadow: 0 0 0 3px rgba(26,26,26,0.05); }
.form-box textarea { min-height: 70px; resize: vertical; }
.form-box .btn-primary { width: 100%; max-width: 100%; font-size: 1rem; }
.form-box .agreement { font-size: 0.7rem; color: #999; text-align: center; margin-top: 14px; }
.form-box .agreement a { color: #1a1a1a; text-decoration: underline; }

/* ===== STICKY ===== */
.sticky-btn {
    position: fixed; bottom: 20px; right: 16px;
    background: #1a1a1a; color: #fff; width: 56px; height: 56px;
    border-radius: 50%; border: none; font-size: 1.4rem; cursor: pointer;
    z-index: 999; box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    transition: 0.3s; display: flex; align-items: center; justify-content: center;
}
.sticky-btn:hover { background: #333; transform: scale(1.05); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.sticky-btn svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2; fill: none; }

/* ===== MODAL ===== */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); align-items: center; justify-content: center;
    z-index: 1000; padding: 16px;
}
.modal.open { display: flex; }
.modal-content {
    background: #fff; max-width: 400px; width: 100%; padding: 32px 24px 28px;
    border-radius: 16px; position: relative; animation: fadeUp 0.25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
}
@keyframes fadeUp { 0% { opacity:0; transform:translateY(20px); } 100% { opacity:1; transform:translateY(0); } }
.modal-close {
    position: absolute; top: 12px; right: 16px;
    font-size: 1.5rem; cursor: pointer; color: #999;
    transition: 0.2s; background: none; border: none;
    line-height: 1;
}
.modal-close:hover { color: #1a1a1a; }
.modal-content h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.modal-content .sub { color: #666; font-size: 0.9rem; margin-bottom: 24px; }

.modal-contacts {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}
.modal-contacts a {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    transition: 0.25s ease;
    color: #1a1a1a;
    border: 2px solid #e8e8e8;
}
.modal-contacts a:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    border-color: #1a1a1a;
}
.modal-contacts a svg {
    width: 38px;
    height: 38px;
    stroke: #1a1a1a;
    stroke-width: 1.8;
    fill: none;
    display: block;
}
.modal-contacts a .icon-svg-fill {
    fill: #1a1a1a;
    stroke: none;
    width: 38px;
    height: 38px;
}

.modal-phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    padding-top: 16px;
    border-top: 1px solid #eee;
    letter-spacing: 0.3px;
}
.modal-phone a { color: #1a1a1a; transition: 0.2s; }
.modal-phone a:hover { color: #555; }

/* ===== FOOTER ===== */
.footer { padding: 32px 0 20px; background: #1a1a1a; color: rgba(255,255,255,0.7); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.footer .logo-text { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer .logo-text span { color: rgba(255,255,255,0.3); }
.footer .logo-desc { font-size: 0.8rem; margin-top: 2px; }
.footer h4 { color: #fff; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.footer a { display: block; font-size: 0.8rem; margin-bottom: 3px; transition: 0.2s; }
.footer a:hover { color: #fff; }
.footer .socials { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.footer .socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    margin-bottom: 0;
    border: 1px solid rgba(255,255,255,0.05);
}
.footer .socials a:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.footer .socials a svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 1.5;
    fill: none;
    display: block;
}
.footer .socials a .icon-svg-fill {
    fill: #fff;
    stroke: none;
    width: 24px;
    height: 24px;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.7rem; color: rgba(255,255,255,0.35); text-align: center; }
.footer-bottom a { display: inline; margin-bottom: 0; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   ОБЩИЙ АДАПТИВ
   ============================================================ */

/* ===== Общие адаптивные правки ===== */
@media (min-width: 480px) {
    .container { padding: 0 20px; }
    .advantages-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .catalog-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .calc-box { padding: 28px 24px; }
    .form-box { padding: 28px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .hero-buttons .btn-accent, .hero-buttons .btn-outline-light { width: auto; max-width: 280px; }
    .tile-selector { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 640px) {
    .delivery-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .ai-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .calc-total { flex-direction: row; justify-content: space-between; text-align: left; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    .visual-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .tile-selector { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

@media (min-width: 768px) {
    body { padding-top: 64px; }
    .header { padding: 12px 0; }
    .header .logo .logo-img { height: 56px; max-width: 260px; }
    .burger { display: none; }
    .header nav {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: transparent;
        padding: 0;
        gap: 24px;
        border-bottom: none;
        align-items: center;
        overflow-y: visible;
        overscroll-behavior: auto;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        animation: none;
        min-height: auto;
        height: auto;
    }
    .header nav a {
        color: rgba(255, 255, 255, 0.65);
        font-size: 0.85rem;
        border-bottom: none;
        padding: 0;
        position: relative;
        line-height: 1.4;
        text-align: left;
        width: auto;
    }
    .header nav a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 1.5px;
        background: #fff;
        transition: 0.3s;
    }
    /* .header nav a:hover::after { width: 100%; }
    .header nav a:hover { background: transparent; padding-left: 0; border-radius: 0; } */
    .header .btn-small { margin-top: 0; padding: 6px 18px; font-size: 0.75rem; width: auto; max-width: none; }
    .hero-content h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); }
    .advantages-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .visual-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .gallery-slider { aspect-ratio: 16 / 9; }
    .calc-box { padding: 40px 44px; }
    .form-box { padding: 40px 44px; }
    .tile-selector { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
    .container { padding: 0 40px; }
    .header .logo .logo-img { height: 64px; max-width: 300px; }
    .advantages-grid { gap: 24px; }
    .catalog-grid { gap: 24px; }
    .visual-grid { gap: 36px; }
    .hero { min-height: 100vh; }
    .tile-selector { gap: 10px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
}

/* ===== Остальные адаптивные правки ===== */
@media (max-width: 639px) {
    .delivery-grid { grid-template-columns: 1fr; gap: 24px; }
    .ai-grid { grid-template-columns: 1fr; gap: 24px; }
    .visual-grid { grid-template-columns: 1fr; gap: 16px; }
    .visual-item .text { padding: 14px 16px 18px; }
    .visual-item .img-wrap { aspect-ratio: 16 / 10; }
    .video-thumbs .thumb { flex: 0 0 80px; }
    .catalog-controls { justify-content: center; }
    .catalog-controls .sort-wrap { width: 100%; justify-content: center; }
    .custom-select { min-width: 140px; max-width: 100%; flex: 1; }
    .header .logo .logo-img { height: 60px; max-width: 240px; }
    .tile-selector { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .modal-contacts a { width: 64px; height: 64px; }
    .modal-contacts a svg { width: 32px; height: 32px; }
    .footer .socials a { width: 38px; height: 38px; }
    .footer .socials a svg { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
    .ai-text .btn-primary { width: 100%; max-width: 100%; }
    .modal-contacts { gap: 16px; }
    .modal-contacts a { width: 56px; height: 56px; }
    .modal-contacts a svg { width: 28px; height: 28px; }
    .before-after-wrapper .divider-handle { width: 32px; height: 32px; }
    .before-after-wrapper .divider-handle svg { width: 16px; height: 16px; }
    .video-thumbs .thumb { flex: 0 0 70px; }
    .custom-select { min-width: 120px; max-width: 100%; }
    .catalog-controls .sort-wrap label { font-size: 0.75rem; }
    .header nav a { font-size: 1.05rem; }
    .header .logo .logo-img { height: 54px; max-width: 210px; }
    .tile-selector { grid-template-columns: 1fr 1fr; gap: 6px; }
    .tile-selector .tile-option { padding: 6px 4px; font-size: 0.7rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer .socials a { width: 34px; height: 34px; }
    .footer .socials a svg { width: 18px; height: 18px; }
}

@media (max-width: 380px) {
    .container { padding: 0 12px; }
    .header .logo .logo-img { height: 46px; max-width: 180px; }
    .hero-content h1 { font-size: 1.6rem; }
    .adv-item { padding: 14px 8px; }
    .adv-item .icon-wrap { width: 36px; height: 36px; }
    .adv-item .icon-wrap svg { width: 16px; height: 16px; }
    .catalog-item .info { padding: 8px 10px 10px; }
    .calc-box { padding: 16px 12px; }
    .form-box { padding: 16px 12px; }
    .modal-content { padding: 24px 16px 20px; }
    .video-thumbs .thumb { flex: 0 0 60px; }
    .tile-selector { grid-template-columns: 1fr 1fr; gap: 4px; }
    .footer-grid { grid-template-columns: 1fr; gap: 12px; }
    .modal-contacts a { width: 48px; height: 48px; }
    .modal-contacts a svg { width: 24px; height: 24px; }
    .header nav a { font-size: 0.98rem; }
    .custom-select { min-width: 100px; }
}


/* ============================================================
   REVIEWS (ОТЗЫВЫ)
   ============================================================ */
.reviews-section {
    padding: 56px 0;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.review-card {
    background: #fafafa;
    border-radius: 14px;
    padding: 24px 22px 20px;
    border: 1px solid #eee;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border-color: #ccc;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.review-author h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #1a1a1a;
}
.review-author span {
    font-size: 0.8rem;
    color: #777;
}
.review-text p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: #444;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}
.review-rating {
    color: #f5b342;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Адаптив для отзывов */
@media (max-width: 850px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}
@media (max-width: 480px) {
    .review-card {
        padding: 18px 16px 16px;
    }
    .review-avatar {
        width: 44px;
        height: 44px;
    }
    .review-author h4 {
        font-size: 0.9rem;
    }
    .review-text p {
        font-size: 0.85rem;
    }
}