:root {
    --bg-graphite: #1F1E26;
    --brand-red: #E60004;
    --text-white: #FFFFFF;
    --text-dark: #1F1E26;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Lato', sans-serif;
}
.bg-bm{
    background:#E60004;
}
.color-bm{
    color:#E60004;
}
/* --- СБРОС ДЛЯ ПРЕДОТВРАЩЕНИЯ ДВОЙНОГО СКРОЛЛА --- */
html, body {
    width: 100%;
    height: auto; /* Убираем жесткую высоту 100% или 100vh */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Блокируем горизонтальный скролл */
    /* overflow-y: auto; - убедитесь, что нигде в body нет overflow: scroll! */
}

/* Обертки не должны иметь собственного скролла! */
.smooth-wrapper, 
.smooth-content {
    width: 100%;
    height: auto;
    overflow: clip; /* clip работает лучше hidden для GSAP */
    position: relative;
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--bg-graphite);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-graphite);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.preloader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--text-white);
    margin-bottom: 20px;
    opacity: 0;
}
.preloader-progress {
    width: 0;
    height: 2px;
    background: var(--brand-red);
}

/* Главный экран */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 5% 5%;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(31,30,38,0.9) 0%, rgba(31,30,38,0.3) 100%);
    z-index: 2;
}
.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}
.hero-title .line {
    display: block;
    overflow: hidden;
}
.hero-desc {
    max-width: 350px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
}

/* Шапка */
/* Шапка */
.header {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    padding: 1.5rem 5%; /* Слегка уменьшим отступы для большей элегантности */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    
    /* --- Убираем инверсию цвета --- */
    /* mix-blend-mode: difference; - ЭТУ СТРОКУ УДАЛИЛИ */
    
    /* --- Включаем Apple Глассморфизм --- */
    background: rgba(31, 30, 38, 0.65); /* Полупрозрачный фирменный графитовый фон */
    backdrop-filter: blur(16px); /* Глубокое размытие заднего фона */
    -webkit-backdrop-filter: blur(16px); /* Обязательно для работы размытия в Safari (iPhone/Mac) */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Очень тонкая и деликатная нижняя граница для объема */
    
    transition: all 0.3s ease;
}
.logo img {
    height: 40px;
}
.header-nav a {
    color: var(--text-white);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}
.header-nav a:hover {
    color: var(--brand-red);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.btn-media {
    border: 1px solid var(--text-white);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn-media:hover {
    background: var(--text-white);
    color: var(--bg-graphite);
}
.btn-menu {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-white);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: border-color 0.3s ease;
}
.btn-menu:hover {
    border-color: var(--text-white);
}
/* Две линии бургера — симметрично относительно центра кнопки (по высоте совпадает с текстом «МЕНЮ») */
.burger-lines {
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 8px;
    border-top: 2px solid var(--text-white);
    border-bottom: 2px solid var(--text-white);
    box-sizing: border-box;
}

/* Меню */
.premium-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    display: flex;
    z-index: 1000;
    /* Изменено: теперь меню спрятано на 100% справа, а не слева (-100%) */
    transform: translateX(100%); 
}
.menu-left {
    width: 40%;
    height: 100%;
    position: relative;
    background: #000;
    /* Добавлено: жестко обрезает всё, что выходит за границы блока */
    overflow: hidden; 
}
.menu-video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.menu-video-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.2);
}
.menu-right {
    width: 60%;
    height: 100%;
    background: #F5F4F0; /* Светлый тон как на макете */
    color: var(--text-dark);
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.menu-close-btn {
    position: absolute;
    top: 2rem; right: 5%;
    background: none; border: none;
    cursor: pointer;
    padding: 10px;
}
.menu-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(31,30,38,0.5);
    margin-bottom: 4rem;
}
.menu-nav {
    display: flex;
    flex-direction: column;
}
.menu-nav a {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-dark);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(31,30,38,0.1);
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    transition: color 0.3s ease;
}
.menu-nav a span {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(31,30,38,0.4);
}
.menu-nav a:hover {
    color: var(--brand-red);
}
.menu-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.footer-contacts a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

/* Адаптив */
@media (max-width: 991px) {
    .premium-menu {
        flex-direction: column;
    }
    .menu-left {
        width: 100%; height: 30%;
    }
    .menu-right {
        width: 100%; height: 70%;
        padding: 2rem 5%;
    }
    .menu-subtitle {
        margin-bottom: 2rem;
    }
}

/* --- Секция статистики --- */
.stats-section {
    background-color: var(--bg-graphite);
    padding: 10% 5%;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Легкий разделитель блоков */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    /* Деликатное свечение для придания объема на графитовом фоне */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    max-width: 220px;
    line-height: 1.4;
}

/* Адаптивность блока статистики */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 1.5rem;
    }
}

@media (max-width: 575px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .stat-value {
        font-size: 4rem;
    }
}

/* --- Секция Карты --- */
.map-section {
    padding: 5% 5%;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.map-header {
    text-align: center;
    margin-bottom: 4rem;
}

.map-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

.map-title span {
    color: var(--brand-red);
}

.map-wrapper {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    /* Легкое свечение вокруг карты для объема */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.media-map {
    width: 100%;
    height: 100%;
}

/* * ХАК ДЛЯ ТЕМНОЙ ТЕМЫ ЯНДЕКС КАРТ 
 * Инвертируем только слой с самой картой (дороги, дома),
 * оставляя маркеры и балуны в нормальных цветах.
 */
[class*="-ground-pane"] {
    filter: grayscale(100%) invert(85%) brightness(60%) contrast(90%) !important;
}

/* --- Пульсирующие точки (Маркеры) --- */
.pulse-marker {
    width: 16px;
    height: 16px;
    background-color: var(--brand-red);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 10px var(--brand-red);
    transform: translate(-50%, -50%); /* Центрирование маркера */
}

.pulse-marker::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    background-color: var(--brand-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

/* --- Премиальный Балун (Popup) --- */
.custom-balloon {
    background: var(--bg-graphite);
    color: var(--text-white);
    padding: 20px;
    width: 280px;
    border-radius: 12px;
    font-family: var(--font-body);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.custom-balloon img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.custom-balloon h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.custom-balloon .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

.custom-balloon .info-row span:first-child {
    color: rgba(255,255,255,0.5);
}

.balloon-book-btn {
    display: block;
    width: 100%;
    background: var(--brand-red);
    color: var(--text-white);
    text-align: center;
    padding: 12px 0;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 15px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: background 0.3s ease;
}

.balloon-book-btn:hover {
    background: #c20003;
    color: #fff;
}

/* Переопределение стандартных стилей балуна Яндекса для чистоты дизайна */
[class*="-balloon__layout"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
[class*="-balloon__content"] {
    padding: 0 !important;
    background: transparent !important;
}
[class*="-balloon__tail"] {
    display: none !important; /* Убираем стандартный хвостик */
}
[class*="-balloon__close"] {
    filter: invert(1); /* Делаем крестик закрытия белым */
    top: 10px !important;
    right: 10px !important;
}

/* --- Секция "Почему о нас говорят" (Видео с текстом) --- */
.video-impact-section {
    padding: 10% 0 5% 0; /* Убираем боковые отступы для видео на всю ширину */
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.video-impact-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.impact-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.impact-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(31, 30, 38, 0.6); /* Полупрозрачный графит для читаемости текста */
    z-index: 1;
}

.impact-text-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
}

.impact-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4.5rem);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    width: 100%;
}

.impact-text-left p {
    color: rgba(255, 255, 255, 0.4); /* Приглушенный белый */
    margin: 0;
    max-width: 60%;
}

.impact-text-right {
    text-align: right;
    margin-top: 2rem;
}

.impact-text-right p {
    color: var(--text-white);
    margin: 0 0 0 auto;
    max-width: 60%;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.impact-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5% 5% 0 5%;
    flex-wrap: wrap;
    gap: 2rem;
}

.impact-stat {
    text-align: center;
}

.impact-stat-num {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--brand-red);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.impact-stat-desc {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
}

/* --- Секция Сравнения --- */
.comparison-section {
    padding: 9% 5% 3% 5%;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.comparison-header {
    text-align: center;
    margin-bottom: 5rem;
}

.comparison-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

.comparison-header span {
    color: var(--brand-red);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.compare-card {
    border-radius: 20px;
    overflow: hidden;
    background: #15141A;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.compare-card-visual {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.compare-card-visual img, 
.compare-card-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: filter 0.4s ease;
}

.visual-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #15141A 0%, rgba(21, 20, 26, 0) 100%);
}

.compare-card-content {
    padding: 3rem;
    flex-grow: 1;
}

.compare-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.5);
}

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

.compare-list li {
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    color: rgba(255,255,255,0.5);
}

.compare-list li span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.3rem;
}

/* Акценты для премиум-карточки Business Media */
.premium-card {
    border-color: rgba(230, 0, 4, 0.3); /* Красный бордер */
    box-shadow: 0 20px 50px rgba(230, 0, 4, 0.05);
    transform: translateY(-20px); /* Слегка приподнята */
}

.premium-card .compare-card-visual video {
    filter: grayscale(0%); /* Полноцветное видео */
}

.premium-card .active-overlay {
    background: linear-gradient(to top, #15141A 0%, rgba(230, 0, 4, 0.1) 100%);
}

.premium-card h3 {
    color: var(--text-white);
}

.premium-card .compare-list li {
    color: var(--text-white);
    border-bottom-color: rgba(255,255,255,0.1);
}

.premium-card .compare-list li span {
    color: var(--brand-red);
}

/* Адаптивность */
@media (max-width: 991px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .premium-card {
        transform: translateY(0);
    }
    .impact-text-left p, .impact-text-right p {
        max-width: 90%;
    }
}

/* --- Блок Кейсов (Горизонтальный скролл) --- */
.cases-section {
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
    overflow: hidden; /* Скрываем все, что выходит за рамки экрана */
}

.cases-header {
    position: absolute;
    top: 5%;
    left: 5%;
    z-index: 20;
}

.cases-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    font-weight: 700;
}

.cases-header span {
    color: var(--brand-red);
}

.cases-scroll-container {
    height: 100vh;
    display: flex;
    align-items: center;
}

.cases-wrapper {
    display: flex;
    padding: 0 5%;
    gap: 5vw;
    height: 70vh; /* Высота самих карточек */
}

.case-slide {
    flex: 0 0 80vw; /* Каждый кейс занимает 80% ширины экрана */
    max-width: 1200px;
    height: 100%;
    display: flex;
    background: #15141A;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.case-visual {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    /* Плавная премиальная анимация для зума */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Эффект при наведении: легкий зум картинки вместо черного экрана */
.case-visual:hover .case-img {
    transform: scale(1.05);
}

.case-content {
    width: 50%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-meta {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.5rem;
}

.meta-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--brand-red);
    font-weight: 700;
}

.case-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.case-comment {
    margin: 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    position: relative;
}

.case-comment::before {
    content: '';
    position: absolute;
    left: -20px; top: 0;
    width: 3px; height: 100%;
    background: var(--brand-red);
}

.case-comment cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* Адаптивность для телефонов */
@media (max-width: 991px) {
    .case-slide {
        flex-direction: column;
        flex: 0 0 90vw;
    }
    .case-visual, .case-content {
        width: 100%;
    }
    .case-visual {
        height: 40%;
    }
    .case-content {
        height: 60%;
        padding: 2rem;
    }
    .case-meta {
        gap: 1.5rem;
    }
    .case-title {
        font-size: 1.5rem;
    }
}

/* --- Секция Таймлайна --- */
.timeline-section {
    padding: 10% 5%;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.timeline-header {
    text-align: center;
    margin-bottom: 6rem;
}

.timeline-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    font-weight: 700;
}

.timeline-header span {
    color: var(--brand-red);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem; /* Место для линии слева */
}

/* Линии таймлайна */
.timeline-line-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0%; /* Изначально 0, анимируется через GSAP */
    background: var(--brand-red);
    box-shadow: 0 0 15px var(--brand-red);
    z-index: 1;
}

/* Элементы (Дни) */
.timeline-item {
    position: relative;
    padding-bottom: 5rem;
    display: flex;
    align-items: center;
    opacity: 0; /* Скрыто до скролла */
    transform: translateY(30px);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem; /* Центрируем точку ровно по линии */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-graphite);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    transition: all 0.4s ease;
}

/* Класс active будет добавляться через JS при скролле */
.timeline-item.active .timeline-dot {
    border-color: var(--brand-red);
    background: var(--brand-red);
    box-shadow: 0 0 20px var(--brand-red);
    transform: scale(1.3);
}

.timeline-content {
    margin-left: 3rem;
}

.timeline-day {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.2rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.timeline-item.active .timeline-day {
    color: var(--brand-red);
}

.timeline-text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-white);
    letter-spacing: 0.05em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .timeline-container {
        padding-left: 1rem;
    }
    .timeline-dot {
        left: -1.35rem;
        width: 12px;
        height: 12px;
    }
    .timeline-content {
        margin-left: 2rem;
    }
}

/* --- Секция "Как мы работаем" --- */
.how-it-works-section {
    padding: 10% 5%;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.how-header {
    text-align: center;
    margin-bottom: 5rem;
}

.how-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-transform: uppercase;
    font-weight: 700;
}

.how-header span {
    color: var(--brand-red);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.step-card {
    position: relative;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s ease;
}

.step-card:hover {
    border-top-color: var(--brand-red);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
    /* Эффект контурного текста (Outline) */
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    transition: -webkit-text-stroke 0.3s ease, text-shadow 0.3s ease;
}

.step-card:hover .step-number {
    -webkit-text-stroke: 1px var(--brand-red);
    text-shadow: 0 0 20px rgba(230, 0, 4, 0.4);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.step-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

/* --- Секция "Сравнение 2.0" --- */
.comparison-table-section {
    padding: 5% 5% 10% 5%;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.compare-table-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr; /* Business Media колонка чуть шире */
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s ease;
}

.compare-row:not(.compare-header-row):hover {
    background: rgba(255,255,255,0.02);
}

.compare-col {
    padding: 2rem 1rem;
    font-size: 1.2rem;
}

.compare-header-row .compare-col {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.4);
    border-bottom: none;
    padding-bottom: 3rem;
}

.compare-header-row .compare-premium {
    color: var(--text-white);
    font-size: 2rem;
}

.compare-feature {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.compare-regular {
    color: rgba(255,255,255,0.6);
}

.compare-premium {
    color: var(--brand-red);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
}

/* Легкое свечение для колонки Business Media */
.compare-premium::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 2px; height: 50%;
    background: var(--brand-red);
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compare-row:hover .compare-premium::before {
    opacity: 1;
}

/* Адаптив */
@media (max-width: 991px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .compare-row {
        grid-template-columns: 1fr 1fr; /* Убираем колонку "Feature" на мобилках */
    }
    .compare-feature {
        display: none;
    }
    .compare-header-row .compare-col {
        font-size: 1.2rem;
    }
}

/* --- Финальный экран --- */
.final-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 10;
}

.final-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%; /* 120% для параллакса */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.final-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(31,30,38,0.2) 0%, rgba(31,30,38,0.9) 100%);
    z-index: 2;
}

.final-content {
    position: relative;
    z-index: 3;
    padding: 0 5%;
}

.final-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 3rem;
    color: var(--text-white);
}

.final-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-white);
}

.final-title:has(+ .final-subtitle) {
    margin-bottom: 1.5rem;
}

.final-subtitle {
    max-width: 640px;
    margin: 0 auto 3rem;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.final-btn {
    display: inline-block; /* Обязательно для корректной работы GSAP-анимации */
    font-size: 1rem;
    padding: 1rem 3rem;
    border-radius: 50px;
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.final-btn:hover {
    background: #c20003;
    border-color: #c20003;
    color: var(--text-white);
}

/* --- Подвал (Footer) --- */
.footer {
    background-color: #1A1920; /* Чуть темнее основного графита */
    padding: 6rem 5% 3rem 5%;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer-nav a {
    font-family: var(--font-heading);
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--brand-red);
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

.footer-contacts-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-contacts-col a:hover,
.footer-legal-col a:hover {
    color: var(--text-white);
}

.footer-contacts-col p {
    margin: 0;
}

.footer-legal-col {
    text-align: right;
}

.footer-legal-col p {
    margin: 0 0 0.5rem 0;
}

.footer-legal-col a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
}

.footer-huge-text {
    font-family: var(--font-heading);
    font-size: clamp(4.5rem, 12vw, 14rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text-white);
    width: 100%;
    text-align: justify;
    text-transform: uppercase;
    text-align-last: justify; /* Растягивает текст по всей ширине */
}

.back-to-top {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.back-to-top:hover {
    opacity: 1;
}

/* Адаптив */
@media (max-width: 768px) {
    .footer {
        gap: 4rem;
        padding-top: 4rem;
    }
    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-middle {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-legal-col {
        text-align: left;
    }
    .footer-huge-text {
        text-align: left;
        text-align-last: left;
        word-break: normal;      /* переносим только целыми словами: BUSINESS / MEDIA */
        overflow-wrap: normal;
        font-size: clamp(3rem, 17vw, 4.5rem);
    }
}

/* --- Премиальный редизайн Bootstrap Modal --- */
.premium-modal-content {
    background-color: var(--bg-graphite);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.btn-close-custom {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-close-custom:hover {
    color: var(--brand-red);
    transform: rotate(90deg);
}

.modal-header-custom {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title-custom {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-title-custom span {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-white);
}

.modal-header-custom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0;
}

/* Переопределение инпутов Bootstrap */
.premium-bs-input {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 !important;
    color: var(--text-white) !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.premium-bs-input:focus {
    border-bottom-color: var(--brand-red) !important;
}

/* Переопределение плавающих лейблов Bootstrap для темной темы */
.form-floating > label {
    color: rgba(255, 255, 255, 0.4);
    padding-left: 0;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--brand-red);
    opacity: 1;
    transform: scale(0.85) translateY(-1rem) translateX(-0.15rem);
}

/* Затемнение фона (Backdrop) */
.modal-backdrop.show {
    opacity: 0.85;
    backdrop-filter: blur(5px);
}

/* --- Внутренняя Шапка (Page Hero) --- */
.page-hero {
    position: relative;
    padding: 12rem 5% 5rem 5%;
    background-color: var(--bg-graphite);
    background-image: radial-gradient(circle at 80% 20%, rgba(230, 0, 4, 0.08) 0%, transparent 50%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--text-white);
}

.breadcrumbs .sep {
    color: rgba(255, 255, 255, 0.2);
}

.breadcrumbs .current {
    color: var(--brand-red);
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 1000px;
}

.page-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-white);
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Кнопки-фильтры */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 1.6rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--text-white);
    color: var(--bg-graphite);
    border-color: var(--text-white);
}

/* --- Секция Каталога Экранов --- */
.screens-catalog-section {
    padding: 0% 5%;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.catalog-header {
    margin-bottom: 4rem;
}

.catalog-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    font-weight: 700;
}

.catalog-header span {
    color: var(--brand-red);
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Карточка экрана */
.screen-card {
    background: #15141A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.screen-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 0, 4, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.screen-card-media {
    position: relative;
    /* height: 240px; */
    overflow: hidden;
    /* padding-top: 12px; */
    margin-top: 0.6rem;
    border-radius: 1rem;
}

.screen-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.screen-card:hover .screen-card-media img {
    transform: scale(1.05);
}

.screen-tag {
    position: absolute;
    top: 1rem; left: 1rem;
    background: rgba(31, 30, 38, 0.85);
    backdrop-filter: blur(8px);
    color: var(--brand-red);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    border: 1px solid rgba(230, 0, 4, 0.3);
}

.screen-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.screen-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: var(--text-white);
}

.screen-address {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

/* Характеристики */
.screen-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.2rem;
}

.spec-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-white);
}

.screen-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.screen-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--brand-red);
    font-weight: 700;
}

.screen-price span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: normal;
}

.screen-book-btn {
    font-size: 0.75rem;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
}

/* Адаптивность для карточек экранов */
@media (max-width: 1199px) {
    .screens-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .screens-grid {
        grid-template-columns: 1fr;
    }
    .screen-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .screen-book-btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Секция Контактов --- */
.contacts-content-section {
    padding: 2rem 5% 8rem 5%;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contacts-block {
    margin-bottom: 3.5rem;
}

.contacts-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.contacts-huge-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    color: var(--text-white);
    text-decoration: none;
    line-height: 1.1;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contacts-huge-link:hover {
    color: var(--brand-red);
    transform: translateX(10px); /* Легкий сдвиг при наведении для премиальности */
}

.contacts-address-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.contacts-socials {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
}

.social-link {
    color: var(--text-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 5px;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%;
    height: 1px;
    background: var(--brand-red);
    transition: width 0.3s ease;
}

.social-link:hover {
    color: var(--brand-red);
}

.social-link:hover::after {
    width: 100%;
}

/* Форма на странице контактов */
.contacts-form-box {
    background: #15141A;
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-box-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    color: var(--text-white);
}

/* Карта офиса */
.office-map-section {
    position: relative;
    z-index: 10;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.office-map-container {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    /* Обычная цветная Яндекс.Карта — фильтр затемнения убран, чтобы клиент видел реальный адрес */
}

/* Адаптив для контактов */
@media (max-width: 991px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .contacts-form-box {
        padding: 3rem 2rem;
    }
}

/* --- Секция Архив Кейсов --- */
.cases-archive-section {
    padding: 5% 5% 10% 5%;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.cases-archive-grid {

    gap: 4rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Премиальная карточка кейса */
.premium-case-card {
    display: flex;
    flex-direction: column;
}

.case-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card-link:hover .case-card-media img {
    transform: scale(1.03);
}

.case-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; /* Широкоформатный премиальный вид */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: #000;
}

.case-card-media img,
.case-video-hover {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}

.case-video-hover {
    opacity: 0;
    z-index: 2;
}

/* При наведении показываем видео, если оно есть */
.case-card-link:hover .case-video-hover {
    opacity: 1;
}

.case-tags {
    position: absolute;
    top: 1.5rem; left: 1.5rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.case-tags .tag {
    background: rgba(31, 30, 38, 0.7);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-card-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-white);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.case-card-link:hover .case-card-title {
    color: var(--brand-red);
}

.case-card-metrics {
    display: flex;
    gap: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-white);
    font-weight: 700;
}

.metric-lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
}

.case-card-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

/* Адаптив для сетки кейсов */
@media (max-width: 991px) {
    .cases-archive-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}
@media (max-width: 575px) {
    .case-card-media {
        aspect-ratio: 4 / 3;
    }
    .case-card-title {
        font-size: 1.5rem;
    }
}

/* --- Секция "О компании" (Вступительное слово) --- */
.about-intro-section {
    padding: 6rem 5% 10rem 5%;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.about-intro-container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-manifesto {
    margin-bottom: 5rem;
}

.manifesto-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-red);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.manifesto-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.15;
    max-width: 1100px;
    color: var(--text-white);
}

.manifesto-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-white);
}

/* Сетка истории и цитаты */
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.story-col-accent {
    position: relative;
}

.about-quote {
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    line-height: 1.5;
    color: var(--text-white);
    font-style: italic;
    margin: 0;
    padding-left: 2rem;
    border-left: 3px solid var(--brand-red);
}

.story-col-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-white);
    line-height: 1.6;
    font-weight: 400;
}

.body-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.about-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sig-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--text-white);
    letter-spacing: 0.05em;
}

.sig-role {
    font-size: 0.8rem;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Медиа-баннер */
.about-visual-banner {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(31, 30, 38, 0.9) 0%, rgba(31, 30, 38, 0.2) 100%);
}

.about-banner-content {
    position: absolute;
    bottom: 3rem; left: 3rem;
    z-index: 2;
}

.banner-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-red);
    background: rgba(31, 30, 38, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(230, 0, 4, 0.3);
    margin-bottom: 1rem;
}

.about-banner-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    text-transform: uppercase;
    color: var(--text-white);
    margin: 0;
}

/* Адаптив */
@media (max-width: 991px) {
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-banner-content {
        bottom: 2rem; left: 2rem;
    }
}

/* --- Секция "История компании" --- */
.about-history-section {
    padding: 8rem 5%;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.history-header {
    text-align: center;
    margin-bottom: 6rem;
}

.history-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-white);
}

.history-title span {
    color: var(--brand-red);
}

.history-timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Линия времени */
.history-line-bg {
    position: absolute;
    left: 180px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.history-line-progress {
    position: absolute;
    left: 180px;
    top: 0;
    width: 2px;
    height: 0%;
    background: var(--brand-red);
    box-shadow: 0 0 15px var(--brand-red);
    z-index: 1;
}

.history-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(40px);
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-dot {
    position: absolute;
    left: 173px;
    top: 0.8rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-graphite);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    transition: all 0.4s ease;
}

.history-item.active .history-dot {
    background: var(--brand-red);
    border-color: var(--brand-red);
    box-shadow: 0 0 20px var(--brand-red);
    transform: scale(1.3);
}

.history-year {
    width: 140px;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    line-height: 1;
    transition: color 0.4s ease;
}

.history-item.active .history-year {
    color: var(--brand-red);
}

.history-content {
    margin-left: 80px;
    flex: 1;
}

.history-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 0.8rem;
}

.history-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

/* --- Секция "Команда" --- */
.about-team-section {
    padding: 8rem 5% 10rem 5%;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.team-header {
    text-align: center;
    margin-bottom: 5rem;
}

.team-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-white);
}

.team-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.team-card {
    background: #15141A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 0, 4, 0.4);
}

.team-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
}

.team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Фото в исходных цветах — без обесцвечивания */
    transition: transform 0.6s ease;
}

.team-card:hover .team-photo-wrap img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.8rem;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 0.4rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

/* Адаптив для Истории и Команды */
@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .history-line-bg,
    .history-line-progress {
        left: 20px;
    }
    .history-dot {
        left: 13px;
    }
    .history-item {
        flex-direction: column;
        padding-left: 50px;
    }
    .history-year {
        width: auto;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    .history-content {
        margin-left: 0;
    }
}

@media (max-width: 575px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   Секция Новостей
   ===================================================================== */
.news-cover-img {
    height: 340px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card-link:hover .news-cover-img {
    transform: scale(1.05);
}

.news-card-title {
    transition: color 0.3s ease;
}

.news-card-link:hover .news-card-title {
    color: #E60004 !important;
}

.news-date {
    background: rgba(31, 30, 38, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.cover-fit-img {
    max-height: 500px;
    object-fit: cover;
}

.news-single-content p {
    margin-bottom: 1.8rem;
}

.news-single-content h2, .news-single-content h3 {
    color: #fff;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

.bg-black-50 {
    background-color: rgba(15, 14, 18, 0.6);
}

.filter-city-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-city-btn:hover, .filter-city-btn.active {
    background: #E60004;
    border-color: #E60004;
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 0, 4, 0.4);
}

/* =====================================================================
   СЕКЦИЯ КАЛЬКУЛЯТОРА
   ===================================================================== */
.calculator-form {
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Стилизация Селекта (Город) */
.premium-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}
.premium-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #E60004;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(230, 0, 4, 0.25);
}
.premium-select option {
    background-color: #1F1E26;
    color: #fff;
}

/* Стилизация кнопок-целей (Radio) */
.premium-radio-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.premium-radio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.btn-check:checked + .premium-radio-btn {
    background: #E60004;
    border-color: #E60004;
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 0, 4, 0.4);
}

/* Стилизация Ползунка Бюджета (Range) */
.premium-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}
.premium-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E60004;
    cursor: pointer;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(230, 0, 4, 0.5);
    transition: transform 0.1s ease;
}
.premium-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.premium-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E60004;
    cursor: pointer;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(230, 0, 4, 0.5);
}

/* --- Премиальная страница новости --- */
.news-single-hero {
    position: relative;
    height: 70vh; /* Обложка занимает 70% высоты экрана */
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.news-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05); /* Легкий зум для анимации */
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #1F1E26 0%, rgba(31, 30, 38, 0.4) 50%, rgba(31, 30, 38, 0.8) 100%);
    z-index: 2;
}

.news-single-hero .container {
    position: relative;
    z-index: 3;
}

.news-meta {
    font-family: 'Lato', sans-serif;
    color: #E60004; /* Фирменный красный */
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.news-single-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Оформление самого текста новости (Типографика) --- */
.news-content-section {
    background-color: #1F1E26;
    padding: 80px 0;
}

.news-typography {
    font-family: 'Lato', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    line-height: 1.8;
}

.news-typography p {
    margin-bottom: 2rem;
}

.news-typography h2, .news-typography h3 {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Стилизация цитат (Blockquote) внутри контента */
.news-typography blockquote {
    position: relative;
    font-size: 1.4rem;
    font-style: italic;
    color: #fff;
    padding: 2rem 0 2rem 3rem;
    margin: 3rem 0;
    border-left: 4px solid #E60004;
    background: rgba(255, 255, 255, 0.02);
}

/* Стилизация картинок внутри текста */
.news-typography img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Кнопки "Поделиться" */
.news-share {
    border-color: rgba(255,255,255,0.1) !important;
}

.share-btn {
    display: inline-block;
    padding: 8px 20px;
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: #E60004;
    border-color: #E60004;
    color: #fff;
}

/* =========================================
   Блок Продакшена (Видео и 3D)
========================================= */
.production-section {
    padding: 100px 0;
    background-color: #1a1920; /* Чуть темнее основного графитового для контраста */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prod-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    border-left: 4px solid #E60004;
    padding-left: 20px;
}

.prod-logo-icon img {
    width: 60px;
    opacity: 0.8;
}

.prod-title-wrap h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.prod-title-wrap p {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin: 0;
    max-width: 700px;
}

/* Сетка */
.prod-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: stretch; /* Изменили с center на stretch */
    margin-bottom: 50px;
}

.prod-card {
    background: #1F1E26;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Элементы выстраиваются в колонку */
    height: 100%; /* Карточка занимает всю доступную высоту */
}

.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.prod-card-top {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.prod-icon {
    font-size: 2rem;
    color: #E60004;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.prod-info p {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.prod-price {
    font-family: 'Oswald', sans-serif;
    margin-bottom: 25px;
    margin-top: auto; /* КЛЮЧЕВОЕ ДОБАВЛЕНИЕ: выталкивает цену вниз */
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.prod-price .price-from {
    font-size: 1.2rem;
    color: #E60004;
    font-weight: 600;
}

.prod-price .price-val {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(230, 0, 4, 0.3); /* Легкое премиальное свечение */
}

.prod-price .price-val small {
    font-size: 1.2rem;
    font-weight: 400;
}

.prod-adaptation, .prod-discount {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prod-adaptation i, .discount-icon i {
    font-size: 1.5rem;
    color: #E60004;
}

.prod-adaptation p, .discount-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

.prod-adaptation p span {
    color: #888;
}

.prod-discount {
    border-color: rgba(230, 0, 4, 0.3);
    background: rgba(230, 0, 4, 0.05);
}

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

.discount-text span {
    color: #a0a0a0;
    font-size: 0.75rem;
}

/* Центральный визуал */
.prod-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex;
    align-items: center; /* Центрируем сам мокап экрана по вертикали */
    justify-content: center;
}

.prod-mockup-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.prod-resolution-badge {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: #E60004;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(230, 0, 4, 0.4);
}

/* Преимущества */
.prod-features {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

.prod-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.prod-feature i {
    color: #E60004;
    font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 1100px) {
    .prod-grid { grid-template-columns: 1fr; }
    .prod-visual { order: -1; } /* Картинка сверху на мобилках */
    .prod-features { flex-direction: column; }
}

/* =========================================
   Страница отдельного экрана (Screen Single)
========================================= */

/* 1. Hero / Видео
   Экран на фото — главный объект: текст прижат к низу,
   затемнение только снизу (под текстом) и узкой полосой сверху (под шапкой). */
.screen-single-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #1a1920;
    padding: 110px 0 56px;
    overflow: hidden;
}

.screen-hero-video-wrap,
.screen-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.screen-hero-image {
    background-size: cover;
    background-position: center;
}

.screen-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screen-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(26,25,32,0.55) 0%, rgba(26,25,32,0) 160px),
        linear-gradient(0deg, #1F1E26 0%, rgba(26,25,32,0.85) 18%, rgba(26,25,32,0.35) 40%, rgba(26,25,32,0) 60%);
}

.screen-hero-top,
.screen-hero-content {
    position: relative;
    z-index: 2;
}

.screen-hero-top .breadcrumbs .current {
    color: var(--text-white);
}

.screen-hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.screen-hero-info {
    max-width: 760px;
}

.screen-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.screen-hero-badge i {
    color: var(--brand-red);
}

.screen-hero-title {
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 0;
    color: var(--text-white);
}

.screen-hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.screen-hero-price {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 500;
    color: var(--text-white);
    white-space: nowrap;
}

.screen-hero-btn {
    padding: 0.9rem 2.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--text-white);
}

.screen-hero-btn:hover {
    background: #c20003;
    border-color: #c20003;
    color: var(--text-white);
}

@media (max-width: 991px) {
    .screen-single-hero {
        min-height: 75vh;
        padding: 90px 0 32px;
    }
    .screen-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .screen-hero-actions {
        width: 100%;
        justify-content: space-between;
    }
    .breadcrumbs {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .screen-hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .screen-hero-btn {
        width: 100%;
        text-align: center;
    }
}

/* 2. Характеристики */
.screen-specs-section {
    padding: 80px 0;
    background: #1F1E26;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-card {
    background: #1a1920;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.spec-icon {
    font-size: 2rem;
    color: #E60004;
}

.spec-info span {
    display: block;
    font-size: 0.85rem;
    color: #888;
}

.spec-info strong {
    font-size: 1.1rem;
    color: #fff;
}

.screen-intro-box {
    padding-left: 30px;
    border-left: 3px solid #E60004;
}

.screen-intro-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.screen-intro-box p {
    color: #a0a0a0;
    line-height: 1.6;
}

.screen-features-list div {
    margin-top: 10px;
    color: #d0d0d0;
}

/* 3. Галерея */
.screen-gallery-section {
    padding: 80px 0;
    background: #1a1920;
}

.screen-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-hover-icon {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(230, 0, 4, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-hover-icon { opacity: 1; }

/* 4. SEO блок */
.screen-seo-section {
    padding: 60px 0;
    background: #1F1E26;
}

.seo-content-box {
    max-width: 900px;
    margin: 0 auto;
    color: #b0b0b0;
    line-height: 1.8;
}

/* 5. Карта */
.screen-map-section {
    padding: 80px 0;
    background: #1a1920;
}

.single-map-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* 6. Смотрите также */
.screen-others-section {
    padding: 80px 0;
    background: #1F1E26;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .specs-grid { grid-template-columns: 1fr; }
    .screen-intro-box { padding-left: 0; border-left: none; margin-top: 30px; }
}

/* Исправление кнопки в главной шапке (Header) */
.header .btn, 
.site-header .btn {
    background-color: #E60004 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(230, 0, 4, 0.2);
    transition: all 0.3s ease;
}

.header .btn:hover, 
.site-header .btn:hover {
    background-color: #cc0000 !important;
    box-shadow: 0 8px 25px rgba(230, 0, 4, 0.4);
    transform: translateY(-2px);
}

/* =========================================
   Стиль Кейсов (Cases Portfolio)
========================================= */

/* Карточка кейса */
.premium-case-card {
    background: #1F1E26;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.premium-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(230, 0, 4, 0.3);
}

.case-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card-media {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #100f14;
}

.case-card-img, 
.case-video-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-video-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}

.premium-case-card:hover .case-video-hover {
    opacity: 1;
}

.premium-case-card:hover .case-card-img {
    transform: scale(1.05);
}

.case-card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-case-card:hover .case-card-overlay {
    opacity: 1;
}

.btn-case-more {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-client-tag {
    color: #E60004;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.case-card-title {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 600;
}

.case-card-scope {
    color: #888;
    font-size: 0.85rem;
    margin-top: auto;
    margin-bottom: 0;
}
.case-videos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
/* Видеоконтейнеры (Горизонталь vs Вертикаль) */
.case-video-horizontal {
    aspect-ratio: 16 / 9;
    width: auto;
}
.case-video-wrapper {
    height: 520px; /* Все видеоролики будут ровно этой высоты */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}
.case-video-vertical {
    aspect-ratio: 9 / 16;
    width: auto;
    background: #111;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(230, 0, 4, 0.2);
}

.case-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    outline: none;
    background: #000;
}
/* Адаптивность для мобильных устройств (смартфоны и планшеты) */
@media (max-width: 768px) {
    .case-video-wrapper {
        height: auto;
        width: 100%;
    }
    
    .case-video-horizontal,
    .case-video-vertical {
        aspect-ratio: unset;
        width: 100%;
    }

    .case-video-wrapper video {
        height: auto;
        max-height: 70vh;
    }
}

/* Кнопка поиска в шапке */
.btn-search {
    background: transparent;
    border: none;
    color: #fff;
    margin-right: 24px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0;
}
.btn-search:hover {
    color: #E60004;
    transform: scale(1.1);
}

/* Оверлей поиска */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    align-items: center;
    justify-content: center;
}
.search-overlay.active {
    display: flex;
}
.search-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 30, 38, 0.96); /* Наш фирменный графитовый */
    backdrop-filter: blur(15px);
}
.search-overlay-content {
    position: relative;
    z-index: 1;
    width: 100%;
}
/* Фиксированная и гарантированно видимая кнопка закрытия */
.close-search {
    position: absolute;
    top: 35px;
    right: 40px;
    z-index: 10; /* Гарантирует показ поверх фона */
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-search:hover {
    color: #E60004; /* Наш фирменный красный */
    transform: rotate(90deg) scale(1.1);
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .close-search {
        top: 20px;
        right: 20px;
    }
    .close-search svg {
        width: 28px;
        height: 28px;
    }
}
.search-form {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    transition: border-color 0.3s ease;
}
.search-form:focus-within {
    border-color: #E60004;
}
.search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 36px;
    font-family: 'Oswald', sans-serif;
    outline: none;
}
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.search-submit {
    background: transparent;
    border: none;
    color: #E60004;
    font-size: 24px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
}
.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}
.suggestions-label {
    color: rgba(255,255,255,0.4);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}
.suggestion-link {
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 40px;
    transition: background 0.3s, color 0.3s;
}
.suggestion-link:hover {
    background: #E60004;
    color: #fff;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .search-input { font-size: 24px; }

    .search-submit { font-size: 18px; }
}

/* Финальная секция */
.final-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 10;
    background-color: var(--bg-graphite, #1F1E26);
}

/* 1-й слой: Фотография */
.final-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 2-й слой: Видео (скрыто до момента полной готовности воспроизведения) */
.final-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* Класс, который JS добавит, когда видео начнет играть */
.final-video.is-loaded {
    opacity: 1;
}

/* 3-й слой: Градиентное затемнение для читаемости текста */
.final-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(31,30,38,0.3) 0%, rgba(31,30,38,0.9) 100%);
    z-index: 3;
}

/* 4-й слой: Контент */
.final-content {
    position: relative;
    z-index: 4;
}

/* Подсветка совпадений mSearch2 */
.search-results-wrapper .mse2-match {
    color: #E60004;
    font-weight: 700;
    background: rgba(230, 0, 4, 0.1);
    padding: 0 4px;
    border-radius: 2px;
}

.search-item:hover {
    border-color: rgba(230, 0, 4, 0.4) !important;
}

/* Поисковая строка в каталоге экранов */
.screens-search-filter {
    max-width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field-icon {
    position: absolute;
    left: 18px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: color 0.3s ease;
}

.screen-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 50px !important;
    padding: 14px 45px 14px 50px !important;
    color: #ffffff !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.screen-search-input:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: #E60004 !important;
    box-shadow: 0 0 15px rgba(230, 0, 4, 0.2) !important;
}

.screen-search-input:focus + .search-field-icon,
.search-input-wrapper:focus-within .search-field-icon {
    color: #E60004;
}

.screen-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.btn-clear-search {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.btn-clear-search:hover {
    color: #E60004;
}

/* Кастомный чекбокс для форм */
.custom-policy-check {
    padding-left: 1.8rem;
}

.custom-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    cursor: pointer;
    width: 1.15rem;
    height: 1.15rem;
    margin-left: -1.8rem;
    transition: all 0.2s ease;
}

.custom-check-input:checked {
    background-color: #E60004 !important;
    border-color: #E60004 !important;
    box-shadow: 0 0 10px rgba(230, 0, 4, 0.4);
}

.custom-check-input:focus {
    border-color: #E60004;
    box-shadow: 0 0 0 0.2rem rgba(230, 0, 4, 0.25);
}

.custom-check-label {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    user-select: none;
}

.custom-check-label a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.custom-check-label a:hover {
    color: #E60004;
}

/* Юридическая типографика */
.legal-article h2, .legal-article h3 {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}
.legal-article p, .legal-article ul {
    margin-bottom: 1.2rem;
}
.legal-article ul {
    padding-left: 1.5rem;
}

/* --- DOOH Портал и кнопка перехода --- */
.dooh-portal-card {
    background: linear-gradient(135deg, #18171f 0%, #1F1E26 100%);
    border: 1px solid rgba(230, 0, 4, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(230, 0, 4, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.dooh-portal-card:hover {
    border-color: rgba(230, 0, 4, 0.7);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(230, 0, 4, 0.15);
}

/* Декоративная подсветка */
.dooh-card-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 0, 4, 0.25) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

/* Бейдж статуса */
.dooh-badge {
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(230, 0, 4, 0.12);
    border: 1px solid rgba(230, 0, 4, 0.3);
    color: #E60004;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

.dooh-badge-dot {
    width: 8px;
    height: 8px;
    background-color: #E60004;
    border-radius: 50%;
    box-shadow: 0 0 8px #E60004;
    animation: pulseRed 2s infinite ease-in-out;
}

@keyframes pulseRed {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Типографика */
.dooh-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: 0.5px;
}

.text-gradient-red {
    background: linear-gradient(90deg, #E60004 0%, #ff4d4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dooh-subtitle {
    font-family: 'Lato', sans-serif;
    max-width: 680px;
    line-height: 1.6;
}

/* Кнопка */
.dooh-btn {
    padding: 16px 36px !important;
    font-size: 0.95rem !important;
    letter-spacing: 1.5px;
}

.dooh-btn svg {
    transition: transform 0.3s ease;
}

.dooh-btn:hover svg {
    transform: translate(3px, -3px);
}

/* Ссылка в шапке */
.header-dooh-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.header-dooh-link:hover {
    color: #fff;
    border-color: #E60004;
    background: rgba(230, 0, 4, 0.08);
}

.pulse-dot-sm {
    width: 6px;
    height: 6px;
    background-color: #E60004;
    border-radius: 50%;
    box-shadow: 0 0 6px #E60004;
}

/* Карточки цен */
.prod-card .prod-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 25px;
}

.prod-card .price-from {
    color: #E60004;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

.prod-card .price-val {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.prod-card .price-val small {
    font-size: 1.2rem;
    color: #E60004;
    font-weight: 600;
}

/* Нижние плашки адаптации и скидки */
.prod-adaptation, .prod-discount {
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.prod-adaptation {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prod-discount {
    background: rgba(230, 0, 4, 0.08);
    border: 1px solid rgba(230, 0, 4, 0.4);
}

.prod-discount strong {
    color: #E60004;
    font-size: 1rem;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

/* Преимущества */
.prod-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 35px;
}

.prod-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.prod-feature i {
    color: #E60004;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Адаптив под планшеты и мобильные */
@media (max-width: 991px) {
    .prod-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .prod-features {
        grid-template-columns: 1fr;
    }
    .prod-card .price-val {
        font-size: 2.2rem;
    }
}

/* Кнопки перелета камеры над картой */
.map-city-nav {
    position: relative;
    z-index: 12;
}

.map-city-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 22px;
    border-radius: 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.map-city-btn:hover {
    color: #fff;
    border-color: rgba(230, 0, 4, 0.5);
    background: rgba(230, 0, 4, 0.08);
}

.map-city-btn.active {
    background: #E60004;
    border-color: #E60004;
    color: #fff;
    box-shadow: 0 0 20px rgba(230, 0, 4, 0.4);
}

.map-city-btn .pulse-status-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
}

/* =====================================================================
   ПРЕМИАЛЬНАЯ ПАГИНАЦИЯ BUSINESS MEDIA
===================================================================== */
.news-pagination,
.search-pagination {
    margin-top: 50px;
}

.pagination-bm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination-bm .page-item {
    margin: 0;
}

.pagination-bm .page-link {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
}

/* Наведение на ссылку */
.pagination-bm .page-link:hover {
    background: rgba(230, 0, 4, 0.15);
    border-color: rgba(230, 0, 4, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Активная страница */
.pagination-bm .page-item.active .page-link {
    background: #E60004 !important;
    border-color: #E60004 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(230, 0, 4, 0.45);
    transform: scale(1.05);
}

/* Кнопки перелистывания (стрелки) */
.pagination-bm .page-step .page-link {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
}

.pagination-bm .page-step .page-link i {
    line-height: 1;
}

/* Сброс стандартных стилей фокуса Bootstrap */
.pagination-bm .page-link:focus {
    box-shadow: 0 0 0 2px rgba(230, 0, 4, 0.3);
    outline: none;
}

/* Фиксированные пропорции медиазоны карточки экрана */
.screen-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; /* Единая пропорция для всех карточек */
    overflow: hidden;
    background-color: #151419;
    border-radius: 12px 12px 0 0;
}

.screen-card-media > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Принудительно выравниваем и фото, и видео */
.screen-card-media img,
.screen-card-media video,
.screen-card-media .card-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.5s ease;
}

/* Премиальный зум при наведении на карточку */
.screen-card:hover .screen-card-media img,
.screen-card:hover .screen-card-media video {
    transform: scale(1.05);
}

/* Выравнивание содержимого карточки (чтобы футеры и кнопки всегда были на одной линии) */
.screen-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.screen-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.screen-card-footer {
    margin-top: auto; /* Прижимает цену и кнопку бронирования строго к низу */
}

/* =========================================
   3D-страница: блок «Почему бренды выбирают 3D»
   Класс .stats-section нужен только для анимации счётчиков,
   поэтому сбрасываем унаследованные от главной отступы и фон.
========================================= */
.viral-stats-section .stats-section {
    padding: 0;
    background: none;
    border-top: 0;
}

.viral-stat-card {
    height: 100%;
    justify-content: flex-start;
    padding: 2.5rem 1.75rem;
    background: #1a1920;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.viral-stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    color: #E60004;
    margin-bottom: 1.25rem;
}

.viral-stat-title {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.viral-stat-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* =========================================
   3D-страница: блок продакшена (облегчённый)
========================================= */
.production-section .prod-head {
    max-width: 960px;
    margin: 0 auto 3rem;
}

.prod-head-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.prod-head-title span {
    color: #E60004;
}

.prod-head-text {
    max-width: 640px;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.production-section .prod-grid {
    gap: 24px;
    margin-bottom: 40px;
}

.production-section .prod-card {
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.production-section .prod-icon {
    font-size: 1.6rem;
    align-items: flex-start;
}

.production-section .prod-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--text-white);
}

.production-section .prod-info p {
    color: rgba(255, 255, 255, 0.55);
}

/* Цена: спокойнее, без свечения и красных «от»/«руб.» */
.production-section .prod-card .prod-price {
    margin-bottom: 20px;
}

.production-section .prod-card .price-from,
.production-section .prod-card .price-val small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 400;
}

.production-section .prod-card .price-val {
    font-size: 2.25rem;
    text-shadow: none;
}

/* Плашки «Адаптация» и «Скидка» — нейтральные, красный только в акценте */
.production-section .prod-adaptation,
.production-section .prod-discount {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 76px;
}

.production-section .prod-discount strong {
    color: #E60004;
}

.production-section .discount-text span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Центральное видео и бейдж разрешения */
.production-section .prod-visual {
    border-radius: 16px;
    box-shadow: none;
}

.production-section .prod-resolution-badge {
    right: 16px;
    bottom: 16px;
    padding: 8px 14px;
    background: rgba(26, 25, 32, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    box-shadow: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.production-section .prod-resolution-badge i {
    color: #E60004;
}

.production-section .prod-feature {
    color: rgba(255, 255, 255, 0.6);
}

/* Сетка экранов по 4 в ряд (блок «Наши 3D-поверхности») */
.screens-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1199px) {
    .screens-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .screens-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Шапка: пункты меню не переносятся на две строки
========================================= */
.header-nav a {
    white-space: nowrap;
}

.header .btn-media {
    white-space: nowrap;
}

@media (max-width: 1499px) {
    .header {
        padding-left: 3%;
        padding-right: 3%;
    }
    .header-nav a {
        margin: 0 0.75rem;
        font-size: 0.8rem;
    }
    .header-actions {
        gap: 1rem;
    }
}

@media (max-width: 1399px) {
    .header-nav a {
        margin: 0 0.55rem;
    }
    .header-actions {
        gap: 0.75rem;
    }
}

/* Когда в шапке показано горизонтальное меню (от 1200px), но экран не широкий —
   прячем кнопку «Получить медиаплан», чтобы пункты меню помещались в одну строку.
   На узких экранах меню скрыто, и кнопка снова видна. */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .header .header-actions .btn-media {
        display: none !important;
    }
}

/* =========================================
   Главная: отступ между «Что происходит после запуска» и «Как мы работаем»
========================================= */
.timeline-section {
    padding-bottom: 5rem;
}

.how-it-works-section {
    padding-top: 3rem;
}

/* =========================================
   Боковое меню: пункт DOOH всегда красный
========================================= */
.menu-nav a.menu-nav-dooh {
    color: var(--brand-red);
}

.menu-nav a.menu-nav-dooh:hover {
    color: #c20003;
}

/* =========================================
   Контакты: соцсети с иконками и кнопки маршрута
========================================= */
.contacts-socials {
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.social-link i,
.social-link svg {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.route-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--text-white);
    font-size: 0.85rem;
    text-decoration: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.route-btn i {
    color: var(--brand-red);
}

.route-btn:hover {
    color: var(--text-white);
    border-color: var(--brand-red);
    background: rgba(230, 0, 4, 0.08);
}

/* Навигатор открывается только в мобильном приложении — на десктопе кнопку прячем */
@media (min-width: 992px) {
    .route-btn--navi {
        display: none;
    }
}


/* Карта офиса в контактах — та же тёмная карта в рамке, что на главной, но пониже */
.office-map-section {
    padding-top: 0;
    border-top: 0;
}

.office-map-wrapper {
    height: 60vh;
    min-height: 420px;
}

/* =========================================
   Контакты: контент по ширине шапки и hero (отступ 5% от края)
========================================= */
.contacts-grid {
    max-width: none;
    gap: 4rem 6rem;
}

/* Кнопка «Отправить» в формах — красная, как остальные CTA */
.submit-btn {
    display: block;
    padding: 1rem 2rem;
    background: var(--brand-red);
    border: 1px solid var(--brand-red);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
    background: #c20003;
    border-color: #c20003;
    color: var(--text-white);
    box-shadow: 0 10px 25px rgba(230, 0, 4, 0.3);
}

.form-policy a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.form-policy a:hover {
    color: var(--brand-red);
    text-decoration-color: var(--brand-red);
}

/* =========================================
   Анимация в шапке внутренних страниц (canvas из main.js)
========================================= */
.page-hero.has-hero-canvas {
    overflow: hidden;
}

.page-hero-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Плавно растворяем к тексту слева и к нижнему краю шапки */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%), linear-gradient(to bottom, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 35%), linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-composite: intersect;
}

.page-hero.has-hero-canvas > *:not(.page-hero-canvas) {
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .page-hero-canvas {
        width: 100%;
        opacity: 0.35;
    }
}

/* =========================================
   Единая высота шапки внутренних страниц — по каталогу экранов (~840px).
   Контент прижат к верху шапки — крошки и заголовок на всех страницах
   стоят на одном месте, ниже остаётся место под анимацию.
   На планшетах и телефонах высота по содержимому — там фильтры каталога
   переносятся в несколько строк.
========================================= */
@media (min-width: 992px) {
    .page-hero:not(.screen-single-hero):not(.screen-3d-hero):not(.page-hero--compact) {
        min-height: 820px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

@media (min-width: 1200px) {
    .page-hero:not(.screen-single-hero):not(.screen-3d-hero):not(.page-hero--compact) {
        min-height: 840px;
    }
}

/* =========================================
   Кнопки скачивания PDF (каталог, реквизиты)
========================================= */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.download-btn i {
    font-size: 1.25rem;
    color: var(--brand-red);
}

.download-btn small {
    margin-left: 0.4rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.download-btn:hover {
    color: var(--text-white);
    border-color: var(--brand-red);
    background: rgba(230, 0, 4, 0.08);
}

/* В шапке каталога — между подзаголовком и фильтрами */
.download-btn--hero {
    margin: -1.5rem 0 2.5rem;
}

/* Боковая кнопка «Скачать каталог» на главной — вертикальный ярлык у правого края */
.side-download-btn {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 0.7rem;
    background: var(--brand-red);
    color: var(--text-white);
    border-radius: 12px 0 0 12px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(230, 0, 4, 0.35);
    transform: translateY(-50%);
    transition: background 0.3s ease, padding 0.3s ease;
}

.side-download-btn span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.side-download-btn i {
    font-size: 1.1rem;
}

.side-download-btn:hover {
    background: #c20003;
    color: var(--text-white);
    padding-right: 1rem;
}

@media (max-width: 767px) {
    /* На телефоне — компактная круглая кнопка в правом нижнем углу */
    .side-download-btn {
        top: auto;
        bottom: 20px;
        right: 16px;
        transform: none;
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .side-download-btn span {
        display: none;
    }
    .side-download-btn i {
        font-size: 1.4rem;
    }
}

/* =========================================
   О компании: блок реквизитов
========================================= */
.about-requisites-section {
    padding: 0 5% 8rem;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.requisites-box {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    padding: 3rem;
    background: #15141A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}

.requisites-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    text-transform: uppercase;
    color: var(--text-white);
    margin: 0.75rem 0 1.75rem;
}

.requisites-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 3rem;
    margin: 0;
}

.requisites-list dt {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.3rem;
}

.requisites-list dd {
    margin: 0;
    color: var(--text-white);
    font-size: 1rem;
}

@media (max-width: 991px) {
    .requisites-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }
    .requisites-list {
        grid-template-columns: 1fr;
    }
}

/* Карточка экрана с превью-картинкой (надпись сверху слева) — бейдж типа уводим вниз, чтобы не перекрывал надпись */
.screen-card.has-preview .screen-tag {
    top: auto;
    bottom: 1rem;
}

/* Фоновое видео hero: постер и видео заполняют блок без искажений (src подставляется из main.js) */
.hero-video {
    width: 100%;
    height: 100%;
}

/* =========================================
   Страница экрана: видео под карточками характеристик
========================================= */
.screen-video-card {
    background: #1a1920;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
}

.screen-video-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 8px 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.screen-video-label i {
    color: var(--brand-red);
    font-size: 1.1rem;
}

.screen-video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
}

/* =========================================
   Боковое меню
========================================= */
/* Бейдж NEW у пункта DOOH — белые буквы (общее правило для span делало их серыми) */
.menu-nav a .badge {
    color: #fff;
    font-family: var(--font-body);
}

/* Мобильное меню: сверху компактный список, ниже — вертикальное видео целиком, без обрезки */
@media (max-width: 991px) {
    .premium-menu {
        height: 100vh;
        height: 100dvh;
    }
    .menu-right {
        order: 1;
        height: auto;
        flex: 0 0 auto;
        padding: 1.5rem 6% 1.25rem;
    }
    .menu-left {
        order: 2;
        height: auto;
        flex: 1 1 auto;
        min-height: 160px;
    }
    .menu-video {
        object-fit: contain;
        object-position: center;
    }
    .menu-close-btn {
        top: 0.75rem;
    }
    .menu-subtitle {
        margin-bottom: 1rem;
        padding-right: 3rem;
    }
    .menu-nav a {
        font-size: clamp(1.4rem, 6vw, 2rem);
        padding: 0.55rem 0;
        gap: 1rem;
    }
    .menu-nav a span {
        font-size: 0.8rem;
    }
    .menu-footer {
        margin-top: 1rem;
    }
    .footer-contacts a {
        margin-bottom: 0.25rem;
    }
}

/* Страница экрана: кнопка «Скачать тех. требования» под видео — на всю ширину левой колонки */
.screen-tech-btn {
    width: 100%;
    justify-content: center;
}

/* 3D-страница: блок продакшена без карточки «Рекламные ролики» — видео слева, карточка 3D-роликов справа */
.production-section .prod-grid--3d {
    grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 1100px) {
    .production-section .prod-grid--3d {
        grid-template-columns: 1fr;
    }
}

/* Страница экрана: карта по размеру рамки (раньше рамка 70vh, а карта внутри — 450px) */
.screen-map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    height: 60vh;
    min-height: 420px;
    max-height: 640px;
}

/* =========================================
   Финальный блок (DSP / CTA): высота по содержимому с равными отступами,
   фоновое видео по центру без translate (его перезаписывал параллакс GSAP)
========================================= */
.final-section {
    height: auto;
    min-height: 0;
    padding: clamp(5rem, 12vh, 8rem) 0;
}

.final-bg,
.final-video {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    transform: none;
    object-fit: cover;
    object-position: center bottom;   /* видео от нижнего края — обрезается только сверху */
    background-position: center bottom;
}

/* Карточка новости: анонс светлым (bootstrap text-muted рассчитан на светлый фон и на тёмном не читается) */
.news-card-intro {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
}

.news-card-link:hover .news-card-intro {
    color: rgba(255, 255, 255, 0.75);
}

/* Телефон: круглая кнопка «Скачать каталог» закреплена в правом нижнем углу —
   даём подвалу запас снизу, чтобы она не закрывала «Вернуться в начало» */
@media (max-width: 767px) {
    .footer {
        padding-bottom: 90px;
    }
}

/* =========================================
   О компании: крупная подпись «Business Media Team / управляем вниманием города»
   с красной подсветкой под курсором (координаты --sx/--sy задаёт main.js)
========================================= */
.about-signature-big {
    position: relative;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    cursor: default;
    user-select: none;
}

/* Размытое красное пятно за буквами */
.about-signature-big::before {
    content: '';
    position: absolute;
    left: var(--glow-x, 50%);
    top: var(--glow-y, 50%);
    width: 340px;
    height: 340px;
    margin: -170px 0 0 -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 0, 4, 0.16) 0%, rgba(230, 0, 4, 0) 70%);
    filter: blur(40px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.about-signature-big.is-lit::before {
    opacity: 1;
}

.sig-big-title,
.sig-big-sub {
    position: relative;
    z-index: 1;
    line-height: 1;
    /* Буквы белые, а в радиусе курсора плавно переходят в красный */
    /* едва уловимый тёплый оттенок, а не насыщенный красный */
    background: radial-gradient(circle var(--spot-r, 0px) at var(--sx, -999px) var(--sy, -999px),
                #ff9a9c 0%, #ffd3d4 45%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.sig-big-title {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: min(8.6vw, 8.6rem);   /* в одну строку на всю ширину блока */
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.sig-big-sub {
    /* Подзаголовок — аккуратной строкой с разрядкой, не спорит с крупной надписью */
    margin-top: 1.25rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.95rem, 1.7vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    line-height: 1.4;
    opacity: 0.65;
}

/* Без мыши (телефоны, планшеты) — статичная мягкая подсветка по центру */
@media (hover: none) {
    .about-signature-big::before {
        opacity: 0.5;
    }
}

/* 3D-страница: финальный блок с видео акулы — высота под пропорции видео 16:9,
   чтобы акула помещалась целиком (на остальных страницах финальный блок без изменений) */
.final-section--3d {
    min-height: min(56.25vw, 100vh);
    padding: clamp(6rem, 14vh, 10rem) 0;
}

.final-section--3d .final-video,
.final-section--3d .final-bg {
    object-position: center top;      /* если всё же обрезается — сверху остаётся акула */
    background-position: center top;
}

/* Боковое меню на невысоких экранах ноутбуков: размеры пунктов зависят и от высоты окна,
   чтобы все 6 пунктов (включая DOOH) помещались; если окно совсем низкое — меню прокручивается */
@media (min-width: 992px) {
    .menu-right {
        padding-top: clamp(2rem, 6vh, 4rem);
        padding-bottom: clamp(1.5rem, 5vh, 4rem);
        overflow-y: auto;
    }
    .menu-subtitle {
        margin-bottom: clamp(0.75rem, 4vh, 4rem);
    }
    .menu-nav a {
        font-size: clamp(1.5rem, min(4vw, 5.4vh), 3.5rem);
        padding: clamp(0.3rem, 1.3vh, 1rem) 0;
    }
    .menu-footer {
        padding-top: 1.5rem;
    }
}

/* =========================================
   Бриф на рекламный ролик (/brief) — пошаговая форма
========================================= */
.page-hero.page-hero--compact {
    padding-bottom: 3rem;
}

.brief-section {
    padding: 2rem 5% 8rem;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.brief-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.brief-manager {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.brief-manager i { color: var(--brand-red); }
.brief-manager b { color: var(--text-white); font-weight: 600; }

.brief-form {
    background: #15141A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.brief-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Прогресс */
.brief-progress { margin-bottom: 2.5rem; }

.brief-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brief-progress-info b { color: var(--text-white); }
.brief-progress-title { text-align: right; }

.brief-progress-bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.brief-progress-bar span {
    display: block;
    height: 100%;
    width: 10%;
    background: var(--brand-red);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Шаги */
.brief-step {
    display: none;
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.brief-step.is-active {
    display: block;
    animation: briefFade 0.35s ease;
}

@keyframes briefFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.brief-step-title {
    float: none;
    width: auto;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.brief-intro {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--brand-red);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.brief-intro b { color: var(--text-white); font-weight: 600; }

/* Поля */
.brief-field { margin-bottom: 1.75rem; }

.brief-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-white);
    line-height: 1.4;
}

.brief-req { color: var(--brand-red); }

.brief-hint {
    margin: -0.15rem 0 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
}

.brief-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

textarea.brief-input {
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

.brief-input:focus {
    outline: none;
    border-color: rgba(230, 0, 4, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

.brief-input:disabled { opacity: 0.4; }

/* Варианты (radio / checkbox) */
.brief-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brief-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.brief-option:hover { border-color: rgba(255, 255, 255, 0.2); }

.brief-option:has(input:checked) {
    border-color: rgba(230, 0, 4, 0.6);
    background: rgba(230, 0, 4, 0.06);
}

.brief-option input[type=radio],
.brief-option input[type=checkbox] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--brand-red);
    cursor: pointer;
}

.brief-option--other .brief-input--inline {
    flex: 1;
    padding: 0.45rem 0.75rem;
}

.brief-consent {
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.5;
}

.brief-consent a { color: var(--text-white); text-decoration: underline; text-underline-offset: 3px; }

/* Файлы */
.brief-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.3rem;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: var(--text-white);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.brief-file-btn:hover { border-color: var(--brand-red); background: rgba(230, 0, 4, 0.06); }
.brief-file-btn i { color: var(--brand-red); font-size: 1.2rem; }
.brief-file-btn input { display: none; }

.brief-file-note {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.brief-file-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.brief-file-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.brief-file-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-file-list li small { color: rgba(255, 255, 255, 0.4); flex-shrink: 0; }
.brief-file-list li.is-too-big, .brief-file-list li.is-too-big small { color: #ff6b6e; }

.brief-file-clear {
    background: none;
    border: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

/* Ошибки */
.brief-error {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #ff6b6e;
}

.brief-error:empty { display: none; }

.brief-field.has-error .brief-input,
.brief-field.has-error .brief-option,
.brief-field.has-error .brief-file-btn { border-color: rgba(255, 80, 80, 0.7); }

.brief-form-error {
    margin-top: 0.5rem;
    color: #ff6b6e;
    font-size: 0.95rem;
}

.brief-form-error:empty { display: none; }

/* Навигация */
.brief-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.brief-draft-note {
    flex: 1;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.brief-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border: 1px solid var(--brand-red);
    border-radius: 50px;
    background: var(--brand-red);
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.brief-btn:hover { background: #c20003; border-color: #c20003; }
.brief-btn:disabled { opacity: 0.5; cursor: wait; }
.brief-btn[hidden] { display: none; }

.brief-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
}

.brief-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.5); }

/* Загрузка */
.brief-upload { margin-top: 1.25rem; }

.brief-upload-bar {
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.brief-upload-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--brand-red);
    transition: width 0.2s ease;
}

.brief-upload-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Успех */
.brief-success {
    text-align: center;
    padding: 4rem 2rem;
    background: #15141A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}

.brief-success i { font-size: 3.5rem; color: var(--brand-red); }

.brief-success h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin: 1rem 0;
}

.brief-success p {
    max-width: 520px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 576px) {
    .brief-progress-title { display: none; }
    .brief-nav { flex-wrap: wrap; }
    .brief-draft-note { order: 3; flex-basis: 100%; }
    .brief-btn { flex: 1; justify-content: center; }
}

/* Кнопка «Заполнить бриф на ролик» в карточке 3D-роликов */
.production-section .prod-brief-btn {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

/* Финальный блок «Реклама на любом экране России»: высота растёт вместе с шириной экрана,
   чтобы на широких мониторах видео (16:9) обрезалось так же, как на ноутбуке —
   в кадре всегда ~70% видео снизу (вся карта). 39.4vw ≈ 0.7 × 56.25vw; не выше экрана. */
.final-section:not(.final-section--3d) {
    min-height: min(39.4vw, 100vh);
}

/* О компании: ссылка на DSP внутри истории и итоговый блок «От агентства к корпорации…» */
.history-content p a {
    color: var(--text-white);
    text-decoration: underline;
    text-decoration-color: var(--brand-red);
    text-underline-offset: 3px;
}

.history-summary {
    max-width: 900px;
    margin: 6rem auto 0;
    padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
    background: #15141A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--brand-red);
    border-radius: 0 20px 20px 0;
}

.history-summary-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.history-summary-title span {
    color: var(--brand-red);
}

.history-summary p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem;
}

.history-summary p:last-child {
    margin-bottom: 0;
}

/* Контакты: два блока соцсетей с подписями («Подписывайтесь на нас», «Связь с отделом продаж») */
.contacts-social-block {
    margin-top: 3rem;
    margin-bottom: 0;
}

.contacts-social-block .contacts-socials {
    margin-top: 0;
}

/* =========================================
   Текстовая страница (chunks/text.page.tpl): политика, оферта, согласие и др.
========================================= */
.text-page-section {
    padding: 1rem 5% 8rem;
    background-color: var(--bg-graphite);
    position: relative;
    z-index: 10;
}

.text-article {
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: #15141A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.text-article > :first-child { margin-top: 0; }
.text-article > :last-child { margin-bottom: 0; }

.text-article h2,
.text-article h3,
.text-article h4,
.text-article .text-heading {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: var(--text-white);
}

.text-article h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.text-article h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.text-article h4 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

/* Нумерованные пункты вида «1. Определение терминов», набранные жирным (текст из Tilda) —
   превращаются в подзаголовки скриптом в main.js */
.text-article .text-heading {
    font-size: 1.25rem;
    margin: 2.25rem 0 0.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.text-article p,
.text-article ul,
.text-article ol,
.text-article table,
.text-article blockquote { margin: 0 0 1.25rem; }

.text-article ul,
.text-article ol { padding-left: 1.5rem; }

.text-article li { margin-bottom: 0.4rem; }
.text-article li::marker { color: var(--brand-red); }

.text-article strong,
.text-article b { color: var(--text-white); font-weight: 600; }

.text-article a {
    color: var(--text-white);
    text-decoration: underline;
    text-decoration-color: rgba(230, 0, 4, 0.7);
    text-underline-offset: 3px;
}

.text-article a:hover { color: var(--brand-red); }

.text-article blockquote {
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--brand-red);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 10px 10px 0;
}

.text-article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.text-article th,
.text-article td {
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
}

.text-article th { color: var(--text-white); background: rgba(255, 255, 255, 0.04); }

.text-article img { max-width: 100%; height: auto; border-radius: 10px; }

.text-article hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Подвал: строка об авторских правах */
.footer-copyright {
    max-width: 860px;
    /* подвал — flex-колонка с gap 6rem; подтягиваем строку ближе к контактам и к надписи ниже */
    margin: -4rem 0 -2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   Формы заявок (FetchIt + FormIt): ошибки, успех, ловушка для ботов
========================================= */
.lead-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-error {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #ff6b6e;
    text-align: left;
}

.lead-error:empty { display: none; }

.lead-form .is-invalid,
.lead-form [aria-invalid="true"] {
    border-color: rgba(255, 80, 80, 0.8) !important;
}

.lead-success {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(46, 204, 113, 0.4);
    background: rgba(46, 204, 113, 0.08);
    border-radius: 10px;
    color: #c9f5d9;
    font-size: 0.95rem;
    text-align: left;
}

.lead-form button[disabled] {
    opacity: 0.6;
    cursor: wait;
}

/* =========================================
   Главная: сравнение «Business Media / Все остальные» — карточки на одном уровне
========================================= */
.comparison-grid {
    align-items: stretch;
}

.premium-card {
    transform: none;                         /* раньше была приподнята на 20px — карточки «гуляли» */
    border-color: rgba(230, 0, 4, 0.45);
    box-shadow: 0 0 0 1px rgba(230, 0, 4, 0.15), 0 25px 60px rgba(230, 0, 4, 0.12);
}

.compare-card-visual {
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Затемнение только в нижней трети картинки — без пустой тёмной полосы до заголовка */
.visual-overlay,
.premium-card .active-overlay {
    background: linear-gradient(to top, #15141A 0%, rgba(21, 20, 26, 0) 35%);
}

.compare-card-content {
    padding: 1.75rem 2.5rem 2.5rem;
}

.compare-card h3 {
    margin-bottom: 1.25rem;
}

.compare-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 576px) {
    .compare-card-content {
        padding: 1.5rem 1.5rem 2rem;
    }
}

/* Формы заявок: у textarea плавающая подпись Bootstrap рисует белую плашку поверх текста —
   делаем плашку под цвет поля; поле можно растягивать по высоте */
.lead-form .form-floating > textarea.form-control ~ label::after,
.lead-form .form-floating > textarea.form-control:focus ~ label::after,
.lead-form .form-floating > textarea.form-control:not(:placeholder-shown) ~ label::after {
    background-color: transparent;
}

.lead-form .form-floating > textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Кейс: длинные заголовки в hero — адаптивный размер (в шаблоне inline 3.5rem) */
.case-single-hero .page-title {
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.5rem) !important;
    max-width: 1000px;
    overflow-wrap: break-word;
}

/* Кейсы: сетка на Bootstrap-гаттерах (старый gap ломал ряд), картинка без отступа снизу */
.cases-archive-grid.row { gap: 0; }
.premium-case-card .case-card-media {
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
    border-radius: 0;
}
.premium-case-card .case-card-img {
    position: absolute;
    inset: 0;
}
.cases-archive-grid .case-card-body { padding: 28px 32px 32px; }
.cases-archive-grid .case-card-title { font-size: clamp(1.25rem, 0.9rem + 0.8vw, 1.75rem); }
.cases-archive-grid .case-card-scope { font-size: 0.95rem; }
@media (min-width: 768px) {
    .cases-archive-grid > .col-lg-4 { flex: 0 0 auto; width: 50%; }
}

/* Прелоадер только при первом визите (assets/preloader-once.js) */
.no-preloader .preloader { display: none; }

/* =========================================
   Страница 404 — «экран без сигнала» (templates/404.tpl)
========================================= */
.e404 {
    background:
        radial-gradient(ellipse 60% 50% at 30% 45%, rgba(230, 0, 4, 0.10), transparent 70%),
        var(--bg-graphite);
    padding: clamp(120px, 14vh, 170px) 5% clamp(70px, 10vh, 120px);
    min-height: min(100vh, 900px);
    display: flex;
    align-items: center;
}
.e404-inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}
.e404-screen-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0b0b0e;
    border: 10px solid #2a2932;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 30px 80px rgba(0,0,0,0.55), 0 0 90px rgba(230,0,4,0.18);
    overflow: hidden;
}
.e404-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.e404-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: clamp(5rem, 14vw, 11rem); font-weight: 700;
    color: var(--brand-red); text-shadow: 0 0 30px rgba(230,0,4,0.6);
}
.e404-canvas.is-ready + .e404-fallback { display: none; }
.e404-screen-meta {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: 14px;
    font-size: 0.75rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.45);
    font-variant-numeric: tabular-nums;
}
.e404-screen-meta span { display: inline-flex; align-items: center; gap: 8px; }
.e404-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-red); box-shadow: 0 0 10px var(--brand-red);
    animation: e404-blink 1.2s steps(2, start) infinite;
}
@keyframes e404-blink { to { visibility: hidden; } }

.e404-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.e404-tag {
    font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brand-red); font-weight: 700;
}
.e404-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem);
    line-height: 1.05; text-transform: uppercase; color: var(--text-white); margin: 0;
    text-wrap: balance;
}
.e404-title span { color: rgba(255,255,255,0.45); }
.e404-lead { color: rgba(255,255,255,0.65); font-size: 1.1rem; line-height: 1.6; max-width: 34em; margin: 0; }

.e404-links { display: flex; flex-wrap: wrap; gap: 10px; }
.e404-btn {
    display: inline-flex; align-items: center;
    padding: 0.75rem 1.4rem; border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--text-white); text-decoration: none;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.e404-btn:hover, .e404-btn:focus-visible { border-color: var(--text-white); background: var(--text-white); color: var(--bg-graphite); }
.e404-btn--main { background: var(--brand-red); border-color: var(--brand-red); }
.e404-btn--main:hover, .e404-btn--main:focus-visible { background: #c40003; border-color: #c40003; color: var(--text-white); }

.e404-search {
    display: flex; max-width: 460px;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}
.e404-search:focus-within { border-color: var(--text-white); }
.e404-search input {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
    color: var(--text-white); padding: 12px 0; font-size: 1rem;
}
.e404-search input::placeholder { color: rgba(255,255,255,0.4); }
.e404-search button { background: none; border: 0; color: var(--text-white); padding: 0 6px 0 14px; font-size: 1.1rem; cursor: pointer; }

@media (max-width: 991px) {
    .e404-inner { grid-template-columns: 1fr; }
    .e404 { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .e404-dot { animation: none; } }
