:root {
  --bg: #f4f8fb;
  --panel: #ffffff;
  --ink: #16324a;
  --muted: #5b7386;
  --line: #d7e4ee;
  --accent: #5ec4e3;
  --accent-strong: #2aa8d1;
  --accent-soft: #e7f6fb;
  --stage-top: #fbfefe;
  --stage-bottom: #eef6fa;
  --shadow: 0 18px 50px rgba(22, 50, 74, 0.12);
  --font: Manrope, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; overflow-x: clip; }

body {
  background:
    radial-gradient(1200px 500px at 10% -10%, #dff4fb 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2 { font-weight: 800; overflow-wrap: break-word; min-width: 0; letter-spacing: -0.04em; text-wrap: balance; }
h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin: 0; }
h2 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0; }

.wrap { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px 8px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; color: inherit; text-decoration: none; }
.logo { height: 52px; width: auto; }
.brand-tag { margin-left: 54px; color: var(--muted); font-size: 13px; font-weight: 600; }

.btn, .pager button, #zoom-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  padding: 14px 16px;
  border: 0;
  background: linear-gradient(180deg, #6dceea, var(--accent-strong));
  color: var(--panel);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(42, 168, 209, 0.28);
}

.pager button { width: 44px; padding: 0; }
.btn:hover, .pager button:hover, #zoom-close:hover { transform: translateY(-1px); }
.pager button:hover { border-color: var(--accent); background: var(--accent-soft); }
a:active, button:active { transform: translateY(0) scale(0.985); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 8px;
}
.hero p { max-width: 42ch; margin-top: 12px; color: var(--muted); font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.shot {
  margin: 0;
  height: 560px;
  border-radius: 24px;
  overflow: clip;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 50% 80%, rgba(94, 196, 227, 0.16), transparent 42%),
    linear-gradient(180deg, var(--stage-top), var(--stage-bottom));
}
.stage { position: relative; width: 100%; height: 100%; }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage.is-loading canvas { opacity: 0; }
.stage-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.band { padding-block: 36px; }
.lead { color: var(--muted); margin-bottom: 14px; max-width: 52ch; font-size: 14px; }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.size {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.size strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.size span { color: var(--muted); font-size: 14px; }

.band-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.pager { display: flex; gap: 8px; }
.pager svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.rail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding-bottom: 8px;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

.card {
  flex: 0 0 min(78%, 420px);
  scroll-snap-align: start;
  padding: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: clip;
  background: var(--panel);
  text-align: left;
  box-shadow: var(--shadow);
}
.card-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}
.card-photo img { width: 100%; height: 280px; object-fit: cover; }
.card-name { margin: 12px 16px 0; font-weight: 800; font-size: 16px; }
.card-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  margin: 10px 16px 0;
  min-height: 40px;
}
.card-more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.card-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.card-copy {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.card-more[aria-expanded="true"] + .card-copy { grid-template-rows: 1fr; }
.card-copy > div { overflow: hidden; }
.card-copy p {
  margin: 10px 16px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
  margin-top: 12px;
  padding: 18px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.foot .logo { height: 40px; margin-bottom: 8px; }
.foot strong { display: block; color: var(--ink); font-size: 14px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--accent-strong); text-decoration: none; font-weight: 700; }

.cookie-bar[hidden] { display: none; }
.cookie-bar {
  position: fixed;
  z-index: 20;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.cookie-bar p { font-size: 14px; line-height: 1.45; }
.cookie-bar a { color: var(--accent-strong); font-weight: 700; }
.cookie-bar button {
  flex: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  background: var(--accent-strong);
  color: var(--panel);
  font-weight: 800;
  cursor: pointer;
}

#zoom {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}
#zoom::backdrop { background: rgba(22, 50, 74, 0.46); }
.zoom-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
#zoom-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.04em; }
.zoom-layout { display: grid; gap: 14px; min-width: 0; }
.zoom-copy { min-width: 0; }
.zoom-copy p { margin: 0 0 12px; overflow-wrap: anywhere; font-size: 14px; }
#zoom-density { color: var(--muted); }
.zoom-view {
  height: min(46vh, 420px);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 80%, rgba(94, 196, 227, 0.16), transparent 42%),
    linear-gradient(180deg, var(--stage-top), var(--stage-bottom));
  touch-action: none;
  cursor: grab;
}
.zoom-view img { width: 100%; height: 100%; object-fit: contain; transform-origin: center center; }

@media (max-width: 860px) {
  .hero, .sizes { grid-template-columns: minmax(0, 1fr); }
  .shot { height: 460px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .band-head, .zoom-bar, .cookie-bar { flex-direction: column; align-items: start; }
  .cookie-bar button { width: 100%; }
  .zoom-view { height: min(40vh, 320px); width: 100%; }
  .card { flex-basis: 86%; }
}

@media (max-width: 560px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .nav { flex-direction: column; align-items: stretch; gap: 12px; }
  .nav > .btn, .actions .btn { width: 100%; }
  .cookie-bar { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, a, button, .card-more svg, .card-copy { transition: none; }
  .rail { scroll-behavior: auto; }
}
