/* ===== СТАЛЬНАЯ РЕЙКА – УНИКАЛЬНЫЙ ДИЗАЙН ===== */
:root {
    --slat-orange: #FF6B00;
    --slat-dark: #2a2f36;
    --slat-light: #f8f9fa;
    --slat-gray: #6c7a8a;
}

/* Hero */
.hero-slat {
    position: relative;
    padding: 80px 0 40px;
    background: #fff;
    overflow: hidden;
}
.hero-slat-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-slat-grid {
    width: 100%; height: 100%;
    background-image: linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}
.hero-slat-container {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; gap: 3rem; position: relative; z-index: 2;
}
.hero-slat-content { flex: 1; }
.hero-slat-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--slat-orange); background: rgba(255,107,0,0.1);
    padding: 0.3rem 0.8rem; border-radius: 30px; margin-bottom: 1rem;
}
.hero-slat-title {
    font-family: 'Playfair Display', serif; font-size: 3rem; line-height: 1.1;
    color: #1a1a1a; margin-bottom: 0.75rem;
}
.hero-slat-title-accent { color: var(--slat-orange); }
.hero-slat-desc { font-size: 0.95rem; color: #4a4a4a; margin-bottom: 1.5rem; line-height: 1.5; max-width: 500px; }
.hero-slat-stats { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.hero-slat-stats .stat-item { text-align: center; }
.hero-slat-stats .stat-value { display: block; font-size: 1.8rem; font-weight: 700; color: var(--slat-orange); }
.hero-slat-stats .stat-label { font-size: 0.7rem; color: #666; text-transform: uppercase; }
.hero-slat-buttons { display: flex; gap: 1rem; }
.hero-slat-visual { flex: 1; text-align: center; position: relative; }
.hero-slat-visual img { max-width: 90%; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.05)); }
.hero-slat-badge-float {
    position: absolute; bottom: 10px; left: 0; background: white; padding: 0.4rem 1rem;
    border-radius: 40px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); font-size: 0.8rem;
    display: flex; align-items: center; gap: 6px; color: #2a2f36; border: 1px solid rgba(255,107,0,0.2);
}
.hero-slat-scroll {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--slat-gray); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; z-index: 3;
}

/* Конструктор рейки */
.slat-constructor { padding: 3rem 0; background: #fff; }
.constructor-grid { display: flex; gap: 4rem; align-items: center; margin-top: 2rem; }
.constructor-visual { flex: 1; position: relative; text-align: center; }
.constructor-visual img { max-width: 100%; border-radius: 24px; box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.constructor-dimensions {
    display: flex; justify-content: center; gap: 2rem; margin-top: 1rem;
    font-weight: 700; color: var(--slat-orange); font-size: 1.2rem;
}
.constructor-info { flex: 1; }
.constructor-desc { font-size: 1rem; color: var(--slat-gray); margin-bottom: 1.5rem; }
.constructor-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.constructor-features li { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.constructor-features i { color: var(--slat-orange); font-size: 1.1rem; }
.constructor-actions { display: flex; gap: 1rem; }

/* Преимущества */
.slat-advantages { padding: 3rem 0; background: var(--slat-light); }
.slat-advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.slat-adv-item { text-align: center; padding: 2rem 1.5rem; background: #fff; border-radius: 24px; transition: transform 0.2s; }
.slat-adv-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.slat-adv-item i { font-size: 2.5rem; color: var(--slat-orange); margin-bottom: 1.5rem; }
.slat-adv-item h3 { font-size: 1.3rem; margin-bottom: 1rem; }

/* Галерея */
.slat-gallery { padding: 3rem 0; background: #fff; }
.slat-gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; grid-auto-rows: 250px;
}
.gallery-item { position: relative; overflow: hidden; border-radius: 20px; cursor: pointer; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: white; }
.gallery-item-title { font-weight: 700; display: block; }
.gallery-action { text-align: center; margin-top: 2.5rem; }
.btn-portfolio {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 2.2rem;
    border: 2px solid var(--slat-orange); color: var(--slat-orange); font-weight: 600;
    border-radius: 40px; text-decoration: none; transition: all 0.3s;
}
.btn-portfolio:hover { background: var(--slat-orange); color: white; }

/* Применение – тёмный блок */
.slat-usage-dark {
    padding: 2.5rem 0;
    background: var(--slat-dark);
    position: relative;
    overflow: hidden;
}
.slat-usage-dark::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(to right, rgba(255,107,0,0.15) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,107,0,0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}
.usage-dark-grid {
    display: flex; gap: 3rem; align-items: center; position: relative; z-index: 2;
}
.usage-dark-content { flex: 1.2; }
.usage-dark-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
    color: #ffa559; background: rgba(255,107,0,0.15); padding: 0.3rem 1rem;
    border-radius: 30px; margin-bottom: 1rem; border: 1px solid rgba(255,107,0,0.3);
}
.usage-dark-title {
    font-family: 'Playfair Display', serif; font-size: 2.2rem; color: white; margin-bottom: 1.5rem;
}
.usage-dark-list {
    list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem 1.5rem;
}
.usage-dark-list li {
    display: flex; align-items: center; gap: 0.6rem; color: #e0e6ed; font-size: 0.95rem;
}
.usage-dark-list i { color: var(--slat-orange); font-size: 0.9rem; }
.usage-dark-footer {
    display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.usage-dark-footer p { color: #e0e6ed; margin: 0; }
.usage-dark-footer i { color: #ffa559; margin-right: 6px; }
.btn-dark-usage { background: var(--slat-orange); border: none; padding: 0.8rem 2rem; }
.usage-dark-visual {
    flex: 0.8; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}
.usage-dark-visual img {
    width: 100%; height: auto; max-height: 280px; object-fit: cover; display: block;
}
.usage-dark-visual-badge {
    position: absolute; bottom: 15px; left: 15px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    padding: 0.4rem 1rem; border-radius: 40px; color: white; font-size: 0.8rem;
    display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.2);
}
.usage-dark-visual-badge i { color: var(--slat-orange); }
/* ===== ЦВЕТА – КАК В САЙДИНГЕ (карусель) ===== */
.slat-colors {
    padding: 3rem 0;
    background: #fff;
}

.slat-colors-carousel {
    margin: 2rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--slat-orange) #e0e6ed;
}

.slat-colors-carousel::-webkit-scrollbar {
    height: 4px;
}

.slat-colors-carousel::-webkit-scrollbar-thumb {
    background: var(--slat-orange);
    border-radius: 4px;
}

.slat-colors-strip {
    display: flex;
    gap: 1.2rem;
    width: max-content;
}

.slat-color-swatch {
    width: 100px;
    height: 170px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #d0d8e2;
    transition: border-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    background: #fff;
}

.slat-color-swatch:hover {
    border-color: var(--slat-orange);
    transform: scale(1.03);
}

.slat-color-swatch img {
    width: 100%;
    height: 115px;
    object-fit: cover;
    display: block;
}

slat-color-swatch span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;                     /* занимает оставшееся пространство */
    font-size: 0.55rem;
    font-weight: 500;
    padding: 0 0.2rem;
    color: #2c3e50;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    background: inherit;
}

.slat-colors-note {
    text-align: center;
    color: var(--slat-orange);
    font-weight: 500;
    margin-top: 1rem;
}
/* Лайтбокс – изображение чёткое */
.dv-lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    image-rendering: crisp-edges;
}
/* Адаптивность */
@media (max-width: 768px) {
    .slat-color-swatch {
        width: 70px;
        height: 80px;
    }
    .slat-color-swatch img {
        height: 55px;
    }
}

/* Изображения на странице рейки не растягивают блоки выше текста */
@media (min-width: 1101px) {
    .hero-slat {
        padding-top: 104px;
    }

    .hero-slat-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
        align-items: stretch;
    }

    .hero-slat-visual {
        width: 100%;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
        border-radius: 24px;
    }

    .hero-slat-visual > img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
    }

    .constructor-grid {
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: stretch;
    }

    .constructor-visual {
        width: 100%;
        min-width: 0;
        min-height: 0;
        padding-bottom: 48px;
        overflow: hidden;
        border-radius: 24px;
    }

    .constructor-visual > img {
        position: absolute;
        inset: 0 0 48px;
        display: block;
        width: 100%;
        height: calc(100% - 48px);
        max-width: none;
        object-fit: contain;
        object-position: center;
        border-radius: 18px;
        transform: scale(1.3);
    }

    .constructor-dimensions {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        margin: 0;
    }
}
