/* Stage 3 Native Styles (/css/home-stage3.css?1) — 100% Reference Parity */

/* ================= I. HERO (.hn-title-page) ================= */
.hn-title-page {
    max-width: 1320rem;
    margin: 48rem auto 0;
    padding: 0 20rem;
    align-items: flex-start;
    justify-content: center;
    gap: 34rem;
}

.hn-play-col {
    flex-shrink: 0;
    padding-top: 26rem; /* Optically centers 88rem circle against 1-line kicker + 2-line H1 */
}

.hn-play-trigger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.hn-play-trigger .banner__link {
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.hn-play-trigger:hover .banner__link {
    transform: scale(1.05);
    background: #2a8edc;
}

.hn-play-caption {
    margin-top: 10rem;
    font-size: 14rem;
    line-height: 18rem;
    color: #7f7f7f;
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease-in-out;
}

.hn-play-trigger:hover .hn-play-caption {
    color: #578dd8;
}

.hn-title-col {
    max-width: 840rem;
    text-align: left;
}

.hn-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem 10rem;
    font-family: Ubuntu Bold, sans-serif;
    font-size: 15rem;
    line-height: 22rem;
    text-transform: uppercase;
    color: #7f7f7f;
    margin-bottom: 12rem;
    text-align: left;
}

.hn-kicker__group,
.hn-kicker__sep {
    display: inline !important;
    width: auto !important;
    white-space: nowrap;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

.hn-title-col h1 {
    text-align: left;
    font-size: 48rem;
    line-height: 54rem;
    color: #000000;
    margin: 0;
}

.hn-title-col .text-h1 {
    margin-top: 16rem;
    font-size: 20rem;
    line-height: 28rem;
    color: #000000;
    max-width: 780rem;
    text-align: left;
}

.hn-hero-btns {
    margin-top: 28rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 20rem;
}

/* Kill inherited .btn { margin: 0 auto } so buttons align flush-left with H1! */
.hn-hero-btns .btn {
    margin: 0 !important;
}

.hn-btn-main,
.hn-btn-second {
    height: 60rem;
    padding: 0 38rem;
    font-family: Ubuntu Bold, sans-serif;
    font-size: 19rem;
    border-radius: 50px;
}

.hn-btn-main {
    background: #77ce6f;
    color: #ffffff;
}
.hn-btn-main:hover {
    background: #578dd8;
    color: #ffffff;
}

.hn-btn-second {
    background: #ffffff;
    border: 1px solid #d4d4d4;
    color: #000000;
}
.hn-btn-second:hover {
    background: #578dd8;
    border-color: #578dd8;
    color: #ffffff;
}

/* ================= II. 8-CARD CLIENT STRIP (.hn-partners-strip) ================= */
.hn-partners-strip {
    width: 1320rem;
    max-width: calc(100% - 40rem);
    margin: 44rem auto 42rem;
}

.hn-partners-strip__list {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 18rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hn-partners-strip__list li {
    min-width: 0;
}

.hn-partner-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76rem;
    padding: 12rem 14rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    box-sizing: border-box;
}

.hn-partners-strip__list li:hover .hn-partner-box {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.hn-partner-box img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Per-logo optical normalization so all 7 corporate marks carry equal visual weight */
.hn-logo--lukoil { max-height: 32rem; }
.hn-logo--x5     { max-height: 44rem; }
.hn-logo--magnit { max-height: 29rem; }
.hn-logo--rtk    { max-height: 36rem; }
.hn-logo--sibur  { height: 22rem; }
.hn-logo--ecco   { max-height: 23rem; }
.hn-logo--itmo   { max-height: 38rem; }

.hn-partner-box--more {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.hn-more-num {
    font-family: Ubuntu Bold, sans-serif;
    font-size: 22rem;
    line-height: 24rem;
    color: #578dd8;
}

.hn-more-txt {
    font-family: Ubuntu, sans-serif;
    font-size: 14rem;
    line-height: 16rem;
    color: #7f7f7f;
    white-space: nowrap;
}

.hn-partners-strip__list li:hover .hn-more-txt {
    color: #000000;
}

/* ================= III. BENTO CLEANUP (.hn-bento-clean) ================= */
.hn-bento-clean .desktop .cont {
    padding-top: 40rem;
}

.hn-bento-clean .desktop .l .cont .descr {
    width: 390rem;
    margin-top: 16rem;
}

.hn-bento-clean .desktop .r .cont .descr {
    width: 242rem;
    margin-top: 16rem;
}

.hn-p-gap {
    display: block;
    height: 10rem;
}

/* ================= IV. #KEYFEATURES (.hn-key-vantages) ================= */
.hn-key-vantages {
    background: #ffffff !important;
    padding: 95px 0 55px !important;
}

.hn-key-vantages .vantages__item {
    margin-bottom: 35px;
    padding: 0 12px;
    box-sizing: border-box;
}

.hn-key-vantages .vantages__img {
    height: 130px;
    width: 148px;
    margin: 0 auto 38px;
}

.hn-key-vantages .vantages__text {
    max-width: 280px;
    line-height: 27px;
}

/* ================= V. #LIVEDEMO (.hn-livedemo-sec) ================= */
.hn-livedemo-sec {
    background: #ffffff !important;
    padding: 95px 0 90px !important;
}

.hn-livedemo-row {
    align-items: flex-start !important;
}

.hn-livedemo-cards {
    display: flex !important;
    gap: 34px;
    justify-content: space-between;
    border-radius: 0 !important;
}

.hn-demo-tile {
    width: calc(50% - 17px);
}

.hn-demo-tile__surface {
    width: 100%;
    max-width: 252px;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hn-demo-qr-img,
.hn-demo-marker-img {
    width: 100%;
    height: 100%;
    display: block;
}

.hn-demo-qr-img {
    border-radius: 0 !important;
    object-fit: contain;
}

.hn-demo-marker-img {
    border-radius: 12px !important;
    object-fit: cover;
}

.hn-demo-tile__caption {
    max-width: 252px;
    margin: 20px auto 0;
    font-size: 18px;
    line-height: 24px;
    color: #000000;
    text-align: center;
    white-space: nowrap;
}

.hn-caption-mob,
.hn-copy-mob {
    display: none !important;
}

.hn-livedemo-copy {
    padding-top: 2px;
    padding-right: 0;
}

.hn-livedemo-actions {
    margin-top: 28px;
    margin-bottom: 0 !important;
}

.hn-demo-video-btn {
    width: auto !important;
    min-width: 290px;
    max-width: 100%;
    height: 66px !important;
    padding: 0 42px !important;
    font-size: 22px !important;
    margin: 0 !important;
}

/* ================= RESPONSIVE: <=1139px ================= */
@media (max-width: 1139px) {
    .hn-livedemo-sec {
        padding: 65px 0 60px !important;
    }
    .hn-demo-tile__caption {
        font-size: 16px;
    }
}

/* Stack #LIVEDEMO cleanly on <=991px so 768px tablet NEVER clips the CTA button */
@media (max-width: 991px) {
    .hn-livedemo-row {
        display: block !important;
    }
    .hn-livedemo-cards {
        width: 100% !important;
        max-width: 560px;
        margin: 0 auto 34px;
    }
    .hn-livedemo-copy {
        width: 100% !important;
        max-width: 640px;
        margin: 0 auto;
        padding-left: 0 !important;
        text-align: center;
    }
    .hn-livedemo-actions {
        text-align: center;
    }
    .hn-key-vantages h2 {
        font-size: 40px;
        line-height: 50px;
    }
    .hn-key-vantages .vantages__number {
        font-size: 210px;
        margin-left: -105px;
    }
}

/* ================= TABLET & MOBILE: <=859px ================= */
@media screen and (max-width: 859px) {
    .hn-br-desk {
        display: none;
    }
    .hn-kicker__sep {
        display: none !important;
    }
    .hn-kicker {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-align: center;
        font-size: 13px;
        line-height: 19px;
    }
    .hn-kicker__group {
        display: block !important;
    }
    .hn-play-col {
        padding-top: 0;
    }
    .hn-title-col {
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    .hn-title-col h1 {
        text-align: center;
    }
    .hn-title-col .text-h1 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hn-bento-clean .mobile {
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .hn-bento-clean .mobile .item {
        border-radius: 20px;
        overflow: hidden;
    }
    .hn-bento-clean .mobile .mobile-cont {
        padding: 24px 22px;
    }
    .hn-bento-clean .mobile .mobile-cont .titl {
        font-size: 20px;
        line-height: 24px;
        max-width: 225px;
    }
    .hn-bento-clean .mobile .mobile-cont .descr {
        margin-top: 10px;
        font-size: 14.5px;
        line-height: 20px;
        width: 200px;
    }
}

/* Dedicated Tablet Layout (576px..859px — e.g. 768x1024 iPad) — eliminates 350px narrow tunnel! */
@media screen and (min-width: 576px) and (max-width: 859px) {
    .hn-title-page {
        width: 100% !important;
        max-width: 688px !important;
        margin: 36px auto 0 !important;
        padding: 0 20px !important;
        align-items: center;
        gap: 18px;
    }
    .hn-title-col h1 {
        font-size: 40px !important;
        line-height: 46px !important;
        max-width: 600px;
        margin: 0 auto;
    }
    .hn-title-col .text-h1 {
        font-size: 18px !important;
        line-height: 26px !important;
        max-width: 600px;
    }
    .hn-hero-btns {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
    .hn-btn-main,
    .hn-btn-second {
        height: 54px;
        padding: 0 28px !important;
        font-size: 17px !important;
        width: auto;
    }
    .hn-partners-strip {
        width: 100% !important;
        max-width: 688px !important;
        margin: 36px auto 36px !important;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .hn-partners-strip__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
    .hn-partner-box {
        height: 68px;
        padding: 10px 12px;
    }
    .hn-logo--lukoil { max-height: 28px; }
    .hn-logo--x5     { max-height: 38px; }
    .hn-logo--magnit { max-height: 25px; }
    .hn-logo--rtk    { max-height: 31px; }
    .hn-logo--sibur  { height: 19px; }
    .hn-logo--ecco   { max-height: 20px; }
    .hn-logo--itmo   { max-height: 33px; }
    .hn-more-num     { font-size: 20px; line-height: 22px; }
    .hn-more-txt     { font-size: 13px; line-height: 15px; }

    /* 2-column Bento grid on 768px tablet */
    .hn-bento-clean .mobile {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px !important;
        width: 100% !important;
        max-width: 688px !important;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .hn-bento-clean .mobile .hn-mobile-span2 {
        grid-column: 1 / -1;
        max-width: 390px;
        margin: 0 auto;
        width: 100%;
    }
    .hn-bento-clean .mobile .mobile-cont {
        padding: 22px 20px;
    }
    .hn-bento-clean .mobile .mobile-cont .titl {
        font-size: 18px;
        line-height: 21.5px;
        max-width: 205px;
    }
    .hn-bento-clean .mobile .mobile-cont .descr {
        font-size: 13.5px;
        line-height: 18.5px;
        width: 178px;
        margin-top: 9px;
    }

    /* Expand .bl-7 on tablet so it aligns with 648px content rail instead of 350px */
    .bl-7 .inner {
        width: calc(100% - 40px) !important;
        max-width: 648px !important;
        padding: 36px 36px !important;
    }
}

/* ================= PHONE LAYOUT: <=575px (e.g. 390x844) ================= */
@media screen and (max-width: 575px) {
    .hn-kicker {
        font-size: 11.5px;
        line-height: 17px;
        max-width: 100%;
    }
    .hn-kicker__group {
        white-space: normal !important;
        max-width: 100%;
    }
    .hn-title-page {
        width: 390rem;
        margin: 22rem auto 0;
        padding: 0 20rem;
        align-items: center;
        gap: 16rem;
    }
    .hn-play-trigger .banner__link {
        width: 68rem;
        height: 68rem;
    }
    .hn-play-caption {
        margin-top: 6rem;
        font-size: 13rem;
    }
    .hn-title-col h1 {
        font-size: 32rem;
        line-height: 36rem;
        padding: 0;
    }
    .hn-title-col .text-h1 {
        font-size: 17rem;
        line-height: 24rem;
        margin-top: 12rem;
    }
    .hn-hero-btns {
        flex-direction: column;
        gap: 12rem;
        width: 100%;
        margin-top: 22rem;
    }
    .hn-btn-main,
    .hn-btn-second {
        width: 100%;
        height: auto;
        padding: 15px 20px !important;
        font-size: 16px !important;
    }
    .hn-partners-strip {
        width: 350rem;
        max-width: calc(100% - 40rem);
        margin: 30rem auto 30rem;
    }
    .hn-partners-strip__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14rem;
    }
    .hn-partner-box {
        height: 64rem;
        padding: 10rem 14rem;
    }
    .hn-logo--lukoil { max-height: 28rem; }
    .hn-logo--x5     { max-height: 38rem; }
    .hn-logo--magnit { max-height: 25rem; }
    .hn-logo--rtk    { max-height: 32rem; }
    .hn-logo--sibur  { height: 19rem; }
    .hn-logo--ecco   { max-height: 20rem; }
    .hn-logo--itmo   { max-height: 34rem; }
    .hn-more-num     { font-size: 20rem; line-height: 22rem; }
    .hn-more-txt     { font-size: 13rem; line-height: 15rem; }
}

/* Coherent Mobile UX on <=765px for #KEYFEATURES & #LIVEDEMO */
@media (max-width: 765px) {
    .hn-key-vantages {
        padding: 45px 0 25px !important;
    }
    .hn-key-vantages .vantages__item {
        padding-top: 14px;
        margin-bottom: 36px;
    }
    .hn-key-vantages .vantages__number {
        font-size: 170px;
        line-height: 110px;
        margin-left: -85px;
        top: 6px;
    }
    .hn-key-vantages .vantages__img {
        margin-bottom: 14px;
    }
    .hn-livedemo-sec {
        padding: 45px 0 45px !important;
    }
    /* On phone, hide "scan your own monitor" QR tile and show clean AR preview + video CTA */
    .hn-demo-tile--qr,
    .hn-caption-desk,
    .hn-copy-desk {
        display: none !important;
    }
    .hn-caption-mob {
        display: block !important;
        margin-top: 14px;
        font-size: 16px;
    }
    .hn-copy-mob {
        display: block !important;
    }
    .hn-livedemo-cards {
        margin-bottom: 24px;
    }
    .hn-demo-tile {
        width: 100%;
    }
    .hn-demo-tile__surface {
        max-width: 240px;
        padding: 16px;
    }
    .hn-demo-video-btn {
        width: 100% !important;
        min-width: 0;
        height: auto !important;
        padding: 16px 24px !important;
        font-size: 18px !important;
    }
}
