/* =========================================================
   BankiBiznes — новая главная страница v1
   Файл: /assets/css/bb-front-page.css
   ========================================================= */

.bb-home {
    --bb-home-blue: #1789ee;
    --bb-home-blue-dark: #0d6fca;
    --bb-home-navy: #123047;
    --bb-home-text: #253f50;
    --bb-home-muted: #6f8391;
    --bb-home-line: #dbe8f1;
    --bb-home-soft: #f5f9fc;
    --bb-home-white: #ffffff;
    background: var(--bb-home-white);
    color: var(--bb-home-text);
    font-family: "Raleway", Arial, sans-serif;
}

.bb-home *,
.bb-home *::before,
.bb-home *::after { box-sizing: border-box; }

.bb-home a { color: inherit; text-decoration: none; }

.bb-home-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.bb-home-section { padding: 42px 0; }
.bb-home-section--soft { background: #fbfdff; }

.bb-home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.bb-home-section-head h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--bb-home-navy);
    font-size: 30px !important;
    font-weight: 700;
    line-height: 1.15 !important;
    letter-spacing: -0.025em;
}

.bb-home-section-link {
    flex: 0 0 auto;
    color: var(--bb-home-blue) !important;
    font-size: 14px;
    font-weight: 700;
}

.bb-home-section-link:hover { color: var(--bb-home-blue-dark) !important; }
.bb-home-section-link--disabled { cursor: default; opacity: 0.55; }

/* HERO */
.bb-home-hero {
    overflow: hidden;
    border-bottom: 1px solid #e6eff5;
    background:
        radial-gradient(circle at 80% 30%, rgba(23, 137, 238, 0.10), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f4f9fd 100%);
}

.bb-home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: center;
    gap: 72px;
    min-height: 360px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.bb-home-eyebrow {
    margin-bottom: 12px;
    color: var(--bb-home-blue);
    font-size: 14px;
    font-weight: 700;
}

.bb-home-hero h1 {
    max-width: 720px;
    margin: 0 !important;
    padding: 0 !important;
    color: #0c2234;
    font-size: 48px !important;
    font-weight: 700;
    line-height: 1.08 !important;
    letter-spacing: -0.035em;
}

.bb-home-hero__copy > p {
    max-width: 690px;
    margin: 20px 0 0;
    color: #587080;
    font-size: 18px;
    line-height: 1.6;
}

.bb-home-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 13px 18px;
    border-radius: 8px;
    background: var(--bb-home-blue);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(23, 137, 238, 0.16);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.bb-home-button:hover {
    transform: translateY(-1px);
    background: var(--bb-home-blue-dark);
    box-shadow: 0 10px 24px rgba(23, 137, 238, 0.20);
}

.bb-home-hero__panel {
    position: relative;
    padding: 28px;
    overflow: hidden;
    border: 1px solid #dceaf4;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 50px rgba(34, 73, 102, 0.08);
}

.bb-home-hero__panel::after {
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(23, 137, 238, 0.08);
    content: "";
}

.bb-home-hero__panel-brand {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    color: var(--bb-home-navy);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.bb-home-hero__panel-brand span { color: var(--bb-home-blue); }

.bb-home-hero__panel-title {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
    color: #6d8290;
    font-size: 14px;
}

.bb-home-hero__step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    border-top: 1px solid #e6eef3;
}

.bb-home-hero__step span {
    color: var(--bb-home-blue);
    font-size: 13px;
    font-weight: 700;
}

.bb-home-hero__step strong {
    color: #28485c;
    font-size: 15px;
    font-weight: 650;
}

/* АКТУАЛЬНО */
.bb-home-section--actual { padding-top: 36px; }

.bb-home-actual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.95fr);
    gap: 22px;
}

.bb-home-feature {
    position: relative;
    display: block;
    min-height: 420px;
    overflow: hidden;
    border-radius: 14px;
    background: #173145;
}

.bb-home-feature > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.bb-home-feature:hover > img { transform: scale(1.025); }

.bb-home-feature__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 23, 34, 0.04) 24%, rgba(7, 23, 34, 0.86) 100%);
}

.bb-home-feature__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    color: #fff;
}

.bb-home-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgba(14, 48, 72, 0.84);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.bb-home-feature__title {
    max-width: 720px;
    color: #fff;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.bb-home-feature__excerpt {
    max-width: 700px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.5;
}

.bb-home-feature__more {
    margin-top: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.bb-home-actual-side {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bb-home-side-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e0eaf1;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(40, 70, 90, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.bb-home-side-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(40, 70, 90, 0.09);
}

.bb-home-side-card__image { min-height: 100%; overflow: hidden; }

.bb-home-side-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-home-side-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
}

.bb-home-chip--light {
    margin-bottom: 7px;
    padding: 0;
    background: transparent;
    color: var(--bb-home-blue);
    font-size: 10px;
}

.bb-home-side-card__title {
    display: -webkit-box;
    overflow: hidden;
    color: #203d50;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* ПОСЛЕДНИЕ МАТЕРИАЛЫ */
.bb-home-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.bb-home-article-card {
    overflow: hidden;
    border: 1px solid #e0eaf1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(40, 70, 90, 0.045);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.bb-home-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(40, 70, 90, 0.09);
}

.bb-home-article-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 8.7;
    overflow: hidden;
    background: #edf3f7;
}

.bb-home-article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.bb-home-article-card:hover .bb-home-article-card__image img { transform: scale(1.025); }

.bb-home-article-card__image .bb-home-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    margin: 0;
}

.bb-home-article-card__body {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    padding: 17px 18px 16px;
}

.bb-home-article-card__title {
    display: -webkit-box;
    overflow: hidden;
    color: #1a374a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bb-home-article-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 9px;
    color: #6a7f8d;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bb-home-article-card__date {
    margin-top: auto;
    padding-top: 14px;
    color: #91a1ac;
    font-size: 12px;
}

/* ТЕМЫ */
.bb-home-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bb-home-topic {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 14px;
    min-height: 94px;
    padding: 17px 18px;
    border: 1px solid #dfeaf1;
    border-radius: 11px;
    background: #fff;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.bb-home-topic:hover {
    transform: translateY(-2px);
    border-color: #bfddf3;
    box-shadow: 0 9px 23px rgba(38, 80, 110, 0.07);
}

.bb-home-topic__icon,
.bb-home-solution__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: #edf7ff;
    color: var(--bb-home-blue);
    font-size: 18px;
    font-weight: 800;
}

.bb-home-topic__copy,
.bb-home-solution__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.bb-home-topic__copy strong,
.bb-home-solution__copy strong {
    color: #214054;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.bb-home-topic__copy span,
.bb-home-solution__copy span {
    margin-top: 4px;
    color: #768a97;
    font-size: 12px;
    line-height: 1.4;
}

.bb-home-topic__arrow,
.bb-home-solution__arrow {
    color: var(--bb-home-blue);
    font-size: 19px;
}

/* ПРАКТИКА */
.bb-home-practice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.bb-home-practice-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.bb-home-practice-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #edf3f7;
}

.bb-home-practice-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.bb-home-practice-card:hover .bb-home-practice-card__image img { transform: scale(1.025); }

.bb-home-practice-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 12px;
    color: #1c3c51;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bb-home-practice-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 7px;
    color: #718692;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* БАНКОВСКИЕ РЕШЕНИЯ */
.bb-home-solutions {
    border-top: 1px solid #dcebf5;
    border-bottom: 1px solid #dcebf5;
    background: linear-gradient(180deg, #f3f9fe 0%, #eaf5fd 100%);
}

.bb-home-solution-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bb-home-solution {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 118px;
    padding: 18px;
    border: 1px solid #d5e6f2;
    border-radius: 11px;
    background: #fff;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.bb-home-solution:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(38, 80, 110, 0.08);
}

.bb-home-consult {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
    padding: 17px 20px;
    border: 1px solid #d5e6f2;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.84);
}

.bb-home-consult > div { display: flex; flex-direction: column; }

.bb-home-consult strong { color: #244459; font-size: 15px; }

.bb-home-consult span {
    margin-top: 3px;
    color: #768a97;
    font-size: 12px;
}

.bb-home-consult__phone {
    flex: 0 0 auto;
    padding: 11px 16px;
    border-radius: 8px;
    background: var(--bb-home-blue);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
}

/* TELEGRAM */
.bb-home-telegram-wrap { padding-top: 34px; padding-bottom: 34px; }

.bb-home-telegram {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 150px;
    overflow: hidden;
    padding: 26px 30px;
    border: 1px solid #d9eaf5;
    border-radius: 16px;
    background:
        radial-gradient(circle at 85% 10%, rgba(23, 137, 238, 0.12), transparent 32%),
        linear-gradient(135deg, #f5fbff 0%, #ffffff 62%);
    box-shadow: 0 8px 28px rgba(38, 80, 110, 0.06);
}

.bb-home-telegram__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: var(--bb-home-blue);
    color: #fff;
    font-size: 27px;
    transform: rotate(-12deg);
}

.bb-home-telegram__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.bb-home-telegram__brand {
    color: var(--bb-home-blue);
    font-size: 12px;
    font-weight: 700;
}

.bb-home-telegram__copy strong {
    margin-top: 2px;
    color: #15374e;
    font-size: 23px;
    line-height: 1.2;
}

.bb-home-telegram__copy > span:not(.bb-home-telegram__brand):not(.bb-home-telegram__more) {
    max-width: 650px;
    margin-top: 6px;
    color: #718692;
    font-size: 13px;
    line-height: 1.45;
}

.bb-home-telegram__more {
    margin-top: 11px;
    color: var(--bb-home-blue);
    font-size: 13px;
    font-weight: 700;
}

.bb-home-telegram__tags {
    display: flex;
    max-width: 250px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.bb-home-telegram__tags span {
    padding: 8px 12px;
    border: 1px solid #d7e8f4;
    border-radius: 999px;
    background: #fff;
    color: #577080;
    font-size: 12px;
    font-weight: 650;
}

.bb-home-empty {
    margin: 0;
    padding: 20px;
    border: 1px solid #e1eaf0;
    border-radius: 10px;
    background: #fafcfd;
    color: #748895;
}

@media (max-width: 991px) {
    .bb-home-shell { width: min(100% - 36px, 900px); }

    .bb-home-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .bb-home-hero h1 { max-width: 760px; font-size: 42px !important; }

    .bb-home-hero__panel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0 16px;
    }

    .bb-home-hero__panel-brand,
    .bb-home-hero__panel-title { grid-column: 1 / -1; }

    .bb-home-hero__step { grid-template-columns: 34px 1fr; }

    .bb-home-actual-grid { grid-template-columns: 1fr; }
    .bb-home-feature { min-height: 390px; }

    .bb-home-actual-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .bb-home-side-card { grid-template-columns: 1fr; }
    .bb-home-side-card__image { aspect-ratio: 16 / 8; }

    .bb-home-latest-grid,
    .bb-home-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .bb-home-practice-grid,
    .bb-home-solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .bb-home-shell { width: calc(100% - 32px); }
    .bb-home-section { padding: 32px 0; }

    .bb-home-section-head {
        gap: 14px;
        margin-bottom: 16px;
    }

    .bb-home-section-head h2 { font-size: 25px !important; }
    .bb-home-section-link { font-size: 12px; }

    .bb-home-hero__grid {
        gap: 24px;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .bb-home-eyebrow { margin-bottom: 9px; }

    .bb-home-hero h1 {
        font-size: 34px !important;
        line-height: 1.1 !important;
    }

    .bb-home-hero__copy > p {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.55;
    }

    .bb-home-button {
        margin-top: 20px;
        padding: 12px 15px;
        font-size: 14px;
    }

    .bb-home-hero__panel { display: block; padding: 22px; }
    .bb-home-hero__panel-brand { font-size: 20px; }
    .bb-home-hero__panel-title { margin-bottom: 16px; }

    .bb-home-feature { min-height: 390px; }
    .bb-home-feature__content { padding: 22px; }
    .bb-home-feature__title { font-size: 24px; }
    .bb-home-feature__excerpt { font-size: 14px; }

    .bb-home-actual-side,
    .bb-home-latest-grid,
    .bb-home-topic-grid,
    .bb-home-practice-grid,
    .bb-home-solution-grid { grid-template-columns: 1fr; }

    .bb-home-side-card {
        grid-template-columns: 120px minmax(0, 1fr);
        min-height: 108px;
    }

    .bb-home-side-card__image { aspect-ratio: auto; }
    .bb-home-article-card__body { min-height: 0; }

    .bb-home-practice-card {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 14px;
    }

    .bb-home-practice-card__image {
        grid-row: 1 / 3;
        aspect-ratio: 1 / 0.82;
    }

    .bb-home-practice-card__title { margin-top: 3px; }
    .bb-home-practice-card__excerpt { margin-top: 6px; }

    .bb-home-consult {
        align-items: stretch;
        flex-direction: column;
    }

    .bb-home-consult__phone {
        width: 100%;
        text-align: center;
    }

    .bb-home-telegram {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 15px;
        padding: 22px 20px;
    }

    .bb-home-telegram__icon {
        width: 48px;
        height: 48px;
        font-size: 23px;
    }

    .bb-home-telegram__copy strong { font-size: 20px; }
    .bb-home-telegram__tags { display: none; }
}

@media (max-width: 379px) {
    .bb-home-shell { width: calc(100% - 24px); }
    .bb-home-hero h1 { font-size: 31px !important; }

    .bb-home-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .bb-home-feature { min-height: 370px; }
    .bb-home-side-card { grid-template-columns: 106px minmax(0, 1fr); }
}
