* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #e8e8e8;
    color: #111;
}

/* ОБЩИЙ КОНТЕЙНЕР ПЕРВОГО ЭКРАНА */

.hero {
    position: relative;
    width: 100%;

    min-height: 768px;
    /* высота макета */
    background: #e8e8e8;
    display: flex;
    justify-content: center;
}

.hero-inner {
    position: relative;
    width: 1333px;
    min-height: 768px;
    margin: 0 auto;
    padding: 20px 20px 20px 100px;
    /* чуть больше сверху */
}

/* ШАПКА */

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 56px;
}

.hero-logo-block {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-logo {
    height: 52px;
    object-fit: contain;
}

.hero-logo-text {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-logo-title {
    font-weight: 700;
}

.hero-logo-subtitle {
    font-weight: 400;
}

.hero-phone {
    position: relative;
    /* нужно для z-index */
    padding: 10px 32px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    font-size: 20px;
    color: #111;
    text-decoration: none;
    z-index: 5;
    font-weight: 600;
}

/* АДАПТИВ */
@media (width <=800px) {
    .hero-logo-block {
        flex-direction: column;
        align-items: center;
    }

    .hero-phone,
    .hero-logo-text {
        font-size: 16px;
    }
}

@media (width <=460px) {
    .hero-logo-block {
        gap: 10px;
    }

    .hero-phone,
    .hero-logo-text {
        font-size: 14px;
    }

    .hero-phone {
        padding-inline: 20px;
    }
}

/* ЛЕВАЯ КОЛОНКА */

.hero-left {
    max-width: 620px;
    height: auto;
    margin-top: 30px;
    position: relative;
    z-index: 2;
    /* ДОБАВИЛИ */
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.23;

    text-transform: uppercase;
}

/* Жёлтая плашка */

.hero-badge {
    display: inline-block;
    background: #ffc93c;
    border-radius: 4px;
    padding: 6px 14px;
    font-weight: 700;
}

.hero-badge--big {
    font-size: 24px;
    margin-bottom: 64px;
    margin-top: 10px;
}

/* ПРЕИМУЩЕСТВА */

.hero-benefits {
    font-size: 20px;

    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1.1fr 1.1fr;
    /* две колонки */
    row-gap: 12px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    /* управляем через row-gap */
}

.benefit-icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    margin-top: 2px;
    /* иконка чуть ниже, центр по первой строке */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Жёлтые inline‑плашки */

.badge-inline {
    display: inline-block;
    background: #ffc93c;
    border-radius: 3px;
    padding: 2px 6px;
    font-weight: 600;
}

/* твои иконки */
.benefit-icon--gift {
    background-image: url('../img/benefit-gift.webp');
}

.benefit-icon--clock {
    background-image: url('../img/benefit-clock.webp');
}

.benefit-icon--canvas {
    background-image: url('../img/benefit-canvas.webp');
}

@media (width <=640px) {
    .hero-benefits {
        grid-template-columns: 1.1fr;
    }

    .hero-logo-subtitle {
        display: none;
    }

    .hero-header {
        margin-bottom: 0;
    }
}

/* CTA */

/* CTA */

.hero-cta {
    margin-top: 30px;
}

.hero-cta-text {
    font-size: 18px;
    text-transform: none;
    margin-bottom: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-cta-text span {
    color: #ed7b0a;
    font-weight: 700;
}

.hero-cta-row {
    display: inline-flex;
    /* чтобы ширина подстраивалась под кнопку+стрелку */
    align-items: center;
    gap: 24px;
    /* расстояние между кнопкой и стрелкой */
}

/* КНОПКА - ДОБАВЛЕНЫ СТИЛИ ИЗ ВЕРСИИ 2 */
.hero-btn {
    border: none;
    border-radius: 20px;
    padding: 30px 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(180deg, #ffe26b 0%, #ffb800 100%);
    color: #000;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    white-space: nowrap;
    /* всегда в одну строку */
}

.hero-btn span {
    color: #000 !important;
}

/* СТРЕЛКА В ВИДЕ ИЗОБРАЖЕНИЯ */

.hero-cta-arrow {
    width: 100px;
    height: 100px;
    margin-top: -100px;
    background: url('../img/strelka.webp') right center / contain no-repeat;
    transform: rotate(-20deg);
    /* поворот против часовой на 10° */
    transform-origin: center center;
    /* центр поворота */
}

.hero-content-container {
    display: flex;
}

/* ПРАВАЯ ЧАСТЬ — ФОН */
.hero-right {
    position: absolute;
    width: 1107px;
    height: 1076px;
    margin-top: 30px;
}

.hero-bg {
    width: 1107px;
    height: 1076px;
    position: relative;
    top: -35%;
    right: -54%;
}

/* АДАПТИВ до планшета (можно скорректировать позже) */

@media (width <=1199px) {
    .hero-bg {
        width: 762px;
        height: 784px;
        top: -25%;
        right: -52%;
    }
}

@media (width > 1050px) {

    .hero-bg-ad-bg,
    .hero-bg-ad-girl {
        display: none;
    }

    .hero-right-cta {
        display: none;
    }

}

@media (width <=1050px) {
    .hero-inner {
        padding: 24px 10px 40px;
    }

    .hero-bg-ad-girl-wrapper {
        position: absolute;
        top: -24%;
        left: clamp(87px, -365.00px + 75.33vw, 426px);
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-badge--big {
        font-size: 20px;
    }

    .hero-content-container {
        flex-direction: column;
    }

    .hero-right {
        margin-top: 0;
        height: 480px;
        width: 100%;
        position: relative;
        right: 0;
        bottom: 17%;
    }

    .hero-bg {
        display: none;
    }

    .hero-bg-ad-girl {
        object-fit: cover;
        width: 420px;

    }

    .hero-bg-ad-bg {
        object-fit: cover;
        position: absolute;
        top: -31%;
        left: clamp(0px, -465.33px + 77.56vw, 349px);
        overflow: visible;

    }

    .hero-cta {
        display: none;
    }

    .hero-right-cta {
        position: absolute;
        bottom: 14px;
        z-index: 2;
        left: 27%;
        width: 100%;
        top: 75%;
    }

    /* ИЗМЕНЕНО: фон cta на мобилках из версии 2 */
    .hero-right-cta-text {
        font-size: 18px;
        text-transform: none;
        font-weight: 500;
        letter-spacing: 0.02em;
        background-color: #ffde72;
        width: 300px;
        padding: 10px 5px 20px 17px;
        position: relative;
        z-index: -1;
        bottom: -16px;
        border-radius: 22px;
    }

    .hero-right-cta-text span {
        color: #ed7b0a;
        font-weight: 700;
    }

    .benefit {
        font-size: 15px;
        align-items: center;
    }

}

@media (width <=630px) {
    .hero-title {
        font-size: 18px;
    }

    .hero-logo-title {
        font-size: 12px;
    }

    .hero-header {
        margin-bottom: 20px;
        align-items: start;
    }

    .hero-badge--big {
        margin-bottom: 20px;
        font-size: 18px;
    }

    .hero-badge {
        padding-left: 2px;
    }

    .hero-left,
    .hero-right {
        margin-top: 0;
    }

}

@media (width <=575px) {
    /* ИЗМЕНЕНО: высота hero-right из версии 2 */
    .hero-right {
        height: 300px;
    }

    .hero-bg-ad-bg {
        object-fit: cover;
        position: absolute;
        top: -71%;
        left: clamp(-38px, -266.75px + 61.00vw, 84px);
        transform: scale(0.9);
    }

    .hero-bg-ad-girl-wrapper {
        top: -38%;
        transform: scale(0.85);
        left: clamp(-44px, -207.13px + 43.50vw, 43px);
    }

    .hero-right-cta-text {
        left: clamp(-101px, -179.75px + 21.00vw, -59px);
        position: relative;
        width: 100%;
        padding: 10px 20px 30px 30px;
        bottom: -24px;
    }


    .hero-right-cta-row {
        left: 58px;
        position: relative;
        left: clamp(-33px, -94.88px + 16.50vw, 0px);
    }
}


/* МОБИЛЬНАЯ ВЕРСИЯ ПЕРВОГО ЭКРАНА */


/* ====== БЛОК 2: ПОДАРОК ДЛЯ ЛЮБОГО ПРАЗДНИКА ====== */

.gift {
    background: #e3e3e3;
    padding: 10px 0 10px;
    overflow: hidden;
}

.gift-inner {
    width: 1333px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px 0 10px;
    /* под линию первого блока */
}

/* Заголовок */

.gift-header {
    margin-bottom: 26px;
}

.gift-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}


.main-title span {
    color: #ed7b0a;
}

.gift-subtitle {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

/* Сетка 2×2 */

.gift-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 18px;
    grid-column-gap: 16px;
}

/* Карточка как фон-изображение */

.gift-card {
    position: relative;
    width: 100%;
    padding-top: calc(183 / 596 * 100%);
    /* пропорция твоего файла 596x183 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Привязка картинок: */

.gift-card--1 {
    background-image: url('../img/gift-1.webp');
}

.gift-card--2 {
    background-image: url('../img/gift-2.webp');
}

.gift-card--3 {
    background-image: url('../img/gift-3.webp');
}

.gift-card--4 {
    background-image: url('../img/gift-4.webp');
}

/* Текст поверх внутри карточки (левая часть) */

.gift-card-text {
    position: absolute;
    left: 40px;
    /* отступ от жёлтой полоски слева */
    top: 26px;
    right: 230px;
    /* чтобы не залезать на фото справа */
    bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 15px;
}

.gift-card-title {
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.gift-card-desc {
    font-size: 16px;
    line-height: 1.4;
}

.gift-card-desc span {
    color: #f28c1b;
    font-weight: 600;
}

/* Адаптивное упрощение */
@media (width <=1135px) {
    .gift-card-title {
        font-size: 20px;
    }

    .gift-card-desc {
        font-size: 14px;
    }
}

@media (width <=1026px) {
    .gift-card-title {
        font-size: 27px;
    }

    .gift-grid {
        grid-template-columns: 1fr;
    }

    .gift-card-desc {
        max-width: 475px;
    }

    .gift-card-desc {
        font-size: clamp(10px, 5.39px + 1.23vw, 18px);
    }

}

@media (max-width: 960px) {
    .gift-inner {
        padding: 0 10px;
    }


    .gift-card-text {
        left: 30px;
        right: 190px;
        top: 22px;
        font-size: 14px;
    }
}

@media (width <=915px) {
    .gift-card-desc {
        max-width: 400px;
    }
}

@media (width <=771px) {
    .gift-card-title {
        font-size: 20px;
    }

    .gift-grid {
        grid-row-gap: 0;
    }

    .gift-card-desc {
        max-width: 300px;
    }
}


@media (max-width: 600px) {
    .gift-card {
        padding-top: calc(220 / 596 * 100%);
        /* чуть выше пропорция для мобилы */
        background-size: cover;
    }

    .gift-card-text {
        left: 20px;
        right: 30%;
        top: 18px;
    }
}

@media (width <=575px) {
    .gift-card-desc {
        width: clamp(204px, 138.12px + 17.57vw, 230px);
    }
}

@media (width <=475px) {
    .gift-card-title {
        font-size: 16px;
    }
}

/* ====== БЛОК 3: ЭТАПЫ СОЗДАНИЯ КАРТИНЫ ====== */

.steps {
    background: #e8e8e8;
    padding: 60px 0 80px;

}

.steps-inner {
    width: 1333px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px 0 40px;
}

/* Заголовок */

.steps-header {
    margin-bottom: 32px;
}

.steps-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.steps-subtitle {
    font-size: 18px;
    line-height: 1.4;
}

/* Компоновка: слева стикеры, справа фото */

.steps-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

/* Левая часть со стикерами */

.steps-left {
    position: relative;
    flex: 0 0 52%;
    margin-top: 40px;
}

/* Контейнер под стикеры */

.steps-grid {
    position: relative;
    width: 100%;
    max-width: 450px;
}

/* Общие стили стикеров */

.step-card {
    position: absolute;
    width: clamp(375px, 346.15px + 7.69vw, 500px);
    padding-top: calc(441 / 456 * 100%);
    /* пропорция стикера */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Расположение как на макете */

/* Эскиз (01) — сверху слева */
.step-card--1 {
    background-image: url('../img/step-1.webp');
    left: clamp(55px, -297.00px + 55.00vw, 231px);
    /* левый край */
    top: 0;
    /* верхний край */
    z-index: 1;
}

.step-card--2 {
    background-image: url('../img/step-2.webp');
    left: clamp(-43px, -357.00px + 49.06vw, 114px);
    /*640px- 960px*/
    top: clamp(359px, 261.00px + 15.31vw, 408px);
    /*640px- 2000px*/
    z-index: 1;
}

.step-card--3 {
    background-image: url('../img/step-3.webp');
    left: 79%;
    top: 810px;
    /* ещё ниже */
    z-index: 1;
}


/* Прорисовка (02) — ниже и чуть правее */

/* Текст внутри стикеров */

.step-card-text {
    position: absolute;

    bottom: 30px;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

.step-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-card-desc {
    font-size: 19px;
}

.step-text-1 {
    transform: rotate(357deg);
    position: relative;
    right: clamp(-80px, -31.92px + -2.40vw, -55px);
    /* 960 - 2000 */
    top: clamp(-86px, -39.85px + -2.31vw, -62px);
    /* 960 - 2000 */
    font-weight: 400;
    width: clamp(327px, 294.69px + 3.37vw, 362px);
    /* 960 - 2000 */

}

.step-text-2 {
    transform: rotate(5deg);
    position: relative;
    right: -62px;
    top: -120px;
    font-weight: 400;
    width: 317px;
}

@media (width <=1200px) {
    .step-text-2 {
        right: clamp(-63px, -25.00px + -2.00vw, -49px);
    }
}

.step-text-3 {
    transform: rotate(356deg);
    position: relative;
    right: clamp(-74px, -21.74px + -2.75vw, -46px);
    top: -122px;
    font-weight: 400;
    width: 313px;
}

@media (width <=882px) {
    .step-text-3 {
        top: -141px;
    }
}

/* Иконки-вектора внутри стикеров */

.step-icon {

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* привязка к конкретным картинкам */
.step-icon--1 {
    background-image: url('../img/step-vektor-1.webp');
    position: absolute;
    width: 150px;
    height: 150px;
    right: clamp(-96px, -76.74px + -0.96vw, -83px);
    /* 650 - 2000 */
    bottom: clamp(0px, 29.63px + -1.48vw, 20px);
    /* 650 - 2000 */
}

.step-icon--2 {
    background-image: url('../img/step-vektor-2.webp');
    position: absolute;
    width: 150px;
    height: 150px;
    right: clamp(-116px, -59.00px + -3.00vw, -95px);
    /* 1200 - 2000 */
    bottom: clamp(7px, 41.07px + -1.70vw, 30px);
    /* 650 - 2000 */
}

@media (width <=1200px) {
    .step-icon--2 {
        right: clamp(-93px, -9.98px + -6.92vw, -71px);

    }
}

@media (width <=881px) {
    .step-icon--2 {
        right: -67px;
    }
}


.step-icon--3 {
    background-image: url(../img/step-vektor-3.webp);
    width: 120px !important;
    height: 120px !important;
    position: absolute;
    right: clamp(-120px, -49.43px + -3.71vw, -94px);
    /* 1200 - 2000 */
    bottom: clamp(31px, 46.21px + -0.80vw, 41px);
    /* 650 - 2000 */
    transform: scale(0.8) rotate(42deg);
    transform-origin: center center;
}

@media (width <=1200px) {
    .step-icon--3 {
        right: clamp(-94px, -26.08px + -5.66vw, -76px);
    }
}

@media (width <=881px) {
    .step-icon--3 {
        right: -60px;
    }
}


/* Пунктирные линии */

.steps-line {
    position: absolute;
    pointer-events: none;
}

/* линия между 1 и 2 стикером */
.steps-line--1 {
    width: 140px;
    top: 163px;
    left: clamp(87px, 73.13px + 1.44vw, 102px);
    /* 960px- 2000-px */
    z-index: 0;
}


/* линия между 2 и 3 стикером */
.steps-line--2 {
    width: 200px;
    top: clamp(715px, 755.38px + -2.02vw, 736px);
    /* 960 - 2000*/
    left: clamp(501px, 480.69px + 2.12vw, 523px);
    /* 960 - 2000*/
}

/* Правая часть — фото с девушкой */

.steps-photo-wrap {
    position: relative;
}

.steps-photo {
    width: 1039px;
    height: 1047px;
    position: absolute;
    left: clamp(392px, 365.23px + 2.79vw, 421px);
    top: -84px;
}

/* Адаптив (оставь как есть либо подправь позже) */

@media (max-width: 1024px) {
    .steps-inner {
        padding: 0 20px;
    }

    .steps-layout {
        flex-direction: column;
        align-items: center;
    }

    .steps-left {
        flex: 0 0 auto;
        width: 100%;
        max-width: 520px;
    }

    .steps-photo-wrap {
        justify-content: center;
    }
}

@media (width <=960px) {
    .steps-photo {
        display: none;
    }

    .steps-grid {
        margin-inline: auto;
        display: flex;
    }

    .step-card--3 {
        top: clamp(717px, 589.00px + 20.00vw, 781px);
        /* 640px-960px */
        left: clamp(62px, -284.00px + 54.06vw, 235px);
        /* 640px-960px */
    }

    .steps-line--1 {
        left: clamp(-17px, -311.00px + 45.94vw, 130px);
        /* 640px-960px */
    }

    .steps-line--2 {
        left: clamp(342px, -27.03px + 56.77vw, 518px);
        /* 650 - 960*/
        top: clamp(671px, 587.13px + 12.90vw, 711px);
        /* 650 - 960*/
    }
}

@media (width <=881px) {
    .step-card {
        width: 400px;
    }

    .step-text-1,
    .step-text-2,
    .step-text-3 {
        font-size: 14px;
        width: 307px;
    }

    .step-text-1 {
        right: -58px;
        top: -126px;
    }

    .step-text-2 {
        right: -44px;
        top: -141px;
    }

}

@media (max-width: 600px) {
    .steps {
        padding: 40px 0 60px;
    }

    .step-card-text {
        left: 28px;
        right: 28px;
        top: 105px;
    }

    .steps-line--1,
    .steps-line--2 {
        display: none;
    }

    .steps-photo {
        width: 320px;
        height: 320px;
    }
}


/* ====== БЛОК 4: ГАЛЕРЕЯ ФОТО ====== */

/* ИЗМЕНЕНО: уменьшен отступ снизу из версии 2 */
.gallery {
    background: #e8e8e8;
    padding: 0px 0 40px;
}

.gallery-inner {
    width: 1333px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px 0 40px;
    text-align: center;
    /* добавляем */
}

.gallery-header {
    margin-bottom: 30px;
}

.gallery-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.gallery-subtitle {
    font-size: 18px;
    line-height: 1.4;
}

/* Сетка превью */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 миниатюры в строку на десктопе */
    gap: 16px;
    margin-bottom: 24px;
}

.gallery-item {
    position: relative;
    padding-top: 75%;
    /* соотношение сторон 4:3 */
    overflow: hidden;
    border-radius: 10px;
    background: #d0d0d0;
    cursor: pointer;
}

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease, opacity .3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.95;
}

/* Кнопка "Показать ещё" */

.gallery-more-btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffe26b 0%, #ffb800 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Адаптив */

@media (max-width: 1024px) {
    .gallery-inner {
        padding: 0 10px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 в ряд на планшете */
    }
}

@media (max-width: 767px) {
    .gallery-inner {
        padding: 0 10px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 в ряд на телефоне */
    }

    .gallery-title {
        font-size: 22px;
    }

    .gallery-subtitle {
        font-size: 14px;
    }
}

/* ====== БЛОК 5: ЦЕНЫ И РАЗМЕРЫ ====== */

/* ИЗМЕНЕНО: уменьшены отступы из версии 2 */
.prices {
    background: #f0f0f0;
    padding: 40px 0 40px;
    overflow: hidden;
}

.prices-inner {
    width: 1333px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px 0 40px;
}

.prices-header {
    text-align: left;
    margin-bottom: 30px;
}

.prices-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.prices-subtitle {
    font-size: 18px;
    line-height: 1.4;
}

/* Сетка карточек */

.prices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Карточка формата */

.price-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Верхняя часть с фото */

.price-card-img {
    position: relative;
    padding-top: 120%;
    /* соотношение сторон */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Привязка к картинкам */
.price-card-img--1 {
    background-image: url('../img/price-1.webp');
}

.price-card-img--2 {
    background-image: url('../img/price-2.webp');
}

.price-card-img--3 {
    background-image: url('../img/price-3.webp');
}

.price-card-img--4 {
    background-image: url('../img/price-4.webp');
}

/* Нижняя часть: размер + цена */

.price-card-body {
    padding: 18px 20px 22px;
}

.price-card-size {
    font-size: 22px;
    margin-bottom: 6px;
}

.price-card-size-main {
    font-family: "Times New Roman", Georgia, serif;
    font-weight: 700;
    font-style: italic;
    margin-right: 4px;
}

.price-card-price {
    font-size: 22px;
    font-weight: 700;
}

/* Адаптив */

@media (max-width: 1200px) {
    .prices-inner {
        padding: 0 10px;
    }

    .prices-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {

    .prices-title {
        font-size: 22px;
    }

    .prices-subtitle {
        font-size: 14px;
    }
}

/* ====== МОДАЛКА "РАССЧИТАТЬ СТОИМОСТЬ" ====== */
/* Оверлей */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Активное состояние */
.modal-overlay.modal--open {
    opacity: 1;
    visibility: visible;
}

/* ФИКС: отключаем скролл фона */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* РАЗМЫТИЕ ФОНА: через псевдоэлемент, который накрывает ВСЮ страницу */
body.modal-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 998;
    pointer-events: none;
}

/* Убираем размытие с самого body и оверлея */
body.modal-open,
body.modal-open .modal-overlay {
    filter: none !important;
    backdrop-filter: none !important;
}

/* Окно модалки */
.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 28px 32px 30px;
    text-align: center;
    margin: 20px;
    z-index: 1001;
}

/* Кнопка закрытия (крестик) */
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1002;
}

.modal-close::before,
.modal-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #999;
    transform-origin: center;
}

.modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Лого Макса */
.modal-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.modal-logo img {
    height: 40px;
}

/* Тексты */
.modal-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 22px;
}

/* Основная кнопка */
.modal-main-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background-image: linear-gradient(90deg, rgba(182, 84, 248, 1) 0%, rgba(48, 132, 231, 1) 48%, rgba(68, 204, 255, 1) 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: transform .15s ease, box-shadow .15s ease;
}

.modal-main-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

/* Кружок-иконка */
.modal-main-btn-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    background-image: url('../img/max_logo.svg');
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.modal-main-btn-icon::before {
    content: none;
}

/* Мелкая ссылка */
.modal-second-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #555;
    text-decoration: underline;
}

/* ====== МОДАЛКА ЗАКАЗА ====== */

.order-info {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f5f5f5;
    text-align: left;
    display: flex;
}

.order-info-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.order-info-value {
    font-weight: 500;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.order-phone-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 22px;
}

.order-submit-btn {
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background-image: linear-gradient(90deg, rgba(182, 84, 248, 1) 0%, rgba(48, 132, 231, 1) 48%, rgba(68, 204, 255, 1) 100%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
    transition: transform .15s ease, box-shadow .15s ease;
}

.order-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.order-note {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
    text-align: left;
}


/* Адаптив */
@media (max-width: 480px) {
    .modal-dialog {
        margin: 0 12px;
        padding: 24px 18px 24px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-subtitle {
        font-size: 13px;
    }

    .modal-main-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-bg {
        background-image: none;
    }
}


/* Доп. элементы модалки заказа */
.order-info {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f5f5f5;
    text-align: left;
    font-size: 14px;
    display: flex;
}

.order-info-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.order-info-value {
    font-weight: 500;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.order-phone-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 22px;
}

.order-submit-btn {
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background-image: linear-gradient(90deg, rgba(182, 84, 248, 1) 0%, rgba(48, 132, 231, 1) 48%, rgba(68, 204, 255, 1) 100%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
    transition: transform .15s ease, box-shadow .15s ease;
}

.order-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.order-note {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
    text-align: left;
}

@media (max-width: 480px) {
    .order-info {
        font-size: 13px;
    }
}

/* Строка "цена + кнопка выбрать" */
.price-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

/* Кнопка "Выбрать" рядом с ценой */
.price-select-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #111;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, transform .1s ease;
}

.price-select-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

/* На очень узких экранах можно стэкнуть в колонку */
@media (max-width: 540px) {
    .price-card-bottom {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;

    }

    .price-card-size {
        display: none;
    }
}

.videos {
    background: #e8e8e8;
    padding: 40px 0 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    /* отступы по 10px между стрелкой и .videos-inner */
    column-gap: 0px;
    /* общая дистанция между левой стрелкой и правой стрелкой */
}

/* чтобы именно 10px было между стрелкой и контейнером,
   а не вплотную к краю экрана */
.videos-inner {
    width: 1333px;
    max-width: 100%;
    margin: 10px;
    padding: 0 0 0 20px;
}

.videos-header {
    margin-bottom: 20px;
}

.videos-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Горизонтальный скролл */
.videos-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;

    scrollbar-width: none;
    /* Firefox: скрыть полосу */
}

.videos-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome / Safari / Edge: скрыть полосу */
}

/* Стрелки влево/вправо по бокам блока */
.videos-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .2s ease, transform .1s ease;
}

.videos-arrow:hover {
    background: rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* На планшетах и ниже стрелки не нужны — остаётся свайп */
@media (width <=1024px) {
    .videos {
        padding: 30px 0 40px;
        gap: 0;
    }

    .videos-arrow {
        display: none;
    }
}

/* Карточка видео */
.video-card {
    position: relative;
    flex: 0 0 240px;
    border: none;
    padding: 0;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.video-card-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* видео-превью поверх картинки, но изначально скрыто */
.video-card-thumb--inline {
    display: none;
}

/* картинка как fallback до загрузки видео */
.video-card-thumb--fallback {
    display: block;
}

/* Розовая круглая кнопка play */
.video-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ed7b0a;
    transform: translate(-50%, -50%);
    display: inline-block;
}

.video-card-play::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #ffffff;
}

.modal-dialog--video {
    max-width: 500px;
    width: 100%;
    padding: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-body {
    position: relative;
    width: 100%;
    padding-top: 177.78%;
    /* 9:16 вертикальное видео */
    background: #000;
}

#videoFrame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Крестик поверх чёрного фона */
.modal-dialog--video .modal-close {
    z-index: 2;
}

/* Адаптив */
@media (max-width: 1024px) {
    .videos-inner {
        padding: 0 0 0 20px;
    }
}

@media (max-width: 767px) {
    .videos-inner {
        padding: 0 0 0 10px;
    }

    .videos-title {
        font-size: 22px;
    }

    .video-card {
        flex: 0 0 200px;
    }
}





/* скрываем стрелки на мобильных, там достаточно скролла пальцем */
@media (max-width: 1024px) {
    .videos-arrow {
        display: none;
    }
}

/* чуть уменьшим горизонтальный отступ у скролла внутри wrap */
.videos-scroll {
    flex: 1 1 auto;
}

/* ====== МОДАЛКА ВИДЕО как сторис на весь экран ====== */

.modal-overlay#videoModal {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
}

/* контейнер "сториса" */
.video-popup {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 430px;
    /* ширина "сториса" на десктопе */
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-popup__video-wrap {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 100%;
    max-height: 100vh;
    margin: 0 auto;
    background: #000;
    /* чёрный фон вокруг видео */
    overflow: hidden;
    border-radius: 8px;
}

.video-popup__video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* видео вписывается, вокруг — чёрные поля */
    background: #000;
    /* на всякий случай тоже чёрный */
}

/* ПРОГРЕСС + ШАПКА поверх видео */
.video-popup__progress {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
    z-index: 3;
}

.video-popup__progress-bar {
    width: 0;
    height: 100%;
    background: #3ddc84;
    transition: width .1s linear;
}

.video-popup__header {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 16px;
    /* чуть ниже полоски прогресса */
    display: flex;
    align-items: center;
    padding: 6px 0;
    z-index: 3;
    color: #fff;
    font-size: 13px;
}

.video-popup__logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-popup__logo img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.video-popup__logo-text {
    font-weight: 600;
}

.video-popup__title {
    flex: 1 1 auto;
    margin-left: 8px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* крестик в шапке */
.video-popup__close {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.video-popup__close::before,
.video-popup__close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    background: #fff;
    transform-origin: center;
}

.video-popup__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.video-popup__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* СТРЕЛКИ поверх видео, по краям по центру */
.video-popup__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background .2s ease, transform .1s ease;
}

.video-popup__nav--prev {
    left: 10px;
}

.video-popup__nav--next {
    right: 10px;
}

.video-popup__nav:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) translateY(-1px);
}

/* Иконка play по центру видео при паузе */
.video-popup__play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    transform: translate(-50%, -50%);
    display: none;
    /* по умолчанию скрыта, показываем при паузе */
    z-index: 4;
}

.video-popup__play-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-35%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
}

/* Лоадер "Загрузка..." по центру видео */
.video-popup__loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.55);
    padding: 8px 16px;
    border-radius: 999px;
    z-index: 4;
    pointer-events: none;
    display: none;
    /* по умолчанию скрыт */
}

.video-popup__loader-dots {
    display: inline-block;
    width: 1.5em;
    text-align: left;
    overflow: hidden;
    vertical-align: bottom;
    animation: video-dots 1s steps(3, end) infinite;
}

@keyframes video-dots {
    0% {
        width: 0em;
    }

    33% {
        width: 0.5em;
    }

    66% {
        width: 1em;
    }

    100% {
        width: 1.5em;
    }
}

/* Мобилка: сторис почти во всю высоту/ширину */
@media (max-width: 600px) {
    .video-popup {
        max-width: 100%;
    }

    .video-popup__video-wrap {
        max-width: 100%;
        border-radius: 0;
        /* можно убрать радиус, как в сторис */
    }
}

@media (width <=1200px) {


    .benefit {
        margin-bottom: 12px;
        /* расстояние между строками */
    }
}

@media (max-width: 1150px) {
    .benefit-text {
        display: block;
        margin-bottom: 4px;
    }

    /* добавляем перенос строки сразу после span */
    .benefit-text .badge-inline::after {
        content: "";
        display: block;
        height: 0;
        line-height: 0;
    }
}

/* до 960px — 2 колонки цен */
@media (max-width: 960px) {
    .prices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width <=650px) {
    .steps {
        padding-bottom: 0;
    }

    .steps-line {
        display: none;
    }

    .step-card--1 {
        top: -51px;
        left: clamp(-33px, -178.91px + 38.91vw, 74px);
    }

    .step-text-1 {
        top: clamp(-114px, 245.27px + -55.27vw, 38px);
        left: ;
        width: clamp(251px, 218.27px + 8.73vw, 275px);
    }

    .step-card--2 {
        top: clamp(320px, 292.73px + 7.27vw, 340px);
        left: clamp(-30px, -182.73px + 40.73vw, 82px);
    }

    .step-card--3 {
        top: clamp(669px, 579.00px + 24.00vw, 735px);
        left: clamp(-27px, -200.18px + 46.18vw, 100px);
    }

    .step-icon--1 {
        top: clamp(-71px, 289.00px + -60.00vw, 64px);
        left: 243px;
        transform: scale(0.7);
    }
}

.custom {
    height: 1200px;
}



@media (width <=600px) {
    .step-text-1 {
        top: clamp(50px, -40.00px + 24.00vw, 104px);
        left: clamp(32px, 85.33px + -8.89vw, 52px);
    }

    .step-icon--1 {
        top: clamp(65px, -50.00px + 30.67vw, 134px);
        left: clamp(194px, 170.67px + 6.22vw, 208px);

    }

    .step-text-2 {
        top: clamp(34px, -52.67px + 23.11vw, 86px);
        left: clamp(18px, 68.67px + -8.44vw, 37px);
        width: 288px;
    }

    .step-icon--2 {
        top: clamp(58px, -62.00px + 32.00vw, 130px);
        left: clamp(183px, 164.67px + 4.89vw, 194px);
        transform: scale(0.8);
    }

    .step-text-3 {
        top: clamp(30px, -73.33px + 27.56vw, 92px);
        left: clamp(21px, 71.67px + -8.44vw, 40px);
        width: 270px;
    }

    .step-icon--3 {
        transform: scale(0.8) rotate(42deg);
        top: clamp(64px, -54.33px + 31.56vw, 135px);
        left: clamp(203px, 169.67px + 8.89vw, 223px);
    }

    .custom {
        overflow: hidden;
        height: 1250px;
    }

    /* ДОБАВЛЕНЫ СТИЛИ ИЗ ВЕРСИИ 2 */
    .benefit-icon {
        width: 30px;
        height: 30px;
    }

    .benefit-gift {
        display: none;
    }

    .hero-logo-text {
        display: none;
    }

    .hero-header {
        margin-bottom: 5px;
    }

    .hero-right-cta-text {
        background-color: #fdfdfd;
        text-align: center;
    }

    .hero-title {
        font-size: 25px;
    }

    .benefit {
        margin-bottom: 0;
        font-size: 14px;
        align-items: center;
    }

    .videos {
        padding: 0px 0 0px;
        gap: 0;
    }

    .hero-inner {
        padding: 24px 10px 0px;
    }

    .gift-card-desc {
        font-size: clamp(13px, 4.67px + 2.22vw, 18px);
    }
}

@media (width <=460px) {
    .hero-right-cta-row {
        left: clamp(-42px, -115.93px + 19.77vw, -25px);
    }
}

@media (width <=420px) {
    .step-card--1 {
        top: -64px;
    }

    .step-card--2 {
        top: clamp(253px, -122.00px + 100.00vw, 298px);
    }

    .step-card--3 {
        top: clamp(570px, -163.33px + 195.56vw, 658px);
    }
}
@media (width <=397px) {
    .custom {

        height: 1000px;
    }
}

.modal-overlay {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ДОБАВЛЕНЫ МЕДИА-ЗАПРОСЫ ДЛЯ VIDEOS-INNER ИЗ ВЕРСИИ 2 */
/* базовое */
.videos-inner {
    width: 1333px;
    max-width: 100%;
    margin: 10px;
    padding: 0 0 0 20px;
}

/* планшеты */
@media (max-width: 1024px) {
    .videos-inner {
        margin: 10px;
        padding: 0 0 0 20px;
    }
}

/* телефоны */
@media (max-width: 767px) {
    .videos-inner {
        margin: 0;
        padding: 0 0 10px 10px;
    }
    .videos-title {
        font-size: 22px;
    }

    .video-card {
        flex: 0 0 200px;
    }
}