/* ═══════════════════════════════════════════
   ABOUT — страница о бренде
   ═══════════════════════════════════════════ */

.page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
    padding: 3px;
}

/* ─── Основной контент ─── */
.about-content {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 410px;
    grid-template-rows: 1fr;
    grid-template-areas: 'text img';
    gap: 24px;
}

.about-text-desktop {
    grid-area: text;
}

/* Мобильные текстовые блоки скрыты на десктопе */
.about-text-1,
.about-text-2 {
    display: none;
}

.about-img-wrap {
    grid-area: img;
}

/* Мобильные картинки скрыты на десктопе */
.about-img-mob {
    display: none;
}

/* ─── Текстовые блоки ─── */
.about-text-wrap {
    position: relative;
    min-height: 0;
}

.about-text {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.about-text-title {
    font-family: var(--font-kiril);
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
    line-height: 125%;
    text-transform: uppercase;
}

.about-text-body {
    font-family: var(--font-kiril);
    font-size: 20px;
    color: var(--text);
    line-height: 125%;
}

/* ─── Блок с картинкой (десктоп) ─── */
.about-img-wrap {
    position: relative;
}

.about-img {
    height: 100%;
    padding: 12px;
    display: grid;
    place-items: center;
}

.about-img-title {
    font-family: var(--font-latin);
    font-size: 28px;
    font-weight: 400;
    color: var(--text);
    text-align: center;
    text-transform: uppercase;
}

.about-img-visual {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.about-img-photo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(255, 238, 0, 0.4)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.about-img-photo.old {
    width: auto;
    height: 420px;
}

.about-img-photo.new {
    display: none;
    width: auto;
    height: 527px;
}

.about-img-caption {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-latin);
    font-size: 24px;
    font-weight: 400;
    color: var(--text);
    text-transform: uppercase;
    width: fit-content;
    min-width: 310px;
    text-align: center;
}

.about-desk-caption {
    width: fit-content;
}

.about-desk-caption .about-img-caption--upgrade {
    background: #000;
    color: var(--core);
    font-family: var(--font-latin);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 10px 12px;
    text-align: center;
}

.about-desk-loader {
    height: 9px;
    background: repeating-linear-gradient(-45deg, #2a2a2a 0, #2a2a2a 4px, #111416 4px, #111416 8px);
}

.about-desk-bar {
    background: repeating-linear-gradient(-45deg, var(--core) 0, var(--core) 4px, var(--bg-alt) 4px, var(--bg-alt) 8px);
    clip-path: inset(0 100% 0 0);
    transition: none;
}

@keyframes caption-dots {
    to {
        clip-path: inset(0 -34% 0 0);
    }
}

.caption-dots {
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    animation: caption-dots 1s steps(4) infinite;
}

/* ═══════════════════════════════════════════
   ПЛАНШЕТ — ≤ 1200px
   ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr 320px;
        gap: 16px;
    }

    .about-text-title,
    .about-text-body {
        font-size: 16px;
    }

    .about-img-photo.old {
        height: 340px;
    }
    .about-img-photo.new {
        height: 320px;
    }

    .about-img-caption {
        font-size: 18px;
    }
}

/* ═══════════════════════════════════════════
   МОБИЛЬ — ≤ 900px
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    html,
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .page {
        overflow: visible;
        flex: none;
        gap: 12px;
    }

    .page-back-wrap {
        display: none;
    }

    /* Сброс грида — вертикальная колонка */
    .about-content {
        display: flex;
        flex-direction: column;
        flex: none;
        gap: 24px;
        overflow: visible;
        margin-bottom: 50px;
    }

    /* Десктопный блок картинки скрыт */
    .about-img-wrap {
        display: none;
    }

    /* Десктопный текстовый блок скрыт */
    .about-text-desktop {
        display: none;
    }

    /* Порядок: img1 → text1 → img2 → text2 */
    .about-img-mob--1 {
        order: 1;
    }
    .about-text-1 {
        display: block;
        order: 2;
    }
    .about-img-mob--2 {
        order: 3;
    }
    .about-text-2 {
        display: block;
        order: 4;
    }

    /* ─── Мобильные блоки картинок ─── */
    .about-img-mob {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .about-img-mob-visual {
        position: relative;
        flex: 1;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
    }

    .about-img-mob-photo {
        width: 350px;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 0 24px rgba(255, 238, 0, 0.4)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
    }

    .about-img-mob--2 .about-img-mob-photo {
        width: 90%;
        max-width: 320px;
    }

    .about-img-mob--2 .about-img-mob-photo.about-mob2-old {
        width: 60%;
    }

    /* Second mob image — анимация upgrade */
    .about-img-mob--2 .about-img-mob-visual {
        height: 310px;
        flex: none;
    }

    /* Новая бутылка и caption скрыты до завершения анимации */
    .about-mob2-new {
        display: none;
    }
    .about-mob2-caption {
        display: none;
    }

    .about-img-caption {
        position: absolute;
        top: 60%;
        left: 50%;
        transform: translateX(-50%);
    }

    .about-img-caption--upgrade {
        background: #000;
        color: var(--core);
        font-family: var(--font-latin);
        font-size: 18px;
        font-weight: 900;
        text-transform: uppercase;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 7px 9px;
    }

    .about-mob2-imgs {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .about-mob2-loader {
        height: 9px;
        background: repeating-linear-gradient(-45deg, #2a2a2a 0, #2a2a2a 4px, #111416 4px, #111416 8px);
    }

    .about-mob2-bar {
        background: repeating-linear-gradient(-45deg, var(--core) 0, var(--core) 4px, var(--bg-alt) 4px, var(--bg-alt) 8px);
        transition: none;
    }

    /* ─── Текстовые блоки ─── */
    .about-text {
        height: auto;
        overflow: visible;
        padding: 30px;
    }

    .about-text-title,
    .about-text-body {
        font-size: 14px;
        line-height: 1.55;
    }
}
