/* =========================
   HOME BAR
   Весь блок — картинка + текст поверх
========================= */

.home-page .home-bar {
    position: relative;
    width: 100vw;
    height: clamp(220px, 22vw, 420px);
    min-height: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    color: #ffffff;
    overflow: hidden;
    background: #050505;
}

.home-page .home-bar__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-page .home-bar__overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns:
        minmax(280px, 0.72fr)
        minmax(260px, 1fr)
        minmax(260px, 0.62fr);
    align-items: center;
    gap: clamp(20px, 3vw, 72px);
    padding: clamp(26px, 3vw, 56px) clamp(18px, 5vw, 96px);
}

/* =========================
   LEFT CONTENT
========================= */

.home-page .home-bar__content {
    min-width: 0;
    max-width: 560px;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.65);
}

.home-page .home-bar__kicker {
    display: block;
    margin-bottom: clamp(7px, 0.7vw, 12px);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(8px, 0.72vw, 13px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.home-page .home-bar__content h2 {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(44px, 4.9vw, 96px);
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

.home-page .home-bar__content h2 span {
    color: #ff3b30;
}

.home-page .home-bar__content p {
    max-width: 430px;
    margin: clamp(12px, 1.2vw, 22px) 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(10px, 0.82vw, 15px);
    font-weight: 800;
    line-height: 1.38;
}

/* =========================
   BUTTON
========================= */

.home-page .home-bar__button {
    width: min(100%, 190px);
    min-height: clamp(38px, 2.7vw, 52px);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: clamp(16px, 1.5vw, 28px);
    padding: 0 clamp(14px, 1.2vw, 20px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(0, 0, 0, 0.12);
    font-size: clamp(8px, 0.7vw, 12px);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.home-page .home-bar__button span {
    font-size: clamp(13px, 1vw, 18px);
    line-height: 1;
}

.home-page .home-bar__button:hover {
    background: #ffffff;
    color: #050505;
    border-color: #ffffff;
    transform: translateX(2px);
}

/* =========================
   RIGHT INFO
========================= */

.home-page .home-bar__info {
    grid-column: 3;
    justify-self: end;
    width: min(100%, 340px);
    min-width: 0;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.75);
}

.home-page .home-bar__info-kicker {
    display: block;
    margin-bottom: clamp(7px, 0.7vw, 12px);
    color: #ff3b30;
    font-family: var(--font-display);
    font-size: clamp(17px, 1.45vw, 30px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.home-page .home-bar__info-text {
    max-width: 280px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(9px, 0.78vw, 14px);
    font-weight: 800;
    line-height: 1.34;
}

.home-page .home-bar__info-note {
    display: block;
    margin-top: clamp(14px, 1.35vw, 24px);
    color: #ff3b30;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.35vw, 50px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.075em;
    text-transform: uppercase;
}

/* =========================
   LAPTOP
========================= */

@media (max-width: 1200px) {
    .home-page .home-bar {
        height: 330px;
    }

    .home-page .home-bar__overlay {
        grid-template-columns:
            minmax(230px, 0.72fr)
            minmax(220px, 1fr)
            minmax(210px, 0.58fr);
        gap: 28px;
        padding: 30px 34px;
    }

    .home-page .home-bar__content h2 {
        font-size: clamp(42px, 5vw, 72px);
    }

    .home-page .home-bar__content p {
        font-size: 12px;
    }

    .home-page .home-bar__info-note {
        font-size: clamp(24px, 2.8vw, 40px);
    }
}

/* =========================
   TABLET
   Всё ещё как на десктопе: 3 колонки
========================= */

@media (max-width: 900px) {
    .home-page .home-bar {
        height: 270px;
    }

    .home-page .home-bar__overlay {
        grid-template-columns:
            minmax(160px, 0.72fr)
            minmax(120px, 1fr)
            minmax(150px, 0.62fr);
        gap: 14px;
        padding: 22px 18px;
    }

    .home-page .home-bar__content h2 {
        font-size: clamp(34px, 6vw, 54px);
    }

    .home-page .home-bar__content p {
        max-width: 260px;
        font-size: 9px;
        line-height: 1.32;
    }

    .home-page .home-bar__button {
        width: 136px;
        min-height: 34px;
        margin-top: 12px;
        padding: 0 10px;
        font-size: 7px;
    }

    .home-page .home-bar__button span {
        font-size: 11px;
    }

    .home-page .home-bar__info {
        width: 150px;
    }

    .home-page .home-bar__info-kicker {
        font-size: 17px;
    }

    .home-page .home-bar__info-text {
        max-width: 145px;
        font-size: 8px;
        line-height: 1.28;
    }

    .home-page .home-bar__info-note {
        margin-top: 10px;
        font-size: 22px;
    }
}

/* =========================
   PHONE
   Остаётся как десктоп: слева / центр / справа
========================= */

@media (max-width: 680px) {
    .home-page .home-bar {
        height: 210px;
    }

    .home-page .home-bar__bg {
        object-position: center;
    }

    .home-page .home-bar__overlay {
        display: grid;
        grid-template-columns:
            minmax(112px, 0.72fr)
            minmax(84px, 1fr)
            minmax(108px, 0.62fr);
        align-items: center;
        gap: 8px;
        padding: 14px 10px;
    }

    .home-page .home-bar__content {
        max-width: 128px;
    }

    .home-page .home-bar__kicker {
        margin-bottom: 4px;
        font-size: 6px;
    }

    .home-page .home-bar__content h2 {
        font-size: clamp(24px, 8.4vw, 34px);
        line-height: 0.82;
        letter-spacing: -0.075em;
    }

    .home-page .home-bar__content p {
        max-width: 124px;
        margin-top: 8px;
        font-size: 6px;
        line-height: 1.28;
    }

    .home-page .home-bar__button {
        width: 104px;
        min-height: 26px;
        margin-top: 9px;
        padding: 0 7px;
        font-size: 5px;
        gap: 6px;
    }

    .home-page .home-bar__button span {
        font-size: 8px;
    }

    .home-page .home-bar__info {
        grid-column: 3;
        width: 108px;
        justify-self: end;
    }

    .home-page .home-bar__info-kicker {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .home-page .home-bar__info-text {
        max-width: 108px;
        font-size: 5.5px;
        line-height: 1.24;
    }

    .home-page .home-bar__info-note {
        margin-top: 8px;
        font-size: clamp(12px, 4.6vw, 18px);
        line-height: 0.86;
        letter-spacing: -0.06em;
    }
}

@media (max-width: 420px) {
    .home-page .home-bar {
        height: 190px;
    }

    .home-page .home-bar__overlay {
        grid-template-columns:
            minmax(98px, 0.72fr)
            minmax(74px, 1fr)
            minmax(96px, 0.62fr);
        gap: 7px;
        padding: 12px 8px;
    }

    .home-page .home-bar__content {
        max-width: 108px;
    }

    .home-page .home-bar__kicker {
        font-size: 5px;
    }

    .home-page .home-bar__content h2 {
        font-size: 24px;
    }

    .home-page .home-bar__content p {
        max-width: 108px;
        margin-top: 7px;
        font-size: 5px;
        line-height: 1.24;
    }

    .home-page .home-bar__button {
        width: 92px;
        min-height: 23px;
        margin-top: 8px;
        padding: 0 6px;
        font-size: 4.5px;
    }

    .home-page .home-bar__button span {
        font-size: 7px;
    }

    .home-page .home-bar__info {
        width: 96px;
    }

    .home-page .home-bar__info-kicker {
        font-size: 10px;
    }

    .home-page .home-bar__info-text {
        max-width: 96px;
        font-size: 5px;
    }

    .home-page .home-bar__info-note {
        margin-top: 7px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .home-page .home-bar {
        height: 178px;
    }

    .home-page .home-bar__overlay {
        grid-template-columns:
            minmax(88px, 0.72fr)
            minmax(66px, 1fr)
            minmax(88px, 0.62fr);
        padding: 10px 7px;
    }

    .home-page .home-bar__content h2 {
        font-size: 21px;
    }

    .home-page .home-bar__content p {
        font-size: 4.5px;
    }

    .home-page .home-bar__button {
        width: 84px;
        min-height: 21px;
        font-size: 4px;
    }

    .home-page .home-bar__info {
        width: 88px;
    }

    .home-page .home-bar__info-kicker {
        font-size: 9px;
    }

    .home-page .home-bar__info-text {
        font-size: 4.5px;
    }

    .home-page .home-bar__info-note {
        font-size: 12px;
    }
}