/* VNTech Theme 5 responsive contracts. */
@media (min-width: 1440px) {
    body.vntech-theme5 .t5-hero__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    }

    body.vntech-theme5 .t5-hero-console {
        min-height: 500px;
    }

    body.vntech-theme5 .t5-hero-console__stage {
        min-height: 360px;
    }
}

@media (max-width: 1120px) {
    body.vntech-theme5 .t5-trust__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.vntech-theme5 .t5-trust article:nth-child(3) {
        border-right: 0;
    }

    body.vntech-theme5 .t5-trust article:nth-child(n + 4) {
        border-top: 1px solid rgba(255, 255, 255, 0.09);
    }

    body.vntech-theme5 .t5-platform__rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.vntech-theme5 .t5-platform__rail article:nth-child(2) {
        border-right: 0;
    }

    body.vntech-theme5 .t5-platform__rail article:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.vntech-theme5 .t5-packages__grid,
    body.vntech-theme5 .vn-feature-grid,
    body.vntech-theme5 .vn-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.vntech-theme5 .t5-contact__surface {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
    }

    body.vntech-theme5 .t5-contact__surface > .t5-button {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

@media (max-width: 1020px) {
    body.vntech-theme5 .t5-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
        gap: 34px;
    }

    body.vntech-theme5 .t5-hero h1 {
        font-size: clamp(42px, 5.4vw, 58px);
    }

    body.vntech-theme5 .t5-hero-label--1 { left: 3%; }
    body.vntech-theme5 .t5-hero-label--5 { right: 2%; }

    body.vntech-theme5 .vn-page-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
    }
}

@media (max-width: 900px) {
    body.vntech-theme5 .t5-section-head--horizontal,
    body.vntech-theme5 .t5-hero__grid,
    body.vntech-theme5 .t5-platform__surface,
    body.vntech-theme5 .t5-ai-product__surface,
    body.vntech-theme5 .t5-faq__layout,
    body.vntech-theme5 .t5-contact__surface,
    body.vntech-theme5 .vn-page-hero__inner,
    body.vntech-theme5 .vn-content-layout,
    body.vntech-theme5 .vn-contact-layout,
    body.vntech-theme5 .vn-page-cta__surface {
        grid-template-columns: 1fr;
    }

    body.vntech-theme5 .t5-section-head--horizontal {
        gap: 18px;
    }

    body.vntech-theme5 .t5-hero {
        padding-top: 116px;
    }

    body.vntech-theme5 .t5-hero__copy {
        max-width: 720px;
    }

    body.vntech-theme5 .t5-hero__visual,
    body.vntech-theme5 .t5-hero-console {
        min-height: 410px;
    }

    body.vntech-theme5 .t5-hero-console__stage {
        min-height: 278px;
    }

    body.vntech-theme5 .t5-control__grid,
    body.vntech-theme5 .t5-process__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.vntech-theme5 .t5-platform__visual {
        min-height: 220px;
    }

    body.vntech-theme5 .t5-ai-product__visual {
        min-height: 300px;
    }

    body.vntech-theme5 .t5-faq__layout .t5-section-head,
    body.vntech-theme5 .vn-page-aside,
    body.vntech-theme5 .vn-document-nav {
        position: static;
    }

    body.vntech-theme5 .vn-page-hero__media {
        min-height: 280px;
    }

    body.vntech-theme5 .vn-content-layout {
        gap: 34px;
    }

    body.vntech-theme5 .vn-page-aside {
        max-width: 680px;
    }

    body.vntech-theme5 .vn-document-layout {
        grid-template-columns: 1fr;
    }

    body.vntech-theme5 .vn-document-nav {
        display: none;
    }

    body.vntech-theme5 .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    body.vntech-theme5 .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    :root {
        --t5-section-space: 62px;
        --t5-section-space-compact: 46px;
        --t5-radius-md: 16px;
        --t5-radius-lg: 22px;
    }

    body.vntech-theme5 .t5-shell,
    body.vntech-theme5 .vn-container,
    body.vntech-theme5 .vn-container--compact {
        width: min(calc(100% - 28px), var(--t5-width));
    }

    body.vntech-theme5 .t5-section-head h2,
    body.vntech-theme5 .t5-control h2,
    body.vntech-theme5 .t5-why h2,
    body.vntech-theme5 .t5-contact h2 {
        max-width: none;
        font-size: clamp(31px, 9vw, 42px);
        letter-spacing: -0.04em;
    }

    body.vntech-theme5 .t5-actions,
    body.vntech-theme5 .t5-actions .t5-button,
    body.vntech-theme5 .t5-contact__surface > .t5-button,
    body.vntech-theme5 .vn-page-cta .t5-button {
        width: 100%;
    }

    body.vntech-theme5 .t5-hero {
        padding: 92px 0 54px;
    }

    body.vntech-theme5 .t5-hero h1 {
        max-width: none;
        font-size: clamp(39px, 12vw, 54px);
    }

    body.vntech-theme5 .t5-hero__intro {
        font-size: 16px;
    }

    body.vntech-theme5 .t5-hero__note {
        align-items: flex-start;
        border-radius: 14px;
    }

    body.vntech-theme5 .t5-hero__visual,
    body.vntech-theme5 .t5-hero-console {
        min-height: 360px;
    }

    body.vntech-theme5 .t5-hero-console__bar {
        min-height: 48px;
        padding-inline: 12px;
        font-size: 8px;
    }

    body.vntech-theme5 .t5-hero-console__stage {
        min-height: 238px;
    }

    body.vntech-theme5 .t5-hero-label {
        min-width: 88px;
        padding: 7px 8px 7px 12px;
    }

    body.vntech-theme5 .t5-hero-label strong { font-size: 9px; }
    body.vntech-theme5 .t5-hero-label small { font-size: 8px; }
    body.vntech-theme5 .t5-hero-label--1 { top: 59%; left: 2%; }
    body.vntech-theme5 .t5-hero-label--2 { top: 17%; left: 9%; }
    body.vntech-theme5 .t5-hero-label--3 { top: 5%; left: 43%; }
    body.vntech-theme5 .t5-hero-label--4 { top: 25%; right: 2%; }
    body.vntech-theme5 .t5-hero-label--5 { top: 64%; right: 1%; }

    body.vntech-theme5 .t5-hero-console__metrics {
        min-height: 72px;
    }

    body.vntech-theme5 .t5-hero-console__metrics > span {
        padding: 10px;
    }

    body.vntech-theme5 .t5-hero-console__metrics strong {
        font-size: 9px;
    }

    body.vntech-theme5 .t5-trust__grid,
    body.vntech-theme5 .t5-services__grid,
    body.vntech-theme5 .t5-control__grid,
    body.vntech-theme5 .t5-process__track,
    body.vntech-theme5 .t5-projects__grid,
    body.vntech-theme5 .t5-packages__grid,
    body.vntech-theme5 .t5-why__grid,
    body.vntech-theme5 .t5-platform__rail,
    body.vntech-theme5 .t5-ai-product__copy ul,
    body.vntech-theme5 .vn-feature-grid,
    body.vntech-theme5 .vn-archive-grid,
    body.vntech-theme5 .vn-case-facts,
    body.vntech-theme5 .vn-case-gallery,
    body.vntech-theme5 .site-footer__grid {
        grid-template-columns: 1fr;
    }

    body.vntech-theme5 .t5-trust article,
    body.vntech-theme5 .t5-trust article:first-child,
    body.vntech-theme5 .t5-trust article:last-child {
        min-height: auto;
        padding: 16px 0;
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
    }

    body.vntech-theme5 .t5-trust article:first-child {
        border-top: 0;
    }

    body.vntech-theme5 .t5-service-card,
    body.vntech-theme5 .t5-control__grid article,
    body.vntech-theme5 .t5-process__track li,
    body.vntech-theme5 .t5-why__grid article,
    body.vntech-theme5 .t5-package {
        min-height: auto;
        padding: 22px;
    }

    body.vntech-theme5 .t5-process__track {
        gap: 1px;
    }

    body.vntech-theme5 .t5-platform__surface,
    body.vntech-theme5 .t5-ai-product__surface,
    body.vntech-theme5 .t5-contact__surface,
    body.vntech-theme5 .vn-page-cta__surface {
        padding: 25px 20px;
    }

    body.vntech-theme5 .t5-platform__intro h2,
    body.vntech-theme5 .t5-ai-product__copy h2 {
        max-width: none;
        font-size: clamp(34px, 10vw, 44px);
    }

    body.vntech-theme5 .t5-platform__rail article,
    body.vntech-theme5 .t5-platform__rail article:nth-child(n) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.vntech-theme5 .t5-platform__rail article:last-child {
        border-bottom: 0;
    }

    body.vntech-theme5 .t5-ai-product__visual {
        min-height: 0;
    }

    body.vntech-theme5 .t5-ai-panel {
        max-width: none;
    }

    body.vntech-theme5 .t5-package__audience {
        min-height: 0;
    }

    body.vntech-theme5 .t5-faq__list summary {
        min-height: 58px;
        padding: 15px 16px;
        font-size: 14px;
    }

    body.vntech-theme5 .t5-faq__list details > div {
        padding: 0 16px 18px;
    }

    body.vntech-theme5 .t5-contact__channels {
        width: 100%;
    }

    body.vntech-theme5 .vn-page-hero {
        padding: 104px 0 58px;
    }

    body.vntech-theme5 .vn-page-hero h1 {
        max-width: none;
        font-size: clamp(38px, 12vw, 54px);
    }

    body.vntech-theme5 .vn-page-hero__intro {
        font-size: 16px;
    }

    body.vntech-theme5 .vn-page-hero__media {
        min-height: 220px;
    }

    body.vntech-theme5 .vn-entry-content,
    body.vntech-theme5 .vn-entry-content p,
    body.vntech-theme5 .vn-entry-content li {
        font-size: 16px;
    }

    body.vntech-theme5 .vn-content-card__body,
    body.vntech-theme5 .vn-page-aside,
    body.vntech-theme5 .vn-contact-panel {
        padding: 21px;
    }

    body.vntech-theme5 .site-footer__brand,
    body.vntech-theme5 .site-footer__nav,
    body.vntech-theme5 .site-footer__contact {
        grid-column: auto;
    }
}

@media (max-width: 430px) {
    body.vntech-theme5 .t5-shell,
    body.vntech-theme5 .vn-container,
    body.vntech-theme5 .vn-container--compact {
        width: min(calc(100% - 22px), var(--t5-width));
    }

    body.vntech-theme5 .t5-hero-console__state {
        display: none;
    }

    body.vntech-theme5 .t5-hero-label--3 {
        display: none;
    }

    body.vntech-theme5 .t5-hero-console__metrics > span {
        padding-inline: 7px;
    }

    body.vntech-theme5 .t5-hero-console__metrics small {
        font-size: 8px;
    }

    body.vntech-theme5 .t5-contact__channels strong {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 360px) {
    body.vntech-theme5 .t5-hero h1,
    body.vntech-theme5 .vn-page-hero h1 {
        font-size: 38px;
    }

    body.vntech-theme5 .t5-hero-console__metrics {
        grid-template-columns: 1fr;
    }

    body.vntech-theme5 .t5-hero-console__metrics > span {
        min-height: 54px;
        border-right: 0;
        border-bottom: 1px solid rgba(150, 185, 244, 0.18);
    }

    body.vntech-theme5 .t5-hero-console__metrics > span:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 320px) {
    body.vntech-theme5 .t5-shell,
    body.vntech-theme5 .vn-container,
    body.vntech-theme5 .vn-container--compact {
        width: min(calc(100% - 18px), var(--t5-width));
    }

    body.vntech-theme5 .t5-button {
        padding-inline: 13px;
        font-size: 13px;
    }

    body.vntech-theme5 .t5-hero h1,
    body.vntech-theme5 .vn-page-hero h1 {
        font-size: 35px;
    }
}
