:root {
    --graphite: #3f4b45;
    --graphite-soft: #66736c;
    --green-deep: #176f3b;
    --green: #258b4b;
    --green-leaf: #55ad68;
    --mint: #e7f4e9;
    --mint-soft: #f4faf5;
    --paper: #fffefa;
    --white: #ffffff;
    --line: #d7e4da;
    --line-strong: #b8d4bf;
    --shadow: 0 18px 50px rgba(45, 78, 59, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--graphite); background: var(--paper); font: 16px/1.55 "Trebuchet MS", "Lucida Sans Unicode", sans-serif; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a, input, select { outline-color: var(--green); outline-offset: 3px; }
.shell { width: min(1440px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 10px 16px; background: var(--green-deep); color: var(--white); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 30px; }
.brand { display: inline-flex; text-decoration: none; }
.brand img { display: block; height: 54px; width: auto; }
.city-badge { display: flex; align-items: center; gap: 10px; padding-left: 26px; border-left: 1px solid var(--line); }
.city-badge strong, .city-badge small { display: block; }
.city-badge strong { font-size: 14px; }
.city-badge small { color: var(--graphite-soft); font-size: 11px; }
.pin { width: 17px; height: 21px; border: 2px solid var(--green); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); position: relative; }
.pin::after { content: ""; position: absolute; width: 5px; height: 5px; border: 2px solid var(--green); border-radius: 50%; left: 4px; top: 4px; }
.top-nav { justify-self: end; display: flex; gap: 28px; }
.top-nav a, .login-link { text-decoration: none; font-size: 14px; }
.top-nav a:hover, .login-link:hover { color: var(--green); }
.login-link { display: inline-flex; gap: 8px; align-items: center; padding: 10px 15px; border: 1px solid var(--line-strong); border-radius: 999px; }

.hero { display: grid; grid-template-columns: minmax(390px, .78fr) minmax(600px, 1.22fr); gap: 58px; align-items: center; padding-block: 68px 48px; }
.hero-copy { padding-left: 14px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif; color: var(--graphite); }
h1 { max-width: 660px; margin: 0; font-size: clamp(54px, 5.25vw, 86px); line-height: .98; letter-spacing: -.055em; }
h1::after { content: ""; display: block; width: 62px; height: 4px; margin-top: 24px; background: linear-gradient(90deg, var(--green-deep), var(--green-leaf)); border-radius: 4px; }
.lead { max-width: 670px; margin: 25px 0 28px; color: var(--graphite-soft); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.65; }
.hero-search { min-height: 64px; display: grid; grid-template-columns: 180px 1fr auto; align-items: stretch; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.hero-search label { display: flex; }
.hero-search select, .hero-search input { width: 100%; min-width: 0; border: 0; color: var(--graphite); background: transparent; padding: 0 18px; }
.hero-search select { border-right: 1px solid var(--line); }
.hero-search button { border: 0; padding: 0 24px; color: var(--white); background: linear-gradient(135deg, var(--green-deep), var(--green)); cursor: pointer; font-weight: 800; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 25px; color: var(--graphite-soft); font-size: 12px; }
.trust-row span { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.trust-row b { color: var(--green); font-size: 10px; letter-spacing: .08em; }

.hero-network { min-width: 0; }
.map-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.map-heading h2 { margin: 0; font-size: clamp(28px, 2.4vw, 40px); letter-spacing: -.035em; }
.preview-chip { flex: none; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--green-deep); background: var(--mint-soft); font-size: 12px; font-weight: 800; }
.map-canvas { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.map-canvas::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(231,244,233,.12)); pointer-events: none; }
.map-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .96; }
.route-layer { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; }
.route { stroke: var(--green-deep); stroke-width: .42; vector-effect: non-scaling-stroke; opacity: .75; }
.route-alternate { stroke: var(--green); stroke-dasharray: 1.3 1.4; opacity: .65; }
.city-name { position: absolute; z-index: 3; left: 47%; top: 45%; transform: translate(-50%, -50%); color: var(--graphite); font-weight: 900; font-size: clamp(22px, 2.7vw, 42px); letter-spacing: .02em; opacity: .85; }
.map-marker { --x: 50%; --y: 50%; position: absolute; z-index: 5; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; }
.marker-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--green); border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 7px 16px rgba(30, 82, 49, .16); }
.marker-icon img { width: 26px; height: 26px; }
.marker-basa .marker-icon { border-radius: 50%; background: var(--green-deep); border-color: var(--green-deep); }
.marker-basa .marker-icon img { filter: brightness(0) invert(1); }
.marker-warehouse .marker-icon { border-radius: 8px; }
.marker-market .marker-icon { border-radius: 50% 50% 10px 10px; }
.marker-label { max-width: 132px; padding: 3px 7px; color: var(--graphite); background: rgba(255,255,255,.92); border: 1px solid rgba(184,212,191,.8); border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap; }
.map-legend { position: absolute; z-index: 6; right: 14px; bottom: 14px; display: flex; gap: 12px; padding: 8px 11px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 10px; font-size: 10px; }
.map-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.base-dot { background: var(--green-deep); }
.warehouse-dot { background: var(--green-leaf); }
.market-dot { background: #85bf8c; }
.map-note { margin: 10px 5px 0; color: var(--graphite-soft); font-size: 12px; }

.roles { padding-block: 20px 74px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.section-intro h2, .section-heading h2 { margin: 0; font-size: clamp(30px, 3vw, 46px); letter-spacing: -.045em; line-height: 1.08; }
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role-card { min-height: 132px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: linear-gradient(145deg, var(--white), var(--mint-soft)); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.role-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow); }
.role-card img { width: 54px; height: 54px; }
.role-card strong, .role-card small { display: block; }
.role-card strong { margin-bottom: 5px; color: var(--green-deep); font-size: 17px; }
.role-card small { color: var(--graphite-soft); font-size: 12px; }
.role-card > b { color: var(--green); font-size: 24px; }

.directory-section { padding-block: 72px 80px; background: radial-gradient(circle at 15% 15%, rgba(85,173,104,.13), transparent 30%), var(--mint-soft); border-block: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.section-heading > p { max-width: 490px; margin: 0; color: var(--graphite-soft); }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.directory-card { overflow: hidden; background: rgba(255,255,255,.93); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 28px rgba(45,78,59,.055); }
.directory-card header { display: flex; align-items: center; gap: 13px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.directory-card header img { width: 38px; height: 38px; }
.directory-card h3 { margin: 0; color: var(--green-deep); font-size: 21px; }
.directory-card header span { color: var(--graphite-soft); font-size: 11px; }
.directory-card ul { list-style: none; margin: 0; padding: 0; }
.directory-card li + li { border-top: 1px solid var(--line); }
.directory-card li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 22px; text-decoration: none; }
.directory-card li a:hover { background: var(--mint-soft); }
.directory-card li strong, .directory-card li small { display: block; }
.directory-card li strong { font-size: 14px; }
.directory-card li small { color: var(--graphite-soft); font-size: 11px; }
.directory-card li em { flex: none; color: var(--green); font-size: 11px; font-style: normal; font-weight: 800; }
.empty-list { padding: 22px; color: var(--graphite-soft); font-size: 13px; }

.catalog { padding-block: 80px; }
.catalog-heading { margin-bottom: 22px; }
.catalog-filter { display: grid; grid-template-columns: 1.35fr 1fr 1fr auto auto; gap: 12px; align-items: end; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 26px rgba(45,78,59,.055); }
.catalog-filter label span { display: block; margin: 0 0 5px 3px; color: var(--graphite-soft); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.catalog-filter input, .catalog-filter select { width: 100%; height: 46px; padding: 0 13px; color: var(--graphite); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.catalog-filter button, .catalog-filter > a { height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.catalog-filter button { color: var(--white); background: var(--green-deep); border: 1px solid var(--green-deep); cursor: pointer; }
.catalog-filter > a { color: var(--green-deep); border: 1px solid var(--line-strong); }
.notice { margin: 18px 0 0; padding: 16px; background: var(--mint-soft); border: 1px solid var(--line); border-radius: 12px; }
.notice.error { color: #7a3434; background: #fff6f4; border-color: #e5c8c3; }
.product-list { margin-top: 18px; border-top: 1px solid var(--line-strong); }
.product-row { display: grid; grid-template-columns: 108px minmax(260px, 1.45fr) minmax(170px, .7fr) minmax(110px, .45fr) minmax(150px, .55fr); gap: 22px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.product-photo { width: 96px; height: 96px; display: grid; place-items: center; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-main h3 { margin: 3px 0 5px; font-size: 18px; }
.product-main h3 a { color: var(--green-deep); text-decoration: none; }
.product-main h3 a:hover { text-decoration: underline; }
.product-category { color: var(--graphite-soft); font-size: 10px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.product-main p { max-width: 560px; margin: 0; color: var(--graphite-soft); font-size: 12px; }
.product-seller span, .product-stock span, .product-price span { display: block; color: var(--graphite-soft); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-seller a { display: block; margin-top: 4px; color: var(--graphite); font-weight: 800; text-decoration: none; }
.product-seller small, .product-stock small { display: block; color: var(--green); font-size: 11px; }
.product-stock strong, .product-price strong { display: block; margin: 4px 0 1px; font-size: 16px; }
.product-price { text-align: right; }
.product-price strong { font-size: 20px; color: var(--graphite); }
.product-price a { display: inline-flex; align-items: center; gap: 8px; margin-top: 7px; color: var(--green-deep); font-size: 12px; font-weight: 800; text-decoration: none; }

.closing { margin-bottom: 80px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 44px 50px; color: var(--white); background: linear-gradient(125deg, var(--green-deep), #2f9552); border-radius: 22px; box-shadow: var(--shadow); }
.closing .eyebrow { color: #ccebd2; }
.closing h2 { margin: 0; color: var(--white); font-size: clamp(30px, 3vw, 46px); letter-spacing: -.04em; }
.closing p:last-child { max-width: 820px; margin-bottom: 0; color: #e3f3e6; }
.closing > a { flex: none; display: inline-flex; align-items: center; gap: 12px; padding: 14px 19px; color: var(--green-deep); background: var(--white); border-radius: 11px; font-weight: 800; text-decoration: none; }
.site-footer { padding-block: 30px; background: #edf6ef; border-top: 1px solid var(--line); }
.site-footer .shell { display: flex; align-items: center; gap: 24px; }
.site-footer img { width: 142px; height: auto; }
.site-footer p { margin: 0; color: var(--graphite-soft); }
.site-footer a { margin-left: auto; color: var(--green-deep); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: rise .62s ease both; }
.hero-network { animation-delay: .12s; }

@media (max-width: 1180px) {
    .shell { width: min(100% - 40px, 1120px); }
    .header-inner { grid-template-columns: auto auto 1fr; }
    .top-nav { display: none; }
    .login-link { justify-self: end; }
    .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 54px; }
    .hero-copy { max-width: 900px; padding-left: 0; }
    .role-grid { grid-template-columns: repeat(2, 1fr); }
    .product-row { grid-template-columns: 92px minmax(240px, 1.4fr) minmax(150px, .7fr) minmax(120px, .5fr); }
    .product-price { grid-column: 4; }
    .product-stock { display: none; }
}

@media (max-width: 820px) {
    .shell { width: min(100% - 28px, 760px); }
    .header-inner { min-height: 72px; grid-template-columns: auto 1fr auto; gap: 14px; }
    .brand img { height: 45px; }
    .city-badge { padding-left: 14px; }
    .city-badge small { display: none; }
    .login-link { padding: 8px 11px; font-size: 12px; }
    .hero { padding-block: 44px 34px; }
    h1 { font-size: clamp(46px, 13vw, 70px); }
    .hero-search { grid-template-columns: 1fr auto; }
    .search-type { display: none !important; }
    .trust-row { grid-template-columns: repeat(2, 1fr); }
    .marker-label { display: none; }
    .marker-icon { width: 31px; height: 31px; }
    .marker-icon img { width: 21px; height: 21px; }
    .map-legend { right: 8px; bottom: 8px; gap: 7px; padding: 6px 8px; }
    .roles { padding-bottom: 54px; }
    .role-grid, .directory-grid { grid-template-columns: 1fr; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 14px; }
    .directory-section, .catalog { padding-block: 56px; }
    .catalog-filter { grid-template-columns: 1fr 1fr; }
    .catalog-filter label:first-child { grid-column: 1 / -1; }
    .product-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; border-top: 0; }
    .product-row { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
    .product-photo { width: 100%; height: auto; aspect-ratio: 1 / .72; margin-bottom: 14px; }
    .product-main p { min-height: 55px; }
    .product-seller { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
    .product-stock { display: block; margin-top: 10px; }
    .product-price { margin-top: 12px; text-align: left; }
    .closing { display: block; padding: 34px 28px; }
    .closing > a { margin-top: 24px; width: fit-content; }
}

@media (max-width: 560px) {
    .shell { width: min(100% - 20px, 520px); }
    .city-badge { display: none; }
    .header-inner { grid-template-columns: 1fr auto; }
    .hero { padding-top: 34px; }
    h1 { font-size: clamp(43px, 14vw, 61px); }
    .lead { font-size: 16px; }
    .hero-search { min-height: 56px; }
    .hero-search input { padding-inline: 13px; }
    .hero-search button { padding-inline: 16px; }
    .trust-row { gap: 10px; }
    .map-heading { align-items: start; }
    .preview-chip { font-size: 10px; }
    .map-canvas { aspect-ratio: 4 / 3; }
    .map-background { object-fit: cover; }
    .city-name { font-size: 20px; }
    .map-legend { display: none; }
    .role-card { min-height: 112px; padding: 17px; }
    .role-card img { width: 45px; height: 45px; }
    .catalog-filter { grid-template-columns: 1fr; }
    .catalog-filter label:first-child { grid-column: auto; }
    .catalog-filter > a { height: 40px; }
    .product-list { grid-template-columns: 1fr; }
    .product-main p { min-height: 0; }
    .site-footer .shell { flex-wrap: wrap; gap: 10px 18px; }
    .site-footer a { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* City-aware distribution homepage */
.header-inner { grid-template-columns: auto auto 1fr auto; gap: 24px; }
.city-picker { position: relative; min-width: 175px; }
.city-picker summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--mint-soft); }
.city-picker summary::-webkit-details-marker { display: none; }
.city-picker summary strong, .city-picker summary small { display: block; }
.city-picker summary small { font-size: 10px; color: var(--graphite-soft); }
.city-picker summary strong { font-size: 14px; color: var(--green-deep); }
.city-panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; width: min(350px, calc(100vw - 28px)); padding: 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.city-panel form { display: grid; gap: 12px; }
.city-panel label { font-weight: 800; font-size: 14px; }
.city-panel select, .city-panel button { min-height: 46px; width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; }
.city-panel select { background: var(--paper); color: var(--graphite); }
.city-panel button { cursor: pointer; background: var(--green-deep); color: var(--white); font-weight: 800; }
.city-panel > a { display: inline-block; margin-top: 18px; color: var(--green-deep); font-size: 14px; }
.city-panel p { font-size: 12px; color: var(--graphite-soft); margin-bottom: 0; }
.hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; padding-block: 64px 60px; }
h1 { font-size: clamp(38px, 3.65vw, 58px); line-height: 1.06; letter-spacing: -.045em; max-width: 820px; overflow-wrap: normal; }
.hero-city { display: block; margin-top: 16px; color: var(--green); font-size: .54em; line-height: 1.25; letter-spacing: -.02em; }
.lead { font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero-actions > a { font-size: 14px; color: var(--green-deep); }
.hero-actions .primary-action { display: inline-flex; align-items: center; gap: 20px; padding: 15px 20px; border-radius: 10px; background: var(--green-deep); color: var(--white); font-weight: 800; text-decoration: none; }
.city-hint { margin: 18px 0 0; color: var(--graphite-soft); font-size: 13px; }
.city-hint a { color: var(--green-deep); }
.distribution-flow { padding: 28px; background: linear-gradient(140deg, #e7f4e9, #f8fcf8); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow); }
.flow-node { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 18px; padding: 20px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.flow-node strong, .flow-node span { display: block; }
.flow-node strong { font-size: 16px; line-height: 1.3; }
.flow-node div > span { margin-top: 6px; font-size: 12px; color: var(--graphite-soft); }
.flow-node > b { color: var(--green); font-size: 11px; }
.flow-arrow { display: block; margin: 4px 0; padding-left: 40px; color: var(--green); font-size: 23px; line-height: 1.2; }
.flow-representative { border-color: var(--green); box-shadow: 0 4px 14px #28684210; }
.rep-symbol { width: 48px; height: 48px; display: grid !important; place-items: center; border-radius: 50%; background: var(--green-deep); color: var(--white); font-weight: 800; font-size: 17px; }
.flow-support { display: flex; align-items: center; gap: 12px; margin: 22px 4px 0; font-size: 12px; color: var(--graphite-soft); }
.flow-support img { flex: none; }
.distribution-section { padding-block: 30px 70px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 28px; }
.benefit-grid article { padding-top: 20px; border-top: 2px solid var(--line-strong); }
.benefit-grid article > span { color: var(--green); font-size: 12px; font-weight: 800; }
.benefit-grid h3 { font-size: 22px; line-height: 1.25; margin: 13px 0; }
.benefit-grid p { color: var(--graphite-soft); font-size: 15px; }
.more-organizations { margin: 0 20px 20px; }
.more-organizations summary { color: var(--green-deep); font-size: 13px; cursor: pointer; }
.photo-placeholder { color: var(--graphite-soft); font-size: 12px; text-align: center; }
.city-directory { padding-block: 32px 70px; }
.city-directory .section-intro p:last-child { color: var(--graphite-soft); }
.city-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.city-links a { padding: 9px 15px; color: var(--green-deep); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--white); font-size: 14px; }
.city-links a:hover, .city-links a[aria-current] { background: var(--green-deep); color: var(--white); }
.site-footer p { max-width: 480px; font-size: 13px; }
@media (max-width: 1180px) {
    .header-inner { grid-template-columns: auto auto 1fr; }
    .hero { gap: 32px; }
    .flow-node { gap: 12px; padding: 16px 12px; }
    .distribution-flow { padding: 20px; }
}
@media (max-width: 820px) {
    .header-inner { grid-template-columns: auto 1fr auto; }
    .city-picker { justify-self: center; }
    .hero { grid-template-columns: 1fr; padding-block: 38px 32px; }
    h1 { font-size: clamp(36px, 7vw, 54px); }
    .hero-network { max-width: 640px; width: 100%; }
    .benefit-grid { grid-template-columns: 1fr; gap: 12px; }
    .distribution-section { padding-bottom: 46px; }
}
@media (max-width: 560px) {
    .header-inner { grid-template-columns: 1fr auto; gap: 12px; padding-block: 12px; }
    .city-picker { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; min-width: 0; }
    .city-picker summary { padding: 9px 14px; }
    .city-picker summary small { font-size: 10px; }
    .city-picker summary strong { font-size: 15px; }
    .city-panel { width: 100%; }
    .login-link { grid-column: 2; grid-row: 1; }
    h1 { font-size: clamp(32px, 8.5vw, 44px); }
    .lead { font-size: 16px; }
    .hero { gap: 38px; }
    .hero-copy { min-width: 0; }
    .flow-node { grid-template-columns: 38px 1fr; padding: 16px 12px; }
    .flow-node > b { display: none; }
    .flow-node img, .rep-symbol { width: 38px; height: 38px; }
    .flow-node strong { font-size: 15px; }
    .distribution-flow { padding: 17px 12px; }
    .map-heading h2 { font-size: 29px; }
    .city-links { gap: 8px; }
    .city-links a { padding: 8px 12px; font-size: 13px; }
}

/* Restored map and the portal's shared green line icons */
.top-nav { gap: 22px; }
.top-nav a { display: inline-flex; align-items: center; gap: 7px; }
.top-nav img { flex: none; }
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.hero-copy { padding-left: 0; }
.hero-network { max-width: none; }
.trust-row { gap: 14px; margin-top: 28px; }
.trust-row > span { grid-template-columns: 1fr; justify-items: start; align-content: start; gap: 9px; font-size: 12px; line-height: 1.4; }
.trust-row img { display: block; width: 42px; height: 42px; padding: 5px; border-radius: 10px; background: var(--mint); }
.network-map { aspect-ratio: 1.28; min-height: 370px; background: var(--mint-soft); }
.network-map .map-background { opacity: 1; }
.network-map-badge { position: absolute; z-index: 6; top: 15px; left: 15px; display: flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(255,255,255,.95); font-size: 11px; color: var(--green-deep); font-weight: 800; }
.network-route { fill: none; stroke: var(--green); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-dasharray: 7 5; opacity: .7; }
.network-map .map-marker { text-decoration: none; gap: 5px; }
.network-map .marker-icon { width: 52px; height: 52px; background: var(--white); border-width: 1.5px; transition: transform .18s ease, box-shadow .18s ease; }
.network-map .marker-icon img { width: 35px; height: 35px; }
.network-map .marker-basa .marker-icon { background: var(--green-deep); }
.network-map .marker-representative .marker-icon { width: 68px; height: 68px; border-radius: 50%; border: 2px solid var(--green); box-shadow: 0 0 0 8px #e7f4e9bd, 0 8px 22px #176f3b24; }
.network-map .marker-representative .marker-icon img { width: 47px; height: 47px; }
.network-map .marker-label { display: block; max-width: 135px; padding: 5px 9px; font-size: 11px; white-space: normal; box-shadow: 0 3px 8px #176f3b0a; }
.network-map .marker-representative .marker-label { max-width: 166px; color: var(--green-deep); }
.network-map .map-marker:hover, .network-map .map-marker:focus-visible { z-index: 8; }
.network-map .map-marker:hover .marker-icon, .network-map .map-marker:focus-visible .marker-icon { transform: translateY(-3px); box-shadow: 0 8px 24px #176f3b30; }
.network-legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; padding: 15px 3px 4px; }
.network-legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--green-deep); font-size: 12px; }
.network-legend img { flex: none; }
.map-note { margin-left: 3px; line-height: 1.5; }
.benefit-grid article { padding-top: 24px; }
.benefit-icon { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 18px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--mint-soft); }
.benefit-icon img { display: block; width: 60px; height: 60px; }
.role-card > img { width: 64px; height: 64px; padding: 5px; border-radius: 14px; background: #e7f4e9b3; }
.city-links a { display: inline-flex; align-items: center; gap: 7px; }
.city-links a:hover img, .city-links a[aria-current] img { filter: brightness(0) invert(1); }
.closing-icon { display: block; margin-bottom: 18px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--white); }
@media (min-width: 1181px) {
    .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .role-card { padding: 24px; }
}
@media (min-width: 821px) and (max-width: 1180px) {
    .hero { gap: 30px; }
    .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-row > span { grid-template-columns: auto 1fr; align-items: center; }
}
@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; }
    .section-intro { display: block; }
    .trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .network-map { aspect-ratio: 1.45; min-height: 350px; }
    .benefit-grid article { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 7px 18px; }
    .benefit-icon { grid-column: 1; grid-row: 1 / 4; width: 76px; height: 76px; margin: 0; }
    .benefit-grid article > span, .benefit-grid article > h3, .benefit-grid article > p { grid-column: 2; margin: 0; }
    .benefit-grid article > p { margin-top: 5px; }
    .benefit-grid { gap: 24px; }
}
@media (max-width: 560px) {
    .hero { gap: 34px; }
    .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; }
    .trust-row > span { grid-template-columns: auto 1fr; align-items: center; }
    .network-map { aspect-ratio: 1.04; min-height: 320px; }
    .network-map-badge { top: 10px; left: 10px; font-size: 10px; padding: 5px 8px; }
    .network-map .marker-icon { width: 44px; height: 44px; }
    .network-map .marker-icon img { width: 30px; height: 30px; }
    .network-map .marker-representative .marker-icon { width: 57px; height: 57px; }
    .network-map .marker-representative .marker-icon img { width: 41px; height: 41px; }
    .network-map .marker-label { max-width: 92px; padding: 4px 6px; font-size: 10px; }
    .network-map .marker-representative .marker-label { max-width: 116px; }
    .network-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 15px; }
    .network-legend span { font-size: 11px; }
    .role-card > img { width: 57px; height: 57px; }
    .benefit-grid article { grid-template-columns: 63px minmax(0, 1fr); gap: 7px 14px; }
    .benefit-icon { width: 63px; height: 63px; border-radius: 16px; }
    .benefit-icon img { width: 48px; height: 48px; }
    .benefit-grid h3 { font-size: 22px; }
}

/* Local city map assets and always-visible open-data attribution */
.network-map { width: 100%; max-width: 100%; background: repeating-linear-gradient(0deg, transparent 0 34px, #dfe9df 35px 36px), repeating-linear-gradient(90deg, #edf4ec 0 34px, #dfe9df 35px 36px); }
.city-map-caption { margin: 0; color: var(--green-deep); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.map-heading { flex-wrap: wrap; gap: 8px 18px; }
.city-map-attribution { margin: 7px 3px 0; color: #475a50; font-size: 11px; line-height: 1.6; }
.city-map-attribution a { color: #285b3c; text-decoration: underline; text-underline-offset: 2px; }
.city-map-attribution a:hover { color: #123c25; }
@media (max-width: 640px) { .city-map-caption { flex-basis: 100%; font-size: 14px; } }
