/* =====================================================================
   styles.css — Мебельная фабрика «Баньян»
   Основной цвет-акцент: #5A3D30

   ОГЛАВЛЕНИЕ — секции главной страницы СВЕРХУ ВНИЗ.
   Ищите метку через Ctrl+F (например «[С-04]»): у каждой секции основные
   стили + отдельные места в блоках адаптива [А].

   [С-00]  Общее: сброс, контейнер, кнопки, заголовки секций, анимации
   [С-01]  Шапка: логотип + меню поверх видео (.video-nav)
   [С-02]  Первый экран: видео, «Создаём мебель для пространства», кнопки (#home, .hero)
             → положение текста: ищите «Общий край», «МЕБЕЛЬНАЯ ФАБРИКА» и «[С-02] Текст слева»
   [С-03]  Строка материалов: ЛДСП · МДФ · … (.materials-strip)
   [ДП]    ДЕМО «До / после» под строкой материалов (.ba-demo) — в самом конце файла.
           Пример для совещания; убрать вместе с блоком в index.html и [ДП] в script.js
   [С-04]  О фабрике: «Баньян — производство мебели», 3 фото (#about)
   [С-05]  Цифры: «Мы превращаем проект…», 2015 / 100+ (.facts-section)
   [С-06]  Наши направления: 3 карточки (#advantages)
   [С-07]  Как мы работаем: 7 этапов (.work-advantages). Новый вид «как на чертеже» —
           раздел [С-07-Н] в самом конце файла (старые правила .work-step больше не используются)
   [С-08]  Баннер «Смотрите, что получается» — блок «ДОВОДКА СТАРЫХ БЛОКОВ» в конце файла
   [С-09]  Наше производство в деталях: старый слайдер (.video-section) больше не используется —
           новый вид «панель с плеером и списком клипов» — раздел [С-09-Н] в самом конце файла
   [С-10]  Мы на карте: фото + Яндекс-карта (#contact)
   [С-11]  Обсудим задачу: блок перед подвалом (.cta-band)
   [С-12]  Подвал (footer)
   [С-13]  Плавающие кнопки (звонок, «Наверх») и окно заявки
   [Б]     Только для library.html: альбомы, галерея, «Другие проекты».
           Новый вид библиотеки — в самом конце файла, блок «[Б] БИБЛИОТЕКА — В СТИЛЕ ГЛАВНОЙ»
   [ПД]    Страница политики персональных данных (politika.html) — в самом конце файла
   [М]     Плашка про cookie для Яндекс Метрики (.cookie-bar) — в самом конце файла;
           сам счётчик и его настройки — в файле metrika.js
   [А]     Адаптив (телефоны/планшеты). Части 1–3 — старые правила,
           часть 4 в самом конце файла — главная, она перекрывает всё выше.

   Внимание: в файле секции идут НЕ строго по порядку страницы
   (например, [С-05] Цифры и [С-11] стоят рядом с [С-03]) — пользуйтесь метками.
   ===================================================================== */

/* История правок (из старой шапки файла):
   styles.css - Мебельная фабрика "Баньян" (финальная версия с логотипом слева в футере)
   Все акцентные цвета: #5A3D30
   Хедер: увеличен на 20%, лого и текст крупнее, текст "мебельная фабрика" в две строки
   Футер: чёрный фон, белый текст, белые иконки. Один логотип (logo2.png) высотой 80px, выровнен по левому краю
   Заголовки секций: чёрный
   Карточки направлений: БЕЗ АНИМАЦИЙ, только курсор-pointer
   Кружочки этапов работы: ПОЛНОСТЬЮ СТАТИЧНЫЕ, без подсветки и трансформаций
   Видео: слайдер с 3 видимыми клипами (десктоп), адаптация под 2 и 1
   Библиотека: фото увеличены в 1,5 раза (2 ряда по 3), отступ от хедера, якорный отступ
*/

/* ===== [С-00] ОБЩЕЕ — сброс, цвета, контейнер ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --container-width: 1410px;
    --container-padding: 30px;
    --font-default: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-body: #F5F5F0;
    --color-text: #000000;
    --color-white: #ffffff;
    --color-black: #000000;
    --primary-color: #5A3D30;
    --primary-dark: #4a3327;
    --secondary-color: #000000;
    --accent-color: #e9c46a;
    --light-color: #F5F5F0;
    --milk: #F5F5F0;
    --ink: #1B1B19;
    --panel: #2A2320;
    --warm-gray: #D8D0C7;
    --warm-line: #E3DDD4;
    --warm-mute: #6B6058;
    --dark-color: #000000;
    --gray-dark: #333333;
    --text-light: #666666;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* { font-family: 'Inter', sans-serif; }
body {
    font-family: var(--font-default);
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ===== [С-00] ОБЩЕЕ — кнопки .btn ===== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--primary-color);
    color: var(--color-white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    overflow: hidden;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(90, 61, 48, 0.2);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(90, 61, 48, 0.3);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== [С-00] ОБЩЕЕ — отступы секций и заголовки с линией ===== */
.section {
    padding: 120px 0;
    scroll-margin-top: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h1 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    padding-bottom: 25px;
}

.section-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 0;
}

.section-header h1 i {
    color: var(--primary-color);
    font-size: 2.8rem;
}

.section-description {
    font-size: clamp(1.053rem, 2vw, 1.3rem);
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== [С-01] ШАПКА — старые правила. Элемента <header> на страницах нет,
   но меню (.main-nav, #navMenu, .nav-link, .contact-btn, .menu-overlay) отсюда используется ===== */
header {
    background-color: #000000;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 19px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: padding 0.3s ease, background-color 0.3s ease;
}

/* Эффект при скролле */
header.header-scrolled {
    padding: 8px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

/* Левая группа: логотип + текст */
.header-left {
    display: flex;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    padding: 5px 0;
    z-index: 1;
    transform: translateX(-10px);
}

.logo-link {
    display: block;
    position: relative;
    padding: 2px 0;
}

.logo-link::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -12px;
    right: -12px;
    bottom: -8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-link:hover::before,
.logo-link:focus-visible::before {
    opacity: 1;
}

.logo {
    height: 58px;
    width: auto;
    max-width: 173px;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform 0.3s var(--transition), filter 0.3s ease;
    transform-origin: left center;
    position: relative;
    z-index: 2;
}

.logo:hover,
.logo:focus-visible {
    transform: scale(1.03);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.logo2 {
    height: 40px;
    width: auto;
    max-width: 120px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s var(--transition), filter 0.3s ease;
    transform-origin: left center;
    position: relative;
    z-index: 2;
}

.logo2:hover,
.logo2:focus-visible {
    transform: scale(1.03);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* Текст справа от логотипа — две строки */
.header-brand-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #ffffff;
    margin-left: 0px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 1;
}

.header-brand-text span {
    display: block;
}

.main-nav {
    display: flex;
}

#navMenu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: white;
    transform: translateY(-1px);
}

.nav-link.active {
    color: white;
    font-weight: 600;
}

.contact-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: background-color 0.4s ease;
    display: inline-block;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.7s ease;
}

.contact-btn:hover,
.contact-btn:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(90, 61, 48, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), #3e2b21);
}

.contact-btn:hover::before,
.contact-btn:focus-visible::before {
    left: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== [С-02] ПЕРВЫЙ ЭКРАН — видео, заголовок, кнопки ===== */
#home {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    background-color: var(--milk);
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 1200px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--color-white);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 38px;
}

.hero-rule {
    width: 44px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
    display: block;
}

.hero-content h1 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 5.6vw, 5rem);
    margin-bottom: 34px;
    line-height: 1.05;
    letter-spacing: -0.015em;
    max-width: 16em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-subline {
    font-size: 0.72rem;
    letter-spacing: 0.26em;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 28px;
}

.hero-content p {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    max-width: 30em;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-brand {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 700;
    color: inherit;
}

.hero-buttons {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-top: 48px;
}

.hero-btn {
    background-color: var(--primary-color);
    border: none;
    border-radius: 0;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    padding: 21px 38px;
    font-weight: 500;
    color: var(--milk);
    box-shadow: none;
    transition: background-color 0.4s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
    background-color: var(--primary-dark);
    transform: none;
    box-shadow: none;
}

.hero-btn-text {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    font-weight: 500;
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    padding-bottom: 7px;
    cursor: pointer;
    transition: border-color 0.4s ease;
}

.hero-btn-text:hover,
.hero-btn-text:focus-visible {
    border-bottom-color: var(--color-white);
}

/* ===== [С-03] СТРОКА МАТЕРИАЛОВ — ЛДСП · МДФ · … ===== */
.materials-strip {
    background-color: var(--ink);
    color: #B9AEA3;
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 26px;
    padding: 30px 24px;
}

.materials-strip i {
    font-style: normal;
    color: #5E534B;
}

/* ===== [С-05] ЦИФРЫ — 2015 / 100+ / … ===== */
.facts-section {
    background-color: var(--ink);
    color: var(--milk);
    padding: 120px 0;
}

.facts-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 90px;
}

.facts-head h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.7rem, 3.8vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--milk);
    margin: 0;
}

.facts-head p {
    width: 380px;
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #B9AEA3;
    margin: 0 0 10px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    border-top: 1px solid #38322D;
    padding-top: 44px;
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fact-num {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.7rem);
    line-height: 1;
    color: var(--milk);
}

.fact-num-accent {
    color: #A8825E;
}

.fact-label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: #B9AEA3;
}

/* ===== [С-11] ОБСУДИМ ЗАДАЧУ — блок перед подвалом ===== */
.cta-band {
    background-color: var(--panel);
    color: var(--milk);
    padding: 130px 0;
}

.cta-eyebrow {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: #A8825E;
    margin-bottom: 26px;
}

.cta-band h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 6.5vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--milk);
    margin: 0 0 56px;
}

.cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
}

.cta-btn {
    background-color: var(--milk);
    color: var(--ink);
    border-radius: 0;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    font-weight: 500;
    padding: 22px 42px;
    box-shadow: none;
}

.cta-btn:hover,
.cta-btn:focus-visible {
    background-color: #A8825E;
    color: var(--milk);
    transform: none;
    box-shadow: none;
}

.cta-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-contacts a {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: #C9BEB2;
    transition: color 0.4s ease;
}

.cta-contacts a:hover,
.cta-contacts a:focus-visible {
    color: var(--milk);
}

/* ===== [А] АДАПТИВ (часть 1) — планшеты и телефоны для С-02, С-03, С-05, С-07, С-11 ===== */
@media (max-width: 1100px) {

    /* [С-05] ЦИФРЫ */
    .facts-section { padding: 90px 0; }
    .facts-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        margin-bottom: 60px;
    }
    .facts-head p { width: 100%; margin-bottom: 0; }
    .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 30px; }

    /* [С-11] ОБСУДИМ ЗАДАЧУ */
    .cta-band { padding: 100px 0; }
}

@media (max-width: 768px) {

    /* [С-02] ПЕРВЫЙ ЭКРАН */
    .hero-content { align-items: flex-start; text-align: left; }
    .hero-eyebrow { margin-bottom: 26px; font-size: 0.62rem; letter-spacing: 0.24em; }
    .hero-rule { width: 28px; }
    .hero-subline { font-size: 0.62rem; letter-spacing: 0.2em; margin-bottom: 20px; }
    .hero-buttons { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 34px; }
    .hero-btn { width: 100%; max-width: 340px; text-align: center; padding: 18px 24px; }

    /* [С-03] СТРОКА МАТЕРИАЛОВ */
    .materials-strip { font-size: 0.58rem; letter-spacing: 0.22em; gap: 0 16px; padding: 22px 20px; }

    /* [С-05] ЦИФРЫ */
    .facts-section { padding: 70px 0; }
    .facts-grid { gap: 34px 24px; padding-top: 34px; }

    /* [С-11] ОБСУДИМ ЗАДАЧУ */
    .cta-band { padding: 80px 0; }
    .cta-band h2 { margin-bottom: 40px; }
    .cta-actions { flex-direction: column; align-items: flex-start; gap: 32px; }
    .cta-btn { width: 100%; max-width: 340px; text-align: center; }

    /* [С-07] КАК МЫ РАБОТАЕМ */
    .work-steps-grid { grid-template-columns: 1fr; gap: 56px; max-width: 420px; }
    .work-step-circle { width: 190px; height: 190px; }
}

@media (max-width: 480px) {

    /* [С-05] ЦИФРЫ */
    .facts-grid { grid-template-columns: 1fr; gap: 28px; }

    /* [С-03] СТРОКА МАТЕРИАЛОВ */
    .materials-strip { gap: 0 12px; }
}

/* ===== [С-00] ОБЩЕЕ — плавное появление блоков при прокрутке (.reveal) ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== [С-04] О ФАБРИКЕ — «Баньян — производство мебели», 3 фото ===== */
.about-factory {
    background-color: var(--milk);
    padding: 130px 0;
}

.factory-header {
    text-align: center;
    margin-bottom: 60px;
}

.factory-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: var(--secondary-color);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
}

.factory-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 0;
}

.factory-brand {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 700;
}

.factory-description {
    font-size: clamp(1.053rem, 2vw, 1.3rem);
    color: var(--text-light);
    max-width: 800px;
    margin: 40px auto 0;
    line-height: 1.7;
    font-style: italic;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.factory-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.factory-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    background-color: var(--panel);
}

.factory-card:hover,
.factory-card:focus-within {
    transform: none;
    box-shadow: none;
}

.factory-imgwrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.factory-imgwrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.factory-card:hover .factory-imgwrapper img,
.factory-card:focus-within .factory-imgwrapper img {
    transform: scale(1.05);
}

/* ===== [С-06] НАПРАВЛЕНИЯ — 3 карточки ===== */
.advantages-cafmebel {
    background-color: var(--milk);
    padding: 130px 0;
}

.advantages-cafmebel h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: var(--secondary-color);
    margin-bottom: 70px;
    text-align: center;
    position: relative;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.advantages-cafmebel h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 0;
}

.adv-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    max-width: 1340px;
    margin: 0 auto;
}

.adv-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: block;
    width: 100%;
    max-width: 428px;
    text-decoration: none;
    overflow: hidden;
    border: none;
    position: relative;
    padding-bottom: 0;
    cursor: pointer;
    transition: none;
}

.adv-imgwrapper {
    width: 100%;
    height: 460px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.adv-bgimg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    transition: none;
}

.adv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 16, 14, 0.46);
    z-index: 1;
    border-radius: 0;
    transition: none;
}

.adv-img-title {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 34px;
    top: auto;
    transform: none;
    z-index: 2;
    text-align: left;
    width: auto;
}

.adv-img-title h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 2rem;
    color: var(--milk);
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    line-height: 1.18;
    transition: none;
}

.adv-content {
    padding: 26px 2px 0;
    text-align: left;
}

.adv-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.02rem;
    margin: 0;
}

/* ===== [С-07] КАК МЫ РАБОТАЕМ — 6 кружков. Заголовок раздела — ниже, ищите «[С-07] заголовок» ===== */
.work-advantages {
    background-color: var(--milk);
    padding: 130px 0;
}

.work-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 50px;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}

.work-step {
    text-align: center;
    position: relative;
}

.work-step-circle {
    width: 230px;
    height: 230px;
    margin: 0 auto 34px;
    position: relative;
}

.work-step-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.work-step-num {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.work-step-content h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 400;
}

.work-step-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0 auto;
    max-width: 22em;
}

/* ===== [С-09] ВИДЕО-СЛАЙДЕР — «Наше производство в деталях» ===== */
.video-section {
    background-color: var(--milk);
}

.video-section h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 25px;
    text-transform: none;
}

.video-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 0;
}

.video-description {
    max-width: 850px;
    margin: 0 auto 70px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(1.053rem, 2vw, 1.3rem);
    text-align: center;
}

.video-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.slider-wrapper {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slider-item {
    flex: 0 0 calc(100% / 3);
    padding: 0 5px;
    box-sizing: border-box;
}

.slider-item iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 363 / 714;
    display: block;
    border: none;
    background-color: #000;
    border-radius: 18px;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition);
    box-shadow: 0 4px 12px rgba(90, 61, 48, 0.3);
    z-index: 10;
}

.slider-prev {
    left: -10px;
}

.slider-next {
    right: -10px;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(90, 61, 48, 0.5);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(90, 61, 48, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ===== [Б] БИБЛИОТЕКА (library.html) — альбомы ===== */
.library-section {
    background-color: var(--light-color);
    padding: 100px 0;
    margin-top: 80px;
}

.library-section h2,
.library-section h1 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.library-section h2::after,
.library-section h1::after {
    display: none;
}

.library-description {
    max-width: 800px;
    margin: 0 auto 70px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.3rem;
    text-align: center;
}

.library-albums {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.album {
    background: transparent;
    border-radius: 0;
    padding: 40px 30px;
    box-shadow: none;
    scroll-margin-top: 100px;
}

.album h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 700;
}

.album h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 0;
}

.album-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.album-gallery img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.album-gallery img:hover {
    box-shadow: var(--shadow-md);
}

/* ===== [С-10] МЫ НА КАРТЕ — фото фабрики + Яндекс-карта. Заголовок — в [С-00] «заголовки с линией» ===== */
.section-contact {
    background-color: var(--milk);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 600px;
    border-radius: 18px;
    overflow: hidden;
    margin: 70px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Левая колонка с фото */
.contact-info-image {
    background-color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Правая колонка с картой */
.contact-map {
    height: 100%;
    background-color: #000;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== [С-13] ПЛАВАЮЩИЕ КНОПКИ И ОКНО ЗАЯВКИ — поля формы ===== */
.form-group {
    margin-bottom: 30px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(90, 61, 48, 0.1);
    background-color: var(--color-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}

/* ===== [С-13] ПЛАВАЮЩИЕ КНОПКИ И ОКНО ЗАЯВКИ — кнопка «Наверх» ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 120px;
    right: 35px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(90, 61, 48, 0.4);
    z-index: 998;
    transition: all 0.3s var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
    background: linear-gradient(135deg, var(--primary-dark), #3e2b21);
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 15px 35px rgba(90, 61, 48, 0.5);
}

/* ===== [С-13] ПЛАВАЮЩИЕ КНОПКИ И ОКНО ЗАЯВКИ — круглая кнопка звонка ===== */
.floating-contact-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(90, 61, 48, 0.5);
    z-index: 999;
    transition: all 0.3s var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 10px 30px rgba(90, 61, 48, 0.5); }
    50% { box-shadow: 0 15px 40px rgba(90, 61, 48, 0.7); }
    100% { box-shadow: 0 10px 30px rgba(90, 61, 48, 0.5); }
}

.floating-contact-btn:hover,
.floating-contact-btn:focus-visible {
    background: linear-gradient(135deg, var(--primary-dark), #3e2b21);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 20px 45px rgba(90, 61, 48, 0.6);
}

/* ===== [С-13] ПЛАВАЮЩИЕ КНОПКИ И ОКНО ЗАЯВКИ — окно «Отправить запрос» ===== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    backdrop-filter: blur(1px);            /* минимальное размытие */
}

.contact-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(1px); }
}

.contact-modal-content {
    background: rgba(255, 255, 255, 0.85); /* полупрозрачный белый */
    backdrop-filter: blur(3px);
    border-radius: 25px;
    width: 100%;
    max-width: 550px;
    padding: 55px 55px 55px;
    position: relative;
    animation: modalSlideIn 0.4s var(--transition);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Усиленная тень для текста, чтобы он оставался читаемым */
.contact-modal-content h3,
.contact-modal-content p,
.contact-modal-content label {
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-60px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus-visible {
    color: #e76f51;
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

/* Увеличенный заголовок модального окна */
.contact-modal-content h3 {
    color: var(--secondary-color);
    margin-bottom: 35px;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.contact-modal-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Улучшенный блок контактной информации */
.modal-contact-info {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #e0e0e0;
}

.modal-contact-title {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
    letter-spacing: 0.3px;
}

.modal-contact-info p {
    margin-bottom: 20px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.2rem;
    line-height: 1.5;
}

.modal-contact-info i {
    color: var(--primary-color);
    width: 28px;
    font-size: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.modal-contact-info strong {
    font-weight: 600;
    width: 130px;
    flex-shrink: 0;
    white-space: nowrap;
    text-align: left;
}

.modal-contact-info .content {
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

.modal-contact-info p:nth-of-type(3) .content {
    white-space: normal;
}

/* Мобильные адаптации */
@media (max-width: 768px) {
    .contact-modal-content {
        padding: 40px 20px 40px;
    }
    .close-modal {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    .modal-contact-info p {
        align-items: flex-start;
        gap: 15px;
    }
    .modal-contact-info i {
        margin-top: 0.3rem;
        width: 24px;
        font-size: 1.3rem;
    }
    .modal-contact-info strong {
        white-space: normal;
        width: 90px;
        line-height: 1.4;
    }
    .modal-contact-info .content {
        margin-left: 15px;
    }
    .modal-contact-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .contact-modal-content {
        padding: 30px 15px 30px;
    }
    .close-modal {
        top: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }
    .modal-contact-info strong {
        width: 70px;
    }
    .modal-contact-info p {
        gap: 12px;
    }
    .modal-contact-info i {
        width: 22px;
        font-size: 1.2rem;
        margin-top: 0.25rem;
    }
    .modal-contact-info .content {
        margin-left: 10px;
    }
    .modal-contact-title {
        font-size: 1.2rem;
    }
}

/* ===== [С-12] ПОДВАЛ — логотип, разделы, контакты ===== */
footer {
    background-color: #000000;
    color: var(--color-white);
    padding: 90px 0 50px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 70px;
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 25px;
}

.footer-logo-container img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 180px;
    object-fit: contain;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 18px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.5rem;
    transition: transform 0.3s var(--transition), background-color 0.3s ease, box-shadow 0.3s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    background-color: var(--primary-color);
    transform: translateY(-6px) scale(1.15);
    box-shadow: 0 10px 20px rgba(90, 61, 48, 0.3);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.7rem;
    margin-bottom: 35px;
    color: var(--color-white);
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 6px 0;
    font-size: 1.1rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--primary-color);
    transform: translateX(12px);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.footer-contact i {
    color: #ffffff;
    margin-top: 3px;
    font-size: 1.3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 45px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* ===== [А] АДАПТИВ (часть 2) — все секции: 1200 / 992 / 768 / 480 px. Внутри — метки секций ===== */
@media (max-width: 1200px) {
    /* clamp автоматически подстраивается */
    /* [С-10] МЫ НА КАРТЕ */
    .contact-container { height: 500px; }

    /* [С-06] НАПРАВЛЕНИЯ */
    .adv-cards { max-width: 1000px; gap: 30px; }
    .adv-card { max-width: calc(33.333% - 30px); }
    .adv-imgwrapper, .adv-bgimg { height: 400px; }

    /* [С-04] О ФАБРИКЕ */
    .factory-card { min-width: calc(33.333% - 25px); }

    /* [С-07] КАК МЫ РАБОТАЕМ */
    .work-steps-grid { grid-template-columns: repeat(3, 1fr); }
    .work-step-circle { width: 200px; height: 200px; }

    /* [Б] БИБЛИОТЕКА (library.html) */
    .album-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .album-gallery img {
        height: 360px;
    }
}

@media (max-width: 992px) {

    /* [С-10] МЫ НА КАРТЕ */
    .contact-container { grid-template-columns: 1fr; height: auto; }
    .contact-info-image { height: 400px; }
    .contact-map { height: 450px; }
    
    /* [С-01] ШАПКА */
    .logo { height: 35px; max-width: 105px; }
    .logo2 { height: 35px; max-width: 105px; }
    .logo-wrapper { transform: translateX(-4px); padding: 4px 0; }
    header { padding: 6px 0; }

    /* [С-02] ПЕРВЫЙ ЭКРАН */
    #home { margin-top: 0; }

    /* [С-01] ШАПКА */
    .header-brand-text {
        font-size: 16px;
        margin-left: 5px;
    }

    /* [С-06] НАПРАВЛЕНИЯ */
    .adv-cards { max-width: 700px; }
    .adv-card { max-width: calc(50% - 30px); }
    .adv-imgwrapper, .adv-bgimg { height: 250px; }
    .adv-img-title h3 { font-size: 1.9rem; }

    /* [С-04] О ФАБРИКЕ */
    .factory-cards { max-width: 700px; }
    .factory-card { min-width: calc(50% - 25px); max-width: calc(50% - 25px); }
    .factory-imgwrapper { height: 400px; }
    /* clamp handles */
    /* [С-07] КАК МЫ РАБОТАЕМ */
    .work-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .work-step-circle { width: 200px; height: 200px; }
    .work-step-content h3 { font-size: 1.3rem; min-height: 60px; }
    .work-step::after, .work-step::before { display: none !important; }
    
    /* [Б] БИБЛИОТЕКА (library.html) */
    .album-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .album-gallery img {
        height: 300px;
    }
    .album h3 {
        font-size: 1.8rem;
    }
    .album {
        scroll-margin-top: 75px;
    }

    /* [С-09] ВИДЕО-СЛАЙДЕР */
    .slider-item {
        flex: 0 0 calc(100% / 2);
    }
    .video-slider {
        padding: 0 45px;
    }
}

/* ИЗМЕНЕНО: теперь текст отображается на мобильных */
@media (max-width: 768px) {

    /* [С-01] ШАПКА */
    .header-brand-text {
        display: flex;
        flex-direction: row;    /* В одну строку */
        align-items: center;
        gap: 5px;
        font-size: 19px;
        margin-left: 5px;
    }
    .header-brand-text span {
        display: inline;
    }
    .mobile-menu-btn { display: flex; }

    /* Мы на карте — иконка и текст в одну строку по центру */
    /* [С-10] МЫ НА КАРТЕ */
    .section-header h1 {
        flex-direction: column;
        gap: 10px;
    }
    .section-header h1 i {
        font-size: 2rem;
    }
    
    /* [С-01] ШАПКА */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: #000000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 40px 20px;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .main-nav.active { left: 0; }
    
    #navMenu {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        width: 100%;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 15px 0;
        width: 100%;
        display: block;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .contact-btn {
        margin-top: 20px;
        padding: 10px 22px;
        font-size: 15px;
    }

    .logo { height: 45px; max-width: 135px; }
    .logo2 { height: 30px; max-width: 90px; }
    .logo-wrapper { transform: translateX(-2px); padding: 3px 0; }
    header { padding: 5px 0; }

    /* [С-02] ПЕРВЫЙ ЭКРАН */
    #home { margin-top: 0; }

    .hero { height: 70vh; min-height: 500px; }
    .hero-content h1 { margin-bottom: 20px; }
    .hero-content p { font-size: clamp(0.95rem, 2.5vw, 1.4rem); margin-bottom: 30px; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 18px; }
    .hero-btn { width: 100%; max-width: 320px; justify-content: center; padding: 16px 25px; font-size: 1.1rem; }

    /* [С-00] ОБЩЕЕ */
    .section { padding: 90px 0; scroll-margin-top: 70px; }

    /* [С-13] ПЛАВАЮЩИЕ КНОПКИ И ОКНО ЗАЯВКИ */
    .floating-contact-btn { width: 60px; height: 60px; font-size: 1.6rem; bottom: 25px; right: 25px; }
    .scroll-top-btn { bottom: 95px; right: 25px; width: 50px; height: 50px; font-size: 1.5rem; }
    .notification { max-width: calc(100% - 40px); right: 20px; left: 20px; top: 25px; padding: 20px 25px; }
    
    /* [С-06] НАПРАВЛЕНИЯ */
    .adv-cards { flex-direction: column; align-items: center; gap: 30px; }
    .adv-card { max-width: 100%; width: 100%; max-width: 350px; }
    .adv-imgwrapper, .adv-bgimg { height: 300px; }
    .advantages-cafmebel h2 { margin-bottom: 50px; }
    .adv-content { padding: 25px 20px 20px; }
    .adv-img-title h3 { font-size: 1.98rem; }
    .adv-content p { font-size: 1.125rem; }

    /* [С-04] О ФАБРИКЕ */
    .about-factory { padding: 80px 0; }
    /* clamp handles */
    .factory-description { font-size: 1.1rem; padding: 0 20px; }
    .factory-cards { flex-direction: column; align-items: center; }
    .factory-card { min-width: 100%; max-width: 350px; }
    .factory-imgwrapper { height: 400px; }

    /* [С-07] КАК МЫ РАБОТАЕМ */
    .work-advantages { padding: 80px 0; }
    .work-steps-grid { grid-template-columns: 1fr; gap: 50px; max-width: 400px; margin-top: 0; }
    .work-step-circle { width: 160px; height: 160px; }
    .work-step-content h3 { min-height: auto; margin-bottom: 10px; }

    /* [С-10] МЫ НА КАРТЕ */
    .contact-container { border-radius: 15px; }
    .contact-info-image { height: 350px; }
    .contact-map { height: 400px; }

    /* [С-07] КАК МЫ РАБОТАЕМ */
    .work-step::after, .work-step::before { display: none !important; }

    /* [Б] БИБЛИОТЕКА (library.html) */
    .library-section {
        padding: 80px 0;
        margin-top: 45px;
    }
    .album {
        scroll-margin-top: 65px;
    }
    .album-gallery {
        grid-template-columns: 1fr;
    }
    .album-gallery img {
        height: 300px;
    }
    .album h3 {
        font-size: 1.6rem;
    }

    /* [С-09] ВИДЕО-СЛАЙДЕР */
    .slider-item {
        flex: 0 0 100%;
    }
    .video-slider {
        padding: 0 35px;
    }
    .slider-prev {
        left: -5px;
    }
    .slider-next {
        right: -5px;
    }

    /* [С-12] ПОДВАЛ */
    .footer-logo-container {
        align-items: center;
    }
    .footer-about p {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* ИЗМЕНЕНО: дополнительная корректировка для очень маленьких экранов */
@media (max-width: 480px) {

    /* [С-01] ШАПКА */
    .header-brand-text {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        font-size: 17px;
        margin-left: 3px;
    }
    .header-brand-text span { display: inline; }
    .logo { height: 40px; max-width: 120px; }
    .logo2 { height: 26px; max-width: 78px; }
    .logo-wrapper { transform: translateX(-1px); padding: 2px 0; }
    header { padding: 4px 0; }

    /* [С-02] ПЕРВЫЙ ЭКРАН */
    #home { margin-top: 0; }

    /* [С-00] ОБЩЕЕ */
    .container { padding: 0 20px; }
    /* clamp handles font-size */
    /* clamp handles font-size */
    /* clamp handles */
    .btn { padding: 12px 25px; font-size: 15px; }

    /* [С-13] ПЛАВАЮЩИЕ КНОПКИ И ОКНО ЗАЯВКИ */
    .notification { padding: 18px; top: 20px; right: 20px; left: 20px; max-width: calc(100% - 40px); }
    .notification-content { font-size: 14px; gap: 12px; }
    .floating-contact-btn { width: 55px; height: 55px; font-size: 1.4rem; bottom: 20px; right: 20px; }
    .scroll-top-btn { bottom: 85px; right: 20px; width: 45px; height: 45px; font-size: 1.3rem; }

    /* [С-00] ОБЩЕЕ */
    .section { padding: 80px 0; }

    /* [С-12] ПОДВАЛ */
    .footer-logo { font-size: 2.5rem; }

    /* [С-06] НАПРАВЛЕНИЯ */
    .adv-imgwrapper, .adv-bgimg { height: 250px; }

    /* [С-10] МЫ НА КАРТЕ */
    .contact-info-image { height: 300px; }
    .contact-map { height: 350px; }

    /* [С-07] КАК МЫ РАБОТАЕМ */
    .work-step-circle { width: 140px; height: 140px; }
    
    /* [Б] БИБЛИОТЕКА (library.html) */
    .library-section {
        margin-top: 40px;
    }
    .album {
        scroll-margin-top: 55px;
    }
    .album-gallery img {
        height: 270px;
    }

    .slider-prev,

    /* [С-09] ВИДЕО-СЛАЙДЕР */
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* [С-12] ПОДВАЛ */
    .footer-logo-container {
        align-items: center;
    }
    .footer-about p {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* ===== [Б] БИБЛИОТЕКА — галерея работ ===== */
.gallery-section {
    background-color: #fff;
    padding: 100px 0;
    margin-top: 80px;
}
.gallery-section h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.gallery-section h1::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 0;
}
.gallery-description {
    max-width: 800px;
    margin: 0 auto 70px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.3rem;
    text-align: center;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f5f5f5;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.03);
}
.gallery-load-more {
    text-align: center;
}
.load-more-btn {
    padding: 14px 40px;
    font-size: 1.1rem;
}
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .gallery-section {
        padding: 80px 0;
        margin-top: 60px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .gallery-item img {
        height: 260px;
    }
}

/* ===== [Б] БИБЛИОТЕКА (library.html) — «Другие проекты», просмотр фото ===== */

    /* ===== HERO-БАННЕР «ДРУГИЕ ПРОЕКТЫ» ===== */
    .op-hero {
        position: relative;
        width: 100%;
        min-height: 480px;
        background-image: url('image/other-projects-bg.jpg?v=20261014');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .op-hero-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.58);
    }
    .op-hero-content {
        position: relative;
        z-index: 1;
        text-align: center;
        padding: 60px 24px;
        max-width: 700px;
    }
    .op-hero-content h2 {
        color: #fff;
        font-size: clamp(2rem, 5vw, 3.2rem);
        margin: 0 0 16px;
        text-shadow: 0 2px 12px rgba(0,0,0,0.5);
        font-family: 'Inter', sans-serif;
    }
    .op-hero-content p {
        color: rgba(255,255,255,0.88);
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        line-height: 1.6;
        margin: 0 0 36px;
        text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    }
    .op-toggle-btn {
        font-size: 1.2rem !important;
        padding: 18px 52px !important;
        display: inline-flex;
        align-items: center;
        gap: 12px;
        letter-spacing: 0.04em;
        border-radius: 30px;
        transition: transform 0.15s, opacity 0.15s;
    }
    .op-toggle-btn:active { transform: scale(0.97); }
    .other-gallery-wrap {
        background: #111;
        padding: 40px 0 60px;
    }
    .other-gallery-wrap[hidden] { display: none; }
    #otherGalleryGrid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    #otherGalleryGrid .gallery-item {
        border-radius: 5px;
        overflow: hidden;
        cursor: pointer;
        position: relative;
        aspect-ratio: 4/3;
        background: #222;
    }
    #otherGalleryGrid .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s, filter 0.3s;
    }
    #otherGalleryGrid .gallery-item:hover img {
        transform: scale(1.06);
        filter: brightness(0.78);
    }
    #otherGalleryGrid .gallery-item::after {
        content: '\f00e';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: #fff;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }
    #otherGalleryGrid .gallery-item:hover::after { opacity: 1; }
    .op-lightbox {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .op-lightbox[hidden] { display: none; }
    .op-lightbox-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .op-lb-img-wrap {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .op-lb-img-wrap img {
        max-width: 88vw;
        max-height: 82vh;
        border-radius: 8px;
        box-shadow: 0 8px 48px rgba(0,0,0,0.7);
        object-fit: contain;
        display: block;
        user-select: none;
        -webkit-user-drag: none;
    }
    .op-lb-close {
        position: absolute;
        top: 18px; right: 22px;
        z-index: 3;
        background: rgba(255,255,255,0.15);
        border: none;
        color: #fff;
        font-size: 1.5rem;
        width: 50px; height: 50px;
        border-radius: 50%;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: background 0.2s;
        backdrop-filter: blur(4px);
    }
    .op-lb-close:hover { background: rgba(255,255,255,0.3); }
    .op-lb-arrow {
        position: absolute;
        top: 50%; transform: translateY(-50%);
        z-index: 3;
        background: rgba(255,255,255,0.15);
        border: none;
        color: #fff;
        font-size: 1.6rem;
        width: 56px; height: 56px;
        border-radius: 50%;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: background 0.2s;
        backdrop-filter: blur(4px);
    }
    .op-lb-arrow:hover { background: rgba(255,255,255,0.3); }
    .op-lb-prev { left: 20px; }
    .op-lb-next { right: 20px; }
    .op-lb-arrow:active { transform: translateY(-50%) scale(0.93); }
    .op-lb-counter {
        position: absolute;
        bottom: 20px; left: 50%; transform: translateX(-50%);
        z-index: 3;
        color: rgba(255,255,255,0.85);
        font-size: 0.95rem;
        background: rgba(0,0,0,0.45);
        padding: 5px 16px;
        border-radius: 20px;
        backdrop-filter: blur(4px);
        white-space: nowrap;
    }
    @media (max-width: 768px) {

    /* [Б] БИБЛИОТЕКА (library.html) */
        .op-hero { min-height: 380px; background-attachment: scroll; }
        .op-hero-content { padding: 48px 20px; }
        .op-toggle-btn { font-size: 1rem !important; padding: 15px 28px !important; width: 100%; justify-content: center; }
        #otherGalleryGrid { grid-template-columns: repeat(2, 1fr); gap: 7px; }

    /* [С-00] ОБЩЕЕ */
        .other-gallery-wrap { padding: 24px 0 40px; }
    }
    @media (max-width: 480px) {
        .op-lb-arrow { width: 42px; height: 42px; font-size: 1.1rem; }
        .op-lb-prev { left: 8px; }
        .op-lb-next { right: 8px; }
        .op-lb-close { top: 10px; right: 10px; width: 42px; height: 42px; }
        .op-lb-img-wrap img { max-width: 96vw; max-height: 76vh; }
    }
    
/* ===== [С-01] ШАПКА — логотип и меню поверх видео (основная) ===== */
.video-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
}
.video-nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.video-nav-logo { display: flex; align-items: center; }
.video-nav-logo-img {
    height: 68px;
    width: auto;
    max-width: 208px;
    display: block;
}
.video-nav-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 23px;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}
/* Десктоп: nav ссылки прямо в строке */
.video-nav .main-nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    display: flex;
    padding: 0;
    box-shadow: none;
    transform: none;
    left: auto;
}
.video-nav .main-nav .nav-link {
    font-size: 14px !important;
}
.video-nav .main-nav ul {
    display: flex;
    flex-direction: row;
    gap: 28px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.video-nav-burger {
    display: none;
    background: none;
    border: none;
    color: #5A3D30;
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .video-nav {
        padding: 12px 20px;
    }
    .video-nav .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 1001;
    }
    .video-nav .main-nav.active {
        left: 0;
    }
    .video-nav .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    .video-nav-burger { display: flex; align-items: center; justify-content: center; }
    .video-nav-brand { font-size: 17px; }
    .video-nav-logo-img { height: 52px; }
}


/* ===== [С-00] ОБЩЕЕ — нажатия на iPhone, зоны касания ===== */
/* На iOS кнопки иногда не реагируют на tap без этих правил */
button,
.btn,
.nav-link,
.video-nav-burger,
.floating-contact-btn,
.scroll-top-btn,
.close-modal,
.mobile-menu-btn {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
    touch-action: manipulation;
    cursor: pointer;
}

/* video-nav-burger — увеличиваем зону касания, только на мобильном */
.video-nav-burger {
    min-width: 48px;
    min-height: 48px;
    display: none;
}
@media (max-width: 768px) {
    .video-nav-burger {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* floating-contact-btn — z-index выше всего */
.floating-contact-btn {
    z-index: 1050 !important;
    touch-action: manipulation;
}


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .btn, .nav-link, .footer-nav-link, .mobile-menu-btn,
    .floating-contact-btn, .scroll-top-btn,

    /* [С-13] ПЛАВАЮЩИЕ КНОПКИ И ОКНО ЗАЯВКИ */
    .close-modal, .slider-prev, .slider-next {
        min-height: 44px; min-width: 44px;
    }

    /* [С-06] НАПРАВЛЕНИЯ */
    .adv-card:hover { transform: none !important; }

    /* [Б] БИБЛИОТЕКА (library.html) */
    .gallery-item:hover { transform: none !important; }
    .gallery-item:hover img { transform: none !important; }

    /* [С-00] ОБЩЕЕ */
    .btn:hover { transform: none !important; }

    /* [С-01] ШАПКА */
    .nav-link:hover { transform: none !important; }
}

/* ===== [С-07] КАК МЫ РАБОТАЕМ — заголовок раздела ===== */
.work-advantages h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 25px;
}

.work-advantages h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 0;
}

/* ===== [А] АДАПТИВ (часть 3) — заголовки С-07 и С-09 на телефоне ===== */
@media (max-width: 768px) {

    /* Наше производство в деталях */
    /* [С-09] ВИДЕО-СЛАЙДЕР */
    .video-section h2 {
        display: block;
        text-align: center;
        word-break: keep-all;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Этапы реализации проектов */
    /* [С-07] КАК МЫ РАБОТАЕМ */
    .work-advantages h2 {
        display: block;
        text-align: center;
        word-break: keep-all;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Названия кружочков — Montserrat */
    .work-step-content h3 {
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        text-align: center;
        display: block;
        min-height: auto;
        line-height: 1.4;
    }

    .work-step-content p {
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
        text-align: center;
    }
}

@media (max-width: 480px) {

    /* [С-09] ВИДЕО-СЛАЙДЕР */
    .video-section h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }

    /* [С-07] КАК МЫ РАБОТАЕМ */
    .work-advantages h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
    .work-step-content h3 { font-size: 0.9rem; }
}

@media (max-width: 768px) {
    .works-banner-content h2 { white-space: normal !important; }
}


/* =====================================================================
   [А] АДАПТИВ (часть 4, главная) — МОБИЛЬНАЯ ОПТИМИЗАЦИЯ
   Блок стоит в конце файла и ПЕРЕОПРЕДЕЛЯЕТ правила выше.
   Если правка выше «не срабатывает» на телефоне — ищите ту же секцию здесь.
   ===================================================================== */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* [С-01] --- Шапка поверх видео: при прокрутке получает тёмный фон --- */
.video-nav {
    transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
    padding-top: max(18px, env(safe-area-inset-top));
}
.video-nav.is-scrolled {
    background: rgba(27, 27, 25, 0.94);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    padding-top: 10px;
    padding-bottom: 10px;
}
.video-nav-logo-img { transition: height 0.35s ease; }
.video-nav.is-scrolled .video-nav-logo-img { height: 52px; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .video-nav.is-scrolled {
        background: rgba(27, 27, 25, 0.82);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}
.video-nav-burger { color: #fff; }

/* [С-01] --- Общий край: логотип в шапке и текст первого экрана начинаются с одной линии ---
   --edge — отступ от левого края экрана. Меняете его — двигаются и логотип, и текст. */
:root { --edge: 40px; }
@media (min-width: 769px) and (max-width: 1100px) { :root { --edge: 28px; } }
@media (max-width: 768px) { :root { --edge: 16px; } }
@media (max-width: 400px) { :root { --edge: 12px; } }

.video-nav { padding-left: var(--edge); padding-right: var(--edge); }

/* [С-02] --- Первый экран --- */
.hero {
    height: 100vh;
    height: 100svh;
    min-height: 620px;
}
/* [С-02] Текст первого экрана: во всю ширину экрана с отступом --edge, как у логотипа */
.hero .hero-content {
    max-width: none;
    padding-left: var(--edge);
    padding-right: var(--edge);
}

/* [С-02] Компьютер и планшет: текст начинается с той же линии, что надпись «МЕБЕЛЬНАЯ ФАБРИКА».
   Отступ = край (--edge) + ширина логотипа (--logo-h × 2.058, пропорции logo5.png) + зазор (--brand-gap).
   Чтобы вернуть текст к началу логотипа — удалите этот @media-блок целиком. */
:root { --logo-h: 68px; --brand-gap: 14px; }
@media (min-width: 769px) and (max-width: 1100px) { :root { --logo-h: 54px; } }
@media (min-width: 769px) {
    .video-nav-logo-img { height: var(--logo-h); }
    .video-nav-left { gap: var(--brand-gap); }
    .hero .hero-content {
        padding-left: calc(var(--edge) + var(--logo-h) * 2.058 + var(--brand-gap));
    }
}
.hero-text { width: 100%; }

/* [С-02] Текст слева (по умолчанию) — на широких экранах */
@media (min-width: 993px) {
    .hero-text { max-width: min(760px, 62%); }
    .hero-overlay {
        background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 30%),
            linear-gradient(to right, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.25) 100%);
    }
}

/* [С-02] Вариант «текст справа»: добавьте класс hero-right к <section id="home"> в index.html */
@media (min-width: 993px) {
    .hero-right .hero-content { align-items: flex-end; }
    .hero-right .hero-text {
        width: auto;
        max-width: min(760px, 60%);
    }
    .hero-right .hero-content h1 { font-size: clamp(3rem, 5vw, 4.6rem); }
    .hero-right .hero-overlay {
        background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 30%),
            linear-gradient(to left, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.3) 100%);
    }
}

/* [С-01] --- Планшеты: шапка компактнее, чтобы меню не теснилось --- */
@media (min-width: 769px) and (max-width: 1100px) {
    .video-nav-logo-img { height: 54px; }
    .video-nav-brand { font-size: 16px; }
    .video-nav .main-nav ul { gap: 18px; }
    .video-nav .main-nav .nav-link { font-size: 13px !important; }
    .contact-btn { padding: 10px 18px; }
}

/* [С-08] --- Фон баннеров не «прилипает» на сенсорных экранах (глючит в iOS) --- */
@media (hover: none), (max-width: 1024px) {
    .op-hero { background-attachment: scroll; }
}

/* ===================== ТЕЛЕФОНЫ И МАЛЕНЬКИЕ ПЛАНШЕТЫ ===================== */
@media (max-width: 768px) {
    :root { --container-padding: 24px; }
    .container { padding: 0 var(--container-padding); }

    .section { padding: 72px 0; scroll-margin-top: 64px; }

    /* [С-01] Шапка */
    .video-nav { padding: max(12px, env(safe-area-inset-top)) var(--edge) 12px; }
    .video-nav.is-scrolled { padding-top: 8px; padding-bottom: 8px; }
    .video-nav-left { gap: 10px; }
    .video-nav-logo-img, .video-nav.is-scrolled .video-nav-logo-img { height: 44px; }
    .video-nav-brand { font-size: 13px; letter-spacing: 0.14em; }
    .video-nav-burger { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 22px; padding: 0; margin-right: -8px; }
    .video-nav .main-nav { width: min(86%, 360px); padding: 96px 28px 32px; }
    .video-nav .main-nav ul { gap: 6px; }
    .video-nav .main-nav .nav-link { font-size: 17px !important; padding: 12px 0; }

    /* [С-02] Первый экран: текст прижат к низу, ничего не обрезается */
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        max-height: none;
        display: flex;
    }
    .hero-overlay {
        background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.82) 100%);
    }
    .hero-content {
        height: auto;
        flex: 1;
        justify-content: flex-end;
        align-items: stretch;
        text-align: left;
        padding-top: 110px;
        padding-bottom: calc(44px + env(safe-area-inset-bottom));
    }
    .hero-eyebrow { margin-bottom: 20px; font-size: 0.64rem; letter-spacing: 0.24em; gap: 12px; }
    .hero-rule { width: 28px; }
    .hero-content h1 {
        font-size: clamp(2.3rem, 10.4vw, 3.6rem);
        line-height: 1.04;
        margin-bottom: 20px;
        max-width: none;
    }
    .hero-subline { font-size: 0.62rem; letter-spacing: 0.2em; line-height: 1.9; margin-bottom: 16px; }
    .hero-content p { font-size: 0.95rem; line-height: 1.65; max-width: 34em; margin-bottom: 0; }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-top: 30px;
        max-width: 420px;
    }
    .hero-btn {
        width: 100%;
        max-width: none;
        padding: 19px 24px;
        font-size: 0.74rem;
        letter-spacing: 0.16em;
    }
    .hero-btn-text {
        align-self: center;        /* ссылка под кнопкой — по центру, под серединой кнопки */
        padding: 14px 0 6px;
        font-size: 0.72rem;
    }

    /* [С-03] Строка материалов */
    .materials-strip { font-size: 0.6rem; letter-spacing: 0.2em; gap: 6px 14px; padding: 20px var(--container-padding); line-height: 1.6; }

    /* [С-04] О фабрике: фото листаются пальцем, а не идут длинной колонкой */
    .about-factory { padding: 72px 0; }
    .factory-header { margin-bottom: 36px; }
    .factory-description { font-size: 1rem; padding: 0; margin-top: 34px; }
    .factory-cards {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
        max-width: none;
        margin: 0 calc(-1 * var(--container-padding));
        padding: 0 var(--container-padding);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--container-padding);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .factory-cards::-webkit-scrollbar { display: none; }
    .factory-card {
        flex: 0 0 78%;
        min-width: 0;
        max-width: 340px;
        scroll-snap-align: start;
    }
    .factory-imgwrapper { height: auto; aspect-ratio: 4 / 5; }

    /* [С-05] Цифры: две колонки */
    .facts-section { padding: 72px 0; }
    .facts-head { gap: 20px; margin-bottom: 44px; }
    .facts-head p { font-size: 0.92rem; }
    .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-top: 32px; }
    .fact { gap: 10px; }
    .fact-num { font-size: clamp(1.5rem, 6.4vw, 2.2rem); }
    .fact-label { font-size: 0.6rem; letter-spacing: 0.16em; line-height: 1.5; }

    /* [С-06] Направления */
    .advantages-cafmebel { padding: 72px 0; }
    .advantages-cafmebel h2 { margin-bottom: 48px; }
    .adv-cards { gap: 36px; }
    .adv-card { width: 100%; max-width: 520px; }
    .adv-imgwrapper { height: auto; aspect-ratio: 4 / 3; }
    .adv-bgimg { height: 100%; }
    .adv-img-title { left: 22px; right: 22px; bottom: 20px; }
    .adv-img-title h3 { font-size: clamp(1.45rem, 6.4vw, 1.9rem); }
    .adv-content { padding: 16px 2px 0; }
    .adv-content p { font-size: 0.98rem; }

    /* [С-07] Этапы: компактные строки «кружок + текст» вместо ленты из 6 больших кругов */
    .work-advantages { padding: 72px 0; }
    .work-advantages h2 { margin-bottom: 32px; }
    .work-steps-grid {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 560px;
        margin: 0 auto;
    }
    .work-step {
        display: grid;
        grid-template-columns: 84px 1fr;
        align-items: center;
        gap: 18px;
        text-align: left;
        padding: 18px 0;
        border-top: 1px solid var(--warm-line);
    }
    .work-step:last-child { border-bottom: 1px solid var(--warm-line); }
    .work-step-circle { width: 84px; height: 84px; margin: 0; }
    .work-step-img { box-shadow: none; }
    .work-step-num { margin-bottom: 4px; font-size: 0.62rem; }
    .work-step-content h3 {
        font-family: 'Oswald', 'Arial Narrow', sans-serif;
        font-size: 1.2rem;
        font-weight: 400;
        text-align: left;
        margin-bottom: 4px;
        line-height: 1.25;
    }
    .work-step-content p { text-align: left; margin: 0; max-width: none; font-size: 0.88rem; line-height: 1.55; }

    /* [С-08] Баннер «Смотрите, что получается» */
    .works-banner-btn { width: 100%; max-width: 420px; }

    /* [С-09] Видео-слайдер */
    .video-description { margin-bottom: 40px; font-size: 1rem; }
    .video-slider { padding: 0 40px; max-width: 420px; }
    .slider-prev { left: -4px; }
    .slider-next { right: -4px; }
    .slider-prev, .slider-next { width: 40px; height: 40px; font-size: 1.1rem; }
    .slider-dots { margin-top: 22px; }

    /* [С-10] Карта */
    .section-header { margin-bottom: 40px; }
    .contact-container { margin: 0; border-radius: 12px; }
    .contact-info-image { height: 220px; }
    .contact-map { height: 360px; }

    /* [С-11] Заявка */
    .cta-band { padding: 72px 0 calc(72px + env(safe-area-inset-bottom)); }
    .cta-btn { width: 100%; max-width: 420px; padding: 20px 24px; }
    .cta-contacts a { display: inline-block; padding: 4px 0; }

    /* [С-12] Подвал: всё по левому краю, плотнее */
    footer { padding: 60px 0 calc(28px + env(safe-area-inset-bottom)); }
    .footer-content { gap: 40px; margin-bottom: 40px; }
    .footer-logo-container { align-items: flex-start; margin-bottom: 18px; }
    .footer-logo-container img { max-height: 90px; }
    .footer-about p { text-align: left; font-size: 1rem; margin-bottom: 24px; }
    .social-links { justify-content: flex-start; }
    .social-links a { width: 46px; height: 46px; font-size: 1.3rem; }
    .footer-links h4, .footer-contact h4 { font-size: 1.15rem; margin-bottom: 16px; padding-bottom: 12px; }
    .footer-links a { margin-bottom: 0; padding: 9px 0; font-size: 1rem; }
    .footer-contact p { font-size: 1rem; margin-bottom: 14px; gap: 12px; }
    .footer-contact i { font-size: 1.05rem; width: 20px; text-align: center; }
    .footer-contact a { color: inherit; }
    .footer-bottom { padding-top: 28px; font-size: 0.85rem; }

    /* [С-13] Плавающие кнопки: меньше, с учётом «чёлки»/полоски iPhone */
    .floating-contact-btn {
        width: 54px; height: 54px; font-size: 1.35rem;
        right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    }
    .scroll-top-btn {
        width: 44px; height: 44px; font-size: 1.1rem;
        right: 21px; bottom: calc(82px + env(safe-area-inset-bottom));
    }
    .floating-contact-btn.is-hidden {
        opacity: 0; visibility: hidden; transform: scale(0.8); pointer-events: none;
    }

    /* [С-13] Окно заявки */
    .contact-modal { padding: 16px; align-items: center; }
    .contact-modal-content { padding: 44px 20px 28px; border-radius: 18px; max-height: 90vh; max-height: 90svh; }
    .contact-modal-content h3 { font-size: 1.7rem; margin-bottom: 26px; padding-bottom: 16px; }
    .contact-modal-content h3::after { width: 64px; height: 3px; }
    .form-group { margin-bottom: 16px; }
    .form-group input, .form-group select, .form-group textarea { padding: 16px; font-size: 16px; border-radius: 10px; }
}

/* ===================== УЗКИЕ ТЕЛЕФОНЫ (до 400 px) ===================== */
@media (max-width: 400px) {
    :root { --container-padding: 18px; }
    .section, .about-factory, .advantages-cafmebel, .work-advantages, .facts-section { padding: 60px 0; }
    .video-nav-logo-img, .video-nav.is-scrolled .video-nav-logo-img { height: 40px; }
    .video-nav-brand { font-size: 11.5px; letter-spacing: 0.12em; }
    .hero-content { padding-top: 96px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
    .hero-eyebrow { margin-bottom: 16px; }
    .hero-content h1 { margin-bottom: 16px; }
    .hero-content p { font-size: 0.9rem; }
    .hero-buttons { margin-top: 24px; }
    .hero-subline { font-size: 0.56rem; letter-spacing: 0.14em; }
    .factory-card { flex-basis: 84%; }
    .fact-num { font-size: 1.45rem; }
    .work-step { grid-template-columns: 68px 1fr; gap: 14px; }
    .work-step-circle { width: 68px; height: 68px; }
    .work-step-content h3 { font-size: 1.1rem; }
    .video-slider { padding: 0 34px; }
    .contact-map { height: 320px; }
}

/* Низкие экраны (телефон горизонтально): первый экран без лишней высоты */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: 0; height: auto; }
    .hero-content { padding-top: 96px; padding-bottom: 40px; }
    .hero-buttons { flex-direction: row; align-items: center; max-width: none; gap: 24px; }
    .hero-btn { width: auto; }
}


/* =====================================================================
   [Б] БИБЛИОТЕКА (library.html) — В СТИЛЕ ГЛАВНОЙ
   Сверху вниз: первый экран → альбомы 01–03 → «Другие проекты» →
   «Обсудим задачу» ([С-11]) → подвал ([С-12]).
   ===================================================================== */

/* [Б] Первый экран: фото вместо видео, остальное — как [С-02] на главной */
.lib-hero {
    background: #1B1B19 url('image/1.jpg?v=20261014') center / cover no-repeat;
}
.lib-album-links a {
    color: inherit;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.lib-album-links a:hover,
.lib-album-links a:focus-visible { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.6); }

/* [Б] Альбомы */
.lib-albums { padding-top: 130px; padding-bottom: 40px; }
.lib-page .album {
    padding: 0;
    margin: 0 0 120px;
    background: transparent;
    scroll-margin-top: 90px;
}
.album-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 400px) auto;
    align-items: end;
    gap: 16px 40px;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--warm-line);
}
.album-num {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    color: var(--primary-color);
    padding-bottom: 8px;
}
.album-head h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0;
}
.album-head p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--warm-mute);
}
.album-count {
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--warm-mute);
    white-space: nowrap;
    padding-bottom: 6px;
}

/* Сетка альбома: первое фото крупное (2×2), остальные вокруг.
   У чётных альбомов крупное фото справа — страница «дышит». */
.lib-page .album-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(170px, 19vw, 290px);
    grid-auto-flow: dense;
    gap: 12px;
}
.lib-page .album-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;   /* рука, как на карточках главной (раньше была лупа zoom-in) */
    background-color: var(--warm-gray);
    transition: filter 0.4s ease;
}
.lib-page .album-gallery img:hover,
.lib-page .album-gallery img:focus-visible { filter: brightness(0.88); box-shadow: none; }
.lib-page .album-gallery img:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.lib-page .album-gallery img:first-child { grid-column: 1 / span 2; grid-row: span 2; }
.lib-page .album:nth-of-type(even) .album-gallery img:first-child { grid-column: 2 / span 2; }

/* [Б] «Другие проекты»: баннер в стиле главной, текст с той же линии, что заголовок первого экрана */
.op-hero {
    min-height: 560px;
    align-items: flex-end;
    justify-content: flex-start;
    background-color: var(--ink);
}
.op-hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.3) 100%);
}
.op-hero-content {
    width: 100%;
    max-width: none;
    text-align: left;
    padding: 110px var(--edge) 100px;
}
@media (min-width: 769px) {
    .op-hero-content { padding-left: calc(var(--edge) + var(--logo-h) * 2.058 + var(--brand-gap)); }
}
.op-hero-content .hero-eyebrow { color: rgba(255, 255, 255, 0.82); margin-bottom: 28px; }
.op-hero-content h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(2.3rem, 5.4vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin: 0 0 24px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.op-hero-content p { max-width: 30em; margin: 0 0 40px; font-size: clamp(0.95rem, 1.3vw, 1.05rem); line-height: 1.75; }
.op-toggle-btn {
    border-radius: 0;
    box-shadow: none;
    font-size: 0.74rem !important;
    letter-spacing: 0.16em;
    font-weight: 500;
    padding: 21px 38px !important;
    background-color: var(--primary-color);
    color: var(--milk);
}
.op-toggle-btn:hover, .op-toggle-btn:focus-visible { background-color: var(--primary-dark); transform: none; box-shadow: none; }
.other-gallery-wrap { background: var(--ink); padding: 12px 0 80px; }
#otherGalleryGrid { gap: 8px; }
#otherGalleryGrid .gallery-item { border-radius: 0; background: #26221F; }

/* [Б] Телефоны */
@media (max-width: 768px) {
    .lib-album-links { line-height: 2.1; }
    .lib-albums { padding-top: 64px; padding-bottom: 8px; }
    .lib-page .album { margin-bottom: 64px; scroll-margin-top: 70px; }
    .album-head { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding-bottom: 18px; margin-bottom: 18px; }
    .album-num { grid-column: 1 / -1; padding-bottom: 0; }
    .album-head h2 { font-size: clamp(1.6rem, 7.4vw, 2.2rem); }
    .album-head p { grid-column: 1 / -1; grid-row: 3; font-size: 0.92rem; }
    .album-count { grid-column: 2; grid-row: 2; align-self: end; }
    .album-count::after { content: ' · листайте →'; }

    /* Альбом листается пальцем, как фото в «О фабрике» на главной */
    .lib-page .album-gallery {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--container-padding);
        margin: 0 calc(-1 * var(--container-padding));
        padding: 0 var(--container-padding);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .lib-page .album-gallery::-webkit-scrollbar { display: none; }
    .lib-page .album-gallery img {
        flex: 0 0 86%;
        height: auto;
        aspect-ratio: 4 / 3;
        scroll-snap-align: start;
    }

    .op-hero { min-height: 0; }
    .op-hero-content { padding: 80px var(--edge) 64px; }
    .op-hero-content .hero-eyebrow { margin-bottom: 20px; font-size: 0.64rem; letter-spacing: 0.24em; }
    .op-hero-content p { margin-bottom: 30px; }
    .op-toggle-btn { width: 100%; max-width: 420px; justify-content: center; padding: 19px 24px !important; }
    #otherGalleryGrid { gap: 6px; }
    .other-gallery-wrap { padding: 6px 0 48px; }
}
@media (max-width: 400px) {
    .lib-page .album-gallery img { flex-basis: 88%; }
    .album-head { grid-template-columns: minmax(0, 1fr); }
    .album-count { grid-column: 1; grid-row: auto; }
}


/* =====================================================================
   [С-13] ОКНО ЗАЯВКИ — НОВЫЙ СТИЛЬ
   Окно всегда в разметке; показывается классом .is-open (ставит script.js).
   Анимируются только opacity и transform — это не тормозит даже на слабых телефонах.
   ===================================================================== */
.contact-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(20, 17, 15, 0.72);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
    z-index: 1100;
    overscroll-behavior: contain;
}
.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.28s ease;
}
.contact-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 52px 48px 36px;
    background: var(--milk);
    color: var(--ink);
    border-radius: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: none;
    transform: translateY(18px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-modal.is-open .contact-modal-content { transform: none; }
.contact-modal-content h3,
.contact-modal-content p,
.contact-modal-content label { text-shadow: none; }

.close-modal {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    color: var(--warm-mute);
    border-radius: 0;
    transition: color 0.25s ease, background-color 0.25s ease;
}
.close-modal:hover,
.close-modal:focus-visible { color: var(--ink); background-color: rgba(0, 0, 0, 0.05); transform: none; }

.modal-eyebrow {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    color: #A8825E;
    margin-bottom: 14px;
}
.contact-modal-content h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-align: left;
    color: var(--ink);
    margin: 0 0 12px;
    padding: 0;
}
.contact-modal-content h3::after { display: none; }
.modal-lead { font-size: 0.95rem; line-height: 1.65; color: var(--warm-mute); margin: 0 0 22px; }

/* Поля: линия снизу вместо рамки */
#contactForm .form-group { margin-bottom: 6px; }
#contactForm .form-group input,
#contactForm .form-group textarea {
    width: 100%;
    padding: 15px 0 11px;
    font-size: 16px;               /* 16px — iPhone не увеличивает страницу при вводе */
    font-family: inherit;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--warm-gray);
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.25s ease;
}
#contactForm .form-group textarea { min-height: 0; resize: vertical; line-height: 1.5; }
#contactForm .form-group input::placeholder,
#contactForm .form-group textarea::placeholder { color: #9A8F86; }
#contactForm .form-group input:focus,
#contactForm .form-group textarea:focus { outline: none; border-bottom-color: var(--primary-color); box-shadow: none; background: transparent; }
#contactForm .form-group input.is-invalid,
#contactForm .form-group textarea.is-invalid { border-bottom-color: #B4442F; }

.form-status { min-height: 0; margin: 14px 0 0; font-size: 0.88rem; line-height: 1.5; }
.form-status:empty { margin: 0; }
.form-status.is-error { color: #B4442F; }

.modal-submit {
    width: 100%;
    margin-top: 22px;
    padding: 20px 24px;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--milk);
    background-color: var(--primary-color);
    transition: background-color 0.3s ease, opacity 0.3s ease;
}
.modal-submit:hover,
.modal-submit:focus-visible { background-color: var(--primary-dark); transform: none !important; box-shadow: none; }
.modal-submit:disabled { opacity: 0.7; cursor: wait; }
.form-consent { margin: 12px 0 0; font-size: 0.72rem; line-height: 1.5; color: #9A8F86; }

.modal-success { padding: 8px 0 4px; }
.modal-success-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-bottom: 18px;
    border: 1px solid var(--primary-color); color: var(--primary-color); font-size: 1.3rem;
}
.modal-success h4 { font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 400; font-size: 1.6rem; margin: 0 0 10px; color: var(--ink); }
.modal-success p { margin: 0 0 24px; color: var(--warm-mute); line-height: 1.65; }
.modal-done {
    border-radius: 0; box-shadow: none; padding: 16px 34px;
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em;
    background: var(--ink); color: var(--milk);
}
.modal-done:hover { background: #000; transform: none !important; box-shadow: none; }

.modal-alt {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--warm-line);
    font-size: 0.85rem;
    color: var(--warm-mute);
}
.modal-alt a { color: var(--ink); border-bottom: 1px solid var(--warm-gray); }
.modal-alt a:hover { border-bottom-color: var(--primary-color); }

@media (max-width: 768px) {
    /* На телефоне окно выезжает снизу, как шторка */
    .contact-modal { padding: 0; align-items: flex-end; }
    .contact-modal-content {
        max-width: none;
        max-height: 92vh;
        max-height: 92dvh;
        padding: 44px var(--container-padding) calc(24px + env(safe-area-inset-bottom));
        transform: translateY(40px);
    }
    .contact-modal-content h3 { font-size: 1.9rem; margin-bottom: 10px; padding: 0; }
    .modal-lead { margin-bottom: 14px; font-size: 0.92rem; }
    #contactForm .form-group { margin-bottom: 2px; }
    #contactForm .form-group input,
    #contactForm .form-group textarea { padding: 14px 0 10px; }
    .modal-submit { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-modal, .contact-modal-content { transition: none; }
}


/* =====================================================================
   ДОВОДКА СТАРЫХ БЛОКОВ ДО НОВОГО СТИЛЯ
   Заголовки разделов, баннер [С-08], видео [С-09], карта [С-10],
   подвал [С-12], плавающие кнопки [С-13]. Стоит в конце — перекрывает правила выше.
   ===================================================================== */

/* [С-00] Надпись над заголовком раздела: «—— О ФАБРИКЕ» */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.section-eyebrow .hero-rule { width: 36px; background-color: currentColor; opacity: 0.55; }

/* [С-00] Заголовки разделов: слева, крупно, без полоски по центру */
.factory-header h2,
.advantages-cafmebel h2,
.work-advantages h2,
.video-section h2,
.section-header h2 {
    display: block;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-align: left;
    margin: 0;
    padding: 0;
}
.factory-header h2::after,
.advantages-cafmebel h2::after,
.work-advantages h2::after,
.video-section h2::after,
.section-header h2::after,
.section-header h1::after { display: none; }

.section-head,
.factory-header,
.section-header { text-align: left; margin-bottom: 56px; }
.factory-description,
.video-description,
.section-description {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--warm-mute);
    max-width: 620px;
    margin: 20px 0 0;
    padding: 0;
    text-align: left;
}

/* [С-04] О фабрике: три фото на всю ширину контейнера */
.factory-cards { justify-content: space-between; max-width: none; gap: 16px; }
.factory-card { flex: 1 1 0; max-width: none; min-width: 0; }

/* [С-06] Направления: карточки от левого края */
.adv-cards { justify-content: space-between; max-width: none; gap: 24px; }
.adv-card { flex: 1 1 0; max-width: none; }

/* [С-07] Как мы работаем: шаги по левому краю */
.work-steps-grid { max-width: none; margin: 0; gap: 64px 40px; }
.work-step { text-align: left; }
.work-step-circle { margin: 0 0 26px; width: 200px; height: 200px; }
.work-step-content p { margin: 0; max-width: 24em; }

/* [С-08] Баннер «Смотрите, что получается» (раньше стили были внутри index.html) */
.works-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    background: #1B1B19 url('image/1.jpg?v=20261014') center / cover no-repeat;
    background-attachment: fixed;
}
.works-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.3) 100%);
}
.works-banner-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 110px var(--edge) 100px;
    color: #fff;
}
@media (min-width: 769px) {
    .works-banner-content { padding-left: calc(var(--edge) + var(--logo-h) * 2.058 + var(--brand-gap)); }
}
.works-banner-content .hero-eyebrow { margin-bottom: 26px; }
.works-banner-content h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(2.3rem, 5.4vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 0 0 22px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.works-banner-content p {
    max-width: 30em;
    margin: 0 0 40px;
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}
.works-banner-btn {
    border-radius: 0;
    box-shadow: none;
    padding: 21px 38px;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--milk);
}
.works-banner-btn:hover,
.works-banner-btn:focus-visible { background-color: var(--primary-dark); transform: none; box-shadow: none; }
@media (max-width: 1024px), (hover: none) {
    .works-banner { background-attachment: scroll; }
}

/* [С-09] Видео-слайдер: без скруглений и теней, квадратные стрелки */
.slider-wrapper { border-radius: 0; box-shadow: none; }
.slider-item iframe { border-radius: 0; background-color: var(--ink); }
.slider-prev,
.slider-next {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: var(--milk);
    color: var(--ink);
    border: 1px solid var(--warm-gray);
    box-shadow: none;
    font-size: 1rem;
}
.slider-prev:hover,
.slider-next:hover { background: var(--ink); color: var(--milk); border-color: var(--ink); transform: translateY(-50%); box-shadow: none; }
.slider-dots { gap: 8px; }
.slider-dot { width: 24px; height: 2px; border-radius: 0; background: var(--warm-gray); }
.slider-dot.active { background: var(--primary-color); transform: none; }

/* [С-10] Мы на карте: без скруглений и тени */
.contact-container { border-radius: 0; box-shadow: none; margin: 0; }

/* [С-12] Подвал: спокойнее, в тон сайта */
footer { background-color: var(--ink); }
.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #A8825E;
    margin-bottom: 26px;
    padding-bottom: 0;
}
.footer-links h4::after,
.footer-contact h4::after { display: none; }
.footer-about p,
.footer-links a,
.footer-contact p { font-size: 0.95rem; color: #C9BEB2; }
.footer-links a { margin-bottom: 6px; padding: 6px 0; }
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--milk); transform: none; }
.footer-contact a { color: inherit; transition: color 0.3s ease; }
.footer-contact a:hover { color: var(--milk); }
.footer-contact i { font-size: 0.95rem; color: #8C8178; width: 18px; text-align: center; margin-top: 5px; }
.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: transparent;
    border: 1px solid #3A342F;
    color: #C9BEB2;
    font-size: 1.1rem;
}
.social-links a:hover,
.social-links a:focus-visible { background: var(--primary-color); border-color: var(--primary-color); color: var(--milk); transform: none; box-shadow: none; }
.footer-bottom { border-top-color: #38322D; color: #8C8178; font-size: 0.82rem; text-align: left; }
.footer-bottom a { color: #C9BEB2; border-bottom: 1px solid #3A342F; }
.footer-bottom a:hover { color: var(--milk); }

/* [С-13] Плавающие кнопки: квадратные, без пульсации */
.floating-contact-btn {
    border-radius: 0;
    background: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: none;
    font-size: 1.4rem;
    width: 60px;
    height: 60px;
}
.floating-contact-btn:hover,
.floating-contact-btn:focus-visible { background: var(--primary-dark); transform: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.scroll-top-btn {
    border-radius: 0;
    background: var(--milk);
    color: var(--ink);
    border: 1px solid var(--warm-gray);
    box-shadow: none;
    width: 48px;
    height: 48px;
    right: 41px;
    bottom: 110px;
    font-size: 1rem;
}
.scroll-top-btn:hover,
.scroll-top-btn:focus-visible { background: var(--ink); color: var(--milk); border-color: var(--ink); transform: none; box-shadow: none; }

/* ---------- Телефоны ---------- */
@media (max-width: 992px) {
    .factory-cards, .adv-cards { gap: 16px; }
    .adv-card { flex: 1 1 calc(50% - 16px); }
    .work-step-circle { width: 170px; height: 170px; }
}
@media (max-width: 768px) {
    .section-head, .factory-header, .section-header { margin-bottom: 36px; }
    .factory-header h2, .advantages-cafmebel h2, .work-advantages h2, .video-section h2, .section-header h2 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }
    .section-eyebrow { margin-bottom: 14px; font-size: 0.62rem; letter-spacing: 0.24em; }
    .factory-description, .video-description, .section-description { font-size: 0.95rem; margin-top: 14px; }
    .factory-card { flex: 0 0 78%; }
    .adv-card { flex: 1 1 100%; max-width: none; }
    .work-step-circle { width: 84px; height: 84px; margin: 0; }
    .works-banner { min-height: 0; }
    .works-banner-content { padding: 80px var(--edge) 64px; }
    .works-banner-content .hero-eyebrow { margin-bottom: 20px; font-size: 0.64rem; letter-spacing: 0.24em; }
    .works-banner-content p { margin-bottom: 30px; }
    .works-banner-btn { display: block; width: 100%; max-width: 420px; text-align: center; padding: 19px 24px; }
    .footer-bottom { text-align: left; }
    .floating-contact-btn { width: 54px; height: 54px; font-size: 1.25rem; }
    .scroll-top-btn { width: 44px; height: 44px; right: 21px; bottom: calc(82px + env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) {
    .factory-card { flex-basis: 84%; }
    .work-step-circle { width: 68px; height: 68px; }
}


/* =====================================================================
   [ПД] СТРАНИЦА ПОЛИТИКИ ПЕРСОНАЛЬНЫХ ДАННЫХ (politika.html)
   ===================================================================== */
.legal-hero {
    position: relative;
    background: var(--ink);
    color: #fff;
    padding: 190px 0 80px;
}
.legal-hero-inner { padding-left: var(--edge); padding-right: var(--edge); max-width: none; }
@media (min-width: 769px) {
    .legal-hero-inner { padding-left: calc(var(--edge) + var(--logo-h) * 2.058 + var(--brand-gap)); }
}
.legal-hero .hero-eyebrow { margin-bottom: 26px; }
.legal-hero h1 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.06;
    letter-spacing: -0.015em;
    margin: 0 0 22px;
}
.legal-hero p { margin: 0; color: #B9AEA3; font-size: 0.95rem; }

.legal { max-width: 860px; margin: 0; padding-top: 80px; padding-bottom: 110px; }
@media (min-width: 769px) {
    .legal { padding-left: calc(var(--edge) + var(--logo-h) * 2.058 + var(--brand-gap)); padding-right: var(--edge); max-width: calc(860px + var(--edge) + var(--logo-h) * 2.058 + var(--brand-gap)); }
}
.legal h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    line-height: 1.2;
    color: var(--ink);
    margin: 48px 0 16px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 1rem; line-height: 1.75; color: #3E3833; }
.legal p { margin: 0 0 14px; }
.legal ul { list-style: none; margin: 0 0 14px; padding: 0; }
.legal li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.legal li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 10px; height: 1px; background: var(--primary-color); }
.legal a { color: var(--primary-color); border-bottom: 1px solid rgba(90, 61, 48, 0.3); }
.legal a:hover { border-bottom-color: var(--primary-color); }
/* Места, которые нужно заполнить перед публикацией (ИНН, ОГРН…) — видны жёлтым */
.legal mark.todo { background: #FFE58A; color: #000; padding: 0 4px; }

/* Ссылка на политику в форме и в подвале */
.form-consent a { color: inherit; border-bottom: 1px solid currentColor; }
.form-consent a:hover { color: var(--ink); }
.footer-legal { margin-top: 10px; font-size: 0.82rem; }

@media (max-width: 768px) {
    .legal-hero { padding: 130px 0 56px; }
    .legal { padding-top: 48px; padding-bottom: 72px; }
    .legal h2 { margin-top: 36px; }
    .legal p, .legal li { font-size: 0.95rem; }
}


/* =====================================================================
   СКРУГЛЕНИЯ — ЕДИНЫЕ ДЛЯ ВСЕГО САЙТА
   Меняйте только эти две переменные:
     --r-btn   — кнопки с текстом (999px = полностью округлые края, «таблетка»)
     --r-block — фото, видео, карта, окно заявки
   Удалите весь блок — вернутся прямые углы.
   ===================================================================== */
:root {
    --r-btn: 999px;
    --r-block: 16px;
}

/* Кнопки с текстом */
.btn,
.hero-btn,
.cta-btn,
.works-banner-btn,
.op-toggle-btn,
.modal-submit,
.modal-done,
.contact-btn,
.video-nav .main-nav .contact-btn { border-radius: var(--r-btn); }

/* Фото и блоки */
.factory-card,
.factory-imgwrapper,
.adv-imgwrapper,
.slider-wrapper,
.slider-item iframe,
.contact-container,
.contact-modal-content,
.lib-page .album-gallery img,
#otherGalleryGrid .gallery-item,
.op-lb-img-wrap img { border-radius: var(--r-block); }
.factory-card,
.factory-imgwrapper,
.adv-imgwrapper,
.contact-container { overflow: hidden; }
.slider-wrapper { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); }
.contact-container { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12); }

/* Круглые элементы */
.slider-prev,
.slider-next,
.social-links a,
.floating-contact-btn,
.scroll-top-btn,
.close-modal,
.modal-success-mark { border-radius: 50%; }
.slider-prev,
.slider-next {
    background: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(90, 61, 48, 0.3);
}
.slider-prev:hover,
.slider-next:hover { background: var(--primary-dark); color: #fff; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; }
.slider-dot.active { transform: scale(1.2); }

/* Поля формы — линия снизу, без скруглений */
#contactForm .form-group input,
#contactForm .form-group textarea { border-radius: 0; }

@media (max-width: 768px) {
    /* Окно-шторка на телефоне: скруглён только верх */
    .contact-modal-content { border-radius: var(--r-block) var(--r-block) 0 0; }
}


/* [Б] Альбомы без нумерации 01–03 (убрана по просьбе) */
.album-head { grid-template-columns: minmax(0, 1fr) minmax(0, 400px) auto; }
@media (max-width: 768px) {
    .album-head { grid-template-columns: minmax(0, 1fr) auto; }
    .album-head h2 { grid-column: 1; grid-row: 1; }
    .album-count { grid-column: 2; grid-row: 1; }
    .album-head p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 400px) {
    .album-head { grid-template-columns: minmax(0, 1fr); }
    .album-count { grid-column: 1; grid-row: 2; }
    .album-head p { grid-row: 3; }
}

/* [С-12] Нижняя строка подвала (копирайт, ООО, политика) — по центру на всех экранах */
.footer-bottom,
.footer-bottom p { text-align: center; }


/* =====================================================================
   [С-06] ОСНОВНЫЕ НАПРАВЛЕНИЯ — 4 карточки (2×2) + фраза под ними
   ===================================================================== */
.dir-lead {
    max-width: 760px;
    margin: 22px 0 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--warm-mute);
}
.dir-lead strong { font-weight: 500; color: var(--ink); }

.dir-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 28px;
}
.dir-cards .adv-card { max-width: none; width: auto; }
.dir-cards .adv-imgwrapper { height: auto; aspect-ratio: 16 / 10; }
.dir-cards .adv-bgimg { height: 100%; }
.dir-cards .adv-img-title h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.dir-cards .adv-content { padding: 20px 2px 0; }
.dir-cards .adv-content p { font-size: 0.97rem; line-height: 1.7; margin: 0; max-width: 36em; }
.dir-cards .adv-content .adv-sub {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* «Не нашли свою задачу…» */
.dir-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px 48px;
    margin-top: 72px;
    padding-top: 44px;
    border-top: 1px solid var(--warm-line);
}
.dir-cta h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    line-height: 1.15;
    color: var(--ink);
    margin: 0;
}
.dir-cta p { margin: 0 0 22px; font-size: 1rem; line-height: 1.75; color: var(--warm-mute); max-width: 32em; }

@media (max-width: 768px) {
    .dir-lead { font-size: 0.95rem; margin-top: 14px; }
    .dir-cards { grid-template-columns: 1fr; gap: 36px; }
    .dir-cards .adv-imgwrapper { aspect-ratio: 4 / 3; }
    .dir-cards .adv-img-title h3 { font-size: clamp(1.35rem, 6vw, 1.8rem); }
    .dir-cards .adv-content { padding: 14px 2px 0; }
    .dir-cta { grid-template-columns: 1fr; margin-top: 48px; padding-top: 32px; gap: 14px; }
    .dir-cta .hero-btn { display: block; width: 100%; max-width: 420px; text-align: center; }
}

/* [Б] Старые адреса альбомов (album-business и др.) — невидимые якоря, чтобы старые ссылки не ломались */
.anchor-alias { display: block; height: 0; scroll-margin-top: 90px; }
/* [Б] Отступ при переходе к альбому по ссылке — чтобы заголовок не прятался под шапкой */
.lib-page .album, .anchor-alias { scroll-margin-top: 120px; }
@media (max-width: 768px) { .lib-page .album, .anchor-alias { scroll-margin-top: 84px; } }

/* [С-07] Как мы работаем: кадрирование первого фото (руки и ноутбук в круге) */
.work-step:first-child .work-step-img { background-position: 40% 82%; }
@media (max-width: 768px) {
    .work-steps-grid { gap: 0; }   /* шаги идут плотным списком без больших промежутков */
}

/* =====================================================================
   [С-07] КАК МЫ РАБОТАЕМ — фото прямоугольниками вместо кружков
   ===================================================================== */
.work-step-circle {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0 0 24px;
}
.work-step-img {
    border-radius: var(--r-block);
    box-shadow: none;
}
@media (max-width: 992px) {
    .work-step-circle { width: 100%; height: auto; }
}
@media (max-width: 768px) {
    /* На телефоне — небольшое фото слева от текста */
    .work-step { grid-template-columns: 112px 1fr; }
    .work-step-circle { width: 112px; height: 84px; aspect-ratio: auto; margin: 0; }
    .work-step-img { border-radius: 10px; }
}
@media (max-width: 400px) {
    .work-step { grid-template-columns: 92px 1fr; }
    .work-step-circle { width: 92px; height: 69px; }
}

/* [Б] Кадрирование отдельных фото в альбомах: какую часть снимка показывать в ячейке.
   Первое число — по горизонтали, второе — по вертикали (0% — верх, 100% — низ). */
.album-gallery img[src$="foradm3.jpg"] { object-position: 50% 8%; }   /* гербы в верхней части фото */

/* =====================================================================
   [С-09] ВИДЕО — 4 клипа в ряд, без стрелок и точек
   (старые стили .video-slider выше больше не используются)
   ===================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.video-grid-item iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 363 / 714;
    border: 0;
    border-radius: var(--r-block);
    background-color: var(--ink);
}
@media (max-width: 992px) {
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
}
@media (max-width: 600px) {
    /* Телефон: клипы листаются пальцем, следующий выглядывает сбоку */
    .video-grid {
        display: flex;
        gap: 12px;
        max-width: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--container-padding);
        margin: 0 calc(-1 * var(--container-padding));
        padding: 0 var(--container-padding);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .video-grid::-webkit-scrollbar { display: none; }
    .video-grid-item { flex: 0 0 78%; scroll-snap-align: start; }
}

/* =====================================================================
   [С-09] ЛЕНТА КЛИПОВ: 4 видно на компьютере, остальные пролистываются
   (перекрывает сетку из блока «4 клипа в ряд» выше)
   ===================================================================== */
.video-carousel { position: relative; }
.video-grid {
    display: flex;
    gap: 18px;
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.video-grid::-webkit-scrollbar { display: none; }
.video-grid-item {
    flex: 0 0 calc((100% - 3 * 18px) / 4);   /* 4 клипа в видимой части */
    scroll-snap-align: start;
}

/* Стрелки — круглые коричневые, как раньше, справа над лентой */
.video-arrows {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.video-arrow {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(90, 61, 48, 0.25);
    transition: background-color 0.25s ease, opacity 0.25s ease;
}
.video-arrow:hover:not(:disabled) { background: var(--primary-dark); }
.video-arrow:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
.video-carousel.no-scroll .video-arrows { display: none; }

@media (max-width: 992px) {
    .video-grid { max-width: none; }
    .video-grid-item { flex-basis: calc((100% - 18px) / 2); }   /* планшет: 2 клипа в видимой части */
}
@media (max-width: 600px) {
    .video-grid {
        gap: 12px;
        margin: 0 calc(-1 * var(--container-padding));
        padding: 0 var(--container-padding);
        scroll-padding: 0 var(--container-padding);
    }
    .video-grid-item { flex-basis: 78%; }   /* телефон: листается пальцем, следующий выглядывает */
    .video-arrows { display: none; }
}
/* [С-09] Стрелки ленты — слева под клипами, чтобы не пересекаться с плавающими кнопками справа */
.video-arrows { justify-content: flex-start; }

/* =====================================================================
   SEO: фото направлений и этапов теперь настоящие <img> (раньше были фоном),
   а карточки направлений — настоящие ссылки <a>. Внешний вид тот же.
   ===================================================================== */
a.adv-card { display: block; color: inherit; text-decoration: none; }
a.adv-card:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; }
img.adv-bgimg,
img.work-step-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}
.work-step:first-child img.work-step-img { object-position: 40% 82%; }   /* кадр первого фото — руки и ноутбук */
/* Фото заполняет свою рамку целиком (рамка задаёт размер и пропорции) */
.adv-imgwrapper, .work-step-circle { position: relative; }
img.adv-bgimg, img.work-step-img { position: absolute; inset: 0; }


/* =====================================================================
   [М] ПЛАШКА ПРО COOKIE (появляется, только когда в metrika.js вписан
   номер счётчика). Стоит внизу слева; на телефоне — во всю ширину,
   а плавающие кнопки на это время приподнимаются над ней.
   ===================================================================== */
.cookie-bar {
    position: fixed;
    left: var(--edge);
    bottom: 28px;
    z-index: 995;                       /* ниже меню, плавающих кнопок и окна заявки */
    width: min(560px, calc(100vw - var(--edge) * 2));
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 22px;
    background: var(--panel);
    color: #D9D2C8;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--r-block);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.cookie-bar.is-shown { opacity: 1; transform: none; }
.cookie-bar-text { margin: 0; font-size: 0.82rem; line-height: 1.55; }
.cookie-bar-text a { color: var(--milk); border-bottom: 1px solid rgba(245, 245, 240, 0.4); }
.cookie-bar-text a:hover { border-bottom-color: var(--milk); }
.cookie-bar-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.cookie-bar-ok {
    border: none;
    border-radius: var(--r-btn);
    background: var(--primary-color);
    color: var(--milk);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    padding: 13px 26px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.cookie-bar-ok:hover, .cookie-bar-ok:focus-visible { background: var(--primary-dark); }
.cookie-bar-no {
    border: none;
    background: none;
    color: #B9AEA3;
    font-family: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 2px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(185, 174, 163, 0.4);
}
.cookie-bar-no:hover, .cookie-bar-no:focus-visible { color: var(--milk); border-bottom-color: var(--milk); }

@media (max-width: 768px) {
    .cookie-bar {
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }
    .cookie-bar-text { font-size: 0.78rem; line-height: 1.5; }
    .cookie-bar-ok { padding: 11px 24px; }
    .cookie-bar-actions { flex-direction: row; justify-content: space-between; }
    /* плавающие кнопки поднимаются над плашкой (высоту плашки подставляет metrika.js) */
    body.cookie-open .floating-contact-btn,
    body.cookie-open .scroll-top-btn { translate: 0 calc(-1 * var(--cookie-h, 0px) - 8px); }
}
@media (prefers-reduced-motion: reduce) {
    .cookie-bar { transition: none; }
}


/* =====================================================================
   [С-13] ОКНО «СВЯЗАТЬСЯ С НАМИ» — временный вариант вместо формы заявки.
   Два блока: телефон и почта. Нажатие на номер открывает звонок,
   на адрес — письмо; рядом кнопки «Скопировать».
   Какой вид показан (контакты или форма) — решает слово hidden в HTML.
   ===================================================================== */
.modal-view[hidden] { display: none !important; }

.contact-card { padding: 20px 0 18px; border-top: 1px solid var(--warm-line); }
.contact-card-label {
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #A8825E;
    margin-bottom: 12px;
}
.contact-card-link {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: clamp(1.15rem, 4.9vw, 1.6rem);
    line-height: 1.2;
    color: var(--ink);
    overflow-wrap: anywhere;
    transition: color 0.25s ease;
}
.contact-card-link i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--milk);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease;
}
.contact-card-link:hover, .contact-card-link:focus-visible { color: var(--primary-color); }
.contact-card-link:hover i, .contact-card-link:focus-visible i { background: var(--primary-dark); }
.contact-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-left: 58px;              /* под текстом, а не под значком */
}
.contact-card-note { font-size: 0.82rem; color: var(--warm-mute); white-space: nowrap; }
.contact-copy {
    border: 1px solid var(--warm-gray);
    border-radius: var(--r-btn);
    background: transparent;
    font-family: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--warm-mute);
    padding: 8px 16px;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.contact-copy:hover, .contact-copy:focus-visible { border-color: var(--primary-color); color: var(--primary-color); }
.contact-copy.is-done { border-color: #5E7D55; color: #5E7D55; }
.contact-address {                   /* адрес — ссылка на Яндекс Карты */
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--warm-line);
    font-size: 0.85rem;
    color: var(--warm-mute);
    transition: color 0.25s ease;
}
.contact-address i { color: #A8825E; flex-shrink: 0; }
.contact-address-hint {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    border-bottom: 1px solid var(--warm-gray);
    padding-bottom: 2px;
    white-space: nowrap;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.contact-address:hover, .contact-address:focus-visible { color: var(--ink); }
.contact-address:hover .contact-address-hint,
.contact-address:focus-visible .contact-address-hint { color: var(--primary-color); border-bottom-color: var(--primary-color); }
@media (max-width: 380px) {
    .contact-address { flex-wrap: wrap; }
    .contact-address-hint { margin-left: 24px; }
}
@media (max-width: 480px) {
    .contact-card-foot { padding-left: 0; }
    .contact-card-link { gap: 12px; }
    .contact-card-link i { width: 38px; height: 38px; }
}
@media (max-width: 360px) {
    .contact-card-link { font-size: 1rem; }      /* чтобы адрес почты помещался в одну строку */
}


/* =====================================================================
   [Н] СТРАНИЦЫ НАПРАВЛЕНИЙ — четыре отдельные страницы:
       ofisnaya-mebel-na-zakaz.html, mebel-dlya-obshchestvennyh-obektov.html,
       mebel-dlya-doma-na-zakaz.html, nestandartnye-konstrukcii.html
   Первый экран, строка материалов, альбом с фото и карточки направлений
   берут стили главной и библиотеки. Здесь — только то, чего там нет:
   «хлебные крошки», вводный текст, список изделий, блок «Что учитываем».
   ===================================================================== */
.dir-body { padding-top: 34px; padding-bottom: 20px; }

/* «Хлебные крошки» */
.dir-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 84px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--warm-mute);
}
.dir-crumbs a { color: inherit; border-bottom: 1px solid transparent; transition: color 0.3s ease, border-color 0.3s ease; }
.dir-crumbs a:hover, .dir-crumbs a:focus-visible { color: var(--ink); border-bottom-color: var(--warm-gray); }
.dir-crumbs [aria-current] { color: var(--ink); }

/* Заголовки блоков страницы — как в альбомах библиотеки */
.dir-page h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0;
}

/* О направлении: заголовок слева, текст справа */
.dir-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 72px;
    align-items: start;
    margin-bottom: 120px;
}
.dir-intro-text p { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.8; color: #3E3833; }
.dir-intro-text p:last-child { margin-bottom: 0; }

/* Что изготавливаем: шесть пунктов в три колонки, разделены тонкими линиями */
.dir-what { margin-bottom: 120px; }
.dir-what-grid {
    list-style: none;
    margin: 44px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 40px;
    border-top: 1px solid var(--warm-line);
}
.dir-what-grid li { padding: 28px 0 30px; border-bottom: 1px solid var(--warm-line); }
.dir-what-grid h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 10px;
}
.dir-what-grid p { margin: 0; font-size: 0.95rem; line-height: 1.7; color: var(--warm-mute); }
/* «Что учитываем в проекте» в виде «Что изготавливаем» (страница офисов): четыре пункта в ряд */
.dir-care-flat .dir-care-lead { margin-top: 18px; }
.dir-care-flat .dir-what-grid { margin-top: 36px; }
@media (min-width: 1101px) { .dir-what-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 769px) and (max-width: 1100px) { .dir-what-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Ссылка внутри описания альбома («Альбом в библиотеке →», «Подробнее о направлении →») */
.album-head p a {
    color: var(--primary-color);
    border-bottom: 1px solid rgba(90, 61, 48, 0.3);
    white-space: nowrap;
    transition: border-color 0.3s ease;
}
.album-head p a:hover, .album-head p a:focus-visible { border-bottom-color: var(--primary-color); }

/* Что учитываем: одна скруглённая плашка — фото слева, текст и четыре пункта справа.
   Фото и тексты у каждой страницы свои; меняются в самой странице, в блоке class="dir-care". */
.dir-care {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    background-color: #fff;
    border-radius: var(--r-block);
    overflow: hidden;
    margin-bottom: 110px;
}
.dir-care-photo { position: relative; margin: 0; min-height: 560px; }
.dir-care-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.dir-care-body { padding: 64px 64px 52px; }
.dir-page .dir-care h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1.14; }
.dir-care-lead { margin: 18px 0 0; max-width: 34em; font-size: 1.02rem; line-height: 1.8; color: #3E3833; }
.dir-care-list { list-style: none; margin: 38px 0 0; padding: 0; border-top: 1px solid var(--warm-line); }
.dir-care-list li {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    gap: 6px 28px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--warm-line);
}
.dir-care-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.dir-care-list h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.25;
    color: var(--ink);
    margin: 0;
}
.dir-care-list p { margin: 0; font-size: 0.95rem; line-height: 1.7; color: var(--warm-mute); }

/* Другие направления: три карточки в ряд */
.dir-other { padding-top: 0; }
.dir-other .dir-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dir-other .dir-cards .adv-img-title h3 { font-size: clamp(1.25rem, 1.9vw, 1.7rem); }
.dir-other .dir-cards .adv-img-title { left: 26px; right: 26px; bottom: 24px; }

@media (max-width: 1100px) {
    .dir-care-body { padding: 48px 40px 40px; }
    .dir-care-list li { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .dir-what-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dir-other .dir-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .dir-body { padding-top: 22px; }
    .dir-crumbs { margin-bottom: 48px; }
    .dir-intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 72px; }
    .dir-intro-text p { font-size: 0.97rem; }
    .dir-what, .dir-care { margin-bottom: 72px; }
    .dir-what-grid { grid-template-columns: 1fr; margin-top: 28px; }
    .dir-what-grid li { padding: 20px 0 22px; }
    .dir-care { grid-template-columns: 1fr; }
    .dir-care-photo { min-height: 0; aspect-ratio: 4 / 3; }
    .dir-care-body { padding: 30px 22px 28px; }
    .dir-care-lead { font-size: 0.97rem; }
    .dir-care-list { margin-top: 26px; }
    .dir-care-list li { padding: 16px 0; }
    .dir-other .dir-cards { grid-template-columns: 1fr; }
    /* На телефоне на первом экране остаётся одна кнопка «Связаться с нами»;
       ссылка «Смотреть проекты» скрыта — проекты идут сразу ниже по странице. */
    .dir-page .hero-btn-text { display: none; }
}


/* =====================================================================
   [С-13] КРЕСТИК ОКНА «СВЯЗАТЬСЯ С НАМИ» — ПЛАВАЮЩИЙ
   Когда окно выше экрана (телефон, особенно в горизонтальном положении),
   его содержимое прокручивается. Крестик при этом остаётся в правом
   верхнем углу окна, а не уезжает вверх вместе с текстом.
   Как устроено: верхнее поле окна убрано, вместо него отступ даёт сам
   крестик (12px сверху + 44px высота + отрицательный отступ снизу), поэтому
   текст начинается там же, где раньше: 52px на компьютере, 44px на телефоне.
   ===================================================================== */
.contact-modal-content { padding-top: 0; }
.close-modal {
    position: -webkit-sticky;
    position: sticky;
    top: 12px;
    right: auto;
    z-index: 5;
    margin: 12px -36px -4px auto;
    background-color: var(--milk);
    box-shadow: 0 1px 8px rgba(27, 27, 25, 0.16);
}
.close-modal:hover,
.close-modal:focus-visible { background-color: #ECEAE2; }

@media (max-width: 768px) {
    .close-modal { margin: 12px calc(12px - var(--container-padding)) -12px auto; }
}


/* =====================================================================
   [С-01] МЕНЮ: ВЫПАДАЮЩИЙ СПИСОК «НАПРАВЛЕНИЯ»
   У пункта «Направления» (li.nav-has-sub) есть вложенный список .nav-sub
   с четырьмя страницами направлений.
   Компьютер: список появляется под пунктом при наведении мыши или по
   нажатию на стрелку рядом (стрелка нужна для планшетов и клавиатуры).
   Телефон: в меню-«бургере» список сразу раскрыт под пунктом «Направления».
   ===================================================================== */
.nav-has-sub { position: relative; display: flex; align-items: center; gap: 2px; }

/* Стрелка рядом с пунктом */
.nav-sub-toggle {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.nav-sub-toggle::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    margin: -5px 0 0 -3px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.85);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.85);
    transform: rotate(45deg);
    transition: transform 0.25s ease, margin 0.25s ease;
}
.nav-has-sub.is-open .nav-sub-toggle::before { transform: rotate(-135deg); margin-top: -1px; }
.nav-sub-toggle:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; border-radius: 6px; }

/* Сам список (перебивает общее правило для списков меню) */
.video-nav .main-nav ul.nav-sub {
    position: absolute;
    top: calc(100% + 12px);
    left: -18px;
    z-index: 5;
    display: block;
    width: 300px;          /* длинное название переносится на вторую строку */
    margin: 0;
    padding: 8px;
    list-style: none;
    background-color: rgba(27, 27, 25, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-block);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
/* невидимая «перемычка», чтобы список не закрывался, пока мышь идёт от пункта к списку */
.video-nav .main-nav ul.nav-sub::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}
.nav-has-sub.is-open > .nav-sub,
.video-nav .main-nav .nav-has-sub.is-open > ul.nav-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
@media (hover: hover) and (min-width: 769px) {
    .video-nav .main-nav .nav-has-sub:hover > ul.nav-sub {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }
    .nav-has-sub:hover .nav-sub-toggle::before { transform: rotate(-135deg); margin-top: -1px; }
}
.nav-sub-link {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.35;
    white-space: normal;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.25s ease, background-color 0.25s ease;
}
.nav-sub-link:hover,
.nav-sub-link:focus-visible { color: #fff; background-color: rgba(255, 255, 255, 0.07); }
.nav-sub-link[aria-current="page"] { color: #fff; background-color: rgba(255, 255, 255, 0.05); }

@media (max-width: 768px) {
    /* Телефон: меню выглядит как раньше, у «Направлений» справа круглая кнопка со стрелкой.
       По нажатию на неё под пунктом раскрывается плашка с четырьмя страницами.
       На невысоких экранах меню прокручивается; пока места хватает, пункты стоят по центру. */
    .video-nav .main-nav { overflow-y: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
    .video-nav .main-nav > #navMenu { margin-top: auto; margin-bottom: auto; }

    /* Строка «Направления»: три колонки — пустая, слово, кнопка. Боковые колонки равны,
       поэтому слово всегда по центру, а кнопка не переносится на новую строку,
       даже когда пункт выделен жирным (активный раздел). */
    .nav-has-sub { display: grid; grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr); align-items: center; gap: 0; }
    .video-nav .main-nav .nav-has-sub > .nav-link { grid-column: 2; width: auto; }
    .video-nav .main-nav .nav-has-sub > ul.nav-sub { grid-column: 1 / -1; }
    .nav-sub-toggle {
        grid-column: 3;
        justify-self: start;
        width: 36px;
        height: 36px;
        margin-left: 8px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 50%;
        transition: background-color 0.25s ease, border-color 0.25s ease;
    }
    .nav-sub-toggle::before { width: 7px; height: 7px; margin: -6px 0 0 -4px; }
    .nav-has-sub.is-open .nav-sub-toggle { background-color: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); }
    .nav-has-sub.is-open .nav-sub-toggle::before { margin-top: -2px; }

    .video-nav .main-nav ul.nav-sub {
        position: static;
        display: block;
        width: auto;
        min-width: 0;
        max-height: 0;
        margin: 0;
        padding: 0 6px;
        overflow: hidden;
        background-color: rgba(255, 255, 255, 0.06);
        border: 0 solid rgba(255, 255, 255, 0.1);
        border-radius: var(--r-block);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease, padding 0.35s ease, visibility 0s linear 0.35s;
    }
    .video-nav .main-nav .nav-has-sub.is-open > ul.nav-sub {
        max-height: 320px;
        margin: 8px 0 12px;
        padding: 6px;
        border-width: 1px;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.35s ease, opacity 0.3s ease 0.05s, margin 0.35s ease, padding 0.35s ease;
    }
    .video-nav .main-nav ul.nav-sub::before { display: none; }
    .video-nav .main-nav ul.nav-sub > li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .nav-sub-link {
        padding: 14px 6px;
        border-radius: 10px;
        font-size: 14.5px;
        letter-spacing: 0.2px;
        line-height: 1.3;
        white-space: normal;
        color: rgba(255, 255, 255, 0.88);
    }
    .nav-sub-link:hover,
    .nav-sub-link:focus-visible { background: none; color: #fff; }
    .nav-sub-link[aria-current="page"] { background-color: rgba(255, 255, 255, 0.07); color: #fff; }

    /* Кнопка «Контакты» в меню на телефоне: текст мельче, по бокам поля —
       раньше надпись была крупной и упиралась в края кнопки. */
    .video-nav .main-nav .contact-btn {
        font-size: 14px !important;
        padding: 13px 30px;
        letter-spacing: 0.1em;
    }
}


/* =====================================================================
   [С-03] СТРОКА МАТЕРИАЛОВ НА ТЕЛЕФОНЕ
   На узком экране список не помещается в одну линию. Чтобы слова не
   переносились как попало, а точки-разделители не повисали на концах
   строк, переносы заданы явно: нужная точка превращается в перенос.
   На компьютере и там, где список помещается в одну линию, ничего не меняется.
   ===================================================================== */
@media (max-width: 716px) {
    .materials-strip { gap: 9px 14px; padding: 24px 16px; font-size: 0.62rem; letter-spacing: 0.22em; line-height: 1.3; }
}
/* Большие телефоны и телефон горизонтально: два ряда, 4 + 3 */
@media (min-width: 481px) and (max-width: 716px) {
    .materials-strip i:nth-of-type(4) { flex-basis: 100%; height: 0; overflow: hidden; }
}
/* Обычные телефоны: три ряда, 3 + 3 + 1 */
@media (max-width: 480px) {
    .materials-strip i:nth-of-type(3),
    .materials-strip i:nth-of-type(6) { flex-basis: 100%; height: 0; overflow: hidden; }
}


/* =====================================================================
   СКЛАДНЫЕ ТЕЛЕФОНЫ И НЕБОЛЬШИЕ ПЛАНШЕТЫ
   (Galaxy Z Fold: наружный экран ~344px, раскрытый ~690px, раскрытый
   горизонтально ~830px; первый Galaxy Fold — 280px)
   ===================================================================== */
/* [С-01] 769–900px (раскрытый Fold горизонтально, небольшой планшет): шапка компактнее —
   иначе меню упирается в надпись «МЕБЕЛЬНАЯ ФАБРИКА», а кнопка «Контакты» выходит за край экрана. */
@media (min-width: 769px) and (max-width: 900px) {
    :root { --edge: 20px; --logo-h: 44px; --brand-gap: 10px; }
    .video-nav-logo-img { height: 44px; }
    .video-nav.is-scrolled .video-nav-logo-img { height: 42px; }
    .video-nav-brand { font-size: 13px; letter-spacing: 0.08em; }
    .video-nav .main-nav ul { gap: 13px; }
    .video-nav .main-nav .nav-link { font-size: 12.5px !important; letter-spacing: 0.2px; }
    .video-nav .main-nav .contact-btn { padding: 9px 14px; }
    .nav-sub-toggle { width: 20px; }
}
/* [С-12] Подвал на очень узком экране (280px): колонка не шире экрана, страница не сдвигается вбок */
.footer-content { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
/* [С-02] Заголовок первого экрана на экране уже 300px */
@media (max-width: 300px) {
    .hero-content h1 { font-size: 2rem; }
}

/* ========== [С-05] ШАПКА: КНОПКА «КОНТАКТЫ» НА ОДНОЙ ЛИНИИ С ПУНКТАМИ МЕНЮ ==========
   Кнопка стояла на 3,5px выше текста соседних пунктов: под строчной ссылкой браузер
   оставляет место «под хвосты букв», и у кнопки оно получалось больше, чем у обычных
   пунктов. Делаем все пункты верхнего меню блоками — зазор исчезает, текст встаёт
   на одну линию. Только для широкого экрана; мобильное меню (до 768px) не меняется. */
@media (min-width: 769px) {
    .video-nav .main-nav #navMenu > li > .nav-link { display: block; }
}

/* ========== [С-16] ОБСУДИМ ЗАДАЧУ: ТЕКСТ И СПИСОК «К ПЕРВОМУ РАЗГОВОРУ» ==========
   Цвета блока прежние. Слева — заголовок, пояснение и кнопка, справа — что пригодится
   к разговору. На телефоне и планшете список уходит под кнопку. */
.cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: clamp(48px, 8vw, 128px);
    align-items: end;
}
.cta-band h2 { margin-bottom: 28px; }
.cta-lead {
    margin: 0 0 44px; max-width: 31em;
    font-size: 1.05rem; line-height: 1.75; color: #C9BEB2;
}
.cta-aside { padding-left: 40px; border-left: 1px solid rgba(245, 245, 240, 0.14); }
.cta-aside-title {
    display: block; margin-bottom: 18px;
    font-size: 0.68rem; letter-spacing: 0.26em; color: rgba(245, 245, 240, 0.5);
}
.cta-list { list-style: none; margin: 0; padding: 0; }
.cta-list li {
    padding: 15px 0; border-top: 1px solid rgba(245, 245, 240, 0.12);
    font-size: 1.02rem; line-height: 1.45; color: var(--milk);
}
.cta-list li:last-child { border-bottom: 1px solid rgba(245, 245, 240, 0.12); }
.cta-note { margin: 18px 0 0; font-size: 0.9rem; line-height: 1.6; color: #C9BEB2; }
@media (max-width: 900px) {
    .cta-inner { grid-template-columns: 1fr; }
    .cta-aside { margin-top: 56px; padding-left: 0; border-left: none; }
}
@media (max-width: 768px) {
    .cta-band h2 { margin-bottom: 22px; }
    .cta-lead { margin-bottom: 34px; font-size: 1rem; }
    .cta-aside { margin-top: 48px; }
}

/* ========== [С-17] ТИПОГРАФИКА: РОВНЫЕ СТРОКИ ==========
   Описание фабрики в подвале — без принудительных переносов. Ширина подобрана так, чтобы
   строки шли по смыслу: «Изготовление индивидуальных проектов / из дерева на заказ…».
   Во всех абзацах и списках браузер старается не оставлять одно слово на последней строке
   (короткие предлоги и союзы уже привязаны к следующему слову неразрывным пробелом &nbsp;
   прямо в тексте страниц). */
.footer-about p.footer-desc { max-width: 345px; text-wrap: wrap; }
p, li, h2, h3 { text-wrap: pretty; }
h1 { text-wrap: balance; }

/* ========== [С-18] УЗКИЕ ЭКРАНЫ: ЧТОБЫ НИЧЕГО НЕ ВЫЛЕЗАЛО ==========
   1) Длинный заголовок страницы административных объектов: «для административных» идёт
      одной строкой (без висящего «для»), шрифт подстраивается под ширину экрана так, чтобы
      строки шли по смыслу: на компьютере «Мебель / для административных зданий /
      и муниципальных объектов.», на телефоне — в четыре строки.
   3) Подзаголовки «Что мы изготавливаем…» на экранах до 300px — чуть мельче.
   4) Библиотека: на телефонах до 560px название альбома и «6 фото · листайте» — друг под другом,
      на планшетах 769–1000px описание альбома уходит под название (иначе длинное название не помещалось).
   5) Мобильное меню на экранах до 330px: «Направления» не наезжает на круглую кнопку.
   6) Подписи цифр на главной («реализованных проектов») на экранах до 300px — плотнее. */
.hero-content h1.h1-long { font-size: min(clamp(2.2rem, 5.6vw, 5rem), calc(min(760px, 48.5vw) / 14.7)); }
@media (max-width: 1100px) {
    .hero-content h1.h1-long { font-size: min(clamp(2.2rem, 5.6vw, 5rem), calc(min(760px, 48.5vw) / 12.4)); }
}
@media (max-width: 992px) {
    .hero-content h1.h1-long { font-size: min(clamp(2.2rem, 5.6vw, 5rem), calc((100vw - 190px) / 12.4)); }
}
@media (max-width: 768px) {
    .hero-content h1.h1-long { font-size: min(clamp(2.3rem, 10.4vw, 3.6rem), calc((100vw - 32px) / 12.4)); }
}
@media (max-width: 300px) {
    .hero-content h1.h1-long { font-size: calc((100vw - 32px) / 12.4); }
    .dir-what h2 { font-size: 1.6rem; }
    .fact-label { letter-spacing: 0.1em; }
}
@media (min-width: 769px) and (max-width: 1000px) {
    .album-head { grid-template-columns: minmax(0, 1fr) auto; }
    .album-head h2 { grid-column: 1; grid-row: 1; }
    .album-count { grid-column: 2; grid-row: 1; }
    .album-head p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
    .album-head { grid-template-columns: minmax(0, 1fr); }
    .album-count { grid-column: 1; grid-row: 2; }
    .album-head p { grid-row: 3; }
}
@media (max-width: 330px) {
    .video-nav .main-nav .nav-link { font-size: 15px !important; }
    .video-nav .main-nav .nav-has-sub { grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr); }
    .video-nav .main-nav .nav-sub-toggle { width: 30px; height: 30px; margin-left: 4px; }
}


/* =====================================================================
   [Н-2] НАШИ ПРОЕКТЫ НА СТРАНИЦАХ НАПРАВЛЕНИЙ — КАЖДЫЙ ОБЪЕКТ ОТДЕЛЬНО
   Карточка объекта: большое фото, до четырёх маленьких, место, название, текст.
   Каждая карточка во всю ширину; фото слева и справа по очереди (14.10.2026).
   ===================================================================== */
.proj { margin-bottom: 120px; scroll-margin-top: 80px; }
.proj-head { max-width: 760px; }
.proj-head p { margin: 18px 0 0; font-size: 1.02rem; line-height: 1.8; color: #3E3833; }
.proj-head p a {
    color: var(--primary-color);
    border-bottom: 1px solid rgba(90, 61, 48, 0.3);
    white-space: nowrap;
    transition: border-color 0.3s ease;
}
.proj-head p a:hover, .proj-head p a:focus-visible { border-bottom-color: var(--primary-color); }

.proj-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 44px;
}
.proj-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: var(--r-block);
    overflow: hidden;
}

/* Фото: первое большое, ниже ряд из четырёх маленьких */
.proj-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}
.proj-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
    cursor: zoom-in;
    transition: filter 0.3s ease;
}
.proj-gallery img:hover, .proj-gallery img:focus-visible { filter: brightness(0.88); }
.proj-gallery img:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; }
.proj-gallery .proj-cover { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.proj-gallery .is-extra { display: none; }
.proj-gallery img:nth-child(5) { grid-row: 2; grid-column: 4; }
.proj-more-count {
    grid-row: 2;
    grid-column: 4;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 27, 25, 0.55);
    color: var(--milk);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.proj-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 30px 30px;
}
.proj-place {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--warm-mute);
}
.proj-place i { color: var(--primary-color); font-size: 0.85rem; }
.proj-body h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.35rem, 1.9vw, 1.7rem);
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 12px;
}
.proj-text { margin: 0 0 22px; max-width: 34em; font-size: 0.95rem; line-height: 1.7; color: var(--warm-mute); }
.proj-open {
    margin-top: auto;
    padding: 0 0 4px;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(90, 61, 48, 0.35);
    border-radius: 0;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-color);
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.proj-open:hover, .proj-open:focus-visible { border-bottom-color: var(--primary-color); }

/* Данные ещё не заполнены — жёлтая пометка (уберите class="is-todo", когда впишете) */
.is-todo { background: #FFF1B8; color: #7A5B00; padding: 1px 7px; border-radius: 4px; letter-spacing: 0.08em; }

/* Каждый объект — во всю ширину: фото с одной стороны, текст с другой; стороны чередуются */
.proj-list { grid-template-columns: minmax(0, 1fr); }
.proj-card {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.proj-card:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.proj-card:nth-child(even) .proj-gallery { order: 2; }
.proj-card .proj-body { justify-content: center; padding: 44px 48px; }
.proj-card .proj-open { margin-top: 6px; }
/* Карточки шире контейнера: от края логотипа слева до такого же отступа справа (14.10.2026).
   --vw — ширина окна без полосы прокрутки, её ставит script.js ([Н-2]); --edge — отступ логотипа. */
@media (min-width: 901px) {
    .proj-list {
        margin-left: calc(var(--edge) - (var(--vw, 100vw) - 100%) / 2);
        margin-right: calc(var(--edge) - (var(--vw, 100vw) - 100%) / 2);
    }
    .proj-card .proj-body { padding: clamp(44px, 4.4vw, 88px) clamp(44px, 4.6vw, 96px); }
    .proj-card .proj-body h3 { font-size: clamp(1.6rem, 2.1vw, 2.3rem); }
    .proj-card .proj-text { font-size: clamp(0.95rem, 0.95vw, 1.08rem); }
}

/* Пример (14.10.2026, только страница офисов — секция #projects с классом proj--tint):
   карточки на общем фоне сайта (без белой подложки), фото со скруглёнными углами,
   весь текст карточек крупнее на 4px (≈ 3 пункта в Word), на телефоне — на 2px. */
.proj--tint .proj-card { background-color: transparent; overflow: visible; }
.proj--tint .proj-gallery .proj-cover { border-radius: var(--r-block); }
.proj--tint .proj-text { color: #5E534B; font-size: calc(0.95rem + 2px); }
.proj--tint .proj-place { font-size: calc(0.7rem + 2px); }
.proj--tint .proj-open { font-size: calc(0.72rem + 2px); }
.proj--tint .proj-body h3 { font-size: calc(clamp(1.35rem, 1.9vw, 1.7rem) + 2px); }
@media (min-width: 901px) {
    .proj--tint .proj-list { gap: 44px; }
    .proj--tint .proj-card .proj-body h3 { font-size: calc(clamp(1.6rem, 2.1vw, 2.3rem) + 4px); }
    .proj--tint .proj-card .proj-text { font-size: calc(clamp(0.95rem, 0.95vw, 1.08rem) + 4px); max-width: 32em; }
    .proj--tint .proj-place { font-size: calc(0.7rem + 4px); }
    .proj--tint .proj-open { font-size: calc(0.72rem + 4px); }
    .proj--tint .proj-card:nth-child(odd) .proj-body { padding-right: 0; }
    .proj--tint .proj-card:nth-child(even) .proj-body { padding-left: 0; }
}
@media (max-width: 900px) {
    .proj--tint .proj-list { gap: 40px; }
    .proj--tint .proj-card .proj-body { padding: 22px 0 4px; }
}

/* В карточке видно одно главное фото; остальные — только в просмотре (кнопка «Смотреть фото») */
.proj-card .proj-gallery { display: block; }
.proj-card .proj-gallery img:not(.proj-cover),
.proj-card .proj-more-count { display: none; }
.proj-card .proj-gallery .proj-cover { height: auto; aspect-ratio: 3 / 2; cursor: default; }
@media (min-width: 901px) {
    .proj-card .proj-gallery { min-height: 100%; }
    .proj-card .proj-gallery .proj-cover { height: 100%; min-height: 100%; }
}
.proj-card .proj-gallery .proj-cover:hover { filter: none; }

@media (max-width: 900px) {
    .proj-list { gap: 22px; }
    .proj-card, .proj-card:nth-child(even) { display: flex; flex-direction: column; }
    .proj-card:nth-child(even) .proj-gallery { order: 0; }
    .proj-card .proj-body { padding: 26px 30px 30px; }
    .proj-card .proj-open { margin-top: auto; }
}
@media (max-width: 768px) {
    .proj { margin-bottom: 72px; }
    .proj-head p { font-size: 0.97rem; }
    .proj-list { margin-top: 28px; gap: 18px; }
    .proj-body { padding: 20px 20px 24px; }
    .proj-card .proj-body { padding: 20px 20px 24px; }
    .proj-gallery { gap: 3px; }
    .proj-more-count { font-size: 1rem; }
}


/* =====================================================================
   [Б-2] БИБЛИОТЕКА: ВСЕ ФОТО ПРОЕКТОВ СРАЗУ ПОД ПЕРВЫМ ЭКРАНОМ
   Альбомов и баннера «Другие проекты» больше нет; галерея открыта без кнопки.
   Сама сетка и просмотр фото — прежние (#otherGalleryGrid, раздел [Б]).
   ===================================================================== */
.lib-gallery { padding: 110px 0 120px; background-color: var(--bg-body); }
.lib-gallery .section-header { margin-bottom: 40px; }
.lib-gallery .other-gallery-wrap { background: transparent; padding: 0; }
.lib-gallery #otherGalleryGrid { gap: 12px; margin-bottom: 0; }
.lib-gallery #otherGalleryGrid .gallery-item { border-radius: 10px; background: var(--warm-line); box-shadow: none; }
@media (max-width: 768px) {
    .lib-gallery { padding: 64px 0 72px; }
    .lib-gallery .section-header { margin-bottom: 28px; }
    .lib-gallery #otherGalleryGrid { gap: 7px; }
    .lib-gallery #otherGalleryGrid .gallery-item { border-radius: 8px; }
}


/* =====================================================================
   [ДП] ДЕМО «ДО / ПОСЛЕ» — главная, сразу под строкой материалов
   Одно фото во всю ширину: слева исходное, справа то же фото ярче и сочнее.
   Граница — переменная --pos (её двигает скрипт [ДП] в script.js).
   ===================================================================== */
.ba-demo { background: var(--ink); }
.ba {
    --pos: 50%;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    max-height: 88vh;
    min-height: 420px;
    overflow: hidden;
    background: var(--ink);
    cursor: ew-resize;
    touch-action: pan-y;            /* на телефоне страница листается вверх-вниз, вбок — двигаем границу */
    user-select: none;
    -webkit-user-select: none;
}
.ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 50%;
    pointer-events: none;
    -webkit-user-drag: none;
}
.ba-after {
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 var(--pos));
}
.ba-label {
    position: absolute;
    top: 28px;
    z-index: 2;
    padding: 9px 16px 8px;
    border-radius: var(--r-btn);
    background: rgba(20, 17, 15, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    line-height: 1;
    pointer-events: none;
}
.ba-label-before { left: var(--edge); }
.ba-label-after  { right: var(--edge); }
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    z-index: 3;
    width: 2px;
    margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 18px rgba(0, 0, 0, 0.35);
    outline: none;
}
.ba-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}
.ba:hover .ba-knob,
.ba.is-drag .ba-knob { transform: scale(1.08); }
.ba-handle:focus-visible .ba-knob { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px #fff; }

@media (max-width: 768px) {
    .ba { aspect-ratio: 4 / 5; min-height: 0; max-height: 82vh; }
    .ba-img { object-position: 64% 50%; }
    .ba-label { top: 16px; padding: 8px 12px 7px; font-size: 0.6rem; letter-spacing: 0.2em; }
    .ba-knob { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
}


/* =====================================================================
   [С-07-Н] КАК МЫ РАБОТАЕМ — НОВЫЙ ВИД (14.10.2026)
   Этап = подпись слева (узкая колонка), фото со скошенными
   углами, рядом линейный рисунок с анимацией, заголовок с квадратиком и одна фраза.
   Этапы связаны изогнутой линией (.hw-route): при прокрутке по ней едет «бегунок»,
   рисунок этапа прорисовывается, когда бегунок к нему подходит, и потом «оживает».
   При прокрутке назад всё идёт в обратном порядке. В конце — фото готового проекта
   на всю ширину (.hw-final), оно раскрывается кругом из точки, куда приходит линия.
   Расчёт линии и бегунка — script.js, раздел [С-07-Н]. Без скрипта всё видно сразу.
   ===================================================================== */
.hw-steps {
    --gut: clamp(150px, 15vw, 300px);       /* ширина колонки с подписью */
    --c: clamp(28px, 4.6vw, 84px);          /* размер скоса угла у фото */
    --hw-accent: var(--primary-color);      /* квадратик у заголовка, черта под подписью, бегунок */
    --ink-line: #141210;                    /* цвет линий рисунков */
    position: relative;
    max-width: 1920px;
    margin: clamp(8px, 2vw, 32px) auto 0;
    overflow-x: hidden;
    overflow-x: clip;
}

.hw-step {
    display: grid;
    grid-template-columns: var(--gut) minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    padding: clamp(44px, 5vw, 84px) 0;
}
.hw-step.hw-r {
    grid-template-columns: var(--gut) minmax(0, 0.82fr) minmax(0, 1.3fr);
    grid-template-rows: 1fr auto auto 1fr;
}
.hw-steps .hw-text { display: contents; }

/* подпись этапа в левой колонке */
.hw-steps .hw-label {
    margin: 0;
    padding: 0 clamp(20px, 2.6vw, 48px) 0 var(--edge);
    text-align: right;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #000;
}
.hw-steps .hw-label span {
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--hw-accent);
}

/* заголовок этапа с квадратиком и фраза */
.hw-steps .hw-title {
    margin: 0 0 18px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: clamp(1.7rem, 2.5vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -0.005em;
    color: #000;
    text-align: left;
}
.hw-steps .hw-title::before {
    content: '';
    display: inline-block;
    width: 0.3em;
    height: 0.3em;
    margin-right: 0.36em;
    vertical-align: 0.17em;
    background: var(--hw-accent);
}
.hw-steps .hw-text p {
    margin: 0;
    max-width: 30em;
    font-size: 1.04rem;
    line-height: 1.7;
    color: #2A2522;
    text-align: left;
}

/* фото слева: подпись над фото, фото от края экрана, текст справа сверху */
.hw-l .hw-label { grid-column: 1; grid-row: 1; padding-bottom: 26px; }
.hw-l .hw-media { grid-column: 1 / 3; grid-row: 2 / 5; justify-self: start; }
.hw-l .hw-title,
.hw-l .hw-text p { grid-column: 3; padding: 0 var(--edge) 0 clamp(32px, 5vw, 96px); }
.hw-l .hw-title { grid-row: 2; }
.hw-l .hw-text p { grid-row: 3; }

/* фото справа: подпись на уровне заголовка, текст по центру высоты фото */
.hw-r .hw-label { grid-column: 1; grid-row: 2; align-self: baseline; }
.hw-r .hw-media { grid-column: 3; grid-row: 1 / 5; justify-self: end; }
.hw-r .hw-title,
.hw-r .hw-text p { grid-column: 2; padding: 0 clamp(24px, 3vw, 56px) 0 clamp(28px, 3.4vw, 64px); }
.hw-r .hw-title { grid-row: 2; align-self: baseline; }
.hw-r .hw-text p { grid-row: 3; }

/* рамка этапа: фото (54%) + поле с рисунком (46%) */
.hw-media {
    position: relative;
    width: 100%;
    max-width: 980px;                       /* на очень широких экранах не растёт бесконечно */
    aspect-ratio: 1000 / 640;
    align-self: start;
}
.hw-ph {
    --tl: 0px; --tr: 0px; --br: 0px; --bl: 0px;
    position: absolute;
    left: var(--l, 0%);
    top: var(--t, 0%);
    width: var(--w, 100%);
    height: var(--h, 100%);
    background: var(--warm-line);
    clip-path: polygon(var(--tl) 0, calc(100% - var(--tr)) 0, 100% var(--tr), 100% calc(100% - var(--br)),
                       calc(100% - var(--br)) 100%, var(--bl) 100%, 0 calc(100% - var(--bl)), 0 var(--tl));
}
.hw-ph.cut-tl { --tl: var(--c); }
.hw-ph.cut-tr { --tr: var(--c); }
.hw-ph.cut-br { --br: var(--c); }
.hw-ph.cut-bl { --bl: var(--c); }
.hw-ph img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hw-ill {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hw-l .hw-ill { left: 54%; right: 0; padding-left: 3%; }
.hw-r .hw-ill { left: 0; right: 54%; padding-right: 3%; }
.hw-ill .hw-art { width: 100%; max-width: 380px; height: auto; aspect-ratio: 1 / 1; }

/* ---- рисунки этапов ----
   Ход рисунка --t (0…1) ставит скрипт по прокрутке. У каждой детали своё окно --a…--b:
   её собственный ход --p = 0 до --a, растёт до 1 к --b. Поэтому рисунок собирается по порядку,
   а при прокрутке назад так же по порядку разбирается. Без скрипта --t = 1 — всё видно сразу. */
.hw-art { display: block; overflow: visible; fill: none; stroke: var(--ink-line, #141210); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hw-art * { --p: clamp(0, calc((var(--t, 1) - var(--a, 0)) / (var(--b, 1) - var(--a, 0))), 1); }
.hw-art .f { fill: var(--bg-body, #F5F5F0); fill-opacity: var(--p); }
.hw-art .fl { fill: var(--ink-line, #141210); stroke: none; opacity: var(--p); }
.hw-art .fo { fill: var(--bg-body, #F5F5F0); fill-opacity: var(--p); stroke: none; }   /* только заливка, без контура */
.hw-art .d { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); }
.hw-art [class*="a-"] { transform-box: fill-box; transform-origin: center; }

/* «живые» детали появляются, когда рисунок собран (класс is-live), и плавно гаснут при разборке */
.hw-art :is(.a-waves, .a-scr, .a-cursor, .a-grain, .a-dust, .a-road, .a-speed, .a-tape, .a-roll, .a-dots, .a-idea, .a-steam, .a-mouth) { transition: opacity 0.35s ease; }
.hw-flow .hw-ill:not(.is-live) .hw-art :is(.a-waves, .a-scr, .a-cursor, .a-grain, .a-dust, .a-road, .a-speed, .a-tape, .a-roll, .a-dots, .a-idea, .a-steam) { opacity: 0; }

/* 1. разговор: рот говорит, волны от трубки, в облачке то точки, то эскиз шкафа, над кофе пар */
.hw-art .fl0 { fill: var(--ink-line, #141210); stroke: none; }
.hw-art .a-mouth { opacity: 0; transform-box: fill-box; transform-origin: center top; }
.is-live .a-mouth { opacity: 1; animation: hwTalk 0.9s ease-in-out infinite; }
@keyframes hwTalk { 0%, 100% { transform: scaleY(0.25); } 25% { transform: scaleY(1); } 50% { transform: scaleY(0.4); } 70% { transform: scaleY(0.9); } }
.a-dots circle { fill: var(--ink-line, #141210); stroke: none; opacity: 0.25; }
.is-live .a-dots circle { animation: hwDots 6s ease-in-out infinite; }
.is-live .a-dots circle:nth-child(2) { animation-delay: 0.2s; }
.is-live .a-dots circle:nth-child(3) { animation-delay: 0.4s; }
@keyframes hwDots { 0%, 8%, 16%, 24%, 32%, 40% { opacity: 0.25; } 4%, 12%, 20%, 28%, 36% { opacity: 1; } 44%, 100% { opacity: 0; } }
.a-idea-l { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 1.8; }
.is-live .a-idea-l { animation: 6s ease-in-out infinite; }
.is-live .a-idea-l[style*="--n:0"] { animation-name: hwIdea0; }
.is-live .a-idea-l[style*="--n:1"] { animation-name: hwIdea1; }
.is-live .a-idea-l[style*="--n:2"] { animation-name: hwIdea2; }
@keyframes hwIdea0 { 0%, 48% { stroke-dashoffset: 1; opacity: 1; } 62%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hwIdea1 { 0%, 60% { stroke-dashoffset: 1; opacity: 1; } 70%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hwIdea2 { 0%, 68% { stroke-dashoffset: 1; opacity: 1; } 74%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.a-steam path { stroke-width: 1.6; opacity: 0; }
.is-live .a-steam path { animation: hwSteam 2.4s ease-in-out infinite; }
.is-live .a-steam path:nth-child(2) { animation-delay: 1.2s; }
@keyframes hwSteam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-10px); } }
/* волны от трубки */
.is-live .a-wave { animation: hwWave 1.8s ease-in-out infinite; animation-delay: calc(var(--n) * 0.22s); }
@keyframes hwWave { 0%, 100% { opacity: 0; } 35%, 65% { opacity: 1; } }

/* 2. экран: чертёж рисуется по линиям, потом гаснет — по кругу */
.a-scr-l { stroke-dasharray: 1; stroke-width: 1.8; }
.is-live .a-scr-l { animation: 6s ease-in-out infinite; }
.is-live .a-scr-l[style*="--n:0"] { animation-name: hwScr0; }
.is-live .a-scr-l[style*="--n:1"] { animation-name: hwScr1; }
.is-live .a-scr-l[style*="--n:2"] { animation-name: hwScr2; }
.is-live .a-scr-l[style*="--n:3"] { animation-name: hwScr3; }
.is-live .a-scr-l[style*="--n:4"] { animation-name: hwScr4; }
@keyframes hwScr0 { 0% { stroke-dashoffset: 1; opacity: 1; } 18%, 82% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hwScr1 { 0%, 18% { stroke-dashoffset: 1; opacity: 1; } 32%, 82% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hwScr2 { 0%, 32% { stroke-dashoffset: 1; opacity: 1; } 40%, 82% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hwScr3 { 0%, 40% { stroke-dashoffset: 1; opacity: 1; } 52%, 82% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hwScr4 { 0%, 52% { stroke-dashoffset: 1; opacity: 1; } 64%, 82% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.a-cursor { transform: translate(250px, 214px); }
.is-live .a-cursor { animation: hwCursor 6s ease-in-out infinite; }
@keyframes hwCursor {
    0% { transform: translate(150px, 96px); } 6% { transform: translate(250px, 96px); } 12% { transform: translate(250px, 214px); }
    18% { transform: translate(150px, 214px); } 25% { transform: translate(200px, 120px); } 32% { transform: translate(200px, 214px); }
    40% { transform: translate(210px, 176px); } 52% { transform: translate(128px, 214px); } 64% { transform: translate(250px, 226px); }
    82% { transform: translate(260px, 240px); } 100% { transform: translate(150px, 96px); } }

/* 3. рукопожатие */
.hw-art .a-shake { transform-box: view-box; transform-origin: 200px 220px; }
.hw-art-hands { stroke-width: 3.4; }
.is-live .a-shake { animation: hwShake 2.6s ease-in-out infinite; }
@keyframes hwShake { 0%, 52%, 100% { transform: none; } 10% { transform: translateY(-10px) rotate(-1.5deg); }
    22% { transform: translateY(8px) rotate(1deg); } 33% { transform: translateY(-6px); } 43% { transform: translateY(3px); } }

/* 4. пила: диск крутится, опилки летят, доска едет */
.is-live .a-blade { animation: hwSpin 0.55s linear infinite; }
@keyframes hwSpin { to { transform: rotate(360deg); } }
.a-grain path { stroke-width: 1.2; opacity: 0.55; }
.is-live .a-grain { animation: hwGrain 2.4s linear infinite; }
@keyframes hwGrain { to { transform: translateX(-100px); } }
.a-dust path { opacity: 0; stroke-width: 3; }
.is-live .a-dust path { animation: hwDust 0.9s ease-out infinite; animation-delay: calc(var(--n) * 0.15s); }
@keyframes hwDust { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }

/* 5. коробка — клапаны и лента анимированы внутри рисунка (SMIL), скрипт включает их, когда рисунок собран */
.a-tape { stroke-dasharray: 1; stroke-width: 7; stroke-linecap: butt; opacity: 0.85; }   /* скотч ровно от края до края шва */
/* рулон скотча (упаковка): едет по шву коробки и вращается, скотч ложится следом */
.hw-art .a-roll { transform-box: view-box; transform-origin: 0 0; }
.a-roll .roll-o { fill: var(--bg-body, #F5F5F0); stroke-width: 2.4; }
.a-roll .roll-i { fill: none; stroke-width: 2; }
.a-roll .roll-m { stroke-width: 2; }

/* 6. грузовик: въезжает по ходу прокрутки (колёса катятся), потом едет на месте */
.hw-art .a-truck { transform-box: view-box; transform-origin: 0 0; transform: translateX(calc((1 - var(--p)) * 420px)); }
.hw-art .a-wheel { transform: rotate(calc((1 - var(--p)) * 633deg)); }
.is-live .a-wheel { animation: hwWheel 0.8s linear infinite; }
@keyframes hwWheel { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.a-road { stroke-dasharray: 16 18; stroke-width: 1.6; }
.is-live .a-road { animation: hwRoad 0.5s linear infinite; }
@keyframes hwRoad { to { stroke-dashoffset: -34; } }
.is-live .a-bounce { animation: hwBounce 0.42s ease-in-out infinite alternate; }
@keyframes hwBounce { to { transform: translateY(-3px); } }
.a-speed { opacity: 0; }
.is-live .a-speed { animation: hwSpeedL 1.2s ease-in-out infinite; }
@keyframes hwSpeedL { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* 7. сборка: голая стена → шкафы собираются и навешиваются; всё по ходу прокрутки */
.hw-art .as { --e: calc(var(--p) * (2 - var(--p))); transform-box: fill-box; transform-origin: center; opacity: var(--p); }
.hw-art .as.hinge-l { transform-origin: left center; }
.hw-art .as.hinge-r { transform-origin: right center; }
.hw-art .as-in-x { transform: translateX(calc(var(--x, 0px) * (1 - var(--e)))); }
.hw-art .as-in-y { transform: translateY(calc(var(--y, 0px) * (1 - var(--e)))); }
.hw-art .as-drawer { transform: translateY(calc(10px * (1 - var(--e)))) scale(calc(0.92 + 0.08 * var(--e))); }
.hw-art .as-door { transform: scaleX(calc(0.06 + 0.94 * var(--e))); opacity: clamp(0, calc(var(--p) * 3), 1); }
.hw-art .as-hang { transform: translateY(calc(-34px * (1 - var(--e)))); }
.as-mark { stroke-dasharray: 6 6; stroke-width: 1.4; }
.as-handles, .as-hd { stroke-width: 3; }

/* ---- сквозная линия и бегунок (включает script.js классом .hw-flow) ---- */
.hw-route { display: none; }
.hw-flow .hw-route {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 3;
}
.hw-route-bg { fill: none; stroke: var(--ink-line); stroke-opacity: 0.22; stroke-width: 1.2; stroke-dasharray: 2 7; stroke-linecap: round; }
.hw-route-on path { fill: none; stroke: var(--ink-line); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hw-trav { opacity: 0; transition: opacity 0.25s ease; }
.hw-trav.is-on { opacity: 1; }
.hw-trav-dot { fill: var(--hw-accent); }
.hw-trav-ring {
    fill: var(--bg-body);
    fill-opacity: 0.7;
    stroke: var(--hw-accent);
    stroke-width: 1.2;
    stroke-dasharray: 4 5;
    transform-box: fill-box;
    transform-origin: center;
    animation: hwRing 3s linear infinite;
}
@keyframes hwRing { to { transform: rotate(360deg); } }



/* ---- финал: фото готового проекта на всю ширину ---- */
.hw-final { position: relative; margin: clamp(24px, 4vw, 64px) 0 0; }
.hw-final .hw-label { width: var(--gut); box-sizing: border-box; padding-bottom: 22px; }
.hw-final-ph { aspect-ratio: 16 / 7; overflow: hidden; background: var(--warm-line); }
.hw-final-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hw-flow .hw-final-ph { clip-path: circle(calc(var(--r, 0) * 125%) at 50% 0); }

/* планшет: колонка подписи уже */
@media (min-width: 900px) and (max-width: 1199px) {
    .hw-steps { --gut: 128px; }
    .hw-steps .hw-label { padding-right: 18px; font-size: 0.86rem; }
    .hw-steps .hw-text p { font-size: 0.98rem; }
}

/* телефон и узкий планшет: всё в одну колонку — подпись, фото + рисунок, текст */
@media (max-width: 899px) {
    .hw-steps { --c: clamp(20px, 6vw, 44px); margin-top: 0; }
    .hw-step,
    .hw-step.hw-r { display: flex; flex-direction: column; padding: 30px 0 40px; }
    .hw-steps .hw-text { display: block; order: 2; padding: 0 var(--edge); }
    .hw-steps .hw-label { order: 0; text-align: left; padding: 0 var(--edge) 18px; font-size: 0.88rem; }
    .hw-media { order: 1; aspect-ratio: 1000 / 700; margin-bottom: 26px; }
    .hw-l .hw-title, .hw-l .hw-text p,
    .hw-r .hw-title, .hw-r .hw-text p { padding: 0; }
    .hw-steps .hw-title { font-size: clamp(1.5rem, 6.4vw, 1.9rem); margin-bottom: 12px; }
    .hw-steps .hw-text p { font-size: 0.98rem; line-height: 1.6; }
    .hw-l .hw-ill { padding-left: 2%; }
    /* с 16.10.2026 на телефоне фото этапов чередуются, как на компьютере: слева, справа, слева…
       (у «правых» этапов рисунок слева — положение и скосы берутся из общих правил выше) */
    .hw-r .hw-ill { padding: 0 2% 0 0; }
    .hw-flow .hw-media { margin-bottom: 40px; }     /* под фото проходит линия к следующему этапу */
    .hw-flow .hw-text { padding-right: 52px; }      /* справа от текста проходит линия с бегунком */
    .hw-art { stroke-width: 3.2; }
    .hw-final .hw-label { width: auto; }
    .hw-final-ph { aspect-ratio: 4 / 3; }
}


/* =====================================================================
   [С-09-Н] ВИДЕО — ПЛЕЕР И СПИСОК КЛИПОВ (14.10.2026)
   По образцу spectrum.ieee.org: слева заголовок, текст и соцсети, по центру
   вертикальный плеер, справа список клипов (листается внутри блока).
   Светлый вариант: на общем фоне страницы, без тёмной подложки.
   ===================================================================== */
.vs-section { padding: clamp(56px, 7vw, 110px) 0; background: var(--bg-body); }
.vs-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr);
    gap: clamp(28px, 3.4vw, 56px);
    padding: clamp(28px, 3vw, 44px) 0 0;
    border-top: 1px solid var(--warm-line);
    color: var(--ink);
}
.vs-info { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.vs-eyebrow { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--warm-mute); }
.vs-section .vs-info h2 {
    margin: 12px 0 18px;
    padding: 0;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.9rem, 2.6vw, 2.8rem);
    line-height: 1.1;
    color: var(--ink);
    text-align: left;
}
.vs-section .vs-info h2::after { display: none; }
.vs-lead { margin: 0; max-width: 30em; font-size: 1.02rem; line-height: 1.7; color: #3E3833; }
.vs-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 28px 0 0; font-size: 0.92rem; color: var(--warm-mute); }
.vs-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease;
}
.vs-social a:hover, .vs-social a:focus-visible { border-bottom-color: var(--primary-color); }
.vs-player {
    width: clamp(260px, 26vw, 380px);
    aspect-ratio: 9 / 16;
    align-self: start;
    overflow: hidden;
    border-radius: var(--r-block);
    background: var(--warm-line);
}
.vs-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.vs-list { display: flex; flex-direction: column; min-width: 0; }
.vs-list-head {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--warm-line);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-mute);
}
.vs-items {
    flex: 1 1 0;
    min-height: 0;
    margin: 0;
    padding: 18px 10px 4px 6px;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--warm-gray) transparent;
}
.vs-items::-webkit-scrollbar { width: 4px; }
.vs-items::-webkit-scrollbar-thumb { background: var(--warm-gray); border-radius: 4px; }
.vs-item {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 8px;
    font: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
}
.vs-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: var(--warm-line);
    outline: 2px solid transparent;
    outline-offset: 3px;
    transition: outline-color 0.2s ease, filter 0.2s ease;
}
.vs-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* значок «смотреть» поверх обложки */
.vs-thumb::before {
    content: '';
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
}
.vs-thumb::after {
    content: '';
    position: absolute;
    z-index: 2;
    margin-left: 4px;
    border-left: 11px solid var(--primary-color);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}
.vs-item:hover .vs-thumb { filter: brightness(0.94); }
.vs-item.is-active .vs-thumb { outline-color: var(--primary-color); }
.vs-item:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; }
.vs-title { display: block; margin: 2px 0 8px; font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.vs-item.is-active .vs-title { color: var(--primary-color); }
.vs-sub { display: block; font-size: 0.82rem; line-height: 1.4; color: var(--warm-mute); }

/* планшет: текст сверху, плеер и список рядом */
@media (max-width: 1100px) {
    .vs-panel { grid-template-columns: auto minmax(0, 1fr); }
    .vs-player { width: clamp(260px, 32vw, 340px); }
    .vs-info { grid-column: 1 / -1; }
    .vs-social { margin-top: 18px; }
}
/* телефон: всё в одну колонку, список под плеером */
@media (max-width: 700px) {
    .vs-section { padding: 48px 0 56px; }
    .vs-panel { grid-template-columns: minmax(0, 1fr); padding: 24px 0 0; gap: 26px; }
    .vs-player { width: min(100%, 340px); justify-self: center; }
    .vs-items { flex: none; overflow: visible; padding: 18px 0 4px 6px; }
    .vs-item { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 14px; }
    .vs-title { font-size: 0.95rem; }
}


/* =====================================================================
   [ФХ] ЭКСПЕРИМЕНТ: АНИМАЦИИ ПОЯВЛЕНИЯ ТЕКСТА (страница «Офисные пространства»)
   Длительности ускорены на треть (14.10.2026); задержки ускоряет SPEED в script.js.
   Включаются только когда работает скрипт (класс .fx-on на <html>) — иначе всё видно сразу.
   Список эффектов — в script.js, раздел [ФХ].
   ===================================================================== */
.fx-on [data-fx] { --ease: cubic-bezier(0.2, 0.8, 0.2, 1); }
/* разбитый на слова/буквы текст наследует шрифт заголовка (иначе срабатывает общее правило * { Montserrat }) */
.fx-w, .fx-wi, .fx-c, .fx-mk { font: inherit; color: inherit; }

/* rise / lines — слова выезжают из-под «шторки» */
.fx-on [data-fx="rise"] .fx-w, .fx-on [data-fx="lines"] .fx-w {
    display: inline-block; overflow: hidden; vertical-align: top;
    padding-bottom: 0.12em; margin-bottom: -0.12em;
}
.fx-on [data-fx="rise"] .fx-wi, .fx-on [data-fx="lines"] .fx-wi {
    display: inline-block; transform: translateY(115%);
    transition: transform 0.67s var(--ease);
}
.fx-on [data-fx="rise"] .fx-wi { transition-delay: calc(var(--fd, 0ms) + var(--i, 0) * 37ms); }
.fx-on [data-fx="lines"] .fx-wi { transition-delay: calc(var(--fd, 0ms) + var(--l, 0) * 87ms); }
.fx-on [data-fx].fx-in .fx-wi { transform: none; }

/* blur — из размытия */
.fx-on [data-fx="blur"] .fx-w {
    display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(0.3em);
    transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s var(--ease);
    transition-delay: calc(var(--fd, 0ms) + var(--i, 0) * 27ms);
}
.fx-on [data-fx="blur"].fx-in .fx-w { opacity: 1; filter: none; transform: none; }

/* flip — слова переворачиваются */
.fx-on [data-fx="flip"] { perspective: 700px; }
.fx-on [data-fx="flip"] .fx-w {
    display: inline-block; opacity: 0; transform-origin: 50% 100% -0.3em; transform: rotateX(-95deg);
    transition: transform 0.67s var(--ease), opacity 0.33s ease;
    transition-delay: calc(var(--fd, 0ms) + var(--i, 0) * 60ms);
}
.fx-on [data-fx="flip"].fx-in .fx-w { opacity: 1; transform: none; }

/* char-режимы: слово не рвётся по буквам */
.fx-on [data-fx="chars"] .fx-w, .fx-on [data-fx="type"] .fx-w, .fx-on [data-fx="scramble"] .fx-w { display: inline-block; white-space: nowrap; }
.fx-on [data-fx="chars"] .fx-c, .fx-on [data-fx="scramble"] .fx-c { display: inline-block; }

/* chars — буквы падают сверху */
.fx-on [data-fx="chars"] .fx-c {
    opacity: 0; transform: translateY(-0.7em) rotate(-10deg);
    transition: opacity 0.33s ease, transform 0.47s cubic-bezier(0.3, 1.5, 0.5, 1);
    transition-delay: calc(var(--fd, 0ms) + var(--ci, 0) * 19ms);
}
.fx-on [data-fx="chars"].fx-in .fx-c { opacity: 1; transform: none; }

/* type — машинка */
.fx-on [data-fx="type"] .fx-c { opacity: 0; }
.fx-on [data-fx="type"] .fx-c.on { opacity: 1; }
.fx-caret {
    display: inline-block; width: 0.06em; height: 0.92em; margin-left: 0.04em;
    vertical-align: -0.08em; background: var(--primary-color);
}
.fx-caret.done { animation: fxBlink 0.8s steps(1) 3 forwards; }
@keyframes fxBlink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }

/* scramble — табло */
.fx-on [data-fx="scramble"] .fx-c { opacity: 0; text-align: center; }
.fx-on [data-fx="scramble"] .fx-c.on { opacity: 1; }
.fx-on [data-fx="scramble"] .fx-c.sc { color: var(--primary-color); opacity: 0.55; }

/* track — буквы съезжаются из разрядки */
.fx-on [data-fx="track"] {
    opacity: 0; letter-spacing: calc(var(--ls, 0.2em) + 0.6em);
    transition: opacity 0.67s ease var(--fd, 0ms), letter-spacing 0.93s var(--ease) var(--fd, 0ms);
}
.fx-on [data-fx="track"].fx-in { opacity: 1; letter-spacing: var(--ls, 0.2em); }

/* mark — маркер под текстом */
.fx-mk {
    background-image: linear-gradient(transparent 62%, rgba(90, 61, 48, 0.16) 62%);
    background-repeat: no-repeat; background-size: 100% 100%;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.fx-on [data-fx="mark"] .fx-mk { background-size: 0% 100%; transition: background-size 1.07s cubic-bezier(0.6, 0, 0.2, 1) calc(var(--fd, 0ms) + 167ms); }
.fx-on [data-fx="mark"] { opacity: 0; transform: translateY(12px); transition: opacity 0.53s ease var(--fd, 0ms), transform 0.53s var(--ease) var(--fd, 0ms); }
.fx-on [data-fx="mark"].fx-in { opacity: 1; transform: none; }
.fx-on [data-fx="mark"].fx-in .fx-mk { background-size: 100% 100%; }

/* fill — слова темнеют при прокрутке */
.fx-on [data-fx="fill"] .fx-w { opacity: 0.16; transition: opacity 0.23s ease; }
.fx-on [data-fx="fill"] .fx-w.on { opacity: 1; }

/* wipe — шторка слева */
.fx-on [data-fx="wipe"] { clip-path: inset(0 100% 0 0); transition: clip-path 0.67s cubic-bezier(0.7, 0, 0.2, 1) var(--fd, 0ms); }
.fx-on [data-fx="wipe"].fx-in { clip-path: inset(0 0 0 0); }
.proj-open[data-fx="wipe"] { padding-right: 2px; }

/* фото: открываются по-разному, картинка внутри слегка «приближается» */
.proj--tint .proj-gallery { overflow: hidden; border-radius: var(--r-block); }
.fx-on [data-fx^="img-"] { transition: clip-path 0.93s cubic-bezier(0.7, 0, 0.2, 1) var(--fd, 0ms); }
.fx-on [data-fx^="img-"] img { transform: scale(1.18); transition: transform 1.33s cubic-bezier(0.2, 0.7, 0.2, 1) var(--fd, 0ms); }
.fx-on [data-fx^="img-"].fx-in img { transform: none; }
.fx-on [data-fx="img-left"] { clip-path: inset(0 100% 0 0 round 16px); }
.fx-on [data-fx="img-right"] { clip-path: inset(0 0 0 100% round 16px); }
.fx-on [data-fx="img-up"] { clip-path: inset(100% 0 0 0); }
.fx-on [data-fx="img-circle"] { clip-path: circle(0% at 50% 50%); }
.fx-on [data-fx="img-left"].fx-in, .fx-on [data-fx="img-right"].fx-in { clip-path: inset(0 0 0 0 round 16px); }
.fx-on [data-fx="img-up"].fx-in { clip-path: inset(0 0 0 0); }
.fx-on [data-fx="img-circle"].fx-in { clip-path: circle(75% at 50% 50%); }
.dir-care-photo[data-fx] { overflow: hidden; }


/* =====================================================================
   [КР] ВЕСЬ ТЕКСТ ПО КРАЮ ЛОГОТИПА (14.10.2026; с 15.10.2026 — на всех страницах: <body class="edge-page">)
   Содержимое страницы — от левого края логотипа «Баньян» до такого же отступа справа (--edge),
   как карточки «Наши проекты». Включить на другой странице — добавить class="edge-page" в <body>.
   ===================================================================== */
.edge-page { --container-padding: var(--edge); }   /* «вылеты» лент прокрутки к краю экрана считаются от того же отступа */
.edge-page .container { max-width: none; padding-left: var(--edge); padding-right: var(--edge); }
.edge-page .legal { max-width: calc(860px + 2 * var(--edge)); }   /* текст политики — строки не длиннее ~90 знаков */
@media (min-width: 769px) {
    .edge-page .hero .hero-content { padding-left: var(--edge); }
}


/* =====================================================================
   [ГЛ] ГЛАВНАЯ — НОВЫЙ ВИД БЛОКОВ «ЦИФРЫ», «О ФАБРИКЕ», «ОСНОВНЫЕ НАПРАВЛЕНИЯ» (14.10.2026)
   Как разворот журнала: крупные заголовки, крупные фото разного размера, мало мелких плашек.
   Анимации появления текста — раздел [ФХ] (атрибуты data-fx в index.html),
   «барабан» цифр — эффект count в script.js [ФХ], сдвиг фото при прокрутке — script.js [ГЛ].
   Старые правила .facts-*, .factory-*, .adv-* на главной больше не используются.
   ===================================================================== */

/* пока буквы «съезжаются» из разрядки, строка может быть шире экрана — обрезаем, чтобы на телефоне не было прокрутки вбок */
.gl-facts, .gl-about, .gl-dirs { overflow: hidden; }
@supports (overflow: clip) { .gl-facts, .gl-about, .gl-dirs { overflow: clip; } }

/* общий крупный заголовок этих блоков */
.gl-h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(2.1rem, 4.6vw, 4.2rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}

/* фото в рамке: скругление, фото чуть выше рамки — для сдвига при прокрутке */
.gl-ph, .gl-dir-ph {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: var(--r-block, 16px);
    background: var(--warm-line);
}
.gl-ph img, .gl-dir-ph img {
    position: absolute;
    left: 0;
    top: -9%;
    width: 100%;
    height: 118%;
    object-fit: cover;
    display: block;
}
.par-on [data-par] img { translate: 0 var(--py, 0px); }

/* ---------- ЦИФРЫ ---------- */
.gl-facts { background: var(--bg-body); color: var(--ink); padding: 120px 0 40px; }
.gl-facts-head {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 40px 8%;
    align-items: end;
    margin-bottom: 76px;
}
.gl-facts-lead { margin: 0 0 0.5em; font-size: 1rem; line-height: 1.75; color: var(--warm-mute); max-width: 30em; }
.gl-facts-list { list-style: none; margin: 0; padding: 0; }
.gl-fact {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 12px 8%;
    align-items: baseline;
    padding: 26px 0 24px;
}
.gl-fact-rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--warm-gray); }
.gl-fact-num {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.gl-fact-num--accent { color: #94704F; }
.gl-fact-label { font-size: 0.72rem; letter-spacing: 0.26em; line-height: 1.6; color: var(--warm-mute); }

/* «барабан» цифр (эффект count) */
.fx-ow { display: inline-block; white-space: nowrap; font: inherit; color: inherit; }
.fx-od-s { font: inherit; color: inherit; }
.fx-od, .fx-oc { display: inline-block; vertical-align: top; height: 1em; line-height: 1; font: inherit; color: inherit; }
.fx-oc { line-height: inherit; height: auto; }
.fx-od { position: relative; text-align: center; clip-path: inset(0 -0.35em); }
.fx-od-s { display: flex; flex-direction: column; align-items: center; }
.fx-od-s > span { display: block; height: 1em; line-height: 1; font: inherit; color: inherit; }
.fx-on [data-fx="count"] .fx-od-s {
    transform: translateY(0);
    transition: transform 1.25s cubic-bezier(0.2, 0.75, 0.1, 1) calc(var(--fd, 0ms) + var(--k, 0) * 70ms);
}
.fx-on [data-fx="count"].fx-in .fx-od-s { transform: translateY(calc(var(--n, 0) * -1em)); }
.fx-on [data-fx="count"] .fx-od { opacity: 0; transition: opacity 0.3s ease calc(var(--fd, 0ms) + var(--k, 0) * 70ms); }
.fx-on [data-fx="count"].fx-in .fx-od { opacity: 1; }
.fx-on [data-fx="count"] .fx-oc {
    opacity: 0; transform: translateY(0.35em);
    transition: opacity 0.45s ease, transform 0.7s var(--ease);
    transition-delay: calc(var(--fd, 0ms) + var(--k, 0) * 45ms);
}
.fx-on [data-fx="count"].fx-in .fx-oc { opacity: 1; transform: none; }

/* ---------- О ФАБРИКЕ ---------- */
.gl-about.section { padding: 110px 0 120px; }
.gl-about-head { margin-bottom: 56px; }
.gl-about-head .gl-h2 { max-width: 15em; }
.gl-about-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}
.gl-cell-a { grid-column: 1 / 9; }
.gl-cell-b { grid-column: 9 / 13; }
.gl-cell-q { grid-column: 1 / 6; align-self: end; padding: 40px 12% 6px 0; }
.gl-cell-c { grid-column: 6 / 13; }
.gl-cell-a .gl-ph { aspect-ratio: 3 / 2; }
.gl-cell-b .gl-ph { height: 100%; min-height: 320px; }
.gl-cell-c .gl-ph { aspect-ratio: 16 / 10; }
.gl-quote {
    position: relative;
    margin: 0;
    padding-top: 28px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.3rem, 1.9vw, 1.85rem);
    line-height: 1.38;
    letter-spacing: -0.005em;
    color: var(--ink);
}
.gl-quote::before { content: ""; position: absolute; left: 0; top: 0; width: 36px; height: 1px; background: var(--primary-color); opacity: 0.55; }

/* ---------- ОСНОВНЫЕ НАПРАВЛЕНИЯ ---------- */
.gl-dirs.section { padding: 110px 0 120px; }
.gl-dirs-head {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 28px 6%;
    align-items: end;
    margin-bottom: 64px;
}
.gl-dirs-lead { margin: 0 0 0.4em; font-size: 0.98rem; line-height: 1.75; color: var(--warm-mute); max-width: 34em; }
.gl-dirs-lead strong { font-weight: 500; color: var(--ink); }
.gl-dirs-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 88px 32px;
    align-items: start;
}
.gl-dir { display: block; min-width: 0; color: inherit; text-decoration: none; }
.gl-dir--wide { grid-column: span 7; }
.gl-dir--narrow { grid-column: span 5; }
/* «зигзаг»: вторая и четвёртая карточки ниже соседних */
.gl-dir:nth-child(2), .gl-dir:nth-child(4) { margin-top: 88px; }
.gl-dir--wide .gl-dir-ph { aspect-ratio: 4 / 3; }
.gl-dir--narrow .gl-dir-ph { aspect-ratio: 1 / 1; }
/* 16.10.2026: приближение фото при наведении убрано по просьбе заказчика */
.gl-dir-body { padding-top: 24px; max-width: 34em; }
.gl-dir-sub { margin: 0; font-size: 0.68rem; letter-spacing: 0.26em; line-height: 1.6; text-transform: uppercase; color: var(--primary-color); }
.gl-dir h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 2.5vw, 2.45rem);
    line-height: 1.1;
    letter-spacing: -0.012em;
    color: var(--ink);
    margin: 10px 0 14px;
    transition: color 0.3s ease;
}
.gl-dir:hover h3 { color: var(--primary-color); }
.gl-dir-text { margin: 0; font-size: 0.97rem; line-height: 1.7; color: var(--warm-mute); }
.gl-dir-more {
    display: inline-flex; align-items: center; gap: 14px;
    margin-top: 20px; padding-right: 4px;
    font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink);
}
.gl-dir-more i { position: relative; display: block; width: 30px; height: 1px; background: currentColor; transition: width 0.4s var(--transition, ease); }
.gl-dir-more i::after {
    content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
    border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.gl-dir:hover .gl-dir-more i { width: 52px; }
.gl-dir:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 6px; border-radius: var(--r-block, 16px); }

/* планшет: карточки поровну */
@media (min-width: 768px) and (max-width: 1023px) {
    .gl-dir--wide, .gl-dir--narrow { grid-column: span 6; }
    .gl-dir--narrow .gl-dir-ph { aspect-ratio: 4 / 3; }
    .gl-dirs-grid { gap: 72px 24px; }
    .gl-dir:nth-child(2), .gl-dir:nth-child(4) { margin-top: 64px; }
}

/* телефон и узкий планшет */
@media (max-width: 767px) {
    .gl-facts { padding: 76px 0 16px; }
    .gl-facts-head { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 40px; }
    .gl-facts-head br { display: none; }
    .gl-facts-lead { font-size: 0.95rem; }
    .gl-fact { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px 0 20px; }
    .gl-fact-num { font-size: clamp(2.5rem, 12.5vw, 3.6rem); }
    .gl-fact-label { font-size: 0.64rem; letter-spacing: 0.2em; }

    .gl-about.section { padding: 72px 0; }
    .gl-about-head { margin-bottom: 32px; }
    .gl-about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
    .gl-cell-a { grid-column: 1 / 3; order: 1; }
    .gl-cell-q { grid-column: 1 / 3; order: 2; padding: 26px 0 26px; }
    .gl-cell-b { grid-column: 1 / 2; order: 3; }
    .gl-cell-c { grid-column: 2 / 3; order: 4; margin-top: 36px; }
    .gl-cell-a .gl-ph { aspect-ratio: 4 / 3; }
    .gl-cell-b .gl-ph, .gl-cell-c .gl-ph { aspect-ratio: 4 / 5; height: auto; min-height: 0; }
    .gl-quote { font-size: 1.22rem; padding-top: 22px; }

    .gl-dirs.section { padding: 72px 0; }
    .gl-dirs-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 36px; }
    .gl-dirs-lead { font-size: 0.95rem; }
    .gl-dirs-grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
    .gl-dir--wide, .gl-dir--narrow { grid-column: auto; }
    .gl-dir:nth-child(2), .gl-dir:nth-child(4) { margin-top: 0; }
    .gl-dir--wide .gl-dir-ph, .gl-dir--narrow .gl-dir-ph { aspect-ratio: 4 / 3; }
    .gl-dir-body { padding-top: 18px; }
    .gl-dir h3 { font-size: clamp(1.45rem, 6.6vw, 1.9rem); margin: 8px 0 10px; }
    .gl-dir-text { font-size: 0.95rem; }
}


/* =====================================================================
   [ЦТ] ЦИТАТА НА ГЛАВНОЙ (15.10.2026) — вместо демо «до / после», под строкой материалов
   Крупная цитата шрифтом заголовков, как выноска в журнале. Появление — эффекты [ФХ] (data-fx).
   ===================================================================== */
.qt-section { background: var(--bg-body); padding: clamp(72px, 9vw, 140px) 0 clamp(40px, 5vw, 72px); }
.qt { position: relative; margin: 0; max-width: 1100px; }
.qt-text { margin: 0; }
.qt-text p {
    margin: 0;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(1.75rem, 3.9vw, 3.5rem);
    line-height: 1.16;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-wrap: balance;
}
.qt-cap {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
    margin-top: clamp(22px, 2.6vw, 36px);
    padding-top: 18px;
    border-top: 1px solid var(--warm-gray);
    max-width: 680px;
}
.qt-who { font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--primary-color); }
.qt-where { font-size: 0.82rem; line-height: 1.6; color: var(--warm-mute); }
.qt-where a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.qt-where a:hover { color: var(--primary-color); }
@media (max-width: 767px) {
    .qt-who { font-size: 0.66rem; letter-spacing: 0.2em; }
    .qt-where { font-size: 0.78rem; }
}
/* [ЦТ] с фото: портрет слева, цитата и подпись справа; на телефоне фото сверху, поменьше */
.qt--photo {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-rows: 1fr auto auto 1fr;          /* цитата с подписью — по центру высоты фото */
    gap: 0 clamp(32px, 5vw, 88px);
}
.qt--photo .qt-ph-cell { grid-column: 1; grid-row: 1 / 5; align-self: start; }
.qt--photo .qt-text { grid-column: 2; grid-row: 2; }
.qt--photo .qt-cap { grid-column: 2; grid-row: 3; align-self: start; }
.qt-ph { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-block, 16px); background: var(--warm-line); }
.qt-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qt-credit { margin: 10px 0 0; font-size: 0.7rem; color: var(--warm-mute); }
.qt-credit a { color: inherit; }
@media (max-width: 767px) {
    .qt--photo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
    .qt--photo .qt-ph-cell { grid-column: 1; grid-row: auto; width: 62%; max-width: 280px; margin-bottom: 28px; }
    .qt--photo .qt-text, .qt--photo .qt-cap { grid-column: 1; grid-row: auto; }
}


/* =====================================================================
   [ДК] ДОСТАВЛЯЕМ ПО ВСЕЙ РОССИИ — карта перед блоком «Мы на карте» (15.10.2026)
   Карта — inline SVG в index.html. Анимацию запускает script.js ([ДК]): класс dm-ready (скрипт работает),
   is-in (карта на экране). Без скрипта и при «меньше движения» всё видно сразу.
   ===================================================================== */
.dm-section { background: var(--bg-body); padding: clamp(72px, 9vw, 130px) 0 clamp(40px, 5vw, 80px); overflow: hidden; }
.dm-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 6%; align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.dm-lead { margin: 0 0 0.4em; font-size: 1rem; line-height: 1.75; color: var(--warm-mute); max-width: 30em; }
.dm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dm-land { fill: #E6DFD4; stroke: none; }
.dm-route { fill: none; stroke: var(--primary-color); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.75; }
.dm-dot { fill: var(--ink); }
.dm-label { font-family: 'Inter', sans-serif; font-size: 12.5px; fill: var(--warm-mute); letter-spacing: 0.02em;
    paint-order: stroke; stroke: var(--bg-body, #F5F5F0); stroke-width: 4px; stroke-linejoin: round; }   /* светлая обводка — подпись читается поверх линий */
.dm-label--home { font-size: 15px; font-weight: 600; fill: var(--primary-color); }
.dm-home-dot { fill: var(--primary-color); stroke: var(--bg-body); stroke-width: 2.5; }
.dm-pulse { fill: none; stroke: var(--primary-color); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
/* анимация: линии прорисовываются от Белгорода, следом появляются точки городов */
.dm.dm-ready .dm-route { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1) var(--d, 0s); }
.dm.dm-ready .dm-dot { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.2); transition: opacity 0.3s ease var(--d, 0s), transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) var(--d, 0s); }
.dm.dm-ready .dm-label:not(.dm-label--home) { opacity: 0; transition: opacity 0.6s ease 2.4s; }
.dm.is-in .dm-route { stroke-dashoffset: 0; }
.dm.is-in .dm-dot { opacity: 1; transform: none; }
.dm.is-in .dm-label:not(.dm-label--home) { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .dm.is-in .dm-pulse { animation: dmPulse 2.4s ease-out infinite; }
}
@keyframes dmPulse { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@media (max-width: 767px) {
    .dm-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .dm-lead { font-size: 0.95rem; }
    .dm-route { stroke-width: 2.6; }
    .dm-dot { r: 6px; }
    .dm-label { font-size: 30px; stroke-width: 8px; }
    .dm-label:not(.dm-label--m):not(.dm-label--home) { display: none; }
    .dm-label--home { font-size: 34px; }
    .dm-home-dot { r: 10px; }
}


/* =====================================================================
   [ПФ] ПОРТФОЛИО «СМОТРИТЕ, ЧТО ПОЛУЧАЕТСЯ» — вертикальное фото слева, текст справа (15.10.2026)
   Заменяет тёмный баннер [С-08]. Фото в рамке .gl-ph (скругление и сдвиг при прокрутке — раздел [ГЛ]).
   ===================================================================== */
.pf-section { background: var(--bg-body); padding: clamp(72px, 9vw, 130px) 0; overflow: hidden; }
.pf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 7vw, 120px); align-items: center; }
.pf-ph-cell { margin: 0; }
.pf-ph { width: min(100%, calc(84vh * 2 / 3)); aspect-ratio: 2 / 3; }   /* целиком помещается на экран по высоте */.pf-cap { margin-top: 12px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--warm-mute); }
.pf-body { max-width: 34em; }
.pf-body .gl-h2 { margin-top: 2px; }
.pf-text { margin: 22px 0 34px; font-size: 1.05rem; line-height: 1.75; color: var(--warm-mute); }
.pf-btn { display: inline-block; }
@media (max-width: 767px) {
    .pf { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .pf-ph { width: 100%; }
    .pf-text { font-size: 0.98rem; margin: 16px 0 26px; }
    .pf-btn { display: block; width: 100%; text-align: center; }
}


/* =====================================================================
   [ШП] ШАПКА В ОБЩЕМ СВЕТЛОМ СТИЛЕ (15.10.2026)
   На первом экране шапка прозрачная, белая поверх видео/фото. При прокрутке (класс is-scrolled
   ставит script.js) — светлая, как фон сайта, с размытием и тонкой линией снизу; логотип и меню тёмные.
   Выпадающий список «Направления» и меню на телефоне — тоже светлые.
   ===================================================================== */
.video-nav { border-bottom: 1px solid transparent; transition: background-color 0.35s ease, padding 0.35s ease, border-color 0.35s ease; }
.video-nav.is-scrolled {
    background: rgba(245, 245, 240, 0.9);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    box-shadow: none;
    border-bottom-color: var(--warm-line);
}
.video-nav-logo-img { transition: height 0.35s ease, filter 0.35s ease, opacity 0.35s ease; }
.video-nav.is-scrolled .video-nav-logo-img { filter: brightness(0); opacity: 0.88; }
.video-nav-brand { transition: color 0.35s ease; }
.video-nav.is-scrolled .video-nav-brand { color: var(--ink); }
/* пункты меню: тонкая линия снизу при наведении */
.video-nav .main-nav #navMenu > li > .nav-link:not(.contact-btn) {
    background: linear-gradient(currentColor, currentColor) left calc(100% - 4px) / 0 1px no-repeat;
    transition: color 0.3s ease, background-size 0.3s ease;
}
.video-nav .main-nav #navMenu > li > .nav-link:not(.contact-btn):hover,
.video-nav .main-nav #navMenu > li > .nav-link:not(.contact-btn):focus-visible { background-size: 100% 1px; transform: none; }
.video-nav.is-scrolled .nav-link:not(.contact-btn) { color: rgba(27, 27, 25, 0.78); }
.video-nav.is-scrolled .nav-link:not(.contact-btn):hover,
.video-nav.is-scrolled .nav-link:not(.contact-btn):focus-visible { color: var(--primary-color); }
.video-nav.is-scrolled .nav-link.active:not(.contact-btn) { color: var(--ink); }
.video-nav.is-scrolled .nav-sub-toggle::before { border-color: rgba(27, 27, 25, 0.7); }
.video-nav.is-scrolled .video-nav-burger { color: var(--ink); }

/* выпадающий список «Направления» — светлая карточка */
.video-nav .main-nav ul.nav-sub {
    background-color: #FBFAF7;
    border: 1px solid var(--warm-line);
    box-shadow: 0 18px 40px rgba(27, 27, 25, 0.12);
}
.nav-sub-link { color: rgba(27, 27, 25, 0.78); }
.nav-sub-link:hover,
.nav-sub-link:focus-visible { color: var(--primary-color); background-color: rgba(90, 61, 48, 0.06); }
.nav-sub-link[aria-current="page"] { color: var(--ink); background-color: rgba(90, 61, 48, 0.05); }

/* затемнение под меню — мягче */
.menu-overlay { background-color: rgba(27, 27, 25, 0.35); }

/* телефон: меню-шторка светлая, пункты тёмные */
@media (max-width: 768px) {
    .video-nav .main-nav { background: var(--bg-body); box-shadow: 20px 0 60px rgba(27, 27, 25, 0.15); }
    .video-nav .main-nav .nav-link:not(.contact-btn),
    .video-nav.is-scrolled .main-nav .nav-link:not(.contact-btn) { color: var(--ink); }
    .video-nav .main-nav #navMenu > li > .nav-link:not(.contact-btn) { background: none; }
    .video-nav .main-nav .nav-link.active:not(.contact-btn) { color: var(--primary-color); }
    .nav-sub-toggle { border-color: rgba(27, 27, 25, 0.2); }
    .nav-sub-toggle::before,
    .video-nav.is-scrolled .nav-sub-toggle::before { border-color: rgba(27, 27, 25, 0.75); }
    .nav-has-sub.is-open .nav-sub-toggle { background-color: rgba(90, 61, 48, 0.08); border-color: rgba(90, 61, 48, 0.35); }
    .video-nav .main-nav ul.nav-sub { background-color: rgba(90, 61, 48, 0.04); border-color: var(--warm-line); box-shadow: none; }
    .video-nav .main-nav ul.nav-sub > li + li { border-top-color: var(--warm-line); }
    .nav-sub-link { color: rgba(27, 27, 25, 0.82); }
    .nav-sub-link:hover,
    .nav-sub-link:focus-visible { background: none; color: var(--primary-color); }
    .nav-sub-link[aria-current="page"] { background-color: rgba(90, 61, 48, 0.07); color: var(--ink); }
}


/* =====================================================================
   [ЦФ] ЦИФРЫ — НОВАЯ РАСКЛАДКА (15.10.2026)
   Слева заголовок и пояснение, справа цифры сеткой 2 × N: число, под ним подпись, сверху тонкая линия.
   Последняя строка (B2C · B2B · B2G) — на всю ширину. «Барабан» цифр: настоящие цифры остаются
   в тексте (копирование, поиск), видна нарисованная лента (::before), которая крутится до цифры.
   ===================================================================== */
.gl-facts { padding: clamp(80px, 9vw, 130px) 0; }
.gl-facts > .container {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px clamp(40px, 6vw, 110px);
    align-items: start;
}
.gl-facts-head { display: block; margin: 0; }
.gl-facts-head .gl-h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.gl-facts-lead { margin: 22px 0 0; }
.gl-facts-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(24px, 3vw, 48px);
    margin-top: 6px;
}
.gl-fact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0 30px;
    grid-template-columns: none;
}
.gl-fact:last-child { grid-column: 1 / -1; }
.gl-fact-num { font-size: clamp(2.2rem, 3.4vw, 3.5rem); line-height: 1; }
.gl-fact-label { font-size: 0.68rem; letter-spacing: 0.22em; }

/* «барабан»: лента с цифрами нарисована, настоящая цифра прозрачна, но остаётся в тексте */
.fx-od { position: relative; display: inline-block; vertical-align: top; height: 1em; line-height: 1; clip-path: inset(0 -0.35em); }
.fx-on [data-fx="count"] .fx-od { color: transparent; opacity: 1; transition: none; }
.fx-od::before {
    content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
    white-space: pre;
    position: absolute;
    left: 50%;
    top: 0;
    line-height: 1;
    text-align: center;
    color: var(--odc, #1B1B19);
    opacity: 0;
    transform: translate(-50%, 0);
    transition: transform 1.25s cubic-bezier(0.2, 0.75, 0.1, 1) calc(var(--fd, 0ms) + var(--k, 0) * 70ms),
                opacity 0.3s ease calc(var(--fd, 0ms) + var(--k, 0) * 70ms);
    pointer-events: none;
}
/* сдвиг ленты — в долях её собственной высоты (20 строк, одна строка = 5 %), а не в em:
   Safari на iPhone округляет высоту строки до целых пикселей, и при сдвиге в em цифра останавливалась выше и обрезалась */
.fx-on [data-fx="count"].fx-in .fx-od::before { opacity: 1; transform: translate(-50%, calc(var(--n, 0) * -5%)); }

@media (max-width: 900px) {
    .gl-facts > .container { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 767px) {
    .gl-facts { padding: 72px 0 56px; }
    .gl-facts-lead { margin-top: 16px; }
    .gl-facts-list { gap: 0 18px; }
    .gl-fact { padding: 18px 0 22px; gap: 8px; }
    .gl-fact-num { font-size: clamp(1.75rem, 7.6vw, 2.4rem); }
    .gl-fact-label { font-size: 0.6rem; letter-spacing: 0.16em; line-height: 1.5; }
}
.gl-facts-head br { display: none; }


/* =====================================================================
   [ЦФ2] ЦИФРЫ «О КОМПАНИИ» ПО МАКЕТУ (15.10.2026)
   Текст начинается от той же линии, что логотип в шапке (--edge, раздел [С-01]).
   Слева заголовок, текст и кнопка, посередине цифры сеткой 2 × N, справа фото во всю высоту блока;
   левый край фото растворяется в фоне (маска .gl-facts-photo). Фото меняется в index.html.
   Телефон: фото сверху во всю ширину, нижний край уходит в фон, под ним текст и цифры.
   ===================================================================== */
.gl-facts { position: relative; padding: clamp(84px, 8vw, 128px) 0; }
.gl-facts-in {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: min(30vw, 480px) min(29vw, 450px);
    gap: 40px clamp(48px, 5vw, 110px);
    align-items: center;
    padding: 0 var(--edge);
}
.gl-facts-photo {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 50%;
    overflow: hidden;
    background: var(--bg-body);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.1) 16%, rgba(0,0,0,.32) 32%, rgba(0,0,0,.72) 48%, #000 64%);
            mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.1) 16%, rgba(0,0,0,.32) 32%, rgba(0,0,0,.72) 48%, #000 64%);
}
.gl-facts-photo img {
    position: absolute;
    left: 0; top: -7%;
    width: 100%; height: 114%;
    object-fit: cover;
    object-position: 22% 50%;
    display: block;
}
.gl-facts-head .section-eyebrow { margin-bottom: 26px; }
.gl-facts-head .gl-h2 { font-size: clamp(2rem, 2.9vw, 3.1rem); }
.gl-facts-lead { margin: 22px 0 0; max-width: 27em; }
.gl-facts-btn { display: inline-block; margin-top: 36px; }
.gl-facts-list { margin-top: 0; gap: 0 clamp(22px, 2.4vw, 40px); }
.gl-fact { padding: 22px 0 26px; gap: 10px; }
.gl-fact-num { font-size: clamp(1.8rem, 2.35vw, 2.6rem); }
.gl-fact-label { font-size: 0.64rem; letter-spacing: 0.2em; line-height: 1.55; }

/* планшет: текст и цифры одной колонкой слева, фото справа */
@media (max-width: 1100px) {
    .gl-facts-in { grid-template-columns: minmax(0, min(58%, 560px)); gap: 44px; }
    .gl-facts-photo {
        width: 45%;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.08) 20%, rgba(0,0,0,.4) 40%, #000 72%);
                mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.08) 20%, rgba(0,0,0,.4) 40%, #000 72%);
    }
}
/* телефон: фото сверху во всю ширину */
@media (max-width: 767px) {
    .gl-facts { padding: 0 0 60px; }
    .gl-facts-photo {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 78%;
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.45) 76%, transparent 100%);
                mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.45) 76%, transparent 100%);
    }
    .gl-facts-photo img { object-position: 30% 50%; }
    .gl-facts-in { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: -28px; }
    .gl-facts-head .section-eyebrow { margin-bottom: 18px; }
    .gl-facts-btn { display: block; width: 100%; text-align: center; margin-top: 26px; }
    .gl-fact-num { font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
    .gl-fact-label { font-size: 0.6rem; letter-spacing: 0.16em; }
}


/* =====================================================================
   [ШР] ШРИФТЫ В ДУХЕ «BEBAS NEUE + INTER» (15.10.2026)
   Bebas Neue не поддерживает русские буквы, поэтому заголовки набраны близким по духу Oswald
   (узкий, строгий) прописными буквами, весь остальной текст — Inter. Файлы шрифтов — fonts/fonts.css.
   Цитаты оставлены строчными (длинный текст прописными читается тяжело).
   Вернуть прежние шрифты: в styles.css заменить 'Oswald', 'Arial Narrow', sans-serif → 'PT Serif', serif,
   'Inter', sans-serif → 'Montserrat', sans-serif и удалить этот раздел.
   ===================================================================== */
.section-header h1, .hero-content h1, .facts-head h2, .cta-band h2, .factory-header h2,
.advantages-cafmebel h2, .adv-img-title h3, .work-step-content h3, .video-section h2,
.library-section h2, .library-section h1, .album h3, .work-advantages h2, .album-head h2,
.op-hero-content h2, .contact-modal-content h3, .modal-success h4, .section-header h2,
.works-banner-content h2, .legal-hero h1, .legal h2, .dir-cta h3, .dir-page h2,
.dir-what-grid h3, .dir-care-list h3, .proj-body h3, .hw-steps .hw-title,
.vs-section .vs-info h2, .gl-h2, .gl-dir h3, .fact-num, .gl-fact-num {
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-weight: 500;
    line-height: 1.06;
}
.hero-brand, .factory-brand { font-weight: 600; }
/* цитаты — Oswald строчными, светлее */
.gl-quote, .qt-text p { font-weight: 300; letter-spacing: 0; line-height: 1.25; }

/* [ШР] шапка: «МЕБЕЛЬНАЯ ФАБРИКА» — тем же шрифтом, что заголовки */
.video-nav-brand, .video-nav-brand span { font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 400; }
.video-nav-brand { letter-spacing: 0.08em; }
/* «Баньян» в заголовках — фирменным шрифтом (как в логотипе), остальная часть заголовка — светлым начертанием */
.factory-brand, .hero-brand { font-family: 'PT Serif', serif; font-weight: 700; letter-spacing: 0.02em; }
.gl-about-head .gl-h2 { font-weight: 300; }

/* [ГЛ] «Основные направления»: текст справа начинается на уровне заголовка, а не надписи над ним */
@media (min-width: 768px) {
    .gl-dirs-head { grid-template-rows: auto auto; row-gap: 0; align-items: start; }
    .gl-dirs-title { display: contents; }
    .gl-dirs-title .section-eyebrow { grid-column: 1; grid-row: 1; }
    .gl-dirs-title .gl-h2 { grid-column: 1; grid-row: 2; }
    .gl-dirs-lead { grid-column: 2; grid-row: 2; align-self: start; margin: 0.35em 0 0; }
}

/* [ШР] пока грузятся шрифты (не дольше 1,2 с), страница скрыта и затем плавно проявляется — без «прыжка» шрифта.
   Класс fonts-wait ставит и снимает маленький скрипт в <head> каждой страницы. */
body { transition: opacity 0.25s ease; }
.fonts-wait body { opacity: 0; }


/* =====================================================================
   [ШП2] ШАПКА ПРЯЧЕТСЯ ПРИ ПРОКРУТКЕ ВНИЗ И ПОЯВЛЯЕТСЯ ПРИ ПРОКРУТКЕ ВВЕРХ (с 20.10.2026)
   Класс nav-auto (шапка спрятана) ставит script.js, раздел [ШП2].
   Кнопки «Меню» сверху по центру (.nav-tab) с 20.10.2026 нет — её стили ниже больше не используются.
   ===================================================================== */
.video-nav {
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0s,
                background-color 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
}
.nav-auto .video-nav {
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.45s,
                background-color 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
}
.nav-auto.nav-open .video-nav { transform: none; visibility: visible; transition-delay: 0s; }

.nav-tab {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 11px 20px;
    border: 1px solid var(--warm-line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(245, 245, 240, 0.94);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
            backdrop-filter: saturate(140%) blur(14px);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transform: translate(-50%, -110%);
    visibility: hidden;
}
.nav-tab-ready .nav-tab { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.45s, color 0.2s ease; }
.nav-auto .nav-tab { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.nav-auto.nav-open .nav-tab { transform: translate(-50%, calc(var(--hdr-h, 76px) - 1px)); }
.nav-tab:hover { color: var(--primary-color); }
.nav-tab:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
/* стрелка: вниз — открыть, вверх — скрыть */
.nav-tab-ico {
    width: 7px; height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s ease;
}
.nav-open .nav-tab-ico { transform: translateY(2px) rotate(-135deg); }
@media (max-width: 768px) {
    .nav-tab { padding: 9px 16px 10px 18px; font-size: 0.64rem; }
}
@media (prefers-reduced-motion: reduce) {
    .video-nav, .nav-auto .video-nav, .nav-tab-ready .nav-tab { transition-duration: 0s; }
}

/* [ШП2] в шапке только логотип — надпись «МЕБЕЛЬНАЯ ФАБРИКА» убрана (15.10.2026). Вернуть — удалить строку ниже. */
.video-nav-brand { display: none; }

/* [С-12] ПОДВАЛ: текст и значки соцсетей начинаются ровно под надписью «МЕБЕЛЬНАЯ ФАБРИКА» в логотипе.
   --flw — ширина логотипа; надпись в картинке logo2.png начинается на 16,24 % её ширины (138 из 850 px). */
.footer-about { --flw: 333px; }
.footer-logo-container img { width: min(var(--flw), 100%); max-height: none; }
.footer-about p.footer-desc,
.footer-about .social-links { margin-left: calc(min(var(--flw), 100%) * 0.1624); }
@media (max-width: 768px) {
    .footer-about { --flw: 166px; }
}


/* =====================================================================
   [С-09-Н] ВИДЕО: НАШИ РОЛИКИ ВМЕСТО КЛИПОВ ВК (16.10.2026)
   Плеер — вертикальное окно 9:16 со встроенными кнопками браузера; квадратные обложки в списке
   с длительностью ролика в углу.
   ===================================================================== */
.vs-player { background: #1B1B19; }
.vs-player video { display: block; width: 100%; height: 100%; object-fit: cover; background: #1B1B19; }
.vs-item { grid-template-columns: minmax(0, 30%) minmax(0, 1fr); align-items: center; }
.vs-thumb { aspect-ratio: 1 / 1; }
.vs-dur {
    position: absolute; z-index: 3; right: 6px; bottom: 6px;
    padding: 3px 6px 2px;
    border-radius: 4px;
    background: rgba(27, 27, 25, 0.72);
    color: #fff;
    font-size: 0.68rem; font-weight: 500; line-height: 1.2; letter-spacing: 0.02em;
}
.vs-thumb::before { width: 34px; height: 34px; }
.vs-thumb::after { border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 3px; }
@media (max-width: 700px) {
    .vs-item { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); }
}
.vs-player { position: relative; }
.vs-play {
    position: absolute; left: 50%; top: 50%; z-index: 2;
    width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0;
    border: 0; border-radius: 50%;
    background: rgba(245, 245, 240, 0.9);
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}
.vs-play::before {
    content: ''; position: absolute; left: 50%; top: 50%;
    margin: -12px 0 0 -7px;
    border-left: 20px solid var(--primary-color);
    border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.vs-play:hover { transform: scale(1.06); background: #fff; }
.vs-play:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.vs-player.is-playing .vs-play { opacity: 0; pointer-events: none; }
@media (min-width: 701px) and (max-width: 1100px) {
    .vs-item { grid-template-columns: minmax(0, 24%) minmax(0, 1fr); }
}


/* =====================================================================
   [ПФ] КРУПНОЕ ФОТО «ОТ ЭСКИЗА — К ГОТОВОМУ ОБЪЕКТУ» (16.10.2026)
   Фото занимает 47,6 % ширины (на экране 1680 px — до конца бывшего заголовка «…среди направлений?»),
   рамка 4 : 5, не выше 88 % высоты экрана; текст справа сдвинут. Верх и низ эскиза мягко уходят в фон
   (полупрозрачная полоса цвета фона над левой половиной — .pf-ph::after).
   ===================================================================== */
.pf { grid-template-columns: 47.6% minmax(0, 1fr); gap: 40px clamp(48px, 6vw, 110px); }
.pf-ph { width: 100%; aspect-ratio: 4 / 5; max-height: 88vh; }
.pf-ph::after {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; z-index: 1;
    width: 49.8%;
    background: linear-gradient(to bottom, var(--bg-body) 0%, rgba(245, 245, 240, 0) 17%, rgba(245, 245, 240, 0) 83%, var(--bg-body) 100%);
    pointer-events: none;
}
@media (max-width: 767px) {
    .pf { grid-template-columns: minmax(0, 1fr); }
    .pf-ph { max-height: none; }
}


/* =====================================================================
   [Б-М] БИБЛИОТЕКА: ФОТО КОЛОНКАМИ «КАК В PINTEREST» + ФИЛЬТРЫ (16.10.2026)
   Колонки и раскладку делает script.js (раздел [Б-М]); фото показываются целиком, без обрезки.
   ===================================================================== */
.lib-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.lib-chip {
    -webkit-appearance: none; appearance: none;
    padding: 10px 18px;
    border: 1px solid var(--warm-line); border-radius: 999px;
    background: none;
    font-family: 'Inter', sans-serif; font-size: 0.86rem; font-weight: 500; line-height: 1.2;
    color: var(--ink);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lib-chip span { margin-left: 7px; font-weight: 400; color: var(--warm-mute); transition: color 0.2s ease; }
.lib-chip:hover { border-color: var(--primary-color); }
/* выбранный раздел — фирменный коричневый, как у кнопок (16.10.2026) */
.lib-chip.is-on { background: var(--primary-color); border-color: var(--primary-color); color: var(--milk); }
.lib-chip.is-on span { color: #E2D5C8; }
.lib-chip:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }

.lib-gallery #otherGalleryGrid.lib-masonry { display: flex; align-items: stretch; gap: 14px; }
.lib-col > .lib-item:last-child { flex-grow: 1; }   /* низ всех колонок — на одном уровне (подгонка — script.js, evenBottoms) */
.lib-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lib-item {
    display: block; width: 100%; padding: 0; margin: 0;
    border: 0; border-radius: 12px; overflow: hidden;
    background: var(--warm-line);
    cursor: zoom-in;
    animation: libIn 0.5s ease both;
}
.lib-item img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
.lib-item.is-loaded img { opacity: 1; }
.lib-item:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
@keyframes libIn { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 700px) {
    /* на телефоне фильтры — одна строка, листается пальцем вбок */
    .lib-filters {
        flex-wrap: nowrap; gap: 8px; margin: 0 calc(-1 * var(--edge)) 24px;
        padding: 0 var(--edge) 4px; overflow-x: auto; scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .lib-filters::-webkit-scrollbar { display: none; }
    .lib-chip { flex: none; padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; }
    .lib-gallery #otherGalleryGrid.lib-masonry, .lib-col { gap: 8px; }
    .lib-item { border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) { .lib-item { animation: none; } }


/* =====================================================================
   [С-16-С] «ОБСУДИМ ЗАДАЧУ» В ОБЩЕМ СВЕТЛОМ СТИЛЕ (16.10.2026)
   Светлый фон страницы, тонкая линия сверху, надпись с чертой, заголовок как у других блоков,
   коричневая кнопка-«таблетка», справа список «К первому разговору пригодятся» на тонких линиях.
   Блок одинаковый на всех страницах (главная, библиотека, направления).
   ===================================================================== */
.cta-band { background-color: var(--bg-body); color: var(--ink); padding: clamp(40px, 4vw, 64px) 0 clamp(80px, 9vw, 130px); }
/* тонкая линия сверху — по ширине содержимого (от края логотипа до такого же отступа справа) */
.cta-inner {
    padding-top: clamp(40px, 4vw, 56px); align-items: end;
    background: linear-gradient(var(--warm-line), var(--warm-line)) no-repeat var(--edge) 0 / calc(100% - 2 * var(--edge)) 1px;
}
.cta-eyebrow {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px;
    font-size: 0.68rem; letter-spacing: 0.3em; color: var(--primary-color);
}
.cta-eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; opacity: 0.55; }
.cta-band h2 {
    margin: 0 0 24px;
    font-size: clamp(2.1rem, 4.6vw, 4.2rem);
    font-weight: 500; line-height: 1.06; letter-spacing: 0.01em;
    color: var(--ink);
}
.cta-band h2 br { display: none; }
.cta-lead { margin: 0 0 38px; max-width: 32em; font-size: 1.02rem; line-height: 1.75; color: #3E3833; }
.cta-btn {
    background-color: var(--primary-color);
    color: var(--milk);
    font-size: 0.72rem; letter-spacing: 0.18em; font-weight: 500;
    padding: 21px 38px;
    transition: background-color 0.4s ease;
}
.cta-btn:hover, .cta-btn:focus-visible { background-color: var(--primary-dark); color: var(--milk); }
.cta-aside { padding-left: 40px; border-left: 1px solid var(--warm-line); }
.cta-aside-title { color: var(--warm-mute); }
.cta-list li { border-top-color: var(--warm-line); color: var(--ink); }
.cta-list li:last-child { border-bottom-color: var(--warm-line); }
.cta-note { color: var(--warm-mute); }
@media (max-width: 900px) {
    .cta-aside { padding-left: 0; border-left: none; }
}
@media (max-width: 768px) {
    .cta-band { padding: 56px 0 64px; }
    .cta-band h2 { margin-bottom: 18px; }
    .cta-btn { width: 100%; max-width: 420px; text-align: center; }
}


/* =====================================================================
   [ПВ3] ПОДВАЛ: КОРИЧНЕВЫЙ ФОН (16.10.2026)
   Раскладка и шрифты подвала — прежние (разделы [С-12]); поменян только фон.
   Подписи, линии и мелкий текст подобраны под коричневый, чтобы читались.
   На телефоне (когда подвал в одну колонку, до 631 px) логотип, описание и значки соцсетей — по центру.
   ===================================================================== */
footer { background-color: #4A3228; }
.footer-links h4,
.footer-contact h4 { color: #E0BC94; }
.footer-contact i { color: #B49C8C; }
.social-links a { border-color: #6A4F42; }
.social-links a:hover,
.social-links a:focus-visible { background: var(--milk); border-color: var(--milk); color: #4A3228; }
.footer-bottom { border-top-color: #644A3E; color: #B49C8C; }
.footer-bottom p[style] { color: #B49C8C !important; }
/* круглая кнопка звонка не теряется на коричневом фоне: тонкое светлое кольцо */
.floating-contact-btn { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 1.5px rgba(245, 245, 240, 0.55); }
.floating-contact-btn:hover,
.floating-contact-btn:focus-visible { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1.5px rgba(245, 245, 240, 0.7); }
@media (max-width: 631px) {
    .footer-logo-container { align-items: center; }
    .footer-about p.footer-desc { margin-left: auto; margin-right: auto; text-align: center; }
    .footer-about .social-links { margin-left: 0; justify-content: center; }
}


/* [ГЛ-Т] «О ФАБРИКЕ» НА ТЕЛЕФОНЕ (16.10.2026):
   большое фото во всю ширину, под ним фраза о команде крупнее, ниже два фото рядом одной высоты
   (узкое и широкое, без сдвига по высоте). На компьютере и планшете всё как было. */
@media (max-width: 767px) {
    .gl-about-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; }
    .gl-cell-a, .gl-cell-q { grid-column: 1 / -1; }
    .gl-cell-b { grid-column: 1; order: 3; }
    .gl-cell-c { grid-column: 2; order: 4; margin-top: 0; }
    .gl-cell-b .gl-ph, .gl-cell-c .gl-ph { aspect-ratio: auto; height: clamp(220px, 64vw, 340px); min-height: 0; }
    .gl-cell-q { padding: 30px 0 34px; }
    .gl-quote { font-size: clamp(1.35rem, 6vw, 1.6rem); line-height: 1.28; padding-top: 24px; }
}


/* [РЗ] РАЗРЯДКА В ПОДПИСЯХ-ФРАЗАХ (16.10.2026): «Комплексные решения для бизнеса» и подобные
   подписи под названиями направлений (главная и страницы направлений), а также «К первому разговору пригодятся» —
   буквы были слишком разрежены и фраза плохо читалась. Короткие надписи над заголовками («О КОМПАНИИ») не менялись. */
.gl-dir-sub { letter-spacing: 0.08em; }
.dir-cards .adv-content .adv-sub { letter-spacing: 0.08em; }
.cta-aside-title { letter-spacing: 0.12em; }


/* [ШП3] Шапка над видео — без тёмной полоски снизу (16.10.2026). Полоска появлялась, потому что
   затемнение шапки повторялось в её прозрачной нижней рамке толщиной 1 px. */
.video-nav { background-origin: border-box; background-repeat: no-repeat; }


/* [ФХ-2] «Барабан» цифр: буквы и цифры в одну линию (20.10.2026). У цифр высота строки 1, у букв была 1,06 —
   из-за этого цифра «2» в «B2C · B2B · B2G» стояла чуть выше букв. Теперь у букв та же высота строки. */
.fx-oc { line-height: 1; height: 1em; }


/* =====================================================================
   [ЦФ-Ч] «МЫ ПРЕВРАЩАЕМ ПРОЕКТ В ГОТОВОЕ ПРОСТРАНСТВО»: ПОЛОВИНА ЧЕРТЁЖ, ПОЛОВИНА ФОТО (20.10.2026)
   Поверх фото лежит чертёж того же интерьера (.gl-facts-draw). Слева от границы --cut виден чертёж,
   справа — фото. При прокрутке script.js ([ЦФ-Ч]) двигает границу справа налево: чертёж «становится» фото.
   ===================================================================== */
.gl-facts-photo { --cut: 50%; }
.gl-facts-photo .gl-facts-draw { clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.gl-facts-cut {
    position: absolute; top: 0; bottom: 0; left: var(--cut); z-index: 2;
    width: 1px; margin-left: -0.5px;
    background: rgba(245, 245, 240, 0.95);
    box-shadow: 0 0 0 1px rgba(90, 61, 48, 0.18);
    pointer-events: none;
}


/* =====================================================================
   [НП-П] «ОСНОВНЫЕ НАПРАВЛЕНИЯ» ПОЛОСАМИ (20.10.2026)
   Каждое направление — строка во всю ширину: фото слева, текст справа, между строками тонкие линии.
   На телефоне — фото сверху, текст под ним, строки так же разделены линиями.
   Раньше (14–19.10.2026) были карточки «зигзагом» — их правила выше, в разделе [ГЛ].
   ===================================================================== */
.gl-dirs-grid { display: block; }
.gl-dirs-grid .gl-dir {
    display: grid;
    grid-template-columns: 47.6% minmax(0, 1fr);       /* фото той же ширины, что большое фото в блоке ниже ([ПФ]) */
    column-gap: clamp(48px, 6vw, 110px);
    align-items: center;
    margin-top: 0;
    padding: clamp(28px, 3vw, 44px) 0;
    border-top: 1px solid var(--warm-line);
}
.gl-dirs-grid .gl-dir:last-child { border-bottom: 1px solid var(--warm-line); }
.gl-dirs-grid .gl-dir .gl-dir-ph { aspect-ratio: 16 / 10; }
.gl-dirs-grid .gl-dir-body { padding-top: 0; max-width: 38em; }
.gl-dirs-grid .gl-dir h3 { font-size: clamp(1.8rem, 3vw, 2.9rem); margin: 12px 0 14px; }
.gl-dirs-grid .gl-dir-more { margin-top: 24px; }
.gl-dirs-grid .gl-dir:focus-visible { outline-offset: -2px; border-radius: 0; }
@media (max-width: 767px) {
    .gl-dirs-grid .gl-dir { grid-template-columns: minmax(0, 1fr); row-gap: 18px; padding: 24px 0 28px; }
    .gl-dirs-grid .gl-dir .gl-dir-ph { aspect-ratio: 4 / 3; }
    .gl-dirs-grid .gl-dir h3 { font-size: clamp(1.45rem, 6.6vw, 1.9rem); margin: 8px 0 10px; }
    .gl-dirs-grid .gl-dir-more { margin-top: 16px; }
}


/* =====================================================================
   [НН] НОВЫЕ НАПРАВЛЕНИЯ (20.10.2026): каталог фасадов, отделка стен, услуги и материалы
   ===================================================================== */
/* --- каталог фасадов (katalog-fasadov.html) --- */
.fac-section { margin-bottom: 120px; }
.fac-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px 6%; align-items: end; margin-bottom: 34px; }
.fac-lead { margin: 0 0 0.3em; max-width: 30em; font-size: 1.02rem; line-height: 1.75; color: var(--warm-mute); }
.fac-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(26px, 2.6vw, 40px) clamp(14px, 1.6vw, 24px); }
.fac-item[hidden] { display: none; }
.fac-item { animation: libIn 0.45s ease both; }
.fac-open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fac-ph { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: var(--bg-body); }   /* 20.10.2026: фон — как у сайта (был серый #E2E2E2) */
.fac-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fac-name {
    display: block; margin-top: 12px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; text-transform: uppercase;
    font-size: clamp(1rem, 1.3vw, 1.2rem); letter-spacing: 0.02em; color: var(--ink);
    transition: color 0.25s ease;
}
.fac-open:hover .fac-name, .fac-open:focus-visible .fac-name { color: var(--primary-color); }
.fac-open:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; border-radius: 12px; }
.fac-desc { display: none; }
@media (max-width: 1100px) { .fac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .fac-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 22px; }
    .fac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
    .fac-ph { border-radius: 8px; }
    .fac-section { margin-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { .fac-item { animation: none; } }

/* окно фасада: фото слева, название и описание справа; на телефоне — одно под другим */
.fac-lb { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }
.fac-lb[hidden] { display: none; }
.fac-lb-backdrop { position: absolute; inset: 0; background: rgba(27, 27, 25, 0.72); }
.fac-lb-box {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: min(1080px, 100%); max-height: calc(100svh - 24px);
    background: var(--bg-body); border-radius: 16px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.fac-lb-ph { background: var(--bg-body); aspect-ratio: 3 / 4; max-height: calc(100svh - 48px); }
.fac-lb-ph img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fac-lb-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 60px); }
.fac-lb-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 0.68rem; letter-spacing: 0.3em; color: var(--primary-color); }
.fac-lb-eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; opacity: 0.55; }
.fac-lb-title {
    margin: 16px 0 18px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; text-transform: uppercase;
    font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.04; letter-spacing: 0.01em; color: var(--ink);
}
.fac-lb-text { margin: 0 0 30px; max-width: 30em; font-size: 1.02rem; line-height: 1.75; color: #3E3833; }
.fac-lb-nav { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.fac-lb-arrow, .fac-lb-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--warm-line); background: rgba(245, 245, 240, 0.92); color: var(--ink);
    cursor: pointer; transition: border-color 0.25s ease, color 0.25s ease;
}
.fac-lb-arrow:hover, .fac-lb-close:hover, .fac-lb-arrow:focus-visible, .fac-lb-close:focus-visible { border-color: var(--primary-color); color: var(--primary-color); }
.fac-lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.fac-lb-count { min-width: 4.5em; text-align: center; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--warm-mute); }
body.fac-lb-open { overflow: hidden; }
@media (max-width: 767px) {
    .fac-lb { padding: 0; place-items: end center; }
    .fac-lb-box { grid-template-columns: minmax(0, 1fr); max-height: 100svh; border-radius: 16px 16px 0 0; overflow-y: auto; }
    .fac-lb-ph { aspect-ratio: auto; height: 48svh; max-height: none; }
    .fac-lb-body { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
    .fac-lb-title { margin: 12px 0 12px; font-size: 1.9rem; }
    .fac-lb-text { margin-bottom: 22px; font-size: 0.97rem; line-height: 1.65; }
    .fac-lb-ask { width: 100%; text-align: center; }
    .fac-lb-nav { margin-top: 20px; justify-content: space-between; }
}

/* --- строки «фото + текст» (uslugi-i-materialy.html: сборка, изделия из камня) --- */
.svc-row {
    display: grid; grid-template-columns: 47.6% minmax(0, 1fr); column-gap: clamp(48px, 6vw, 110px);
    align-items: center; margin-bottom: 120px;
}
.svc-row--rev .svc-ph { order: 2; }
.svc-ph { overflow: hidden; border-radius: var(--r-block, 16px); aspect-ratio: 16 / 10; background: var(--warm-line); }
.svc-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-body h2 { margin: 14px 0 18px; }
.svc-body p { margin: 0 0 30px; max-width: 32em; font-size: 1.02rem; line-height: 1.75; color: #3E3833; }
@media (max-width: 767px) {
    .svc-row { grid-template-columns: minmax(0, 1fr); row-gap: 22px; margin-bottom: 80px; }
    .svc-row--rev .svc-ph { order: 0; }
    .svc-ph { aspect-ratio: 4 / 3; }
    .svc-body .btn { width: 100%; text-align: center; }
}

/* --- отдельные операции: вертикальные ролики в ряд --- */
.ops-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px clamp(14px, 1.6vw, 24px); }
.ops-video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #1B1B19; }
.ops-item h3 {
    margin: 16px 0 6px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; text-transform: uppercase;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem); letter-spacing: 0.01em; color: var(--ink);
}
.ops-item p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--warm-mute); }
.ops-dur { margin-left: 6px; font-size: 0.8rem; color: var(--primary-color); }
@media (max-width: 900px) { .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; } }

/* --- материалы: плитки с фото --- */
.mat-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px clamp(14px, 1.6vw, 24px); }
.mat-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--warm-line); }
.mat-item h3 {
    margin: 16px 0 6px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; text-transform: uppercase;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem); letter-spacing: 0.01em; color: var(--ink);
}
.mat-item p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--warm-mute); }
@media (max-width: 1100px) { .mat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; } .mat-item img { border-radius: 8px; } }
/* «Другие направления» на новых страницах — четыре карточки: в ряд на широком экране, 2 × 2 на планшете */
.dir-other .dir-cards.dir-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; }
.dir-other .dir-cards--4 .adv-img-title { left: 20px; right: 20px; bottom: 18px; }
.dir-other .dir-cards--4 .adv-img-title h3 { font-size: clamp(1.1rem, 1.45vw, 1.4rem); }
@media (max-width: 1100px) { .dir-other .dir-cards.dir-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .dir-other .dir-cards.dir-cards--4 { grid-template-columns: 1fr; } }


/* [ВО] ВИДЕО ВМЕСТО ФОТО В РАМКЕ (20.10.2026): в «О фабрике» второе фото заменено роликом покраски.
   Ролик ведёт себя как фото: та же рамка, тот же сдвиг при прокрутке. */
.gl-ph video {
    position: absolute;
    left: 0;
    top: -9%;
    width: 100%;
    height: 118%;
    object-fit: cover;
    display: block;
}
.par-on [data-par] video { translate: 0 var(--py, 0px); }


/* =====================================================================
   [С-01Б] МЕНЮ: ВЫПАДАЮЩИЙ СПИСОК «БИБЛИОТЕКА»
   Тот же список, что у «Направлений» ([С-01]): «Библиотека проектов»
   и «Каталог фасадов». Пункты короткие, поэтому на компьютере список уже.
   На телефоне он раскрывается по кнопке со стрелкой, как у «Направлений».
   ===================================================================== */
@media (min-width: 769px) {
    .video-nav .main-nav ul.nav-sub.nav-sub--short { width: 230px; }
}


/* [ВФ] РОЛИКИ СО СТАНКОВ ВО ВЕСЬ ЭКРАН (20.10.2026)
   Ролики сняты вертикально (720×1280). В рамке на странице им задано object-fit: cover,
   и в режиме «во весь экран» браузер из-за этого растягивал ролик на всю ширину
   широкого экрана с обрезкой — картинка мылилась. Теперь во весь экран ролик показывается
   целиком: вертикально, на всю высоту экрана, по бокам — тёмные поля. */
.vs-player video:fullscreen, .ops-video:fullscreen { object-fit: contain; border-radius: 0; background: #000; }
.vs-player video:-webkit-full-screen, .ops-video:-webkit-full-screen { object-fit: contain; border-radius: 0; background: #000; }


/* [КФ-2] ОКНО ФАСАДА: КНОПКА И СТРЕЛКИ НА ПОСТОЯННОМ МЕСТЕ (21.10.2026)
   Раньше всё содержимое правой части стояло по центру по вертикали, и при листании
   (описания разной длины) кнопка «Обсудить фасад» и стрелки прыгали вверх-вниз.
   Теперь название и описание — сверху (.fac-lb-info), кнопка и стрелки — внизу (.fac-lb-actions)
   и не двигаются. На телефоне окно фиксированной высоты: фото сверху, кнопка и стрелки внизу,
   а слишком длинное описание прокручивается внутри. */
.fac-lb-body { justify-content: flex-start; }
.fac-lb-info { flex: 1 1 auto; min-height: 0; padding-top: clamp(8px, 4vh, 48px); }
.fac-lb-text { margin-bottom: 0; }
.fac-lb-actions { flex: none; margin-top: auto; padding-top: 28px; }
.fac-lb-actions .fac-lb-nav { margin-top: 26px; }
@media (max-width: 767px) {
    .fac-lb-box { display: flex; flex-direction: column; height: 94svh; max-height: 94svh; overflow: hidden; }
    .fac-lb-ph { flex: none; height: 42svh; }
    .fac-lb-body { flex: 1 1 auto; min-height: 0; }
    .fac-lb-info { overflow-y: auto; padding-top: 0; -webkit-overflow-scrolling: touch; }
    .fac-lb-actions { padding-top: 16px; }
    .fac-lb-actions .fac-lb-nav { margin-top: 14px; }
    .video-nav .main-nav .nav-has-sub.is-open > ul.nav-sub { max-height: 420px; }   /* в «Направлениях» теперь пять пунктов */
}

/* [С-01В] «Услуги и материалы» — отдельный пункт меню (21.10.2026). Пунктов стало шесть,
   поэтому на самых узких планшетах (769–840 px) меню чуть плотнее, чтобы «Главная» не упиралась в логотип. */
@media (min-width: 769px) and (max-width: 840px) {
    .video-nav .main-nav ul { gap: 8px; }
    .video-nav .main-nav .nav-link { font-size: 12px !important; letter-spacing: 0; }
    .video-nav .main-nav .contact-btn { padding: 8px 12px; }
}

/* [ОП-С] «ОТДЕЛЬНЫЕ ОПЕРАЦИИ» — СХЕМЫ ВМЕСТО ВИДЕО (21.10.2026)
   uslugi-i-materialy.html: в карточках операций вместо роликов — линейные схемы в стиле рисунков
   «Как создаётся ваш проект»: раскрой на пильном центре, нестинг (ЧПУ), кромление, присадка.
   Чёрные линии — станок и плита, коричневые — рабочая часть (пила, фреза, кромка, свёрла).
   Схемы — прямо в разметке страницы (<svg class="ops-art">), отдельных файлов нет. */
.ops-pic {
    display: grid; place-items: center; aspect-ratio: 4 / 3;
    padding: clamp(10px, 1.6vw, 22px);
    background: var(--bg-body); border: 1px solid var(--warm-line); border-radius: 12px;
}
.ops-art {
    display: block; width: 100%; height: 100%; overflow: visible;
    fill: none; stroke: var(--ink-line, #141210); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.ops-art .f { fill: var(--bg-body, #F5F5F0); }
.ops-art .sh { fill: var(--warm-line, #E3DDD4); }
.ops-art .acc { stroke: var(--primary-color, #5A3D30); }
.ops-art .accf { fill: var(--primary-color, #5A3D30); stroke: none; }
.ops-art .dash { stroke-dasharray: 5 6; stroke-width: 1.5; opacity: 0.6; }
.ops-art .kerf { stroke-width: 3.4; }
.ops-art .arr { stroke: var(--primary-color, #5A3D30); stroke-width: 1.8; }
.ops-art .bit { stroke-width: 3.2; }
.ops-art .dot { fill: var(--ink-line, #141210); stroke: none; opacity: 0.45; }
.ops-art .band { fill: var(--primary-color, #5A3D30); stroke: var(--primary-color, #5A3D30); stroke-width: 0.6; }
/* кромление: деталь в изометрии — слои плиты на торцах и отклеенная кромка-завиток */
.ops-art .core { fill: #E8DCC8; }                                   /* ДСП-основа */
.ops-art .lam { fill: var(--bg-body, #F5F5F0); stroke-width: 1.1; } /* слой ламината */
.ops-art .bandback { fill: #B89A88; stroke: #B89A88; stroke-width: 0.6; }   /* клеевая сторона кромки */
.ops-art .bedge { fill: none; stroke: #3A2820; stroke-width: 1.6; }
.ops-art .nost { stroke: none; }   /* участки завитка без контура — внахлёст, без просветов */
/* присадка: деталь в изометрии с готовыми отверстиями — чашки под петли, ряд под полкодержатели, шканты в торце */
.ops-art .holeR { fill: #E8DCC8; stroke-width: 1.6; }               /* стенка чашки */
.ops-art .holeB { fill: #3A2820; stroke: none; }                    /* дно чашки */
.ops-art .holeS { fill: #3A2820; stroke: var(--ink-line, #141210); stroke-width: 1; }   /* малые отверстия */
/* ЧПУ (21.10.2026): станок в изометрии — стол, портал, шпиндель; фрезеровка рисунка «Соты» на заготовке фасада */
.ops-art .m2 { fill: #D9D0C2; }                                     /* боковые грани станка */
.ops-art .thin { stroke-width: 1; opacity: 0.75; }                  /* мелкие детали: пазы, рёбра, кабель-канал */
.ops-art .cut { stroke-width: 2; }                                  /* уже вырезанные детали */
.ops-art .cutnow { stroke: var(--primary-color, #5A3D30); stroke-width: 3; }   /* деталь, которая режется сейчас */
.ops-art .bitc { fill: #3A2820; stroke: var(--ink-line, #141210); stroke-width: 1; }   /* фреза */
.ops-art .chip { fill: #B08A62; stroke: none; }                     /* стружка */
.ops-art .mdfT { fill: #EADFCB; }                                   /* заготовка фасада из МДФ: верх */
.ops-art .mdfE { fill: #D6BF9C; }                                   /* торцы МДФ */
.ops-art .groove { stroke: #3A2820; stroke-width: 2.4; }            /* пройденные пазы рисунка «Соты» */
.ops-art .tape { stroke: var(--primary-color, #5A3D30); stroke-width: 4; }
.ops-art .fl { fill: var(--ink-line, #141210); stroke: none; }
.ops-art .hole { fill: var(--warm-line, #E3DDD4); }
.ops-art .holef { fill: var(--ink-line, #141210); stroke: none; }
/* [ОП-С2] 22.10.2026: конструирование, склейка, криволинейная обработка, покраска */
.ops-art .dim { stroke: var(--primary-color, #5A3D30); stroke-width: 1.5; }      /* размерные линии */
.ops-art .glue { stroke: var(--primary-color, #5A3D30); stroke-width: 2.3; }     /* дорожки клея */
.ops-art .enam { fill: #8C6A58; }                                                  /* окрашенная поверхность */
.ops-art .enamE { fill: #6E5243; }                                                 /* окрашенный торец */
.ops-art .mist { fill: #6E5243; stroke: none; opacity: 0.7; }                     /* капли краски */
.ops-art .mistc { fill: #8C6A58; stroke: none; opacity: 0.16; }                   /* факел распыла */
.ops-item .ops-pic + h3 { margin-top: 16px; }
@media (max-width: 767px) { .ops-pic { border-radius: 8px; } }


/* =====================================================================
   [НП-Т] КРУПНЕЕ ТЕКСТ В НАПРАВЛЕНИЯХ (21.10.2026)
   Главная, «Основные направления»: текст справа от заголовка и текст в строках направлений — примерно на 15–20 % крупнее,
   названия направлений — на 10 %.
   Страницы направлений, блок «Что мы изготавливаем» (.dir-what-grid): названия пунктов и описания — так же крупнее.
   Вернуть прежние размеры — удалите этот раздел.
   ===================================================================== */
.gl-dirs-lead { font-size: 1.15rem; }
.gl-dir-sub { font-size: 0.8rem; }
.gl-dirs-grid .gl-dir h3 { font-size: clamp(1.8rem, 3.3vw, 3.05rem); }   /* заголовок +10 %: при большем «Административные здания» не влезает в строку */
.gl-dirs-grid .gl-dir-body { max-width: 44em; }                          /* текст во всю колонку, иначе заголовок переносится по слову */
.gl-dir-text { font-size: 1.14rem; }
.gl-dir-more { font-size: 0.8rem; }
.dir-what-grid h3 { font-size: 1.58rem; }
.dir-what-grid p { font-size: 1.1rem; }


@media (max-width: 767px) {
    .gl-dirs-lead { font-size: 1.1rem; }
    .gl-dirs-grid .gl-dir h3 { font-size: clamp(1.65rem, 7.6vw, 2.2rem); }
    .gl-dir-text { font-size: 1.1rem; }
    .dir-what-grid h3 { font-size: 1.5rem; }
    .dir-what-grid p { font-size: 1.06rem; }
}


/* =====================================================================
   [СБ-В] «СБОРКА НА ЗАКАЗ» С РОЛИКОМ (21.10.2026, uslugi-i-materialy.html)
   Справа ролик (вертикальный), левее столбик из двух кадров (крепление сверху, готовый коридор снизу),
   ещё левее вертикальный кадр разметки того же размера, что ролик. Все колонки одной высоты.
   1024–1279 px: без кадра разметки. Планшет: только ролик справа. Телефон: ролик сверху, текст под ним.
   ===================================================================== */
.svc-row--vid { grid-template-columns: minmax(0, 1fr) minmax(0, min(66%, 1240px)); column-gap: clamp(32px, 4vw, 72px); }
.svc-media {
    order: 2;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) minmax(0, 1fr);
    gap: clamp(10px, 1.2vw, 18px);
}
.svc-media figure { margin: 0; }
.svc-still { overflow: hidden; border-radius: var(--r-block, 16px); background: var(--warm-line); }
.svc-still img { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-still--tall, .svc-row--vid .svc-ph { aspect-ratio: 5 / 7; }
.svc-stack { display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 18px); }
.svc-stack .svc-still { flex: 1 1 0; min-height: 0; }
.svc-ph video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1279px) {
    .svc-row--vid { grid-template-columns: minmax(0, 1fr) minmax(0, 58%); }
    .svc-media { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); }
    .svc-still--tall { display: none; }
}
@media (max-width: 1023px) {
    .svc-row--vid { grid-template-columns: minmax(0, 1fr) minmax(240px, 40%); }
    .svc-media { grid-template-columns: minmax(0, 1fr); }
    .svc-stack { display: none; }
}
@media (max-width: 767px) {
    .svc-row--vid { grid-template-columns: minmax(0, 1fr); }
    .svc-media { order: 0; }
    .svc-row--vid .svc-ph { aspect-ratio: 4 / 5; }
}


/* =====================================================================
   [НП-У] «УСЛУГИ И МАТЕРИАЛЫ» НА ГЛАВНОЙ — ОТДЕЛЬНЫЙ БЛОК ПОД НАПРАВЛЕНИЯМИ (21.10.2026)
   Как блок «Мы превращаем проект в готовое пространство» ([ЦФ2]): справа фото шпона без затемнения
   до правого края экрана, левый край фото плавно растворяется в фоне; слева тёмный текст и кнопка.
   Телефон: фото сверху во всю ширину, нижний край уходит в фон, под ним текст.
   ===================================================================== */
.gl-svc {
    position: relative; isolation: isolate;
    display: flex; align-items: center;
    min-height: clamp(380px, 34vw, 540px);
    margin-top: clamp(56px, 6vw, 96px);
}
.gl-svc-ph {
    position: absolute; top: 0; bottom: 0; z-index: -1;
    right: calc((100% - 100vw) / 2);                    /* до правого края экрана */
    width: calc(58% + (100vw - 100%) / 2);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.1) 14%, rgba(0,0,0,.34) 28%, rgba(0,0,0,.74) 44%, #000 60%);
            mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.1) 14%, rgba(0,0,0,.34) 28%, rgba(0,0,0,.74) 44%, #000 60%);
}
.gl-svc-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.gl-svc-body { position: relative; padding: clamp(32px, 4vw, 56px) 0; max-width: min(46%, 40em); }
.gl-svc-sub { margin: 0; font-size: 0.8rem; letter-spacing: 0.08em; line-height: 1.6; text-transform: uppercase; color: var(--primary-color); }
.gl-svc h3 {
    margin: 12px 0 14px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; text-transform: uppercase;
    font-size: clamp(2rem, 3.3vw, 3.05rem); line-height: 1.06; letter-spacing: 0.01em; color: var(--ink, #141210);
}
.gl-svc-text { margin: 0; max-width: 32em; font-size: 1.14rem; line-height: 1.7; color: var(--warm-mute); }
.gl-svc-btn { margin-top: 28px; }
@media (max-width: 1100px) {
    .gl-svc-body { max-width: 52%; }
    .gl-svc-ph { width: calc(52% + (100vw - 100%) / 2); }
}
@media (max-width: 767px) {
    .gl-svc { display: block; min-height: 0; margin-top: 48px; }
    .gl-svc-ph {
        position: relative; z-index: 0;
        right: auto; width: auto; height: 0; padding-bottom: 72%;
        margin: 0 calc((100% - 100vw) / 2);              /* фото во всю ширину экрана */
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.45) 76%, transparent 100%);
                mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.45) 76%, transparent 100%);
    }
    .gl-svc-ph img { position: absolute; inset: 0; object-position: 85% 50%; }
    .gl-svc-body { max-width: none; padding: 0; margin-top: -24px; }
    .gl-svc h3 { font-size: clamp(1.65rem, 7.6vw, 2.2rem); margin: 8px 0 10px; }
    .gl-svc-text { font-size: 1.1rem; }
    .gl-svc-btn { margin-top: 22px; }
}


/* =====================================================================
   [КФ-Ц] КАТАЛОГ ФАСАДОВ: ЦВЕТА ОДНОГО ФАСАДА (21.10.2026)
   Под названием фасада — кружки цветов (.fac-colors); нажали — меняется фото на плитке и в окне.
   Кнопка 28 px (удобно пальцем), сам кружок внутри — 16 px; у выбранного цвета тёмное кольцо.
   ===================================================================== */
.fac-colors { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0 0 -6px; }
/* 22.10.2026: фасад на фото стоит с полями по бокам (~7–13% ширины), поэтому название и кружки сдвинуты
   на величину левого поля (--inset у <li class="fac-item">) — встают ровно под левый край фасада. */
.fac-name, .fac-colors { padding-left: var(--inset, 10%); }
.fac-color {
    position: relative; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
    background: none; cursor: pointer;
}
.fac-color::before {
    content: ""; position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--c); box-shadow: inset 0 0 0 1px rgba(20, 18, 16, 0.22);
}
.fac-color.is-on::before { box-shadow: inset 0 0 0 1px rgba(20, 18, 16, 0.22), 0 0 0 2px var(--bg-body, #F5F5F0), 0 0 0 3px var(--ink, #141210); }
.fac-color:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 0; }
.fac-lb-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: -4px 0 18px -6px; }
.fac-lb-cnote { flex-basis: 100%; margin: 4px 0 0 6px; font-size: 0.78rem; color: var(--warm-mute); opacity: 0.85; }
.fac-lb-colors[hidden] { display: none; }
.fac-lb-colors .fac-color { width: 34px; height: 34px; }
.fac-lb-colors .fac-color::before { left: 7px; top: 7px; width: 20px; height: 20px; }
.fac-lb-cname { margin-left: 8px; font-size: 0.9rem; color: var(--warm-mute); }


/* =====================================================================
   [КФ-ЗУМ] ФАСАД КРУПНО (22.10.2026)
   В окне фасада поверх фото — кнопка .fac-lb-zoom (видна только у фасадов с data-zoom)
   с ярлыком «Рассмотреть». По ней открывается .fac-zoom на весь экран: фото на том же
   светлом фоне, что и снимки фасадов, кнопки «−», «+», «целиком» справа внизу (на телефоне — по центру).
   ===================================================================== */
.fac-lb-ph { position: relative; }
.fac-lb-zoom {
    position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%;
    padding: 0; border: 0; background: none; cursor: zoom-in;
}
.fac-lb-zoom[hidden] { display: none; }
.fac-lb-zoom:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -6px; }
.fac-lb-zoom-tag {
    position: absolute; left: 16px; bottom: 16px;
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px;
    border: 1px solid var(--warm-line); border-radius: 999px; background: rgba(245, 245, 240, 0.92);
    font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink);
    transition: border-color 0.25s ease, color 0.25s ease;
}
.fac-lb-zoom:hover .fac-lb-zoom-tag, .fac-lb-zoom:focus-visible .fac-lb-zoom-tag { border-color: var(--primary-color); color: var(--primary-color); }

.fac-zoom { position: fixed; inset: 0; z-index: 2100; background: var(--bg-body); }
.fac-zoom[hidden] { display: none; }
.fac-zoom-stage {
    position: absolute; inset: 0; overflow: hidden; touch-action: none;
    cursor: zoom-in; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.fac-zoom.is-zoomed .fac-zoom-stage { cursor: grab; }
.fac-zoom.is-zoomed .fac-zoom-stage.is-drag { cursor: grabbing; }
.fac-zoom-stage img {
    position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0;
    will-change: transform; pointer-events: none; -webkit-user-drag: none;
}
.fac-zoom-stage img.is-anim { transition: transform 0.22s ease; }
.fac-zoom-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.fac-zoom-bar {
    position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 2;
    display: flex; gap: 10px;
}
.fac-zoom-bar .fac-lb-arrow:disabled { opacity: 0.4; cursor: default; border-color: var(--warm-line); color: var(--ink); }
.fac-zoom-hint {
    position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 1;
    transform: translateX(-50%); margin: 0; padding: 9px 16px; max-width: calc(100% - 32px);
    border: 1px solid var(--warm-line); border-radius: 999px; background: rgba(245, 245, 240, 0.92);
    font-size: 0.82rem; color: var(--warm-mute); text-align: center; pointer-events: none;
    transition: opacity 0.4s ease;
}
.fac-zoom-hint.is-off { opacity: 0; }
@media (max-width: 767px) {
    .fac-lb-zoom-tag { left: 12px; bottom: 12px; height: 36px; font-size: 0.78rem; }
    .fac-zoom-bar { right: auto; left: 50%; transform: translateX(-50%); }
    .fac-zoom-hint { bottom: calc(80px + env(safe-area-inset-bottom)); width: max-content; }
}
@media (prefers-reduced-motion: reduce) {
    .fac-zoom-stage img.is-anim { transition: none; }
    .fac-zoom-hint { transition: none; }
}


/* =====================================================================
   [ШП] УСЛУГИ: СТРОКА «ШПОН И 3D-ШПОН» (22.10.2026)
   Кнопка «Узнать подробнее» и рядом ссылка «Фасады в шпоне» (в каталог, раздел «Шпон»).
   ===================================================================== */
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.svc-more {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 0;
    font-size: 0.95rem; color: var(--primary-color); text-decoration: none;
    border-bottom: 1px solid currentColor; transition: opacity 0.25s ease;
}
.svc-more::after { content: "→"; }
.svc-more:hover, .svc-more:focus-visible { opacity: 0.7; }
#catalog { scroll-margin-top: 90px; }
@media (max-width: 767px) {
    .svc-actions { flex-direction: column; align-items: stretch; }
    .svc-more { align-self: center; }
    #catalog { scroll-margin-top: 70px; }
}
