@media (min-width: 1920px) {
    :root {
        --wrap: 1640px;
        --header-h: 92px;
    }
}

@media (max-width: 1280px) {
    .hm-header__nav {
        display: none;
    }

    .hm-about {
        grid-template-columns: 1fr 1fr;
    }

    .hm-about__media {
        grid-row: span 2;
        grid-column: 2;
    }

    .hm-badge--a {
        left: -6%;
    }

    .hm-badge--b {
        right: -4%;
    }

    .hm-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hm-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-h: 72px;
    }

    .hm-hero__content {
        grid-template-columns: 1fr;
        align-content: end;
        gap: 28px;
    }

    .hm-hero__lead {
        max-width: 48ch;
    }

    .hm-hero__content {
        padding-bottom: 110px;
    }

    .hm-hero__right {
        align-items: flex-start;
        text-align: left;
    }

    .hm-hero__right .hm-chips {
        justify-content: flex-start;
    }

    .hm-hero__halo,
    .hm-hero__floor,
    .hm-shape {
        left: 50%;
    }

    .hm-hero__halo {
        top: 35%;
        width: min(90vw, 60vh);
    }

    .hm-hero {
        background:
            linear-gradient(180deg, rgba(242, 242, 243, 0) 80%, var(--bg) 100%),
            linear-gradient(180deg, #e0e0e3 0%, #dcdde0 60%, #e4e4e7 100%);
    }

    .hm-hero__floor {
        top: 58%;
    }

    .hm-hero__grid {
        -webkit-mask-image: radial-gradient(70% 45% at 50% 35%, #000 0%, transparent 80%);
        mask-image: radial-gradient(70% 45% at 50% 35%, #000 0%, transparent 80%);
    }

    .hm-svc {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hm-svc__art {
        order: -1;
        height: 220px;
    }

    .hm-why {
        height: auto;
    }

    .hm-why__pin {
        position: relative;
        height: auto;
        padding: var(--sec) 0;
    }

    .hm-why__grid {
        grid-template-columns: 1fr;
    }

    .hm-why__stage {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
        aspect-ratio: auto;
    }

    .hm-why__card,
    .hm-why__card.is-past {
        position: relative;
        aspect-ratio: 4 / 3;
        opacity: 1;
        transform: none;
    }

    .hm-why__progress {
        display: none;
    }

    .hm-proc {
        height: auto;
    }

    .hm-proc__pin {
        position: relative;
        height: auto;
        padding: var(--sec) 0;
    }

    .hm-proc__inner {
        grid-template-columns: 1fr;
    }

    .hm-proc__count,
    .hm-proc__track {
        display: none;
    }

    .hm-proc__glow {
        left: 50%;
        top: 30%;
    }

    .hm-proc__stage {
        height: auto;
        perspective: none;
    }

    .hm-proc__ring {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        width: auto;
        height: auto;
        margin: 0;
        transform: none !important;
    }

    .hm-proc__card {
        position: relative;
        inset: auto;
        gap: 22px;
        min-height: 240px;
        opacity: 1;
        transform: none;
    }

    .hm-posts {
        grid-template-columns: 1fr 1fr;
    }

    .hm-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hm-post--lead {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hm-post--lead .hm-post__body {
        padding: 0 10px 12px;
    }

    .hm-partners__grid,
    .hm-contact__grid {
        grid-template-columns: 1fr;
    }

    .hm-partners__col + .hm-partners__col {
        padding: 28px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .hm-reel {
        height: 220vh;
    }
}

@media (max-width: 860px) {
    .hm-say {
        height: 170vh;
    }

    .hm-statement {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }

    .hm-statement--lines {
        font-size: clamp(1.6rem, 7.4vw, 2.6rem);
    }

    .hm-say__line {
        white-space: normal;
    }

    .hm-stack__item {
        top: calc(var(--header-h) + 8px + var(--i) * 6px);
        margin-bottom: 24px;
    }

    .hm-svc {
        min-height: 0;
        max-height: calc(100svh - var(--header-h) - 120px);
    }

    .hm-svc__art {
        height: clamp(110px, 18svh, 160px);
    }

    .hm-svc__body {
        gap: 10px;
        padding: 18px 20px 22px;
    }

    .hm-svc__name {
        font-size: clamp(1.45rem, 6vw, 2rem);
    }

    .hm-svc__desc {
        display: -webkit-box;
        overflow: hidden;
        font-size: .95rem;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .hm-svc__more {
        margin-top: 4px;
    }

    .hm-reel__video {
        object-fit: contain;
    }

    .hm-reel.has-mobile .hm-reel__video {
        object-fit: cover;
    }

    .hm-header__cta span {
        display: none;
    }

    .hm-menu__inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding-bottom: 120px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .hm-menu__label {
        font-size: clamp(1.7rem, 7.5vw, 2.6rem);
    }

    .hm-menu__subs {
        display: none;
    }

    .hm-about {
        grid-template-columns: 1fr;
    }

    .hm-about__media {
        grid-row: auto;
        grid-column: auto;
        max-width: 440px;
        width: 86%;
        margin: 20px auto;
    }

    .hm-badge--a {
        left: -8%;
    }

    .hm-badge--b {
        right: -8%;
    }

    .hm-projects__pin {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100svh;
        padding: calc(var(--header-h) + 8px) 0 96px;
    }

    .hm-hscroll__track {
        --pw: 80vw;
        gap: 14px;
    }

    .hm-wall__plane {
        transform: rotateX(12deg) rotateZ(-4deg) scale(1.15);
    }

    .hm-form {
        grid-template-columns: 1fr;
    }

    .hm-footer__grid {
        grid-template-columns: 1fr;
    }

    .hm-footer__cta {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hm-footer__act {
        min-height: 120px;
        padding: 14px;
    }

    .hm-dock__item--menu {
        display: grid;
    }

    .hm-dock__sep {
        display: block;
    }

    .hm-dock__item--store {
        display: none;
    }

    .hm-cart {
        bottom: 86px;
    }
}

@media (max-width: 860px) {
    .hm-epic {
        height: 200vh;
    }

    .hm-epic__content {
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        padding-top: calc(var(--header-h) + 24px);
        padding-bottom: 200px;
    }

    .hm-epic__side {
        max-width: none;
    }

    .hm-epic__title {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
    }

    .hm-epic__beam {
        width: 60vw;
        margin-left: -30vw;
    }
}

@media (max-width: 1024px) {
    .hm-globe {
        height: 300vh;
    }

    .hm-globe__pin {
        align-items: flex-start;
        padding-top: calc(var(--header-h) + 8px);
    }

    .hm-globe__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hm-globe__stage {
        order: -1;
        height: min(48vh, 92vw);
    }

    .hm-globe__title,
    .hm-globe__lead {
        display: none;
    }

    .hm-globe .hm-title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .hm-globe__list {
        margin-top: 14px;
    }

    .hm-globe__list li {
        padding: 8px 0;
        font-size: .92rem;
    }
}

@media (max-width: 600px) {
    :root {
        --gut: 20px;
        --r-lg: 24px;
    }

    .hm-header__logo img {
        height: 36px;
    }

    .hm-hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 10px;
    }

    .hm-hero__actions .hm-btn--dark {
        order: 1;
    }

    .hm-hero__actions .hm-btn--ai {
        order: 2;
    }

    .hm-hero__actions .hm-btn--zalo {
        order: 3;
        grid-column: 1 / -1;
    }

    .hm-hero__actions .hm-btn--ghost svg {
        background: var(--ink) !important;
    }

    .hm-hero__actions .hm-btn--ghost {
        padding: 0 12px;
        font-size: .92rem;
    }

    .hm-hero__actions .hm-btn--ghost svg {
        flex-shrink: 0;
    }

    .hm-hero__actions .hm-btn {
        width: 100%;
        justify-content: space-between;
    }

    .hm-hero__actions .hm-btn--ghost {
        justify-content: center;
        gap: 10px;
        font-size: 1.02rem;
        letter-spacing: .01em;
        background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .2));
        border-color: rgba(255, 255, 255, .75);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), 0 10px 24px -16px rgba(12, 12, 14, .35);
    }

    .hm-hero__actions .hm-btn--ghost svg {
        width: 34px;
        height: 34px;
        padding: 8px;
        color: #fff;
        background: var(--accent);
        border-radius: 50%;
    }

    .hm-hero__halo {
        top: 29%;
    }

    .hm-hero__floor {
        top: 49%;
    }

    .hm-hero {
        height: auto;
        min-height: 100svh;
    }

    .hm-hero__content {
        height: auto;
        min-height: 100svh;
        padding-top: calc(var(--header-h) + 38vh);
    }

    .hm-hero__right .hm-chips {
        display: none;
    }

    .hm-stats {
        gap: 10px;
    }

    .hm-stat {
        min-height: 170px;
        padding: 18px;
        border-radius: 22px;
    }

    .hm-stat__label {
        font-size: .84rem;
    }

    .hm-stat__icon {
        width: 44px;
        height: 44px;
    }

    .hm-stat__num {
        font-size: 2.6rem;
    }

    .hm-proc__ring {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hm-proc__card {
        min-height: 0;
        padding: 18px;
        border-radius: 22px;
    }

    .hm-proc__name {
        font-size: 1rem;
    }

    .hm-posts {
        grid-template-columns: 1fr;
    }

    .hm-plans.is-active {
        grid-template-columns: 1fr;
    }


    .hm-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hm-dock {
        gap: 2px;
        padding: 5px;
    }

    .hm-dock__item {
        width: 42px;
        height: 42px;
    }

    .hm-dock__item--opt {
        display: none;
    }

    .hm-dock__item::after {
        display: none;
    }

    .hm-popup__close {
        top: -14px;
        right: -6px;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .hm-hero__title-2 {
        font-size: clamp(3.4rem, 9vw, 6.4rem);
    }

    .hm-hero__lead {
        font-size: 1.2rem;
    }

    .hm-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hm-globe__stage {
        height: min(52vh, 80vw);
    }

    .hm-footer__fb img {
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .hm-hero__title-2 {
        font-size: clamp(2.8rem, 13vw, 3.6rem);
    }

    .hm-stat {
        min-height: 148px;
        padding: 16px;
    }

    .hm-stat__icon {
        width: 38px;
        height: 38px;
    }

    .hm-stat__label {
        font-size: .8rem;
    }

    .hm-stat__num {
        font-size: 2.4rem;
    }

    .hm-globe {
        height: 250vh;
    }

    .hm-globe__tag {
        padding: 4px 9px;
        font-size: .66rem;
    }

    .hm-globe__hq {
        gap: 6px;
        padding: 4px 10px 4px 4px;
        border-radius: 12px;
    }

    .hm-globe__hq-logo {
        width: 28px;
        height: 28px;
        padding: 4px;
        border-radius: 8px;
    }

    .hm-globe__hq-text em {
        font-size: .5rem;
    }

    .hm-globe__hq-text strong {
        font-size: .76rem;
    }

    .hm-globe__list {
        gap: 0 16px;
    }

    .hm-why__stage {
        display: flex;
        gap: 12px;
        margin: 0 calc(var(--gut) * -1);
        padding: 0 var(--gut);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .hm-why__stage::-webkit-scrollbar {
        display: none;
    }

    .hm-why__card,
    .hm-why__card.is-past {
        flex: 0 0 78%;
        scroll-snap-align: center;
    }

    .hm-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hm-logo {
        padding: 10%;
        border-radius: 12px;
    }

    .hm-partners__grid {
        padding: 22px 18px;
        border-radius: 26px;
    }

    .hm-advisor {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .hm-advisor__img {
        width: 84px;
        height: 84px;
    }

    .hm-advisor__call {
        font-size: 1.7rem;
    }

    .hm-contact__panel {
        padding: 26px 18px 110px;
        border-radius: 28px;
    }

    .hm-contact__formwrap .hm-form {
        padding: 18px;
    }

    .hm-contact__marquee span {
        font-size: 2.8rem;
    }

    .hm-footer__big {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .hm-footer__fb img {
        max-width: 240px;
    }

    .hm-epic__title {
        font-size: clamp(1.7rem, 7.6vw, 2.4rem);
    }

    .hm-say {
        height: 150vh;
    }
}

@media (max-width: 860px) {
    .hm-footer {
        padding-bottom: 130px;
    }

    .hm-footer__bottom {
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .hm-hero__content {
        padding-bottom: 104px;
    }

    .hm-hero__actions .hm-btn {
        height: 52px;
    }
}

@media (max-width: 1280px) {
    .hm-float__card--7,
    .hm-float__card--8 {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hm-float__card--2,
    .hm-float__card--5 {
        display: none;
    }

    .hm-float__card--1 { --x: 22%; --y: 13%; }
    .hm-float__card--3 { --x: 24%; --y: 87%; }
    .hm-float__card--4 { --x: 78%; --y: 15%; }
    .hm-float__card--6 { --x: 76%; --y: 85%; }
}

@media (max-width: 600px) {
    .hm-float__inner {
        gap: 8px;
        padding: 8px 12px 8px 8px;
        border-radius: 14px;
        opacity: .45;
    }

    .hm-float__ico {
        width: 30px;
        height: 30px;
        padding: 5px;
        border-radius: 9px;
    }

    .hm-float__text em {
        display: none;
    }

    .hm-float__text strong {
        font-size: .72rem;
    }

    .hm-float__text {
        max-width: 120px;
    }

    .hm-float__card--1 { --x: 28%; --y: 14%; }
    .hm-float__card--3 { --x: 30%; --y: 88%; }
    .hm-float__card--4 { --x: 74%; --y: 20%; }
    .hm-float__card--6 { --x: 72%; --y: 82%; }
}

@media (max-width: 860px) {
    .hm-epic__content {
        padding-bottom: 250px;
    }

    .hm-epic__cta {
        bottom: 110px;
    }

    .hm-projects .hm-head {
        margin-bottom: 20px;
    }

    .hm-seal {
        width: 92px;
        height: 92px;
    }
}

@media (min-width: 1025px) {
    .hm-header__logo img {
        height: 58px;
    }

    .hm-header.is-solid .hm-header__logo img {
        height: 38px;
    }
}

@media (min-width: 1600px) {
    .hm-header__nav a {
        padding: 10px clamp(16px, 1.3vw, 24px);
        font-size: 1rem;
    }

    .hm-header.is-solid .hm-header__inner {
        max-width: min(1400px, calc(100% - 48px));
    }
}

@media (max-width: 600px) {
    .hm-header__login {
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    .hm-header__login span {
        display: none;
    }

    .hm-header__right {
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .hm-epic__sky {
        background:
            radial-gradient(60% 30% at 50% 0%, rgba(255, 255, 255, .6), transparent 70%),
            radial-gradient(75% 38% at 50% 48%, rgba(255, 178, 140, .55) 0%, rgba(252, 145, 108, .3) 36%, rgba(245, 128, 96, .08) 66%, rgba(245, 128, 96, 0) 100%),
            linear-gradient(180deg, rgba(200, 200, 208, .35) 0%, transparent 40%);
    }
}
