/* Кейс Lusio — hero: бежевый блок + фото, градиент на стыке */

.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;
}

body.lusio-page {
    margin: 0;
    background: #f5f2ef;
}

.lusio-hero {
    /*
      Десктоп: высота hero — 90vh; фото back-lusio.webp через cover на всю область.
      --lusio-*: измерения файла, используются в моб. min-height (ниже).
    */
    --lusio-bg-w: 2428;
    --lusio-bg-h: 1267;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    height: 92vh;
    min-height: 90vh;
    padding: 0;
    background-color: #dbcab9;
    background-image:
        linear-gradient(
            90deg,
            #dbcab9 0%,
            #dbcab9 34%,
            rgba(219, 202, 185, 0.82) 46%,
            rgba(219, 202, 185, 0.35) 54%,
            rgba(219, 202, 185, 0) 62%
        ),
        url('../images/cases/Lusio/back-lusio.webp');
    background-size: cover, cover;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
}

/*
  Слой с фото: только cover или auto 100% — иначе при width% + auto высота кадра может быть
  меньше высоты секции (после min-height на мобильных) и снизу остаётся полоска фона.
*/
@media (max-width: 1200px) {
    .lusio-hero {
        background-size: cover, cover;
        background-position: left center, right center;
    }
}

.lusio-hero__breadcrumbs {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 92px 20px 16px;
    box-sizing: border-box;
    text-align: left;
}

.lusio-hero__breadcrumbs a,
.lusio-hero__breadcrumbs span {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.lusio-hero__body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    box-sizing: border-box;
    min-height: 0;
}

.lusio-hero__content {
    max-width: min(520px, 46%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(18px, 3vw, 28px);
}

.lusio-hero__logo {
    display: block;
    width: min(560px, 90vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.12));
}

.lusio-hero__subtitle {
    margin: 0;
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(24px, 2.55vw, 32px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    /* На мобильных — не 90vh: своя min-height под контент и кадр */
    .lusio-hero {
        height: auto;
        aspect-ratio: unset;
        min-height: max(
            calc(100vw * var(--lusio-bg-h) / var(--lusio-bg-w) * 1.38),
            70vh,
            520px
        );
        background-image:
            linear-gradient(
                165deg,
                rgba(219, 202, 185, 0.97) 0%,
                rgba(219, 202, 185, 0.55) 42%,
                rgba(219, 202, 185, 0.15) 58%,
                rgba(219, 202, 185, 0) 72%
            ),
            url('../images/cases/Lusio/back-lusio.webp');
        background-size: cover, cover;
        background-position: center top, right center;
    }

    .lusio-hero__breadcrumbs {
        padding: 80px 16px 12px;
    }

    .lusio-hero__body {
        align-items: flex-end;
        padding: 32px 20px 40px;
    }

    .lusio-hero__content {
        max-width: 100%;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .lusio-hero {
        min-height: max(
            calc(100vw * var(--lusio-bg-h) / var(--lusio-bg-w) * 1.45),
            76vh,
            560px
        );
        background-size: cover, cover;
    }

    .lusio-hero__subtitle {
        font-size: 22px;
        letter-spacing: 0.1em;
    }
}

/* Секция «О проекте»: белый фон, акцент #90725B */
.lusio-about {
    background: #ffffff;
}

.lusio-about__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 92px;
    box-sizing: border-box;
}

.lusio-about__heading {
    margin: 0 0 28px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
    font-size: clamp(13px, 1.06vw, 15px);
    line-height: 1.35;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #90725b;
}

.lusio-about__heading-bracket {
    letter-spacing: 0;
}

.lusio-about__heading-text {
    letter-spacing: 0.14em;
}

.lusio-about__text {
    margin: 0;
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.62;
    color: #242424;
}

@media (max-width: 768px) {
    .lusio-about__inner {
        padding: 56px 20px 64px;
    }

    .lusio-about__heading {
        margin-bottom: 22px;
    }

    .lusio-about__text {
        font-size: 16px;
        line-height: 1.58;
    }
}

/* Бизнес-задачи: метка как «О проекте», карточки с крупными номерами */
.lusio-goals {
    background: #ffffff;
}

.lusio-goals__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px;
    box-sizing: border-box;
}

.lusio-goals__section-label {
    margin: 0 0 clamp(40px, 5vw, 56px);
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
    font-size: clamp(13px, 1.06vw, 15px);
    line-height: 1.35;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #90725b;
}

.lusio-goals__section-bracket {
    letter-spacing: 0;
}

.lusio-goals__section-text {
    letter-spacing: 0.14em;
}

.lusio-goals__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lusio-goals__item {
    display: grid;
    grid-template-columns: minmax(68px, 0.13fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 32px);
    align-items: center;
    padding-bottom: clamp(18px, 5vw, 32px);
}

.lusio-goals__item:last-child {
    padding-bottom: 0;
}

.lusio-goals__num {
    font-family: 'Gilroy', sans-serif;
    font-weight: 700;
    font-size: clamp(52px, 7.6vw, 112px);
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: #d9c8b8;
    justify-self: start;
}

.lusio-goals__body {
    min-width: 0;
}

.lusio-goals__title {
    margin: 0 0 14px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.42vw, 18px);
    line-height: 1.38;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: #342f2c;
}

.lusio-goals__desc {
    margin: 0;
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.22vw, 16px);
    line-height: 1.62;
    color: #342f2c;
}

@media (max-width: 640px) {
    .lusio-goals__inner {
        padding: 0 20px 72px;
    }

    .lusio-goals__section-label {
        margin-bottom: 32px;
    }

    .lusio-goals__item {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
        padding-bottom: 36px;
    }

    .lusio-goals__num {
        font-size: clamp(44px, 18vw, 72px);
        line-height: 1;
    }

    .lusio-goals__title {
        margin-bottom: 10px;
        letter-spacing: 0.04em;
    }

    .lusio-goals__desc {
        font-size: 15px;
        line-height: 1.58;
    }
}

/* Секция «Функционал»: витрина с видео-демонстрацией */
.lusio-feature {
    --lusio-feature-accent: #6b4c3e;
    --lusio-feature-bg: #d3c4b3;
    background: var(--lusio-feature-bg);
}

.lusio-feature__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    box-sizing: border-box;
}

.lusio-feature__tag {
    margin: 0 0 36px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
    font-size: clamp(13px, 1.06vw, 15px);
    line-height: 1.35;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6b4c3e;
}

.lusio-feature__tag-bracket {
    letter-spacing: 0;
}

.lusio-feature__tag-text {
    letter-spacing: 0.14em;
}

.lusio-feature__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.lusio-feature__media {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lusio-feature__video-frame {
    max-width: 280px;
    margin: 0;
    padding: 0;
    border-radius: 28px;
    border: 2px solid var(--lusio-feature-accent);
    overflow: hidden;
    box-sizing: border-box;
    background: #1a1513;
}

.lusio-feature__video {
    display: block;
    width: 100%;
    height: auto;
}

.lusio-feature__copy {
    min-width: 0;
}

.lusio-feature__title {
    margin: 0 0 18px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600 !important;
    font-size: clamp(20px, 1.85vw, 26px);
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lusio-feature-accent);
}

.lusio-feature__desc {
    margin: 0;
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.22vw, 18px);
    line-height: 1.62;
    color: #242424;
}

@media (max-width: 768px) {
    .lusio-feature__inner {
        padding: 56px 20px 72px;
    }

    .lusio-feature__tag {
        margin-bottom: 28px;
    }

    .lusio-feature__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
    }

    .lusio-feature__copy {
        width: 100%;
        max-width: 520px;
        text-align: left;
        justify-self: stretch;
    }

    .lusio-feature__title {
        margin-bottom: 14px;
    }
}

/* Каталог и карточка: два мокапа + текст по центру */
.lusio-catalog-showcase {
    background: #ffffff;
    overflow-x: hidden;
}

.lusio-catalog-showcase__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px 96px;
    box-sizing: border-box;
}

.lusio-catalog-showcase__tag {
    margin: 0 0 40px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
    font-size: clamp(13px, 1.06vw, 15px);
    line-height: 1.35;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888888;
}

.lusio-catalog-showcase__tag-bracket {
    letter-spacing: 0;
}

.lusio-catalog-showcase__tag-text {
    letter-spacing: 0.14em;
}

.lusio-catalog-showcase__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
}

.lusio-catalog-showcase__phone {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.lusio-catalog-showcase__phone--left {
    justify-content: flex-end;
    padding-right: clamp(0px, 2vw, 16px);
    padding-top: 50px;
}

.lusio-catalog-showcase__phone--right {
    justify-content: flex-start;
    align-self: start;
    padding-left: clamp(0px, 1vw, 12px);
}

.lusio-catalog-showcase__phone--right .lusio-catalog-showcase__img {
    max-width: min(280px, 36vw);
}

.lusio-catalog-showcase__copy {
    text-align: left;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    justify-self: center;
}

.lusio-catalog-showcase__img {
    display: block;
    width: 100%;
    max-width: min(280px, 88vw);
    height: auto;
}

.lusio-catalog-showcase__title {
    margin: 0 0 20px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600 !important;
    font-size: clamp(20px, 1.85vw, 26px);
    line-height: 1.35;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: #6b4c3e;
}

.lusio-catalog-showcase__desc {
    margin: 0;
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.62;
    color: #242424;
}

@media (max-width: 700px) {
    .lusio-catalog-showcase__grid {
        display: flex;
        flex-direction: column;
        gap: 36px;
        align-items: stretch;
    }

    .lusio-catalog-showcase__copy {
        order: 1;
        max-width: 100%;
        margin: 0;
    }

    .lusio-catalog-showcase__phone--left {
        order: 2;
        justify-content: center;
        padding-right: 0;
        padding-top: 0;
    }

    .lusio-catalog-showcase__phone--right {
        order: 3;
        margin-top: 0;
        justify-content: center;
        padding-left: 0;
    }

    .lusio-catalog-showcase__phone--right .lusio-catalog-showcase__img {
        display: none;
    }

    .lusio-catalog-showcase__inner {
        padding: 56px 20px 0px;
    }

    .lusio-catalog-showcase__tag {
        margin-bottom: 28px;
    }
}

/* Программа лояльности: мокап + текст на белом фоне */
.lusio-loyalty {
    background: #ffffff;
}

.lusio-loyalty__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 20px 96px;
    box-sizing: border-box;
}

.lusio-loyalty__tag {
    margin: 0 0 36px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
    font-size: clamp(13px, 1.06vw, 15px);
    line-height: 1.35;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888888;
}

.lusio-loyalty__tag-bracket {
    letter-spacing: 0;
}

.lusio-loyalty__tag-text {
    letter-spacing: 0.14em;
}

.lusio-loyalty__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

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

.lusio-loyalty__img {
    display: block;
    width: 100%;
    max-width: min(280px, 92vw);
    height: auto;
}

.lusio-loyalty__copy {
    min-width: 0;
}

.lusio-loyalty__title {
    margin: 0 0 18px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600 !important;
    font-size: clamp(20px, 1.85vw, 26px);
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a3427;
}

.lusio-loyalty__desc {
    margin: 0;
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.22vw, 18px);
    line-height: 1.62;
    color: #242424;
}

@media (max-width: 768px) {
    .lusio-loyalty__inner {
        padding: 56px 20px 72px;
    }

    .lusio-loyalty__tag {
        margin-bottom: 28px;
    }

    .lusio-loyalty__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .lusio-loyalty__copy {
        max-width: 520px;
        width: 100%;
        text-align: left;
        justify-self: stretch;
    }

    .lusio-loyalty__title {
        margin-bottom: 14px;
    }
}

/* История заказов: фон back-2 на всю ширину; сетка как у блока «Полноэкранные баннеры» */
.lusio-order-history {
    position: relative;
    overflow: hidden;
    background-color: #5c4d42;
    background-image: url('../images/cases/Lusio/back-2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lusio-order-history__wrap {
    position: relative;
    z-index: 1;
}

.lusio-order-history__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    box-sizing: border-box;
}

.lusio-order-history__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.lusio-order-history__media {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.lusio-order-history__screen {
    display: block;
    width: 100%;
    max-width: min(280px, 92vw);
    height: auto;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}

.lusio-order-history__copy {
    min-width: 0;
}

.lusio-order-history__title {
    margin: 0 0 18px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600 !important;
    font-size: clamp(20px, 1.85vw, 26px);
    line-height: 1.35;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.lusio-order-history__desc {
    margin: 0;
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.22vw, 18px);
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
    .lusio-order-history__inner {
        padding: 56px 20px 72px;
    }

    .lusio-order-history__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
    }

    .lusio-order-history__copy {
        width: 100%;
        max-width: 520px;
        text-align: left;
        justify-self: stretch;
        order: -1;
    }

    .lusio-order-history__title {
        margin-bottom: 14px;
    }
}

/* Обратная связь: 50/50 — видео слева, форма на бежевом фоне */
.lusio-contact {
    background: #ffffff;
}

.lusio-contact__split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: min(46vh, 420px);
}

.lusio-contact__media {
    position: relative;
    min-height: min(46vh, 420px);
    overflow: hidden;
    background: #2a1f18;
}

.lusio-contact__video {
    width: 100%;
    height: 100%;
    min-height: min(46vh, 420px);
    object-fit: cover;
    display: block;
}

.lusio-contact__panel-wrap {
    background: #e8e0d8;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(22px, 3.2vw, 40px) clamp(24px, 4vw, 64px);
    box-sizing: border-box;
}

.lusio-contact__panel {
    width: 100%;
    max-width: 420px;
}

.lusio-contact__title {
    margin: 0 0 clamp(14px, 2vw, 22px);
    font-family: 'Gilroy', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 1.9vw, 26px);
    line-height: 1.25;
    color: #4a3427;
}

.lusio-contact__form {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.3vw, 16px);
}

.lusio-contact__field {
    margin: 0;
}

.lusio-contact__input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px 8px;
    border: none;
    border-bottom: 1px solid #4a3427;
    background: #ffffff;
    border-radius: 0;
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.35;
    color: #242424;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lusio-contact__input::placeholder {
    color: #6b5d52;
}

.lusio-contact__input:hover,
.lusio-contact__input:focus {
    outline: none;
    border-bottom-color: #2a1f18;
    box-shadow: 0 1px 0 0 #2a1f18;
}

.lusio-contact__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 2px 0 0;
    cursor: pointer;
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.45;
    color: #4a3427;
}

.lusio-contact__consent input[type="checkbox"] {
    margin-top: 0.2em;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #4a3427;
}

.lusio-contact__consent-text {
    flex: 1;
    min-width: 0;
}

.lusio-contact__link {
    color: #4a3427;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.lusio-contact__link:hover {
    color: #2a1f18;
}

.lusio-contact__submit {
    align-self: flex-start;
    margin-top: 4px;
    padding: 11px 36px;
    border: none;
    border-radius: 999px;
    background: #4a3427;
    color: #ffffff;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.lusio-contact__submit:hover:not(:disabled) {
    background: #2a1f18;
}

.lusio-contact__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .lusio-contact__split {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .lusio-contact__media {
        min-height: 32vh;
        max-height: 42vh;
    }

    .lusio-contact__video {
        min-height: 32vh;
        max-height: 42vh;
    }

    .lusio-contact__panel-wrap {
        justify-content: center;
        padding: 28px 20px 40px;
    }

    .lusio-contact__panel {
        max-width: 520px;
        margin: 0 auto;
    }
}

/* Мокапы экранов телефона: ширина 260px при viewport ≤700px */
@media (max-width: 700px) {
    .lusio-feature__video-frame {
        max-width: 260px;
    }

    .lusio-catalog-showcase__img {
        max-width: 260px;
        width: 260px;
    }

    .lusio-loyalty__img {
        max-width: 260px;
        width: 260px;
    }

    .lusio-order-history__screen {
        max-width: 260px;
        width: 260px;
    }
}
