/*
Theme Name: V1 Nordic Premium
Theme URI: https://v1nordic.com
Author: B2B Engineering
Description: Эксклюзивная B2B тема для климатического оборудования Saunum.
Version: 1.0
*/

/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ И КАРКАС
   ========================================= */
:root {
    --bg-black: #080808; 
    --bg-panel: #111111;
    --neon-orange: #ff6b00; 
    --text-white: #f0f0f0;
    --font-primary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-primary);
    overflow-x: hidden; /* Жестко убиваем скролл вправо */
    display: block; /* Сброс конфликтов Flexbox */
}

/* =========================================
   ХЕДЕР И НАВИГАЦИЯ
   ========================================= */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Центрируем элементы по вертикали */
    padding: 25px 40px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.glass-header.scrolled {
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(10px); 
    padding: 15px 40px;
}

.header-logo img {
    height: 85px; /* Было 60px. Увеличили почти в два раза! */
    width: auto;
    display: block;
    transition: height 0.3s ease; /* Добавили плавность на случай скролла */
}

.lang-switcher a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.lang-switcher a.active, 
.lang-switcher a:hover {
    opacity: 1;
    color: var(--neon-orange);
}

/* =========================================
   UI ЭЛЕМЕНТЫ (КНОПКИ)
   ========================================= */
.v1-neon-button {
    background: transparent;
    color: var(--neon-orange);
    border: 2px solid var(--neon-orange);
    padding: 18px 36px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.v1-neon-button:hover {
    background: var(--neon-orange);
    color: var(--bg-black);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.6), 
                0 0 40px rgba(255, 107, 0, 0.3);
}

/* =========================================
   БЛОК 1: ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================= */
.hero-section {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: #111;
    background-image: url('http://v1nordic.local/wp-content/uploads/2026/06/main-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    clear: both;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px; /* Отталкивает текст и кнопку друг от друга */
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
}

/* =========================================
   БЛОК 2: АККОРДЕОН И МАТРИЦА (ФИНАЛ С ФОТО)
   ========================================= */
.matrix-section {
    width: 100%;
    padding: 100px 40px;
    background-color: var(--bg-black);
    display: block;
    clear: both;
}

.matrix-container {
    max-width: 1200px;
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background-color: var(--bg-panel);
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--neon-orange);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.1);
}

.accordion-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-white);
    transition: color 0.3s ease;
}

.accordion-header:hover h2 {
    color: var(--neon-orange);
}

.indicator {
    font-size: 2rem;
    color: var(--neon-orange);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* УВЕЛИЧЕН MAX-HEIGHT, чтобы новые карточки с фото не обрезались */
.accordion-item.active .accordion-content {
    max-height: 1200px; 
}

.accordion-item.active .indicator {
    transform: rotate(45deg); 
}

.accordion-item.active {
    border-color: var(--neon-orange);
}

/* =========================================
   ВНУТРЯНКА АККОРДЕОНА (ТЕКСТ + КАРТОЧКА ФОТО)
   ========================================= */
.content-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 70px !important;
    padding: 0 40px 40px 40px !important;
}

.content-text {
    flex: 1 !important; 
}

.content-inner p {
    color: #aaaaaa;
    margin-bottom: 20px;
}

.model-variants {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.volume {
    padding: 5px 15px;
    border: 1px solid #555;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
}

.volume.active, .volume:hover {
    border-color: var(--neon-orange);
    color: var(--text-white);
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: #fff;
}

.btn-neon-small {
    background: transparent;
    color: var(--neon-orange);
    border: 1px solid var(--neon-orange);
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: 0.3s;
}

.btn-neon-small:hover {
    background: var(--neon-orange);
    color: #000;
}

/* --- МАГИЯ: СТИЛЬНАЯ КАРТОЧКА ПЕЧИ --- */
.content-image {
    flex: 0 0 38% !important;
    background: #f8f9fa !important; /* Премиальный светлый фон */
    border-radius: 24px !important;
    padding: 40px 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05), 0 15px 35px rgba(0,0,0,0.5) !important;
}

.content-image img {
    width: 100% !important;
    height: 320px !important;
    object-fit: contain !important;
    mix-blend-mode: multiply !important; /* Убивает белый фон самой картинки */
    transition: transform 0.4s ease !important;
}

.accordion-item:hover .content-image img {
    transform: scale(1.05) !important;
}

/* --- Мобильный адаптив для карточек --- */
@media (max-width: 768px) {
    .content-inner {
        flex-direction: column-reverse !important;
        gap: 30px !important;
        padding: 0 20px 30px 20px !important;
    }
    .content-image {
        width: 100% !important;
        padding: 20px !important;
    }
}

/* =========================================
   БЛОК 3: ИНТЕЛЛЕКТУАЛЬНОЕ УПРАВЛЕНИЕ
   ========================================= */
.automation-section {
    width: 100%;
    padding: 100px 40px;
    background-color: #0d0d0d; 
    display: block;
    clear: both;
}

.automation-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.automation-content {
    flex: 1;
}

.automation-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.automation-content p {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.tech-features {
    list-style: none;
    margin-bottom: 40px;
}

.tech-features li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.tech-features li::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--neon-orange);
    margin-right: 15px;
    box-shadow: 0 0 10px var(--neon-orange);
}

.automation-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.automation-actions a {
    text-decoration: none;
}

.automation-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.panel-placeholder {
    width: 350px;
    height: 500px;
    background: #1a1a1a;
    border: 2px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 800;
    font-size: 1.5rem;
}

/* =========================================
   БЛОК 4: ГЛАВНЫЙ В2В-АРГУМЕНТ
   ========================================= */
.b2b-argument-section {
    width: 100% !important;
    min-height: 70vh !important; /* Даем высоту, чтобы куб и камень полностью влезли */
    padding: 120px 40px !important;
    background-color: var(--bg-black) !important;
    text-align: center !important;
    border-top: 1px solid #222 !important;
    border-bottom: 1px solid #222 !important;
    
    /* Делаем блок flex-контейнером для идеального центрирования текста поверх видео */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    
    position: relative !important;
    overflow: hidden !important;
    clear: both !important;
}

/* Старый класс .video-art-bg можно удалить или оставить пустым, 
   так как мы перенесли все его свойства выше */
.video-art-bg {
    /* Очищено */
}

/* Оболочка для самого видео остается без изменений */
.micro-animation-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.micro-animation-wrapper .glass-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); 
    z-index: 2;
}

.b2b-container {
    max-width: 900px;
    margin: 0 auto;
}

.b2b-container h2 {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 40px;
}

/* =========================================
   БЛОК 5: ЦЕНТР ДОКУМЕНТАЦИИ
   ========================================= */
.doc-center-section {
    width: 100%;
    padding: 100px 40px;
    background-color: var(--bg-panel);
    display: block;
    clear: both;
}

.doc-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.doc-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.doc-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.doc-btn {
    background: #1a1a1a;
    color: var(--text-white);
    border: 1px solid #444;
    padding: 20px 30px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 400px;
}

.doc-btn:hover {
    border-color: var(--neon-orange);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.upload-form-container {
    background: #0d0d0d;
    padding: 50px;
    border: 1px solid #333;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.upload-form-container h3 {
    margin-bottom: 30px;
    color: var(--neon-orange);
    text-align: center;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: white;
    padding: 10px;
    font-family: var(--font-primary);
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-bottom-color: var(--neon-orange);
}

.file-upload {
    margin: 30px 0;
}

.file-upload label {
    display: block;
    color: #888;
    margin-bottom: 10px;
}

.file-upload input {
    color: #ccc;
    font-family: var(--font-primary);
}

/* =========================================
   МОДАЛЬНОЕ ОКНО (POP-UP)
   ========================================= */
.modal-overlay {
    display: none; 
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 99999 !important; 
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-panel) !important;
    border: 1px solid var(--neon-orange) !important;
    width: 100% !important;
    max-width: 600px !important;
    padding: 40px !important;
    position: relative !important;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.2) !important;
    color: #fff !important;
}

.close-modal {
    position: absolute !important;
    top: 20px !important;
    right: 25px !important;
    font-size: 2rem !important;
    color: #aaa !important;
    cursor: pointer !important;
    transition: color 0.3s !important;
    line-height: 1 !important;
}

.close-modal:hover {
    color: var(--neon-orange) !important;
}

/* =========================================
   ПРЕЛОАДЕР (ЭКРАН ЗАГРУЗКИ)
   ========================================= */
#v1-preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #000000 !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-logo {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 2rem;
    color: var(--neon-orange);
    letter-spacing: 2px;
    animation: pulse-neon 1.5s infinite alternate;
}

@keyframes pulse-neon {
    0% { opacity: 0.5; text-shadow: 0 0 10px rgba(255, 107, 0, 0.2); }
    100% { opacity: 1; text-shadow: 0 0 40px rgba(255, 107, 0, 0.8); }
}

.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 992px) {
    .automation-container { flex-direction: column; }
    .automation-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .glass-header { padding: 20px; }
    .hero-content h1 { font-size: 2rem; }
    .v1-neon-button { padding: 15px 25px; font-size: 12px; }
    .action-buttons, .doc-actions, .input-group { flex-direction: column; }
    .doc-btn { max-width: 100%; }
    .b2b-container h2 { font-size: 1.3rem; }
    .upload-form-container { padding: 30px; }
}

/* ФИКС ДЛЯ АДМИН-ПАНЕЛИ WORDPRESS */
.admin-bar .glass-header { top: 32px !important; }
@media screen and (max-width: 782px) { .admin-bar .glass-header { top: 46px !important; } }
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; }
:focus-visible { outline: 2px solid var(--neon-orange) !important; outline-offset: 4px !important; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none !important; }
/* =========================================
   АДАПТИВ ГЛАВНОГО ФОНА (ЖЕСТКИЙ SPLIT-SCREEN)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Настройка фона на мобильных */
    .hero-section {
        background-size: cover !important; /* Идеально растянет твой PNG без искажений */
        background-position: center center !important; /* Картинка будет строго по центру */
        background-color: var(--bg-black) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* Центрируем текст по вертикали */
        padding: 0 !important;
    }

    .hero-content {
        height: auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        padding: 80px 20px 0 20px !important; /* Отталкиваем текст от логотипа */
        box-sizing: border-box !important;
    }

    .hero-content h1 {
        font-size: 1.5rem !important; 
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important; 
    }

    /* 2. Уменьшаем гигантский PNG-логотип в шапке */
    .header-logo img {
        height: 45px !important; /* Компактный размер для смартфона */
        width: auto !important;
    }
}
/* =========================================
   ФИКС ГОРИЗОНТАЛЬНОГО СКРОЛЛА И ФОРМ
   ========================================= */

/* 1. Убиваем баг с 100vw у прелоадера и модалок */
#v1-preloader, 
.modal-overlay {
    width: 100% !important; /* Строго 100% от родителя, а не от экрана */
    height: 100% !important;
}

/* 2. Запрещаем форме распирать мобильный экран */
.upload-form-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Отрезаем всё, что пытается вылезти */
}

/* 3. Укрощаем скрытые обертки Contact Form 7 */
.upload-form-container input,
.upload-form-container .wpcf7-form-control-wrap,
.input-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}
/* 4. Жесткое центрирование прелоадера */
#v1-preloader {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.preloader-logo {
    text-align: center !important; /* Центрируем сам текст, если он в две строки */
    width: 100% !important;
    padding: 0 20px !important; /* Даем отступы от краев экрана */
    box-sizing: border-box !important;
}

/* --- HERO СЕКЦИЯ И 2 СЛОЯ ВИДЕО --- */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-black);
}
.bg-video-layer, .smoke-video-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}
.bg-video-layer { z-index: 1; }
.smoke-video-layer { 
    z-index: 2; 
    opacity: 0.7; 
    pointer-events: none;
}
.hero-content { z-index: 3; position: relative; }

/* --- ЛОГОТИП --- */
.header-logo img { height: 90px; width: auto; }
.preloader-logo img {
    animation: pulse-neon 1.5s infinite alternate;
    filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.5));
}

/* --- БЛОК О КОМПАНИИ --- */
.about-b2b-section {
    background-color: var(--bg-black);
    padding: 80px 40px;
    border-top: 1px solid #222;
}
.about-container {
    max-width: 900px;
    margin: 0 auto;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}
.about-container strong { color: var(--text-white); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* --- ФУТЕР --- */
.site-footer {
    background-color: #050505;
    padding: 60px 40px;
    border-top: 2px solid var(--neon-orange);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.footer-legal h3 { color: var(--neon-orange); margin-bottom: 15px; font-size: 1.2rem; }
.footer-legal p { color: #888; margin-bottom: 5px; font-size: 0.95rem; }
.footer-legal a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-legal a:hover { color: var(--neon-orange); }
.footer-gdpr-links a {
    display: block; color: #666; text-decoration: underline; margin-top: 10px; font-size: 0.85rem; transition: 0.3s;
}
.footer-gdpr-links a:hover { color: var(--text-white); }

/* --- GDPR COOKIE БАННЕР --- */
.cookie-banner {
    display: none;
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333;
    z-index: 10000;
    padding: 20px 40px;
}
.cookie-content {
    max-width: 1200px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center; gap: 30px;
}
.cookie-content p { color: #bbb; font-size: 0.85rem; line-height: 1.5; margin: 0; }

/* --- ДОСТУПНОСТЬ (A11Y) - ВИДИМЫЙ ФОКУС --- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .accordion-header:focus-visible {
    outline: 3px solid var(--neon-orange) !important;
    outline-offset: 4px !important;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .footer-container, .cookie-content { flex-direction: column; align-items: flex-start; gap: 20px; }
    .cookie-banner { padding: 20px; }
    .about-b2b-section { padding: 50px 20px; }
}

/* =========================================
   МОДУЛЬНАЯ СИСТЕМА ПАРА (V1 AMBIENT STEAM)
   ========================================= */

/* 1. Базовый контейнер для любого блока */
.v1-ambient-steam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Пар ложится над фоном, но строго ПОД текстом (z-index: 2+) */
    pointer-events: none;
}

/* 2. Классы густоты пара (управляют прозрачностью градиента) */
.steam-light .steam-layer  { background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 65%); }
.steam-medium .steam-layer { background: radial-gradient(circle, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0) 65%); }
.steam-heavy .steam-layer  { background: radial-gradient(circle, rgba(255,255,255,0.80) 0%, rgba(255,255,255,0) 65%); }

/* 3. Физика облаков */
.steam-layer {
    position: absolute;
    bottom: -20%;
    filter: blur(45px); /* Мягкое размытие */
    opacity: 0;
    animation: v1-steam-float infinite ease-in-out;
    will-change: transform, opacity;
}

/* 4. Разные облака (Отрицательный delay нужен, чтобы они двигались сразу при загрузке страницы) */
.steam-1 { width: 130%; height: 130%; left: -10%; animation-duration: 22s; animation-delay: 0s; }
.steam-2 { width: 160%; height: 140%; left: 15%;  animation-duration: 28s; animation-delay: -8s; }
.steam-3 { width: 110%; height: 110%; left: -20%; animation-duration: 19s; animation-delay: -14s; }

/* 5. Исправленная анимация движения (без конфликта scale) */
@keyframes v1-steam-float {
    0%   { transform: translate(0, 15%); opacity: 0; }
    40%  { opacity: 1; }
    60%  { opacity: 1; }
    100% { transform: translate(-8%, -40%); opacity: 0; }
}

/* =========================================
   ЭКСТРЕННЫЙ ФИКС: МОБИЛЬНЫЙ ТЕКСТ И ПРЕЛОАДЕР
   ========================================= */

/* --- 1. ЛЕЧИМ ПРЕЛОАДЕР (Убираем обрезку, но оставляем оригинальное мигание) --- */
#v1-preloader {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.preloader-logo {
    height: auto !important; /* Убиваем старую жесткую высоту, из-за которой резало картинку */
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important; /* Разрешаем картинке показываться целиком */
}

.preloader-logo img {
    max-width: 80% !important; 
    max-height: 120px !important; /* Держит логотип в адекватных размерах */
    height: auto !important;
    object-fit: contain !important;
    
    /* ВОЗВРАЩАЕМ ТВОЕ ОРИГИНАЛЬНОЕ МИГАНИЕ */
    animation: pulse-neon 1.5s infinite alternate !important; 
    filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.5)) !important;
}

/* --- 2. ЛЕЧИМ СЛИПШИЙСЯ ТЕКСТ НА ГЛАВНОМ ЭКРАНЕ --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem !important; /* Адекватный размер для телефона */
        line-height: 1.3 !important; /* ВОТ ОНО: раздвигаем строки, чтобы они не наезжали друг на друга */
        padding: 0 15px !important; /* Даем тексту немного воздуха по бокам */
        word-wrap: break-word !important; /* Защита от вылезания длинных слов */
        overflow: visible !important;
        margin-bottom: 20px !important;
        height: auto !important;
    }
}
/* --- 3. ЛЕЧИМ СЛИПШИЙСЯ ТЕКСТ В БЛОКЕ АВТОМАТИКИ (БЛОК 3) --- */
@media (max-width: 768px) {
    .automation-content h2 {
        font-size: 1.8rem !important; /* Уменьшаем размер шрифта, чтобы он адекватно смотрелся на телефоне */
        line-height: 1.3 !important; /* Раздвигаем строки, чтобы они не наезжали друг на друга */
        word-wrap: break-word !important; /* Заставляем браузер переносить длинные финские слова */
        overflow-wrap: break-word !important;
        margin-bottom: 20px !important;
    }
    
    /* Немного поправим и обычный текст под заголовком, чтобы ему тоже было просторно */
    .automation-content p, 
    .tech-features li {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
}
/* --- 4. ЛЕЧИМ ДЛИННЫЕ СЛОВА В БЛОКЕ ЦЕНТРА ДОКУМЕНТАЦИИ (БЛОК 5) --- */
@media (max-width: 768px) {
    .doc-container h2 {
        font-size: 1.8rem !important; /* Уменьшаем гигантский шрифт */
        line-height: 1.3 !important; /* Делаем красивый межстрочный интервал при переносе */
        word-wrap: break-word !important; /* Разрешаем разрывать длинные слова */
        overflow-wrap: break-word !important; /* Надежный перенос для современных браузеров */
        hyphens: auto !important; /* Автоматические дефисы при переносе, если поддерживает браузер */
        padding: 0 10px !important; /* Отступы по краям, чтобы текст не прилипал к рамкам экрана */
    }
}