/* =========================================
   BI7 VISION 2025 – Минималистичный, быстрый, красивый
   ========================================= */
/* 1. Переменные — только нужные */
:root {
    --brand: #0d6efd;
    --brand-dark: #0a58ca;
    --accent: #00d4ff;
    --accent-2: #7c3aed;
    --success: #28a745;
    --warning: #ffc107;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;

    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.15);
    --transition: all .3s ease;
}

/* 2. База */
*,
*::before,
*::after { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Roboto', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #535353;
    margin: 0;
    overflow-x: hidden;

}

html, body {
    max-width: 100%;
    overflow-x: hidden !important; /* Обрезает всё, что торчит по бокам */
    position: relative; /* Фиксирует позиционирование */
}

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
/* Кастомный цвет текста для темной темы */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}
.display-4 { font-size: 3.5rem; }
.lead { font-size: 1.25rem; font-weight: 400; }

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

/* 3. Кнопки */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: .75rem 1.5rem;
    transition: var(--transition);
}
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-warning { background: #ffc107; border: none; color: #000; }
.btn-warning:hover { background: #ffca2c; transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-outline-light { border: 2px solid #fff; }
.btn-outline-light:hover { background: #fff; color: #000; }

/* Анимация парения */
@keyframes floatUp {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-15px) translateX(5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes floatDown {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(15px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

/* Применяем анимацию к элементам */
.floating-item {
    animation: floatUp 6s ease-in-out infinite;
}

/* Задержки и разные направления, чтобы они двигались не синхронно */
.floating-item-delay-1 {
    animation: floatDown 7s ease-in-out infinite;
    animation-delay: 0.5s;
}

.floating-item-delay-2 {
    animation: floatUp 8s ease-in-out infinite;
    animation-delay: 1s;
}
/* Мигающий курсор в терминале */
.typing-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Пульсация фонового шара */
.pulse-glow {
    animation: pulseAnimation 4s ease-in-out infinite;
}

@keyframes pulseAnimation {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.35; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
}

/* (Предыдущие анимации floatUp и floatDown оставляем, они нужны для движения карточек) */



/* Эффект матового стекла для карточек (опционально, если хочешь прозрачность) */
.card.bg-dark {
    background-color: rgba(33, 37, 41, 0.85) !important; /* Полупрозрачный черный */
    backdrop-filter: blur(10px); /* Размытие фона за карточкой */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Глубокая тень */
}

/* Стили для красивого окна успеха */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.success-card {
    background: linear-gradient(145deg, #1a1d20, #000000);
    border: 1px solid rgba(255, 193, 7, 0.2);
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.success-overlay.active .success-card {
    transform: translateY(0) scale(1);
}

.success-icon-wrapper {
    width: 100px;
    height: 100px;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 1px solid rgba(25, 135, 84, 0.2);
    position: relative;
}

.success-icon-wrapper i {
    font-size: 3rem;
    color: #198754;
    z-index: 2;
}

.success-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid #198754;
    opacity: 0;
    transform: scale(0.8);
    animation: success-pulse 2s infinite;
}

@keyframes success-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.success-card h2 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.success-card p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
/* Слайдер в Hero */
#heroCarousel .carousel-item {
    transition: opacity 0.8s ease-in-out;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.3;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 0.8;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
}

/* Скрываем элементы изначально, чтобы они не мелькали до начала анимации */
.carousel-item .slide-up,
.carousel-item .slide-up-delay-1,
.carousel-item .slide-up-delay-2,
.carousel-item .slide-up-delay-3,
.carousel-item .slide-up-delay-4,
.carousel-item .slide-in-right {
    opacity: 0;
    visibility: hidden;
}

/* Анимации для текста внутри активного слайда */
.carousel-item.active .slide-up { animation: fadeInUp 0.8s both !important; visibility: visible !important; }
.carousel-item.active .slide-up-delay-1 { animation: fadeInUp 0.8s both !important; animation-delay: 0.2s !important; visibility: visible !important; }
.carousel-item.active .slide-up-delay-2 { animation: fadeInUp 0.8s both !important; animation-delay: 0.4s !important; visibility: visible !important; }
.carousel-item.active .slide-up-delay-3 { animation: fadeInUp 0.8s both !important; animation-delay: 0.6s !important; visibility: visible !important; }
.carousel-item.active .slide-up-delay-4 { animation: fadeInUp 0.8s both !important; animation-delay: 0.8s !important; visibility: visible !important; }
.carousel-item.active .slide-in-right { animation: fadeInRight 1s both !important; animation-delay: 0.3s !important; visibility: visible !important; }

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.hero-modern {
    /* Оставляем минимальную высоту, но осторожно */
    min-height: 80vh;

    /* ТВОЙ ТЕМНЫЙ ФОН (выглядит дороже фиолетового) */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg') center/cover no-repeat;

    color: #fff;
    position: relative;
    /* Центрирование - это хорошо, оставляем */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#heroCarousel,
.carousel-inner,
.carousel-item {
    height: 100%;
    min-height: 80vh;
}

/* ВОТ ОНА, ТВОЯ КРУТАЯ СЕТКА! */
/* Я добавила opacity: 0.3, чтобы она не рябила в глазах, а была легким фоном */
.hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M30 0 L0 0 0 30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    opacity: 0.4; /* Регулируй прозрачность сетки здесь */
    z-index: 0; /* Чтобы сетка была ПОД текстом */
}

/* ВАЖНО: Не задавай тут font-size для h1, иначе сломаешь мобильный вид! */
/* Пусть размер управляется через HTML (clamp), как мы сделали раньше. */
.hero-modern h1 {
    font-weight: 800;
    /* font-size удалили намеренно */
}

.hero-modern .lead {
    /* Чуть уменьшила, 1.4rem может быть великовато для подзаголовка */
    font-size: 1.25rem;
    opacity: .90;
}

/* Тень для кнопок - отлично, оставляем */
.hero-modern .btn {
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
}



/* Стиль для темных карточек преимуществ */
.feature-card {
    background: #151515 !important; /* Чуть светлее чистого черного */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Эффект при наведении мышкой */
.feature-card:hover {
    transform: translateY(-10px); /* Карточка всплывает вверх */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Тень становится глубже */
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Внутренняя тень для кружков иконок (эффект вдавленности) */
.shadow-inner {
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

/* Цветные полоски снизу карточек */
.card-footer div {
    height: 4px;
}



/* Базовый стиль карточки услуги */
.service-card {
    background: #111111 !important; /* Почти черный */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Очень тонкая рамка */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* При наведении: легкий подъем и рамка светлеет */
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Градиентное пятно (спрятано по умолчанию) */
.hover-gradient {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px); /* Сильное размытие */
    opacity: 0; /* Невидимо */
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* При наведении пятно появляется */
.service-card:hover .hover-gradient {
    opacity: 0.4; /* Полупрозрачное свечение */
}

/* Межбуквенный интервал для подзаголовка */
.letter-spacing-2 {
    letter-spacing: 2px;
}



/* 7. FAQ */


/* Стили для темного аккордеона */
.custom-accordion .accordion-button {
    background-color: #1a1a1a !important; /* Темно-серый фон */
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* При наведении */
.custom-accordion .accordion-button:hover {
    background-color: #222 !important;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Когда элемент открыт (активен) */
.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #1a1a1a !important;
    color: #ffc107 !important; /* Текст становится желтым */
    box-shadow: none !important; /* Убираем стандартную тень */
    border-bottom: 1px solid transparent; /* Убираем линию снизу */
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Тело ответа */
.custom-accordion .accordion-body {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none; /* Убираем границу сверху, чтобы сливалось с заголовком */
}

/* Настройка иконки-стрелочки */
.custom-accordion .accordion-button::after {
    filter: invert(1); /* Делаем стрелку белой */
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

/* Желтая стрелка при открытии */
.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(0deg); /* Хитрый способ сделать желтый фильтр */
    transform: rotate(-180deg);
}

/* 9. CTA */

/* Фон карточки CTA */
.cta-card {
    background-color: #000; /* Резервный цвет */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Тонкая стеклянная рамка */
}

/* Градиент, который переливается */
.cta-background {
    background: linear-gradient(135deg, #111111 0%, #0d2538 50%, #000000 100%);
    opacity: 0.9;
}

/* Текстовый градиент для фразы "Bauen wir sie jetzt" */
.text-warning-gradient {
    background: linear-gradient(to right, #ffc107, #fff, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Кнопка с эффектом свечения (Glow) */
.btn-cta-primary {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4); /* Желтое свечение */
    color: #000;
    background-color: #ffca2c;
}

/* Анимация тени (пульсация) */
.shadow-glow {
    animation: pulse-yellow 2s infinite;
}

@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}


/* --- СТИЛИ ДЛЯ ХЕДЕРА --- */

/* Эффект матового стекла (Glassmorphism) */
.glass-header {
    background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный черный */
    backdrop-filter: blur(12px);          /* Размытие фона под хедером */
    -webkit-backdrop-filter: blur(12px);  /* Для Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Тонкая линия снизу */
    transition: background-color 0.3s ease;
}

/* Ссылки в меню */
.nav-link-custom {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1rem;
}

/* Ховер эффект для ссылок (становится белым) */
.nav-link-custom:hover {
    color: #ffffff !important;
}

/* Активная ссылка и эффект подчеркивания */
.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 50%;
    background: linear-gradient(90deg, #ffc107, #0dcaf0); /* Желто-голубой градиент */
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 100%; /* Линия раскрывается */
}

.nav-link-custom.active {
    color: #ffffff !important;
}

/* Эффект свечения для кнопки (как в CTA) */
.shadow-glow {
    transition: transform 0.2s, box-shadow 0.2s;
}
.shadow-glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ (OFFCANVAS) --- */

/* Фикс для мобильного меню */
.offcanvas {
    z-index: 1060 !important; /* Выше, чем у Bootstrap по умолчанию (1045) и выше хедера */
}

/* Красивые большие ссылки в мобильном меню */
.offcanvas .nav-link-custom {
    color: #fff !important; /* Принудительно белый цвет */
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Легкий разделитель */
    padding-bottom: 10px;
}

/* Убираем разделитель у последней ссылки */
.offcanvas .nav-link-custom:last-child {
    border-bottom: none;
}


.offcanvas {
    background-color: #000000 !important; /* Полностью черный фон меню на мобильном */
}

/* Мелкие утилиты */
.hover-white:hover {
    color: #fff !important;
}
.transition-all {
    transition: all 0.3s ease;
}

/* Если твой логотип темный, этот фильтр сделает его белым.
   Убери этот класс, если логотип уже светлый. */
.brightness-filter {
    filter: brightness(0) invert(1);
}

/* 12. Ховеры для футера */
.hover-warning:hover { color: #ffc107 !important; }
.hover-info:hover { color: #0dcaf0 !important; }
.hover-opacity:hover { opacity: 1 !important; }
.hover-scale { transition: transform .2s; }
.hover-scale:hover { transform: scale(1.2); }

/* Модальное окно — стекло */
/* Стеклянная модалка */
.modal-glass {
    background: rgb(0 0 0 / 50%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.bg-gradient {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
}

/* Поля формы */
.form-control-dark {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: 12px;
}
.form-control-dark:focus {
    background: rgba(255,255,255,.12);
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0,212,255,.25);
    color: #fff;
}
.form-floating > label { color: rgba(255,255,255,.7); }

/* Иконки в полях */
.has-icon { position: relative; }
.input-icon {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,.6); pointer-events: none; font-size: 1.1rem;
}

/* Неоновая кнопка */
.btn-neon {
    background: linear-gradient(90deg, #760e12, #dc3545);
    border: none;
    color: #ffffff;
    font-weight: 700;
    border-radius: 12px;
    transition: all .3s ease;
}
.btn-neon:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,212,255,.4);
}

/* Стили для карточек цен в Dark Mode */
.card-pricing {
    background-color: #151515 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-pricing:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* Акцентная карточка (Standard) */
.card-pricing.border-warning {
    background-color: #1a1a1a !important; /* Чуть светлее */
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.1);
}

/* 13. Responsive */
@media (max-width: 768px) {
    .hero-modern h1 { font-size: 2.8rem; }
    .hero-modern .lead { font-size: 1.1rem; }
    .display-4 { font-size: 2.8rem; }
}

/* Если хочешь легкий наклон для динамики */
.rotate-3 {
    transform: rotate(3deg);
}

/* --- Legal Pages Styling (Impressum / Datenschutz) --- */

.legal-content h2 {
    margin-top: 3rem; /* Отступ сверху для новых разделов */
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    font-size: 1.05rem; /* Чуть крупнее стандартного для удобства чтения */
    line-height: 1.7;   /* Больше воздуха между строками */
    color: #b0b3b8;     /* Мягкий серый цвет, приятный глазу на черном */
}

.legal-content a {
    color: #0dcaf0; /* Голубые ссылки */
    text-decoration: underline;
    text-decoration-color: rgba(13, 202, 240, 0.3);
    text-underline-offset: 4px;
}

.legal-content a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

/* Выделенные блоки с контактами */
.bg-dark.rounded {
    background-color: #111 !important; /* Чуть светлее фона */
}

/* Эффекты для контактов в Impressum */
.hover-warning:hover {
    color: #ffc107 !important;
    transition: color 0.3s ease;
}
.hover-info:hover {
    color: #0dcaf0 !important;
    transition: color 0.3s ease;
}

/* Анимация Cookie Баннера */
#cookieBanner {
    /* Сначала он спрятан "в подвале" (сдвинут вниз на 100%) */
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); /* Очень плавная анимация */
}

/* Когда JS добавит этот класс, баннер выедет вверх */
#cookieBanner.show {
    transform: translateY(0);
}

/* --- FOOTER STYLES --- */

/* Ссылки в футере */
.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #ffc107; /* Желтый (Bootstrap warning) */
    transform: translateX(5px); /* Легкий сдвиг вправо */
}

/* Эффекты для соцсетей */
.transition-icon {
    transition: all 0.3s ease;
}
.hover-whatsapp:hover { color: #25D366 !important; transform: scale(1.1); }
.hover-facebook:hover { color: #1877F2 !important; transform: scale(1.1); }
.hover-instagram:hover { color: #E1306C !important; transform: scale(1.1); }

/* Общие ховеры */
.hover-white:hover { color: #fff !important; }
.hover-info:hover { color: #0dcaf0 !important; }


/* Стили для выпадающего меню */
.dropdown-menu-dark {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px;
    min-width: 240px;
}

.dropdown-item {
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffc107 !important; /* Наш фирменный warning-цвет */
    transform: translateX(5px);
}

/* Показ меню при наведении на десктопе */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
}

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

/* Мобильное меню оптимизация */
.offcanvas {
    max-width: 85% !important;
}

.offcanvas-body .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.offcanvas-body .nav-link:active {
    background: rgba(255, 255, 255, 0.05);
}

.offcanvas-body .dropdown-menu .dropdown-item {
    font-size: 1.1rem;
    padding-top: 12px;
    padding-bottom: 12px;
}

.offcanvas-body .nav-link.active {
    color: #ffc107 !important;
}

/* Стилизация контактов в меню */
.offcanvas-body i.bi {
    font-size: 1.2rem;
}
/* === GRID OPACITY FIX === */

/* Убираем сетку в hero-modern — она слишком яркая */
.hero-modern::before {
    opacity: 0.12;
}

/* Для home_main — своя более тонкая сетка уже в inline,
   дополнительно убираем любое двоение */
.hero-main-grid {
    opacity: 0.04;
}
/* =============================================
   BI7 VISION – UPDATES & IMPROVEMENTS
   ============================================= */

/* Сетка hero-modern — убавляем яркость */
.hero-modern::before {
    opacity: 0.12;
}

/* Логотип — плавное появление */
.logo-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.logo-transition:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Топ-бар hover эффекты */
.hover-bg-warning:hover {
    background-color: #ffc107 !important;
}
.hover-text-dark:hover {
    color: #000 !important;
}
.transition-colors {
    transition: color 0.2s ease;
}

/* Кнопки в хедере для холдинга */
.btn-outline-info {
    border-width: 2px;
}
.btn-outline-info:hover {
    transform: translateY(-2px);
}

/* Holding карточки направлений */
.holding-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.holding-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Счётчики внизу hero холдинга */
.stat-item {
    position: relative;
    padding: 0 2rem;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

/* Анимация появления для hero без карусели */
.slide-up {
    animation: fadeInUp 0.8s both;
}
.slide-up-delay-1 { animation: fadeInUp 0.8s both; animation-delay: 0.2s; }
.slide-up-delay-2 { animation: fadeInUp 0.8s both; animation-delay: 0.4s; }
.slide-up-delay-3 { animation: fadeInUp 0.8s both; animation-delay: 0.6s; }
.slide-up-delay-4 { animation: fadeInUp 0.8s both; animation-delay: 0.8s; }
.slide-in-right   { animation: fadeInRight 1s both; animation-delay: 0.3s; }

/* Navbar переключатель домена */
.domain-switcher {
    font-size: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.domain-switcher:hover {
    opacity: 1;
}

/* Улучшенный glass header */
.glass-header {
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Иконка в карточке холдинга — декоративная большая */
.holding-icon-bg {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 9rem;
    opacity: 0.06;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
a:hover .holding-icon-bg {
    opacity: 0.1;
}

/* Бейдж "Moers, Deutschland" в холдинге */
.origin-badge {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* Разделители между секциями */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    border: none;
}

/* Карточки "О компании" в холдинге */
.about-card {
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.about-card:hover {
    border-color: rgba(255,255,255,0.15) !important;
    transform: translateY(-3px);
}

/* Responsive fix для холдинг-карточек на мобильном */
@media (max-width: 768px) {
    .holding-icon-bg {
        font-size: 5rem;
    }
}

.bi7-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #0d1117 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.phone-btn {
    background: rgba(255,193,7,0.08);
    color: #ffc107;
    border: 1px solid rgba(255,193,7,0.2);
    transition: all 0.2s ease;
    font-size: 0.85rem;
}
.phone-btn:hover {
    background: rgba(255,193,7,0.15);
    color: #ffca2c;
    border-color: rgba(255,193,7,0.4);
    transform: translateY(-1px);
}

.glass-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #0d1117 100%) !important;
}