:root {
  color-scheme: light;
  --ink: #15364b;
  --muted: #506873;
  --red: #b63d28;
  --paper: #fff;
  --wash: #f1f4f5;
  --line: #d7e1e5;
  font-family: "Instrument Sans", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--wash);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
figure, h1, h2, h3, p { margin: 0; }
a:focus-visible { outline: 3px solid #0074ad; outline-offset: 4px; }
.wrap { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; z-index: 3; left: 16px; top: 12px; transform: translateY(-160%); padding: 8px 12px; background: var(--paper); }
.skip:focus { transform: none; }
.utility { border-bottom: 1px solid var(--line); background: #e9eff1; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; min-height: 34px; font-size: 12px; color: #3c5969; }
.utility a:hover, .text-link:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .24em; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.identity { display: flex; align-items: center; gap: 16px; min-height: 52px; white-space: nowrap; }
.identity img { width: 108px; height: auto; }
.identity span { padding-left: 16px; border-left: 1px solid var(--line); font-size: 20px; font-weight: 700; }
.header-inner nav { display: flex; align-items: center; gap: clamp(17px, 3vw, 40px); }
.header-inner nav a { font-size: 14px; font-weight: 600; padding-block: 12px; white-space: nowrap; }
.header-inner nav a:hover, .home-link { color: var(--red); }
.home-link { box-shadow: inset 0 -2px var(--red); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 9px 17px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 700; text-align: center; }
.button-red { background: var(--red); color: #fff; }
.button-red:hover { background: #96301f; }
.button-outline { border-color: #c4d2d8; background: #fff; }
.button-outline:hover { background: #eaf0f2; }
.button-navy { background: var(--ink); color: #fff; }
.button-navy:hover { background: #264d63; }

main { padding-block: 26px 0; }
section[id] { scroll-margin-top: 16px; }
.hero { display: grid; grid-template-columns: 5fr 7fr; align-items: stretch; gap: 10px; overflow: hidden; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.hero-copy { padding: 35px 12px 36px 32px; align-self: center; }
.merchant-type { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 4px 10px; border-radius: 5px; background: #e8eff3; color: #294d61; font-size: 12px; font-weight: 700; }
.merchant-type span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
h1 { font-size: clamp(42px, 4.4vw, 64px); line-height: 1.14; letter-spacing: -.045em; }
.hero-description { max-width: 35rem; margin-top: 18px; font-size: 15px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-photo { min-width: 0; min-height: 365px; position: relative; overflow: hidden; border-radius: 10px; background: #e5e7e3; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.categories { margin-top: 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
h2 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.22; letter-spacing: -.025em; }
.section-heading p, .info-card p, .partner p { margin-top: 7px; color: var(--muted); }
.section-heading p { font-size: 14px; }
.text-link { flex-shrink: 0; font-size: 14px; font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category { display: grid; grid-template-columns: 1fr auto; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.category:hover { border-color: #92aebc; }
.category img { grid-column: 1 / -1; width: 100%; aspect-ratio: 1.95; object-fit: cover; object-position: 76% center; background: #e7ebeb; }
.category:nth-child(4) img { object-position: center; }
.category div { padding: 13px 8px 13px 15px; }
.category h3 { font-size: clamp(16px, 1.55vw, 20px); line-height: 1.3; }
.category p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.category > span { margin-right: 14px; color: var(--red); font-weight: 700; }

.information { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.info-card { padding: 27px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.info-card h2, .partner h2 { font-size: clamp(20px, 1.8vw, 25px); }
.info-card .text-link, .info-card .button { display: inline-flex; margin-top: 16px; }
.contact { background: #e8f0f4; }
.partner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 23px 27px; border: 1px solid var(--line); border-radius: 10px; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 24px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; column-gap: 12px; row-gap: 0; padding-top: 6px; }
  .header-inner nav { order: 3; width: 100%; gap: clamp(15px, 5vw, 36px); }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-left: 18px; }
  .hero-photo { min-height: 310px; }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .identity { gap: 9px; }
  .identity img { width: 75px; }
  .identity span { padding-left: 9px; font-size: 16px; }
  .header-action { min-height: 38px; gap: 6px; padding-inline: 8px; font-size: 12px; }
  .header-inner nav { justify-content: space-between; gap: 6px; }
  .header-inner nav a { font-size: 13px; }
  main { padding-top: 14px; }
  .hero { grid-template-columns: 1fr; gap: 12px; padding: 9px; }
  .hero-copy { padding: 15px 9px 1px; }
  h1 { font-size: clamp(26px, 9vw, 44px); }
  .merchant-type { margin-bottom: 12px; }
  .hero-description { margin-top: 12px; }
  .actions { margin-top: 16px; gap: 7px; }
  .actions .button { padding-inline: 10px; gap: 6px; font-size: 13px; }
  .hero-photo { min-height: 0; aspect-ratio: 1.85; }
  .categories { margin-top: 24px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category div { padding: 9px 3px 9px 8px; }
  .category p { font-size: 11px; }
  .category > span { margin-right: 8px; }
  .section-heading .text-link { font-size: 12px; }
  .information { grid-template-columns: 1fr; gap: 9px; margin-top: 20px; }
  .info-card, .partner { padding: 16px; }
  .partner { flex-direction: column; align-items: flex-start; }
}

.product-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.product-filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 14px; }
.product-filters a[aria-current], .product-filters a:hover { border-color: var(--ink); }
.product-filters a[aria-current] { background: var(--ink); color: var(--paper); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.product-card:hover { border-color: #92aebc; }
.product-photo { aspect-ratio: 4 / 3; background: #edf0f1; text-align: center; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-copy { padding: 12px 14px; }
.product-copy h3 { min-height: 3em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.product-copy p { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.product-copy p > span:first-child { color: var(--red); font-size: 16px; font-weight: 700; }
.empty-products { padding: 20px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--paper); }
.product-pages { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-copy { padding: 8px; }
  .product-copy h3 { font-size: 13px; }
  .product-copy p > span:first-child { font-size: 14px; }
}
