/* Кейс Alexander Bogdanov — главный экран (hero)
   back-bogdanov.webp: 5457×2143 (VP8) — высота блока как у картинки на полную ширину */

body {
    margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bogdanov-case {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Единый фон под hero: один повтор по вертикали; fixed — чтобы совпадал с секцией «Описание» */
.bogdanov-page-bg {
    position: relative;
    background-color: #ffffff;
    background-image: url('../images/cases/Bogdanov/back-bogdanov2.webp');
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
    background-attachment: fixed;
}

.bogdanov-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Высота как у фонового кадра при ширине 100vw */
    min-height: calc(100vw * 2143 / 5457);
}

.bogdanov-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #e8f0f8;
    background-image: url('../images/cases/Bogdanov/back-bogdanov.webp');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    transform-origin: center top;
}

@media (max-width: 1024px) {
    .breadcrumbs {
        padding-top: 16px !important;
    }
}

/* При сужении экрана — лёгкое «приближение» (кадрирование по краям) */
@media (max-width: 1200px) {
    .bogdanov-hero::before {
        transform: scale(1.06);
    }
}

@media (max-width: 768px) {
    .bogdanov-hero::before {
        transform: scale(1.12);
    }
}

@media (max-width: 480px) {
    .bogdanov-hero::before {
        transform: scale(1.18);
    }
}

/* Крошки поверх контента hero: не задаём position — оставляем absolute из breadcrumbs--over-hero */
.bogdanov-hero > .breadcrumbs {
    z-index: 6;
}

.bogdanov-hero__inner {
    position: relative;
    z-index: 1;
}

.bogdanov-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(88px, 10vw, 120px) 20px 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    min-height: calc(100vw * 2143 / 5457);
    box-sizing: border-box;
}

.bogdanov-hero__copy {
    flex: 1 1 44%;
    min-width: 0;
    max-width: 480px;
    align-self: center;
}

.bogdanov-hero__logo {
    display: block;
    width: 100%;
    max-width: min(320px, 100%);
    height: auto;
    margin: 0 0 clamp(20px, 3vw, 32px);
}

.bogdanov-hero__title {
    margin: 0 0 clamp(12px, 2vw, 20px);
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3b66a8;
}

.bogdanov-hero__subtitle {
    margin: 0;
    font-size: clamp(13px, 1.35vw, 16px);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3b66a8;
}

.bogdanov-hero__visual {
    flex: 1 1 52%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
}

.bogdanov-hero__phones {
    display: block;
    width: 100%;
    max-width: min(640px, 90%);
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 24px 48px rgba(45, 74, 120, 0.22));
}

@media (max-width: 900px) {
    .bogdanov-hero__inner {
        flex-direction: column;
        text-align: center;
        min-height: min(calc(90vw * 2143 / 5457), 520px);
        padding-top: clamp(60px, 18vw, 80px);
    }

    .bogdanov-hero__copy {
        max-width: none;
        order: 1;
        align-self: center;
    }

    .bogdanov-hero__logo {
        margin-left: auto;
        margin-right: auto;
    }

    .bogdanov-hero__visual {
        order: 2;
        width: 100%;
        align-items: flex-end;
    }

    .bogdanov-hero__phones {
        max-width: min(480px, 100%);
    }
}

/* ——— Заголовок секции с линиями (как sb-internal-header на Street Beat) ——— */

.bogdanov-section-header {
    width: 100%;
    padding: 80px 20px 0;
    box-sizing: border-box;
}

.bogdanov-section-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.bogdanov-section-header__line {
    flex: 1;
    min-width: 0;
    height: 1px;
    background: #3b66a8;
    opacity: 0.5;
}

.bogdanov-section-header__title {
    flex-shrink: 0;
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: #3b66a8;
    text-align: center;
    line-height: 1.3;
    max-width: min(90vw, 520px);
}

.bogdanov-section-header--follows {
    padding-top: 40px;
}

.bogdanov-section-header--follows .bogdanov-section-header__inner {
    padding-bottom: 36px;
}

@media (max-width: 600px) {
    .bogdanov-section-header--follows {
        padding-top: 32px;
    }
}

/* ——— О проекте ——— */

.bogdanov-about {
    background: transparent;
}

.bogdanov-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    box-sizing: border-box;
}

.bogdanov-about__body {
    max-width: 900px;
    margin: 0 auto;
}

.bogdanov-about__text {
    margin: 0 0 1.15em;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #3b66a8;
}

.bogdanov-about__text:last-child {
    margin-bottom: 0;
}

.bogdanov-result {
    background: transparent;
}

/* ——— Обсудить проект (форма) ——— */

.bogdanov-discuss {
    display: block;
    position: relative;
    z-index: 2;
    clear: both;
    background-color: #3055b1;
    background-image: url('../images/cases/Bogdanov/back-bogdanov2.webp');
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
    background-attachment: fixed;
}

.bogdanov-discuss__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 88px) 20px clamp(56px, 10vw, 96px);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bogdanov-discuss__card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(28px, 5vw, 40px) clamp(24px, 5vw, 40px) clamp(32px, 5vw, 44px);
    box-sizing: border-box;
    box-shadow: 0 20px 48px rgba(24, 45, 90, 0.18);
}

.bogdanov-discuss__title {
    margin: 0 0 clamp(24px, 4vw, 32px);
    font-size: clamp(22px, 3.2vw, 28px);
    font-weight: 700;
    color: #3b66a8;
    text-align: left;
    line-height: 1.25;
}

.bogdanov-discuss__form {
    display: flex;
    flex-direction: column;
}

.bogdanov-discuss__field {
    margin-bottom: clamp(18px, 3vw, 24px);
}

.bogdanov-discuss__field:last-of-type {
    margin-bottom: clamp(28px, 4vw, 36px);
}

.bogdanov-discuss__input {
    display: block;
    width: 100%;
    padding: 10px 0 12px;
    font-family: inherit;
    font-size: 16px;
    color: #3b66a8;
    border: none;
    border-bottom: 1px solid #a4c8ff;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
}

.bogdanov-discuss__input::placeholder {
    color: #8faed8;
    opacity: 1;
}

.bogdanov-discuss__input:focus {
    outline: none;
    border-bottom-color: #3b66a8;
}

.bogdanov-discuss__submit {
    align-self: flex-start;
    margin-top: 4px;
    padding: 12px 32px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #3b66a8;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.bogdanov-discuss__submit:hover:not(:disabled) {
    background: #2d5088;
}

.bogdanov-discuss__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Чекбокс согласия с политикой (как на странице контактов) */
.bogdanov-discuss .checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 clamp(20px, 3vw, 28px);
    padding: 0;
    cursor: pointer;
    position: relative;
}

.bogdanov-discuss .checkbox-container input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 2px;
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.bogdanov-discuss .checkbox-container .checkmark {
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #a4c8ff;
    border-radius: 4px;
    margin-top: 2px;
}

.bogdanov-discuss .checkbox-container:hover input[type="checkbox"] ~ .checkmark,
.bogdanov-discuss .checkbox-container input[type="checkbox"]:focus-visible ~ .checkmark {
    border-color: #3b66a8;
}

.bogdanov-discuss .checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background-color: #3b66a8;
    border-color: #3b66a8;
}

.bogdanov-discuss .checkbox-container .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bogdanov-discuss .checkbox-container input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

.bogdanov-discuss .checkbox-text {
    font-size: 14px;
    line-height: 1.45;
    color: #5a6d8a;
}

.bogdanov-discuss .privacy-link {
    color: #3b66a8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bogdanov-discuss .privacy-link:hover {
    color: #2d5088;
}

@media (max-width: 480px) {
    .bogdanov-discuss__card {
        border-radius: 16px;
        padding: 24px 20px 28px;
    }
}

@media (max-width: 600px) {
    .bogdanov-section-header {
        padding-top: 48px;
    }

    .bogdanov-section-header__inner {
        flex-direction: column;
        gap: 16px;
        padding-bottom: 28px;
    }

    .bogdanov-section-header__line {
        width: 60px;
        flex: none;
        margin: 0 auto;
    }

    .bogdanov-section-header__title {
        font-size: 24px;
    }

    .bogdanov-about__container {
        padding-bottom: 56px;
    }

    .bogdanov-about__text {
        font-size: 16px;
    }
}

/* ——— Витрина с баннерами ——— */

.bogdanov-showcase {
    background: transparent;
}

.bogdanov-showcase__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    box-sizing: border-box;
}

.bogdanov-showcase__media {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bogdanov-showcase__video {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 24px;
    border: 1px solid #3b66a8;
}

.bogdanov-showcase__copy {
    flex: 1 1 0;
    min-width: 0;
}

.bogdanov-showcase__title {
    margin: 0 0 clamp(16px, 2vw, 24px);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    color: #3b66a8;
}

.bogdanov-showcase__text {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: #3b66a8;
}

@media (max-width: 700px) {
    .bogdanov-showcase__inner {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 56px;
    }

    .bogdanov-showcase__media,
    .bogdanov-showcase__copy {
        flex: none;
        width: 100%;
    }

    .bogdanov-showcase__media {
        align-self: center;
        order: 2;
    }

    .bogdanov-showcase__copy {
        order: 1;
    }

    .bogdanov-showcase__text {
        font-size: 16px;
    }
}

/* ——— Раздельная корзина ——— */

.bogdanov-split-cart {
    background: transparent;
}

.bogdanov-split-cart__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    box-sizing: border-box;
}

.bogdanov-split-cart__copy {
    flex: 1 1 0;
    min-width: 0;
}

.bogdanov-split-cart__media {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bogdanov-split-cart__img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
}

.bogdanov-split-cart__title {
    margin: 0 0 clamp(16px, 2vw, 24px);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    color: #3b66a8;
}

.bogdanov-split-cart__text {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: #3b66a8;
}

@media (max-width: 700px) {
    .bogdanov-split-cart__inner {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 56px;
    }

    .bogdanov-split-cart__media,
    .bogdanov-split-cart__copy {
        flex: none;
        width: 100%;
    }

    .bogdanov-split-cart__media {
        align-self: center;
        order: 2;
    }

    .bogdanov-split-cart__copy {
        order: 1;
    }

    .bogdanov-split-cart__text {
        font-size: 16px;
    }
}

/* ——— Упаковка товара ——— */

.bogdanov-packaging {
    background: transparent;
}

.bogdanov-packaging__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
}

.bogdanov-packaging__media {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bogdanov-packaging__img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
}

.bogdanov-packaging__copy {
    flex: 1 1 0;
    min-width: 0;
}

.bogdanov-packaging__title {
    margin: 0 0 clamp(16px, 2vw, 24px);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    color: #3b66a8;
}

.bogdanov-packaging__text {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: #3b66a8;
}

@media (max-width: 700px) {
    .bogdanov-packaging__inner {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 56px;
    }

    .bogdanov-packaging__media,
    .bogdanov-packaging__copy {
        flex: none;
        width: 100%;
    }

    .bogdanov-packaging__media {
        align-self: center;
        order: 2;
    }

    .bogdanov-packaging__copy {
        order: 1;
    }

    .bogdanov-packaging__text {
        font-size: 16px;
    }
}

/* ——— Программа лояльности ——— */

.bogdanov-loyalty {
    background-color: #3055b1;
    background-image: url('../images/cases/Bogdanov/back-bogdanov2.webp');
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
    background-attachment: fixed;
}

.bogdanov-loyalty__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    box-sizing: border-box;
}

.bogdanov-loyalty__media {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bogdanov-loyalty__img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
}

.bogdanov-loyalty__copy {
    flex: 1 1 0;
    min-width: 0;
}

.bogdanov-loyalty__title {
    margin: 0 0 clamp(16px, 2vw, 24px);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.bogdanov-loyalty__text {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
}

@media (max-width: 700px) {
    .bogdanov-loyalty__inner {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 56px;
    }

    .bogdanov-loyalty__media,
    .bogdanov-loyalty__copy {
        flex: none;
        width: 100%;
    }

    .bogdanov-loyalty__media {
        align-self: center;
        order: 2;
    }

    .bogdanov-loyalty__copy {
        order: 1;
    }

    .bogdanov-loyalty__text {
        font-size: 16px;
    }
}

/* ——— Подробное описание товара ——— */

/* «Подробное описание»: синий под слоем узора (белый центр PNG иначе полностью перекрывает #3055B1) */
.bogdanov-product-detail {
    position: relative;
}

.bogdanov-product-detail__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    box-sizing: border-box;
}

.bogdanov-product-detail__media {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bogdanov-product-detail__img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
}

.bogdanov-product-detail__copy {
    flex: 1 1 0;
    min-width: 0;
}

.bogdanov-product-detail__title {
    margin: 0 0 clamp(16px, 2vw, 24px);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    color: #3b66a8;
}

.bogdanov-product-detail__text {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: #3b66a8;
}

@media (max-width: 700px) {
    .bogdanov-product-detail__inner {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 56px;
    }

    .bogdanov-product-detail__media,
    .bogdanov-product-detail__copy {
        flex: none;
        width: 100%;
    }

    .bogdanov-product-detail__media {
        align-self: center;
        order: 2;
    }

    .bogdanov-product-detail__copy {
        order: 1;
    }

    .bogdanov-product-detail__text {
        font-size: 16px;
    }
}

/* ——— Бизнес-задачи ——— */

.bogdanov-tasks {
    position: relative;
    background: transparent;
}

.bogdanov-tasks > * {
    position: relative;
    z-index: 1;
}

.bogdanov-tasks .bogdanov-section-header__title {
    color: #3b66a8;
    max-width: min(92vw, 680px);
}

.bogdanov-tasks__wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 80px;
    box-sizing: border-box;
}

.bogdanov-tasks__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(28px, 4vw, 44px) clamp(18px, 2.2vw, 28px);
    align-items: start;
}

.bogdanov-tasks__item {
    position: relative;
    margin: 0;
    padding: clamp(12px, 1.5vw, 20px) 8px clamp(12px, 1.5vw, 20px) clamp(18px, 2vw, 28px);
    min-width: 0;
}

.bogdanov-tasks__item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    border-radius: 50%;
    background: #D5F0FC;
    z-index: 0;
    pointer-events: none;
}

.bogdanov-tasks__item:nth-child(1) {
    grid-column: 1 / 5;
}

.bogdanov-tasks__item:nth-child(2) {
    grid-column: 5 / 9;
}

.bogdanov-tasks__item:nth-child(3) {
    grid-column: 9 / 13;
}

.bogdanov-tasks__item:nth-child(4) {
    grid-column: 3 / 7;
}

.bogdanov-tasks__item:nth-child(5) {
    grid-column: 7 / 11;
}

.bogdanov-tasks__text {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    color: #3b66a8;
    text-align: left;
}

@media (max-width: 900px) {
    .bogdanov-tasks__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bogdanov-tasks__item:nth-child(1),
    .bogdanov-tasks__item:nth-child(2),
    .bogdanov-tasks__item:nth-child(3),
    .bogdanov-tasks__item:nth-child(4),
    .bogdanov-tasks__item:nth-child(5) {
        grid-column: 1 / -1;
    }

    .bogdanov-tasks__item::before {
        width: clamp(40px, 11vw, 48px);
        height: clamp(40px, 11vw, 48px);
        left: -6px;
        background: #a4c8ff;
    }

    .bogdanov-tasks__wrap {
        padding-bottom: 56px;
    }

    .bogdanov-tasks__text {
        font-size: 16px;
    }
}

/* Телефоны в макетах: на узких экранах единая ширина */
@media (max-width: 480px) {
    .bogdanov-hero__phones {
        width: 100%;
        max-width: 260px;
    }

    .bogdanov-showcase__video {
        width: 100%;
        max-width: 240px;
    }

    .bogdanov-split-cart__img,
    .bogdanov-packaging__img,
    .bogdanov-loyalty__img,
    .bogdanov-product-detail__img {
        width: 100%;
        max-width: 260px;
    }
}
