
@font-face {
    font-family: "Noto Sans Thai";
    src: url("../fonts/NotoSansThai.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --navy: #0b195d;
    --ink: #182341;
    --blue: #007db4;
    --cyan: #00a7e8;
    --soft: #e0f5fc;
    --line: #d6e5ef;
    --red: #d71d2d;
    --white: #fff;
    --radius: 20px;
    --width: 1280px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif; color: var(--ink); background: #fcfdfe; font-size: clamp(.94rem, .8rem + .28vw, 1.09rem); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.17; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.7vw, 4.55rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 2.65vw, 2.65rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: clamp(1.11rem, 1.55vw, 1.52rem); font-weight: 750; }
h2 + p, h3 + p { margin-top: .45rem; }
:focus-visible { outline: 3px solid #006fb3; outline-offset: 4px; }
::selection { background: #c6effe; color: var(--navy); }
:target { scroll-margin-top: 1rem; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 20; padding: .6rem 1rem; background: white; }
.icon { width: 2.6rem; height: 2.6rem; color: var(--cyan); flex: none; vertical-align: middle; }
.accent { color: var(--blue); }
.container, .header-inner, .footer-inner { width: min(var(--width), calc(100% - clamp(24px, 4.8vw, 64px))); margin-inline: auto; }
.site-header { position: relative; z-index: 5; background: white; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 2vw, 32px); }
.brand { flex: 0 0 clamp(158px, 18vw, 232px); }
.brand img { width: 100%; height: auto; }
#site-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(2px, .6vw, 10px); }
#site-nav > a:not(.button), .nav-accounting-link { white-space: nowrap; padding: .48em .75em; color: var(--navy); border-radius: 999px; font-size: .9em; font-weight: 750; text-decoration: none; }
#site-nav > a.active, #site-nav > a:not(.button):hover,
.nav-accounting.active, .nav-accounting:hover, .nav-accounting:has(details[open]) { background: #cceffb; }
.nav-accounting { position: relative; display: flex; align-items: stretch; border-radius: 999px; }
.nav-accounting-link { border-radius: 999px 0 0 999px; padding-right: .22rem; }
.nav-accounting summary { display: grid; height: 100%; place-items: center; min-width: 28px; color: var(--navy); cursor: pointer; list-style: none; border-radius: 0 999px 999px 0; }
.nav-accounting summary::-webkit-details-marker { display: none; }
.nav-accounting summary::after {
    content: "";
    width: .4em;
    height: .4em;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
}
.nav-accounting details[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.nav-submenu {
    position: absolute;
    top: calc(100% + .45rem);
    left: 0;
    min-width: 11rem;
    padding: .4rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 36px #0b195d29;
}
.nav-submenu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .45rem .75rem;
    border-radius: 9px;
    color: var(--navy);
    font-size: .9em;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.nav-submenu a:is(:hover, [aria-current="page"]) { background: #e4f6fd; }
#site-nav .button { margin-left: .45rem; white-space: nowrap; }
.menu-toggle { display: none; color: var(--navy); border: 1px solid var(--line); background: white; border-radius: 999px; padding: .4rem .85rem; }
.hero { background: linear-gradient(112deg,#effaff 6%,#e5f7ff 39%,#f0f9fb 66%); overflow: hidden; position: relative; }
.hero-inner { position: relative; display: grid; grid-template-columns: 51% 49%; align-items: stretch; max-width: 1580px; margin: auto; min-height: clamp(300px, 35vw, 475px); }
.hero::after, .wave::after, .bottom-cta::after { content: ""; position: absolute; pointer-events: none; width: 55%; height: 40%; background: linear-gradient(150deg,#8de0f8,#bdefff 80%); border-radius: 0 90% 0 0; transform: translate(-15%, 50%) rotate(7deg); bottom: 0; left: 0; opacity: .65; }
.hero-copy { z-index: 1; align-self: center; padding: 32px 0 40px max(clamp(26px,5vw,80px), calc((100vw - var(--width)) / 2)); position: relative; }
.hero-image { position: relative; min-width: 0; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.home .hero-image img { object-position: right top; }
.hero-image::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 25%; background: linear-gradient(90deg,#e9f8ff,transparent); }
.hero-accent { color: var(--blue); font-size: clamp(1.55rem, 3vw, 3.05rem); font-weight: 800; line-height: 1.17; margin-top: .25rem; letter-spacing: -.026em; text-wrap: balance; }
.home .hero-accent { font-size: clamp(2.15rem, 4.3vw, 4.1rem); }
.hero-tagline { color: var(--navy); font-weight: 750; font-size: clamp(1rem, 1.5vw, 1.45rem); margin-top: .7rem; }
.hero-description { max-width: 42ch; margin-top: .8rem; font-size: clamp(1rem, 1.38vw, 1.33rem); line-height: 1.47; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem 1.1rem; border-radius: 999px; background: #c9edf9; color: var(--navy); font-weight: 800; font-size: clamp(1.05rem,2.3vw,1.9rem); margin-bottom: .6rem; }
.eyebrow .icon { width: 1.5em; height: 1.5em; }
.actions { margin-top: clamp(.95rem, 2vw, 1.55rem); display: flex; gap: .75rem; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .65em; padding: .55em 1.25em; font-weight: 750; text-decoration: none; line-height: 1.25; border: 1px solid transparent; border-radius: 999px; text-align: center; }
.button span { font-size: 1.45em; line-height: .65; }
.button:hover { filter: brightness(.93); }
.button.primary { background: linear-gradient(180deg,#eb2634,var(--red)); color: white; }
.button.outline { color: var(--navy); border-color: #283d91; background: #ffffffd9; }
.button.blue { color: white; background: linear-gradient(115deg,#007ba8,#0071c6); }
.button.white { color: var(--navy); background: white; }
.page-sections { display: grid; gap: clamp(19px, 3vw, 40px); padding-block: clamp(12px, 2.4vw, 28px) clamp(23px, 3vw, 40px); }
.section-heading { margin: 0 0 clamp(12px, 1.9vw, 24px); text-align: center; }
.section-heading h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--cyan); margin: .5rem auto 0; }
.section-heading p { margin-top: .55rem; }
.grid { display: grid; gap: clamp(9px, 1.5vw, 20px); grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card, .panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.card-image { width: 100%; aspect-ratio: 2.25; object-fit: cover; }
.card-body, .panel { padding: clamp(13px, 1.85vw, 25px); }
.card-body > .icon { margin-bottom: .4rem; }
.card-body p { line-height: 1.45; }
.text-link { display: inline-block; color: #005c9f; font-weight: 750; text-decoration: none; margin-top: .6rem; }
.text-link:hover, .catalog-link:hover .text-link { text-decoration: underline; }
.soft, .band { background: linear-gradient(115deg,#e0f5fc,#effaff 56%,#d8f3fd); }
.band { padding: clamp(13px, 2vw, 25px); border-radius: var(--radius); }
.quick-services { display: grid; grid-template-columns: .95fr repeat(3,1fr); align-items: center; gap: clamp(9px, 2vw, 26px); }
.quick-services h2 { font-size: clamp(1.05rem, 1.8vw, 1.68rem); border-right: 1px solid #9fbcd9; }
.quick-services a { display:flex; align-items:center; gap: .65rem; text-decoration: none; }
.quick-services strong { color: var(--navy); }
.quick-services a:hover strong { text-decoration: underline; }
.split { display: grid; align-items: stretch; grid-template-columns: 1.2fr 1fr; gap: clamp(12px, 1.8vw, 25px); }
.photo-split { align-items: center; grid-template-columns: 1.13fr 1fr; gap: clamp(15px, 3vw, 47px); }
.feature-image { border-radius: var(--radius); width:100%; height: 100%; min-height: 0; object-fit: cover; }
.photo-split .feature-image { aspect-ratio: 1.65; }
.photo-split .button, .panel .button { margin-top: .75rem; }
.checklist, .service-stage { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .26rem; }
.checklist li { display: flex; align-items: center; gap: .65rem; }
.checklist .icon { width: 1.24rem; height: 1.24rem; }
.panel .checklist li { border-radius: 9px; padding: .33rem .6rem; background: #edf7fc; }
.panel.soft .checklist li { background: #ffffffc9; }
.catalog .section-heading { margin-bottom: .8rem; }
.catalog-tools { display: flex; justify-content: center; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.pills { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-bottom: .7rem; }
.pills button { border: 1px solid #2e4797; background: #fff; color: var(--navy); padding: .35em 1.05em; min-width: 90px; border-radius: 999px; font-weight: 750; text-align: center; text-decoration: none; }
.pills button[aria-pressed="true"] { color: white; background: var(--navy); }
.filter-pills { margin: 0; justify-content: center; }
.search-field { display: flex; align-items: center; gap: .45rem; width: min(100%,480px); border: 1px solid #9db8d7; border-radius: 999px; padding: .25rem .75rem; background: white; }
.search-field .icon { width: 1.3rem; height: 1.3rem; color: var(--navy); }
.search-field input { min-width: 0; width: 100%; border: 0; background: transparent; padding: .25rem; }
.catalog-grid { gap: clamp(8px, 1.25vw, 16px); }
.catalog-grid .card { border-radius: 14px; box-shadow: 0 2px 4px #0e386810; }
.catalog-link { display: block; height: 100%; text-decoration: none; }
.catalog-link:hover h3 { color: #005c9f; }
.catalog-photo { position: relative; }
.catalog-photo > span { position: absolute; top: .5rem; left: .5rem; padding: .15rem .65rem; border: 1px solid #d5e3f5; border-radius: 20px; background: #fff; color: var(--navy); font-size: .77em; font-weight: 750; }
.catalog-grid .card-body { padding: .65rem .8rem .8rem; }
.catalog-grid h3 { font-size: clamp(1rem,1.45vw,1.35rem); }
.catalog-grid p, .guides p { font-size: .92em; }
.home .catalog-grid .card-image { aspect-ratio: 1.92; }
.empty-state { text-align: center; background: white; border-radius: 12px; padding: 1.25rem; color: var(--navy); }
.steps ol { padding: 0; list-style: none; margin: 0; counter-reset: none; }
.steps li { position: relative; padding: 1rem .68rem .9rem; background: #ffffffd6; border-radius: var(--radius); text-align: center; min-width: 0; }
.steps li:not(:last-child)::after { content: "›"; position: absolute; top: 38%; right: calc(-1 * clamp(9px, 1.5vw, 20px)); color: var(--navy); z-index: 1; width: clamp(9px, 1.5vw, 20px); font-size: 1.4rem; }
.steps .icon { margin-bottom: .4rem; }
.step-number { position: absolute; top: .7rem; left: .7rem; border-radius: 999px; padding: .13rem .55rem; background: #007fae; color: white; font-weight: 800; }
.strip { gap: 0; }
.strip .card { background: transparent; border: 0; border-radius: 0; text-align: center; }
.strip .card + .card { border-left: 1px solid #afd7e8; }
.strip .card-body { padding-block: .35rem; }
.fee > p, .fine-print { text-align: center; margin-top: .7rem; font-size: .9em; }
.notice { border: 1px solid #8a9bcc; border-radius: var(--radius); background: #eef8fd; display: flex; gap: 1rem; align-items: center; padding: .75rem 1rem; }
.notice h2, .feature-band h2 { font-size: clamp(1.35rem, 2.2vw, 2.08rem); }
.wave { position: relative; isolation: isolate; }
.wave::after { z-index: -1; left: auto; right: 0; transform: translate(10%, 50%) scaleX(-1); }
.documents { grid-template-columns: 1.45fr 1fr; }
.documents aside { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.faq details { border: 1px solid var(--line); background: white; border-radius: 13px; margin-top: .45rem; overflow: hidden; }
.faq summary { list-style: none; padding: .62rem .95rem; display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; color: var(--navy); font-weight: 750; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "⌄"; font-size: 1.2em; line-height: 1; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 .95rem .66rem; }
.faq summary:focus-visible { outline-offset: -4px; }
.compact .hero-inner, .service-closing .hero-inner, .service-stamp .hero-inner, .sme-index .hero-inner { min-height: clamp(265px, 28vw, 385px); }
.service-closing .page-sections, .service-stamp .page-sections, .sme-index .page-sections { gap: clamp(14px, 1.7vw, 23px); }
.service-closing .service-grid .card-body { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; }
.service-closing .service-grid .icon { grid-row: 1 / span 2; margin: 0; }
.service-closing .service-grid .card-body > p { grid-column: 2; }
.stamp-grid .card { text-align: center; }
.stamp-grid .card-image { height: clamp(115px, 17vw, 195px); width: calc(100% - 2rem); margin: 1rem auto 0; object-fit: contain; }
.stamp-grid .text-link { border: 1px solid #2e4797; border-radius: 999px; padding: .3em .9em; }
.with-aside { grid-template-columns: 1.5fr 1fr .76fr; }
.sme-definition { grid-template-columns: 1fr 1fr; align-items: center; }
.definition { display: flex; align-items: center; gap: 1rem; }
.definition > .icon { width: clamp(35px, 6vw, 78px); height: auto; }
.definition h2 { font-size: clamp(1.3rem, 2.2vw, 2.12rem); }
.definition .category-note { margin-top: .65rem; }
.sme-index .guides .card { display: grid; grid-template-columns: .85fr 1fr; align-items: center; }
.sme-index .guides .card-image { height: 100%; aspect-ratio: auto; }
.sme-index .guides .card-body { padding: .68rem; }
.sme-index .guides h3 { font-size: clamp(1rem,1.3vw,1.3rem); }
.service-stage a { display: flex; gap: .65rem; border: 1px solid var(--line); border-radius: 10px; padding: .32rem .6rem; align-items: center; text-decoration: none; }
.service-stage strong { color: var(--navy); min-width: 9em; }
.service-stage a:hover { background: var(--soft); }
.service-stage .icon { width: 1.4rem; height: 1.4rem; }
.service-stage span { flex: 1; }
.industry .section-heading, .contact .section-heading { text-align: left; }
.industry .section-heading h2::after, .contact .section-heading h2::after { display: none; }
.industry .hero-inner { min-height: clamp(300px, 39vw, 510px); }
.industry .page-sections { gap: clamp(18px, 2.5vw, 32px); }
.industry-cards .card { background: linear-gradient(120deg,#e5f6fc,#daf2fb); border: 0; text-align: center; }
.industry-cards .card-body > .icon { width: clamp(38px,5.5vw,69px); height: auto; }
.industry-cards .card-image { margin: .55rem auto 0; width: calc(100% - 1.1rem); border-radius: 14px; aspect-ratio: 1.9; }
.industry-cards .card-image + .card-body > .icon { width: 2rem; height: 2rem; }
.industry-tourism .types .card-body > .icon, .industry-agriculture .types .card-body > .icon { background: #effbff; border-radius: 50%; width: 3rem; height: 3rem; padding: .3rem; margin-top: -2rem; position: relative; }
.industry-transport .types .card-body > .icon { display: none; }
.industry-professional .management .card { border: 1px solid var(--line); background: #f9fcff; }
.industry-flow { display: grid; gap: clamp(17px,2.5vw,32px); }
.industry-documents { grid-template-columns: 1.5fr 1fr; }
.industry-documents .feature-image { max-height: 350px; }
.industry-documents .panel:only-child { grid-column: 1 / -1; }
.document-art { border-radius: var(--radius); display: grid; place-items: center; background: var(--soft); }
.document-art .icon { width: 40%; height: auto; opacity: .55; }
.industry .steps { padding: 0; background: none; }
.industry .steps li { background: linear-gradient(115deg,#edf8fe,#e1f4fc); }
.professional-flow { grid-template-columns: 1fr 1fr; }
.professional-flow .industry-documents, .professional-flow .steps .grid { grid-template-columns: 1fr; }
.professional-flow .steps li { text-align: left; padding-left: 4.3rem; }
.professional-flow .steps li::after, .professional-flow .steps .icon { display: none; }
.industry .faq summary { background: #ddf3fd; }
.industry .faq p { padding-top: .55rem; }
.industry-agriculture .faq details[open], .industry-professional .faq details[open], .industry-technology .faq details[open] { display: grid; grid-template-columns: .78fr 1fr; align-items: stretch; }
.industry-agriculture .faq p, .industry-professional .faq p, .industry-technology .faq p { align-self: center; padding: .55rem .95rem; }
.related .card { background: #f3faff; }
.related .card-body { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .65rem; padding: .7rem .85rem; }
.related .icon { grid-row: 1 / span 2; margin: 0; width: 2rem; height: 2rem; }
.related .text-link { margin-top: .18rem; }
.category-note { display: flex; gap: .4rem; align-items: center; color: var(--navy); background: #e7f5fc; padding: .35rem .7rem; border-radius: 9px; font-size: .9em; }
.category-note .icon { width: 1.1rem; height: 1.1rem; }
.contact-methods .panel { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-methods .icon { width: clamp(44px,6vw,76px); height: auto; margin-bottom: .45rem; }
.contact-methods h2 { font-size: clamp(1.3rem, 2.1vw, 2rem); }
.contact-methods .button { margin-top: auto; }
.contact-methods p { margin-bottom: .8rem; max-width: 23ch; }
.contact-value { color: var(--blue); font-size: clamp(1.35rem,2.65vw,2.45rem); font-weight: 800; text-decoration: none; }
.contact-request { grid-template-columns: 1.55fr 1fr; }
.contact-form { display: grid; gap: .73rem; margin-top: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .73rem; }
.contact-form label { display: block; font-weight: 700; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border-radius: 9px; border: 1px solid #aebcd1; background: white; color: var(--ink); padding: .48rem .6rem; margin-top: .25rem; }
.contact-form textarea { resize: vertical; }
.required { color: #ae1227; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.form-status { color: #054d75; background: #e5f6fc; border-radius: 8px; padding: .55rem .7rem; }
hr { border: 0; border-top: 1px solid #add5ea; margin: 1rem 0; }
.location { grid-template-columns: .85fr 1.1fr; }
.address { display: flex; align-items: flex-start; gap: .75rem; }
.office-map { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; border-radius: var(--radius); }
.bottom-cta { padding: clamp(14px, 2vw, 27px) 12px; position: relative; overflow: hidden; isolation: isolate; text-align: center; color: white; background: linear-gradient(110deg,#0076b9,#014cbe 55%,#008ac0); }
.bottom-cta::after { z-index: -1; opacity: .3; width: 77%; height: 145%; transform: translate(55%,46%) rotate(-13deg); }
.bottom-cta h2 { color: white; font-size: clamp(1.55rem, 2.65vw, 2.65rem); }
.bottom-cta .button { margin-top: .55rem; }
.site-footer { color: white; background: #072558; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1rem; min-height: 54px; font-size: .83em; }
.footer-brand img { width: clamp(174px, 18vw, 232px); height: auto; filter: brightness(0) invert(1); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.source-note { padding: .4rem .8rem; text-align: center; background: #ecf5fa; font-size: .78rem; }
.home .service-grid .card-body, .service-registration .service-grid .card-body,
.service-monthly .service-grid .card-body, .service-annual .service-grid .card-body {
    padding: clamp(16px, 2.35vw, 32px);
}
.home .photo-split .feature-image { aspect-ratio: 1.64; }
.industry .hero-accent { max-width: 23ch; }
.industry-food .hero-accent, .industry-retail .hero-accent { font-size: clamp(1.7rem, 4.2vw, 4rem); }
.industry .types .card, .industry .management .card { min-height: 165px; }
.industry .types .card-body, .industry .management .card-body { padding: clamp(15px, 2.45vw, 32px); }
.industry .types .card-body h3, .industry .management .card-body h3 { font-size: clamp(1.16rem, 2vw, 1.9rem); }
.industry .steps li { padding-block: 1.25rem; }
.industry .industry-documents .panel { min-height: clamp(235px, 25vw, 345px); }
.industry .professional-flow .industry-documents .panel { height: 100%; }
@media (min-width: 881px) {
    .service-closing .hero-inner, .service-stamp .hero-inner, .sme-index .hero-inner { min-height: 0; }
    .service-closing .hero-copy, .service-stamp .hero-copy, .sme-index .hero-copy { padding-block: 13px 24px; }
    .service-closing .hero h1, .service-stamp .hero h1, .sme-index .hero h1 { font-size: clamp(2.4rem, 4.3vw, 4.05rem); }
    .service-closing .section-heading, .service-stamp .section-heading, .sme-index .section-heading { margin-bottom: .75rem; }
    .service-closing .page-sections, .service-stamp .page-sections, .sme-index .page-sections { gap: clamp(12px, 1.45vw, 20px); }
    .service-closing .feature-band, .service-stamp .feature-band, .service-closing .steps, .service-stamp .steps { padding: .85rem 1rem; }
    .service-closing .service-grid .card-body { padding: .7rem .95rem; }
    .service-closing .steps li, .service-stamp .steps li { padding-block: .75rem; }
    .service-closing .photo-split .feature-image { aspect-ratio: 2.25; }
    .service-stamp .photo-split .feature-image { aspect-ratio: 2.15; }
    .sme-index .photo-split .feature-image { aspect-ratio: 2.45; }
}
@media (881px <= width <= 1024px) {
    #site-nav { gap: .2rem; }
}
@media (641px <= width <= 880px) {
    .catalog-tools .search-field { flex: 1; min-width: 0; }
    .catalog-tools .filter-pills { flex: none; }
}
@media (max-width: 880px) {
    .site-header { border-bottom: 1px solid var(--line); }
    .header-inner { min-height: 64px; position: relative; flex-wrap: wrap; gap: .4rem; padding-block: .45rem; }
    .brand { flex: 0 1 clamp(132px, 47vw, 174px); min-width: 0; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        min-height: 44px;
        padding-inline: .7rem;
        font-size: .88rem;
        font-weight: 750;
    }
    .menu-toggle[aria-expanded="true"] { background: #e4f6fd; border-color: #a5d9ec; }
    .menu-icon { display: grid; place-items: center; width: 1rem; height: 1rem; position: relative; }
    .menu-icon::before, .menu-icon::after, .menu-icon > span {
        content: "";
        grid-area: 1 / 1;
        width: 100%;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
    }
    .menu-icon::before { transform: translateY(-5px); }
    .menu-icon::after { transform: translateY(5px); }
    .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
    .menu-toggle[aria-expanded="true"] .menu-icon > span { visibility: hidden; }
    #site-nav {
        display: grid;
        flex: 1 0 100%;
        justify-content: stretch;
        gap: .18rem;
        padding: .55rem;
        background: white;
        border: 1px solid var(--line);
        border-radius: 16px;
    }
    .menu-toggle[aria-expanded="false"]:not([hidden]) + #site-nav { display: none; }
    .menu-toggle[aria-expanded="true"] + #site-nav {
        position: absolute;
        inset: calc(100% + .45rem) 0 auto auto;
        width: min(100%, 22rem);
        max-height: calc(100dvh - 5.25rem);
        overflow-y: auto;
        box-shadow: 0 12px 36px #0b195d29;
    }
    #site-nav > a:not(.button), .nav-accounting-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .5rem;
        min-height: 44px;
        padding: .5rem .75rem;
        border-radius: 9px;
        white-space: normal;
        font-size: .94rem;
    }
    #site-nav > a:not(.button)::after {
        content: "";
        flex: none;
        width: .42rem;
        height: .42rem;
        margin-right: .2rem;
        color: #007db4;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(45deg);
    }
    #site-nav .button { min-height: 44px; margin: .35rem 0 0; }
    #site-nav a:focus-visible, .nav-accounting summary:focus-visible { outline-offset: -3px; }
    .nav-accounting { display: grid; grid-template-columns: 1fr 44px; border-radius: 9px; }
    .nav-accounting details { display: contents; }
    .nav-accounting details[open]::details-content { display: contents; }
    .nav-accounting summary { grid-column: 2; grid-row: 1; min-height: 44px; border-left: 1px solid var(--line); border-radius: 0 9px 9px 0; }
    .nav-submenu {
        grid-column: 1 / -1;
        position: static;
        min-width: 0;
        margin: .3rem 0 .2rem .75rem;
        padding: 0 0 0 .45rem;
        border-width: 0 0 0 2px;
        border-radius: 0;
        box-shadow: none;
    }
    .hero-copy { padding-left: 4%; }
    .sme-index .guides .card { display: block; }
    .sme-index .guides .card-image { height: auto; aspect-ratio: 2.25; }
    .step-number { top: .45rem; left: .45rem; padding-inline: .36rem; }
    .steps li { padding-top: 1.85rem; }
    .service-stage strong { min-width: 0; }
    .with-aside { grid-template-columns: 1fr 1fr; }
    .with-aside aside { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy { padding: .85rem 4.5% 1.25rem; }
    .hero-description, .hero-accent { text-wrap: initial; }
    .hero-image { aspect-ratio: 1.84; }
    .home .hero-image { aspect-ratio: 1.4; }
    .hero-image img { object-position: center 38%; }
    .hero-image::after { inset: 0 0 auto; width: 100%; height: 25%; background: linear-gradient(180deg,#eaf8ff,transparent); }
    .hero::after { display: none; }
    .grid, .grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid:not(.four) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .split, .documents, .contact-request, .sme-definition, .professional-flow, .industry-documents, .location { grid-template-columns: 1fr; }
    .photo-split .feature-image { aspect-ratio: 1.9; }
    .quick-services { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .quick-services h2 { grid-column: 1 / -1; border-right: 0; }
    .quick-services h2 br { display: none; }
    .quick-services a { align-items: flex-start; flex-direction: column; gap: .3rem; }
    .quick-services .icon { width: 1.9rem; height: 1.9rem; }
    .catalog-tools { flex-direction: column; gap: .55rem; }
    .steps li::after { display: none; }
    .strip .card + .card { border-left: 0; }
    .industry-agriculture .faq details[open], .industry-professional .faq details[open], .industry-technology .faq details[open] { display: block; }
    .industry .related, .industry .steps ol { grid-template-columns: 1fr; }
    .industry .steps li { padding-top: 1rem; }
    .industry .types .card, .industry .management .card { min-height: 0; }
    .industry .industry-documents .panel { min-height: 0; }
    .footer-inner { padding-block: .65rem; }
}
@media (max-width: 395px) {
    .grid:not(.catalog-grid), .form-grid { grid-template-columns: 1fr; }
    .pills button { min-width: 0; }
    h1 { font-size: 2.18rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
