/* Shared subpage system */
.subpage { background: #fff; }
.subpage-main { overflow: hidden; }
.subpage .site-header .brand { flex-shrink: 0; }

.page-hero {
    position: relative;
    display: flex;
    min-height: 330px;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(112deg, #f8fcff 0%, #e7f5ff 54%, #cceaff 100%);
}

.page-hero::before {
    position: absolute;
    top: -45%;
    right: -8%;
    width: 560px;
    height: 560px;
    content: "";
    border: 1px solid rgba(29,120,216,.16);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(63,169,245,.05), 0 0 0 110px rgba(63,169,245,.035);
}

.page-hero::after {
    position: absolute;
    right: -8%;
    bottom: -110px;
    left: -8%;
    height: 160px;
    content: "";
    background: rgba(255,255,255,.8);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.page-hero-inner { position: relative; z-index: 2; padding: 72px 0 92px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: #59718b; font-size: 12px; }
.breadcrumb a { color: var(--primary); font-weight: 650; }
.breadcrumb i { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.page-hero h1 { max-width: 1120px; margin-bottom: 16px; color: var(--navy); font-size: clamp(32px, 4vw, 54px); line-height: 1.28; letter-spacing: -.045em; text-transform: uppercase; }
.page-hero p { max-width: 690px; margin: 0; color: #54708d; font-size: 16px; line-height: 1.75; }
.page-hero-meta { display: flex; gap: 18px; margin-top: 22px; color: #58738f; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }

.page-section { padding: 90px 0; }
.page-section-soft { background: #f6fbff; }
.page-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.page-section-head h2 { margin: 0; color: var(--navy); font-size: clamp(29px, 3vw, 42px); letter-spacing: -.035em; text-transform: uppercase; }
.page-section-head p { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.category-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 38px; }
.category-tab { padding: 12px 18px; color: #55708b; background: #fff; border: 1px solid #d9e9f8; border-radius: 999px; font-size: 11px; font-weight: 700; cursor: pointer; transition: .3s var(--ease); }
.category-tab:hover, .category-tab.active { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 9px 24px rgba(10,79,168,.2); }

/* Article list */
.featured-story { display: grid; grid-template-columns: 1.18fr .82fr; overflow: hidden; margin-bottom: 52px; background: var(--navy); border-radius: 24px; box-shadow: var(--shadow-lg); }
.featured-story-media { min-height: 430px; overflow: hidden; }
.featured-story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.featured-story:hover img { transform: scale(1.025); }
.featured-story-content { display: flex; flex-direction: column; justify-content: center; padding: 48px; color: #fff; }
.story-tag { display: inline-flex; width: max-content; margin-bottom: 20px; padding: 7px 11px; color: #bfe7ff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.featured-story h2 { margin-bottom: 18px; font-size: clamp(27px, 3vw, 39px); line-height: 1.25; letter-spacing: -.035em; }
.featured-story p { margin-bottom: 25px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.8; }
.story-link { display: inline-flex; align-items: center; gap: 9px; color: inherit; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.story-link .icon { width: 18px; transition: transform .3s; }
.story-link:hover .icon { transform: translateX(5px); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.article-card { overflow: hidden; background: #fff; border: 1px solid #e1edf9; border-radius: 18px; box-shadow: var(--shadow-xs); transition: transform .3s var(--ease), box-shadow .3s; }
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-7px); }
.article-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.article-card:hover img { transform: scale(1.045); }
.article-card-body { padding: 23px; }
.article-card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; color: #7a91a9; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.article-card-meta span:first-child { color: var(--secondary); }
.article-card h3 { margin-bottom: 12px; color: var(--navy); font-size: 18px; line-height: 1.5; letter-spacing: -.02em; }
.article-card p { min-height: 64px; margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a { display: grid; width: 42px; height: 42px; place-items: center; color: #58738f; background: #fff; border: 1px solid #dbe9f7; border-radius: 10px; font-size: 13px; font-weight: 750; }
.pagination a:hover, .pagination a.active { color: #fff; background: var(--primary); border-color: var(--primary); }

/* Article detail */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 70px; }
.article-cover { overflow: hidden; margin: 0 0 30px 0; aspect-ratio: 16 / 8.5; border-radius: 5px; box-shadow: var(--shadow-md); margin-top: 0; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { color: #45576c; font-size: 15px; line-height: 1.9; }
.article-body > p:first-of-type { color: var(--navy); font-size: 18px; font-weight: 500; line-height: 1.8; }
.article-body h2 { margin: 42px 0 17px; color: var(--navy); font-size: 28px; letter-spacing: -.025em; }
.article-body h3 { margin: 30px 0 14px; color: var(--primary); font-size: 20px; }
.article-body ul { margin: 18px 0 25px; padding-left: 0; list-style: none; }
.article-body li { position: relative; margin-bottom: 10px; padding-left: 26px; }
.article-body li::before { position: absolute; top: .6em; left: 3px; width: 8px; height: 8px; content: ""; background: var(--accent); border: 2px solid #d8efff; border-radius: 50%; }
.article-quote { margin: 34px 0; padding: 28px 30px; color: var(--navy); background: #edf8ff; border-left: 4px solid var(--secondary); border-radius: 0 14px 14px 0; font-size: 18px; font-weight: 650; line-height: 1.7; }
.article-inline-image { overflow: hidden; margin: 30px 0; border-radius: 18px; }
.article-inline-image img { width: 100%; max-height: 520px; object-fit: cover; }
.article-share { display: flex; align-items: center; gap: 10px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-share > span { margin-right: 5px; color: var(--navy); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.article-share a { display: grid; width: 36px; height: 36px; place-items: center; color: var(--primary); background: #f1f8ff; border-radius: 50%; }
.article-share .icon { width: 16px; }
.article-sidebar { position: sticky; top: calc(var(--header-height) + 24px); }
.sidebar-block { padding: 25px; background: #f7fbff; border: 1px solid #e2effb; border-radius: 17px; }
.sidebar-block + .sidebar-block { margin-top: 20px; }
.sidebar-block h3 { margin-bottom: 18px; color: var(--navy); font-size: 15px; text-transform: uppercase; }
.related-story { display: grid; grid-template-columns: 75px 1fr; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid #deebf8; }
.related-story:last-child { padding-bottom: 0; border: 0; }
.related-story img { width: 75px; height: 62px; object-fit: cover; border-radius: 9px; }
.related-story strong { display: block; color: var(--navy); font-size: 11px; line-height: 1.55; }
.related-story small { color: #8296aa; font-size: 8px; }
.toc a { display: block; padding: 8px 0; color: #59718b; border-bottom: 1px solid #e0ecf7; font-size: 11px; }
.toc a:hover { color: var(--primary); }

.category-tree,
.category-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e0ecf7;
}

.category-row > a {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    color: #526c86;
    font-size: 12px;
    font-weight: 650;
}

.category-row > a:hover {
    color: var(--primary);
}

.category-row small {
    color: #8ba0b5;
    font-size: 9px;
}

.category-toggle {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 0;
    place-items: center;
    color: var(--primary);
    background: #e9f5ff;
    border: 0;
    border-radius: 7px;
    font-size: 18px;
    cursor: pointer;
}

.category-toggle .toggle-minus {
    display: none;
}

.category-item.is-open > .category-row .category-toggle .toggle-plus {
    display: none;
}

.category-item.is-open > .category-row .category-toggle .toggle-minus {
    display: inline;
}

.category-item > ul {
    display: none;
    padding: 5px 0 7px 16px;
}

.category-item.is-open > ul {
    display: block;
}

.category-item > ul .category-row > a,
.category-item > ul > li > a {
    display: block;
    padding: 9px 0;
    color: #6b8198;
    border-bottom: 1px dashed #deebf8;
    font-size: 11px;
}

.sidebar-empty {
    margin: 0;
    color: #73899f;
    font-size: 11px;
}

/* Product catalog */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.catalog-toolbar .category-tabs { margin: 0; }
.catalog-count { flex-shrink: 0; color: #748ba2; font-size: 11px; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.catalog-card { overflow: hidden; background: #fff; border: 1px solid #e2edf8; border-radius: 17px; box-shadow: var(--shadow-xs); transition: .3s var(--ease); }
.catalog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-7px); }
.catalog-card[hidden] { display: none; }
.catalog-card .product-image { aspect-ratio: 4 / 3; }
.catalog-card .single-product-image img { position: static; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
.catalog-card-body { padding: 21px; }
.catalog-type { margin-bottom: 7px; color: var(--secondary); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.catalog-card h2 { margin-bottom: 10px; color: var(--navy); font-size: 17px; line-height: 1.45; }
.catalog-card p { min-height: 58px; margin-bottom: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.catalog-card .story-link { color: var(--primary); }
.catalog-note { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin-top: 55px; padding: 32px 38px; color: #fff; background: var(--brand-gradient); border-radius: 18px; box-shadow: var(--shadow-md); }
.catalog-note h3 { margin-bottom: 7px; font-size: 21px; }
.catalog-note p { margin: 0; color: rgba(255,255,255,.76); font-size: 12px; }
.catalog-note .button { color: var(--primary); background: #fff; }

/* Product detail */
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); align-items: start; gap: 72px; }
.product-gallery-main { position: relative; overflow: hidden; aspect-ratio: 1 / .8; background: #f4faff; border-radius: 24px; box-shadow: var(--shadow-md); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease), transform .5s var(--ease); }
.product-gallery-main:hover img { transform: scale(1.025); }
.product-gallery-badge { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 8px 12px; color: var(--primary); background: rgba(255,255,255,.88); border-radius: 999px; font-size: 9px; font-weight: 750; text-transform: uppercase; backdrop-filter: blur(8px); }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.product-thumb { position: relative; overflow: hidden; aspect-ratio: 1; padding: 0; background: #fff; border: 2px solid transparent; border-radius: 11px; cursor: pointer; }
.product-thumb.active { border-color: var(--primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.product-thumb:hover img { transform: scale(1.06); }
.product-detail-content .eyebrow { margin-bottom: 12px; }
.product-detail-content h1 { margin-bottom: 16px; color: var(--navy); font-size: clamp(34px, 4vw, 51px); line-height: 1.12; letter-spacing: -.045em; }
.product-lead { margin-bottom: 27px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.product-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-bottom: 28px; }
.product-highlight { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 13px; color: #4e6780; background: #f4faff; border-radius: 11px; font-size: 10px; font-weight: 650; }
.product-highlight .icon { width: 20px; color: var(--primary); }
.spec-table { margin-bottom: 28px; border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 155px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.55; }
.spec-row span { color: #748ba1; }
.spec-row strong { color: var(--navy); font-weight: 650; }
.product-actions { display: flex; gap: 12px; }
.product-actions .button-outline { background: #fff; }
.product-actions .button-outline:hover { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-md); }
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quality-card { padding: 27px; background: #fff; border: 1px solid #e0edf9; border-radius: 16px; }
.quality-card .icon { width: 32px; height: 32px; margin-bottom: 16px; color: var(--primary); }
.quality-card h3 { margin-bottom: 10px; color: var(--navy); font-size: 16px; }
.quality-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.packaging-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 65px; }
.packaging-visual { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 22px; }
.packaging-visual img { width: 100%; height: 100%; object-fit: cover; }
.packaging-content h2 { margin-bottom: 18px; color: var(--navy); font-size: 35px; text-transform: uppercase; }
.packaging-content > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.package-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 25px; }
.package-option { padding: 16px; color: var(--navy); background: #eef8ff; border-radius: 10px; font-size: 11px; font-weight: 650; }
.related-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-detail-page [data-reveal] { opacity: 1; transform: none; }

/* Contact page */
.contact-page-layout { display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; background: #fff; border: 1px solid #dceaf8; border-radius: 24px; box-shadow: var(--shadow-lg); }
.contact-page-info { position: relative; padding: 48px; overflow: hidden; color: #fff; background: linear-gradient(150deg, #063574, #0a4fa8 58%, #1d78d8); }
.contact-page-info::after { position: absolute; right: -100px; bottom: -100px; width: 280px; height: 280px; content: ""; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.04); }
.contact-page-info h2 { position: relative; z-index: 1; margin-bottom: 14px; font-size: 31px; letter-spacing: -.035em; }
.contact-page-info > p { position: relative; z-index: 1; margin-bottom: 30px; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.8; }
.contact-page-items { position: relative; z-index: 1; }
.contact-page-item { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.contact-page-item > span { display: grid; width: 42px; height: 42px; place-items: center; background: rgba(255,255,255,.1); border-radius: 50%; }
.contact-page-item .icon { width: 19px; }
.contact-page-item small { display: block; margin-bottom: 4px; color: #9fdcff; font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.contact-page-item p { margin: 0; color: #fff; font-size: 11px; line-height: 1.65; }
.contact-page-form { padding: 48px 48px 22px 48px; }
.contact-page-form h2 { margin-bottom: 8px; color: var(--navy); font-size: 28px; }
.contact-page-form > p { margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field { display: block; }
.form-field.full { grid-column: 1 / -1; }
.form-field span { display: block; margin-bottom: 8px; color: #4d6379; font-size: 10px; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea { 
    font-family: "Be Vietnam Pro", Inter, system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    width: 100%;
    color: var(--ink);
    background: #fafdff;
    border: 1px solid #d7e6f4;
    border-radius: 10px;
    outline: none;
    transition: .3s;
}
.form-field input, .form-field select { height: 45px; padding: 0 14px; }
.form-field textarea { min-height: 80px; padding: 14px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(63,169,245,.12); }
.form-field [aria-invalid="true"] { border-color: #c94747; }
.contact-page-form .button { min-width: 180px; margin-top: 20px; }
.page-form-status { min-height: 20px; margin: 12px 0 0; color: var(--primary); font-size: 11px; }
.page-form-status.is-error {
    color: red!important;
}
.mb-20 { margin-bottom: 20px!important; }
#map {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 55px;
}
.location-strip { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-top: 55px; background: #f2f9ff; border-radius: 20px; }
.location-image { min-height: 360px; }
.location-image img { width: 100%; height: 100%; object-fit: cover; }
.location-copy { display: flex; flex-direction: column; justify-content: center; padding: 45px; }
.location-copy h2 { margin-bottom: 14px; color: var(--navy); font-size: 27px; }
.location-copy p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.location-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.location-facts span { padding: 8px 11px; color: var(--primary); background: #fff; border-radius: 999px; font-size: 9px; font-weight: 700; }

/* Shared CTA */
.page-cta { padding: 0 0 90px; }
.page-cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; padding: 38px 44px; color: #fff; background: linear-gradient(120deg, #063574, #0a4fa8 60%, #1d78d8); border-radius: 20px; box-shadow: var(--shadow-md); }
.page-cta h2 { margin-bottom: 8px; font-size: 26px; }
.page-cta p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.page-cta .button { color: var(--primary); background: #fff; }

@media (max-width: 1100px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-grid { grid-template-columns: repeat(3, 1fr); }
    .product-detail-grid { gap: 45px; }
    .article-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 45px; }
}

@media (max-width: 900px) {
    .page-hero { min-height: 290px; }
    .page-hero-inner { padding: 58px 0 78px; }
    .page-section { padding: 72px 0; }
    .featured-story { grid-template-columns: 1fr; }
    .featured-story-media { min-height: 360px; }
    .article-layout, .product-detail-grid, .packaging-grid { grid-template-columns: 1fr; }
    .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .sidebar-block + .sidebar-block { margin-top: 0; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-page-layout { grid-template-columns: 1fr; }
    .contact-page-info, .contact-page-form { padding: 38px; }
    .location-strip { grid-template-columns: 1fr; }
    .location-image { min-height: 320px; }
}

@media (max-width: 600px) {
    .page-hero { min-height: 260px; }
    .page-hero-inner { padding: 46px 0 68px; }
    .page-hero h1 { font-size: 34px; }
    .page-hero p { font-size: 13px; }
    .page-section { padding: 58px 0; }
    .page-section-head { display: block; margin-bottom: 30px; }
    .page-section-head p { margin-top: 12px; }
    .featured-story-media { min-height: 245px; }
    .featured-story-content { padding: 27px 22px; }
    .article-grid, .catalog-grid, .quality-grid { grid-template-columns: 1fr; }
    .article-card p, .catalog-card p { min-height: 0; }
    .article-layout { gap: 45px; }
    .article-sidebar { grid-template-columns: 1fr; }
    .article-body { font-size: 14px; }
    .article-body > p:first-of-type { font-size: 16px; }
    .article-cover { aspect-ratio: 4 / 3; border-radius: 16px; }
    .catalog-toolbar { display: block; }
    .catalog-toolbar .category-tabs { margin-bottom: 14px; }
    .catalog-note, .page-cta-inner { grid-template-columns: 1fr; padding: 27px 22px; }
    .catalog-note .button, .page-cta .button { width: 100%; }
    .product-highlights { grid-template-columns: 1fr; }
    .spec-row { grid-template-columns: 115px 1fr; }
    .product-actions { flex-direction: column; }
    .product-actions .button { width: 100%; }
    .package-options { grid-template-columns: 1fr; }
    .contact-page-info, .contact-page-form, .location-copy { padding: 27px 21px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field.full { grid-column: auto; }
    .location-image { min-height: 245px; }
    .page-cta { padding-bottom: 58px; }
}
