.color-item span {
    font-size: clamp(20px, 1.5vw, 30px);
    font-weight: 500;
}


/* === Секция выбора цвета === */
.color-picker-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.color-picker-header {
    text-align: center;
    margin-bottom: 32px;
}

.color-picker-title {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: #1a3145;
    margin: 0;
    letter-spacing: -0.3px;
}

.color-picker-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.color-picker-image-area {
    position: sticky;
    top: 20px;
}

.color-picker-canvas-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f8fb;
    border: 1px solid #dce4ef;
    box-shadow: 0 4px 20px rgba(30, 60, 90, 0.06);
}

.color-picker-canvas-wrap img,
.color-picker-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

#pickerResultCanvas {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.color-picker-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.picker-color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.picker-color-swatch {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
}

.picker-color-swatch:hover {
    transform: translateY(-2px);
}

.picker-color-swatch.picker-selected {
    border-color: #3a6387;
    box-shadow: 0 0 0 2px rgba(58, 99, 135, 0.2);
}

.picker-color-swatch span {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    background: rgba(26, 49, 69, 0.7);
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.3;
}

.picker-color-swatch[style*="244,248,244"] span {
    color: #1a3145;
    background: rgba(255, 255, 255, 0.85);
}

.color-picker-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.color-picker-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #c4d3e3;
    opacity: 1;
    border-radius: 50%;
}

.color-picker-pagination .swiper-pagination-bullet-active {
    background: #3a6387;
}

.color-picker-profiles {
    background: #f8fafc;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e2eaf3;
}

.color-picker-profiles-title {
    font-size: 13px;
    font-weight: 600;
    color: #4a6178;
    margin-bottom: 14px;
}

.color-picker-profiles-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.color-picker-profiles-list {
    display: flex;
    gap: 12px;
}

.color-picker-profile-card {
    flex-shrink: 0;
    text-align: center;
}

.color-picker-profile-img {
    width: 100px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid #dce4ef;
}

.color-picker-profile-label {
    font-size: 11px;
    color: #5d6f82;
    margin-top: 6px;
    display: block;
}

.color-picker-cta-buttons {
    display: flex;
    gap: 12px;
}

.color-picker-call-btn,
.color-picker-msg-btn {
    flex: 1;
    text-align: center;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.color-picker-call-btn {
    background: #eaf1f8;
    color: #ffffff;
    border: 1px solid #d0dde9;
}

.color-picker-call-btn:hover {
    background: #003d76;
}

.color-picker-msg-btn {
    background: #3a6387;
    color: #fff;
}

.color-picker-msg-btn:hover {
    background: #2f5474;
}

@media (max-width: 768px) {
    .color-picker-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .color-picker-image-area {
        position: static;
    }
    
    .picker-color-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .color-picker-cta-buttons {
        flex-direction: column;
    }
}

/* Стили для табов цвета */
.color-tabs-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.color-tabs-wrapper .image-section {
    flex: 1.2;
    min-width: 280px;
}

.color-tabs-wrapper .colors-section {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
}

.color-tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.color-tab-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.color-tab-btn.active {
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.color-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== СТИЛИ ВКЛАДОК ЦВЕТА (как у .tab-btn) ===== */
.color-tabs-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 3px solid #d0ddeb;
    position: relative;
    background: linear-gradient(to bottom, #f5f9ff 0%, #ffffff 100%);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.05);
    justify-content: center;
    padding: 0;
}

.color-tab-btn {
    padding: 16px 4vw;
    font-size: clamp(10px, 2vw, 30px);
    font-weight: 600;
    background: #e9eef4;
    border: 2px solid #b8c7dd;
    border-radius: 50px 50px 0 0;
    color: #1e3a5f;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: -3px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
    background: #e2eaf3;
    border: 2px solid #9bb0cc;
    opacity: 1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.color-tab-btn.active {
    color: #0066cc;
    background: white;
    border: 2px solid #0066cc;
    border-bottom-color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 102, 204, 0.1);
    box-shadow: 0 -4px 10px rgba(0, 102, 204, 0.15);
    z-index: 2;
}

.color-tab-btn.active::before {
    content: "▼";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: #0066cc;
    font-size: 16px;
    text-shadow: 0 2px 3px rgba(0, 102, 204, 0.3);
}

/* Адаптация под правую колонку - убираем лишние отступы */
.color-tabs-header {
    margin-top: 0;
    padding-top: 0;
}


/* Стили для синхронизации высоты правой колонки */
.color-tabs-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.color-tabs-wrapper .image-section {
    flex: 1.2;
    min-width: 280px;
}

.color-tabs-wrapper .colors-section {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
}

/* Панели вкладок */
.color-tab-pane {
    display: none;
    animation: colorFadeIn 0.3s ease;
}

.color-tab-pane.active {
    display: block;
}

@keyframes colorFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== СТИЛИ ВКЛАДОК ЦВЕТА (как у .tab-btn) ===== */
.color-tabs-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 3px solid #d0ddeb;
    position: relative;
    background: linear-gradient(to bottom, #f5f9ff 0%, #ffffff 100%);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.05);
    justify-content: center;
    padding: 0;
}

.color-tab-btn {
    padding: 16px 4vw;
    font-size: clamp(10px, 2vw, 30px);
    font-weight: 600;
    background: #e9eef4;
    border: 2px solid #b8c7dd;
    border-radius: 50px 50px 0 0;
    color: #1e3a5f;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: -3px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
    background: #e2eaf3;
    border: 2px solid #9bb0cc;
    opacity: 1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.color-tab-btn.active {
    color: #0066cc;
    background: white;
    border: 2px solid #0066cc;
    border-bottom-color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 102, 204, 0.1);
    box-shadow: 0 -4px 10px rgba(0, 102, 204, 0.15);
    z-index: 2;
}

.color-tab-btn.active::before {
    content: "▼";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: #0066cc;
    font-size: 16px;
    text-shadow: 0 2px 3px rgba(0, 102, 204, 0.3);
}

/* Адаптация под правую колонку */
.color-tabs-header {
    margin-top: 0;
    padding-top: 0;
}



/* Стили для синхронизации высоты правой колонки */
.color-tabs-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.color-tabs-wrapper .image-section {
    flex: 1.2;
    min-width: 280px;
}

.color-tabs-wrapper .colors-section {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
}

/* Панели вкладок */
.color-tab-pane {
    display: none;
    animation: colorFadeIn 0.3s ease;
}

.color-tab-pane.active {
    display: block;
}

@keyframes colorFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Левое изображение с ленивой загрузкой */
.color-main-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
    min-height: 200px;
}

.lazy-color-image {
    width: 100%;
    display: block;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-color-image.loaded {
    opacity: 1;
}

.lazy-placeholder-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loadingColor 1.5s infinite;
    z-index: 1;
}

.lazy-color-image.loaded + .lazy-placeholder-color {
    display: none;
}

@keyframes loadingColor {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== СЕТКА ЦВЕТОВ (общая для обеих вкладок) ===== */
.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-item {
    display: flex;
    height: 10vw;
    min-height: 70px;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    text-align: center;
    word-break: break-word;
    transition: all 0.2s ease;
}

.color-item:not([data-texture]) {
    color: black;
    text-shadow: none;
}

.color-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    pointer-events: none;
}

.color-item[data-texture]::before {
    background: rgba(0, 0, 0, 0.15);
}

.color-item span {
    position: relative;
    z-index: 2;
}

.color-item.selected {
    border-color: #ffd700;
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
}

/* Адаптация сетки цветов */
@media (max-width: 780px) {
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Свайперы */
.color-swiper-container,
.color-swiper-container-extra {
    overflow: hidden;
    border-radius: 16px;
}

.pagination,
.pagination-extra {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.pagination .swiper-pagination-bullet,
.pagination-extra .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #c4d3e3;
    opacity: 1;
    border-radius: 50%;
}

.pagination .swiper-pagination-bullet-active,
.pagination-extra .swiper-pagination-bullet-active {
    background: #3a6387;
}

.design-links {
    margin-top: 20px;
}

.design-links-title {
    font-size: clamp(20px, 1.5vw, 30px);
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-left: 5px;
}

/* Адаптив */
@media (max-width: 768px) {
    .color-tabs-wrapper {
        flex-direction: column;
    }
}



















/* Контейнер для карточек преимуществ */
.advantages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* Карточка-флип для преимущества */
.advantage-flip-card {
    background-color: transparent;
    height: auto;
    perspective: 1500px;
    cursor: pointer;
    width: calc(33.333% - 14px); /* 3 колонки на десктопе */
    animation: fadeUp 0.4s ease-out forwards;
    opacity: 0;
}

/* Эффект переворота при наведении (только для устройств с мышкой) */
@media (hover: hover) {
    .advantage-flip-card:hover .advantage-flip-inner {
        transform: rotateY(180deg);
    }
}

/* Класс для переворота по касанию на мобильных устройствах */
.advantage-flip-card.touch-flip .advantage-flip-inner {
    transform: rotateY(180deg);
}

/* Внутренний блок с 3D трансформацией */
.advantage-flip-inner {
    position: relative;
    width: 100%;
    min-height: 280px;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 0.8);
    transform-style: preserve-3d;
}

/* Лицевая и задняя стороны карточки */
.advantage-front,
.advantage-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    top: 0;
    left: 0;
}

/* Лицевая сторона (видна по умолчанию) */
.advantage-front {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: rotateY(0deg);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Заголовок на лицевой стороне */
.advantage-title {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 16px 20px;
    font-size: clamp(20px, 1.5vw, 30px);;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

/* Декоративный элемент перед заголовком */
.advantage-title::before {
    content: "✦";
    font-size: 20px;
    color: #3b82f6;
    font-weight: 400;
    margin-right: 8px;
    display: inline-block;
}

/* Текст на лицевой стороне */
.advantage-text {
    padding: 20px;
    font-size: clamp(14px, 1.1vw, 23px);
    color: #334155;
    line-height: 1.45;
    text-align: left;
    flex: 1;
}

/* Задняя сторона (видна после переворота) */
.advantage-back {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Текст на задней стороне */
.advantage-back p {
    font-size: clamp(14px, 4vw, 29px);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
    position: relative;
    padding: 15px 25px;
    border-left: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* Секция заголовка */
.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    border-radius: 2px;
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержки для карточек */
.advantage-flip-card:nth-child(1) { animation-delay: 0.05s; }
.advantage-flip-card:nth-child(2) { animation-delay: 0.1s; }
.advantage-flip-card:nth-child(3) { animation-delay: 0.15s; }
.advantage-flip-card:nth-child(4) { animation-delay: 0.2s; }
.advantage-flip-card:nth-child(5) { animation-delay: 0.25s; }

/* ===== АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ ===== */
@media (max-width: 1041px) {
    .advantage-flip-card {
        width: calc(50% - 10px); /* 2 колонки на планшете */
    }
    
    .advantage-flip-inner {
        min-height: 300px;
    }
    
    
    .advantage-text {
        font-size: 14px;
        padding: 16px;
    }
}

/* ===== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    .advantages-container {
        gap: 16px;
    }
    
    .advantage-flip-card {
        width: 100%; /* 1 колонка на мобильных */
    }
    
    .advantage-flip-inner {
        min-height: 240px;
    }

    
    .advantage-text {
        font-size: 14px;
        padding: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
}

/* Опционально: эффект при нажатии на карточку */
.advantage-flip-card:active .advantage-flip-inner {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

@media (hover: hover) {
    .advantage-flip-card:active .advantage-flip-inner {
        transform: scale(0.98);
    }
}









/* ===== ОБНУЛЕНИЕ И БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}



body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 16px;
}

/* ===== ОСНОВНЫЕ КОНТЕЙНЕРЫ ===== */
.main-container {
    /* max-width: 1800px; */
    margin: 0 auto;
    background: white;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.container {
    /* max-width: 1400px; */
    margin: auto;
    background: white;
    padding: 25px 20px;
    /* box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); */
}

.main-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

.content-card {
    background: #ffffff;
    overflow: hidden;
}

/* ===== СЕКЦИИ ===== */
.section {
    border-bottom: 1px solid #eaeef2;
    padding-bottom: 100px;
}
.section:last-child {
    border-bottom: none;
}

/* ===== ЗАГОЛОВКИ СЕКЦИЙ ===== */
.section-header {
    position: relative;
    text-align: center;
    padding: 30px 0 20px;
    background: white;
    margin-bottom: 24px;
}

.section-title,
.title h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b 0%, #2d4a6e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    padding: 0 30px;
    z-index: 2;
    margin: 0;
    line-height: 1.2;
}

.section-title::before,
.section-title::after,
.title h2::before,
.title h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100px;
    height: 3px;
    background: #0066cc;
    border-radius: 3px;
    transform: translateY(-50%);
}

.section-title::before,
.title h2::before {
    right: 100%;
    margin-right: 20px;
}

.section-title::after,
.title h2::after {
    left: 100%;
    margin-left: 20px;
}

.section-title::after {
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
}

/* ===== ВКЛАДКИ ===== */
.tabs-header {
    margin: 10px;
    display: flex;
    gap: 8px;
    padding: 0 20px;
    border-bottom: 3px solid #d0ddeb;
    position: relative;
    flex-wrap: nowrap;
    background: linear-gradient(to bottom, #f5f9ff 0%, #ffffff 100%);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.05);
    flex-direction: row;
    align-content: flex-start;
    justify-content: center;
    align-items: flex-start;
}

.tab-btn {
    padding: 16px 4vw;
    font-size:clamp(10px, 2vw, 30px);
    font-weight: 600;
    background: #e9eef4;
    border: 2px solid #b8c7dd;
    border-radius: 50px 50px 0 0;
    color: #1e3a5f;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: -3px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
}

.tab-btn:not(.active) {
    color: #0b2b4a;
    background: #e2eaf3;
    border: 2px solid #9bb0cc;
    opacity: 1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
    color: #0066cc;
    background: white;
    border: 2px solid #0066cc;
    border-bottom-color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 102, 204, 0.1);
    box-shadow: 0 -4px 10px rgba(0, 102, 204, 0.15);
    z-index: 2;
}

.tab-btn.active::before {
    content: "▼";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: #0066cc;
    font-size: 16px;
    text-shadow: 0 2px 3px rgba(0, 102, 204, 0.3);
}

/* .tabs-content {
    padding: 32px;
} */

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ===== ДВУХКОЛОНОЧНЫЙ МАКЕТ ===== */
.tab-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.tab-left,
.tab-right {
    flex: 1 1 50%;
    max-width: 50%;
}

/* ===== SWIPER СЛАЙДЕР ===== */
.swiper-container,
.swiper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide img.loaded {
    opacity: 1;
    animation: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lazy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

.swiper-slide img.loaded + .lazy-placeholder {
    display: none;
}

.slide-text {
    font-size: clamp(10px, 1.5vw, 30px);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3), transparent);
    color: white;
    padding: 70px 20px 30px 20px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    word-break: break-word;
    z-index: 2;
}

.swiper-button-prev,
.swiper-button-next {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: #1e1e2f;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 24px;
    font-weight: 800;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px !important;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: white;
    opacity: 0.7;
    border-radius: 50%;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 20px;
    border-radius: 10px;
    background: white;
}

/* ===== КОНТЕНТ ПРАВОЙ КОЛОНКИ ===== */
.content-title {
    font-size: 28px;
    font-weight: 600;
    color: #1e1e2f;
    margin-bottom: 16px;
    margin-top: 20px;
}

.content-desc {
    font-size: clamp(20px, 1.5vw, 30px);
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 24px;
}

.content-features {
    list-style: none;
    margin-bottom: 32px;
    
}

.content-features li {
    font-size: clamp(20px, 2vw, 25px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eaeef2;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: clamp(12px, 2vw, 20px);
}

.content-features li strong {
    color: #0066cc;
}

.content-features li.active-feature {
    font-size: clamp(23px, 2vw, 30px);
    color: #0066cc;
    background: linear-gradient(to right, #f0f7ff, transparent);
    padding-left: 10px;
    margin-left: -10px;
    border-bottom: 1px solid #0066cc;
}

.content-features li.active-feature strong {
    color: #0066cc; /* сохраняем цвет strong в активном состоянии */
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: #e6f0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* ===== КОНТЕЙНЕР ЦВЕТОВ И ИЗОБРАЖЕНИЙ ===== */
.main-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}


@media (max-width: 900px) {

    .main-content{
        display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    flex-direction: column;
    }
}

.image-section {
    flex: 1;
    min-width: 300px;
}

.image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

.image-container img {
    width: 100%;
    display: block;
    height: auto;
}

#resultCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity .25s;
    background: transparent;
}

.colors-section {
    flex: 1;
    min-width: 300px;
}

.color-slider {
    background: #f8f9fa;
    border-radius: 20px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-item {
    display: flex;
    height: 10vw;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 70px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    text-align: center;
    word-break: break-word;
}

.color-item:not([data-texture]) {
    color: black;
    text-shadow: none;
}

.color-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    border-radius: 6px;
    pointer-events: none;
}

.color-item span {
    position: relative;
    z-index: 2;
}

.color-item.selected {
    border-color: #ffd700;
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, .5);
}

.design-links {
    margin-bottom: 20px;
}

.design-links-title {
    font-size: clamp(20px, 1.5vw, 30px);
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-left: 5px;
}

.design-images-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 10px;
}

.design-images-scroll::-webkit-scrollbar {
    height: 4px;
}

.design-images {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
    padding: 2px;
}

.design-item {
     flex: 0 0 calc(50% - 6px);
    
    width: clamp(100px, 20vw, 190000000px);
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #f5f5f5;
}

.design-image {
    width: 100%;
    height: clamp(100px, 15vw, 1100px);
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f0f0f0;
}

.design-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.design-label {
    display: block;
    padding: 10px 8px;
    text-align: center;
    color: #333;
    font-weight: 500;
    font-size: clamp(20px, 0.3vw, 15px);;
    background: white;
    border-top: 1px solid #eee;
} 
/* ===== КНОПКИ С АНИМАЦИЕЙ ПЕРЕЛИВАНИЯ ===== */
.buttons-container {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.call-btn, .max-btn {
    flex: 1;
    padding: 14px 12px;
    border-radius: 40px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    background-size: 200% 200%;
    z-index: 1;
}

/* Постоянное переливание для call-btn */
.call-btn {
    
    background: #003d76;
    background-size: 300% 300%;
    animation: gradientFlow 3s ease infinite reverse, softPulse 2.5s ease-in-out infinite;
}

/* Постоянное переливание для max-btn */
.max-btn {
background: #003d76;
background-size: 300% 300%;
animation: gradientFlow 3s ease infinite reverse, softPulse 2.5s ease-in-out infinite;
}

/* Анимация градиента */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Пульсация тени */
@keyframes softPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.3);
    }
}

/* Эффект блика */
.call-btn::before, .max-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: shineMove 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    border-radius: 40px;
}

@keyframes shineMove {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

/* Эффект при наведении */
.call-btn:hover, .max-btn:hover {
    transform: translateY(-3px);
    animation: gradientFlow 1s ease infinite, softPulse 0.8s ease-in-out infinite;
}

.call-btn:active, .max-btn:active {
    transform: translateY(1px);
    transition: transform 0.1s ease;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

/* ===== PDF БЛОКИ ===== */
.pdf-links-block {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border-radius: 20px;
    border-left: 4px solid #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.08);
}

.pdf-links-block h4 {
    font-size: clamp(20px, 1.5vw, 30px);
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-link-item {
    font-size: clamp(20px, 1.5vw, 30px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    margin-bottom: 12px;
    padding: 10px 20px;
    background: white;
    border-radius: 40px;
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.pdf-link-item:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.2);
    border-color: #0066cc;
}

/* ===== ФОТО С КЛИКОМ ===== */
.photo-clickable {
    padding: 20px;
    max-width: 90%;
    height: auto;
    /* width: clamp(20px, 90vw, 1200px); */
    position: relative;
    margin-left: 4vw;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
}

.photo-clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.photo-clickable:active {
    transform: scale(0.98);
}

/* ===== ТЕКСТОВАЯ ПОДЛОЖКА ===== */
.photo-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 84px;
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.75) 0%, rgba(96, 96, 96, 0.7) 40%, rgba(64, 64, 64, 0.65) 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0 0 18px 18px;
    font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding: 12px 20px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

.photo-clickable:hover .photo-overlay-text {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.85) 0%, rgba(96, 96, 96, 0.8) 40%, rgba(64, 64, 64, 0.75) 100%);
    backdrop-filter: blur(16px);
    letter-spacing: 1px;
    padding: 14px 20px;
    font-size: 25px;
}

/* ===== ДЛИННЫЙ ТЕКСТ ===== */
.long-text {
    margin-top: 20px;
    line-height: 1.7;
    color: #2d3748;
    background: linear-gradient(135deg, #f9f9ff 0%, #ffffff 100%);
    padding: 24px;
    border-radius: 20px;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
}

.long-text p {
    margin-bottom: 16px;
    font-size: clamp(20px, 1.5vw, 30px);
}

.long-text p:last-child {
    margin-bottom: 0;
}

.long-text strong {
    color: #0066cc;
    font-weight: 600;
}

/* ===== СТИЛИ ДЛЯ СЕКЦИИ "Способы монтажа" ===== */
.slide-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #e9ecef;
    position: relative;
    cursor: pointer;
}

.slide-image img {
    padding: 10px;
    border-radius: 50px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0;
}

.slide-image img.loaded {
    opacity: 1;
}

.zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.slide-image:hover .zoom-icon { opacity: 1; }

.slide-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.method-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e3c5c;
    margin-bottom: 12px;
}

.method-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: clamp(20px, 1.2vw, 30px);;
}

.method-features {
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    margin-top: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(20px, 1.2vw, 30px);
    /* clamp(20px, 1.5vw, 30px); */
    color: #2c6288;
    margin-bottom: 6px;
}

/* ===== ГАЛЕРЕЯ РАБОТ ===== */
.gallery-swiper {
    width: 100%;
    padding: 20px 0 60px 0;
    overflow: hidden;
}

.gallery-swiper .swiper-slide {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-swiper .slide-image {
    height: 250px;
}

.work-title {
    font-size: clamp(20px, 1.5vw, 30px);;
    font-weight: 600;
    color: #1e3c5c;
    margin-bottom: 8px;
}

.work-description {
    font-size: clamp(20px, 1.5vw, 30px);
    color: #6c757d;
    line-height: 1.4;
}

/* ===== КАРТОЧКА ТАБЛИЦЫ ===== */
.table-card {
    max-width: 100%;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.4s ease-out;
}

.card-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 24px 20px;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec489a);
}

.card-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-header h1::before {
    content: '📏';
    font-size: 1.5rem;
}

.card-header p {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 8px;
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 280px;
}

.size-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 30px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.size-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    transition: background 0.2s ease;
}

.size-table td:first-child {
    font-weight: 600;
    color: #1e293b;
    background: #fefefe;
    width: 45%;
    font-size: clamp(10px, 2vw, 20px);
}

.size-table td:last-child {
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 25px);
    word-break: break-word;
}

.value {
    color: #3b82f6;
    font-weight: 700;
}

.unit {
    
    font-weight: 400;
    color: #64748b;
    margin-left: 2px;
}

.range {
    font-size: clamp(10px, 2vw, 25px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.range-separator {
    color: #94a3b8;
}

.mount-type {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 400;
    font-family: system-ui;
    display: inline-block;
    margin-left: 6px;
    white-space: normal;
}

/* ===== ПЕРЕВОРАЧИВАЮЩИЕСЯ КАРТОЧКИ ===== */

/* Контейнер для карточек зон */
.zones-container {
    display: flex;
    grid-template-columns: 1fr;      /* Одна колонка на мобильных */
    gap: 12px;                       /* Уменьшенный отступ между карточками */
    margin-bottom: 20px;             /* Отступ снизу контейнера */
}

/* Карточка-флип для зоны */
.zone-flip-card {
    background-color: transparent;    /* Прозрачный фон для 3D эффекта */
    height: 100%;                     /* На всю высоту родителя */
    perspective: 1500px;              /* Глубина перспективы для 3D */
    cursor: pointer;                  /* Курсор-указатель при наведении */
    width: 100%;                      /* На всю ширину родителя */
    animation: fadeUp 0.4s ease-out forwards;  /* Анимация появления */
    opacity: 0;                       /* Начальная прозрачность для анимации */
}

/* Эффект переворота при наведении (только для устройств с мышкой) */
@media (hover: hover) {
    .zone-flip-card:hover .zone-flip-inner {
        transform: rotateY(180deg);   /* Переворот на 180 градусов */
    }
}

/* Класс для переворота по касанию на мобильных устройствах */
.zone-flip-card.touch-flip .zone-flip-inner {
    transform: rotateY(180deg);       /* Переворот при касании */
}

/* Внутренний блок с 3D трансформацией */
.zone-flip-inner {
    position: relative;               /* Относительное позиционирование */
    width: 100%;                      /* Полная ширина */
    min-height: 100px;               /* Минимальная высота (уменьшена для компактности) */
    text-align: center;              /* Центрирование текста */
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 0.8);  /* Плавная анимация */
    transform-style: preserve-3d;     /* Сохранение 3D эффекта */
}

/* Лицевая и задняя стороны карточки */
.zone-front, .zone-back {
    position: absolute;               /* Абсолютное позиционирование */
    width: 100%;                      /* Полная ширина */
    height: 100%;                     /* Полная высота */
    backface-visibility: hidden;      /* Скрываем обратную сторону */
    border-radius: 20px;              /* Скругление углов */
    overflow: hidden;                 /* Обрезаем выступающее содержимое */
    top: 0;                           /* Привязка к верху */
    left: 0;                          /* Привязка к левому краю */
}

/* Лицевая сторона (видна по умолчанию) */
.zone-front {
    background: #ffffff;              /* Белый фон */
    border: 1px solid #e2e8f0;       /* Светлая рамка */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);  /* Легкая тень */
    transform: rotateY(0deg);         /* Без поворота */
    position: relative;               /* Относительное позиционирование */
    z-index: 1;                       /* Выше задней стороны */
}

/* Задняя сторона (видна после переворота) */
.zone-back {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);  /* Синий градиент */
    color: white;                     /* Белый текст */
    transform: rotateY(180deg);       /* Повернута на 180 градусов */
    display: flex;                    /* Flexbox для центрирования */
    align-items: center;              /* Центрирование по вертикали */
    justify-content: center;          /* Центрирование по горизонтали */
    z-index: 1;                       /* Ниже лицевой стороны */
}

/* Текст на задней стороне зон */
.zone-back p {
    font-size: clamp(14px, 2vw, 25px);
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
    position: relative;
    padding: 10px 20px;
    border-left: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* Шапка карточки зоны */
.zone-head {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);  /* Светлый градиент */
    padding: 6px 12px;               /* Уменьшенные отступы */
    border-bottom: 2px solid #e2e8f0;  /* Разделительная линия */
}

/* Заголовок в шапке */
.zone-head h3 {
    font-size: 22px;                  /* Крупный шрифт */
    font-weight: 700;                /* Жирное начертание */
    color: #0f172a;                  /* Темно-синий цвет */
    display: flex;                    /* Flexbox для выравнивания */
    align-items: center;              /* Центрирование по вертикали */
    gap: 6px;                        /* Расстояние между элементами */
    margin: 0;                        /* Убираем отступы */
}

/* Декоративный элемент перед заголовком */
.zone-head h3::before {
    /* content: "✦";                    Символ звезды */
    font-size: 22px;                 /* Размер символа */
    color: #3b82f6;                  /* Синий цвет */
    font-weight: 400;                /* Обычное начертание */
}

/* Основной контент карточки зоны */
.zone-body {
    padding: 10px 14px;              /* Уменьшенные отступы */
    text-align: left;                /* Текст по левому краю */
}

/* Текст основного контента */
.zone-body p {
    font-size: 18px;                 /* Увеличенный шрифт */
    color: #334155;                  /* Серо-синий цвет */
    line-height: 1.35;              /* Межстрочный интервал */
    margin: 0;                        /* Убираем отступы */
}


/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
@keyframes fadeUp {
    from {
        opacity: 0;                  /* Начальная прозрачность */
        transform: translateY(20px); /* Начальное смещение вниз */
    }
    to {
        opacity: 1;                  /* Конечная прозрачность */
        transform: translateY(0);    /* Конечное положение */
    }
}


/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-img { 
    max-width: 90%; 
    max-height: 90vh; 
    object-fit: contain; 
    border-radius: 8px; 
}

.modal-caption {
    font-size: clamp(10px, 3vw, 30px);
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    margin: 0 20px;
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 10000;
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10001;
}

.modal-prev, .modal-next {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-prev:hover, .modal-next:hover {
    background: rgba(30, 60, 92, 0.9);
    transform: scale(1.1);
}

.modal-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 10001;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.divider {
    margin: 32px 0;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
}






@media (max-width: 950px) {
    .tab-grid {
        flex-direction: column;
        gap: 20px;
    }
    .tab-left, .tab-right {
        max-width: 100%;
        width: 100%;
    }
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .tabs-header {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .tabs-header::-webkit-scrollbar {
        display: none;
    }
    .tab-btn.active::before {
        content: "▲";
        bottom: auto;
        top: -10px;
        font-size: 14px;
    }
    .modal-prev, .modal-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .pdf-link-item {
        display: block;
        margin-right: 0;
        text-align: center;
    }
    .zone-front {
        -webkit-tap-highlight-color: transparent;
    }
    .zone-flip-card {
        touch-action: manipulation;
    }
}



@media (max-width: 780px) {

    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}





@media (max-width: 767px) {
    body {
        padding: 16px;
        align-items: flex-start;
    }
    .table-card {
        border-radius: 20px;
    }
    .card-header {
        padding: 18px 16px;
    }
    .card-header h1 {
        font-size: 1.25rem;
    }
    .card-header h1::before {
        font-size: 1.25rem;
    }
    .card-header p {
        font-size: 0.7rem;
        margin-top: 6px;
    }
    .size-table th {
        padding: 12px 12px;
        font-size: 0.7rem;
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .buttons-container {
        flex-direction: column;
        gap: 10px;
    }
    .gallery-swiper .slide-image {
        height: 200px;
    }
    .section-title, .title h2 {
        font-size: 24px;
    }
    .section-title::before, .section-title::after,
    .title h2::before, .title h2::after {
        width: 40px;
    }
    .content-title {
        font-size: 22px;
    }
    .pdf-links-block {
        padding: 16px;
    }
    .long-text {
        padding: 16px;
    }
    .size-table th {
        font-size: 0.65rem;
        padding: 10px 8px;
    }
    .size-table td {
        padding: 10px 8px;
    }
    .value {
        font-size: 0.8rem;
    }
    .unit {
        font-size: 0.6rem;
    }
    .mount-type {
        font-size: 0.6rem;
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }
    .range {
        gap: 2px;
    }
}

@media (max-width: 360px) {
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== УЛУЧШЕНИЯ ДЛЯ СКРОЛЛБАРОВ ===== */
.table-wrapper::-webkit-scrollbar,
.design-images-scroll::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}

.table-wrapper::-webkit-scrollbar-track,
.design-images-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb,
.design-images-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
}

/* ===== СЕНСОРНАЯ ОПТИМИЗАЦИЯ ===== */
@media (hover: none) and (pointer: coarse) {
    .size-table tbody tr:active td {
        background: #faf5ff;
    }
    .size-table tbody tr:active td:first-child {
        background: #faf5ff;
    }
}

/* ===== ЗАДЕРЖКИ АНИМАЦИЙ ===== */
.zone-flip-card:nth-child(1) { animation-delay: 0.05s; }
.zone-flip-card:nth-child(2) { animation-delay: 0.1s; }


/* ===== КАРТОЧКА ТОВАРА ===== */
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Блок изображения с оверлеем для текста */
.product-image-wrapper {
    padding: 20px;
    border-radius: 20px;
    position: relative;
    display: block;
    overflow: hidden;
    background: #f0f2f5;
    cursor: pointer;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block !important;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.product-image-wrapper:hover .product-image {
    transform: scale(1.05);
}

/* Текст НА ФОТО (базовая стилизация) */
.product-image-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
}
.image-badge {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

/* Позиционирование бейджей */
.image-badge-top-left {
    top: 12px;
    left: 12px;
    right: auto;
    bottom: auto;
}

.image-badge-top-right {
    top: 12px;
    right: 12px;
    left: auto;
    bottom: auto;
}

.image-badge-bottom-left {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: auto;
}

.image-badge-bottom-right {
    top: auto;
    bottom: 12px; 
     right: 12px;
    left: auto;
} 

/* Разные цвета для бейджей на фото */
.product-card:nth-child(1) .image-badge { background: #003d76; }
.product-card:nth-child(2) .image-badge { background: #f97316; }
.product-card:nth-child(3) .image-badge { background: #22c55e; }
.product-card:nth-child(4) .image-badge { background: #3b82f6; }
.product-card:nth-child(5) .image-badge { background: #a855f7; }
.product-card:nth-child(6) .image-badge { background: #ec489a; }

/* Контентная часть */
.product-info {
    padding: 18px 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-badge-green {
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    background: #eef6ef;
    display: block;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Название товара */
.product-title {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-title a {
    text-decoration: none;
    color: #111827;
    transition: color 0.2s;
    cursor: pointer;
}

.product-title a:hover {
    color: #3b82f6;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Характеристики */
.product-specs {
    font-size: 0.85rem;
    color: #4b5563;
    margin: 8px 0 12px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-item {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1f2937;
}

/* Цена */
.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 8px 0 6px;
}

.product-price small {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6c757d;
}

/* Кнопка */
.button-wrapper {
    margin-top: 16px;
}

.product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 60px;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.product-btn:hover {
    background: #2563eb;
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(59,130,246,0.3);
}

.product-btn:active {
    transform: scale(0.98);
}

/* Альтернативная ссылка */
.alt-link {
    margin-top: 12px;
    text-align: center;
}

.alt-link a {
    font-size: 0.85rem;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.alt-link a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Кнопки Swiper */
.swiper-button-prev,
.swiper-button-next {
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #3b82f6;
    box-shadow: 0 6px 16px rgba(59,130,246,0.3);
    transform: scale(1.05);
}

.swiper-button-prev:hover:after,
.swiper-button-next:hover:after {
    color: white;
}

.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #3b82f6;
}

a:focus-visible,
.product-btn:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
    border-radius: 40px;
}

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */
@media (max-width: 640px) {
    /* Адаптация бейджей */
    .image-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    .image-badge-top-left {
        top: 8px;
        left: 8px;
    }
    
    .image-badge-top-right {
        top: 8px;
        right: 8px;
    }
    
    .image-badge-bottom-left {
        bottom: 8px;
        left: 8px;
    }
    
    .image-badge-bottom-right {
        bottom: 8px;
        right: 8px;
    }
    
    /* Адаптация кнопок Swiper */
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 14px;
    }
    
    .swiper {
        padding: 8px 30px 20px 30px;
    }
    
    /* Адаптация карточки товара */
    .product-info {
        padding: 14px 12px 16px;
    }
    
    .product-title a {
        font-size: 1rem;
        display: inline-block;
        padding: 4px 0;
    }
    
    .product-btn {
        padding: 14px 12px;
        min-height: 48px;
    }
}

/* Для очень маленьких экранов (320-480px) */
@media (max-width: 480px) {
    .image-badge {
        font-size: 0.55rem;
        padding: 3px 6px;
    }
    
    .image-badge-top-left {
        top: 6px;
        left: 6px;
    }
    
    .image-badge-top-right {
        top: 6px;
        right: 6px;
    }
    
    .image-badge-bottom-left {
        bottom: 6px;
        left: 6px;
    }
    
    .image-badge-bottom-right {
        bottom: 6px;
        right: 6px;
    }
}

/* Вертикальный стек бейджей (опционально) */
.badges-stack {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badges-stack .image-badge {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
}

@media (max-width: 640px) {
    .badges-stack {
        top: 8px;
        left: 8px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .badges-stack {
        top: 6px;
        left: 6px;
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .design-images {
        flex-wrap: nowrap;
        width: 100%;
    }

    .design-item {
        flex: 0 0 calc(50% - 6px);
        width: clamp(100px, 20vw, 1100px);
    }
}

 @media (max-width: 1041px) {
            /* Убираем стандартное табличное поведение для тела таблицы */
            .size-table,
            .size-table tbody,
            .size-table tr,
            .size-table td {
                display: block;
            }

            /* Скрываем шапку таблицы, чтобы не мешала (она не нужна в карточном виде) */
            .size-table thead {
                display: none;
            }

            /* Каждая строка (tr) — как отдельный блок с отступом снизу */
            .size-table tbody tr {
                display: block;
                margin-bottom: 20px;
                border-radius: 12px;
                background: #ffffff;
                border: 1px solid #eef2f6;
                box-shadow: 0 1px 2px rgba(0,0,0,0.03);
                transition: all 0.2s;
            }

            /* Убираем нижнюю границу у последней строки, чтобы не было двойного отступа */
            .size-table tbody tr:last-child {
                margin-bottom: 0;
            }

            /* Ячейки td — блочные, идут друг за другом вертикально */
            .size-table td {
                display: block;
                width: 100% !important;
                padding: 12px 16px;
                border-bottom: none;
                text-align: left;
                background: transparent;
            }

            /* Первая ячейка (название параметра) — жирный шрифт, как заголовок карточки */
            .size-table td:first-child {
                font-weight: 700;
                font-size: 16px;
                color: #0f172a;
                background: #fafcff;
                border-bottom: 1px solid #eef2f8;
                padding-top: 14px;
                padding-bottom: 10px;
                width: auto;
                letter-spacing: -0.01em;
            }

            /* Вторая ячейка (значение) — крупнее, цвет как в оригинале */
            .size-table td:last-child {
                font-size: 18px;
                padding-top: 8px;
                padding-bottom: 14px;
                background: #ffffff;
                font-family: 'SF Mono', 'JetBrains Mono', monospace;
                border-bottom: none;
            }

            /* Сохраняем стили для внутренних элементов (диапазон, единицы измерения) */
            .range {
                display: inline-flex;
                flex-wrap: wrap;
                align-items: baseline;
                gap: 6px;
                font-size: 18px;
            }

            .value {
                font-size: 20px;
            }

            .unit {
                font-size: 14px;
            }

            /* Для блока "Притолока, мм" и "Пристенки, мм" — текст с пояснениями остается корректным */
            .mount-type {
                display: inline-block;
                margin-left: 6px;
                font-size: 12px;
                white-space: normal;
            }

            /* Дополнительно улучшаем читаемость для range-separator */
            .range-separator {
                margin: 0 2px;
            }
        }

        /* Дополнительно для очень узких экранов (<=480px) можно чуть уменьшить отступы, 
           но это не противоречит условию "существующие стили не трогать" — мы добавляем только адаптив */
        @media (max-width: 480px) {
            .size-table td {
                padding: 10px 14px;
            }
            .size-table td:first-child {
                font-size: 15px;
            }
            .size-table td:last-child {
                font-size: 17px;
            }
            .value {
                font-size: 18px;
            }
        }

/* ========================================
   КОРПОРАТИВНЫЙ CSS ДЛЯ КОНВЕРСИИ
   Цветовая схема: #0066CC (основной) + #003d76 (темный)
======================================== */


/* ===== 3. ФОРМА БЫСТРОГО ЗАКАЗА ===== */
.quick-order-form {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #e8f2ff;
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    border: 1px solid #e8f2ff;
}


/* .form-container p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
} */

.form-row {
    display: flex;
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
    gap: 16px;
    margin-bottom: 24px;
    justify-content: center;
}

.form-row input {
    width: clamp(300px, 14vw, 700px);
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

@media (max-width: 600px) {

.form-row input {
    width: clamp(100px, 14vw, 400px);
}

}


.form-row input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.form-submit {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.4);
}

.form-submit:active {
    transform: translateY(-1px);
}

/* ===== 4. TRUST BADGES ===== */
.trust-badges {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.badge {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}




/* ===== СЕКЦИЯ ОТЗЫВОВ - КОРПОРАТИВНЫЙ СТИЛЬ ===== */
.reviews-section {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    padding-top:50px;
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8f2ff, transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    background: linear-gradient(135deg, #0066cc 0%, #003d76 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 105%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #0052a3);
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(15px, 8vw, 27px);
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.reviews-container {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.review-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.08);
    border: 1px solid #e8f2ff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #0052a3, #0066cc);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 60px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

.review-card:hover::before {
    opacity: 1;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
}

.review-info {
    flex: 1;
    min-width: 0;
}

.review-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.3;
}

.review-location {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.review-stars {
    display: flex;
    margin-left: 80px;
    gap: 2px;
    flex-shrink: 0;
}

.star {
    font-size: 22px;
    color: #e2e8f0;
    transition: color 0.2s ease;
}

.star.filled {
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.review-text {
    font-size: clamp(15px, 8vw, 20px);
    line-height: 1.65;
    color: #374151;
    margin-bottom: 20px;
    font-weight: 400;
    quotes: "“" "”" "‘" "’";
}

.review-text::before {
    content: open-quote;
    font-size: 48px;
    color: #0066cc;
    float: left;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: -8px;
}

.review-date {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .reviews-section {
        padding: 60px 16px;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
    }
    
    .review-card {
        padding: 28px 24px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .review-card {
        padding: 24px 20px;
    }
    
    .review-avatar {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    
    .review-name {
        font-size: 16px;
    }
    
    .review-text {
        font-size: 15px;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }

/* =========================================== */
/* ПЛАВАЮЩИЕ КНОПКИ МЕССЕНДЖЕРОВ */
/* =========================================== */

.max-floating-btn {
    position: fixed;            /* Фиксированное позиционирование при прокрутке */
    bottom: 30px;               /* 30 пикселей от нижнего края окна */
    right: 30px;                /* 30 пикселей от правого края окна */
    width: 70px;                /* Ширина кнопки 70 пикселей */
    height: 70px;               /* Высота кнопки 70 пикселей */
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); /* Градиент WhatsApp */
    border-radius: 50%;         /* Круглая форма кнопки */
    display: flex;              /* Flexbox для центрирования иконки */
    align-items: center;        /* Вертикальное центрирование иконки */
    justify-content: center;    /* Горизонтальное центрирование иконки */
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); /* Зеленая тень WhatsApp */
    transition: all 0.3s ease;  /* Плавные переходы всех свойств */
    z-index: 1000;              /* Высокий слой поверх контента */
    text-decoration: none;      /* Убираем подчеркивание ссылки */
    animation: pulse-green 2s infinite; /* Бесконечная пульсация */
}

/* Анимация пульсации зеленой тени */
@keyframes pulse-green {
    0% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); /* Начало: тень нормальной интенсивности */
    }
    50% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.7); /* Середина: более яркая тень */
    }
    100% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); /* Конец: возврат к начальному состоянию */
    }
}

/* Псевдоэлементы для волн вокруг кнопки */
.max-floating-btn:before,
.max-floating-btn:after {
    content: " ";               /* Пустое содержимое псевдоэлементов */
    display: block;             /* Блочное отображение */
    position: absolute;         /* Абсолютное позиционирование относительно кнопки */
    border-radius: 50%;         /* Круглая форма волн */
    border: 2px solid rgba(37, 211, 102, 0.6); /* Полупрозрачная зеленая рамка (60% непрозрачности) */
    left: -15px;                /* Расширение за пределы кнопки на 15px слева */
    right: -15px;               /* Расширение за пределы кнопки на 15px справа */
    top: -15px;                 /* Расширение за пределы кнопки на 15px сверху */
    bottom: -15px;              /* Расширение за пределы кнопки на 15px снизу */
    animation: animate-wave 1.5s linear infinite; /* Бесконечная анимация волн */
    opacity: 0;                 /* Начальная прозрачность: невидимые */
    backface-visibility: hidden; /* Оптимизация анимации */
}

.max-floating-btn:after {
    animation-delay: 0.5s;      /* Задержка анимации второй волны на 0.5 секунды */
}

/* Ключевые кадры анимации волн (отличаются от анимации Telegram) */
@keyframes animate-wave {
    0% {
        transform: scale(0.5);  /* Начало: масштаб 50% */
        opacity: 0;             /* Начало: невидимая */
    }
    50% {
        opacity: 0.8;           /* Середина: почти полностью видимая (80%) */
    }
    100% {
        transform: scale(1.3);  /* Конец: масштаб 130% */
        opacity: 0;             /* Конец: снова невидимая */
    }
}

/* Эффекты при наведении на кнопку WhatsApp */
.max-floating-btn:hover {
    transform: scale(1.1) rotate(10deg); /* Увеличение на 10% и поворот на 10 градусов */
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.8); /* Более яркая и большая тень */
    animation: none;            /* Останавливаем пульсацию при наведении */
}

.max-floating-btn:hover:before,
.max-floating-btn:hover:after {
    animation-play-state: paused; /* Приостанавливаем анимацию волн при наведении */
}

.max-floating-btn:active {
    transform: scale(0.95);     /* Легкое уменьшение кнопки при клике (эффект нажатия) */
}

.max-floating-btn img {
    width: 40px;                /* Ширина иконки 40 пикселей */
    height: 40px;               /* Высота иконки 40 пикселей */
    position: relative;         /* Относительное позиционирование для управления z-index */
    z-index: 2;                 /* Слой выше волн (чтобы иконка была поверх них) */
}

/* Модификатор для кнопки WhatsApp (дублирование с небольшими отличиями) */
.max-floating-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); /* Тот же градиент WhatsApp */
    bottom: 130px;              /* Расположение выше основной кнопки (130px от низа) */
}

.max-floating-btn.whatsapp:before,
.max-floating-btn.whatsapp:after {
    border-color: rgba(37, 211, 102, 0.6); /* Цвет рамки волн: полупрозрачный зеленый */
}

/* Модификатор для кнопки Telegram */
.max-floating-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%); /* Градиент Telegram */
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.4); /* Синяя тень Telegram */
    bottom: 230px;              /* Самое верхнее расположение (230px от низа) */
}

.max-floating-btn.telegram:before,
.max-floating-btn.telegram:after {
    border-color: rgba(0, 136, 204, 0.6); /* Цвет рамки волн: полупрозрачный синий */
}

/* =========================================== */
/* АДАПТИВНОСТЬ ПЛАВАЮЩИХ КНОПОК */
/* =========================================== */

@media (max-width: 768px) {
    .max-floating-btn {
        width: 60px;            /* Уменьшение ширины кнопки на мобильных */
        height: 60px;           /* Уменьшение высоты кнопки на мобильных */
        bottom: 20px;           /* Ближе к нижнему краю */
        right: 20px;            /* Ближе к правому краю */
    }
    
    .max-floating-btn img {
        width: 32px;            /* Уменьшение размера иконки */
        height: 32px;           /* Уменьшение размера иконки */
    }
    
    .max-floating-btn:before,
    .max-floating-btn:after {
        left: -12px;            /* Меньшее расширение волн */
        right: -12px;           /* Меньшее расширение волн */
        top: -12px;             /* Меньшее расширение волн */
        bottom: -12px;          /* Меньшее расширение волн */
    }
    
    /* Изменение анимации волн для мобильных */
    @keyframes animate-wave {
        0% {
            transform: scale(0.5);
            opacity: 0;
        }
        50% {
            opacity: 0.8;
        }
        100% {
            transform: scale(1.2); /* Меньший максимальный масштаб (120% вместо 130%) */
            opacity: 0;
        }
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .max-floating-btn {
        width: 55px;            /* Еще меньше на очень маленьких экранах */
        height: 55px;           /* Еще меньше на очень маленьких экранах */
        bottom: 15px;           /* Еще ближе к краю */
        right: 15px;            /* Еще ближе к краю */
    }
    
    .max-floating-btn img {
        width: 28px;            /* Еще меньше иконка */
        height: 28px;           /* Еще меньше иконка */
    }
}


/* ========== СТИЛИ ДЛЯ ПОДВАЛА ========== */
        .page-container {
            width: 100%;
        }
        .site-footer {
            background: #0f172a;
            color: #e2e8f0;
            padding: 3rem 2rem 2rem;
            margin-top: 2rem;
        }
        .footer-content {
            max-width: 1280px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 3rem;
        }
        .footer-title, .form-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 1.2rem;
            color: white;
        }
        .contact-info p {
            margin-bottom: 0.75rem;
        }
        .form-container {
            background: rgba(255,255,255,0.05);
            padding: 1.5rem;
            border-radius: 28px;
        }
        .form-input, .form-textarea {
            width: 100%;
            padding: 0.8rem 1rem;
            margin-bottom: 1rem;
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 20px;
            color: white;
            font-family: inherit;
        }
        .form-input:focus, .form-textarea:focus {
            outline: none;
            border-color: #3b82f6;
        }
        .form-label {
            display: block;
            font-size: 0.8rem;
            margin: 0.5rem 0 1rem;
            line-height: 1.4;
        }
        .form-label a {
            color: #60a5fa;
            text-decoration: none;
        }
        .form-btn {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 0.8rem;
            width: 100%;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
        }
        .form-btn:hover {
            background: #2563eb;
        }

        
/* ============================================ */
/* АДАПТАЦИЯ БЛОКА "ВЫБОР ЦВЕТА" ДЛЯ МОБИЛЬНЫХ  ТОЛЬКО ДЛЯ СТРАНИЦЫ  rolstavni_RHE45M*/
/* ============================================ */

/* Планшеты и мобильные (до 1024px) */
@media (max-width: 1024px) {
    body.page-rolstavni_RHE45M .color-tabs-wrapper {
        flex-direction: column;
        gap: 24px;
    }
    
    body.page-rolstavni_RHE45M .color-tabs-wrapper .image-section,
    body.page-rolstavni_RHE45M .color-tabs-wrapper .colors-section {
        flex: 1;
        min-width: auto;
        width: 100%;
    }
    
    /* Убираем лишние отступы у контейнера изображения */
    body.page-rolstavni_RHE45M .color-main-image-container {
        min-height: auto;
    }
}

/* Мобильные телефоны (до 768px) */
@media (max-width: 768px) {
    /* Основной контейнер */
    body.page-rolstavni_RHE45M .main-content.color-tabs-wrapper {
        padding: 0;
        margin: 0;
    }
    
    /* Сетка цветов - 3 колонки на телефонах */
    body.page-rolstavni_RHE45M .color-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    /* Ячейки цветов */
    body.page-rolstavni_RHE45M .color-item {
        min-height: 60px;
        height: auto;
        padding: 10px 6px;
        font-size: 11px;
    }
    
    body.page-rolstavni_RHE45M .color-item span {
        font-size: 11px;
        font-weight: 500;
    }
    
    /* Вкладки цветов */
    body.page-rolstavni_RHE45M .color-tabs-header {
        gap: 6px;
        margin-bottom: 20px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    body.page-rolstavni_RHE45M .color-tabs-header::-webkit-scrollbar {
        display: none;
    }
    
    body.page-rolstavni_RHE45M .color-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
        background: #e2eaf3;
        border-radius: 30px;
        border: 1px solid #c4d3e3;
        margin-bottom: 0;
    }
    
    body.page-rolstavni_RHE45M .color-tab-btn.active {
        background: #0066cc;
        color: white;
        border-color: #0066cc;
    }
    
    /* Убираем треугольник на активной вкладке */
    body.page-rolstavni_RHE45M .color-tab-btn.active::before {
        display: none;
    }
    
    /* Свайпер контейнер */
    body.page-rolstavni_RHE45M .color-swiper-container,
    body.page-rolstavni_RHE45M .color-swiper-container-extra {
        overflow: visible;
    }
    
    /* Пагинация свайпера */
    body.page-rolstavni_RHE45M .pagination,
    body.page-rolstavni_RHE45M .pagination-extra {
        margin-top: 12px;
        gap: 6px;
    }
    
    /* Блок с дизайнами (профили) */
    body.page-rolstavni_RHE45M .design-links-title {
        font-size: 14px;
        margin: 16px 0 10px 0;
    }
    
    body.page-rolstavni_RHE45M .design-images {
        gap: 10px;
    }
    
    body.page-rolstavni_RHE45M .design-item {
        flex: 0 0 calc(50% - 5px);
        min-width: 0;
    }
    
    body.page-rolstavni_RHE45M .design-image {
        height: clamp(80px, 12vw, 100px);
    }
    
    body.page-rolstavni_RHE45M .design-label {
        font-size: 11px;
        padding: 6px 4px;
    }
    
    /* Кнопки действий */
    body.page-rolstavni_RHE45M .buttons-container {
        flex-direction: row;
        gap: 12px;
        margin-top: 20px;
    }
    
    body.page-rolstavni_RHE45M .call-btn,
    body.page-rolstavni_RHE45M .max-btn {
        padding: 12px 16px;
        font-size: 14px;
        text-align: center;
        flex: 1;
    }
    
    /* Текст-предупреждение о цветах */
    body.page-rolstavni_RHE45M .long-text {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    body.page-rolstavni_RHE45M .long-text p {
        font-size: 13px;
    }
}

/* Очень маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    /* Сетка цветов - 2 колонки на узких экранах */
    body.page-rolstavni_RHE45M .color-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    body.page-rolstavni_RHE45M .color-item {
        min-height: 55px;
        padding: 8px 4px;
        font-size: 10px;
    }
    
    body.page-rolstavni_RHE45M .color-item span {
        font-size: 10px;
    }
    
    /* Кнопки в колонку на очень маленьких */
    body.page-rolstavni_RHE45M .buttons-container {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Еще меньше вкладки */
    body.page-rolstavni_RHE45M .color-tab-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Дизайн изображения */
    body.page-rolstavni_RHE45M .design-image {
        height: clamp(70px, 15vw, 90px);
    }
    
    body.page-rolstavni_RHE45M .design-label {
        font-size: 10px;
        padding: 5px 3px;
    }
}

/* Альбомная ориентация на телефонах (широкий экран) */
@media (max-width: 768px) and (orientation: landscape) {
    body.page-rolstavni_RHE45M .color-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    body.page-rolstavni_RHE45M .buttons-container {
        flex-direction: row;
    }
}

/* Для телефонов с высоким разрешением (iPhone и т.д.) */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    body.page-rolstavni_RHE45M .color-item {
        min-height: 58px;
    }
    
    body.page-rolstavni_RHE45M .design-image {
        background-size: cover;
    }
}


/* ===== ОТМЕНЯЕМ ИЗМЕНЕНИЯ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ ===== */
/* Дизайн вкладок "Цвет" и "Дополнительные" остается как на компьютере */

/* Отменяем скролл и скругления для планшетов (до 950px) */
@media (max-width: 950px) {
    /* Возвращаем центрирование вкладок */
    body.page-rolstavni_RHE45M .color-tabs-header,
    .color-tabs-header {
        overflow-x: visible !important;     /* Убираем горизонтальный скролл */
        flex-wrap: wrap !important;         /* Разрешаем перенос на новую строку */
        justify-content: center !important; /* Центрируем вкладки */
        gap: 8px !important;               /* Расстояние между вкладками */
        background: #f5f9ff;              /* Фон как на десктопе */
        border-bottom: 3px solid #d0ddeb; /* Нижняя рамка */
        padding: 0 !important;
        margin-bottom: 24px !important;
    }
    
    /* Скрываем элементы скролла, если они были добавлены */
    body.page-rolstavni_RHE45M .color-tabs-header::-webkit-scrollbar {
        display: none;
    }
    
    /* Возвращаем оригинальный дизайн кнопок вкладок */
    body.page-rolstavni_RHE45M .color-tab-btn,
    .color-tab-btn {
        padding: 16px 4vw !important;      /* Оригинальные отступы */
        font-size: clamp(10px, 2vw, 30px) !important; /* Оригинальный размер */
        background: #e2eaf3 !important;    /* Оригинальный фон */
        border: 2px solid #9bb0cc !important; /* Оригинальная рамка */
        border-radius: 50px 50px 0 0 !important; /* Оригинальное скругление */
        color: #1e3a5f !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
        margin-bottom: -3px !important;     /* Отрицательный отступ для рамки */
        position: relative !important;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03) !important;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    }
    
    /* Активная вкладка */
    body.page-rolstavni_RHE45M .color-tab-btn.active,
    .color-tab-btn.active {
        background: white !important;       /* Белый фон */
        color: #0066cc !important;          /* Синий текст */
        border: 2px solid #0066cc !important; /* Синяя рамка */
        border-bottom-color: white !important; /* Нижняя рамка сливается */
        font-weight: 700 !important;
        z-index: 2 !important;
        box-shadow: 0 -4px 10px rgba(0, 102, 204, 0.15) !important;
    }
    
    /* Возвращаем треугольник под активной вкладкой */
    body.page-rolstavni_RHE45M .color-tab-btn.active::before,
    .color-tab-btn.active::before {
        content: "▼" !important;            /* Треугольник вниз */
        display: block !important;          /* Показываем треугольник */
        position: absolute !important;
        bottom: -12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        color: #0066cc !important;
        font-size: 16px !important;
        text-shadow: 0 2px 3px rgba(0, 102, 204, 0.3) !important;
        background: transparent !important;
        width: auto !important;
        height: auto !important;
        border: none !important;
    }
}

/* Дополнительная корректировка для маленьких экранов (до 480px) */
@media (max-width: 480px) {
    /* Уменьшаем отступы, но сохраняем форму */
    body.page-rolstavni_RHE45M .color-tab-btn,
    .color-tab-btn {
        padding: 10px 12px !important;      /* Немного меньше отступов */
        font-size: 12px !important;         /* Немного меньше шрифт */
    }
    
    /* Треугольник остается на месте */
    body.page-rolstavni_RHE45M .color-tab-btn.active::before,
    .color-tab-btn.active::before {
        bottom: -10px !important;           /* Корректируем позицию */
        font-size: 12px !important;        /* Чуть меньше треугольник */
    }
}

/* Для экранов от 481px до 950px (планшеты) */
@media (min-width: 481px) and (max-width: 950px) {
    body.page-rolstavni_RHE45M .color-tab-btn,
    .color-tab-btn {
        padding: 14px 20px !important;      /* Больше отступы */
        font-size: 14px !important;         /* Больше шрифт */
    }
}