/* ПЕРЕМЕННЫЕ И ЦВЕТА ===================== */
:root {
    --primary: #0081ff;
    --primary-glow: rgba(0, 129, 255, 0.3);
    --dark: #191c20;
    --white: #ffffff;
    --text-gray: #4a5056;
    --bg-gradient: radial-gradient(circle at 10% 20%, #eef5fc 0%, #f4f7fb 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(12px);
    --text-main: #1d1d1f;
}
/* Конец ПЕРЕМЕННЫЕ И ЦВЕТА ===================== */

/* БАЗОВЫЕ СТИЛИ ===================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container { 
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 0 40px; 
    position: relative; 
    z-index: 2; 
}
/* Конец БАЗОВЫЕ СТИЛИ ===================== */

/* ФОН И ПАРТИКЛЫ ===================== */
#particles-bg {
    position: fixed; 
    top: 0; left: 0; 
    width: 100vw; height: 100vh;
    z-index: -1; 
    pointer-events: none; 
    overflow: hidden;
}

.logo-particle { 
    position: absolute; 
    animation: float-spin 30s infinite linear; 
    transform-origin: center; 
}

@keyframes float-spin {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-150px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}
/* Конец ФОН И ПАРТИКЛЫ ===================== */

/* ТИПОГРАФИКА ===================== */
h1 { 
    font-size: 4.5rem; 
    font-weight: 800; 
    line-height: 1.05; 
    letter-spacing: -1.5px; 
    margin-bottom: 24px; 
}
h1 span { color: var(--primary); }
p { font-size: 1.15rem; color: var(--text-gray); }
/* Конец ТИПОГРАФИКА ===================== */

/* КНОПКИ (ОСНОВНЫЕ) ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 40px; font-size: 1.05rem; font-weight: 600;
    border-radius: 0; 
    text-decoration: none; transition: all 0.3s ease;
    cursor: pointer; border: none;
}
.btn-primary { 
    background-color: var(--primary); 
    color: var(--white); 
    box-shadow: 0 5px 15px var(--primary-glow); 
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    background-color: #006ce6; 
    box-shadow: 0 8px 20px rgba(0, 129, 255, 0.4); 
}
/* Конец КНОПКИ (ОСНОВНЫЕ) ===================== */

/* ШАПКА И НАВИГАЦИЯ ===================== */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 30px 0; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}
header.scrolled {
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    display: flex; align-items: center; 
    font-size: 1.3rem; font-weight: 800; letter-spacing: 1.5px; 
    color: var(--dark); text-decoration: none; text-transform: uppercase;
}
.logo-plus { color: var(--primary); margin-left: 6px; }

/* Десктопное меню */
.primary-menu-container ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.primary-menu-container ul li a { 
    text-decoration: none; color: var(--text-main); 
    font-size: 11px; font-weight: 700; text-transform: uppercase; 
    letter-spacing: 1.5px; transition: all 0.3s ease; 
    position: relative; padding: 12px 25px;
    display: inline-block; z-index: 1;
}
.primary-menu-container ul li a::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary);
    clip-path: polygon(12% 0%, 100% 0%, 88% 100%, 0% 100%);
    z-index: -1; opacity: 0; transform: scaleX(0.8);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.primary-menu-container ul li a:hover { color: var(--white); }
.primary-menu-container ul li a:hover::before { opacity: 1; transform: scaleX(1); }

/* Кнопка в шапке (CTA) */
.header-cta {
    background: var(--dark); color: #fff !important; padding: 12px 24px; border-radius: 0;
    font-size: 11px; font-weight: 700; text-transform: uppercase; text-decoration: none; 
    transition: all 0.3s ease; border: 1px solid var(--dark);
    display: flex; align-items: center;
}
.header-cta:hover { background: var(--primary); border-color: var(--primary); }

/* Бургер меню (изначально скрыто) */
.menu-toggle {
    display: none; flex-direction: column; justify-content: space-between; 
    width: 25px; height: 16px; cursor: pointer; z-index: 1100;
}
.menu-toggle span { width: 100%; height: 2px; background: var(--dark); transition: all 0.3s ease; }
/* Конец ШАПКА И НАВИГАЦИЯ ===================== */

/* HERO СЕКЦИЯ ===================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-text p { max-width: 500px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; padding-top: 40px; border-top: 2px solid var(--dark); }
.stat h4 { font-size: 2.8rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat span { font-size: 0.9rem; font-weight: 600; color: var(--primary); text-transform: uppercase; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
#interactive-scales { width: 100%; max-width: 600px; filter: drop-shadow(0 30px 40px rgba(0, 129, 255, 0.15)); cursor: crosshair; }
/* Конец HERO СЕКЦИЯ ===================== */

/* ДОПОЛНЕНИЕ: ГРУППА КНОПОК В HERO И ВТОРАЯ КНОПКА ===================== */
.hero-buttons {
    display: flex;
    gap: 20px; 
    flex-wrap: wrap; 
}

/* Используем усиленный селектор a.btn.btn-secondary */
a.btn.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px; /* Задаем размер, идентичный первой кнопке */
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px; /* Скругление углов */
    text-decoration: none; /* Убираем подчеркивание ссылки */
    transition: all 0.3s ease;
    
    background-color: var(--dark, #191c20);
    color: #ffffff !important; /* Принудительно делаем текст белым */
    box-shadow: 0 5px 15px rgba(25, 28, 32, 0.2);
}

a.btn.btn-secondary:hover {
    transform: translateY(-3px);
    background-color: #000000;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(25, 28, 32, 0.4);
}
/* Конец ДОПОЛНЕНИЕ: ГРУППА КНОПОК В HERO И ВТОРАЯ КНОПКА ================= */

/* СЕКЦИЯ УСЛУГ: СРЕЗАННЫЕ УГЛЫ, МАСШТАБИРОВАНИЕ И ЦЕНТРОВКА ===================== */

.services { padding: 120px 0; }

/* 1. Возвращаем заголовок строго по центру */
.section-header { 
    text-align: center; 
    margin-bottom: 60px; 
}
.section-header h2 { 
    font-size: 3.2rem; 
    font-weight: 800; 
    margin-bottom: 16px; 
    text-transform: uppercase; 
    color: var(--dark); 
}
.section-header p {
    font-size: 1.15rem; 
    color: var(--text-gray);
    margin: 0 auto;
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 2. Сама карточка (Синяя база с прямыми углами) */
.top-icon-card {
    background: linear-gradient(135deg, var(--primary) 0%, #0052a3 100%);
    padding: 50px 40px;
    position: relative;
    border-radius: 0 !important; /* Прямые углы */
    display: flex;
    flex-direction: column;
    min-height: 320px;
    /* Плавный переход для масштабирования самой карточки */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    z-index: 1;
}

/* 3. Черный фон при наведении (со СРЕЗАННЫМИ углами) */
.top-icon-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #191c20 0%, #000000 100%);
    
    /* Магия: обрезаем углы по 30 пикселей. 
       Все что за пределами - становится прозрачным, обнажая синюю карточку */
    clip-path: polygon(
        35px 0, calc(100% - 35px) 0,
        100% 35px, 100% calc(100% - 35px),
        calc(100% - 35px) 100%, 35px 100%,
        0 calc(100% - 35px), 0 35px
    );
    
    opacity: 0;
    /* Изначально черный фон чуть меньше, чтобы красиво "вырасти" */
    transform: scale(0.95); 
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1; /* Держим позади текста и иконок */
}

/* --- СОСТОЯНИЕ ПРИ НАВЕДЕНИИ НА КАРТОЧКУ --- */
.top-icon-card:hover {
    /* Карточка чуть-чуть увеличивается и всплывает */
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 25px 45px rgba(0, 129, 255, 0.25);
}

.top-icon-card:hover::after {
    opacity: 1;
    /* Черный фон с вырезанными углами заполняет карточку */
    transform: scale(1);
}

/* --- ТЕКСТ (СТРОГО БЕЛЫЙ) --- */
.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.top-icon-card h3 { 
    font-size: 1.6rem; 
    margin-bottom: 16px; 
    color: #ffffff !important; 
    font-weight: 800;
    text-transform: uppercase;
    padding-right: 70px;
    transition: transform 0.4s ease;
}

.top-icon-card p {
    font-size: 1.05rem;
    color: #ffffff !important; 
    opacity: 0.85; 
    line-height: 1.6;
    margin: 0;
    transition: opacity 0.4s ease;
}

.top-icon-card:hover h3 {
    transform: translateX(5px);
}
.top-icon-card:hover p {
    opacity: 1; /* Текст становится 100% белым */
}

/* --- ИКОНКИ --- */
.corner-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    z-index: 2;
    fill: #ffffff !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.top-icon-card:hover .corner-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 5px 15px rgba(255,255,255,0.25));
}

/* Адаптив */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .top-icon-card {
        min-height: 240px;
        padding: 40px 30px;
    }
    .corner-icon {
        top: 25px;
        right: 25px;
        width: 50px;
        height: 50px;
    }
    .top-icon-card h3 {
        padding-right: 60px;
    }
}
/* Конец СЕКЦИЯ УСЛУГ ============================= */

/* ПОДВАЛ (FOOTER) ===================== */
footer { 
    background: var(--white); 
    padding: 40px 0; 
    text-align: center; 
    border-top: 2px solid var(--dark); 
    position: relative; 
    z-index: 2; 
}
/* Конец ПОДВАЛ (FOOTER) ===================== */

/* АНИМАЦИИ И SVG (SCROLL & ВЕСЫ) ===================== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.active { opacity: 1; transform: translateY(0); }

.cls-1 { fill: var(--primary); } 
.cls-2 { fill: var(--dark); }

@keyframes assemble {
    0% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
    100% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
}

#interactive-scales polygon, 
#interactive-scales path {
    transform-origin: center;
    animation: assemble 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#swing-group { 
    transform-origin: 174px 35px; 
    transition: transform 0.15s ease-out; 
}

#interactive-scales polygon:nth-child(4n) { --dx: -150px; --dy: -100px; --rot: 75deg; }
#interactive-scales polygon:nth-child(4n+1) { --dx: 150px; --dy: 80px; --rot: -45deg; }
#interactive-scales polygon:nth-child(4n+2) { --dx: -90px; --dy: 150px; --rot: 120deg; }
#interactive-scales polygon:nth-child(4n+3) { --dx: 120px; --dy: -120px; --rot: -90deg; }
/* Конец АНИМАЦИИ И SVG (SCROLL & ВЕСЫ) ===================== */

/* АДАПТИВНОСТЬ (MEDIA QUERIES) ===================== */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; margin-top: 60px; }
    .hero-text p { margin: 0 auto 40px; }
    .hero-stats { justify-content: center; }
    
    /* Для новых карточек услуг */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 280px; padding: 40px 30px; }

    /* Центрируем кнопки на мобильных устройствах */
    .hero-buttons { 
        justify-content: center; 
    }

    .menu-toggle { display: flex; }

    .primary-menu-container {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--dark); transition: all 0.4s ease; z-index: 1050;
        display: flex; align-items: center; justify-content: center;
    }
    .primary-menu-container.active { right: 0; }
    .primary-menu-container ul { flex-direction: column; align-items: center; gap: 30px; }
    .primary-menu-container ul li a { color: var(--white); font-size: 24px; opacity: 1; padding: 15px 20px; }
    .primary-menu-container ul li a::before { display: none; }

    .header-cta { display: none; }

    .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }
}
/* Конец АДАПТИВНОСТЬ (MEDIA QUERIES) ===================== */
/* СПЕЦИФИЧЕСКИЕ СТИЛИ ДЛЯ ИКОНКИ МЕШКА ===================== */

/* Исходное состояние: Мешок белый (как и остальные иконки), 
   но мы сделаем символ рубля внутри него прозрачным или синим */
.bag-icon .bag-body {
    fill: #ffffff;
    transition: fill 0.4s ease;
}

/* Символ рубля изначально залит цветом фона карточки (синим) */
.bag-icon .ruble-sign {
    fill: var(--primary); 
    transition: fill 0.4s ease;
}

/* СОСТОЯНИЕ ПРИ НАВЕДЕНИИ НА КАРТОЧКУ (Бэк становится черным) */
.top-icon-card:hover .bag-icon .bag-body {
    fill: #ffffff; /* Мешок остается белым */
}

.top-icon-card:hover .bag-icon .ruble-sign {
    fill: #000000; /* Знак рубля перекрашивается в черный (цвет нового фона) */
}

/* Общий стиль для corner-icon (если вдруг не прописан) */
.corner-icon {
    position: absolute;
    top: 35px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 1;
}
/* Конец СТИЛЕЙ ДЛЯ ИКОНКИ МЕШКА =========================== */
/* Исходный вид: Мешок белый, Рубль синий (в цвет фона) */
.bag-icon .bag-body {
    fill: #ffffff; /* Белый мешок */
    transition: fill 0.4s ease;
}

.bag-icon .ruble-sign {
    fill: var(--primary); /* Рубль цвета фона (кажется прозрачным) */
    transition: fill 0.4s ease;
}

/* При наведении: Бэк черный, Рубль тоже черный */
.top-icon-card:hover {
    background-color: #000000;
}

.top-icon-card:hover .bag-icon .ruble-sign {
    fill: #000000; /* Рубль становится черным под цвет нового фона */
}

.top-icon-card:hover .bag-icon .bag-body {
    fill: #ffffff; /* Мешок остается белым */
}
/* СПЕЦИФИЧЕСКИЕ СТИЛИ ДЛЯ ИКОНКИ КОМАНДЫ ===================== */

/* По умолчанию: вся иконка белая */
.team-icon .team-bodies,
.team-icon .team-heads {
    fill: #ffffff;
    transition: fill 0.4s ease, transform 0.4s ease;
}

/* При наведении на карточку (когда фон станет черным) */
.top-icon-card:hover .team-icon .team-bodies {
    fill: #ffffff; /* Фигуры остаются белыми */
}

/* Эффект легкого "оживления" голов при наведении */
.top-icon-card:hover .team-heads {
    fill: #ffffff;
    transform: translateY(-2px); /* Головы чуть приподнимаются */
}

/* Общий стиль расположения для corner-icon */
.corner-icon {
    position: absolute;
    top: 35px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 1;
    transition: transform 0.4s ease;
}

.top-icon-card:hover .corner-icon {
    transform: scale(1.1);
}
/* Конец СТИЛЕЙ ДЛЯ ИКОНКИ КОМАНДЫ =========================== */
/* АНИМАЦИИ ЧАСТЕЙ ИКОНОК ПРИ НАВЕДЕНИИ ===================== */

/* 1. Анимация Команды (Аутсорсинг): Человечки немного "расходятся" */
.team-icon .team-bodies path, 
.team-icon .team-heads path {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.top-icon-card:hover .team-icon .team-bodies path:nth-child(2) {
    transform: translate(5px, 2px); /* Передний человечек чуть вперед */
}

.top-icon-card:hover .team-icon .team-heads path:nth-child(2) {
    transform: translate(3px, -2px); /* Его голова чуть вверх */
}

/* 2. Анимация Мешочка (Оптимизация): Эффект подпрыгивания */
.bag-icon .bag-body, 
.bag-icon .ruble-sign {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center bottom;
}

.top-icon-card:hover .bag-icon .bag-body {
    transform: scale(1.1) translateY(-2px); /* Мешок чуть раздувается */
}

.top-icon-card:hover .bag-icon .ruble-sign {
    transform: scale(1.2) translateY(-5px); /* Символ рубля "всплывает" выше мешка */
    fill: #000000; /* Становится черным под цвет фона */
}

/* СПЕЦИФИЧЕСКИЕ СТИЛИ ДЛЯ ИКОНКИ ЩИТА ===================== */

.shield-icon {
    transform-origin: center;
}

/* Изначальное состояние слоев */
.shield-outline, .shield-mid, .shield-core {
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: center;
}

/* Анимация при наведении на карточку */
.top-icon-card:hover .shield-outline {
    transform: scale(1.25); /* Внешний контур сильно расширяется */
    opacity: 0.2;            /* Становится прозрачнее (эффект поля) */
}

.top-icon-card:hover .shield-mid {
    transform: scale(1.12); /* Средний слой расширяется умеренно */
    opacity: 0.4;
}

.top-icon-card:hover .shield-core {
    transform: scale(1.05); /* Ядро щита слегка увеличивается */
    fill: #ffffff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); /* Эффект свечения */
}

/* Дополнительный визуальный эффект "сканирования" при наведении */
.top-icon-card:hover .shield-icon {
    animation: shieldGlow 2s infinite ease-in-out;
}

@keyframes shieldGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2) drop-shadow(0 0 15px rgba(255,255,255,0.3)); }
}

/* Общие правки для corner-icon (проверьте, чтобы ширина/высота совпадали) */
.corner-icon.shield-icon {
    width: 70px; /* Щит детализированный, можно сделать чуть крупнее */
    height: 70px;
    top: 30px;
    right: 25px;
}

/* Конец АНИМАЦИЙ ЧАСТЕЙ ИКОНОК ============================= */
/* СЕКЦИЯ КОМАНДА (РАМКА ЗАГОЛОВКА И ФОТО) ===================== */

.team { 
    padding: 100px 0 120px 0; 
}
.team-header { 
    text-align: center; 
    margin-bottom: 60px; 
}

/* --- ИНТЕРЕСНАЯ РАМКА ДЛЯ ЗАГОЛОВКА --- */
.framed-title {
    display: inline-block;
    position: relative;
    padding: 20px 40px;
    margin-bottom: 20px;
    cursor: default;
}

/* Угловые акценты (в стиле строгой геометрии) */
.framed-title::before,
.framed-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary); /* Фирменный синий цвет */
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Левый верхний угол */
.framed-title::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

/* Правый нижний угол */
.framed-title::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Анимация рамки при наведении на заголовок */
.framed-title:hover::before,
.framed-title:hover::after {
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.framed-title h2 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark);
    margin: 0;
    letter-spacing: 2px;
}

.team-header p {
    font-size: 1.15rem; 
    color: var(--text-gray);
    margin: 0 auto;
    max-width: 600px;
}

/* --- ОФОРМЛЕНИЕ ФОТОГРАФИИ КОМАНДЫ --- */
.team-photo-wrapper {
    position: relative;
    max-width: 1000px; /* Ограничиваем ширину для красоты */
    margin: 0 auto;
    /* Делаем такие же срезанные углы (по 40px), как у карточек компетенций! */
    clip-path: polygon(
        40px 0, 100% 0, 
        100% calc(100% - 40px), calc(100% - 40px) 100%, 
        0 100%, 0 40px
    );
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Декоративная синяя подложка */
.photo-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary);
    opacity: 0.1;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Само фото */
.team-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Интерактив при наведении на фото */
.team-photo-wrapper:hover .team-image {
    transform: scale(1.04); /* Легкий и дорогой зум */
}
.team-photo-wrapper:hover .photo-backdrop {
    opacity: 0; /* Убираем синюю дымку, показывая реальные цвета */
}

/* Адаптив для телефонов */
@media (max-width: 992px) {
    .framed-title h2 { font-size: 2.2rem; }
    .framed-title { padding: 15px 25px; }
    .team-photo-wrapper { 
        clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
    }
}
/* Конец СЕКЦИЯ КОМАНДА ======================================== */
/* ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ВОКРУГ ФОТО КОМАНДЫ ===================== */

.team-composition {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
}

/* 1. Смещенная рамка позади фото (со срезанными углами) */
.decor-outline {
    position: absolute;
    top: 25px;
    left: -25px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    opacity: 0.3;
    z-index: -1;
    /* Повторяем те же срезанные углы, что и у фото */
    clip-path: polygon(
        40px 0, 100% 0, 
        100% calc(100% - 40px), calc(100% - 40px) 100%, 
        0 100%, 0 40px
    );
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 2. Фирменные плюсы из логотипа (ЯРКИЕ ЦВЕТА) */
.logo-plus-decor {
    position: absolute;
    z-index: -2;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Создаем сам крестик через псевдоэлемент */
.logo-plus-decor::before {
    content: '';
    position: absolute;
}

/* Верхний правый плюс (Яркий синий/голубой) */
.plus-top-right {
    top: -40px;
    right: 5%;
    width: 40px;
    height: 8px;
    background: var(--primary); /* Фирменный синий цвет */
    opacity: 1; /* Убрали прозрачность, теперь цвет насыщенный */
}
.plus-top-right::before {
    width: 8px;
    height: 40px;
    top: -16px;
    left: 16px;
    background: var(--primary);
}

/* Нижний левый плюс (Насыщенный черный) */
.plus-bottom-left {
    bottom: -30px;
    left: -5%;
    width: 30px;
    height: 6px;
    background: var(--dark); /* Фирменный темный/черный цвет */
    opacity: 1; /* Убрали прозрачность */
}
.plus-bottom-left::before {
    width: 6px;
    height: 30px;
    top: -12px;
    left: 12px;
    background: var(--dark);
}

/* --- ИНТЕРАКТИВ ПРИ НАВЕДЕНИИ НА ВСЮ КОМПОЗИЦИЮ --- */

/* Рамка отъезжает в другую сторону, создавая 3D-объем */
.team-composition:hover .decor-outline {
    transform: translate(15px, -15px);
    opacity: 0.5;
}

/* Плюсы медленно вращаются и немного вырастают */
.team-composition:hover .plus-top-right {
    transform: rotate(90deg) scale(1.1);
}
.team-composition:hover .plus-bottom-left {
    transform: rotate(-90deg) scale(1.2);
}

/* Для мобильных устройств убираем сильный разброс декора */
@media (max-width: 992px) {
    .decor-outline {
        top: 15px; left: -15px;
        clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
    }
    .plus-top-right { right: 0; top: -20px; transform: scale(0.7); }
    .plus-bottom-left { left: 0; bottom: -15px; transform: scale(0.7); }
}
/* Конец ДЕКОРА ВОКРУГ ФОТО ================================== */
/* СЕКЦИЯ ОТЗЫВОВ ===================== */
/* УНИКАЛЬНАЯ СЕКЦИЯ РЕПУТАЦИИ (BENTO GRID) ===================== */
.bento-reviews {
    padding: 120px 0;
    background: #f4f7fb;
}

.bento-grid {
    display: grid;
    /* Левая колонка большая (отзывы), правая поменьше (факты) */
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
}

.bento-box {
    position: relative;
    padding: 50px;
    background: #ffffff;
    border-radius: 0; /* Строгая геометрия */
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* --- ГЛАВНЫЙ БЛОК: СЛАЙДЕР --- */
.bento-slider-box {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background: var(--dark);
    color: #ffffff;
    /* Уникальный срез правого верхнего угла */
    clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 60px, 100% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-quote-mark {
    position: absolute;
    top: -20px;
    right: 40px;
    font-size: 15rem;
    font-family: serif;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
}

.bento-slides-container {
    position: relative;
    flex-grow: 1;
}

.bento-slide {
    display: none;
    opacity: 0;
    animation: fadeSlideUp 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.bento-slide.active {
    display: block;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bento-rating {
    color: var(--primary);
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-bottom: 25px;
}

.bento-quote-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.bento-quote-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 90%;
}

.bento-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bento-avatar {
    width: 60px;
    height: 60px;
    /* Шестиугольный аватар вместо скучного круга */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    object-fit: cover;
}

.bento-author-info strong {
    display: block;
    font-size: 1.2rem;
    color: #ffffff;
}
.bento-author-info span {
    font-size: 0.9rem;
    color: var(--primary);
}

/* Навигация слайдера */
.bento-nav {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}
.b-btn {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; justify-content: center; align-items: center;
}
.b-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* --- МАЛЫЕ БЛОКИ: ФАКТЫ --- */
.bento-stat-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Вырез левого нижнего угла */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}

.box-dark {
    background: #191c20;
    color: #ffffff;
}
.box-blue {
    background: var(--primary);
    color: #ffffff;
}

.bento-stat-icon {
    width: 40px; height: 40px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.bento-stat-content h4 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}
.bento-stat-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
}
/* Нижние золотые звезды (уже должны быть у вас, оставляем их без изменений) */
.bento-stars {
    color: #ffcc00; 
    font-size: 1.1rem;
    letter-spacing: 2px;
    line-height: 1;
}

/* Адаптив */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-slider-box {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .bento-quote-title { font-size: 1.6rem; }
}
/* Конец СЕКЦИИ РЕПУТАЦИИ (BENTO GRID) ===================== */
/* --- ПРАВКИ: ЧИСТО БЕЛЫЙ ТЕКСТ --- */
.bento-quote-text,
.bento-stat-content p {
    color: #ffffff !important;
    opacity: 1 !important; /* Жестко отключаем любую прозрачность */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Легкая тень для максимальной читаемости */
}

/* --- ПРАВКИ: КРАСИВАЯ КНОПКА "ЧИТАТЬ ВСЕ ОТЗЫВЫ" --- */
.bento-all-reviews-btn {
    display: inline-block;
    padding: 16px 35px;
    background: var(--primary); /* Фирменный синий фон */
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s ease;
    
    /* Добавляем геометрические срезанные углы в стиле вашего дизайна */
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    
    /* Эффект свечения кнопки */
    box-shadow: 0 10px 20px rgba(0, 129, 255, 0.2);
}

/* Эффект при наведении на кнопку мыши */
.bento-all-reviews-btn:hover {
    background: #ffffff; /* Кнопка становится белой */
    color: var(--dark) !important; /* Текст становится темным */
    transform: translateY(-4px); /* Кнопка слегка приподнимается */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* Тень усиливается */
}
/* --- ПРАВКА: ОТОДВИГАЕМ КНОПКУ ОТ СТРЕЛОК --- */
.bento-footer {
    gap: 35px !important; /* Увеличиваем безопасное расстояние между элементами */
}

.bento-all-reviews-btn {
    margin-top: 15px; /* Принудительно сдвигаем саму кнопку чуть ниже */
}

/* Для мобильных экранов делаем отступ еще больше, чтобы кнопка точно ушла вниз */
@media (max-width: 992px) {
    .bento-all-reviews-btn {
        margin-top: 25px; 
    }
}
/* =========================================================
   ТАРИФЫ (ГЛАВНЫЕ СТИЛИ)
========================================================= */

/* Базовый отступ (работает на главной странице) */
.pricing-section {
    padding: 100px 0; 
    background-color: #f4f7fb;
    position: relative;
    overflow: hidden;
}

/* Увеличенный отступ ТОЛЬКО для отдельной страницы (защита от меню) */
.pricing-page-wrapper .pricing-section {
    padding-top: 220px !important;
    min-height: 100vh;
}

/* Заголовок */
.pricing-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}
.pricing-section .section-header h2 { margin-bottom: 15px; }

/* Сетка тарифов */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* --- КАРТОЧКА --- */
.pricing-card {
    background: #ffffff;
    padding: 50px 35px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    /* Срезанный правый верхний угол */
    clip-path: polygon(0 0, calc(100% - 35px) 0, 100% 35px, 100% 100%, 0 100%);
    min-height: 500px;
}

/* Огромная цифра на фоне */
.pricing-bg-number {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 9rem;
    font-weight: 900;
    color: rgba(0, 129, 255, 0.03); 
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.5s ease;
}

/* Верхняя часть */
.pricing-top { position: relative; z-index: 1; margin-bottom: 30px; }
.pricing-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 129, 255, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.pricing-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #191c20;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.pricing-features { font-size: 0.85rem; font-weight: 700; color: #718096; }

/* Цена */
.pricing-price {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
    border-top: 1px solid #edf2f7; 
    padding-top: 30px;
}
.price-val {
    font-size: 2.8rem;
    font-weight: 800;
    color: #191c20;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -1px;
}
.price-period { font-size: 0.95rem; color: #a0aec0; font-weight: 500; }

/* Описание */
.pricing-desc {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 40px;
    flex-grow: 1;
}

/* Кнопка */
.pricing-action-btn {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    padding: 18px;
    text-align: center;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

/* Интерактив (Hover) */
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 129, 255, 0.1);
    border-color: var(--primary);
}
.pricing-card:hover .pricing-bg-number {
    transform: scale(1.1) rotate(-5deg);
    color: rgba(0, 129, 255, 0.06);
}
.pricing-card:hover .pricing-action-btn {
    background: var(--primary);
    color: #ffffff;
}

/* --- ПРЕМИУМ КАРТОЧКА (ОСНОВА) --- */
.pricing-premium {
    background: #191c20;
    border-color: #191c20;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.pricing-premium .pricing-bg-number { color: rgba(255, 255, 255, 0.03); }
.pricing-premium .pricing-title,
.pricing-premium .price-val { color: #ffffff; }
.pricing-premium .pricing-features,
.pricing-premium .price-period,
.pricing-premium .pricing-desc { color: rgba(255, 255, 255, 0.7); }
.pricing-premium .pricing-price { border-color: rgba(255, 255, 255, 0.1); }
.pricing-premium .pricing-tag { background: rgba(255, 204, 0, 0.1); color: #ffcc00; }
.pricing-premium .pricing-action-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}
.pricing-premium:hover .pricing-action-btn {
    background: #ffffff;
    color: #191c20;
    border-color: #ffffff;
}

/* Адаптив */
@media (max-width: 1200px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-page-wrapper .pricing-section { padding-top: 150px !important; }
}
/* Отступ от хедера ТОЛЬКО для отдельной страницы тарифов */
.pricing-page-wrapper {
    padding-top: 0px; /* Меняйте эту цифру, чтобы настроить идеальный отступ */
    background-color: #f4f7fb; /* Чтобы под меню не было белой дыры */
    min-height: 100vh;
}
/* Жестко уменьшаем внутренний отступ секции ТОЛЬКО на странице тарифов рабочий отступ для тарифов */
.pricing-page-wrapper .pricing-section {
    padding-top: 200px !important; /* Попробуйте 40px или даже 20px */
}

/* Если у самой обертки остался padding-top, его можно обнулить */
.pricing-page-wrapper {
    padding-top: 0 !important;
}
/* =========================================================
   АРХИТЕКТУРНЫЙ КОНТУР (ВЕРХ И НИЗ)
========================================================= */

.pricing-home-premium {
    background: #fcfdfe; 
    position: relative;
    padding: 0;
    /* Мягкие внутренние тени сверху и снизу */
    box-shadow: 
        inset 0 50px 50px -50px rgba(0, 129, 255, 0.08), 
        inset 0 -50px 50px -50px rgba(0, 129, 255, 0.08);
}

/* Символы-маркеры (Верхний и Нижний) */
.pricing-home-premium::before,
.pricing-border-wrap::after { /* Используем обертку для нижнего символа */
    content: '✦'; 
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #0081ff;
    font-size: 18px;
    background: #fcfdfe; 
    padding: 0 25px;
    z-index: 5;
    opacity: 0.6;
}

/* Верхний маркер */
.pricing-home-premium::before {
    top: -12px;
}

/* Нижний маркер */
.pricing-border-wrap::after {
    bottom: -12px;
}

/* Разделительные нити (Верхняя и Нижняя) */
.pricing-home-premium::after,
.pricing-border-wrap::before {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 129, 255, 0.15) 50%, 
        transparent 100%);
    z-index: 1;
}

/* Позиция верхней нити */
.pricing-home-premium::after {
    top: 0;
}

/* Позиция нижней нити */
.pricing-border-wrap::before {
    bottom: 0;
    width: 60%; /* Нижнюю можно сделать чуть короче для асимметрии */
    left: 20%;
}

.pricing-section {
    padding: 110px 0 !important;
}
/* =========================================================
   ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ВЕРХНЕЙ ПАНЕЛИ И ХЕДЕРА
========================================================= */

/* 1. Решаем проблему с перекрытием (отключаем жесткую высоту хедера) */
#header {
    height: auto !important; /* Позволяет хедеру растянуться и вместить обе панели */
    display: flex;
    flex-direction: column;
}

.nav-wrapper {
    min-height: 80px; /* Заменили жесткую height на min-height */
    gap: 20px; /* Добавляем отступ, чтобы кнопка и меню не слипались */
}

/* 2. Делаем топ-бар выше и меняем цвет текста */
.top-bar-premium {
    background: #111111; 
    color: #ffffff; /* Сделали базовый текст белым */
    font-size: 13px;
    font-weight: 500;
    padding: 18px 0; /* Увеличили отступы (было 12px) — топ-бар стал выше */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contacts {
    display: flex;
    gap: 35px; 
}

.top-link {
    color: #ffffff !important; /* Жестко задаем белый цвет для контактов */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px; 
    transition: all 0.3s ease; 
}

.top-link svg {
    color: #0081ff; 
    transition: transform 0.3s ease; 
}

.top-link:hover {
    color: #0081ff !important; 
}

.top-link:hover svg {
    transform: scale(1.15); 
}

/* 3. Адрес тоже делаем белым */
.top-info {
    color: #ffffff !important; /* Принудительно белый цвет, чтобы не сливался */
    letter-spacing: 0.5px;
}

/* Адаптивность для телефонов */
@media (max-width: 991px) {
    .top-bar-premium {
        display: none;
    }
}
/* --- ГЛОБАЛЬНЫЙ РАЗРЫВ КОНТЕЙНЕРА ДЛЯ ПОДВАЛА --- */
.mega-footer-wrapper {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: #0d0f12; /* Цвет фона подвала */
}

/* Карта */
.footer-map-section {
    width: 100%;
    height: 450px;
    filter: grayscale(100%) invert(90%) contrast(90%); /* Делаем карту стильной и темной */
}

/* Темная часть подвала */
.footer-dark-content {
    padding: 80px 0 40px 0;
    text-align: left !important;
}

/* Внутренний фиксатор контента по центру */
.footer-container-fixed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Сетка */
.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-column { text-align: left !important; }

/* Лого и тексты */
.footer-logo-strict {
    font-size: 24px; font-weight: 800; color: #fff; text-decoration: none;
    display: block; margin-bottom: 20px; letter-spacing: 1px;
}
.footer-logo-strict span { color: #0081ff; }

/* Девиз: теперь кристально белый */
.footer-motto { 
    font-size: 13px; 
    color: #ffffff; 
    line-height: 1.6; 
    margin-bottom: 25px; 
}

.footer-main-contacts { display: flex; flex-direction: column; gap: 8px; }
.f-phone { font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; }
.f-email { font-size: 14px; color: #0081ff; text-decoration: none; }

/* Заголовки колонок: теперь фирменный голубой/синий без прозрачности */
.footer-h {
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    color: #0081ff; 
    opacity: 1; 
    margin-bottom: 25px;
}

/* Списки */
.footer-l { list-style: none; padding: 0; margin: 0; }
.footer-l li { margin-bottom: 12px; }
.footer-l a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-l a:hover { color: #fff; padding-left: 5px; }

/* Офис */
.f-addr { color: #fff; font-size: 14px; margin-bottom: 10px; line-height: 1.6; }
.f-time { font-size: 12px; color: rgba(255,255,255,0.3); }

/* Нижняя черта — ФИКС КРИВОГО ОТОБРАЖЕНИЯ */
.footer-bottom-info {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between; /* Раскидываем копирайт и ссылки по краям */
    align-items: flex-start;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.f-copy-main {
    margin-bottom: 5px;
    color: rgba(255,255,255,0.5); /* Чуть ярче основной текст */
}

.f-copy-legal {
    font-size: 11px;
    opacity: 0.8;
}

/* Обертка для ссылок */
.f-legal-links-wrap {
    display: flex;
    gap: 30px; /* Четкий отступ между двумя ссылками */
    white-space: nowrap; /* Запрещаем перенос внутри ссылок, чтобы не ломались */
}

.f-legal-links-wrap a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: 0.3s;
    margin-left: 0 !important; /* Убираем старый отступ */
}

.f-legal-links-wrap a:hover {
    color: #0081ff; /* Подсвечиваем синим при наведении */
}

/* Адаптивность для мобилок — чтобы на узких экранах ссылки не улетали */
@media (max-width: 768px) {
    .footer-bottom-info {
        flex-direction: column; /* На мобильном ставим друг под друга */
        gap: 20px;
    }
    .f-legal-links-wrap {
        flex-direction: column; /* Ссылки тоже в столбик на маленьких экранах */
        gap: 10px;
    }
}
/* =========================================================
   ГЕРОЙ-БЛОК КОНТАКТОВ (СВЕТЛЫЙ И ПО ЦЕНТРУ)
========================================================= */
.contacts-page-hero-light {
    background: #ffffff; /* Кристально белый фон */
    padding: 190px 0 80px 0; /* Увеличенный отступ сверху от шапки */
    text-align: center !important; 
}

/* Контейнер для центрирования содержимого */
.contacts-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Перебиваем стили текста-описания внутри .section-header для этой страницы, если нужно */
.contacts-page-hero-light .section-header p {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Адаптивность под мобильные устройства */
@media (max-width: 768px) {
    .contacts-page-hero-light {
        padding: 140px 0 50px 0; 
    }
    .contacts-page-hero-light .section-header p br { 
        display: none; /* Отключаем перенос строк на телефонах */
    } 
}
/* =========================================================
   ИЗОЛИРОВАННАЯ ФОРМА КОНСУЛЬТАЦИИ
========================================================= */
/* Заголовок внутри формы */
.form-mini-title {
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 25px;
    text-align: center;
}

/* Сетка полей */
.strict-form-grid-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* Поля ввода */
.strict-form-group input {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    padding: 16px 20px;
    font-size: 15px;
    color: #111111;
    font-family: inherit;
    transition: 0.3s;
    outline: none;
}

/* Эффект при клике */
.strict-form-group input:focus {
    border-color: #0081ff; 
    background: #ffffff;
}

/* Кнопка и уведомления */
.strict-form-submit {
    text-align: center;
}

span.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #ff3333;
    margin-top: 5px;
    text-align: left;
    display: block;
}

.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px !important;
    font-size: 14px;
    text-align: center;
}

/* Мобильная версия (поля друг под другом) */
@media (max-width: 768px) {
    .strict-form-grid-single {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
/* =========================================================
   МОДАЛЬНОЕ ОКНО И ФОРМА КОНСУЛЬТАЦИИ
========================================================= */
/* 1. Фон и окно */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(13, 15, 18, 0.85);
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}
.custom-modal-box {
    background: #ffffff;
    padding: 50px 40px;
    width: 100%; max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.custom-modal-overlay.modal-active {
    opacity: 1; visibility: visible;
}
.custom-modal-overlay.modal-active .custom-modal-box {
    transform: translateY(0);
}


/* 2. Кнопка-крестик */
.modal-close-btn {
    position: absolute; top: 15px; right: 20px;
    background: transparent; border: none;
    font-size: 28px; color: #888888;
    cursor: pointer; transition: 0.3s; line-height: 1;
}
.modal-close-btn:hover { color: #ff3333; }


/* 3. Внутренности формы (ФИО + Телефон) */
.form-mini-title {
    font-size: 24px; font-weight: 700; color: #111111;
    margin-bottom: 25px; text-align: center; margin-top: 0;
}
.strict-form-grid-single {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; margin-bottom: 25px;
}
.strict-form-group input {
    width: 100%; background: #f8f9fa;
    border: 1px solid #e1e4e8; padding: 16px 20px;
    font-size: 15px; color: #111111;
    font-family: inherit; transition: 0.3s; outline: none;
}
.strict-form-group input:focus {
    border-color: #0081ff; background: #ffffff;
}

/* Стили кнопки отправки (общие для всех форм) */
.wpcf7-submit {
    width: 100%;
    padding: 16px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 4px;
    background-color: #0081ff; /* Синий фон */
    color: #ffffff !important;  /* БЕЛЫЙ ТЕКСТ, чтобы не сливался */
}

.wpcf7-submit:hover {
    background-color: #0066cc; /* Темно-синий при наведении */
    color: #ffffff !important;  /* Сохраняем белый текст при наведении */
    box-shadow: 0 4px 12px rgba(0, 129, 255, 0.3);
}

.strict-form-submit { text-align: center; }


/* 4. Ошибки плагина CF7 */
span.wpcf7-not-valid-tip {
    font-size: 12px; color: #ff3333;
    margin-top: 5px; text-align: left; display: block;
}
.wpcf7-response-output {
    margin: 20px 0 0 0 !important; padding: 12px !important;
    font-size: 14px; text-align: center;
}


/* 5. Адаптивность для телефонов */
@media (max-width: 768px) {
    .strict-form-grid-single {
        grid-template-columns: 1fr; gap: 15px;
    }
}

/* =========================================================
   ДОПОЛНЕНИЕ ДЛЯ ВТОРОЙ ФОРМЫ (Решение задач)
========================================================= */


/* Чтобы стили input применялись и к select, и к textarea во второй форме */
.custom-modal-box select, 
.custom-modal-box textarea {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    padding: 16px 20px;
    font-size: 15px;
    color: #111111;
    font-family: inherit;
    transition: 0.3s;
    outline: none;
    margin-bottom: 15px; /* отступ между полями */
    box-sizing: border-box; /* чтобы паддинги не ломали ширину */
}


/* Эффект фокуса для новых элементов */
.custom-modal-box select:focus, 
.custom-modal-box textarea:focus {
    border-color: #0081ff;
    background: #ffffff;
}


/* Если в форме есть подписи (label) */
.custom-modal-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
/* =========================================================
   ВИЗУАЛЬНЫЕ КАРТОЧКИ ТАРИФОВ ВНУТРИ ФОРМЫ
========================================================= */
.tariff-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 колонки */
    gap: 12px;
    margin-bottom: 20px;
}

.form-tariff-card {
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background: #f8f9fa;
    text-align: center;
}

/* Эффект при наведении */
.form-tariff-card:hover {
    transform: translateY(-4px);
    border-color: #b3d7ff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

/* Эффект при клике (выбранная карточка) */
.form-tariff-card.active-card {
    border-color: #0081ff;
    background: #e6f2ff; /* легкий синий фон */
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 129, 255, 0.15);
}

.ft-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: #111111;
}

.ft-price {
    font-size: 12px;
    color: #666666;
}
/* =========================================================
   ИНТЕГРАЦИЯ ПРАЙС-ЛИСТА В МОДАЛЬНОЕ ОКНО
========================================================= */

/* =========================================================
   РАСШИРЕННОЕ ОКНО СОТРУДНИЧЕСТВА С ПРОКРУТКОЙ
========================================================= */

#cooperate-modal .custom-modal-box {
    max-width: 1000px; /* Делаем окно еще чуть шире */
    width: 95%;
    max-height: 90vh; /* Максимальная высота - 90% от экрана */
    overflow-y: auto; /* Включаем внутреннюю прокрутку, если контент не влезает */
    padding: 50px 40px; 
}

/* Кастомный, премиальный скроллбар для этого окна (для Chrome, Safari, Edge) */
#cooperate-modal .custom-modal-box::-webkit-scrollbar {
    width: 6px;
}
#cooperate-modal .custom-modal-box::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}
#cooperate-modal .custom-modal-box::-webkit-scrollbar-thumb {
    background: #d1d5db; 
    border-radius: 8px;
}
#cooperate-modal .custom-modal-box::-webkit-scrollbar-thumb:hover {
    background: #0081ff; /* Фирменный светло-синий при наведении */
}

/* Адаптивность для телефонов и планшетов остается прежней */
@media (max-width: 992px) {
    #cooperate-modal .custom-modal-box { max-width: 700px; }
}
@media (max-width: 576px) {
    #cooperate-modal .custom-modal-box { padding: 30px 20px; }
}

/* Сетка для карточек внутри формы */
.form-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
}

/* Делаем карточки внутри формы кликабельными */
.form-pricing-grid .pricing-card {
    cursor: pointer;
    transition: all 0.3s ease-in-out !important;
}

/* Эффект ПОДЪЕМА и ПОДСВЕТКИ выбранной карточки */
.form-pricing-grid .pricing-card.selected-card {
    border-color: #0081ff !important;
    transform: translateY(-10px) !important;
    background-color: #f4f9ff !important; /* Легкий благородный синий фон */
    box-shadow: 0 15px 35px rgba(0, 129, 255, 0.2) !important;
}

/* Изменяем вид кнопки внутри выбранной карточки */
.form-pricing-grid .pricing-card.selected-card .pricing-action-btn {
    background: #0081ff !important;
    color: #ffffff !important;
}

/* Адаптивность сетки внутри модального окна */
@media (max-width: 992px) {
    .form-pricing-grid { grid-template-columns: 1fr 1fr !important; }
    #cooperate-modal .custom-modal-box { max-width: 600px; }
}
@media (max-width: 576px) {
    .form-pricing-grid { grid-template-columns: 1fr !important; }
    #cooperate-modal .custom-modal-box { max-width: 100%; padding: 30px 20px; }
}
/* =========================================================
   ПРЕМИАЛЬНАЯ ЗОЛОТАЯ КАРТОЧКА «ОСНОВА» (HOVER & ACTIVE)
========================================================= */

/* Основной фон и тень при наведении и клике */
.form-pricing-grid .pricing-card.pricing-premium:hover,
.form-pricing-grid .pricing-card.pricing-premium.selected-card {
    /* Благородный золотой градиент */
    background: linear-gradient(135deg, #F3CE6E 0%, #D4AF37 100%) !important; 
    border-color: #D4AF37 !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.35) !important;
}

/* Меняем цвет всех текстовых элементов внутри на глубокий черный */
.form-pricing-grid .pricing-card.pricing-premium:hover .pricing-title,
.form-pricing-grid .pricing-card.pricing-premium:hover .pricing-features,
.form-pricing-grid .pricing-card.pricing-premium:hover .price-val,
.form-pricing-grid .pricing-card.pricing-premium:hover .price-period,
.form-pricing-grid .pricing-card.pricing-premium:hover .pricing-desc,
.form-pricing-grid .pricing-card.pricing-premium.selected-card .pricing-title,
.form-pricing-grid .pricing-card.pricing-premium.selected-card .pricing-features,
.form-pricing-grid .pricing-card.pricing-premium.selected-card .price-val,
.form-pricing-grid .pricing-card.pricing-premium.selected-card .price-period,
.form-pricing-grid .pricing-card.pricing-premium.selected-card .pricing-desc {
    color: #111111 !important;
}

/* Плашка Enterprise: делаем ее черной с золотым текстом */
.form-pricing-grid .pricing-card.pricing-premium:hover .pricing-tag,
.form-pricing-grid .pricing-card.pricing-premium.selected-card .pricing-tag {
    background: #111111 !important;
    color: #D4AF37 !important;
}

/* Огромная фоновая цифра 04: делаем ее полупрозрачной черной */
.form-pricing-grid .pricing-card.pricing-premium:hover .pricing-bg-number,
.form-pricing-grid .pricing-card.pricing-premium.selected-card .pricing-bg-number {
    color: rgba(0, 0, 0, 0.08) !important;
}

/* Кнопка "Выбрать": черная с золотым текстом */
.form-pricing-grid .pricing-card.pricing-premium:hover .pricing-action-btn,
.form-pricing-grid .pricing-card.pricing-premium.selected-card .pricing-action-btn {
    background: #111111 !important;
    color: #D4AF37 !important;
    border: none !important;
}
/* 1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ ДЛЯ АДАПТИВНОСТИ */
:root {
    /* Fluid Typography: clamp(min, preferred, max) */
    --fs-h1: clamp(2.5rem, 8vw, 4.5rem); 
    --fs-h2: clamp(1.8rem, 5vw, 3.2rem);
    --fs-h3: clamp(1.3rem, 3vw, 1.6rem);
    --fs-p: clamp(0.95rem, 2vw, 1.15rem);
    
    /* Fluid Padding */
    --section-padding: clamp(60px, 10vh, 120px);
    --container-padding: clamp(20px, 5vw, 40px);
}

/* 2. ОБНОВЛЕНИЕ БАЗОВЫХ ЭЛЕМЕНТОВ */
.container { 
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 0 var(--container-padding); /* Теперь отступы гибкие */
}

h1 { 
    font-size: var(--fs-h1); 
    line-height: 1.1;
}

h2 { 
    font-size: var(--fs-h2); 
}

p { 
    font-size: var(--fs-p); 
}

/* 3. УЛУЧШЕНИЕ СЕКЦИЙ (Общий отступ) */
.services, .team, .bento-reviews { 
    padding: var(--section-padding) 0; 
}

/* 4. ИСПРАВЛЕНИЕ ГРИДОВ (Сетки) */

/* Hero Section */
@media (max-width: 992px) {
    .hero { padding-top: 120px; } /* Больше места для фиксированного хедера */
    .hero-grid { 
        grid-template-columns: 1fr; 
        gap: 60px; 
        text-align: center; 
    }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
}

/* Services Grid - Плавный переход */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* Pricing Grid - Оптимизация */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

/* Bento Grid - Самое важное исправление */
@media (max-width: 992px) {
    .bento-grid { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto;
    }
    .bento-slider-box { 
        grid-column: 1 / -1; 
        clip-path: none; /* Убираем сложный срез на мобилках, чтобы не резало текст */
        padding: 30px;
    }
    .bento-stat-box { 
        clip-path: none; 
        padding: 30px;
    }
    .bento-quote-title { font-size: var(--fs-h3); }
}

/* Footer - Адаптивность колонок */
@media (max-width: 992px) {
    .footer-main-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px; 
    }
}
@media (max-width: 600px) {
    .footer-main-grid { grid-template-columns: 1fr; }
    .footer-bottom-info { 
        flex-direction: column; 
        text-align: center; 
        gap: 20px; 
    }
    .f-legal-links-wrap { justify-content: center; }
}

/* Модальные окна - предотвращение вылета контента */
@media (max-width: 576px) {
    .custom-modal-box { 
        padding: 30px 20px; 
        width: 90%; 
        margin: 0 auto;
    }
    .form-pricing-grid { grid-template-columns: 1fr !important; }
}
/* --- УЛУЧШЕННАЯ АДАПТИВНОСТЬ КОМПЕТЕНЦИЙ --- */

/* 1. Плавная сетка: 3 -> 2 -> 1 колонки */
@media (max-width: 1200px) {
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
    }
}

@media (max-width: 768px) {
    .services-grid { 
        grid-template-columns: 1fr; 
    }
}

/* 2. Оптимизация карточек для средних и малых экранов */
@media (max-width: 992px) {
    .top-icon-card {
        padding: 40px 30px; /* Уменьшаем внутренние отступы, чтобы текст не сжимался */
        min-height: auto;     /* Убираем жесткую высоту, пусть карточка растет по контенту */
    }

    .top-icon-card h3 {
        font-size: 1.4rem;   /* Немного уменьшаем шрифт заголовка */
        padding-right: 0;     /* Убираем отступ справа, так как иконка сместится */
        text-align: center;
        margin-bottom: 15px;
    }

    .top-icon-card p {
        font-size: 1rem;
        text-align: center;
    }

    /* Смещаем иконку, чтобы она не перекрывала текст на мобилках */
    .corner-icon {
        top: auto;
        bottom: 20px; /* Переносим иконку вниз или оставляем в углу, но уменьшаем */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
/* --- АДАПТАЦИЯ ГЛАВНЫХ ЗАГОЛОВКОВ В СИНИХ РАМКАХ (framed-title) --- */

@media (max-width: 992px) {
    /* Уменьшаем размер текста и отступы рамки для планшетов */
    .framed-title {
        padding: 15px 25px; /* Уменьшаем поля, чтобы тексту было просторнее */
    }

    .framed-title h2 {
        font-size: 2.2rem;   /* Снижаем с 3rem до 2.2rem */
        line-height: 1.2;
        letter-spacing: 1px; /* Немного уменьшаем разрядку букв */
    }
}

@media (max-width: 480px) {
    /* Максимальная оптимизация для маленьких смартфонов */
    .framed-title {
        padding: 10px 15px;  /* Минимум отступов, чтобы рамка не распирала экран */
        display: block;      /* На очень узких экранах лучше сделать блоком */
        text-align: center;
    }

    .framed-title h2 {
        font-size: 1.6rem;   /* Оптимальный размер, чтобы "Финансовая репутация" не разрывалась */
        letter-spacing: 0.5px;
    }

    /* Уменьшаем сами синие уголки, чтобы они не выглядели громоздко */
    .framed-title::before, 
    .framed-title::after {
        width: 20px !important;  /* Уголки становятся аккуратнее (было 40px) */
        height: 20px !important;
    }
    
    /* Специально для "Финансовой репутации", чтобы span не переносился криво */
    .framed-title h2 span {
        display: inline; 
    }
}
/* Стиль для текста ошибки под чекбоксом */
.policy-error-text {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 5px;
    display: none; /* По умолчанию скрыто */
    font-weight: 500;
    animation: shake 0.3s ease-in-out;
}

/* Анимация легкого трясения при ошибке */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Подсветка самого чекбокса при ошибке */
.input-error-border {
    outline: 2px solid #ff4d4d !important;
    border-radius: 3px;
}
/* CSS для куки */
/* Контейнер плашки */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 1100px;
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
    backdrop-filter: blur(10px);
}

.cookie-consent.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ссылка теперь синяя */
.cookie-link {
    color: #0383FE; 
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.cookie-checkbox-container input {
    display: none;
}

/* Рамка квадратика теперь синяя */
.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #0383FE;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: background 0.3s;
}

/* Заполнение квадратика при клике — синий */
.cookie-checkbox-container input:checked + .checkmark {
    background: #0383FE;
}

.cookie-checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff; /* Галочка белая */
    font-size: 12px;
    font-weight: bold;
}

/* Кнопка OK теперь синяя */
.cookie-btn {
    background: #0383FE;
    border: none;
    color: #fff; /* Текст белый */
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s, background 0.3s;
}

.cookie-btn:hover {
    background: #0269c7; /* Чуть темнее при наведении */
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-actions { justify-content: center; }
    .cookie-text { justify-content: center; }
}

/* =========================================================
   ШАГ 2: СТИЛИ НОВЫХ БЛОКОВ (добавлены поверх эталонной темы).
   Правила выше не изменены. Приёмы те же, что у темы:
   срез угла clip-path, плюс-знак как графический маркер,
   синий var(--primary) как единственный акцент.
   Анимации появления не добавлены: двигается только то,
   что открыл/нажал сам пользователь.
========================================================= */

/* --- Доступность: ссылка «перейти к контенту» --- */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10000;
    padding: 10px 18px;
    background: var(--dark);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s ease;
}
.skip-link:focus { top: 16px; }

/* --- Шапка: группа кнопок справа --- */
.nav-actions { display: flex; align-items: center; gap: 20px; }

/* --- Hero: цифры и подписи (перекрывают .stat span) --- */
.stat .stat-num {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    text-transform: none;
}
.stat .stat-label {
    display: block;
    margin-top: 8px;
    max-width: 190px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-gray);
    text-transform: none;
    letter-spacing: 0;
}

/* --- Секция «Что входит»: мозаика залитых бланков 3x3 --- */
/* Ритм: тёмный / синий / светлый бланк, девятый — во всю ширину */
.detail-section { padding: 120px 0; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.detail-item {
    position: relative;
    padding: 0 28px 4px;
    background: var(--white);
    border: 1px solid rgba(25, 28, 32, 0.14);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.detail-item:nth-child(3n+1) { background: var(--dark); border-color: transparent; }
.detail-item:nth-child(3n+2) { background: var(--primary); border-color: transparent; }
.detail-item:nth-child(3n+3) { background: #f1f7ff; border-color: rgba(0, 129, 255, 0.35); }
.detail-item:nth-child(3n+1) .detail-name,
.detail-item:nth-child(3n+1) > h3,
.detail-item:nth-child(3n+2) .detail-name,
.detail-item:nth-child(3n+2) > h3 { color: var(--white); }
.detail-item:nth-child(3n+1) .detail-body p,
.detail-item:nth-child(3n+1) > p { color: rgba(255, 255, 255, 0.72); }
.detail-item:nth-child(3n+2) .detail-body p,
.detail-item:nth-child(3n+2) > p { color: rgba(255, 255, 255, 0.88); }
.detail-item:nth-child(3n+1) .detail-toggle-icon::before,
.detail-item:nth-child(3n+1) .detail-toggle-icon::after,
.detail-item:nth-child(3n+2) .detail-toggle-icon::before,
.detail-item:nth-child(3n+2) .detail-toggle-icon::after { background: var(--white); }
.detail-item.detail-wide { grid-column: 1 / -1; }
.detail-title { margin: 0; }
.detail-item h3 { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--dark); }
.detail-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 26px 0 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.detail-name { font-size: 1.125rem; font-weight: 700; color: var(--dark); transition: color 0.3s ease; }
.detail-toggle-icon {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}
.detail-toggle-icon::before,
.detail-toggle-icon::after {
    content: '';
    position: absolute;
    background: var(--primary);
}
.detail-toggle-icon::before { left: 0; top: 11px; width: 24px; height: 2px; }
.detail-toggle-icon::after { left: 11px; top: 0; width: 2px; height: 24px; }
.detail-item.open .detail-toggle-icon { transform: rotate(45deg); }
.detail-item.open .detail-name { color: var(--primary); }
.detail-item:nth-child(3n+1).open .detail-name,
.detail-item:nth-child(3n+2).open .detail-name { color: var(--white); }
.detail-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.detail-body p { margin: 0 0 24px; font-size: 0.9375rem; line-height: 1.65; color: var(--text-gray); }
.detail-item > h3 { padding: 26px 0 0; }
.detail-item > p { padding: 0 0 24px; font-size: 0.9375rem; line-height: 1.65; color: var(--text-gray); }
.detail-note {
    margin-top: 44px;
    padding: 28px 34px;
    background: var(--dark);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.detail-note p { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: rgba(255, 255, 255, 0.78); }
.detail-note strong { color: var(--white); }

/* --- Ссылки на посадочные страницы --- */
.services-hub-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* --- Секция «Кому подходят»: лестница сужающихся панелей --- */
/* Каждая следующая панель уже и смещена вправо — визуальная лестница усложнения бизнеса */
.clients-section { padding: 120px 0; background: #f4f7fb; }
.client-grid { display: grid; gap: 14px; }
.client-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: baseline;
    padding: 34px 34px 30px;
    background: var(--white);
    border: 1px solid rgba(25, 28, 32, 0.14);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.client-card:nth-child(2) { width: calc(100% - 56px); margin-left: 56px; }
.client-card:nth-child(3) { width: calc(100% - 112px); margin-left: 112px; }
.client-card:nth-child(4) { width: calc(100% - 168px); margin-left: 168px; }
.client-card:nth-child(5) { width: calc(100% - 224px); margin-left: 224px; }
.client-card:hover { background: var(--primary); border-color: transparent; }
.client-card:hover .client-main h3,
.client-card:hover .client-tariff { color: var(--white); }
.client-card:hover .client-main p { color: rgba(255, 255, 255, 0.85); }
.client-main h3 { margin: 0 0 10px; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.3px; color: var(--dark); transition: color 0.3s ease; }
.client-main p { margin: 0; max-width: 58ch; font-size: 0.9375rem; line-height: 1.6; color: var(--text-gray); transition: color 0.3s ease; }
.client-tariff {
    padding-top: 14px;
    border-top: 1px solid rgba(25, 28, 32, 0.22);
    font-size: 1.125rem;
    font-weight: 800;
    text-align: right;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

/* --- Секция «Как мы начинаем»: веер наложенных листов --- */
/* Листы лежат веером с нахлёстом и тенью; контурные номера остаются водяным знаком */
.process-section { padding: 120px 0; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-step {
    position: relative;
    padding: 92px 36px 40px;
    background: var(--white);
    border: 1px solid rgba(25, 28, 32, 0.16);
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.process-step:nth-child(2) { margin-left: -30px; z-index: 2; box-shadow: -22px 0 50px rgba(25, 28, 32, 0.10); }
.process-step:nth-child(3) { margin-left: -30px; z-index: 3; box-shadow: -22px 0 50px rgba(25, 28, 32, 0.14); }
.process-step::before {
    content: '01';
    position: absolute;
    top: 18px;
    left: 30px;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 129, 255, 0.45);
    transition: -webkit-text-stroke-color 0.3s ease;
}
.process-step:nth-child(2)::before { content: '02'; }
.process-step:nth-child(3)::before { content: '03'; }
.process-step:hover::before { -webkit-text-stroke-color: var(--primary); }
.process-num { display: none; }
.process-step h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.3px; color: var(--dark); }
.process-step p { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--text-gray); }

/* --- Секция ГЕО: тёмная карта-плита --- */
/* Вся секция — залитая плита с координатной сеткой, перекрестием и штемпелем */
.geo-section { padding: 120px 0; }
.geo-inner {
    position: relative;
    padding: 64px 60px 56px;
    background: var(--dark);
    clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
    overflow: hidden;
}
.geo-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 22%, var(--primary) 0 4px, transparent 5px),
        linear-gradient(rgba(0, 129, 255, 0.5), rgba(0, 129, 255, 0.5)) calc(82% - 0.5px) calc(22% - 34px) / 1px 68px no-repeat,
        linear-gradient(rgba(0, 129, 255, 0.5), rgba(0, 129, 255, 0.5)) calc(82% - 34px) calc(22% - 0.5px) / 68px 1px no-repeat,
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 30px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 30px);
}
.geo-inner > * { position: relative; }
.geo-inner .framed-title h2 { color: var(--white); }
.geo-inner .framed-title::before,
.geo-inner .framed-title::after { border-color: var(--primary); }
.geo-inner > p { margin: 18px 0 0; font-size: 1rem; color: rgba(255, 255, 255, 0.7); }
.geo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 52px;
    margin-top: 40px;
    align-items: start;
}
.geo-text p { margin: 0 0 18px; font-size: 0.9375rem; line-height: 1.7; color: rgba(255, 255, 255, 0.75); }
.geo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 34px 34px 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.geo-card > * { position: relative; }
.geo-card::after {
    content: '55.7506\A 52.3871';
    white-space: pre-line;
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border: 1px dashed rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
}
.geo-phone { color: var(--white); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.3px; text-decoration: none; }
.geo-email { color: var(--primary); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.geo-addr { margin-top: 8px; font-size: 0.8125rem; line-height: 1.6; color: rgba(255, 255, 255, 0.65); }
.geo-urgent {
    position: relative;
    margin-top: 44px;
    padding: 22px 28px 22px 68px;
    background: rgba(0, 129, 255, 0.16);
    border: 1px solid rgba(0, 129, 255, 0.45);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--white);
}
.geo-urgent::before {
    content: '+';
    position: absolute;
    left: 26px;
    top: 18px;
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--primary);
}

/* --- Секция «Кто ведёт ваш учёт»: печать и подпись --- */
/* Монограмма-печать с внутренним ободком, карточка-документ со срезанным углом */
.expert-section { padding: 120px 0; }
.expert-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 300px;
    gap: 48px;
    padding: 60px 52px;
    background: var(--white);
    border: 1px solid rgba(25, 28, 32, 0.12);
    border-left: 4px solid var(--primary);
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}
.expert-mark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--white);
    background: var(--primary);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.expert-mark::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.expert-eyebrow { margin: 0 0 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.05em; color: var(--primary); }
.expert-card h2 { margin: 0 0 10px; font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; color: var(--dark); }
.expert-roles {
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(25, 28, 32, 0.14);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-gray);
}
.expert-text { margin: 0 0 24px; max-width: 60ch; font-size: 1rem; line-height: 1.7; color: var(--text-gray); }
.expert-creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin: 0; padding: 0; list-style: none; }
.expert-creds li { position: relative; padding-left: 24px; font-size: 0.875rem; line-height: 1.55; color: var(--text-main); }
.expert-creds li::before { content: '+'; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--primary); }
.expert-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 28px;
    background: var(--dark);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.expert-phone { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.3px; color: var(--white); text-decoration: none; }
.expert-email { font-size: 0.9375rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.expert-link { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.expert-link:hover { color: var(--primary); }

/* --- Секция «Почему выбирают»: строки ведомости с печатью-плюсом --- */
.adv-list { display: grid; gap: 0; margin-top: 26px; }
.adv-item { position: relative; padding: 22px 0 22px 66px; border-bottom: 1px solid rgba(25, 28, 32, 0.12); }
.adv-item:last-child { border-bottom: none; padding-bottom: 0; }
.adv-item::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 18px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.adv-item h3 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.2px; color: inherit; }
.adv-item p { margin: 0; max-width: 58ch; font-size: 0.9375rem; line-height: 1.65; opacity: 0.85; }
.bento-stat-num { display: block; font-size: 3.5rem; font-weight: 800; letter-spacing: -1px; line-height: 1; }

/* --- Секция FAQ: двухколонные плитки-бланки --- */
.faq-section { padding: 120px 0; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.faq-item {
    padding: 0 26px 4px;
    background: var(--white);
    border: 1px solid rgba(25, 28, 32, 0.14);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.faq-item:nth-child(odd) { background: #f1f7ff; border-color: rgba(0, 129, 255, 0.35); }
.faq-title { margin: 0; }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 24px 0 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.faq-question h3,
.faq-name { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--dark); transition: color 0.3s ease; }
.faq-toggle {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}
.faq-toggle::before,
.faq-toggle::after { content: ''; position: absolute; background: var(--primary); }
.faq-toggle::before { left: 0; top: 10px; width: 22px; height: 2px; }
.faq-toggle::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-item.open .faq-name,
.faq-item.open .faq-question h3 { color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { margin: 0 0 22px; font-size: 0.9375rem; line-height: 1.7; color: var(--text-gray); }

/* --- Секция CTA: плита с муаром и гигантским плюсом --- */
.cta-section { padding: 120px 0; }
.cta-inner {
    position: relative;
    padding: 72px 64px 64px;
    background: var(--dark);
    clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
    overflow: hidden;
}
.cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(0, 129, 255, 0.12) 0 1px, transparent 1px 16px);
}
.cta-inner::after {
    content: '+';
    position: absolute;
    right: 34px;
    bottom: -44px;
    font-size: 15rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 129, 255, 0.16);
}
.cta-inner > * { position: relative; }
.cta-inner .framed-title h2 { color: var(--white); font-size: 2.5rem; }
.cta-inner .framed-title::before,
.cta-inner .framed-title::after { border-color: var(--primary); }
.cta-inner > p { margin: 20px 0 34px; max-width: 62ch; font-size: 1rem; line-height: 1.7; color: rgba(255, 255, 255, 0.75); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* --- Внутренние страницы: hero и хаб услуг --- */
/* Отступ сверху учитывает фиксированную шапку: 198px на десктопе, 140px на мобильных */
.page-hero { padding: 260px 0 40px; }
.page-hero h1 { font-size: 2.5rem; }
.page-hero .section-header p { max-width: 78ch; margin-left: auto; margin-right: auto; }
.services-hub { padding: 40px 0 120px; }
.services-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-group-card { padding: 28px 30px; background: var(--white); border: 1px solid rgba(25, 28, 32, 0.10); }
.service-group-card h2 { margin: 0 0 10px; font-size: 1.125rem; font-weight: 800; color: var(--dark); }
.service-group-lead { margin: 0 0 16px; font-size: 0.875rem; line-height: 1.6; color: var(--text-gray); }
.service-group-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.service-group-list li { font-size: 0.9375rem; line-height: 1.5; color: var(--text-main); }
.service-group-list a { font-weight: 600; color: var(--primary); text-decoration: none; }
.service-group-list a:hover { text-decoration: underline; }

/* --- Страница контактов: NAP-карточки и реквизиты --- */
.nap-section { padding: 40px 0 120px; }
.nap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nap-card { padding: 28px 30px; background: var(--white); border: 1px solid rgba(25, 28, 32, 0.10); }
.nap-card h2 { margin: 0 0 12px; font-size: 1.125rem; font-weight: 800; color: var(--dark); }
.nap-card p { margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.6; color: var(--text-main); }
.nap-phone { font-size: 1.125rem; font-weight: 700; color: var(--dark); text-decoration: none; }
.nap-email { font-weight: 600; color: var(--primary); text-decoration: none; }
.nap-note { font-size: 0.8125rem !important; line-height: 1.55; color: var(--text-gray); }
.requisites { margin-top: 44px; padding: 26px 32px; background: #f1f7ff; border-left: 4px solid var(--primary); }
.requisites h2 { margin: 0 0 10px; font-size: 1.125rem; font-weight: 800; color: var(--dark); }
.requisites p { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var(--text-main); }

/* --- Страница тарифов: состав по тарифам --- */
.tariff-table { display: grid; gap: 0; }
.tariff-row { padding: 26px 0; border-bottom: 1px solid rgba(25, 28, 32, 0.12); }
.tariff-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.tariff-head h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--dark); }
.tariff-price { font-size: 1.125rem; font-weight: 800; color: var(--primary); white-space: nowrap; }
.tariff-price em { font-size: 0.8125rem; font-weight: 600; font-style: normal; color: var(--text-gray); }
.tariff-row p { margin: 10px 0 0; max-width: 80ch; font-size: 0.9375rem; line-height: 1.65; color: var(--text-gray); }

/* --- Мелкие дополнения футера и прайса --- */
.tag-gold { background: var(--dark); color: var(--white); }
.cookie-icon { margin-right: 8px; }
.label-text { font-size: 0.875rem; }

/* =========================================================
   АДАПТИВ НОВЫХ БЛОКОВ
========================================================= */
@media (max-width: 1200px) {
    .expert-card { grid-template-columns: 132px minmax(0, 1fr) 260px; gap: 40px; padding: 52px 44px; }
    .expert-mark { width: 132px; height: 132px; font-size: 3.3rem; }
    .process-step::before { font-size: 5rem; }
}
@media (max-width: 992px) {
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .services-hub-grid,
    .nap-grid { grid-template-columns: 1fr; }
    /* Лестница «Кому подходят» выравнивается в одну колонку */
    .client-card,
    .client-card:nth-child(2),
    .client-card:nth-child(3),
    .client-card:nth-child(4),
    .client-card:nth-child(5) { grid-template-columns: 1fr; gap: 14px; width: 100%; margin-left: 0; }
    .client-tariff { text-align: left; border-top: none; padding-top: 0; }
    /* Веер «3 шагов» раскладывается в столбик, нахлёст сохраняется */
    .process-grid { grid-template-columns: 1fr; }
    .process-step:nth-child(2),
    .process-step:nth-child(3) { margin-left: 0; margin-top: -16px; box-shadow: none; }
    .geo-layout { grid-template-columns: 1fr; }
    .faq-list { grid-template-columns: 1fr; }
    .expert-card { grid-template-columns: 132px minmax(0, 1fr); }
    .expert-aside { grid-column: 2; }
    .expert-creds { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .detail-section,
    .clients-section,
    .process-section,
    .geo-section,
    .expert-section,
    .faq-section,
    .cta-section { padding: 80px 0; }
    .services-hub,
    .nap-section { padding: 30px 0 80px; }
    .page-hero { padding: 190px 0 30px; }
    .page-hero h1 { font-size: 2rem; }
    .detail-grid { grid-template-columns: 1fr; }
    .expert-card { grid-template-columns: 1fr; padding: 40px 28px; gap: 30px; }
    .expert-mark { width: 120px; height: 120px; font-size: 3rem; }
    .expert-card h2 { font-size: 2rem; }
    .expert-aside { grid-column: auto; }
    .client-card { padding: 26px 24px; gap: 10px; }
    .process-step { padding-top: 66px; }
    .process-step::before { font-size: 3.8rem; }
    .geo-inner { padding: 44px 30px 40px; }
    .cta-inner { padding: 44px 30px; }
    .cta-inner::after { font-size: 10rem; }
    .cta-inner .framed-title h2 { font-size: 1.875rem; }
    .tariff-head { flex-direction: column; gap: 6px; }
    /* Статистика hero переносится, чтобы не растягивать сетку на узких экранах */
    .hero-stats { flex-wrap: wrap; gap: 26px 32px; }
}
@media (max-width: 576px) {
    .process-step::before { font-size: 3rem; }
    .geo-card::after { width: 80px; height: 80px; }
    .stat .stat-num { font-size: 2.2rem; }
    .stat .stat-label { max-width: 150px; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
}
