
body {
    padding-left: 5%;
    padding-right: 5%;
}
header .header-container {
    padding: 0.7rem 1.25rem;
}
.hstack {
    align-items: flex-start;
}
.pt-11 {
    padding-top: 9rem;
}
.mt-11 {
    margin-top: -0.25rem;
}
@media (min-width: 1200px) {
.me-xl-11 {
    margin-right: 8rem;
}
}
@media (min-width: 1680px) {
.me-xl-11 {
    margin-right: 18rem;
}
}
.container-main {
    --bs-gutter-x: 0;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}
.service-item-cont .service-item .item-content .item-list .list-item {
    padding-left: 2rem;
    line-height: 1.5;
}
@media (min-width: 1200px) {
.h1, h1 {
    font-size: 3.5rem;
}
}
.h1, h1 {
    font-weight: 600;
}
@media (max-width: 991.98px) {
.h1, h1 {
    font-size: 38px;
}
.pt-11 {
    padding-top: 4rem;
}
}
@media (max-width: 767.98px) {
.h1, h1 {
    font-size: 30px;
}
.pt-11 {
    padding-top: 4rem;
}
}
.price-items .price-item:nth-child(3n) .item-bg-text {
    color: rgb(255 255 255 / 61%);
}
@media (min-width: 1460px){
.d-xxxl-block {
    display: block!important;
}
}
.mt-12 {
    margin-top: 2rem;
}

/* ============================================================
   DESIGN REFRESH 2026 — лёгкое обновление, концепция сохранена
   Шрифт: Manrope (body) + Forum (заголовки, без изменений)
   Цвет бренда: #BB2649 (не меняется)
   Всё ниже — поверх основной сборки, легко откатывается.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap&subset=cyrillic,cyrillic-ext,latin');

:root {
    --ib-ease: cubic-bezier(.22, .61, .36, 1);
    --ib-brand: #0B1E45;
    --ib-brand-dark: #07142E;
    --ib-brand-shadow: rgba(11, 30, 69, .28);
    --ib-gold: #C9A14A;              /* золото — только логотип */
    --ib-accent: #C9A14A;            /* золото классическое — утверждено 07.07.2026 */
    --ib-accent-dark: #A8863B;       /* для мелких надписей */
    --ib-accent-bright: #E3C889;     /* светлое золото на тёмных секциях */
    --ib-accent-soft: rgba(201, 161, 74, .12);
    --ib-accent-soft-d: rgba(227, 200, 137, .16);
}

/* --- Современный шрифт для текста; Panton остаётся фолбэком --- */
body,
.nav-link,
.btn,
button,
input,
select,
textarea {
    font-family: 'Manrope', 'Panton', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body {
    letter-spacing: .002em;
}

/* --- Кнопки: плавность, мягкий подъём, фирменная тень --- */
.btn {
    transition: transform .22s var(--ib-ease),
                box-shadow .22s var(--ib-ease),
                background-color .22s var(--ib-ease),
                border-color .22s var(--ib-ease),
                color .22s var(--ib-ease);
    font-weight: 600;
    letter-spacing: .01em;
    will-change: transform;
}
.btn-primary,
.item-button {
    box-shadow: 0 4px 14px -6px var(--ib-brand-shadow);
}
.btn-primary:hover,
.item-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px var(--ib-brand-shadow);
}
.btn-outline-light:hover {
    transform: translateY(-2px);
}
.btn:active,
.btn-primary:active,
.item-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px -6px var(--ib-brand-shadow);
}

/* --- Карточки услуг и тарифов: лёгкий подъём + тень --- */
.service-item,
.price-item {
    transition: transform .3s var(--ib-ease),
                box-shadow .3s var(--ib-ease);
    will-change: transform;
}
.service-item:hover,
.price-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -18px rgba(20, 20, 40, .22);
}

/* --- Плавный зум картинки внутри карточки --- */
.service-item .item-image,
.price-item .item-image {
    overflow: hidden;
}
.service-item .item-image img,
.price-item .item-image img {
    transition: transform .45s var(--ib-ease);
    will-change: transform;
}
.service-item:hover .item-image img,
.price-item:hover .item-image img {
    transform: scale(1.04);
}

/* --- Меню: эффектный ховер на РОДНОМ подчёркивании темы --- */
/* (своё ::after не добавляем — иначе дублируется и получаются две линии) */
.navbar-nav .nav-item .nav-link {
    transition: color .22s var(--ib-ease), transform .22s var(--ib-ease) !important;
}
/* родное подчёркивание: толще, скруглённое, растёт из центра */
.navbar-nav .nav-item .nav-link:before {
    height: 2px !important;
    border-radius: 2px;
    left: 50% !important;
    right: auto !important;
    width: 0 !important;
    background-color: var(--ib-brand) !important;
    transition: width .28s var(--ib-ease), left .28s var(--ib-ease) !important;
}
header .navbar .navbar-nav .nav-item .nav-link:hover:before,
.navbar-nav .nav-item .nav-link.active:before {
    width: 100% !important;
    left: 0 !important;
}
/* текст пункта плавно перекрашивается в бренд и чуть приподнимается */
header .navbar .navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link.active {
    color: var(--ib-brand) !important;
    transform: translateY(-1px);
}

/* --- Обычные ссылки: мягкий ховер --- */
a:not(.btn):not(.nav-link) {
    transition: color .2s var(--ib-ease), opacity .2s var(--ib-ease);
}

/* --- Уважаем системную настройку «меньше движения» --- */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .service-item,
    .price-item,
    .service-item .item-image img,
    .price-item .item-image img,
    .nav-link,
    .nav-link::after,
    a {
        transition: none !important;
    }
    .btn:hover,
    .service-item:hover,
    .price-item:hover,
    .service-item:hover .item-image img,
    .price-item:hover .item-image img {
        transform: none !important;
    }
}

/* ============================================================
   ХЕДЕР — мягкая тень, реакция на скролл, живые элементы
   ============================================================ */
header .header-container {
    box-shadow: 0 6px 24px -10px rgba(20, 20, 40, .14) !important;
    transition: box-shadow .3s var(--ib-ease),
                background-color .3s var(--ib-ease),
                padding .3s var(--ib-ease),
                backdrop-filter .3s var(--ib-ease);
}
/* при прокрутке — компактнее, плотнее тень, матовое стекло */
header.is-scrolled .header-container {
    box-shadow: 0 10px 30px -12px rgba(20, 20, 40, .22) !important;
    background-color: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
}
@media (min-width: 1200px) {
    header.is-scrolled .header-container {
        padding-top: .5rem;
        padding-bottom: .5rem;
    }
}

/* Логотип — лёгкий отклик */
.navbar-brand img {
    transition: transform .3s var(--ib-ease), opacity .2s var(--ib-ease);
}
.navbar-brand:hover img {
    transform: scale(1.03);
    opacity: .92;
}

/* Иконки мессенджеров и трубки — цветные SVG-кружки с откликом */
.header-container .hstack a.d-block {
    display: inline-flex !important;
    border-radius: 50%;
    transition: transform .25s var(--ib-ease), filter .25s var(--ib-ease);
    will-change: transform;
}
.header-container .hstack a.d-block img {
    width: 34px;
    height: 34px;
    display: block;
}
.header-container .hstack a.d-block:hover {
    transform: translateY(-3px) scale(1.06);
    filter: drop-shadow(0 8px 14px rgba(20, 20, 40, .3));
}

/* Телефон — в фирменный цвет при наведении */
.header-link-phone:hover {
    color: var(--ib-brand) !important;
}

/* Бургер-меню */
.navbar-toggler {
    transition: transform .2s var(--ib-ease), border-color .2s var(--ib-ease);
}
.navbar-toggler:hover {
    transform: scale(1.06);
}

/* --- Контактный блок: график / телефон / обратный звонок --- */
.header-container .d-flex.flex-column.align-items-end {
    gap: .3rem !important;
}
/* график работы — мелкая капс-подпись */
.header-container .d-flex.flex-column.align-items-end > div:first-child {
    font-size: .72rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    color: #9aa0a8;
}
/* телефон — фокусный, с фирменной иконкой-трубкой слева */
.header-container .header-link-phone {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.header-container .header-link-phone::before {
    content: "";
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230B1E45'%3E%3Cpath d='M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.6 17.6 0 0 0 4.168 6.608 17.6 17.6 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.68.68 0 0 0-.58-.122l-2.19.547a1.75 1.75 0 0 1-1.657-.459L5.482 8.062a1.75 1.75 0 0 1-.46-1.657l.548-2.19a.68.68 0 0 0-.122-.58z'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform .25s var(--ib-ease);
}
.header-container .header-link-phone:hover::before {
    transform: rotate(-12deg) scale(1.08);
}
/* «заказать обратный звонок» — лёгкая брендовая ссылка со стрелкой */
.header-container .link-primary-dark-underline {
    text-decoration: none !important;
    font-weight: 600;
    color: var(--ib-brand) !important;
    transition: opacity .2s var(--ib-ease);
}
.header-container .link-primary-dark-underline::after {
    content: "\2192";
    display: inline-block;
    margin-left: .25rem;
    transition: transform .2s var(--ib-ease);
}
.header-container .link-primary-dark-underline:hover {
    opacity: .75;
}
.header-container .link-primary-dark-underline:hover::after {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    header .header-container,
    .navbar-brand img,
    .header-container .hstack a.d-block,
    .header-container .hstack a.d-block img,
    .navbar-toggler,
    .navbar-nav .nav-item .nav-link,
    .navbar-nav .nav-item .nav-link:before,
    .header-container .header-link-phone::before,
    .header-container .link-primary-dark-underline::after {
        transition: none !important;
    }
    .navbar-brand:hover img,
    .header-container .hstack a.d-block:hover,
    .header-container .hstack a.d-block:hover img,
    .navbar-toggler:hover,
    .navbar-nav .nav-item .nav-link:hover,
    .header-container .header-link-phone:hover::before,
    .header-container .link-primary-dark-underline:hover::after {
        transform: none !important;
    }
}

/* ============================================================
   СЕКЦИЯ «3 простых шага» — анимированный ховер на 4 карточках
   ============================================================ */
.row-cols-xl-4 > .col > .rounded-4.p-4.h-100 {
    transition: transform .3s var(--ib-ease), box-shadow .3s var(--ib-ease);
    will-change: transform;
}
.row-cols-xl-4 > .col > .bg-white.rounded-4.p-4.h-100:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -18px rgba(20, 20, 40, .22);
}
.row-cols-xl-4 > .col > .bg-primary.rounded-4.p-4.h-100:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px -16px var(--ib-brand-shadow);
}
/* номер шага слегка уезжает вправо при наведении */
.row-cols-xl-4 > .col > .bg-white.rounded-4.p-4.h-100 .text-primary.fw-bold {
    display: inline-block;
    transition: transform .3s var(--ib-ease);
}
.row-cols-xl-4 > .col > .bg-white.rounded-4.p-4.h-100:hover .text-primary.fw-bold {
    transform: translateX(3px);
}
/* галочка в 4-й карточке слегка увеличивается */
.row-cols-xl-4 > .col > .bg-primary.rounded-4.p-4.h-100 .icon-check {
    transition: transform .3s var(--ib-ease);
}
.row-cols-xl-4 > .col > .bg-primary.rounded-4.p-4.h-100:hover .icon-check {
    transform: scale(1.08) rotate(-4deg);
}

/* ============================================================
   ФОРМА ЧЕК-ЛИСТА — современные чипы и поля, без рамок
   ============================================================ */
label[for^="bannerForm"].btn {
    border: 2px solid transparent !important;
    background-color: #f3f4f7 !important;
    color: #2b2b2b !important;
    border-radius: 14px !important;
    padding: .8rem 1.2rem !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    box-shadow: none !important;
    transition: transform .2s var(--ib-ease),
                background-color .2s var(--ib-ease),
                border-color .2s var(--ib-ease),
                box-shadow .2s var(--ib-ease),
                color .2s var(--ib-ease);
}
label[for^="bannerForm"].btn img {
    width: 26px !important;
    height: 26px !important;
}
label[for^="bannerForm"].btn span {
    font-weight: 600;
    width: auto !important;
}
label[for^="bannerForm"].btn:hover {
    transform: translateY(-2px);
    background-color: #fff !important;
    box-shadow: 0 8px 18px -10px rgba(20, 20, 40, .25) !important;
}
/* выбранный способ связи — фирменная подсветка */
.btn-check:checked + label[for^="bannerForm"].btn {
    background-color: #fff !important;
    border-color: var(--ib-brand) !important;
    color: var(--ib-brand) !important;
    box-shadow: 0 8px 18px -10px var(--ib-brand-shadow) !important;
}
/* поля ввода — мягкие, современные, с фирменным фокусом */
.ajax_form .form-control {
    border-radius: 14px;
    border: 1.5px solid #e4e6ec;
    background-color: #fff;
    transition: border-color .2s var(--ib-ease), box-shadow .2s var(--ib-ease);
}
.ajax_form .form-control:hover {
    border-color: #d3d6df;
}
.ajax_form .form-control:focus {
    border-color: var(--ib-brand);
    box-shadow: 0 0 0 .2rem rgba(11, 30, 69, .14);
}

/* ============================================================
   ФУТЕР — облагораживание и современный вид
   ============================================================ */
footer .bg-white.rounded-4 {
    box-shadow: 0 6px 32px -18px rgba(20, 20, 40, .16);
    padding: 2.25rem 2rem !important;
}
/* заголовки колонок — аккуратные капс-подписи (кроме слогана с .lh-sm) */
footer .fs-7.fw-bold:not(.lh-sm) {
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .8rem !important;
    color: #6b7280;
    margin-bottom: 1.1rem !important;
}
/* ссылки-пункты — плавный сдвиг и бренд-цвет */
footer .link-dark-primary {
    text-decoration: none;
    transition: color .2s var(--ib-ease), padding-left .2s var(--ib-ease);
}
footer ul .link-dark-primary:hover {
    color: var(--ib-brand) !important;
    padding-left: .35rem;
}
footer a.link-dark-primary.fs-4:hover {
    color: var(--ib-brand) !important;
}
/* иконки футера — цветные кружки с откликом */
footer .hstack a.d-block {
    display: inline-flex !important;
    border-radius: 50%;
    transition: transform .25s var(--ib-ease), filter .25s var(--ib-ease);
    will-change: transform;
}
footer .hstack a.d-block img {
    width: 42px;
    height: 42px;
    display: block;
}
footer .hstack a.d-block:hover {
    transform: translateY(-3px) scale(1.06);
    filter: drop-shadow(0 8px 14px rgba(20, 20, 40, .3));
}
/* «заказать обратный звонок» — лёгкая брендовая ссылка со стрелкой */
footer .link-primary-dark-underline {
    text-decoration: none !important;
    font-weight: 600;
    color: var(--ib-brand) !important;
    transition: opacity .2s var(--ib-ease);
}
footer .link-primary-dark-underline::after {
    content: "\2192";
    display: inline-block;
    margin-left: .25rem;
    transition: transform .2s var(--ib-ease);
}
footer .link-primary-dark-underline:hover {
    opacity: .75;
}
footer .link-primary-dark-underline:hover::after {
    transform: translateX(3px);
}
/* копирайт — тише и аккуратнее */
footer .dark-primary {
    color: #9aa0a8;
    font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
    .row-cols-xl-4 > .col > .rounded-4.p-4.h-100,
    .row-cols-xl-4 .text-primary.fw-bold,
    .row-cols-xl-4 .icon-check,
    label[for^="bannerForm"].btn,
    .ajax_form .form-control,
    footer .link-dark-primary,
    footer .hstack a.d-block,
    footer .link-primary-dark-underline::after {
        transition: none !important;
    }
    .row-cols-xl-4 > .col > .rounded-4.p-4.h-100:hover,
    .row-cols-xl-4 .rounded-4:hover .text-primary.fw-bold,
    .row-cols-xl-4 .rounded-4:hover .icon-check,
    label[for^="bannerForm"].btn:hover,
    footer .hstack a.d-block:hover,
    footer .link-primary-dark-underline:hover::after {
        transform: none !important;
    }
    footer ul .link-dark-primary:hover {
        padding-left: 0;
    }
}

/* ============================================================
   ФОРМА-КАЛЬКУЛЯТОР («точный расчёт стоимости»)
   - «Система налогообложения» и «Кол-во операций» → пилюли
   - поля ввода тянутся на ширину, чипы мессенджеров уже как в чек-листе
   ============================================================ */

/* контейнер вариантов → гибкая сетка пилюль */
.ajax_form .fs-7.fw-semibold {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.ajax_form .fs-7.fw-semibold .form-check {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
    min-height: 0;
}
/* прячем стандартный кружок радио */
.ajax_form .fs-7.fw-semibold .form-check-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}
/* сам label превращается в пилюлю */
.ajax_form .fs-7.fw-semibold .form-check-label {
    display: inline-block;
    margin: 0;
    padding: .55rem 1.15rem;
    border-radius: 999px;
    background-color: #f3f4f7;
    border: 2px solid transparent;
    color: #2b2b2b;
    line-height: 1.1;
    cursor: pointer;
    user-select: none;
    transition: transform .2s var(--ib-ease),
                background-color .2s var(--ib-ease),
                border-color .2s var(--ib-ease),
                box-shadow .2s var(--ib-ease),
                color .2s var(--ib-ease);
}
.ajax_form .fs-7.fw-semibold .form-check-label:hover {
    transform: translateY(-2px);
    background-color: #fff;
    box-shadow: 0 8px 18px -10px rgba(20, 20, 40, .25);
}
/* выбранная пилюля — фирменная подсветка */
.ajax_form .fs-7.fw-semibold .form-check-input:checked + .form-check-label {
    background-color: #fff;
    border-color: var(--ib-brand);
    color: var(--ib-brand);
    box-shadow: 0 8px 18px -10px var(--ib-brand-shadow);
}
/* доступность: видимый фокус с клавиатуры */
.ajax_form .fs-7.fw-semibold .form-check-input:focus-visible + .form-check-label {
    outline: 2px solid var(--ib-brand);
    outline-offset: 2px;
}
/* группы вопросов на десктопе — занимают всю ширину, не жмутся */
@media (min-width: 992px) {
    #blockQuiz .col-lg-auto {
        flex: 1 1 100%;
        width: 100%;
    }
}
/* поля «Имя/Телефон» в калькуляторе тянутся по ширине строки */
#blockQuiz .form-floating {
    flex: 1 1 240px;
}

@media (prefers-reduced-motion: reduce) {
    .ajax_form .fs-7.fw-semibold .form-check-label {
        transition: none !important;
    }
    .ajax_form .fs-7.fw-semibold .form-check-label:hover {
        transform: none !important;
    }
}

/* ============================================================
   ПЛАВНЫЙ СКРОЛЛ (Lenis) — служебные стили + кнопка «наверх»
   ============================================================ */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* кнопка «наверх» в правом нижнем углу */
.ib-to-top {
    position: fixed;
    right: calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-right, 0px));
    bottom: calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-bottom, 0px));
    z-index: 1030;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--ib-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.9);
    box-shadow: 0 10px 28px -10px var(--ib-brand-shadow);
    transition: opacity .3s var(--ib-ease),
                transform .3s var(--ib-ease),
                background-color .2s var(--ib-ease),
                box-shadow .3s var(--ib-ease);
}
.ib-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.ib-to-top:hover {
    background-color: #9f203e;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 16px 34px -10px var(--ib-brand-shadow);
}
.ib-to-top:active {
    transform: translateY(0) scale(1);
}
.ib-to-top svg {
    width: 22px;
    height: 22px;
}

@media (prefers-reduced-motion: reduce) {
    .ib-to-top {
        transition: opacity .2s linear, visibility .2s linear;
        transform: none;
    }
    .ib-to-top.is-visible,
    .ib-to-top:hover,
    .ib-to-top:active {
        transform: none;
    }
}

/* ============================================================
   БЫСТРЫЕ ПРАВКИ (batch)
   ============================================================ */

/* Карточка-итог в «3 шага»: белая с фирменной рамкой вместо красной */
.ib-accent-card {
    border: 2px solid var(--ib-brand);
}

/* Иконки-эмодзи над карточками «Почему мы» */
.ib-why-ico {
    font-size: 2.6rem;
    line-height: 1;
}

/* Звёзды-рейтинг у отзывов */
.ib-stars {
    color: #FFB400;
    font-size: 1.35rem;
    letter-spacing: 3px;
    line-height: 1;
}

/* Убираем нечитаемые картинки-иллюстрации под карточками услуг */
.service-item .item-image {
    display: none;
}

/* ============================================================
   ФИРМЕННЫЙ ЦВЕТ → ТЁМНО-СИНИЙ (#0B1E45) НА ВСЁМ САЙТЕ
   Перекрываем места, где малиновый зашит в основной сборке.
   ============================================================ */
:root {
    --bs-primary: #0B1E45;
    --bs-primary-rgb: 11, 30, 69;
    --bs-link-color-rgb: 11, 30, 69;
    --bs-link-hover-color-rgb: 20, 42, 71;
}
.btn-primary,
.item-button,
.price-items .price-item .item-button {
    --bs-btn-bg: #0B1E45;
    --bs-btn-border-color: #0B1E45;
    --bs-btn-hover-bg: #07142E;
    --bs-btn-hover-border-color: #07142E;
    --bs-btn-active-bg: #07142E;
    --bs-btn-active-border-color: #07142E;
    --bs-btn-disabled-bg: #0B1E45;
    --bs-btn-disabled-border-color: #0B1E45;
}
.text-primary { color: #0B1E45 !important; }
.bg-primary,
.text-bg-primary { background-color: #0B1E45 !important; }
.border-primary { border-color: #0B1E45 !important; }
.link-primary-dark-underline,
.link-primary-dark,
.link-primary-secondary,
.link-primary-secondary-underline,
.link-primary-white,
.link-primary-white-underline,
.link-dark-primary:hover,
.link-dark-primary-underline:hover,
.link-secondary-primary:hover,
.header-link-phone:hover { color: #0B1E45 !important; }
.navbar-nav .nav-item .nav-link:before { background-color: #0B1E45 !important; }
.service-item-cont:nth-child(even) .service-item,
.price-items .price-item:nth-child(3n) { background-color: #0B1E45 !important; }
.form-check-input:checked { background-color: #0B1E45 !important; border-color: #0B1E45 !important; }

/* ============================================================
   БОЛЬШЕ ГЛУБИНЫ — фон, тени, объём (сайт казался плоским/пустым)
   ============================================================ */
/* мягкий прохладный фон страницы — белые карточки «всплывают» */
body {
    background-color: #EDF1F7;
}
/* объёмные тени покоя на карточках */
.bg-white.rounded-4,
.service-item,
.price-item,
footer .bg-white.rounded-4 {
    box-shadow: 0 10px 30px -16px rgba(20, 35, 75, .18);
}
/* тёмно-синие блоки и кнопки — лёгкий градиент для объёма */
.btn-primary,
.item-button,
.bg-primary,
.text-bg-primary,
.service-item-cont:nth-child(even) .service-item,
.price-items .price-item:nth-child(3n) {
    background-image: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .12));
}
/* hero/секции: едва заметный объёмный фон сверху */
.welcome-area,
section:first-of-type {
    background-image: radial-gradient(120% 80% at 80% 0%, rgba(11, 30, 69, .06), rgba(11, 30, 69, 0) 60%);
}
/* акцентная карточка-итог в «шагах» — мягкая тень в цвет бренда */
.ib-accent-card {
    box-shadow: 0 14px 36px -16px var(--ib-brand-shadow);
}

/* ============================================================
   РЕРЕРАЙТ ВЁРСТКИ — ЭТАЛОН: Хедер + Hero (mobile-first)
   ============================================================ */

/* outline-кнопки в тёмно-синем */
.btn-outline-primary {
    --bs-btn-color: #0B1E45;
    --bs-btn-border-color: #0B1E45;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0B1E45;
    --bs-btn-hover-border-color: #0B1E45;
    --bs-btn-active-bg: #07142E;
    --bs-btn-active-border-color: #07142E;
}

/* ---------- ХЕДЕР (двухуровневый) ---------- */
.ib-header { padding-top: .65rem; }
.ib-headcard {
    background: var(--ib-brand);
    border-radius: 18px;
    overflow: visible;
    box-shadow: 0 16px 40px -22px rgba(11, 30, 69, .7);
}
/* верхняя полоса: контакты + мессенджеры (тёмная) */
.ib-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .6rem 1.6rem;
    font-size: .95rem;
    max-height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transition: max-height .3s var(--ib-ease), padding .3s var(--ib-ease), border-color .3s var(--ib-ease);
}
.ib-topbar-addr { color: rgba(255, 255, 255, .55); white-space: nowrap; font-size: .88rem; }
.ib-topbar-right { display: flex; align-items: center; gap: 1.6rem; }
.ib-topbar-phone { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 800; font-size: 1.22rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: color .2s var(--ib-ease); }
.ib-topbar-phone svg { color: var(--ib-accent-bright); width: 20px; height: 20px; }
.ib-topbar-phone:hover { color: var(--ib-accent-bright); }
.ib-topbar-hours { color: rgba(255, 255, 255, .55); white-space: nowrap; font-size: .85rem; }
.ib-topbar-mess { display: flex; align-items: center; gap: .7rem; }
.ib-topbar-mess a { display: block; opacity: .92; transition: opacity .15s var(--ib-ease), transform .15s var(--ib-ease); }
.ib-topbar-mess a:hover { opacity: 1; transform: translateY(-2px); }
.ib-topbar-mess img { width: 30px; height: 30px; display: block; }
/* единая тёмная полоса: меню слева · лого-медальон по центру · контакты+CTA справа */
.ib-bar { display: flex; align-items: center; gap: 1rem; padding: .4rem 1.25rem; }
.ib-bar-actions { display: flex; align-items: center; gap: 1.35rem; flex: 0 0 auto; }
/* телефон в баре */
.ib-bar-phone { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 800; font-size: 1.35rem; white-space: nowrap; text-decoration: none; transition: color .2s var(--ib-ease); }
.ib-bar-phone svg { color: var(--ib-accent-bright); width: 22px; height: 22px; }
.ib-bar-phone:hover { color: var(--ib-accent-bright); }
/* мессенджеры в баре */
.ib-bar-mess { display: flex; align-items: center; gap: .7rem; }
.ib-bar-mess a { display: block; opacity: .92; transition: opacity .15s var(--ib-ease), transform .15s var(--ib-ease); }
.ib-bar-mess a:hover { opacity: 1; transform: translateY(-2px); }
.ib-bar-mess img { width: 36px; height: 36px; display: block; }
@media (min-width: 1200px) {
    .ib-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; padding: .35rem 2rem; }
    .ib-nav { justify-self: start; margin: 0; }
    .ib-logo { justify-self: center; }
    .ib-bar-actions { justify-self: end; }
}
@media (max-width: 575.98px) { .ib-bar { padding: .5rem .9rem; } }
.ib-logo { flex: 0 0 auto; margin: 0; padding: 0; display: inline-flex; }
/* лого-медальон: круг с золотым кольцом, можно укрупнять без роста бара (выступает вниз) */
.ib-logo-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 90px; height: 90px; border-radius: 50%;
    background: radial-gradient(circle at 50% 36%, #1a3a66, #0B1E45 76%);
    border: 2.5px solid var(--ib-gold);
    box-shadow: 0 14px 32px -12px rgba(0,0,0,.55), inset 0 0 0 1px rgba(212,175,55,.25);
    padding: 8px 11px;
}
/* векторный логотип в медальоне: эмблема + ЭДЕРА + линейка + слоган */
.ib-vlogo { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ib-gold); }
.ib-vlogo-emblem { height: 44px; width: auto; display: block; }
.ib-vlogo-name { font-size: 1.5rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; color: var(--ib-gold); margin-top: 8px; padding-left: .22em; }
.ib-vlogo-rule { display: flex; align-items: center; width: 82%; margin: 6px 0 5px; color: var(--ib-gold); }
.ib-vlogo-rule::before, .ib-vlogo-rule::after { content: ""; height: 1.4px; background: currentColor; flex: 1; opacity: .85; }
.ib-vlogo-rule i { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); margin: 0 7px; flex: 0 0 auto; }
.ib-vlogo-tag { font-family: 'Manrope', system-ui, sans-serif; font-size: .46rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(201, 161, 74, .92); white-space: nowrap; }
@media (min-width: 1200px) {
    .ib-logo-badge { width: 168px; height: 168px; padding: 0; border-width: 3px; margin-top: -24px; margin-bottom: -30px; }
}
/* текстовый логотип (мобилка — вместо громоздкого медальона) */
.ib-logo-text {
    display: none; flex-direction: column; align-items: flex-start;
    line-height: 1; color: var(--ib-gold);
    font-size: 1.6rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
    padding-left: .12em;
}
.ib-logo-text small {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: .42rem; letter-spacing: .24em; font-weight: 600;
    color: rgba(201, 161, 74, .85); margin-top: .5em; white-space: nowrap;
}
@media (max-width: 1199.98px) {
    .ib-logo-badge { display: none; }
    .ib-logo-text { display: inline-flex; }
}

/* CTA-картинка (чек-лист) — компактнее */
.ib-cta-img { max-width: min(100%, 480px); margin-inline: auto; }

.ib-nav { display: flex; align-items: center; gap: clamp(.7rem, 1.7vw, 2.1rem); margin-inline: auto; }
.ib-nav-link {
    position: relative;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.12rem;
    padding: .35rem 0;
    white-space: nowrap;
    transition: color .2s var(--ib-ease);
}
.ib-nav-link::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
    background: var(--ib-accent-bright); border-radius: 2px;
    transform: scaleX(0); transform-origin: center;
    transition: transform .25s var(--ib-ease);
}
.ib-nav-link:hover { color: #fff; }
.ib-nav-link:hover::after { transform: scaleX(1); }

/* белая CTA-кнопка в тёмном хедере */
.ib-btn-gold {
    background: #fff; color: var(--ib-brand); border: 0;
    font-weight: 700; font-size: 1.12rem; padding: .92rem 1.9rem; border-radius: 12px;
    cursor: pointer; white-space: nowrap;
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45);
    transition: background .2s var(--ib-ease), transform .15s var(--ib-ease), box-shadow .2s var(--ib-ease);
}
.ib-btn-gold:hover { background: #E9EDF5; transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .5); }
.ib-btn-gold:active { transform: translateY(0); }

.ib-header-actions { display: flex; align-items: center; gap: 1.1rem; flex: 0 0 auto; }
.ib-phone { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: #1b2a3a; }
.ib-phone svg { color: var(--ib-brand); flex: 0 0 auto; }
.ib-phone-txt { display: flex; flex-direction: column; line-height: 1.1; }
.ib-phone-num { font-weight: 800; font-size: 1.12rem; white-space: nowrap; transition: color .2s var(--ib-ease); }
.ib-phone-sub { font-size: .72rem; color: #8a929e; font-weight: 600; }
.ib-phone:hover .ib-phone-num { color: var(--ib-brand); }

.ib-icon-btn {
    width: 50px; height: 50px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 13px; border: 0;
    background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
    transition: background .2s var(--ib-ease), transform .15s var(--ib-ease);
}
.ib-icon-btn:hover { background: rgba(255, 255, 255, .2); }
.ib-icon-btn:active { transform: scale(.93); }

/* offcanvas-меню */
.ib-offcanvas { width: min(86vw, 360px); }
.ib-mob-nav { list-style: none; padding: 0; margin: 0; }
.ib-mob-link {
    display: block; padding: .85rem .25rem;
    font-size: 1.15rem; font-weight: 700; color: #1b2a3a; text-decoration: none;
    border-bottom: 1px solid #eef0f4;
    transition: color .15s var(--ib-ease), padding-left .15s var(--ib-ease);
}
.ib-mob-link:hover { color: var(--ib-brand); padding-left: .4rem; }
.ib-phone--mob { padding: .6rem 0; }
.ib-phone--mob .ib-phone-num { font-size: 1.4rem; }
.ib-mob-mess-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8a929e; }

/* ---------- HERO ---------- */
.ib-hero { position: relative; overflow: hidden; padding: clamp(1.5rem, 4vw, 3.5rem); }
.ib-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(90% 120% at 100% 0%, rgba(11, 30, 69, .07), rgba(11, 30, 69, 0) 55%);
}
.ib-hero > .row { position: relative; z-index: 1; }
.ib-eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; color: var(--ib-accent-dark);
    background: var(--ib-accent-soft); padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.ib-hero-title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 600; margin-bottom: 1.1rem; }
.ib-hero-lead { font-size: clamp(1rem, 1.3vw, 1.2rem); color: #48535f; line-height: 1.55; margin-bottom: 1.8rem; max-width: 34em; }
.ib-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.ib-hero-actions .btn { padding: .85rem 1.6rem; font-size: 1.02rem; }
@media (max-width: 575.98px) {
    .ib-hero-actions .btn { width: 100%; }
}

/* ---------- Секции: плотный ритм + заголовок ---------- */
.ib-sec { padding: clamp(2.2rem, 5vw, 4rem) 0; margin: 0 !important; }
.ib-sec-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ib-sec-title {
    font-size: clamp(1.6rem, 3.4vw, 2.7rem);
    line-height: 1.14;
    font-weight: 600;
    margin: 0;
    max-width: 22ch;
}
.ib-sec-head .ib-eyebrow { margin-bottom: .9rem; }

/* ---------- Карточки шагов ---------- */
.ib-step-num {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--ib-brand); color: #fff;
    font-weight: 800; font-size: 1.3rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px -8px var(--ib-brand-shadow);
    background-image: linear-gradient(160deg, rgba(255,255,255,.12), rgba(0,0,0,.12));
}
.ib-step-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .55rem; color: #1b2a3a; }
.ib-step-text { color: #5a636e; line-height: 1.55; }

/* ---------- Иконки-плашки «Почему мы» ---------- */
.ib-why-ico {
    width: 60px; height: 60px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: rgba(11, 30, 69, .08);
    font-size: 1.9rem; line-height: 1;
    margin-bottom: 1.2rem;
}

/* ---------- Карточки услуг + чек-листы ---------- */
.ib-why-ico svg { width: 30px; height: 30px; color: var(--ib-brand); display: block; }
.ib-svc-title { font-size: 1.3rem; font-weight: 700; color: #1b2a3a; margin-bottom: 1.1rem; }
.ib-check-list { list-style: none; margin: 0; padding: 0; }
.ib-check-list li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: .6rem;
    color: #4b545f;
    line-height: 1.45;
    font-size: .95rem;
}
.ib-check-list li:last-child { margin-bottom: 0; }
.ib-check-list li::before {
    content: "";
    position: absolute; left: 0; top: .18rem;
    width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: rgba(11, 30, 69, .1);
}
.ib-check-list li::after {
    content: "";
    position: absolute; left: .34rem; top: .42rem;
    width: .42rem; height: .22rem;
    border-left: 2px solid var(--ib-brand);
    border-bottom: 2px solid var(--ib-brand);
    transform: rotate(-45deg);
}

/* ---------- CTA-карточка (чек-лист) ---------- */
.ib-cta-card { padding: clamp(1.5rem, 4vw, 3.5rem); }

/* ---------- Команда ---------- */
.ib-team-card { transition: transform .3s var(--ib-ease), box-shadow .3s var(--ib-ease); }
.ib-team-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.ib-team-role { color: var(--ib-brand); font-weight: 700; font-size: .9rem; margin-bottom: .7rem; }

/* ---------- Команда — портретная галерея (ЭДЕРА premium) ---------- */
.ib-team3-sub {
    max-width: 660px;
    margin: .2rem 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.62;
}
.ib-team3 {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: clamp(1.1rem, 2.6vw, 2.6rem);
    align-items: start;
    margin-top: clamp(1.6rem, 3vw, 2.6rem);
}
/* Арочная рамка портрета */
.ib-team3-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #16294f;
    border-radius: 22px;
    box-shadow: 0 22px 46px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .22);
    transition: box-shadow .4s var(--ib-ease);
}
.ib-team3-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    aspect-ratio: 4 / 5;
    transition: transform .7s var(--ib-ease);
}
.ib-team3-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 15, 35, .94) 0%, rgba(6, 15, 35, .55) 24%, rgba(6, 15, 35, 0) 48%);
    pointer-events: none;
}
.ib-team3-photo:hover img { transform: scale(1.045); }
.ib-team3-photo:hover { box-shadow: 0 28px 54px -22px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .45); }

.ib-team3-cap {
    position: absolute;
    left: clamp(1rem, 2vw, 1.5rem);
    right: .8rem;
    bottom: clamp(.9rem, 1.8vw, 1.4rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: .22rem;
}
.ib-team3-name {
    color: #fff;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    line-height: 1.04;
    font-weight: 400;
}
.ib-team3-role {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--ib-accent-bright);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.ib-team3-role::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--ib-accent-bright);
    border-radius: 2px;
    flex: 0 0 auto;
}
.ib-team3-photo.is-lead .ib-team3-name { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.ib-team3-photo.is-lead .ib-team3-role { font-size: .82rem; }

/* Подпись-описание под портретом */
.ib-team3-member { margin: 0; display: flex; flex-direction: column; }
.ib-team3-desc {
    margin: .85rem 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: .95rem;
    line-height: 1.5;
}

/* Лидер */
.ib-team3-lead { margin: 0; display: flex; flex-direction: column; }
.ib-team3-lead .ib-team3-desc { margin-top: 1.05rem; }
.ib-team3-note {
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(.98rem, 1.5vw, 1.08rem);
    line-height: 1.55;
    font-style: italic;
    padding-left: 1.1rem;
    border-left: 2px solid var(--ib-accent-bright);
}
.ib-team3-q { color: var(--ib-accent-bright); font-weight: 700; font-style: normal; }

/* Правая сетка 2×2 со смещением */
.ib-team3-rest {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(.9rem, 1.8vw, 1.7rem);
}
.ib-team3-rest .ib-team3-member:nth-child(2n) { margin-top: clamp(1.4rem, 3vw, 2.8rem); }

@media (max-width: 991.98px) {
    .ib-team3 { grid-template-columns: 1fr; gap: 1.6rem; }
    .ib-team3-rest .ib-team3-member:nth-child(2n) { margin-top: 0; }
    .ib-team3-lead { max-width: 430px; margin-inline: auto; width: 100%; }
}
@media (max-width: 575.98px) {
    .ib-team3-photo { border-radius: 16px; }
    .ib-team3-rest { gap: .7rem; }
    .ib-team3-name { font-size: 1.16rem; }
    .ib-team3-role { font-size: .64rem; letter-spacing: .1em; }
    .ib-team3-role::before { width: 16px; }
    .ib-team3-cap { left: .8rem; right: .6rem; bottom: .8rem; }
}

/* ---------- Гарантии: чип-заметка ---------- */
.ib-note-chip {
    display: inline-block;
    background: rgba(11, 30, 69, .08);
    color: var(--ib-brand);
    font-weight: 600;
    padding: .5rem .95rem;
    border-radius: 999px;
    font-size: .9rem;
}

/* ---------- Тарифы: глубина ---------- */
.price-items .price-item {
    box-shadow: 0 10px 30px -16px rgba(20, 35, 75, .18);
}

/* ---------- Карта контактов (Leaflet) ---------- */
.contacts-map-area { position: relative; }
#ibMap.contacts-map { z-index: 1; background: #eaf0f5; }
@media (max-width: 991.98px) {
    #ibMap.contacts-map { position: relative; height: 320px; border-radius: 14px; }
}
/* плавающая инфо-сноска (десктоп) */
.contacts-map-area .ib-map-info {
    position: absolute; top: 28px; left: 28px; z-index: 1000;
    max-width: 300px;
    background: #fff; border-radius: 16px; padding: 1.6rem 1.8rem;
    box-shadow: 0 16px 38px -14px rgba(20, 35, 75, .32);
}
.ib-map-info-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8a929e; margin-bottom: .7rem; }
.ib-metro { display: flex; align-items: center; gap: .55rem; font-weight: 600; margin-bottom: .35rem; }
.ib-metro-m { width: 20px; height: 20px; border-radius: 50%; background: var(--ib-brand); color: #fff; font-weight: 800; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
/* кнопка Яндекс.Карт — всегда видна */
.ib-map-btn { position: absolute; right: 16px; bottom: 16px; z-index: 1000; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); }
.ib-map-pin { background: none; border: 0; }
.ib-map-pin svg { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.leaflet-container { font: inherit; }

/* ---------- Карточка-преимущество (горизонтальная) ---------- */
.ib-adv .ib-why-ico { width: 56px; height: 56px; }
.ib-adv .ib-why-ico svg { width: 28px; height: 28px; }
@media (max-width: 575.98px) {
    .ib-adv { flex-direction: column; gap: 1rem !important; }
}

/* ============================================================
   ВИЗУАЛЬНАЯ НАСЫЩЕННОСТЬ — Hero, цифры, тёмные ленты
   ============================================================ */

/* --- Hero: свечение-фон + парящие плашки + доверие --- */
.ib-hero { position: relative; overflow: hidden; }
.ib-hero-glow {
    position: absolute; pointer-events: none; z-index: 0;
    width: 60%; height: 120%; right: -10%; top: -30%;
    background: radial-gradient(closest-side, rgba(11,30,69,.16), rgba(11,30,69,0) 70%);
    filter: blur(10px);
}
.ib-hero > .row { position: relative; z-index: 1; }
.ib-hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.6rem; }
.ib-trust-item { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: #4b5563; }
.ib-trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ib-accent); box-shadow: 0 0 0 4px rgba(144,120,82,.18); flex: 0 0 auto; }

.ib-hero-media-inner {
    position: relative;
    display: flex; justify-content: center; align-items: flex-end;
    min-height: 420px;
}
/* фото — без подложки, края мягко растворяются в белой карточке */
.ib-hero-photo {
    position: relative; z-index: 1;
    width: auto; height: auto; max-width: 100%; max-height: 520px;
    -webkit-mask-image: radial-gradient(ellipse 52% 58% at 50% 41%, #000 66%, transparent 100%);
    mask-image: radial-gradient(ellipse 52% 58% at 50% 41%, #000 66%, transparent 100%);
}
/* подпись с именем — передний план */
.ib-hero-name {
    position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%);
    background: #fff; border-radius: 16px; padding: .8rem 1.7rem; text-align: center;
    box-shadow: 0 20px 44px -14px rgba(20, 35, 75, .5);
    border: 1px solid rgba(11, 30, 69, .12);
    white-space: nowrap;
}
.ib-hero-name-t { display: block; font-weight: 800; color: var(--ib-brand); font-size: 1.12rem; line-height: 1.2; }
.ib-hero-name-r { display: block; font-size: .9rem; color: var(--ib-accent-dark); font-weight: 600; margin-top: .15rem; }
.ib-float-chip {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: .6rem;
    background: #fff; border-radius: 14px; padding: .7rem 1rem;
    box-shadow: 0 16px 38px -14px rgba(20,35,75,.34);
    font-size: .82rem; line-height: 1.25; color: #1b2a3a;
    animation: ibFloat 4s ease-in-out infinite;
}
.ib-float-chip b { font-weight: 700; }
.ib-float-ic { width: 30px; height: 30px; border-radius: 50%; background: #1f9d6b; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; }
.ib-float-num { font-size: 1.3rem; font-weight: 800; color: var(--ib-brand); }
.ib-float-chip--1 { left: -8px; top: 12%; }
.ib-float-chip--2 { right: -10px; top: 46%; animation-delay: 1.4s; }
@keyframes ibFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
@media (max-width: 575.98px) {
    .ib-float-chip--1 { left: 0; top: 4px; }
    .ib-float-chip--2 { right: 0; top: 40%; }
    .ib-float-chip { font-size: .72rem; padding: .5rem .7rem; }
    .ib-hero-media-inner { min-height: 360px; }
    .ib-hero-photo { max-height: 380px; }
    .ib-hero-name { white-space: normal; max-width: 84%; padding: .65rem 1.1rem; bottom: 10px; }
    .ib-hero-name-t { font-size: .98rem; }
    .ib-hero-name-r { font-size: .82rem; }
}

/* --- Полоса цифр --- */
.ib-stats-sec { padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(1.5rem,3vw,2.5rem); }
.ib-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(135deg, #0B1E45, #07142E);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 24px 50px -24px rgba(20,35,75,.5);
}
.ib-stat { padding: clamp(1.4rem,3vw,2.4rem) 1rem; text-align: center; position: relative; }
.ib-stat:not(:last-child)::after { content:""; position:absolute; right:0; top:22%; height:56%; width:1px; background: rgba(255,255,255,.14); }
.ib-stat-num { font-size: clamp(1.7rem, 3.4vw, 2.9rem); font-weight: 800; color: var(--ib-accent-bright); line-height: 1; letter-spacing: -.01em; }
.ib-stat-label { margin-top: .5rem; font-size: .85rem; color: rgba(255,255,255,.66); font-weight: 500; }
@media (max-width: 575.98px) {
    .ib-stats { grid-template-columns: repeat(2, 1fr); }
    .ib-stat:nth-child(2)::after { display: none; }
    .ib-stat:nth-child(1), .ib-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* --- Тёмная лента-секция --- */
.ib-sec--dark {
    background: radial-gradient(120% 120% at 80% 0%, #16315C, #07142E 60%);
    margin: clamp(1rem,2.5vw,2rem) 0;
    border-radius: clamp(1.25rem, 3vw, 2.25rem);
    overflow: hidden;
}
.ib-sec--dark .container-main { padding-left: clamp(1.1rem, 4vw, 2.6rem); padding-right: clamp(1.1rem, 4vw, 2.6rem); }
.ib-sec--dark .ib-sec-title { color: #fff; }
.ib-sec--dark .ib-sec-title .text-primary { color: var(--ib-accent-bright) !important; }
.ib-sec--dark .ib-eyebrow { background: var(--ib-accent-soft-d); color: var(--ib-accent-bright); }

/* Зелёный акцент: выделенные слова в заголовках секций и hero */
.ib-sec-title .text-primary,
.ib-hero-title .text-primary { color: var(--ib-accent) !important; }
.ib-sec--dark .ib-svc { background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.12); box-shadow: none; }
.ib-sec--dark .ib-svc:hover { background: rgba(255,255,255,.09) !important; }
.ib-sec--dark .ib-svc-title { color: #fff; }
.ib-sec--dark .ib-step-text { color: rgba(255,255,255,.7); }
.ib-sec--dark .ib-why-ico { background: rgba(255,255,255,.1); }
.ib-sec--dark .ib-why-ico svg { color: #8fb4e0; }

/* Мобилка: в колоночном flex поля .form-floating не должны растягиваться по высоте.
   Тема задаёт .form-floating{flex:1 1 240px}; в flex-column 240px трактуется как
   высота (flex-basis по главной оси) → поля раздувались до 240px и появлялись «дыры». */
@media (max-width: 575.98px) {
    .d-flex.flex-column > .form-floating { flex: 0 0 auto !important; }
}

/* ===== Лого: чуть выше в медальоне ===== */
.ib-logo .ib-vlogo { transform: translateY(-6px); }

/* ===== Золотой блеск на названии (циклический) ===== */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .ib-vlogo-name, .ib-logo-text {
        background-image: linear-gradient(100deg, #C9A14A 0%, #C9A14A 30%, #f6e6b0 44%, #fffaf0 50%, #f6e6b0 56%, #C9A14A 70%, #C9A14A 100%);
        background-size: 250% 100%;
        background-repeat: repeat;
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        animation: ibShine 5s linear infinite;
    }
    .ib-logo-text small {
        -webkit-text-fill-color: rgba(201, 161, 74, .85);
        background: none; animation: none;
    }
}
@keyframes ibShine { 0% { background-position: 145% 0; } 100% { background-position: -45% 0; } }

/* ===== Интро-анимация при загрузке ===== */
.ib-intro {
    position: fixed; inset: 0; z-index: 4000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(7, 15, 34, .5);
    -webkit-backdrop-filter: blur(16px) saturate(.85); backdrop-filter: blur(16px) saturate(.85);
    transition: opacity .65s ease, -webkit-backdrop-filter .65s ease, backdrop-filter .65s ease;
    cursor: pointer;
}
.ib-intro.is-done { opacity: 0; pointer-events: none; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
.ib-intro-badge {
    display: inline-flex !important;
    width: min(92vw, 360px) !important; height: min(92vw, 360px) !important; margin: 0 !important;
    padding: clamp(34px, 12vw, 52px) !important;
    transition: transform 1s cubic-bezier(.66, 0, .2, 1);
    animation: ibBadgeIn .9s cubic-bezier(.2, .8, .2, 1) both;
    will-change: transform;
}
.ib-intro .ib-vlogo { transform: none; max-width: 100%; }
.ib-intro .ib-vlogo-emblem { height: clamp(58px, 20vw, 84px); animation: ibPiece .7s ease both .15s; }
.ib-intro .ib-vlogo-name { font-size: clamp(2rem, 9vw, 2.9rem); margin-top: 14px; animation: ibPiece .7s ease both .35s, ibShine 5s linear infinite; }
.ib-intro .ib-vlogo-rule { width: 78%; margin: 13px 0 10px; }
.ib-intro .ib-vlogo-rule::before, .ib-intro .ib-vlogo-rule::after { transform: scaleX(0); animation: ibRule .7s cubic-bezier(.5, 0, .2, 1) both .62s; }
.ib-intro .ib-vlogo-rule::before { transform-origin: right center; }
.ib-intro .ib-vlogo-rule::after { transform-origin: left center; }
.ib-intro .ib-vlogo-rule i { animation: ibPiece .5s ease both .56s; }
.ib-intro .ib-vlogo-tag { font-size: clamp(.6rem, 2.5vw, .78rem); letter-spacing: .14em; animation: ibPiece .7s ease both .82s; }
@keyframes ibBadgeIn { 0% { opacity: 0; transform: scale(.66); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ibPiece { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes ibRule { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .ib-intro { display: none !important; } }

/* ===== Отзывы — премиальные карточки-цитаты ===== */
.ib-rev-top { display: flex; margin-bottom: clamp(1.3rem, 3vw, 2.2rem); }
.ib-rev-badge { display: inline-flex; align-items: center; gap: .95rem; text-decoration: none; background: #fff; border: 1px solid rgba(11, 30, 69, .12); border-radius: 16px; padding: .75rem 1.3rem; box-shadow: 0 12px 30px -18px rgba(11, 30, 69, .4); transition: transform .2s var(--ib-ease), box-shadow .2s var(--ib-ease); }
.ib-rev-badge:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(11, 30, 69, .5); }
.ib-rev-badge-score { font-size: 2.2rem; font-weight: 800; color: var(--ib-brand); line-height: 1; }
.ib-rev-badge-col { display: flex; flex-direction: column; gap: .2rem; }
.ib-rev-badge-src { font-size: .82rem; color: #64707e; font-weight: 600; }
.ib-rev-stars { color: #F0A62B; letter-spacing: .14em; font-size: 1rem; line-height: 1; }

.ib-rev-grid { column-count: 3; column-gap: clamp(1rem, 2vw, 1.4rem); }
@media (max-width: 991.98px) { .ib-rev-grid { column-count: 2; } }
@media (max-width: 575.98px) { .ib-rev-grid { column-count: 1; } }
.ib-rev-card {
    break-inside: avoid; -webkit-column-break-inside: avoid;
    background: #fff; border-radius: 18px; padding: 1.5rem 1.5rem 1.4rem;
    margin: 0 0 clamp(1rem, 2vw, 1.4rem);
    box-shadow: 0 14px 36px -22px rgba(11, 30, 69, .5);
    border: 1px solid rgba(11, 30, 69, .05);
    position: relative; overflow: hidden;
}
.ib-rev-card::before { content: "\201C"; position: absolute; top: .1rem; right: 1rem; font-family: Georgia, 'Times New Roman', serif; font-size: 3.4rem; line-height: 1; color: rgba(11, 30, 69, .12); pointer-events: none; }
.ib-rev-card .ib-rev-stars { display: block; margin-bottom: .75rem; font-size: 1.05rem; }
.ib-rev-text { margin: 0 0 1.15rem; font-size: .98rem; line-height: 1.55; color: #37424f; }
.ib-rev-author { display: flex; align-items: center; gap: .7rem; }
.ib-rev-ava { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.05rem; }
.ib-rev-meta { display: flex; flex-direction: column; line-height: 1.25; }
.ib-rev-meta b { font-weight: 700; color: #1b2a3a; font-size: .96rem; }
.ib-rev-meta small { color: #8a929e; font-size: .78rem; }

/* ===== Карточка-цитата руководителя (калькулятор) ===== */
.ib-quote-card {
    position: relative; overflow: hidden;
    background: radial-gradient(125% 100% at 82% 0%, #1c3a64, #0B1E45 68%);
    border-radius: 24px;
    padding: clamp(1.8rem, 3vw, 2.6rem);
    box-shadow: 0 26px 54px -32px rgba(11, 30, 69, .65);
    border: 1px solid rgba(255, 255, 255, .14);
    min-height: 560px;
    overflow: visible;
}
.ib-quote-mark { position: relative; z-index: 2; width: 44px; height: 36px; color: var(--ib-accent-bright); opacity: .92; margin-bottom: .8rem; }
.ib-quote-text { position: relative; z-index: 2; max-width: 56%; color: #fff; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.26; font-weight: 400; margin: 0; }
.ib-quote-text::after { content: ""; display: block; width: 56px; height: 2px; background: var(--ib-accent-bright); margin-top: 1.15rem; border-radius: 2px; }
.ib-quote-figure { position: absolute; inset: 0; margin: 0; padding: 0; min-height: 0; z-index: 1; }
.ib-quote-photo {
    position: absolute; bottom: -6px; right: -8%;
    height: min(116%, 700px); width: auto; max-width: none; max-height: none;
    filter: drop-shadow(-14px 18px 26px rgba(11, 30, 69, .4));
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 80%, transparent 98%);
}
.ib-quote-name { z-index: 3; bottom: 16px; left: auto; right: 4%; transform: none; }
/* ===== Блок «ИИ: утренняя сводка в 9:00» ===== */
.ib-ai-card {
    position: relative; overflow: hidden;
    padding: clamp(1.6rem, 4vw, 3.4rem);
    box-shadow: 0 18px 44px -28px rgba(11, 30, 69, .35);
}
.ib-ai-chat {
    background: radial-gradient(125% 100% at 82% 0%, #1c3a64, #0B1E45 68%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 26px 54px -32px rgba(11, 30, 69, .65);
    padding: clamp(1.2rem, 2.2vw, 1.8rem);
    max-width: 520px; margin: 0 auto;
}
.ib-ai-chat-head {
    display: flex; align-items: center; gap: .55rem;
    color: #fff; font-weight: 700; font-size: .92rem;
    margin-bottom: 1rem;
}
.ib-ai-chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fd382; box-shadow: 0 0 0 4px rgba(47, 211, 130, .18); flex: 0 0 auto; }
.ib-ai-chat-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-ai-chat-time { margin-left: auto; font-weight: 500; font-size: .8rem; color: rgba(255,255,255,.55); white-space: nowrap; }
.ib-ai-msg {
    background: #fff; border-radius: 16px 16px 16px 4px;
    padding: 1rem 1.2rem; margin-bottom: .8rem;
    box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .5);
}
.ib-ai-msg-title { font-weight: 700; color: var(--ib-brand); font-size: .95rem; margin-bottom: .6rem; }
.ib-ai-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    font-size: .92rem; color: #4b5563; padding: .3rem 0;
    border-bottom: 1px dashed rgba(11, 30, 69, .12);
}
.ib-ai-row b { color: var(--ib-brand); font-weight: 700; white-space: nowrap; }
.ib-ai-row.ib-ai-total { border-bottom: 0; padding-top: .55rem; font-weight: 700; color: var(--ib-brand); }
.ib-ai-row.ib-ai-total b { font-size: 1.08rem; }
.ib-ai-msg--hint {
    background: #EEF2F8; border: 1px solid rgba(11, 30, 69, .16);
    display: flex; gap: .6rem; align-items: flex-start;
    font-size: .9rem; color: #24354F; line-height: 1.45; margin-bottom: 0;
}
.ib-ai-hint-ico { flex: 0 0 auto; }

/* ===== Блок «Кейсы» ===== */
.ib-case {
    padding: clamp(1.6rem, 4vw, 3.2rem);
    box-shadow: 0 18px 44px -28px rgba(11, 30, 69, .35);
}
.ib-case-tag {
    display: inline-block; font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; color: var(--ib-accent-dark);
    background: var(--ib-accent-soft); padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.ib-case-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.22; margin-bottom: .9rem; }
.ib-case-nums { display: flex; flex-direction: column; }
.ib-case-num {
    display: flex; flex-direction: column; gap: .15rem;
    padding: 1rem 0 1rem 1.3rem;
    border-left: 3px solid var(--ib-accent);
    margin-bottom: .35rem;
}
.ib-case-num b { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; font-weight: 800; color: var(--ib-brand); }
.ib-case-num span { font-size: .92rem; color: #4b5563; }

/* ===== Чекбокс согласия на обработку ПДн ===== */
.ib-agree .form-check-label { font-size: .85rem; line-height: 1.4; color: #4b5563; }
.ib-agree .form-check-input { margin-top: .28em; }
.ib-agree .form-check-input:checked { background-color: var(--ib-brand); border-color: var(--ib-brand); }

/* ===== Уведомление об использовании cookie ===== */
.ib-cookie {
    position: fixed; z-index: 1080;
    left: 16px; right: 16px; bottom: 16px;
    margin: 0 auto; max-width: 720px;
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border-radius: 16px;
    border: 1px solid rgba(11, 30, 69, .1);
    box-shadow: 0 20px 44px -14px rgba(20, 35, 75, .4);
    padding: .9rem 1.2rem;
    opacity: 0; transform: translateY(16px);
    transition: opacity .3s var(--ib-ease), transform .3s var(--ib-ease);
}
.ib-cookie.is-visible { opacity: 1; transform: translateY(0); }
.ib-cookie-text { font-size: .85rem; line-height: 1.45; color: #4b5563; }
.ib-cookie-text a { color: var(--ib-brand); font-weight: 600; }
.ib-cookie .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 575.98px) {
    .ib-cookie { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ===== Монохром: увод фирменного малинового (#BB2649) в тёмно-синий ===== */
.btn-primary, .item-button {
    --bs-btn-bg: #0B1E45; --bs-btn-border-color: #0B1E45;
    --bs-btn-hover-bg: #16315C; --bs-btn-hover-border-color: #16315C;
    --bs-btn-active-bg: #07142E; --bs-btn-active-border-color: #07142E;
    --bs-btn-focus-shadow-rgb: 11, 30, 69;
    --bs-btn-disabled-bg: #0B1E45; --bs-btn-disabled-border-color: #0B1E45;
}
.form-check-input:checked { background-color: var(--ib-brand); border-color: var(--ib-brand); }
.text-primary { color: var(--ib-brand) !important; }
.link-primary-dark-underline { color: var(--ib-brand); }
.link-primary-dark-underline:hover { color: #16315C; }

/* ===== Модальные окна: воздушный стиль ===== */
.modal-backdrop {
    --bs-backdrop-bg: #0B1E45;
    --bs-backdrop-opacity: .55;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.modal.fade .modal-dialog { transform: translateY(26px) scale(.97); transition: transform .32s var(--ib-ease); }
.modal.show .modal-dialog { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog { transform: none; transition: none; }
}

.modal-content {
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 44px 90px -32px rgba(7, 20, 46, .5);
    padding: clamp(1.5rem, 3.5vw, 2.4rem);
}
.modal-header {
    border: 0;
    padding: 0;
    margin-bottom: 1.2rem;
    align-items: flex-start;
    gap: 1rem;
}
.modal-title {
    color: var(--ib-brand);
    font-weight: 800;
    line-height: 1.2;
}
.modal-body { padding: 0; }
.modal-footer { border: 0; padding: 1.3rem 0 0; }

/* круглая кнопка закрытия — в потоке шапки, всегда ровно в её углу */
.modal .btn-close {
    position: static;
    flex: 0 0 auto;
    margin: -2px 0 0 auto;
    width: 38px; height: 38px;
    padding: 0;
    border-radius: 50%;
    background-color: #F0F2F7;
    background-size: .85em;
    opacity: 1;
    transition: background-color .2s var(--ib-ease), transform .2s var(--ib-ease);
}
.modal .btn-close:hover { background-color: #E2E7F0; transform: rotate(90deg); }
.modal .btn-close:focus { box-shadow: 0 0 0 4px rgba(11, 30, 69, .12); }

/* поля ввода: мягкие «наполненные» */
.modal .form-control {
    background: #F4F6FA;
    border: 1.5px solid transparent;
    border-radius: 14px;
    transition: background .2s var(--ib-ease), border-color .2s var(--ib-ease), box-shadow .2s var(--ib-ease);
}
.modal .form-control:focus {
    background: #fff;
    border-color: var(--ib-brand);
    box-shadow: 0 0 0 4px rgba(11, 30, 69, .08);
}
.modal .form-floating > label { color: #7c8494; }

/* сетка кнопок мессенджеров (модалка и формы на странице) */
.ib-mess-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .6rem;
    max-width: 560px;
}
.ib-mess-chip {
    display: flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem .6rem;
    border: 1.5px solid #E3E8F0; border-radius: 14px;
    background: #fff; color: #131a26;
    font-weight: 600; font-size: .95rem; line-height: 1;
    cursor: pointer; margin: 0; user-select: none; -webkit-user-select: none;
    transition: border-color .2s var(--ib-ease), background .2s var(--ib-ease),
                box-shadow .2s var(--ib-ease), transform .15s var(--ib-ease);
}
.ib-mess-chip img { width: 22px; height: 22px; flex: 0 0 auto; }
.ib-mess-chip:hover { border-color: #B9C3D6; transform: translateY(-1px); }
.btn-check:checked + .ib-mess-chip {
    border-color: var(--ib-brand);
    background: rgba(11, 30, 69, .04);
    box-shadow: inset 0 0 0 1px var(--ib-brand);
    color: var(--ib-brand);
}
.btn-check:focus-visible + .ib-mess-chip { box-shadow: 0 0 0 4px rgba(11, 30, 69, .12); }

/* чекбокс согласия */
.ib-agree .form-check-input {
    width: 1.2em; height: 1.2em;
    border: 1.5px solid #C2CBDA; border-radius: .35em;
    margin-top: .16em;
}
