/* Site balance (proposal 12/11/2026): one rhythm for every page.
   Same section gap, panel padding and heading scale on desktop, tablet and phone.
   Layout and type only; no product data, colours of film or optics change here. */

:root{--site-gap:24px;--site-pad:44px;--site-pad-half:40px}
@media(max-width:1100px){:root{--site-gap:20px;--site-pad:32px;--site-pad-half:28px}}
@media(max-width:699px){:root{--site-gap:14px;--site-pad:22px;--site-pad-half:22px}}

/* Section rhythm: the inner pages use the same 24 px gap as the home page */
#main{gap:var(--site-gap)!important;margin-top:24px!important}
.home-content-grid{gap:var(--site-gap)!important}
@media(max-width:699px){#main{margin-top:14px!important}}

/* Panel padding: full-width panels and half panels line up on one inner edge */
#main>.panel:not(.config-tool):not(.price-tab-panel):not(.code-page-root),
#main>.code-page-root>.panel,
.home-content-grid>.panel:not(.config-tool){padding:var(--site-pad)!important}
#main>.panel.span-6,.guide-pair>.panel,.home-content-grid>.panel.span-6{padding:var(--site-pad-half)!important}
.config-tool.panel{padding:var(--site-pad)!important}
@media(max-width:699px){
 #main>.panel:not(.config-tool):not(.price-tab-panel):not(.code-page-root),#main>.code-page-root>.panel,
 .home-content-grid>.panel:not(.config-tool),.config-tool.panel{padding:24px 18px!important}
}

/* Heading scale
   Page title (first heading of a page): 52–76 px desktop, 40 px phone.
   Section title: 30–42 px desktop, 28 px phone. */
#main .family-hero h1,#main .code-page-hero h1,#main .app-dealer-hero h1,#main .catalogue-intro h1,
#main .technology-lab h1,#main .app-warranty-hero h1,#main .app-contact-hero h1{font-size:clamp(52px,5vw,76px)!important;line-height:1.02!important;letter-spacing:-.01em}
#main .panel-head h2,#main .panel>h2,.home-content-grid .panel-head h2,.home-content-grid .panel>div>h2,
#main .guide-pair .panel h2,#main .app-dealer-terms h2,#main .app-benefits h2,#main .app-faq h2{font-size:clamp(30px,2.9vw,42px)!important;line-height:1.1!important}
#main .panel-head,.home-content-grid .panel-head{margin-bottom:24px}
#main .eyebrow,.home-content-grid .eyebrow{font-size:12px;letter-spacing:.08em}
@media(max-width:699px){
 #main .family-hero h1,#main .code-page-hero h1,#main .app-dealer-hero h1,#main .catalogue-intro h1,
 #main .technology-lab h1,#main .app-warranty-hero h1,#main .app-contact-hero h1{font-size:40px!important}
 #main .panel-head h2,#main .panel>h2,.home-content-grid .panel-head h2,.home-content-grid .panel>div>h2,
 #main .guide-pair .panel h2,#main .app-dealer-terms h2,#main .app-benefits h2,#main .app-faq h2{font-size:28px!important}
 #main .panel-head,.home-content-grid .panel-head{margin-bottom:16px}
}

/* Buttons: one height and type size for primary actions in content */
#main .button,.home-content-grid .button{min-height:48px;font-size:15px}
@media(max-width:699px){#main .button,.home-content-grid .button{min-height:46px}}

/* Call band on inner pages (replaces the second, duplicate configurator) */
.site-cta{display:flex;align-items:center;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;background:var(--dark)!important;color:#fff;overflow:hidden;isolation:isolate}
.site-cta::before{content:"";position:absolute;inset:-40% -10%;z-index:-1;pointer-events:none;background:radial-gradient(40% 70% at 82% 40%,rgba(7,100,238,.5),transparent 70%),radial-gradient(30% 60% at 10% 80%,rgba(120,180,255,.18),transparent 70%)}
.site-cta h2{margin:0;font-size:clamp(30px,2.9vw,42px)!important;line-height:1.1;color:#fff}
.site-cta h2 em{color:#9CC8FF}
.site-cta p{margin:10px 0 0;font-size:16px;color:#C9D8EE}
.site-cta-actions{display:flex;flex-wrap:wrap;gap:12px}
.site-cta .button{min-height:52px;font-size:15px}
.site-cta .button.secondary{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4)}
@media(max-width:699px){.site-cta-actions{width:100%}.site-cta-actions .button{flex:1 1 100%;justify-content:center}.site-cta h2{font-size:28px!important}}

/* Đại lý: the fifth card fills the row instead of leaving a gap */
#main .app-dealer-terms:has(+ .app-dealer-conditions){grid-column:1/-1}
#main .app-dealer-conditions{font-size:16px;line-height:1.6;padding:28px var(--site-pad)!important}
@media(max-width:1100px){#main .app-dealer-terms{grid-column:1/-1}}

/* Mã phim: the photo and price panels share one height */
#main .code-page-root{align-items:stretch}
#main .code-page-root>.panel{height:100%}

/* Guides pair (Quy trình / Lưu ý): equal height cards */
.guide-pair{align-items:stretch}
#main .app-dealer-conditions,#main .app-dealer-conditions *{font-size:16px!important;line-height:1.6}

/* Home footer on tablet: same 16 px inset as the content above (it ran edge to edge) */
@media(min-width:700px) and (max-width:1100px){body.v4-home .footer-v4.site-footer{width:auto!important;margin-left:16px!important;margin-right:16px!important}}
