/* ==========================================================================
   1. БАЗОВЫЕ НАСТРОЙКИ, СБРОС И ПЕРЕМЕННЫЕ
   ========================================================================== */
:root {
    --primary: #2C3E50; /* Темно-синий/графитовый */
    --accent: #E67E22; /* Оранжевый/терракотовый */
    --accent-hover: #D35400;
    --bg-light: #F8F9FA;
    --text-main: #333333;
    --text-muted: #666666;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. КНОПКИ И ССЫЛКИ
   ========================================================================== */
.btn {
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    text-align: center;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    border: 2px solid var(--accent);
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

/* ==========================================================================
   3. ШАПКА И НАВИГАЦИЯ
   ========================================================================== */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: var(--accent);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--accent);
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

/* ==========================================================================
   4. ВЫЕЗЖАЮЩЕЕ МОБИЛЬНОЕ МЕНЮ И БУРГЕР
   ========================================================================== */
.desktop-only {
    display: inline-block;
}

.burger-btn {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: 15px;
}

.burger-btn span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    left: 0;
    transition: all 0.3s ease;
}

.burger-btn span:nth-child(1) { top: 0; }
.burger-btn span:nth-child(2) { top: 10px; }
.burger-btn span:nth-child(3) { bottom: 0; }

.burger-btn.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: rotate(-45deg); bottom: 10px; }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 100px 30px 40px 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-menu__link {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu__link:hover { color: var(--accent); }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   5. ОБЩИЕ ШАБЛОНЫ СЕКЦИЙ И ТИПОГРАФИКА
   ========================================================================== */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 50px;
    line-height: 1.3;
}

.section-title span {
    color: var(--accent);
}

.page-header {
    padding: 80px 0 60px 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    text-align: center;
}

.page-header__label {
    display: inline-block;
    background: rgba(230, 126, 34, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.page-header__title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-header__subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   6. СТИЛИ ГЛАВНОЙ СТРАНИЦЫ (HERO, TRUST, CATEGORIES, SHOWROOM, FAQ, и т.д.)
   ========================================================================== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero__content {
    flex: 1;
    max-width: 650px;
}

.hero__label {
    display: inline-block;
    background: rgba(230, 126, 34, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero__title {
    font-size: 46px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero__features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: var(--accent);
    color: var(--accent);
}

.hero__image-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
}

.hero__image {
    width: 100%;
    height: 550px;
    background-color: #ddd; 
    background-image: url('https://images.unsplash.com/photo-1556911220-e15b29be8c8f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Секция доверия */
.trust {
    padding: 80px 0;
    background-color: #ffffff;
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-card {
    background: #ffffff;
    border: 1px solid #E9ECEF;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.trust-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: rgba(230, 126, 34, 0.3);
}

.trust-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 50%;
    color: var(--accent);
}

.trust-card__icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.trust-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.trust-card__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Секция Категорий */
.categories {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    height: 320px;
    border-radius: 15px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.category-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.category-card:hover .category-card__bg {
    transform: scale(1.08);
}

.category-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    transition: background 0.3s ease;
}

.category-card:hover .category-card__overlay {
    background: linear-gradient(to top, rgba(230, 126, 34, 0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
}

.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category-card__title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.category-card__link {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-card__link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__link {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover .category-card__link svg {
    transform: translateX(5px);
}

/* Секция Шоурум */
.showroom {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.showroom__inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.showroom__content {
    flex: 1;
    max-width: 550px;
}

.showroom__subtitle {
    display: inline-block;
    background: rgba(44, 62, 80, 0.05);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.showroom__title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 25px;
    text-align: left;
}

.showroom__title span {
    color: var(--accent);
}

.showroom__text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.showroom__list {
    list-style: none;
    margin-bottom: 40px;
}

.showroom__list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.5;
}

.showroom__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E67E22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.showroom__images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
    position: relative;
}

.showroom__images::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-color: var(--bg-light);
    border-radius: 50%;
    z-index: 0;
}

.showroom__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.showroom__img:hover {
    transform: translateY(-5px);
}

.img-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Секция Сравнения */
.compare {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.compare__intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.compare__intro p {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 15px;
    line-height: 1.6;
}

.compare__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    background: #fff;
}

.compare-col {
    padding: 50px 40px;
}

.compare-col--bad {
    background-color: #F8F9FA;
    border-right: 1px solid #E9ECEF;
}

.compare-col--good {
    background-color: #ffffff;
    position: relative;
}

.compare-col--good::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
}

.compare__title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.compare-col--bad .compare__title {
    color: var(--text-muted);
}

.compare-col--good .compare__title {
    color: var(--primary);
}

.compare__list {
    list-style: none;
}

.compare__item {
    position: relative;
    padding-left: 35px;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.5;
}

.compare__item:last-child {
    margin-bottom: 0;
}

.compare-col--bad .compare__item {
    color: #6c757d;
}

.compare-col--good .compare__item {
    color: var(--primary);
    font-weight: 600;
}

.compare-col--bad .compare__item::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #ffE5E5;
    color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.compare-col--good .compare__item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: rgba(230, 126, 34, 0.15);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.compare__action {
    text-align: center;
    margin-top: 50px;
}

/* Секция Процесса */
.process {
    padding: 100px 0;
    background-color: #ffffff;
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    margin-top: 50px;
}

.process__grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12%;
    right: 12%;
    border-top: 2px dashed #E9ECEF;
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.process-step__number {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 3px solid #E9ECEF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #d1d5db;
    margin: 0 auto 25px auto;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 rgba(230, 126, 34, 0);
}

.process-step:hover .process-step__number {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.2);
    background: #fff;
}

.process-step__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.process-step__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 250px;
    margin: 0 auto;
}

/* Секция Материалов */
.materials {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.materials__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.materials__intro p {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 15px;
}

.materials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.material-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.material-card__icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.material-card__icon svg {
    width: 35px;
    height: 35px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.material-card__content {
    flex-grow: 1;
}

.material-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.material-card__text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.material-card__brands {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.brand-tag {
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Секция Отзывов */
.reviews {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.reviews__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.reviews__title-wrapper {
    max-width: 600px;
}

.reviews__slider-wrapper {
    position: relative;
}

.reviews__track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews__track::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: calc(33.333% - 20px);
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    scroll-snap-align: start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    border: 1px solid #E9ECEF;
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-card__avatar {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.review-card__info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3px;
}

.review-card__info p {
    font-size: 12px;
    color: var(--text-muted);
}

.review-card__stars {
    display: flex;
    gap: 3px;
    color: #F59E0B;
    margin-bottom: 15px;
}

.review-card__stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.review-card__text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
}

.reviews__controls {
    display: flex;
    gap: 15px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #E9ECEF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.3s ease;
}

.slider-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.slider-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.15);
}

/* ==========================================================================
   7. УНИКАЛЬНЫЕ СТИЛИ СТРАНИЦЫ "О ПРОИЗВОДСТВЕ"
   ========================================================================== */
.prod-stats {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.prod-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.prod-stat-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border: 1px solid #E9ECEF;
    transition: transform 0.3s;
}

.prod-stat-card:hover {
    transform: translateY(-5px);
}

.prod-stat-card__number {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.prod-stat-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.prod-stat-card__text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.prod-features {
    padding: 80px 0;
    background-color: #ffffff;
}

.prod-features__item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.prod-features__item:last-child {
    margin-bottom: 0;
}

.prod-features__item:nth-child(even) {
    flex-direction: row-reverse;
}

.prod-features__content {
    flex: 1;
}

.prod-features__img-wrapper {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.prod-features__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   8. УНИКАЛЬНЫЕ СТИЛИ СТРАНИЦЫ "ПРОЕКТЫ / КЕЙСЫ"
   ========================================================================== */
.cases {
    padding: 40px 0 80px 0;
    background-color: #ffffff;
}

.case-article {
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid #E9ECEF;
}

.case-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.case__header {
    margin-bottom: 30px;
}

.case__tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.case__tag {
    background: rgba(230, 126, 34, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.case__tag--time {
    background: #F8F9FA;
    color: var(--text-muted);
    border: 1px solid #E9ECEF;
}

.case__title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 15px;
}

.case__gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 15px;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.case__img-wrapper {
    overflow: hidden;
    position: relative;
}

.case__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.case__img-wrapper:hover .case__img {
    transform: scale(1.05);
}

.case__img-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.case__body {
    display: flex;
    gap: 50px;
}

.case__text-content {
    flex: 1.5;
}

.case__subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    margin-top: 25px;
}

.case__subtitle:first-child {
    margin-top: 0;
}

.case__text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.case__sidebar {
    flex: 1;
    background: #F8F9FA;
    padding: 30px;
    border-radius: 15px;
    align-self: start;
    border: 1px solid #E9ECEF;
}

.case__sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    display: inline-block;
}

.case__specs {
    list-style: none;
    margin-bottom: 30px;
}

.case__specs li {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.case__specs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
}

.case__specs strong {
    color: var(--primary);
}

/* ==========================================================================
   9. УНИКАЛЬНЫЕ СТИЛИ СТРАНИЦЫ "БЛОГ / СТАТЬИ"
   ========================================================================== */
.articles-section {
    padding: 40px 0 80px 0;
    background-color: #ffffff;
}

.articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #ffffff;
    border: 1px solid #E9ECEF;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: rgba(230, 126, 34, 0.3);
}

.article-card__img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card__img {
    transform: scale(1.05);
}

.article-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.article-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.article-card__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-card__meta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.article-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.2s;
}

.article-card:hover .article-card__title {
    color: var(--accent);
}

.article-card__excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-card__readmore {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.article-card__readmore svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card__readmore {
    color: var(--accent);
}

.article-card:hover .article-card__readmore svg {
    transform: translateX(5px);
}

/* ==========================================================================
   10. УНИКАЛЬНЫЕ СТИЛИ СТРАНИЦЫ "КОНТАКТЫ"
   ========================================================================== */
.contacts-info {
    padding: 40px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.contacts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #E9ECEF;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 126, 34, 0.3);
}

.contact-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(230, 126, 34, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.contact-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.contact-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-card__text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-card__link {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    margin-top: 5px;
    transition: color 0.2s;
}

.contact-card__link:hover {
    color: var(--accent);
}

.contacts-layout {
    padding: 40px 0 100px 0;
}

.contacts-layout__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #E9ECEF;
}

.contacts-map {
    width: 100%;
    height: 100%;
    min-height: 450px;
    background: #e5e3df;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contacts-form-wrapper {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacts-form-wrapper h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.contacts-form-wrapper p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E9ECEF;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.contact-input:focus {
    border-color: var(--accent);
}

textarea.contact-input {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   11. РЕАЛИЗОВАННЫЕ ПРОЕКТЫ (КЛИЕНТСКИЕ КЕЙСЫ НА ГЛАВНОЙ)
   ========================================================================== */
.projects {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.projects__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.projects__intro p {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 15px;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-card__img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card__img {
    transform: scale(1.05);
}

.project-card__label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.project-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.project-card__specs {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-card__specs li {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #E9ECEF;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.project-card__specs li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.project-card__specs span {
    font-weight: 600;
    color: var(--primary);
    text-align: right;
    max-width: 60%;
}

.project-card__btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
}

/* ==========================================================================
   12. МОДАЛЬНОЕ ОКНО КВИЗА И ШОУРУМА
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quiz-container {
    background: #ffffff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    position: relative;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    color: var(--text-main);
}

.modal-overlay.active .quiz-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent);
}

.quiz-header {
    padding: 30px;
    border-bottom: 1px solid #E9ECEF;
    text-align: center;
}

.quiz-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    padding: 0 20px;
}

.quiz-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.quiz-progress {
    height: 6px;
    background: #E9ECEF;
    width: 100%;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 25%;
    transition: width 0.4s ease;
}

.quiz-body {
    padding: 40px 30px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-question {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary);
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.quiz-radio { display: none; }

.quiz-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.quiz-label:hover { border-color: rgba(230, 126, 34, 0.5); }

.quiz-radio:checked + .quiz-label {
    border-color: var(--accent);
    background: rgba(230, 126, 34, 0.05);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.15);
}

.quiz-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.quiz-list .quiz-label {
    flex-direction: row;
    justify-content: flex-start;
    padding: 15px 20px;
    font-size: 16px;
}

.quiz-list .quiz-radio:checked + .quiz-label::before {
    content: '✔';
    margin-right: 10px;
    color: var(--accent);
}

.quiz-range-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.quiz-range-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
}

.quiz-range {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    background: #E9ECEF;
    border-radius: 5px;
    outline: none;
}

.quiz-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.quiz-form {
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E9ECEF;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.quiz-input:focus { border-color: var(--accent); }

.quiz-footer {
    padding: 20px 30px;
    background: #F8F9FA;
    border-top: 1px solid #E9ECEF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.btn-quiz {
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-prev { background: transparent; color: var(--text-muted); border: 1px solid #ddd; }
.btn-prev:hover { background: #e9ecef; color: var(--primary); }
.btn-next { background: var(--accent); color: #fff; }
.btn-next:hover { background: var(--accent-hover); }

.quiz-success {
    text-align: center;
    display: none;
}

.quiz-success h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ==========================================================================
   13. ФИНАЛЬНЫЙ ОФФЕР (CTA) И FAQ
   ========================================================================== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1a252f 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(230, 126, 34, 0.2);
    filter: blur(80px);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.cta__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta__title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta__title span {
    color: var(--accent);
}

.cta__text {
    font-size: 16px;
    color: #d1d5db;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.cta__phone-text {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 15px;
}

.cta__phone-text a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

/* FAQ / Аккордеон */
.faq {
    padding: 100px 0;
    background-color: #ffffff;
}

.faq__inner {
    max-width: 800px;
    margin: 0 auto;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border: 1px solid #E9ECEF;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.1);
}

.accordion-header {
    padding: 20px 25px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    user-select: none;
}

.accordion-header:hover {
    color: var(--accent);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    background: #F8F9FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    background: var(--accent);
    color: #ffffff;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #FAFAFA;
}

.accordion-content {
    padding: 0 25px 20px 25px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   14. ПЛАВАЮЩИЙ ЧАТ-ВИДЖЕТ
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-widget__btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.chat-widget__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5);
}

.chat-widget__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444; 
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 1px solid #E9ECEF;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: var(--primary);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.chat-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.chat-status {
    font-size: 11px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    display: block;
}

.chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.chat-close:hover { opacity: 1; }

.chat-body {
    padding: 20px;
    background: #F8F9FA;
    min-height: 150px;
    max-height: 250px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.chat-message {
    background: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    margin-bottom: 15px;
    border-bottom-left-radius: 4px;
    max-width: 90%;
    animation: fadeInMsg 0.4s ease;
}

.chat-message--user {
    background: rgba(230, 126, 34, 0.1);
    color: var(--primary);
    margin-left: auto;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 4px;
}

.chat-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #E9ECEF;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: 1px solid #E9ECEF;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus { border-color: var(--accent); }

.chat-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-submit:hover { background: var(--accent-hover); }

/* ==========================================================================
   15. ПОДВАЛ (FOOTER)
   ========================================================================== */
.footer {
    background-color: var(--bg-light);
    border-top: 1px solid #E9ECEF;
    padding: 60px 0 20px 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer__col-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.footer__text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 300px;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--accent);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer__contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__bottom {
    border-top: 1px solid #E9ECEF;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.footer__bottom a {
    color: #999;
    text-decoration: none;
}

.footer__bottom a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   16. ОБЩИЙ АДАПТИВНЫЙ МЕДИА-ЗАПРОС
   ========================================================================== */
@media (max-width: 1024px) {
    .trust__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav { 
        display: none !important; /* Принудительно скрываем обычное меню на мобильных */
    }
    
    .burger-btn { 
        display: block !important; 
    }
    
    .burger-btn { display: block; }
    .desktop-only { display: none !important; }
    
    .hero__inner {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .hero__image-wrapper {
        width: 100%;
    }
    .hero__image {
        height: 400px;
    }
    .hero__content {
        text-align: center;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__features-grid {
        text-align: left;
    }

    .categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showroom__inner {
        flex-direction: column;
    }
    .showroom__content {
        max-width: 100%;
        text-align: center;
    }
    .showroom__title {
        text-align: center;
    }
    .showroom__list li {
        text-align: left;
        display: inline-block;
        width: 100%;
    }
    .showroom__list {
        max-width: 500px;
        margin: 0 auto 40px auto;
    }
    .showroom__images {
        width: 100%;
        grid-template-rows: repeat(2, 150px);
    }

    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }
    .process__grid::before {
        display: none;
    }

    .materials__grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        min-width: calc(50% - 15px);
    }

    .prod-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prod-features__item, .prod-features__item:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }
    .prod-features__img {
        height: 300px;
    }

    .case__body {
        flex-direction: column;
        gap: 30px;
    }
    .case__gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px;
    }
    .case__img-main {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacts-layout__inner {
        grid-template-columns: 1fr;
    }
    .contacts-map {
        min-height: 350px;
        order: 2;
    }
    .contacts-form-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero__title { font-size: 36px; }
    .hero__actions { flex-direction: column; }
    .hero__features-grid { grid-template-columns: 1fr; gap: 15px; }
    .header__contacts .btn-outline { display: none; }

    .projects__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-card__img-wrapper {
        height: 220px;
    }

    .reviews__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .compare__grid {
        grid-template-columns: 1fr;
    }
    .compare-col--bad {
        border-right: none;
        border-bottom: 1px solid #E9ECEF;
    }
    .compare-col {
        padding: 40px 20px;
    }

    .cta__title { font-size: 28px; }
    .cta__actions { flex-direction: column; }

    .articles__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .contacts__grid {
        grid-template-columns: 1fr;
    }
    .contacts-form-wrapper {
        padding: 40px 20px;
    }
}

@media (max-width: 576px) {
    .header__inner {
        padding: 0 15px;
    }
    .logo {
        font-size: 18px;
    }
    .header__phone {
        font-size: 15px;
        white-space: nowrap;
    }

    .hero { padding: 30px 0 50px 0; }
    .hero__title { font-size: 26px; margin-bottom: 15px; }
    .hero__subtitle { font-size: 15px; margin-bottom: 30px; }
    .hero__image { 
        height: 250px;
        border-radius: 15px; 
    }

    .trust {
        padding: 50px 0;
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .trust__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .trust-card:hover {
        transform: translateY(-5px);
    }

    .categories {
        padding: 50px 0;
    }
    .categories__grid {
        grid-template-columns: 1fr;
    }
    .category-card {
        height: 250px;
    }
    .category-card__link {
        opacity: 1;
        transform: translateY(0);
    }

    .showroom {
        padding: 60px 0;
    }
    .showroom__title {
        font-size: 28px;
    }
    .showroom__images {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }
    .img-large {
        grid-column: 1 / 2;
        grid-row: auto;
        height: 250px;
    }
    .showroom__images img:not(.img-large) {
        height: 200px;
    }
    .showroom__images::before {
        display: none;
    }

    .quiz-grid { grid-template-columns: repeat(2, 1fr); }
    .quiz-body { padding: 30px 20px; }
    .quiz-header h2 { font-size: 20px; }

    .process { padding: 60px 0; }
    .process__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .materials { padding: 60px 0; }
    .material-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
    .material-card__brands {
        justify-content: center;
    }

    .reviews { padding: 60px 0; }
    .review-card {
        min-width: 85%;
    }

    .page-header__title {
        font-size: 32px;
    }
    .prod-stats__grid {
        grid-template-columns: 1fr;
    }

    .case__title { font-size: 24px; }
    .case__gallery {
        display: flex;
        flex-direction: column;
    }
    .case__img-wrapper {
        height: 250px;
    }
    .case__sidebar { padding: 20px; }

    .chat-widget { bottom: 15px; right: 15px; }
    .chat-window { width: calc(100vw - 30px); }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
        /* ================= СТИЛИ ДЛЯ ГАРМОНИЧНЫХ ГАЛЕРЕЙ ================= */
        
        /* Сброс высоты и сетки из основного style.css, чтобы убрать гигантский пустой пробел под фото */
        .case__gallery {
            height: auto !important;
            min-height: auto !important;
            grid-template-rows: auto !important;
        }
        .case__gallery .case__img-wrapper {
            height: auto !important;
            min-height: auto !important;
            grid-column: auto !important;
            grid-row: auto !important;
            width: 100% !important;
            margin: 0 !important;
        }

        /* Галерея 1: Премиум-раскладка под разные форматы фото (проект Кати) */
        .gallery-masonry {
            display: grid !important;
            grid-template-columns: 1fr 1.2fr 1fr !important;
            gap: 15px !important;
            align-items: stretch !important;
        }
        .gallery-masonry .col-vertical img {
            width: 100% !important;
            height: 100% !important;
            aspect-ratio: 3/4 !important;
            object-fit: cover !important;
            border-radius: 8px !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
        }
        .gallery-masonry .col-stacked {
            display: flex !important;
            flex-direction: column !important;
            gap: 15px !important;
            justify-content: space-between !important;
        }
        .gallery-masonry .col-stacked img {
            width: 100% !important;
            aspect-ratio: 16/10 !important;
            object-fit: cover !important;
            border-radius: 8px !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
        }

        /* Галерея 2: Линейка вертикальных кадров для этапов сборки */
        .gallery-timeline {
            display: grid !important;
            grid-template-columns: repeat(4, 1fr) !important;
            gap: 15px !important;
        }
        .gallery-timeline img {
            width: 100% !important;
            aspect-ratio: 3/4 !important;
            object-fit: cover !important;
            border-radius: 8px !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
        }

        /* Галереи 3 и 4: Квадратная плитка в стиле каталога */
        .gallery-catalog {
            display: grid !important;
            grid-template-columns: repeat(4, 1fr) !important;
            gap: 15px !important;
        }
        .gallery-catalog img {
            width: 100% !important;
            aspect-ratio: 1/1 !important;
            object-fit: cover !important;
            border-radius: 8px !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease !important;
        }
        .gallery-catalog img:hover {
            transform: translateY(-4px) !important;
            box-shadow: 0 10px 22px rgba(0,0,0,0.12) !important;
        }

        /* Общие настройки для всех интерактивных фото */
        .case__gallery img {
            cursor: zoom-in !important;
        }

        /* Адаптивность под планшеты и мобильные */
        @media (max-width: 768px) {
            .gallery-masonry {
                grid-template-columns: 1fr !important;
            }
            .gallery-masonry .col-vertical img,
            .gallery-masonry .col-stacked img {
                aspect-ratio: 4/3 !important;
            }
            .gallery-timeline {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            .gallery-catalog {
                grid-template-columns: repeat(2, 1fr) !important;
            }
        }

        /* ================= СТИЛИ ЛАЙТБОКСА (ПРОСМОТРЩИКА) ================= */
        .custom-lightbox {
            display: none;
            position: fixed;
            z-index: 10000;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 15, 17, 0.95);
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .custom-lightbox.active {
            display: flex;
            opacity: 1;
        }
        .custom-lightbox img {
            max-width: 90%;
            max-height: 85%;
            object-fit: contain;
            border-radius: 6px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.6);
            transform: scale(0.95);
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .custom-lightbox.active img {
            transform: scale(1);
        }
        .custom-lightbox-close {
            position: absolute;
            top: 25px;
            right: 35px;
            color: #fff;
            font-size: 45px;
            font-weight: 200;
            cursor: pointer;
            user-select: none;
            transition: color 0.2s;
        }
        .custom-lightbox-close:hover {
            color: #ff9900;
        }
    /* Стили для контейнера с одной картинкой */
.showroom__images--single {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
}

/* Стили для самой одиночной картинки */
.showroom__single-img {
    width: 100%;
    height: 100%;
    min-height: 400px;     /* Минимальная высота, чтобы блок не выглядел плоским */
    max-height: 550px;     /* Максимальная высота, чтобы фото не было слишком огромным */
    object-fit: cover;     /* Картинка будет красиво заполнять область без искажения пропорций */
    border-radius: 12px;   /* Эстетичное скругление углов */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Мягкая тень для объема */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .showroom__single-img {
        min-height: 300px; /* На телефонах делаем картинку чуть ниже */
    }
}
/* Отключаем декоративные круги, которые перекрывают новое фото */
.showroom__images::before,
.showroom__images::after {
    display: none !important;
}

/* Стили для того, чтобы одиночная картинка встала ровно и аккуратно */
.showroom__images {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: auto;
}

.showroom__single-img {
    width: 100%;
    height: auto;
    max-height: 500px; /* Ограничиваем высоту, чтобы фото не было гигантским */
    object-fit: cover;
    border-radius: 12px; /* Красивое скругление углов */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Мягкая тень */
}
/* ==========================================================================
   КУХНИ: Стилизация первых блоков
   ========================================================================== */

/* Настройки фонового изображения первого экрана кухни по умолчанию */
.hero__image--kitchens-bg {
    background-image: url('../img/kuhnya_glavnaya.webp'), 
                      linear-gradient(135deg, #e9ecef 0%, #ced4da 100%) !important;
}

/* Дополнительные отступы для разделов кухонной страницы */
.categories--kitchens {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #ffffff; /* Делаем фон этого блока белым для контраста со следующими */
}

/* Позиционирование элементов на мобильных */
@media (max-width: 576px) {
    .categories--kitchens {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}
/* ==========================================================================
   АДАПТИВНАЯ ОПТИМИЗАЦИЯ КВИЗА ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ========================================================================== */

@media (max-width: 768px) {
    /* Делаем модальное окно шире и позволяем ему занимать больше высоты, чтобы избежать внутреннего скролла */
    .quiz-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px; /* Чуть менее агрессивные углы на мобильных */
    }

    /* Уменьшаем высоту шапки квиза */
    .quiz-header {
        padding: 15px 20px; /* Было 30px */
    }

    .quiz-header h2 {
        font-size: 18px; /* Было 24px */
        margin-bottom: 5px;
    }

    .quiz-header p {
        font-size: 12px;
    }

    /* Сжимаем тело квиза и убираем жесткую минимальную высоту */
    .quiz-body {
        padding: 20px 15px; /* Было 40px 30px */
        min-height: auto;   /* Сбрасываем min-height: 350px, чтобы не плодить пустоту */
    }

    /* Делаем сам вопрос компактнее */
    .quiz-question {
        font-size: 16px; /* Было 20px */
        margin-bottom: 15px; /* Было 25px */
    }

    /* Варианты ответов плиткой (Grid) */
    .quiz-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
        gap: 8px; /* Было 15px */
    }

    .quiz-label {
        padding: 12px 8px; /* Было 20px 10px — существенно экономит высоту */
        font-size: 13px;   /* Было 14px */
        border-radius: 8px;
    }

    /* Варианты ответов простым списком (List) */
    .quiz-list {
        gap: 10px; /* Было 15px */
    }

    .quiz-list .quiz-label {
        padding: 12px 15px; /* Было 15px 20px */
        font-size: 14px;    /* Было 16px */
    }

    /* Поле ввода для финальной формы */
    .quiz-input {
        padding: 12px 15px; /* Было 15px 20px */
        font-size: 15px;
    }

    /* Настройки ползунка (Range) */
    .quiz-range-value {
        font-size: 24px; /* Было 32px */
        margin-bottom: 12px;
    }

    /* Компактный подвал квиза (кнопки Назад/Далее) */
    .quiz-footer {
        padding: 15px 20px; /* Было 20px 30px */
    }

    .btn-quiz {
        padding: 10px 20px; /* Было 10px 24px */
        font-size: 14px;
    }

    /* Кнопка закрытия модального окна */
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 28px; /* Слегка уменьшаем */
    }
}

/* Оптимизация для самых узких экранов (смартфоны в портретном режиме) */
@media (max-width: 480px) {
    /* Если текст в плитке из 2-х колонок начинает накладываться друг на друга,
       перестраиваем варианты ответов строго в один столбец */
    .quiz-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .quiz-label {
        padding: 10px 12px;
        flex-direction: row; /* Если были иконки, выстраиваем их горизонтально */
        justify-content: flex-start;
        text-align: left;
    }
}