        :root {
            --primary: #2c3e41;
            --primary-dark: #1e2a2c;
            --accent: #f8972e;
            --accent-dark: #e08625;
            --light: #2c3e41;
            --light-200: '#384a4d';
            --dark: #ffffff;
            --dark-900: '#f8f9fa';
        }

        body {
            background-color: var(--light);
            color: var(--dark);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* ===== Единый непрерывный видео-фон на весь сайт (лес/горы) =====
           Фиксированный на весь экран, за всем контентом (отрицательный z-index —
           обычные секции без своего z-index/position рисуются поверх него
           автоматически, по правилам CSS stacking, без доп. z-index на каждой секции).
           Секции сделаны прозрачными (см. правки в HTML), поэтому видео видно
           непрерывно по всей странице, без "блоков"-разделителей между секциями. */
        .site-bg-video {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            object-fit: cover;
            z-index: -2;
            pointer-events: none;
            animation: site-bg-breathe 32s ease-in-out infinite;
        }

        @keyframes site-bg-breathe {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.08);
            }
        }

        .site-bg-overlay {
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background: linear-gradient(160deg, rgba(30, 42, 44, 0.88) 0%, rgba(44, 62, 65, 0.78) 50%, rgba(30, 42, 44, 0.9) 100%);
        }

        @media (prefers-reduced-motion: reduce) {
            .site-bg-video {
                animation: none !important;
                transform: none !important;
            }
        }

        /* Текстовые блоки без своей карточки (About), которым нужна читаемость
           поверх непрерывного видео-фона — то же "стекло", что и у .glass-advantage. */
        .glass-panel {
            position: relative;
            background: linear-gradient(155deg, rgba(56, 74, 77, 0.72) 0%, rgba(44, 62, 65, 0.85) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-radius: 20px;
        }

        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }

            .glass-header::after,
            .section-accent-line {
                animation: none !important;
            }

            #preloader .preloader-bg,
            #preloader .preloader-particles span,
            #preloader .preloader-progress,
            #preloader .preloader-tagline,
            .preloader-house-body,
            .preloader-house-roof,
            .preloader-house-door,
            .preloader-house-window,
            .preloader-crane-trolley,
            .preloader-crane-line,
            .preloader-crane-load {
                animation: none !important;
            }

            #preloader .preloader-progress {
                width: 100% !important;
                opacity: 0.6;
            }

            #preloader .preloader-tagline {
                opacity: 1 !important;
            }

            .preloader-house-body,
            .preloader-house-roof,
            .preloader-house-door,
            .preloader-house-window {
                opacity: 1 !important;
                transform: none !important;
            }

            .preloader-crane-load {
                opacity: 0 !important;
            }

            .chatbot-toggle::before,
            .chatbot-toggle::after,
            .chatbot-modal .chatbot-deco span,
            .chatbot-header::after {
                animation: none !important;
            }

            .chatbot-header {
                animation: none !important;
            }

            .chatbot-avatar i,
            .chatbot-toggle i {
                animation: none !important;
            }

            .lead-modal,
            .lead-modal-box {
                transition: none !important;
            }

            .lead-modal.is-open .lead-modal-box {
                transform: none !important;
            }
        }

        .scroll-reveal {
            opacity: 0;
            transform: translateY(32px);
            transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .scroll-reveal.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .stagger-children.is-visible>* {
            animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
        }

        .stagger-children.is-visible>*:nth-child(1) {
            animation-delay: 0.05s;
        }

        .stagger-children.is-visible>*:nth-child(2) {
            animation-delay: 0.12s;
        }

        .stagger-children.is-visible>*:nth-child(3) {
            animation-delay: 0.19s;
        }

        .stagger-children.is-visible>*:nth-child(4) {
            animation-delay: 0.26s;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(24px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===== Направленное появление при скролле (главная страница, js/homepage-reveal.js) ===== */
        [data-reveal] {
            opacity: 0;
            transition: opacity 0.6s cubic-bezier(0.21, 0.47, 0.32, 0.98), transform 0.6s cubic-bezier(0.21, 0.47, 0.32, 0.98);
            will-change: transform, opacity;
        }

        [data-reveal="up"] {
            transform: translateY(36px);
        }

        [data-reveal="left"] {
            transform: translateX(-56px);
        }

        [data-reveal="right"] {
            transform: translateX(56px);
        }

        [data-reveal="scale"] {
            transform: scale(0.88);
        }

        [data-reveal="up-scale"] {
            transform: translateY(40px) scale(0.96);
        }

        [data-reveal="left-scale"] {
            transform: translateX(-48px) scale(0.94);
        }

        [data-reveal="right-scale"] {
            transform: translateX(48px) scale(0.94);
        }

        [data-reveal="down"] {
            transform: translateY(-36px);
        }

        [data-reveal="up-left"] {
            transform: translate(-52px, 40px) scale(0.95);
        }

        [data-reveal="up-right"] {
            transform: translate(52px, 40px) scale(0.95);
        }

        [data-reveal="down-left"] {
            transform: translate(-52px, -40px) scale(0.95);
        }

        [data-reveal="down-right"] {
            transform: translate(52px, -40px) scale(0.95);
        }

        [data-reveal].is-visible {
            opacity: 1;
            transform: translate(0, 0) scale(1);
            transition: opacity 1.1s cubic-bezier(0.21, 0.47, 0.32, 0.98), transform 1.1s cubic-bezier(0.21, 0.47, 0.32, 0.98);
        }

        @media (prefers-reduced-motion: reduce) {
            [data-reveal] {
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
            }
        }

        /* ===== Заголовки, появляющиеся по словам снизу вверх (.word-reveal) ===== */
        .word-reveal__word {
            display: inline-block;
            overflow: hidden;
            vertical-align: top;
        }

        .word-reveal__word-inner {
            display: inline-block;
            transform: translateY(115%);
            transition: transform 0.75s cubic-bezier(0.21, 0.47, 0.32, 0.98);
            will-change: transform;
        }

        .word-reveal.is-visible .word-reveal__word-inner {
            transform: translateY(0);
        }

        @media (prefers-reduced-motion: reduce) {
            .word-reveal__word-inner {
                transform: none !important;
                transition: none !important;
            }
        }

        @keyframes floatSlow {

            0%,
            100% {
                transform: translate(0, 0) scale(1);
            }

            50% {
                transform: translate(12px, -18px) scale(1.05);
            }
        }

        @keyframes pulseGlow {

            0%,
            100% {
                opacity: 0.35;
            }

            50% {
                opacity: 0.65;
            }
        }

        .hero-glow {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            pointer-events: none;
            z-index: 0;
            animation: floatSlow 14s ease-in-out infinite, pulseGlow 6s ease-in-out infinite;
        }

        .hero-glow--1 {
            width: min(55vw, 420px);
            height: min(55vw, 420px);
            top: 10%;
            left: 5%;
            background: radial-gradient(circle, rgba(248, 151, 46, 0.35) 0%, transparent 70%);
        }

        .hero-glow--2 {
            width: min(50vw, 380px);
            height: min(50vw, 380px);
            bottom: 15%;
            right: 8%;
            background: radial-gradient(circle, rgba(56, 74, 77, 0.9) 0%, transparent 70%);
            animation-delay: -4s;
        }

        .text-gradient-hero {
            background: linear-gradient(120deg, #ffffff 0%, #f8972e 45%, #e9ecef 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: shimmerText 8s ease-in-out infinite;
        }

        @keyframes shimmerText {

            0%,
            100% {
                background-position: 0% center;
            }

            50% {
                background-position: 100% center;
            }
        }

        .glass-header {
            position: relative;
            overflow: hidden;
            background: linear-gradient(125deg,
                    rgba(255, 255, 255, 0.88) 0%,
                    rgba(255, 255, 255, 0.65) 45%,
                    rgba(248, 250, 252, 0.82) 100%) !important;
            backdrop-filter: blur(22px) saturate(1.35);
            -webkit-backdrop-filter: blur(22px) saturate(1.35);
            border-bottom: 1px solid rgba(255, 255, 255, 0.55);
            box-shadow:
                0 8px 32px rgba(30, 42, 44, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.85);
        }

        .glass-header::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse 120% 80% at 20% -20%, rgba(248, 151, 46, 0.12), transparent 50%),
                radial-gradient(ellipse 100% 60% at 100% 100%, rgba(56, 74, 77, 0.08), transparent 45%);
            pointer-events: none;
            z-index: 0;
        }

        .glass-header::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(105deg,
                    transparent 35%,
                    rgba(255, 255, 255, 0.45) 50%,
                    transparent 65%);
            background-size: 220% 100%;
            animation: glass-shimmer 12s ease-in-out infinite;
            pointer-events: none;
            opacity: 0.55;
            z-index: 0;
        }

        @keyframes glass-shimmer {

            0%,
            100% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }
        }

        .glass-header>.container {
            position: relative;
            z-index: 1;
        }

        .glass-header #mobile-menu {
            position: relative;
            z-index: 1;
        }

        .header-brand-text {
            color: #1e2a2c !important;
        }

        .header-nav-link {
            color: #1e2a2c !important;
            font-weight: 600;
            letter-spacing: 0.01em;
        }

        .header-nav-link:hover {
            color: var(--accent) !important;
        }

        .mobile-menu {
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.5);
            box-shadow: 0 12px 40px rgba(30, 42, 44, 0.12);
        }

        .card-hover-lift {
            transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
        }

        .card-hover-lift:hover,
        .card-hover-lift.is-carousel-active {
            transform: translateY(-6px);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
        }

        .section-accent-line {
            width: 48px;
            height: 4px;
            border-radius: 9999px;
            background: linear-gradient(90deg, var(--accent), rgba(248, 151, 46, 0.2));
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 1rem;
            animation: section-accent-pulse 3.5s ease-in-out infinite;
        }

        @keyframes section-accent-pulse {

            0%,
            100% {
                opacity: 1;
                transform: scaleX(1);
                box-shadow: 0 0 0 0 rgba(248, 151, 46, 0.35);
            }

            50% {
                opacity: 0.92;
                transform: scaleX(1.12);
                box-shadow: 0 0 20px rgba(248, 151, 46, 0.25);
            }
        }

        .house-card .relative img,
        .house-card .project-preview-img {
            transition: transform 0.65s cubic-bezier(0.21, 0.47, 0.32, 0.98);
        }

        .house-card:hover .relative img,
        .house-card:hover .project-preview-img,
        .house-card.is-carousel-active .relative img,
        .house-card.is-carousel-active .project-preview-img {
            transform: scale(1.08);
        }

        .project-preview-carousel {
            position: relative;
        }

        .project-carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 25;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: none;
            background: rgba(44, 62, 65, 0.55);
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .project-carousel-nav:hover {
            background: rgba(248, 151, 46, 0.95);
            color: #fff;
            transform: translateY(-50%) scale(1.06);
        }

        .project-carousel-nav:focus {
            outline: 2px solid rgba(248, 151, 46, 0.8);
            outline-offset: 2px;
        }

        .project-carousel-nav.prev {
            left: 10px;
        }

        .project-carousel-nav.next {
            right: 10px;
        }

        .glass-advantage {
            position: relative;
            overflow: hidden;
            background: linear-gradient(155deg, rgba(69, 87, 90, 0.55) 0%, rgba(56, 74, 77, 0.75) 100%) !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.35s ease;
        }

        .glass-advantage::before {
            content: '';
            position: absolute;
            inset: -40%;
            background: radial-gradient(circle at 30% 20%, rgba(248, 151, 46, 0.14), transparent 45%);
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.45s ease;
        }

        .glass-advantage:hover::before {
            opacity: 1;
        }

        .glass-advantage:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
            border-color: rgba(248, 151, 46, 0.25) !important;
        }

        .hero {
            position: relative;
            overflow: hidden;
            height: 100vh;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(44, 62, 65, 0.85) 0%, rgba(44, 62, 65, 0.6) 100%);
            z-index: 0;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .neumorphic-card {
            background: linear-gradient(145deg, rgba(69, 87, 90, 0.88) 0%, rgba(56, 74, 77, 0.95) 100%);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow:
                12px 12px 28px rgba(15, 22, 24, 0.45),
                -8px -8px 24px rgba(90, 110, 115, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.35s ease;
        }

        .neumorphic-card:hover,
        .neumorphic-card.is-carousel-active {
            transform: translateY(-8px);
            border-color: rgba(248, 151, 46, 0.35);
            box-shadow:
                10px 16px 40px rgba(15, 22, 24, 0.5),
                0 0 0 1px rgba(248, 151, 46, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }

        /* Карточка проекта на главной.
           Внешняя ссылка (.house-card) отвечает только за появление при скролле и
           служит неподвижной областью наведения. Двигается при наведении внутренняя
           обёртка (.house-card-inner): так эффекты наведения не наследуют длинную
           (1,1 с) анимацию появления и её задержку, а карточка не «убегает» из-под
           курсора. Анимируются только transform и opacity — их браузер считает на
           видеокарте, без перерисовки. Размытия фона (backdrop-filter) здесь нет:
           поверх фонового видео оно пересчитывалось на каждом кадре. */
        .house-card {
            position: relative;
            display: block;
            perspective: 1100px;
            border-radius: 20px;
            cursor: pointer;
        }

        /* Свечение при наведении: готовая тень, у которой меняется только прозрачность */
        .house-card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 20px;
            box-shadow: 0 26px 54px rgba(10, 16, 18, 0.55), 0 0 0 1px rgba(248, 151, 46, 0.14);
            opacity: 0;
            transition: opacity 0.35s ease;
            pointer-events: none;
        }

        .house-card:hover::before,
        .house-card:focus-visible::before,
        .house-card.is-carousel-active::before {
            opacity: 1;
        }

        .house-card-inner {
            --tilt-x: 0deg;
            --tilt-y: 0deg;
            position: relative;
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: linear-gradient(145deg, rgb(66, 84, 87) 0%, rgb(55, 73, 76) 100%);
            box-shadow:
                12px 12px 28px rgba(15, 22, 24, 0.45),
                -8px -8px 24px rgba(90, 110, 115, 0.15);
            transform: translate3d(0, 0, 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
            transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
            will-change: transform;
            backface-visibility: hidden;
        }

        .house-card:hover .house-card-inner,
        .house-card:focus-visible .house-card-inner,
        .house-card.is-carousel-active .house-card-inner {
            transform: translate3d(0, -6px, 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
        }

        /* Пока курсор над карточкой, наклон идёт за ним почти без запаздывания */
        .house-card:hover .house-card-inner {
            transition-duration: 0.22s;
            transition-timing-function: ease-out;
        }

        /* Оранжевая рамка при наведении — отдельным слоем, тоже через прозрачность */
        .house-card-inner::after {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 30;
            border-radius: inherit;
            box-shadow: inset 0 0 0 1px rgba(248, 151, 46, 0.45);
            opacity: 0;
            transition: opacity 0.35s ease;
            pointer-events: none;
        }

        .house-card:hover .house-card-inner::after,
        .house-card:focus-visible .house-card-inner::after,
        .house-card.is-carousel-active .house-card-inner::after {
            opacity: 1;
        }

        /* Текстовая часть: цена всегда у нижнего края, даже если описание в две строки */
        .house-card-inner > .p-6 {
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
        }

        .house-card-inner > .p-6 > .flex {
            margin-top: auto;
        }

        .house-card .project-preview-carousel {
            overflow: hidden;
        }

        .house-card .project-preview-img {
            will-change: transform;
            backface-visibility: hidden;
        }

        /* Стрелки листания фото: плотная подложка вместо размытия */
        .house-card .project-carousel-nav {
            background: rgba(30, 42, 44, 0.78);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        .house-card .project-carousel-nav:hover {
            background: rgba(248, 151, 46, 0.95);
        }

        @media (prefers-reduced-motion: reduce) {

            .house-card-inner,
            .house-card:hover .house-card-inner,
            .house-card.is-carousel-active .house-card-inner {
                transform: none;
                transition: none;
            }
        }

        .advantage-icon {
            transition: all 0.4s ease;
            transform-origin: center;
        }

        .advantage-item:hover .advantage-icon {
            transform: scale(1.2) rotate(10deg);
            color: var(--accent);
        }

        .btn-accent {
            background: var(--accent);
            color: white;
            border-radius: 50px;
            padding: 12px 30px;
            font-weight: 600;
            position: relative;
            overflow: hidden;
            transition: all 0.4s ease;
            border: none;
            cursor: pointer;
        }

        .btn-accent:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(248, 151, 46, 0.3);
        }

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

        .btn-accent:hover::before {
            left: 100%;
        }

        .house-card:hover .house-overlay,
        .house-card:focus-visible .house-overlay,
        .house-card.is-carousel-active .house-overlay {
            opacity: 1;
            transform: translateY(0);
        }

        .house-overlay {
            position: absolute;
            inset: 0;
            z-index: 15;
            display: flex;
            align-items: flex-end;
            padding: 1.5rem;
            background: linear-gradient(180deg, rgba(30, 42, 44, 0) 40%, rgba(20, 28, 30, 0.94) 100%);
            color: #fff;
            pointer-events: none;
            transition: opacity 0.45s cubic-bezier(0.21, 0.47, 0.32, 0.98), transform 0.45s cubic-bezier(0.21, 0.47, 0.32, 0.98);
            opacity: 0;
            transform: translateY(20px);
        }

        .house-overlay__title {
            font-weight: 700;
            font-size: 1.15rem;
            margin-bottom: 0.25rem;
        }

        .house-overlay__meta {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.85);
        }

        @media (prefers-reduced-motion: reduce) {
            .house-overlay {
                transition: opacity 0.3s ease !important;
                transform: none !important;
            }
        }

        .parallax {
            background-attachment: fixed;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in {
            animation: fadeIn 0.8s ease forwards;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            overflow-y: auto;
        }

        .modal-content {
            position: relative;
            max-width: 1000px;
            margin: 50px auto;
            background: #384a4d;
            border-radius: 15px;
            padding: 40px;
            color: #ffffff;
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            color: #ffffff;
            font-size: 30px;
            cursor: pointer;
        }

        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }

        .team-member {
            text-align: center;
        }

        .member-photo {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 15px;
            border: 3px solid var(--accent);
        }

        .project-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            overflow-y: auto;
        }

        .project-content {
            position: relative;
            max-width: 1000px;
            margin: 50px auto;
            background: #384a4d;
            border-radius: 15px;
            padding: 40px;
            color: #ffffff;
        }

        .project-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .project-gallery img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 10px;
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        .project-gallery img:hover {
            transform: scale(1.05);
        }

        .project-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 30px;
        }

        .project-features {
            background: #45575a;
            padding: 20px;
            border-radius: 10px;
        }

        .feature-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #4a6266;
        }

        @keyframes chatbot-toggle-pulse {
            0% {
                transform: scale(1);
                opacity: 0.65;
            }

            100% {
                transform: scale(1.35);
                opacity: 0;
            }
        }

        @keyframes chatbot-robot {
            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-3px);
            }
        }

        @keyframes chatbot-float-dot {
            0%,
            100% {
                transform: translate(0, 0);
                opacity: 0.35;
            }

            50% {
                opacity: 0.85;
            }
        }

        @keyframes chatbot-msg-in {
            from {
                opacity: 0;
                transform: translateY(12px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes chatbot-header-shine {
            0% {
                background-position: 0% 50%;
            }

            100% {
                background-position: 200% 50%;
            }
        }

        .chatbot-modal {
            display: block;
            position: fixed;
            bottom: 28px;
            right: 28px;
            width: min(360px, calc(100vw - 40px));
            height: min(520px, calc(100vh - 120px));
            z-index: 1000;
            overflow: hidden;
            border-radius: 20px;
            visibility: hidden;
            opacity: 0;
            pointer-events: none;
            transform: translateY(28px) scale(0.94);
            transition:
                opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.45s;
            background:
                linear-gradient(155deg, rgba(26, 37, 39, 0.97) 0%, rgba(44, 62, 65, 0.96) 45%, rgba(30, 42, 44, 0.97) 100%);
            border: 1px solid rgba(248, 151, 46, 0.28);
            box-shadow:
                0 28px 56px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.06) inset,
                0 0 48px rgba(248, 151, 46, 0.14);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .chatbot-modal.active {
            visibility: visible;
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0) scale(1);
        }

        .chatbot-deco {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .chatbot-deco span {
            position: absolute;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: rgba(248, 151, 46, 0.5);
            box-shadow: 0 0 10px rgba(248, 151, 46, 0.35);
            animation: chatbot-float-dot 5s ease-in-out infinite;
        }

        .chatbot-deco span:nth-child(1) {
            left: 12%;
            top: 22%;
            animation-delay: 0s;
        }

        .chatbot-deco span:nth-child(2) {
            left: 78%;
            top: 18%;
            animation-delay: 0.7s;
        }

        .chatbot-deco span:nth-child(3) {
            left: 55%;
            top: 45%;
            animation-delay: 1.4s;
        }

        .chatbot-deco span:nth-child(4) {
            left: 20%;
            top: 62%;
            animation-delay: 2s;
        }

        .chatbot-deco span:nth-child(5) {
            left: 88%;
            top: 58%;
            animation-delay: 2.6s;
        }

        .chatbot-deco span:nth-child(6) {
            left: 42%;
            top: 78%;
            animation-delay: 3.2s;
        }

        .chatbot-header {
            position: relative;
            z-index: 1;
            color: white;
            padding: 14px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(120deg, var(--primary) 0%, #243a3e 40%, var(--primary-dark) 100%);
            background-size: 200% 100%;
            animation: chatbot-header-shine 8s ease-in-out infinite alternate;
            border-bottom: 1px solid rgba(248, 151, 46, 0.2);
        }

        .chatbot-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(248, 151, 46, 0.5), transparent);
            opacity: 0.7;
        }

        .chatbot-title {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .chatbot-title-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .chatbot-name {
            font-weight: 700;
            letter-spacing: 0.02em;
            font-size: 1rem;
        }

        .chatbot-status {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.75);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .chatbot-status::before {
            content: '';
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #5ddf8a;
            box-shadow: 0 0 8px rgba(93, 223, 138, 0.75);
        }

        .chatbot-avatar {
            width: 42px;
            height: 42px;
            background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 14px rgba(248, 151, 46, 0.4);
            border: 2px solid rgba(255, 255, 255, 0.15);
        }

        .chatbot-avatar i {
            animation: chatbot-robot 2.2s ease-in-out infinite;
        }

        .close-chatbot {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.25s, transform 0.2s;
        }

        .close-chatbot:hover {
            background: rgba(248, 151, 46, 0.25);
            transform: scale(1.05);
        }

        .chatbot-body {
            position: relative;
            z-index: 1;
            height: calc(100% - 120px);
            overflow-y: auto;
            overflow-x: hidden;
            padding: 16px;
            background:
                radial-gradient(ellipse 80% 50% at 50% 0%, rgba(248, 151, 46, 0.06) 0%, transparent 55%),
                linear-gradient(180deg, rgba(56, 74, 77, 0.55) 0%, rgba(44, 62, 65, 0.85) 100%);
            scrollbar-width: thin;
            scrollbar-color: rgba(248, 151, 46, 0.45) rgba(0, 0, 0, 0.15);
        }

        .chatbot-body::-webkit-scrollbar {
            width: 6px;
        }

        .chatbot-body::-webkit-scrollbar-thumb {
            background: rgba(248, 151, 46, 0.35);
            border-radius: 6px;
        }

        .chat-message {
            margin-bottom: 14px;
            max-width: 88%;
            padding: 12px 16px;
            border-radius: 18px;
            line-height: 1.45;
            position: relative;
            animation: chatbot-msg-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        .bot-message {
            background: rgba(30, 42, 44, 0.92);
            color: #f5f8f9;
            border-top-left-radius: 6px;
            align-self: flex-start;
            border: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        }

        .bot-message::before {
            content: '';
            position: absolute;
            left: 0;
            top: 10px;
            bottom: 10px;
            width: 3px;
            border-radius: 2px;
            background: linear-gradient(180deg, var(--accent), var(--accent-dark));
            opacity: 0.85;
        }

        .user-message {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
            color: white;
            border-top-right-radius: 6px;
            margin-left: auto;
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 6px 18px rgba(248, 151, 46, 0.25);
        }

        .chatbot-footer {
            position: absolute;
            bottom: 0;
            width: 100%;
            z-index: 2;
            padding: 12px 14px;
            background: linear-gradient(180deg, rgba(36, 50, 52, 0.92) 0%, rgba(30, 42, 44, 0.98) 100%);
            border-top: 1px solid rgba(248, 151, 46, 0.15);
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .chatbot-input {
            flex: 1;
            padding: 11px 16px;
            border: 1px solid rgba(248, 151, 46, 0.2);
            border-radius: 24px;
            outline: none;
            background: rgba(69, 87, 90, 0.55);
            color: #ffffff;
            transition: border-color 0.25s, box-shadow 0.25s;
        }

        .chatbot-input::placeholder {
            color: rgba(255, 255, 255, 0.45);
        }

        .chatbot-input:focus {
            border-color: rgba(248, 151, 46, 0.55);
            box-shadow: 0 0 0 3px rgba(248, 151, 46, 0.12);
        }

        .chatbot-send {
            flex-shrink: 0;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.1);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        }

        .chatbot-send:last-of-type {
            background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .chatbot-send:hover {
            transform: scale(1.08);
            box-shadow: 0 6px 18px rgba(248, 151, 46, 0.35);
        }

        .chatbot-toggle {
            position: fixed;
            bottom: 28px;
            right: 28px;
            width: 62px;
            height: 62px;
            background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 999;
            transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
            border: 2px solid rgba(255, 255, 255, 0.2);
            box-shadow:
                0 10px 28px rgba(248, 151, 46, 0.45),
                0 0 0 1px rgba(0, 0, 0, 0.1) inset;
        }

        .chatbot-toggle::before,
        .chatbot-toggle::after {
            content: '';
            position: absolute;
            inset: -6px;
            border-radius: 50%;
            border: 2px solid rgba(248, 151, 46, 0.55);
            animation: chatbot-toggle-pulse 2.4s ease-out infinite;
            pointer-events: none;
        }

        .chatbot-toggle::after {
            animation-delay: 1.2s;
        }

        .chatbot-toggle i {
            font-size: 1.35rem;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
            animation: chatbot-robot 2.5s ease-in-out infinite;
        }

        .chatbot-toggle:hover {
            transform: scale(1.08);
            box-shadow:
                0 14px 36px rgba(248, 151, 46, 0.55),
                0 0 24px rgba(248, 151, 46, 0.3);
        }

        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(145deg, #1a2527 0%, var(--primary) 45%, #243538 100%);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
            overflow: hidden;
        }

        .preloader-bg {
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 90% 70% at 15% 25%, rgba(248, 151, 46, 0.18) 0%, transparent 55%),
                radial-gradient(ellipse 80% 60% at 85% 75%, rgba(56, 74, 77, 0.45) 0%, transparent 50%),
                radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.25) 0%, transparent 45%);
            animation: preloader-bg-breathe 7s ease-in-out infinite;
        }

        @keyframes preloader-bg-breathe {

            0%,
            100% {
                opacity: 1;
                transform: scale(1);
            }

            50% {
                opacity: 0.92;
                transform: scale(1.06);
            }
        }

        .preloader-particles {
            position: absolute;
            inset: 0;
            overflow: hidden;
            pointer-events: none;
            z-index: 1;
        }

        .preloader-particles span {
            position: absolute;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: rgba(248, 151, 46, 0.55);
            box-shadow: 0 0 12px rgba(248, 151, 46, 0.35);
            animation: preloader-particle-float 5s ease-in-out infinite;
        }

        .preloader-particles span:nth-child(1) {
            top: 18%;
            left: 12%;
            animation-delay: 0s;
        }

        .preloader-particles span:nth-child(2) {
            top: 65%;
            left: 8%;
            animation-delay: 0.8s;
        }

        .preloader-particles span:nth-child(3) {
            top: 22%;
            right: 15%;
            animation-delay: 1.4s;
        }

        .preloader-particles span:nth-child(4) {
            bottom: 20%;
            right: 22%;
            animation-delay: 2s;
        }

        .preloader-particles span:nth-child(5) {
            top: 48%;
            left: 20%;
            animation-delay: 2.6s;
            width: 3px;
            height: 3px;
            opacity: 0.7;
        }

        .preloader-particles span:nth-child(6) {
            bottom: 35%;
            left: 45%;
            animation-delay: 3.2s;
        }

        @keyframes preloader-particle-float {

            0%,
            100% {
                transform: translate(0, 0) scale(1);
                opacity: 0.35;
            }

            50% {
                transform: translate(12px, -18px) scale(1.4);
                opacity: 0.95;
            }
        }

        .preloader-content {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.25rem;
        }

        /* ===== Прелоадер: башенный кран строит дом =====
           Сцена 260×190: слева — дом (стены поднимаются, затем появляется крыша,
           дверь и окна), справа — башенный кран: тележка едет по стреле к дому,
           опускает груз, груз "превращается" в крышу, тележка возвращается.
           Один цикл — 6 секунд, все элементы синхронизированы по этой длительности. */
        .preloader-build {
            position: relative;
            width: 260px;
            height: 190px;
        }

        .preloader-build-ground {
            position: absolute;
            left: 2%;
            right: 2%;
            bottom: 18px;
            height: 3px;
            border-radius: 2px;
            background: linear-gradient(90deg, transparent, rgba(248, 151, 46, 0.55), transparent);
            z-index: 1;
        }

        /* ---------- Дом ---------- */
        .preloader-house {
            position: absolute;
            left: 18px;
            bottom: 21px;
            width: 112px;
            height: 96px;
            z-index: 2;
        }

        .preloader-house-body {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 62px;
            background: linear-gradient(160deg, #5c7477 0%, #384a4d 100%);
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 3px 3px 0 0;
            transform-origin: bottom center;
            animation: preloader-house-rise 6s ease-in-out infinite;
        }

        .preloader-house-roof {
            position: absolute;
            left: 50%;
            bottom: 62px;
            width: 0;
            height: 0;
            margin-left: -62px;
            border-left: 62px solid transparent;
            border-right: 62px solid transparent;
            border-bottom: 32px solid var(--accent);
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
            transform-origin: bottom center;
            animation: preloader-house-roof 6s ease-in-out infinite;
        }

        .preloader-house-door {
            position: absolute;
            left: 50%;
            bottom: 0;
            width: 18px;
            height: 28px;
            margin-left: -9px;
            background: #14201f;
            border-radius: 3px 3px 0 0;
            opacity: 0;
            z-index: 2;
            animation: preloader-house-details 6s ease-in-out infinite;
        }

        .preloader-house-window {
            position: absolute;
            bottom: 32px;
            width: 20px;
            height: 16px;
            border-radius: 2px;
            background: rgba(248, 151, 46, 0.85);
            box-shadow: 0 0 12px rgba(248, 151, 46, 0.45);
            opacity: 0;
            z-index: 2;
            animation: preloader-house-details 6s ease-in-out infinite;
        }

        .preloader-house-window--l {
            left: 16px;
        }

        .preloader-house-window--r {
            right: 16px;
        }

        @keyframes preloader-house-rise {
            0% {
                transform: scaleY(0.04);
                opacity: 0.35;
            }

            8% {
                opacity: 1;
            }

            34% {
                transform: scaleY(1);
            }

            88% {
                transform: scaleY(1);
                opacity: 1;
            }

            96%,
            100% {
                transform: scaleY(0.04);
                opacity: 0.35;
            }
        }

        @keyframes preloader-house-roof {

            0%,
            40% {
                opacity: 0;
                transform: translateY(10px) scale(0.9);
            }

            50% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }

            88% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }

            94%,
            100% {
                opacity: 0;
                transform: translateY(10px) scale(0.9);
            }
        }

        @keyframes preloader-house-details {

            0%,
            55% {
                opacity: 0;
            }

            65%,
            88% {
                opacity: 1;
            }

            94%,
            100% {
                opacity: 0;
            }
        }

        /* ---------- Башенный кран ---------- */
        .preloader-crane {
            position: absolute;
            right: 26px;
            bottom: 21px;
            width: 96px;
            height: 168px;
            z-index: 3;
        }

        .preloader-crane-base {
            position: absolute;
            right: 6px;
            bottom: -3px;
            width: 30px;
            height: 6px;
            border-radius: 2px;
            background: #1e2a2c;
            border: 1px solid rgba(248, 151, 46, 0.45);
        }

        .preloader-crane-mast {
            position: absolute;
            right: 16px;
            bottom: 0;
            width: 10px;
            height: 150px;
            border-radius: 2px;
            background: repeating-linear-gradient(180deg,
                    var(--accent) 0 3px,
                    rgba(248, 151, 46, 0.28) 3px 12px);
        }

        .preloader-crane-jib {
            position: absolute;
            right: 10px;
            bottom: 150px;
            width: 150px;
            height: 6px;
            border-radius: 2px;
            background: linear-gradient(90deg, rgba(248, 151, 46, 0.55), var(--accent));
        }

        .preloader-crane-counter {
            position: absolute;
            right: -16px;
            bottom: 150px;
            width: 32px;
            height: 6px;
            border-radius: 2px;
            background: var(--accent);
        }

        .preloader-crane-counter::after {
            content: '';
            position: absolute;
            right: -4px;
            top: -7px;
            width: 14px;
            height: 17px;
            border-radius: 2px;
            background: #1e2a2c;
            border: 1px solid rgba(248, 151, 46, 0.5);
        }

        .preloader-crane-cab {
            position: absolute;
            right: 4px;
            bottom: 156px;
            width: 22px;
            height: 13px;
            border-radius: 3px;
            background: linear-gradient(145deg, #ffc078, var(--accent));
        }

        .preloader-crane-apex {
            position: absolute;
            right: 19px;
            bottom: 156px;
            width: 4px;
            height: 24px;
            border-radius: 2px;
            background: var(--accent);
        }

        .preloader-crane-apex::before {
            content: '';
            position: absolute;
            left: -62px;
            top: 2px;
            width: 66px;
            height: 2px;
            background: rgba(248, 151, 46, 0.65);
            transform-origin: right center;
            transform: rotate(12deg);
        }

        .preloader-crane-apex::after {
            content: '';
            position: absolute;
            left: 4px;
            top: 2px;
            width: 28px;
            height: 2px;
            background: rgba(248, 151, 46, 0.65);
            transform-origin: left center;
            transform: rotate(-26deg);
        }

        .preloader-crane-trolley {
            position: absolute;
            right: 24px;
            bottom: 144px;
            width: 14px;
            height: 8px;
            border-radius: 2px;
            background: #ffc078;
            animation: preloader-trolley 6s ease-in-out infinite;
        }

        .preloader-crane-line {
            position: absolute;
            left: 50%;
            top: 100%;
            width: 2px;
            height: 8px;
            margin-left: -1px;
            background: rgba(255, 255, 255, 0.5);
            animation: preloader-hoist 6s ease-in-out infinite;
        }

        .preloader-crane-load {
            position: absolute;
            left: 50%;
            top: 100%;
            width: 24px;
            height: 12px;
            margin-left: -12px;
            border-radius: 2px;
            background: linear-gradient(160deg, #5c7477, #384a4d);
            border: 1px solid rgba(255, 255, 255, 0.18);
            animation: preloader-load 6s ease-in-out infinite;
        }

        @keyframes preloader-trolley {
            0% {
                transform: translateX(0);
            }

            18%,
            62% {
                transform: translateX(-122px);
            }

            82%,
            100% {
                transform: translateX(0);
            }
        }

        @keyframes preloader-hoist {

            0%,
            18% {
                height: 8px;
            }

            36%,
            50% {
                height: 58px;
            }

            64%,
            100% {
                height: 8px;
            }
        }

        @keyframes preloader-load {

            0%,
            42% {
                opacity: 1;
            }

            50%,
            99% {
                opacity: 0;
            }

            100% {
                opacity: 1;
            }
        }

        .preloader-glow {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 104px;
            height: 104px;
            margin: -52px 0 0 -52px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(248, 151, 46, 0.38) 0%, transparent 72%);
            animation: preloader-glow-pulse 2s ease-in-out infinite;
            z-index: 0;
            pointer-events: none;
        }

        @keyframes preloader-glow-pulse {

            0%,
            100% {
                transform: scale(0.92);
                opacity: 0.7;
            }

            50% {
                transform: scale(1.08);
                opacity: 1;
            }
        }

        .preloader-build-sign {
            position: absolute;
            bottom: 26px;
            left: 146px;
            width: 32px;
            height: 23px;
            background: linear-gradient(145deg, #1e2e31 0%, var(--primary) 100%);
            color: var(--accent);
            font-size: 0.55rem;
            font-weight: 800;
            letter-spacing: 0.03em;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
            z-index: 2;
        }

        .preloader-build-sign::before {
            content: '';
            position: absolute;
            bottom: -9px;
            left: 50%;
            width: 2px;
            height: 9px;
            background: #90a4ae;
            transform: translateX(-50%);
        }

        @media (max-width: 400px) {
            .preloader-build {
                transform: scale(0.82);
            }
        }

        .preloader-tagline {
            margin: 0;
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.42em;
            text-transform: uppercase;
            color: rgba(233, 236, 239, 0.55);
            animation: preloader-tagline-fade 1.2s ease 0.2s forwards;
            opacity: 0;
        }

        @keyframes preloader-tagline-fade {
            to {
                opacity: 1;
            }
        }

        .preloader-progress-wrap {
            width: min(220px, 70vw);
            height: 3px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            overflow: hidden;
            margin-top: 0.25rem;
        }

        .preloader-progress {
            height: 100%;
            width: 35%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--accent), #ffc078, var(--accent));
            background-size: 200% 100%;
            animation: preloader-progress-shimmer 1.1s ease-in-out infinite;
        }

        @keyframes preloader-progress-shimmer {
            0% {
                transform: translateX(-100%);
                background-position: 0% center;
            }

            100% {
                transform: translateX(280%);
                background-position: 100% center;
            }
        }

        /* Стили для блоков "Наша команда" и "Отзывы" */
        .section-title {
            position: relative;
            display: inline-block;
            padding-bottom: 15px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--accent);
            border-radius: 2px;
        }

        .team-photo {
            width: 100%;
            height: 280px;
            object-fit: cover;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        .testimonial-card {
            background: #384a4d;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            color: #ffffff;
        }

        .testimonial-text {
            color: #ffffff;
            line-height: 1.7;
        }

        /* Новые стили */
        .logo-wrapper {
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .logo-wrapper:hover {
            transform: rotate(10deg);
            background-color: var(--accent) !important;
        }

        /* Новые стили для команды */
        .team-member {
            border: 2px solid var(--primary);
            border-radius: 12px;
            padding: 15px;
            transition: all 0.3s ease;
            background: #384a4d;
            color: #ffffff;
        }

        .team-member:hover {
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            transform: translateY(-5px);
        }

        .position-text {
            color: var(--accent);
            font-weight: 600;
        }

        /* Дополнительные стили для контрастности текста */
        .text-gray-750 {
            color: #e9ecef !important;
        }

        .text-gray-850 {
            color: #f8f9fa !important;
        }

        .text-gray-700 {
            color: #e9ecef !important;
        }

        .text-gray-500 {
            color: #cfd8dc !important;
        }

        .text-gray-300 {
            color: #b0bec5 !important;
        }

        .text-gray-400 {
            color: #90a4ae !important;
        }

        .text-gray-600 {
            color: #eceff1 !important;
        }

        /* Стили для полей ввода */
        input,
        select {
            background-color: #45575a;
            color: #ffffff;
            border: 1px solid #4a6266;
        }

        input::placeholder {
            color: #b0bec5;
        }

        /* Хедер: стекло задаётся классом .glass-header (без принудительного тёмного фона) */

        /* Стили для футера */
        footer {
            background-color: #2c3e41 !important;
        }

        /* Стили для нового блока "Тёплый контур" */
        .warm-contour {
            background: #45575a;
            padding: 25px;
            border-radius: 10px;
            margin-top: 30px;
        }

        .warm-contour h3 {
            color: var(--accent);
            margin-bottom: 15px;
            font-size: 1.5rem;
        }

        .warm-contour-hint {
            color: #b0bec5 !important;
            line-height: 1.4;
        }

        .warm-contour-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .warm-contour-item {
            border-bottom: 1px solid #4a6266;
            padding: 10px 0;
        }

        .warm-contour-item:last-child {
            border-bottom: none;
        }

        .wc-row {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            cursor: pointer;
            margin: 0;
        }

        .wc-cb {
            margin-top: 4px;
            width: 18px;
            height: 18px;
            accent-color: var(--accent);
            flex-shrink: 0;
        }

        .wc-label {
            flex: 1;
            line-height: 1.45;
            color: #eceff1;
        }

        .wc-price-tag {
            flex-shrink: 0;
            color: var(--accent);
            font-weight: 600;
            font-size: 0.9rem;
            white-space: nowrap;
            padding-top: 2px;
        }

        .wc-row:hover .wc-label {
            color: #fff;
        }

        .project-price-block .wc-addon[hidden] {
            display: none !important;
        }

        /* Корзина опций «тёплый контур» */
        .wc-cart-panel {
            position: fixed;
            bottom: 28px;
            left: 28px;
            z-index: 998;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .wc-cart-fab {
            position: relative;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.15);
            background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: #fff;
            font-size: 1.25rem;
            cursor: pointer;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .wc-cart-fab:hover {
            transform: scale(1.06);
            box-shadow: 0 10px 28px rgba(248, 151, 46, 0.25);
        }

        .wc-cart-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            min-width: 22px;
            height: 22px;
            padding: 0 6px;
            border-radius: 11px;
            background: var(--accent);
            color: #1e2a2c;
            font-size: 0.75rem;
            font-weight: 700;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .wc-cart-badge.is-visible {
            display: flex;
        }

        .wc-cart-dropdown {
            position: absolute;
            bottom: 64px;
            left: 0;
            width: min(360px, calc(100vw - 56px));
            max-height: min(420px, 70vh);
            overflow: auto;
            background: linear-gradient(155deg, rgba(30, 42, 44, 0.98) 0%, rgba(44, 62, 65, 0.96) 100%);
            border: 1px solid rgba(248, 151, 46, 0.25);
            border-radius: 16px;
            box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
            padding: 0;
        }

        .wc-cart-dropdown[hidden] {
            display: none !important;
        }

        .wc-cart-header {
            padding: 14px 16px;
            font-weight: 700;
            color: var(--accent);
            border-bottom: 1px solid rgba(248, 151, 46, 0.2);
        }

        .wc-cart-list {
            list-style: none;
            margin: 0;
            padding: 8px 0;
        }

        .wc-cart-list li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            font-size: 0.9rem;
            line-height: 1.35;
            color: #eceff1;
        }

        .wc-cart-list li > span:first-child {
            flex: 1;
            min-width: 0;
        }

        .wc-cart-list li:last-child {
            border-bottom: none;
        }

        .wc-cart-remove {
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.08);
            border: none;
            color: #b0bec5;
            width: 28px;
            height: 28px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, color 0.2s;
        }

        .wc-cart-remove:hover {
            background: rgba(248, 151, 46, 0.25);
            color: #fff;
        }

        .wc-cart-line-price {
            color: var(--accent);
            font-weight: 600;
            white-space: nowrap;
        }

        .wc-cart-footer {
            padding: 12px 16px 16px;
            border-top: 1px solid rgba(248, 151, 46, 0.2);
        }

        .wc-cart-total-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            font-weight: 700;
            color: #fff;
        }

        .wc-cart-total-row span:last-child {
            color: var(--accent);
            font-size: 1.15rem;
        }

        .wc-cart-clear {
            width: 100%;
            padding: 10px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(69, 87, 90, 0.85);
            color: #fff;
            cursor: pointer;
            font-weight: 600;
            transition: background 0.2s;
        }

        .wc-cart-clear:hover {
            background: rgba(80, 98, 102, 0.95);
        }

        .wc-cart-empty {
            padding: 20px 16px;
            text-align: center;
            color: #90a4ae;
            font-size: 0.9rem;
        }

        @media (max-width: 640px) {
            .wc-cart-panel {
                left: 16px;
                bottom: 100px;
            }
        }

        /* Модальное окно заявки (точный расчёт / консультация) */
        .lead-modal {
            position: fixed;
            inset: 0;
            z-index: 1200;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            background: rgba(12, 18, 20, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.35s ease, visibility 0.35s ease;
        }

        .lead-modal.is-open {
            opacity: 1;
            visibility: visible;
        }

        .lead-modal-box {
            width: 100%;
            max-width: 440px;
            max-height: min(90dvh, 640px);
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
            border-radius: 20px;
            border: 1px solid rgba(248, 151, 46, 0.28);
            background: linear-gradient(155deg, rgba(30, 42, 44, 0.98) 0%, rgba(44, 62, 65, 0.96) 100%);
            box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);
            transform: translateY(16px) scale(0.97);
            transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .lead-modal.is-open .lead-modal-box {
            transform: translateY(0) scale(1);
        }

        .lead-modal-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.25rem 1.35rem;
            border-bottom: 1px solid rgba(248, 151, 46, 0.18);
        }

        .lead-modal-head h3 {
            margin: 0;
            font-size: 1.2rem;
            font-weight: 700;
            color: #fff;
        }

        .lead-modal-head p {
            margin: 0.35rem 0 0;
            font-size: 0.85rem;
            color: #b0bec5;
            line-height: 1.4;
        }

        .lead-modal-close {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .lead-modal-close:hover {
            background: rgba(248, 151, 46, 0.25);
        }

        .lead-modal-body {
            padding: 1.25rem 1.35rem 1.5rem;
            padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        .lead-field {
            margin-bottom: 1rem;
        }

        .lead-field label {
            display: block;
            font-size: 0.8rem;
            font-weight: 600;
            color: #cfd8dc;
            margin-bottom: 0.4rem;
        }

        .lead-field input,
        .lead-field textarea {
            width: 100%;
            padding: 0.75rem 1rem;
            border-radius: 12px;
            border: 1px solid rgba(248, 151, 46, 0.2);
            background: rgba(56, 74, 77, 0.65);
            color: #fff;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .lead-field input::placeholder,
        .lead-field textarea::placeholder {
            color: #78909c;
        }

        .lead-field input:focus,
        .lead-field textarea:focus {
            border-color: rgba(248, 151, 46, 0.55);
            box-shadow: 0 0 0 3px rgba(248, 151, 46, 0.12);
        }

        .lead-field textarea {
            min-height: 80px;
            resize: vertical;
        }

        .lead-field-error {
            font-size: 0.75rem;
            color: #ffab91;
            margin-top: 0.25rem;
            display: none;
        }

        .lead-field.has-error .lead-field-error {
            display: block;
        }

        .lead-field.has-error input,
        .lead-field.has-error textarea {
            border-color: rgba(255, 112, 67, 0.6);
        }

        .lead-submit {
            width: 100%;
            margin-top: 0.5rem;
            padding: 0.9rem 1.25rem;
            border: none;
            border-radius: 999px;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
            color: #1e2a2c;
            box-shadow: 0 6px 20px rgba(248, 151, 46, 0.35);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .lead-submit:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 28px rgba(248, 151, 46, 0.45);
        }

        .lead-submit:disabled {
            opacity: 0.65;
            cursor: not-allowed;
        }

        .lead-modal-footnote {
            margin-top: 0.85rem;
            font-size: 0.72rem;
            color: #90a4ae;
            line-height: 1.45;
            text-align: center;
        }

        .lead-msg {
            display: none;
            padding: 0.85rem 1rem;
            border-radius: 12px;
            font-size: 0.9rem;
            margin-bottom: 1rem;
            line-height: 1.45;
        }

        .lead-msg.is-visible {
            display: block;
        }

        .lead-msg--ok {
            background: rgba(76, 175, 80, 0.15);
            border: 1px solid rgba(129, 199, 132, 0.4);
            color: #c8e6c9;
        }

        .lead-msg--err {
            background: rgba(239, 83, 80, 0.12);
            border: 1px solid rgba(239, 83, 80, 0.35);
            color: #ffccbc;
        }

        /* Модалка заявки: телефоны и вырезы экрана */
        @media (max-width: 639px) {
            .lead-modal {
                align-items: flex-end;
                justify-content: center;
                padding: 0;
                padding-left: env(safe-area-inset-left, 0);
                padding-right: env(safe-area-inset-right, 0);
                padding-bottom: env(safe-area-inset-bottom, 0);
            }

            .lead-modal-box {
                max-width: 100%;
                width: 100%;
                max-height: min(92dvh, 100vh);
                border-radius: 20px 20px 0 0;
                margin: 0;
                transform: translateY(105%);
                box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
            }

            .lead-modal.is-open .lead-modal-box {
                transform: translateY(0);
            }

            .lead-modal-head {
                padding: 1rem 1rem 0.85rem;
                padding-top: max(1rem, env(safe-area-inset-top, 0px));
                flex-shrink: 0;
            }

            .lead-modal-head h3 {
                font-size: 1.1rem;
            }

            .lead-modal-body {
                padding: 1rem 1rem 1.25rem;
                padding-bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem));
            }

            .lead-modal-close {
                width: 44px;
                height: 44px;
                min-width: 44px;
                min-height: 44px;
            }

            .lead-field input,
            .lead-field textarea {
                font-size: 16px;
                padding: 0.85rem 1rem;
            }

            .lead-submit {
                min-height: 48px;
                font-size: 1.05rem;
                padding: 1rem 1.25rem;
            }

            .lead-modal-footnote {
                font-size: 0.68rem;
            }
        }

        /* Стили для модального окна с увеличенным изображением */
        .image-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 1100;
            overflow: hidden;
            overscroll-behavior: contain;
        }

        /* Область просмотра: фото центрируется здесь, зум/перетаскивание — внутри неё */
        .image-modal-content {
            position: absolute;
            inset: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            /* все жесты (пинч, перетаскивание) обрабатываем сами в js/site-common.js */
            touch-action: none;
            cursor: default;
        }

        .image-modal-content.is-zoomed {
            cursor: grab;
        }

        .image-modal-content.is-zoomed:active {
            cursor: grabbing;
        }

        .image-modal-content img {
            max-width: 92vw;
            max-height: 84vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
            transform-origin: center center;
            transition: transform 0.14s ease-out;
            will-change: transform;
            user-select: none;
            -webkit-user-select: none;
            -webkit-user-drag: none;
        }

        /* во время перетаскивания/пинча плавность отключаем, иначе фото «запаздывает» */
        .image-modal-content img.is-dragging {
            transition: none;
        }

        /* Крестик выхода — заметная круглая кнопка в углу */
        .close-image-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            color: #fff;
            font-size: 30px;
            font-weight: 400;
            cursor: pointer;
            z-index: 1103;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
            background: rgba(44, 62, 65, 0.88);
            border: none;
            padding: 0;
            font-family: inherit;
            line-height: 1;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
        }

        .close-image-modal:hover {
            background: var(--accent);
            color: #fff;
            transform: scale(1.06);
        }

        .close-image-modal:focus {
            outline: 2px solid rgba(248, 151, 46, 0.85);
            outline-offset: 2px;
        }

        /* Курсор-«лупа» на фото, которые открываются в просмотрщике */
        .gallery-image,
        .plan-image {
            cursor: zoom-in;
        }

        @media (max-width: 767px) {
            .close-image-modal {
                top: 12px;
                right: 12px;
                width: 44px;
                height: 44px;
                font-size: 26px;
            }

            .image-modal-content img {
                max-width: 96vw;
                max-height: 76vh;
            }
        }

        .zoom-controls {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
            z-index: 1101;
        }

        .zoom-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(44, 62, 65, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            color: white;
            font-size: 20px;
            /* сброс дефолтного вида <button> */
            border: none;
            padding: 0;
            font-family: inherit;
        }

        .zoom-btn:hover {
            background: var(--accent);
            transform: scale(1.1);
        }

        .image-modal-arrow {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1102;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            border: none;
            background: rgba(44, 62, 65, 0.88);
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            transition: background 0.2s ease, transform 0.2s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
        }

        .image-modal-arrow:hover {
            background: var(--accent);
            transform: translateY(-50%) scale(1.05);
        }

        .image-modal-arrow:focus {
            outline: 2px solid rgba(248, 151, 46, 0.85);
            outline-offset: 2px;
        }

        .image-modal-arrow--prev {
            left: 20px;
        }

        .image-modal-arrow--next {
            right: 20px;
        }

        /* Заголовок "Фотогалерея" — по центру страницы (не полагаемся на Tailwind) */
        .project-gallery-carousel h3 {
            text-align: center;
        }

        /* Полностраничная карточка проекта (project-*.html) */
        .project-hero {
            position: relative;
            width: 100%;
            height: 100vh;
            height: 100svh;
            min-height: 480px;
            overflow: hidden;
            background: #1e2a2c;
        }

        /* Раньше здесь был один <img> с object-fit:cover — дом обрезался по краям.
           Фото показывается целиком (object-fit:contain), пустые поля по бокам
           заполняет то же фото. По просьбе клиента блюр с фонового слоя убран
           полностью — фон теперь чёткий, а сама секция стала заметно крупнее. */
        .project-hero-bg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(0.45) saturate(1.05);
            transform: scale(1.08);
        }

        .project-hero-main {
            position: relative;
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .project-hero::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(30, 42, 44, 0.15) 0%, rgba(30, 42, 44, 0.85) 100%);
        }

        .project-hero-content {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 0 1.5rem 2.75rem;
            color: #fff;
            z-index: 1;
        }

        .project-hero-back {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: rgba(255, 255, 255, 0.85);
            font-weight: 600;
            font-size: 0.95rem;
            transition: color 0.2s ease;
        }

        .project-hero-back:hover {
            color: var(--accent);
        }

        .project-page-main .project-gallery img,
        .project-page-main .gallery-image {
            cursor: pointer;
        }

        /* ===== Плавные переходы между страницами ===== */
        /* Появление контента при загрузке — чистый CSS, не зависит от JS,
           поэтому страница физически не может "залипнуть" невидимой. */
        body {
            animation: mvd-page-fade-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        /* На странице с прелоадером (index.html) fade-in всего body ломает прелоадер:
           opacity родителя перемножается с opacity дочерних элементов, и #preloader
           тоже плавно проявляется из невидимого состояния вместо мгновенного показа.
           На страницах без прелоадера (project-*.html) fade-in остаётся как был. */
        body:has(#preloader) {
            animation: none;
        }

        /* Анимируем ТОЛЬКО прозрачность. Никакого transform на body:
           любой transform у предка (даже единичный, который остаётся из-за
           animation-fill-mode: both) делает его точкой отсчёта для position: fixed —
           и просмотрщик фото, модалка заявки, cookie-баннер и кнопка "наверх"
           начинают позиционироваться относительно всей страницы, а не экрана
           (фото открывалось "где угодно", а не по центру). */
        @keyframes mvd-page-fade-in {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        html.mvd-page-leaving body {
            opacity: 0 !important;
            transition: opacity 0.32s ease;
            animation: none;
        }

        @media (prefers-reduced-motion: reduce) {
            body {
                animation: none !important;
            }

            html.mvd-page-leaving body {
                transition: none !important;
                opacity: 1 !important;
                transform: none !important;
            }
        }

        /* ===== Параллакс: общие размеры для элементов с data-parallax ===== */
        /* Элемент должен быть немного крупнее контейнера, чтобы при сдвиге
           не показывались белые края — контейнер должен иметь overflow:hidden.
           На .project-hero-main (object-fit:contain) параллакс не ставим — сдвиг
           по вертикали для "вписанного" фото выглядел бы иначе, чем для "обрезанного",
           и мог оставить видимый пустой край. Лёгкий параллакс остаётся только на
           размытом фоновом слое (.project-hero-bg), который по-прежнему cover. */
        .project-hero-bg[data-parallax] {
            /* ВАЖНО: слой остаётся absolute (как в базовом правиле). Раньше здесь
               стоял position: relative — фон вставал в поток и выталкивал
               .project-hero-main вниз за пределы секции, поэтому вместо целого
               фото было видно только обрезанный (cover) фоновый слой. */
            position: absolute;
            height: 130%;
            top: -15%;
            will-change: transform;
        }

        /* ===== Параллакс фото в блоке "О компании" на главной ===== */
        .about-image-frame {
            position: relative;
            overflow: hidden;
            border-radius: 0.75rem;
        }

        .about-image-frame img[data-parallax] {
            height: 130%;
            top: -15%;
            position: relative;
            width: 100%;
            object-fit: cover;
            will-change: transform;
        }

        @media (prefers-reduced-motion: reduce) {

            .project-hero-bg[data-parallax],
            .about-image-frame img[data-parallax] {
                transform: none !important;
            }
        }

        /* ===== Микро-взаимодействия: подчёркивание пунктов меню ===== */
        .header-nav-link {
            position: relative;
        }

        .header-nav-link::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: -4px;
            height: 2px;
            background: var(--accent);
            border-radius: 2px;
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .header-nav-link:hover::after,
        .header-nav-link:focus-visible::after {
            transform: scaleX(1);
            transform-origin: left;
        }

        .mobile-menu .header-nav-link::after {
            display: none;
        }

        /* Видимый фокус для клавиатурной навигации — доступность */
        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        textarea:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 3px;
            border-radius: 4px;
        }

        /* ==========================================================================
           Новая структура страниц проектов (project-*.html):
           слева — планировки + калькулятор, справа — описание + 3 комплектации,
           ниже — карусель фото, похожие проекты, CTA.
           ========================================================================== */

        .project-content {
            max-width: 1280px;
            margin: 0 auto;
        }

        .project-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2.5rem;
            margin-top: 2.5rem;
        }

        @media (min-width: 1024px) {
            .project-layout {
                grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
                align-items: start;
            }
        }

        .project-side-left,
        .project-side-right {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            min-width: 0;
        }

        .project-card {
            background: #384a4d;
            border-radius: 16px;
            padding: 28px;
        }

        .project-card h3 {
            color: var(--accent);
            font-size: 1.35rem;
            margin-bottom: 18px;
        }

        /* ===== Планировки (переключатель "Этаж 1 / Этаж 2") ===== */
        .plan-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
        }

        .plan-tab {
            flex: 1;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            color: #cfd8dc;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
        }

        .plan-tab.is-active,
        .plan-tab:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: #1e2a2c;
        }

        .plan-viewer {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            aspect-ratio: 4 / 3;
            background: #1e2a2c;
        }

        .plan-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            /* планировка — чертёж, его нужно видеть целиком, без обрезки */
            object-fit: contain;
            opacity: 0;
            transition: opacity 0.35s ease;
            pointer-events: none;
        }

        .plan-image.is-active {
            opacity: 1;
            pointer-events: auto;
        }

        .plan-note {
            margin-top: 12px;
            font-size: 0.82rem;
            color: #90a4ae;
            line-height: 1.45;
        }

        /* ===== Калькулятор стоимости ===== */
        .calc-row {
            margin-bottom: 20px;
        }

        .calc-row:last-of-type {
            margin-bottom: 0;
        }

        .calc-row-label {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 10px;
            color: #eceff1;
            font-weight: 600;
            font-size: 0.92rem;
        }

        .calc-row-label span:last-child {
            color: var(--accent);
            font-weight: 700;
        }

        .calc-slider {
            width: 100%;
            accent-color: var(--accent);
            height: 6px;
            cursor: pointer;
        }

        .calc-tech-grid,
        .calc-finish-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .calc-floors-row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .calculator-btn {
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            border-radius: 10px;
            padding: 10px 6px;
            text-align: center;
            color: #cfd8dc;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s, color 0.2s;
            font-size: 0.82rem;
            line-height: 1.3;
        }

        .calculator-btn:hover {
            border-color: rgba(248, 151, 46, 0.45);
        }

        .calculator-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #1e2a2c;
            font-weight: 700;
        }

        .calc-tech-title {
            display: block;
            font-weight: 700;
        }

        .calc-tech-sub {
            display: block;
            font-size: 0.7rem;
            opacity: 0.85;
            margin-top: 2px;
        }

        .calc-bd-factors {
            font-size: 0.78rem;
            color: #90a4ae;
            margin: 16px 0 4px;
            line-height: 1.4;
        }

        .calc-total-row {
            margin-top: 18px;
            padding-top: 18px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
        }

        .calc-total-label {
            color: #b0bec5;
            font-size: 0.88rem;
            margin-bottom: 4px;
        }

        .calc-total-value {
            color: var(--accent);
            font-size: 1.9rem;
            font-weight: 800;
        }

        .calc-total-note {
            color: #78909c;
            font-size: 0.76rem;
            margin-top: 6px;
        }

        /* ===== 3 комплектации (Каркас / Тёплый контур / Под ключ) ===== */
        .package-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 22px;
            flex-wrap: wrap;
        }

        .package-tab {
            flex: 1;
            min-width: 110px;
            padding: 12px 8px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            color: #cfd8dc;
            font-weight: 700;
            font-size: 0.92rem;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
            text-align: center;
        }

        .package-tab:hover {
            transform: translateY(-2px);
        }

        .package-tab.is-active {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
            border-color: var(--accent);
            color: #1e2a2c;
        }

        .package-panel[hidden] {
            display: none !important;
        }

        .package-summary {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 16px 18px;
            margin-bottom: 20px;
        }

        .package-summary h4 {
            color: #fff;
            font-size: 1.1rem;
            margin-bottom: 8px;
        }

        .package-summary p {
            color: #b0bec5;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        /* ===== Карусель фотогалереи ===== */
        .project-gallery-carousel {
            margin: 1rem 0;
        }

        .gallery-carousel {
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .gallery-carousel-track {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            gap: 16px;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            border-radius: 14px;
        }

        .gallery-carousel-track::-webkit-scrollbar {
            display: none;
        }

        .gallery-carousel-slide {
            flex: 0 0 100%;
            scroll-snap-align: center;
        }

        @media (min-width: 768px) {
            .gallery-carousel-slide {
                flex-basis: 58%;
            }
        }

        .gallery-carousel-slide img {
            width: 100%;
            height: 380px;
            object-fit: cover;
            border-radius: 14px;
            display: block;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .gallery-carousel-slide img:hover {
            transform: scale(1.02);
        }

        .gallery-carousel-arrow {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.15);
            background: rgba(56, 74, 77, 0.9);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
        }

        .gallery-carousel-arrow:hover {
            background: var(--accent);
            color: #1e2a2c;
        }

        .gallery-carousel-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 14px;
        }

        .gallery-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.25);
            border: none;
            cursor: pointer;
            padding: 0;
            transition: background 0.2s, transform 0.2s;
        }

        .gallery-dot.is-active {
            background: var(--accent);
            transform: scale(1.3);
        }

        /* ===== Похожие проекты ("Вам также может понравиться") ===== */
        .related-project-card {
            display: block;
            background: #384a4d;
            border-radius: 16px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .related-project-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
        }

        .related-project-card img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            display: block;
        }

        .related-project-card__body {
            padding: 18px 20px;
        }

        .related-project-card__body h4 {
            color: #fff;
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .related-project-card__body p {
            color: #90a4ae;
            font-size: 0.88rem;
        }

        /* ===== CTA-секция на страницах проектов (без видео — оно только на главной) ===== */
        .project-cta-section {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        }

        @media (max-width: 480px) {

            .calc-tech-grid,
            .calc-finish-row {
                grid-template-columns: 1fr 1fr;
            }
        }

        /* ===== Планировки на всю ширину (project-plans-full) ===== */
        .project-plans-full {
            margin-bottom: 2.5rem;
        }

        .project-plans-full .plan-tabs {
            max-width: 360px;
        }

        .project-plans-full .plan-viewer {
            aspect-ratio: 16 / 9;
        }

        @media (max-width: 640px) {
            .project-plans-full .plan-viewer {
                aspect-ratio: 1 / 1;
            }
        }

        /* ===== Шапка сайта: плавающая "таблетка" (не на всю ширину, скруглённая) ===== */
        .site-header {
            position: fixed;
            background: transparent;
            padding-top: max(14px, env(safe-area-inset-top, 0px));
            pointer-events: none;
            /* сама полоса шапки прозрачна и не ловит клики — кликабельна только таблетка */
        }

        .site-header-shell {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .site-header-inner {
            pointer-events: auto;
            background: linear-gradient(120deg, rgba(30, 42, 44, 0.82) 0%, rgba(44, 62, 65, 0.74) 100%);
            backdrop-filter: blur(20px) saturate(1.3);
            -webkit-backdrop-filter: blur(20px) saturate(1.3);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 20px;
            box-shadow:
                0 14px 34px rgba(0, 0, 0, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            padding: 0 12px 0 18px;
        }

        .site-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.25rem;
            min-height: 62px;
        }

        /* На тёмной таблетке весь текст шапки светлый */
        .site-header .header-brand-text,
        .site-header .header-nav-link {
            color: rgba(255, 255, 255, 0.92) !important;
        }

        .site-header .header-nav-link {
            font-size: 0.86rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .site-header .header-nav-link:hover {
            color: var(--accent) !important;
        }

        .site-logo {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            text-decoration: none;
            flex-shrink: 0;
        }

        /* Логотип — покерная фишка с буквой F (тот же рисунок, что в favicon) */
        .site-logo-badge {
            width: 38px;
            height: 38px;
            flex-shrink: 0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 16px rgba(248, 151, 46, 0.3);
            transition: transform 0.35s ease, box-shadow 0.3s ease;
        }

        .brand-wheel {
            width: 100%;
            height: 100%;
            display: block;
        }

        /* Колесо медленно вращается, шарик катится по ободу навстречу ему */
        .brand-wheel-face {
            transform-box: view-box;
            transform-origin: 50px 50px;
            animation: fh-wheel-spin 16s linear infinite;
        }

        .brand-wheel-ball {
            transform-box: view-box;
            transform-origin: 50px 50px;
            animation: fh-ball-orbit 3.6s linear infinite;
        }

        @keyframes fh-wheel-spin {
            to {
                transform: rotate(360deg);
            }
        }

        @keyframes fh-ball-orbit {
            to {
                transform: rotate(-360deg);
            }
        }

        .site-logo:hover .site-logo-badge {
            transform: scale(1.08);
            box-shadow: 0 8px 22px rgba(248, 151, 46, 0.45);
        }

        .footer-logo-chip {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        @media (prefers-reduced-motion: reduce) {

            .brand-wheel-face,
            .brand-wheel-ball {
                animation: none;
            }

            .site-logo:hover .site-logo-badge {
                transform: none;
            }
        }

        .site-logo-text {
            font-size: 0.95rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            white-space: nowrap;
        }

        .site-header-phone {
            color: rgba(255, 255, 255, 0.92) !important;
            font-weight: 600;
            font-size: 0.86rem;
            white-space: nowrap;
            transition: color 0.25s ease;
        }

        .site-header-phone:hover {
            color: var(--accent) !important;
        }

        .site-header-phone i {
            color: var(--accent);
        }

        .site-header-cta {
            padding: 9px 20px !important;
            font-size: 0.84rem;
            border-radius: 999px;
            letter-spacing: 0.01em;
        }

        .site-header .header-nav-link::after {
            bottom: -6px;
        }

        /* Мобильное меню — отдельная тёмная скруглённая панель под таблеткой */
        .site-header .mobile-menu {
            pointer-events: auto;
            margin-top: 10px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: linear-gradient(160deg, rgba(30, 42, 44, 0.97) 0%, rgba(44, 62, 65, 0.95) 100%);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
            overflow: hidden;
        }

        .site-header .mobile-menu .header-nav-link {
            color: rgba(255, 255, 255, 0.92) !important;
            text-transform: none;
            font-size: 1rem;
            letter-spacing: 0.01em;
        }

        @media (max-width: 1023px) {
            .site-header-shell {
                padding: 0 12px;
            }

            .site-header-inner {
                padding: 0 10px 0 14px;
                border-radius: 18px;
            }

            .site-header-row {
                min-height: 56px;
            }

            .site-logo-text {
                font-size: 0.82rem;
                letter-spacing: 0.04em;
            }
        }

        @media (max-width: 420px) {
            .site-logo-text {
                display: none;
            }
        }

        /* ===== Hero: главное фото, на всю ширину и высоту секции ===== */
        .hero-embed {
            position: absolute;
            inset: 0;
            z-index: 0;
            overflow: hidden;
            background: #16211f;
        }

        .hero-embed-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 55%;
            display: block;
        }

        /* На узких экранах кадр смещаем к дому, чтобы он не «уезжал» за край */
        @media (max-width: 767px) {
            .hero-embed-img {
                object-position: center 60%;
            }
        }

        /* ===== Hero (устар.): фото интерьера + анимация (дождь за окном, огонь в камине) =====
           Разметка этих блоков больше не используется на странице (заменена на .hero-embed
           выше), правила оставлены на случай отката. */
        .hero-photo {
            position: absolute;
            inset: 0;
            z-index: 0;
            overflow: hidden;
            background: #16211f;
        }

        .hero-photo-stage {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: max(100%, calc(100vh * 16 / 9));
            height: max(100%, calc(100vw * 9 / 16));
        }

        .hero-photo-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Дождь за панорамным остеклением. Маска приглушает эффект в центре кадра
           (там глухая стена с камином) и усиливает по краям, где стекло. */
        .hero-photo-rain {
            position: absolute;
            inset: -12% -8%;
            background-image: repeating-linear-gradient(107deg,
                    rgba(255, 255, 255, 0.38) 0 1.5px,
                    transparent 1.5px 24px);
            background-size: 100% 200%;
            opacity: 0.5;
            animation: hero-rain-fall 0.5s linear infinite;
            -webkit-mask-image: linear-gradient(90deg,
                    rgba(0, 0, 0, 0.95) 0%,
                    rgba(0, 0, 0, 0.55) 18%,
                    rgba(0, 0, 0, 0.12) 34%,
                    rgba(0, 0, 0, 0.12) 52%,
                    rgba(0, 0, 0, 0.75) 66%,
                    rgba(0, 0, 0, 0.95) 100%);
            mask-image: linear-gradient(90deg,
                    rgba(0, 0, 0, 0.95) 0%,
                    rgba(0, 0, 0, 0.55) 18%,
                    rgba(0, 0, 0, 0.12) 34%,
                    rgba(0, 0, 0, 0.12) 52%,
                    rgba(0, 0, 0, 0.75) 66%,
                    rgba(0, 0, 0, 0.95) 100%);
        }

        @keyframes hero-rain-fall {
            from {
                background-position: 0 0;
            }

            to {
                background-position: 0 64px;
            }
        }

        /* Камин: узкая горизонтальная топка на фотографии, левее центра кадра */
        .hero-fire {
            position: absolute;
            left: 21.5%;
            top: 47.5%;
            width: 23%;
            height: 12%;
        }

        .hero-fire-box {
            position: absolute;
            inset: 0;
            overflow: hidden;
            border-radius: 2px;
        }

        .hero-fire-flame {
            position: absolute;
            bottom: -18%;
            width: 22%;
            height: 130%;
            border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
            background: radial-gradient(ellipse at 50% 75%,
                    #fff0b8 0%,
                    #f8972e 42%,
                    rgba(201, 72, 26, 0.75) 72%,
                    transparent 100%);
            filter: blur(4px);
            mix-blend-mode: screen;
            transform-origin: bottom center;
            animation: hero-flame-flicker 1.1s ease-in-out infinite;
        }

        .hero-fire-flame:nth-child(1) {
            left: 6%;
            animation-duration: 1.15s;
        }

        .hero-fire-flame:nth-child(2) {
            left: 28%;
            height: 155%;
            animation-duration: 0.85s;
            animation-delay: 0.18s;
        }

        .hero-fire-flame:nth-child(3) {
            left: 50%;
            animation-duration: 1.05s;
            animation-delay: 0.36s;
        }

        .hero-fire-flame:nth-child(4) {
            left: 72%;
            height: 140%;
            animation-duration: 0.92s;
            animation-delay: 0.54s;
        }

        @keyframes hero-flame-flicker {

            0%,
            100% {
                transform: scaleY(0.92) scaleX(1) rotate(-2deg);
                opacity: 0.85;
            }

            50% {
                transform: scaleY(1.12) scaleX(0.92) rotate(2deg);
                opacity: 1;
            }
        }

        .hero-fire-glow {
            position: absolute;
            left: 50%;
            top: 45%;
            width: 420%;
            height: 700%;
            transform: translate(-50%, -50%);
            background: radial-gradient(ellipse at center,
                    rgba(248, 151, 46, 0.34) 0%,
                    rgba(248, 151, 46, 0.12) 38%,
                    transparent 70%);
            mix-blend-mode: screen;
            pointer-events: none;
            animation: hero-fire-pulse 2.6s ease-in-out infinite;
        }

        @keyframes hero-fire-pulse {

            0%,
            100% {
                opacity: 0.75;
                transform: translate(-50%, -50%) scale(0.96);
            }

            50% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.05);
            }
        }

        /* Затемнение поверх фото — мягче прежнего, чтобы фотография читалась */
        .hero .hero-overlay {
            background: linear-gradient(180deg,
                    rgba(16, 24, 26, 0.55) 0%,
                    rgba(16, 24, 26, 0.32) 45%,
                    rgba(16, 24, 26, 0.82) 100%);
        }

        @media (prefers-reduced-motion: reduce) {

            .hero-photo-rain,
            .hero-fire-flame,
            .hero-fire-glow {
                animation: none !important;
            }
        }

        /* ===== Блок "Дома по каркасной технологии" (карточки-статьи) ===== */
        /* Подзаголовок внутри блока "Дома по каркасной технологии"
           (разделяет статьи про каркас и про СИП-панели) */
        .frame-tech-subhead {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark, #fff);
            margin-bottom: 1.75rem;
            padding-left: 16px;
            border-left: 4px solid var(--accent);
            line-height: 1.25;
        }

        @media (min-width: 768px) {
            .frame-tech-subhead {
                font-size: 1.75rem;
            }
        }

        .frame-article-card {
            position: relative;
            overflow: hidden;
            background: linear-gradient(155deg, rgba(69, 87, 90, 0.55) 0%, rgba(56, 74, 77, 0.75) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 20px;
            padding: 1.75rem 1.6rem;
            display: flex;
            flex-direction: column;
            color: #fff;
            transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.35s ease;
        }

        .frame-article-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
            border-color: rgba(248, 151, 46, 0.25);
        }

        .frame-article-icon {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: rgba(248, 151, 46, 0.18);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            font-size: 1.35rem;
            margin-bottom: 1.25rem;
            flex-shrink: 0;
        }

        .frame-article-card h3 {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
        }

        .frame-article-card p {
            color: #cfd8dc;
            font-size: 0.94rem;
            line-height: 1.6;
        }



        /* ===== CTA-вставка внутри "Почему выбирают нас" ===== */
        .advantages-cta {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border-radius: 24px;
            padding: 3.25rem 2rem;
            color: #fff;
        }

        /* ===== Промо-плашка в CTA-блоке "Готовы построить дом" ===== */
        .promo-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.75rem 1.5rem;
            border-radius: 999px;
            background: rgba(248, 151, 46, 0.15);
            border: 1px solid rgba(248, 151, 46, 0.4);
            color: var(--accent);
            font-weight: 700;
            font-size: 0.95rem;
        }

        /* ===== Кнопка "наверх" (правый нижний угол, над кнопкой чат-бота) ===== */
        .back-to-top {
            position: fixed;
            right: 36px;
            bottom: 102px;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.16);
            background: linear-gradient(145deg, rgba(30, 42, 44, 0.94) 0%, rgba(44, 62, 65, 0.92) 100%);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: #fff;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 997;
            box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px);
            transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
                background 0.25s ease, border-color 0.25s ease;
        }

        .back-to-top.is-visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .back-to-top:hover {
            background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
            border-color: rgba(248, 151, 46, 0.5);
            color: #14201f;
        }

        /* ===== Cookie-баннер ===== */
        .cookie-banner {
            position: fixed;
            left: 50%;
            bottom: 20px;
            transform: translateX(-50%) translateY(24px);
            width: min(980px, calc(100vw - 190px));
            z-index: 1050;
            /* ниже просмотрщика фото (1100) и модалки заявки (1200),
               иначе баннер перекрывает кнопки зума в открытом окне просмотра */
            display: flex;
            align-items: center;
            gap: 18px;
            padding: 16px 18px;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: linear-gradient(140deg, rgba(30, 42, 44, 0.96) 0%, rgba(44, 62, 65, 0.94) 100%);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s ease;
        }

        .cookie-banner.is-visible {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .cookie-banner-icon {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(248, 151, 46, 0.16);
            color: var(--accent);
            font-size: 1.15rem;
        }

        .cookie-banner-text {
            flex: 1;
            color: #cfd8dc;
            font-size: 0.88rem;
            line-height: 1.5;
        }

        .cookie-banner-text strong {
            display: block;
            color: #fff;
            font-size: 0.95rem;
            margin-bottom: 2px;
        }

        .cookie-banner-text a {
            color: var(--accent);
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .cookie-banner-accept {
            flex-shrink: 0;
            padding: 11px 26px;
            border: none;
            border-radius: 999px;
            background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
            color: #14201f;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .cookie-banner-accept:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 22px rgba(248, 151, 46, 0.35);
        }

        /* ===== Форма заявки: согласие на обработку персональных данных ===== */
        .lead-consent {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin: 0 0 1rem;
            cursor: pointer;
        }

        .lead-consent input[type="checkbox"] {
            width: 18px;
            height: 18px;
            min-width: 18px;
            margin-top: 2px;
            accent-color: var(--accent);
            cursor: pointer;
        }

        .lead-consent span {
            font-size: 0.82rem;
            line-height: 1.45;
            color: #b0bec5;
        }

        .lead-consent a {
            color: var(--accent);
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .lead-field-consent.has-error .lead-consent span {
            color: #ff9e9e;
        }

        .lead-field-consent.has-error input[type="checkbox"] {
            outline: 2px solid #ff6b6b;
            outline-offset: 2px;
            border-radius: 3px;
        }

        /* ===== Страница "Политика конфиденциальности" ===== */
        .legal-page {
            padding: 140px 0 80px;
        }

        .legal-card {
            max-width: 900px;
            margin: 0 auto;
            background: linear-gradient(155deg, rgba(56, 74, 77, 0.92) 0%, rgba(44, 62, 65, 0.95) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 22px;
            padding: 48px;
            color: #e9ecef;
        }

        .legal-card h1 {
            font-size: 2rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 8px;
        }

        .legal-updated {
            color: #90a4ae;
            font-size: 0.86rem;
            margin-bottom: 32px;
        }

        .legal-card h2 {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--accent);
            margin: 32px 0 12px;
        }

        .legal-card p,
        .legal-card li {
            font-size: 0.95rem;
            line-height: 1.7;
            color: #cfd8dc;
        }

        .legal-card p {
            margin-bottom: 12px;
        }

        .legal-card ul {
            list-style: disc;
            padding-left: 22px;
            margin-bottom: 12px;
        }

        .legal-card li {
            margin-bottom: 6px;
        }

        .legal-card a {
            color: var(--accent);
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .legal-placeholder {
            display: inline-block;
            padding: 1px 8px;
            border-radius: 6px;
            background: rgba(248, 151, 46, 0.16);
            border: 1px dashed rgba(248, 151, 46, 0.55);
            color: #ffc078;
            font-weight: 600;
            font-size: 0.88em;
        }

        .legal-back {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 24px;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 600;
            font-size: 0.9rem;
        }

        .legal-back:hover {
            color: var(--accent);
        }

        /* ==========================================================================
           Мобильная адаптация (общая полировка под телефоны и планшеты)
           ========================================================================== */
        body {
            overflow-x: clip;
        }

        /* Без этого правила обрезка на body «уходит» на окно браузера и не работает:
           блоки, выезжающие сбоку при появлении, расширяют страницу, и на телефоне
           окно заявки оказывается шире экрана. */
        @supports (overflow: clip) {
            html {
                overflow-x: clip;
            }
        }

        @supports not (overflow: clip) {
            body {
                overflow-x: hidden;
            }
        }

        img,
        video {
            max-width: 100%;
        }

        @media (max-width: 1023px) {
            .legal-card {
                padding: 32px 22px;
            }

            .legal-page {
                padding: 120px 0 60px;
            }
        }

        @media (max-width: 767px) {

            /* Общие отступы карточек и секций */
            .project-card {
                padding: 20px 16px;
            }

            .project-card h3 {
                font-size: 1.15rem;
            }

            .advantages-cta {
                padding: 2.25rem 1.25rem;
                border-radius: 20px;
            }

            .frame-article-card {
                padding: 1.75rem 1.35rem;
            }

            /* Галерея и планировки */
            .gallery-carousel-slide img {
                height: 240px;
            }

            .gallery-carousel {
                gap: 6px;
            }

            .gallery-carousel-arrow {
                width: 38px;
                height: 38px;
            }

            .related-project-card img {
                height: 180px;
            }

            /* Комплектации: вкладки в две колонки, чтобы не сжимались в полоски */
            .package-tab {
                min-width: calc(50% - 4px);
                font-size: 0.86rem;
                padding: 10px 6px;
            }

            /* Списки доп. услуг: цена уходит под текст, а не сплющивает его */
            .wc-row {
                flex-wrap: wrap;
            }

            .wc-price-tag {
                width: 100%;
                padding-left: 30px;
                padding-top: 4px;
            }

            /* Калькулятор */
            .calc-tech-grid {
                grid-template-columns: 1fr;
            }

            .calc-finish-row {
                grid-template-columns: 1fr;
            }

            .calculator-btn {
                padding: 12px 8px;
            }

            /* Hero главной страницы */
            .hero {
                height: 100svh;
                min-height: 560px;
            }

            .hero-photo-stage {
                width: max(100%, calc(100svh * 16 / 9));
                height: max(100%, calc(100vw * 9 / 16));
            }

            /* Hero страниц проектов */
            .project-hero-content {
                padding: 0 1.1rem 2rem;
            }

            /* Кнопка "наверх" и cookie-баннер */
            .back-to-top {
                right: 22px;
                bottom: 92px;
                width: 42px;
                height: 42px;
            }

            .cookie-banner {
                left: 12px;
                right: 12px;
                bottom: 12px;
                width: auto;
                transform: translateY(24px);
                flex-wrap: wrap;
                gap: 12px;
                padding: 14px;
            }

            .cookie-banner.is-visible {
                transform: translateY(0);
            }

            .cookie-banner-icon {
                width: 38px;
                height: 38px;
            }

            .cookie-banner-text {
                flex: 1 1 100%;
                order: 2;
                font-size: 0.83rem;
            }

            .cookie-banner-accept {
                flex: 1 1 100%;
                order: 3;
                padding: 12px 20px;
            }

            .chatbot-toggle {
                width: 54px;
                height: 54px;
                bottom: 20px;
                right: 20px;
            }
        }

        @media (max-width: 480px) {
            .legal-card {
                padding: 26px 16px;
                border-radius: 18px;
            }

            .legal-card h1 {
                font-size: 1.6rem;
            }

            .plan-tabs {
                gap: 8px;
            }

            .plan-tab {
                padding: 9px 8px;
                font-size: 0.86rem;
            }

            .gallery-carousel-slide img {
                height: 200px;
            }
        }

        /* ===== Точная подгонка hero-фото под вытянутые (телефонные) экраны =====
           Кадр 16:9 на портретном экране обрезается по бокам, и камин (он в левой
           трети фотографии) уходил бы за край. Поэтому на узких экранах сцену
           сдвигаем так, чтобы камин оказался по центру экрана. */
        @media (max-aspect-ratio: 5 / 4) {
            .hero-photo-stage {
                left: 0;
                transform: translate(calc(50vw - 33%), -50%);
            }
        }

        @media (max-width: 767px) {

            /* Главное фото на страницах проектов: на телефоне секция ниже,
               чтобы под "вписанной" целиком фотографией не оставалось пустоты */
            .project-hero {
                height: 66svh;
                min-height: 380px;
            }

            /* Кнопку "наверх" ставим прямо над круглой кнопкой чат-бота.
               Cookie-баннер на телефоне занимает низ экрана целиком — это нормально,
               он показывается один раз и убирается кнопкой "Согласен". */
            .back-to-top {
                bottom: 84px;
                right: 20px;
            }
        }

        /* ==========================================================================
           Страницы проектов: ТЭПы + цена, комплектации-аккордеоны
           ========================================================================== */
        .project-top-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            margin-bottom: 2.5rem;
        }

        @media (min-width: 1024px) {
            .project-top-grid {
                grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
                align-items: start;
            }
        }

        /* ---- ТЭПы ---- */
        .spec-plan-switch {
            display: flex;
            gap: 10px;
            margin-bottom: 18px;
        }

        .spec-plan-btn {
            flex: 1;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            color: #cfd8dc;
            font-weight: 600;
            font-size: 0.92rem;
            cursor: pointer;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
        }

        .spec-plan-btn:hover {
            border-color: rgba(248, 151, 46, 0.5);
            color: #fff;
        }

        .spec-plan-btn.is-active {
            background: var(--accent);
            border-color: var(--accent);
            color: #1e2a2c;
        }

        .spec-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .spec-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 13px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .spec-row:last-child {
            border-bottom: none;
        }

        .spec-row i {
            width: 20px;
            text-align: center;
            color: var(--accent);
            font-size: 0.95rem;
            flex-shrink: 0;
        }

        .spec-label {
            flex: 1;
            color: #cfd8dc;
            font-size: 0.95rem;
        }

        .spec-value {
            color: #fff;
            font-weight: 700;
            font-size: 1rem;
            white-space: nowrap;
        }

        .spec-note {
            margin-top: 14px;
            font-size: 0.8rem;
            color: #90a4ae;
            line-height: 1.45;
        }

        /* ---- Блок стоимости ---- */
        .project-price-card {
            position: sticky;
            top: 100px;
        }

        @media (max-width: 1023px) {
            .project-price-card {
                position: static;
            }
        }

        .price-pkg-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-bottom: 20px;
        }

        .price-pkg-btn {
            padding: 10px 6px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            color: #cfd8dc;
            font-weight: 600;
            font-size: 0.84rem;
            line-height: 1.25;
            cursor: pointer;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
        }

        .price-pkg-btn:hover {
            border-color: rgba(248, 151, 46, 0.5);
            color: #fff;
        }

        .price-pkg-btn.is-active {
            background: var(--accent);
            border-color: var(--accent);
            color: #1e2a2c;
        }

        .price-value {
            font-size: clamp(1.9rem, 4vw, 2.5rem);
            font-weight: 800;
            color: var(--accent);
            line-height: 1.1;
        }

        .price-caption {
            margin-top: 6px;
            color: #b0bec5;
            font-size: 0.9rem;
        }

        .price-note {
            margin-top: 14px;
            color: #90a4ae;
            font-size: 0.82rem;
            line-height: 1.5;
        }

        .price-cta {
            width: 100%;
            margin-top: 18px;
        }

        .price-cta-secondary {
            width: 100%;
            margin-top: 10px;
            padding: 12px 20px;
            border-radius: 50px;
            border: 1px solid rgba(248, 151, 46, 0.55);
            background: transparent;
            color: var(--accent);
            font-weight: 600;
            cursor: pointer;
            transition: background 0.25s ease, color 0.25s ease;
        }

        .price-cta-secondary:hover {
            background: rgba(248, 151, 46, 0.14);
            color: #ffc078;
        }

        /* ---- Комплектации-аккордеоны ---- */
        .pkg-accordion {
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            overflow: hidden;
            margin-bottom: 12px;
            background: rgba(255, 255, 255, 0.03);
        }

        .pkg-head {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px 18px;
            background: transparent;
            border: none;
            color: #fff;
            text-align: left;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .pkg-head:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .pkg-head.is-open {
            background: rgba(248, 151, 46, 0.1);
        }

        .pkg-name {
            flex: 1;
            font-weight: 700;
            font-size: 1rem;
        }

        .pkg-price {
            color: var(--accent);
            font-weight: 700;
            font-size: 0.95rem;
            white-space: nowrap;
        }

        .pkg-plus {
            position: relative;
            flex-shrink: 0;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 1px solid rgba(248, 151, 46, 0.5);
        }

        .pkg-plus::before,
        .pkg-plus::after {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            background: var(--accent);
            border-radius: 1px;
            transition: transform 0.25s ease, opacity 0.25s ease;
        }

        .pkg-plus::before {
            width: 12px;
            height: 2px;
            margin: -1px 0 0 -6px;
        }

        .pkg-plus::after {
            width: 2px;
            height: 12px;
            margin: -6px 0 0 -1px;
        }

        .pkg-head.is-open .pkg-plus::after {
            transform: rotate(90deg);
            opacity: 0;
        }

        .pkg-body {
            padding: 4px 18px 18px;
        }

        .pkg-body ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .pkg-body li {
            position: relative;
            padding: 7px 0 7px 24px;
            color: #cfd8dc;
            font-size: 0.92rem;
            line-height: 1.55;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .pkg-body li:last-child {
            border-bottom: none;
        }

        .pkg-body li::before {
            content: '';
            position: absolute;
            left: 4px;
            top: 15px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
        }

        .pkg-note {
            margin-top: 14px;
            font-size: 0.8rem;
            color: #90a4ae;
            line-height: 1.45;
        }

        @media (max-width: 767px) {
            .pkg-head {
                padding: 14px;
                gap: 10px;
                flex-wrap: wrap;
            }

            .pkg-name {
                flex: 1 1 100%;
                order: 1;
            }

            .pkg-price {
                order: 2;
            }

            .pkg-plus {
                order: 3;
                margin-left: auto;
            }

            .pkg-body {
                padding: 4px 14px 16px;
            }

            .price-pkg-row {
                grid-template-columns: 1fr;
            }

            .spec-row {
                padding: 11px 0;
            }
        }

        /* ==========================================================================
           Hero главной: крупный текст поверх фото + усиленный "кинемаграф"
           ========================================================================== */
        .hero-content {
            z-index: 2;
        }

        /* Мягкая тёмная подложка под текстом — чтобы заголовок читался на фото */
        .hero-text-scrim {
            position: absolute;
            left: 50%;
            top: 50%;
            width: min(1100px, 96vw);
            height: min(620px, 80vh);
            transform: translate(-50%, -50%);
            background: radial-gradient(ellipse at center,
                    rgba(10, 16, 18, 0.78) 0%,
                    rgba(10, 16, 18, 0.55) 45%,
                    rgba(10, 16, 18, 0) 75%);
            pointer-events: none;
            z-index: 1;
        }

        .hero h1 {
            text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
            letter-spacing: -0.01em;
        }

        .hero-content p {
            text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
        }

        /* Капли, стекающие по стеклу (второй, более медленный слой дождя) */
        .hero-photo-drops {
            position: absolute;
            inset: -12% -8%;
            background-image:
                radial-gradient(ellipse 2px 7px at 12% 20%, rgba(255, 255, 255, 0.55) 0%, transparent 70%),
                radial-gradient(ellipse 1.5px 6px at 34% 62%, rgba(255, 255, 255, 0.45) 0%, transparent 70%),
                radial-gradient(ellipse 2.5px 9px at 58% 32%, rgba(255, 255, 255, 0.5) 0%, transparent 70%),
                radial-gradient(ellipse 2px 8px at 77% 74%, rgba(255, 255, 255, 0.42) 0%, transparent 70%),
                radial-gradient(ellipse 1.5px 6px at 91% 44%, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
            background-size: 260px 200px;
            background-repeat: repeat;
            opacity: 0.75;
            animation: hero-drops-fall 3.6s linear infinite;
            -webkit-mask-image: linear-gradient(90deg,
                    rgba(0, 0, 0, 0.95) 0%,
                    rgba(0, 0, 0, 0.55) 18%,
                    rgba(0, 0, 0, 0.08) 34%,
                    rgba(0, 0, 0, 0.08) 52%,
                    rgba(0, 0, 0, 0.75) 66%,
                    rgba(0, 0, 0, 0.95) 100%);
            mask-image: linear-gradient(90deg,
                    rgba(0, 0, 0, 0.95) 0%,
                    rgba(0, 0, 0, 0.55) 18%,
                    rgba(0, 0, 0, 0.08) 34%,
                    rgba(0, 0, 0, 0.08) 52%,
                    rgba(0, 0, 0, 0.75) 66%,
                    rgba(0, 0, 0, 0.95) 100%);
        }

        @keyframes hero-drops-fall {
            from {
                background-position: 0 0, 40px 0, 90px 0, 150px 0, 210px 0;
            }

            to {
                background-position: 0 200px, 40px 200px, 90px 200px, 150px 200px, 210px 200px;
            }
        }

        /* Тёплый отсвет камина на стене — усиливает ощущение живого огня */
        .hero-fire-wall {
            position: absolute;
            left: 12%;
            top: 30%;
            width: 44%;
            height: 42%;
            background: radial-gradient(ellipse at 40% 70%,
                    rgba(248, 151, 46, 0.28) 0%,
                    rgba(248, 151, 46, 0.1) 45%,
                    transparent 72%);
            mix-blend-mode: screen;
            pointer-events: none;
            animation: hero-fire-wall-flicker 3.1s ease-in-out infinite;
        }

        @keyframes hero-fire-wall-flicker {

            0%,
            100% {
                opacity: 0.55;
            }

            35% {
                opacity: 0.85;
            }

            60% {
                opacity: 0.65;
            }

            80% {
                opacity: 0.9;
            }
        }

        @media (prefers-reduced-motion: reduce) {

            .hero-photo-drops,
            .hero-fire-wall {
                animation: none !important;
            }
        }

        /* ==========================================================================
           Правовой блок (октябрь 2026): реквизиты в подвале, согласие, cookie-баннер
           с двумя кнопками, таблицы в правовых документах.
           ========================================================================== */

        /* ----- Подвал: реквизиты юрлица и правовые ссылки ----- */
        .footer-legal {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .footer-legal .footer-legal-req p {
            margin: 0 0 4px;
            font-size: 0.86rem;
            line-height: 1.55;
            color: #b0bec5;
        }

        .footer-legal .footer-legal-req strong {
            color: #fff;
            font-weight: 600;
        }

        .footer-legal .footer-legal-note {
            margin: 0;
            max-width: 920px;
            font-size: 0.78rem;
            line-height: 1.55;
            color: #90a4ae;
        }

        .footer-legal .footer-legal-bottom {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 12px 28px;
            font-size: 0.86rem;
            color: #90a4ae;
        }

        .footer-legal .footer-legal-links {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 24px;
        }

        .footer-legal .footer-legal-links a,
        .footer-legal .footer-legal-links button {
            padding: 0;
            border: none;
            background: none;
            font: inherit;
            color: #90a4ae;
            cursor: pointer;
            text-align: left;
            text-decoration: underline;
            text-decoration-color: rgba(144, 164, 174, 0.4);
            text-underline-offset: 3px;
            transition: color 0.2s ease;
        }

        .footer-legal .footer-legal-links a:hover,
        .footer-legal .footer-legal-links button:hover {
            color: #fff;
        }

        /* ----- Форма заявки: ссылка в сноске ----- */
        .lead-modal .lead-modal-footnote a {
            color: var(--accent);
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        /* ----- Cookie-баннер: две равнозначные кнопки ----- */
        .cookie-banner .cookie-banner-actions {
            flex-shrink: 0;
            display: flex;
            gap: 10px;
        }

        .cookie-banner .cookie-banner-decline {
            flex-shrink: 0;
            padding: 11px 22px;
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 999px;
            background: transparent;
            color: #fff;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        .cookie-banner .cookie-banner-decline:hover {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        /* ----- Правовые документы: подзаголовки, реквизиты, таблицы ----- */
        .legal-card .legal-req {
            margin: 0 0 16px;
            padding: 16px 18px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(20, 32, 31, 0.35);
        }

        .legal-card .legal-req p {
            margin-bottom: 4px;
        }

        .legal-card .legal-req p:last-child {
            margin-bottom: 0;
        }

        .legal-card ol {
            list-style: decimal;
            padding-left: 22px;
            margin-bottom: 12px;
        }

        .legal-card strong {
            color: #fff;
            font-weight: 600;
        }

        .legal-card .legal-table-wrap {
            margin: 0 0 16px;
            overflow-x: auto;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .legal-card table.legal-table {
            width: 100%;
            min-width: 640px;
            border-collapse: collapse;
            font-size: 0.86rem;
            line-height: 1.55;
            color: #cfd8dc;
        }

        .legal-card .legal-table th,
        .legal-card .legal-table td {
            padding: 12px 14px;
            text-align: left;
            vertical-align: top;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .legal-card .legal-table th {
            background: rgba(20, 32, 31, 0.45);
            color: #fff;
            font-weight: 600;
        }

        .legal-card .legal-table tr:last-child td {
            border-bottom: none;
        }

        .legal-card .legal-table code,
        .legal-card p code {
            font-size: 0.92em;
            padding: 1px 5px;
            border-radius: 5px;
            background: rgba(20, 32, 31, 0.5);
            color: #ffc078;
            word-break: break-all;
        }

        .legal-card .legal-docs-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 22px;
            margin: 28px 0 0;
            padding-top: 22px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
        }

        @media (max-width: 767px) {
            .cookie-banner .cookie-banner-actions {
                flex: 1 1 100%;
                order: 3;
            }

            .cookie-banner .cookie-banner-actions button {
                flex: 1 1 0;
                padding: 12px 10px;
            }

            .footer-legal .footer-legal-bottom {
                flex-direction: column;
                align-items: flex-start;
            }

            .footer-legal .footer-legal-links {
                flex-direction: column;
            }
        }

        /* ==========================================================================
           Форма заявки: выбор способа связи (звонок или мессенджер)
           ========================================================================== */
        .lead-field .lead-label {
            display: block;
            font-size: 0.8rem;
            font-weight: 600;
            color: #cfd8dc;
            margin-bottom: 0.5rem;
        }

        .lead-channels {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }

        .lead-modal .lead-channel {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 7px;
            min-height: 78px;
            padding: 10px 4px 9px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.05);
            color: #cfd8dc;
            font: inherit;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
        }

        .lead-modal .lead-channel-icon {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(248, 151, 46, 0.14);
            color: var(--accent);
            font-size: 1rem;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .lead-modal .lead-channel-name {
            font-size: 0.76rem;
            font-weight: 600;
            line-height: 1.1;
            white-space: nowrap;
        }

        .lead-modal .lead-channel:hover {
            border-color: rgba(248, 151, 46, 0.5);
            color: #fff;
        }

        .lead-modal .lead-channel:active {
            transform: scale(0.96);
        }

        .lead-modal .lead-channel:focus-visible {
            outline: 2px solid rgba(248, 151, 46, 0.85);
            outline-offset: 2px;
        }

        .lead-modal .lead-channel.is-active {
            border-color: transparent;
            background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
            color: #14201f;
            box-shadow: 0 8px 20px rgba(248, 151, 46, 0.28);
        }

        .lead-modal .lead-channel.is-active .lead-channel-icon {
            background: rgba(20, 32, 31, 0.9);
            color: var(--accent);
        }

        .lead-field .lead-field-hint {
            margin-top: 0.3rem;
            font-size: 0.75rem;
            line-height: 1.4;
            color: #90a4ae;
        }

        .lead-field.has-error .lead-field-hint {
            display: none;
        }

        /* ----- «Или напишите нам сами»: прямые кнопки мессенджеров под формой ----- */
        .lead-direct {
            margin-top: 1.1rem;
        }

        .lead-direct-title {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 0.8rem;
            font-size: 0.74rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #90a4ae;
        }

        .lead-direct-title::before,
        .lead-direct-title::after {
            content: "";
            flex: 1 1 auto;
            height: 1px;
            background: rgba(255, 255, 255, 0.12);
        }

        .lead-direct-buttons {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }

        .lead-modal .lead-direct-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 72px;
            padding: 9px 4px 8px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.05);
            color: #eceff1;
            font: inherit;
            text-align: center;
            text-decoration: none;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
        }

        .lead-direct-name {
            font-size: 0.76rem;
            font-weight: 600;
            line-height: 1.1;
            white-space: nowrap;
        }

        .lead-modal .lead-direct-btn:hover {
            border-color: rgba(248, 151, 46, 0.55);
            background: rgba(248, 151, 46, 0.1);
        }

        .lead-modal .lead-direct-btn:active {
            transform: scale(0.97);
        }

        .lead-modal .lead-direct-btn:focus-visible {
            outline: 2px solid rgba(248, 151, 46, 0.85);
            outline-offset: 2px;
        }

        .lead-direct-note {
            margin-top: 0.7rem;
            font-size: 0.7rem;
            line-height: 1.45;
            color: #90a4ae;
            text-align: center;
        }

        /* Короткое уведомление (например, «номер скопирован») — поверх окна заявки */
        .fh-toast {
            position: fixed;
            left: 50%;
            bottom: calc(24px + env(safe-area-inset-bottom, 0px));
            z-index: 1400;
            width: max-content;
            max-width: min(420px, calc(100vw - 32px));
            padding: 12px 18px;
            border-radius: 14px;
            border: 1px solid rgba(248, 151, 46, 0.45);
            background: #14201f;
            color: #eceff1;
            font-size: 0.86rem;
            line-height: 1.4;
            text-align: center;
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
            opacity: 0;
            visibility: hidden;
            transform: translate(-50%, 12px);
            transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
            pointer-events: none;
        }

        .fh-toast.is-visible {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, 0);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }

        @media (prefers-reduced-motion: reduce) {
            .lead-modal .lead-channel,
            .lead-modal .lead-channel-icon,
            .lead-modal .lead-direct-btn,
            .fh-toast,
            .fh-toast.is-visible {
                transition: none;
            }
        }

        /* ==========================================================================
           Окно «Заявка отправлена» — по центру экрана поверх сайта
           ========================================================================== */
        .lead-success {
            position: fixed;
            inset: 0;
            z-index: 1500;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(12, 18, 20, 0.72);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .lead-success[hidden] {
            display: none;
        }

        .lead-success.is-open {
            opacity: 1;
        }

        .lead-success-box {
            position: relative;
            width: 100%;
            max-width: 400px;
            padding: 34px 28px 26px;
            border-radius: 22px;
            border: 1px solid rgba(248, 151, 46, 0.35);
            background: linear-gradient(160deg, #24363a 0%, #1a2729 100%);
            box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
            color: #eceff1;
            text-align: center;
            transform: translateY(14px) scale(0.97);
            transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .lead-success.is-open .lead-success-box {
            transform: none;
        }

        .lead-success-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            color: #14201f;
            background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
            box-shadow: 0 10px 26px rgba(248, 151, 46, 0.35);
        }

        .lead-success-box h3 {
            margin: 0 0 8px;
            font-size: 1.35rem;
            font-weight: 700;
            color: #fff;
        }

        .lead-success-text {
            margin: 0 0 22px;
            font-size: 0.95rem;
            line-height: 1.5;
            color: #b0bec5;
        }

        .lead-success-ok {
            width: 100%;
            padding: 13px 18px;
            border: none;
            border-radius: 999px;
            font: inherit;
            font-weight: 700;
            color: #14201f;
            background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
            cursor: pointer;
            transition: filter 0.2s ease, transform 0.15s ease;
        }

        .lead-success-ok:hover {
            filter: brightness(1.06);
        }

        .lead-success-ok:active {
            transform: scale(0.98);
        }

        .lead-success-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.05);
            color: #cfd8dc;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .lead-success-close:hover {
            color: #fff;
            border-color: rgba(248, 151, 46, 0.5);
        }

        .lead-success-ok:focus-visible,
        .lead-success-close:focus-visible {
            outline: 2px solid rgba(248, 151, 46, 0.85);
            outline-offset: 2px;
        }

        @media (prefers-reduced-motion: reduce) {
            .lead-success,
            .lead-success-box {
                transition: none;
            }
        }

        /* ===== Акция для первых клиентов (21.10.2026) =====
           Плашка на первом экране и внизу главной — ссылка на блок #promo с условиями. */
        a.promo-badge {
            text-decoration: none;
            transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
        }
        a.promo-badge:hover,
        a.promo-badge:focus-visible {
            background: rgba(248, 151, 46, 0.25);
            border-color: rgba(248, 151, 46, 0.7);
            transform: translateY(-1px);
        }
        .promo-badge--hero {
            background: rgba(30, 42, 44, 0.72);
            border-color: rgba(248, 151, 46, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            flex-wrap: wrap;
            justify-content: center;
        }
        .promo-badge-more {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            color: #fff;
            font-weight: 600;
            font-size: 0.85rem;
            opacity: 0.9;
        }
        .promo-badge-more i {
            font-size: 0.75rem;
        }

        .promo-block {
            max-width: 880px;
            margin: 0 auto;
            padding: 2.5rem 2.5rem 2.25rem;
            border-color: rgba(248, 151, 46, 0.35);
            color: #fff;
        }
        .promo-block-head {
            display: flex;
            align-items: center;
            gap: 1.1rem;
            margin-bottom: 1.25rem;
        }
        .promo-block-icon {
            flex: 0 0 auto;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(248, 151, 46, 0.2);
            color: var(--accent);
            font-size: 1.5rem;
        }
        .promo-block-kicker {
            margin: 0 0 0.2rem;
            color: var(--accent);
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }
        .promo-block-title {
            margin: 0;
            font-size: 1.9rem;
            line-height: 1.2;
            font-weight: 700;
        }
        .promo-block-lead {
            margin: 0 0 1.5rem;
            font-size: 1.1rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.92);
        }
        .promo-block-subtitle {
            margin: 0 0 0.75rem;
            font-size: 1.05rem;
            font-weight: 700;
        }
        .promo-block-list {
            margin: 0 0 1.75rem;
            padding: 0;
            list-style: none;
        }
        .promo-block-list li {
            position: relative;
            padding-left: 1.6rem;
            margin-bottom: 0.65rem;
            line-height: 1.55;
            color: rgba(255, 255, 255, 0.85);
        }
        .promo-block-list li::before {
            content: '';
            position: absolute;
            left: 0.2rem;
            top: 0.6em;
            width: 0.5rem;
            height: 0.5rem;
            border-radius: 50%;
            background: var(--accent);
        }
        .promo-block-list a {
            color: var(--accent);
            white-space: nowrap;
        }

        /* Строка про акцию в карточке цены на страницах проектов */
        .price-promo {
            display: flex;
            align-items: flex-start;
            gap: 0.55rem;
            margin: 0.25rem 0 1rem;
            padding: 0.7rem 0.9rem;
            border-radius: 12px;
            background: rgba(248, 151, 46, 0.12);
            border: 1px solid rgba(248, 151, 46, 0.35);
            color: #fff;
            font-size: 0.9rem;
            line-height: 1.45;
            text-decoration: none;
            transition: background-color 0.25s ease;
        }
        .price-promo:hover,
        .price-promo:focus-visible {
            background: rgba(248, 151, 46, 0.22);
        }
        .price-promo i {
            color: var(--accent);
            margin-top: 0.15rem;
        }
        .price-promo strong {
            color: var(--accent);
        }

        @media (max-width: 767px) {
            .promo-block {
                padding: 1.75rem 1.25rem;
            }
            .promo-block-title {
                font-size: 1.45rem;
            }
            .promo-block-icon {
                width: 46px;
                height: 46px;
                font-size: 1.2rem;
            }
                        .promo-badge {
                padding: 0.65rem 1.1rem;
                font-size: 0.88rem;
            }
            .promo-badge--hero {
                display: inline-block;
                max-width: 100%;
                border-radius: 18px;
                text-align: center;
                line-height: 1.45;
            }
            .promo-badge--hero > i {
                margin-right: 0.35rem;
            }
            .promo-badge--hero .promo-badge-more {
                margin-left: 0.4rem;
            }
        }
