:root {
  color-scheme: dark;
  --bg: #080b11;
  --text: #f1f5ff;
  --muted: #aebacc;
  --cyan: #64e8ff;
  --line: #303b50;
  font: 16px/1.5 Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.shell { width: min(1344px, calc(100% - 88px)); margin-inline: auto; }
.header { background: #0b0e16; border-bottom: 1px solid #222b3c; }
.top { min-height: 76px; display: flex; align-items: center; gap: 42px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 174px; height: auto; mask-image: radial-gradient(ellipse closest-side, black 73%, transparent 100%); }
nav { display: flex; gap: 26px; }
nav a { padding: 8px 0; color: var(--muted); }
nav a:hover, nav a[aria-current] { color: white; }
.account { margin-left: auto; }
.outline, .primary { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 17px; border-radius: 9px; font-weight: 690; white-space: nowrap; }
.outline { border: 1px solid var(--line); background: #101723; color: var(--text); }
.outline:hover { border-color: var(--cyan); }
.primary { border: 1px solid transparent; background: var(--cyan); color: #031219; }
.primary:hover { background: #aff4ff; }
.journey {
  --header-height: 77px;
  --travel: clamp(280px, 46svh, 460px);
  --hero-height: max(540px, calc(100svh - var(--header-height)));
  position: relative;
  height: calc(var(--travel) + max(100dvh, var(--hero-height) + var(--header-height)));
}
.hero {
  position: sticky; top: 0; height: var(--hero-height); display: grid; align-items: center; isolation: isolate;
  background: radial-gradient(ellipse at 22% 76%, #082c42 0, transparent 45%), radial-gradient(ellipse at 75% 53%, #19213e 0, transparent 43%), radial-gradient(ellipse at 100% 85%, #220c21 0, transparent 40%), var(--bg);
}
#otevrene-album { position: absolute; top: var(--travel); }
.composition { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.22fr); align-items: center; gap: clamp(24px, 5vw, 82px); }
.intro { position: relative; z-index: 2; }
h1 { font-size: clamp(2.7rem, 5.1vw, 5.65rem); line-height: .99; letter-spacing: -.068em; margin: 0; font-weight: 820; max-width: 9.5em; }
h1 em { display: block; color: var(--cyan); font-style: normal; }
.intro p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.25rem); margin: 22px 0 26px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.display { position: relative; min-width: 0; }
.stage { width: 100%; perspective: 1400px; }
.book {
  position: relative; aspect-ratio: 1.44; transform-style: preserve-3d;
  transform: translateX(var(--shift, -25%));
}
.backing {
  position: absolute; left: 50%; right: 0; height: 100%; border-radius: 6px 20px 20px 6px;
  background: #141723; box-shadow: 0 22px 54px #000b, inset 0 0 0 1px #4b5363;
  transform: translateZ(-10px);
}
.leaf { position: absolute; left: 0; width: 50%; height: 100%; transform-origin: right center; transform-style: preserve-3d; transform: rotateY(var(--angle, 180deg)); }
.cover, .page { position: absolute; height: 100%; border: 1px solid #4e5666; }
.cover {
  inset: 0; backface-visibility: hidden; transform: rotateY(180deg) translateZ(6px);
  border-radius: 7px 20px 20px 7px; display: grid; place-items: center;
  background: linear-gradient(90deg, #0a0c11, #242936 4%, transparent 11%), repeating-linear-gradient(117deg, #ffffff07 0 1px, transparent 1px 3px), #191d26;
  box-shadow: 0 24px 44px #000a, inset 0 0 0 5px #10131c;
}
.cover::after { content: ""; position: absolute; inset: 11px; border: 1px dashed #65718480; border-radius: 5px 12px 12px 5px; }
.cover img { display:block; width: 94%; height: auto; mix-blend-mode: screen; mask-image: radial-gradient(ellipse closest-side, black 74%, transparent 100%); }
.page {
  display: grid; grid-template-rows: 1fr 1fr; gap: clamp(5px, 1vw, 13px); padding: clamp(8px, 1.4vw, 20px);
  background: repeating-linear-gradient(120deg, #ffffff04 0 1px, transparent 1px 3px), linear-gradient(130deg, #303743, #10151e 50%, #1c212b);
  box-shadow: inset 0 0 0 4px #11151e, 0 17px 36px #0008;
}
.right { left: 50%; width: 50%; border-radius: 5px 19px 19px 5px; transform: translateZ(-4px); }
.left { inset: 0; border-radius: 19px 5px 5px 19px; backface-visibility: hidden; }
.binding { position: absolute; z-index: 2; inset: 12% auto 12% 50%; transform: translateX(-50%) translateZ(9px); display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; opacity: var(--rings, 0); }
.binding i { display: block; width: clamp(13px, 2.4vw, 35px); height: clamp(6px, .9vw, 12px); border-radius: 55%; background: linear-gradient(#121825, #b5c4d6 30%, #f1f6ff 46%, #646e80 66%, #202839); box-shadow: 0 4px 5px #000b; }
.market { --accent: #3589fb; }
.auction { --accent: #dc426e; }
.checklist { --accent: #76b65b; }
.collection { --accent: #9566f0; }
.pocket, .card-detail {
  background: radial-gradient(ellipse at 85% 46%, color-mix(in srgb, var(--accent) 36%, #111725), #111725 75%);
}
.pocket {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: 5px; min-height: 0; padding: 5%; color: white;
  border: 1px solid color-mix(in srgb, var(--accent) 68%, #bbb); border-radius: 7px;
  box-shadow: inset 0 0 0 3px #dce7ff21;
  font-size: clamp(.875rem, 1.65vw, 1.55rem); line-height: 1.1; font-weight: 800; letter-spacing: -.025em;
}
.pocket:hover, .pocket:focus-visible { filter: brightness(1.16); box-shadow: inset 0 0 0 2px #dce7ff6b, 0 0 15px var(--accent); }
.pocket small { display: block; margin-top: 5px; color: #c3cfe0; font-size: clamp(.67rem, 1.05vw, .94rem); font-weight: 550; }
.pocket img {
  width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; filter: drop-shadow(0 5px 5px #0009);
}
.cue { display: flex; justify-content: center; align-items: center; gap: 9px; position: absolute; inset: auto 0 -40px; color: #c3cfe0; font-size: .875rem; opacity: var(--cue, 1); }
.cue b { width: 12px; height: 19px; border: 1px solid #b6d2e4; border-radius: 8px; }
.cue b::after { content: ""; display: block; margin: 3px auto 0; width: 2px; height: 5px; border-radius: 5px; background: var(--cyan); }
h2 { font-size: clamp(1.45rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.045em; margin: 0; }
footer { color: var(--muted); padding-block: 15px 26px; border-top: 1px solid var(--line); }
dialog { width: min(460px, calc(100% - 28px)); background: #121a29; border: 1px solid var(--line); border-radius: 16px; color: var(--text); padding: 23px; }
dialog::backdrop { background: #050810c9; }
dialog form { display: flex; justify-content: flex-end; margin-bottom: 14px; }
dialog p { color: var(--muted); }
.destination {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 430px);
  align-items: center; gap: clamp(24px, 6vw, 85px); padding-block: clamp(32px, 9vh, 100px);
}
.destination h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); max-width: none; }
.destination p { color: var(--muted); font-size: 1.12rem; }
.destination .category { color: var(--accent); font-weight: 740; }
.card-detail { margin: 0; border: 1px solid var(--line); border-radius: 16px; padding: clamp(15px, 3vw, 35px); }
.card-detail img { display: block; margin: auto; width: auto; height: min(50vh, 430px); max-width: 100%; object-fit: contain; }
.card-detail figcaption { display: grid; gap: 4px; margin-top: 16px; }
.card-detail strong { font-size: 1.25rem; }
.card-detail span { color: var(--muted); }
.card-detail a { color: var(--cyan); text-decoration: underline; margin-top: 4px; width: fit-content; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 44px); }
  .composition { gap: 24px; grid-template-columns: minmax(0, .95fr) minmax(0, 1.12fr); }
  .top { gap: 24px; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .top { min-height: 61px; gap: 12px; }
  .brand img { width: 133px; }
  nav { display: none; }
  .account { min-height: 39px; font-size: .875rem; }
  .journey { --header-height: 62px; --travel: clamp(220px, 41svh, 340px); }
  .composition { display: flex; flex-direction: column; gap: clamp(18px, 4svh, 38px); padding-bottom: 26px; }
  .intro { width: 100%; text-align: center; }
  h1 { font-size: clamp(2.55rem, 9vw, 3.8rem); margin-inline: auto; }
  h1 em { display: inline; }
  .intro p { margin: 13px 0 16px; }
  .actions { justify-content: center; }
  .actions > * { min-height: 42px; font-size: .9rem; }
  .display { width: min(100%, 450px); }
  .cue { bottom: -29px; }
  .destination { grid-template-columns: minmax(0, 1fr); }
}
[hidden] { display: none !important; }

@media (max-width: 405px) {
  .pocket { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); font-size: .8rem; }
}

.mobile-album { display: none; }
.intro h1 { font-size: clamp(2.4rem, 4.2vw, 4.6rem); overflow-wrap: anywhere; }
.pilot-section {
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: clamp(38px, 7vw, 84px);
}
.pilot-section p { max-width: 52ch; margin: 12px 0 0; color: var(--muted); }
.pilot-categories { display: flex; gap: 10px; flex-wrap: wrap; }
.card-detail a.primary { color: #031219; text-decoration: none; }
.offer, .pilot-page { padding-block: clamp(30px, 7vw, 82px); }
.offer h1, .pilot-page h1 { max-width: none; margin: 0; font-size: clamp(2.6rem, 6vw, 5rem); }
.offer-set, .offer-note, .pilot-page > p:not(.sample-label), #pilot-note { color: var(--muted); }
.sample-label { color: var(--cyan); font-weight: 650; margin: 0 0 12px; }
.offer-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start; gap: clamp(16px, 4vw, 60px); margin-top: 24px;
}
.offer-panel { border: 1px solid var(--line); border-radius: 16px; background: #111725; padding: clamp(16px, 3vw, 30px); }
.offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 17px; font-size: 2rem; font-weight: 800; }
.offer-price small { color: var(--muted); font-size: 1rem; font-weight: 450; }
.offer-facts { margin: 0 0 22px; }
.offer-facts div { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-top: 1px solid var(--line); }
.offer-facts dt { color: var(--muted); }
.offer-facts dd { margin: 0; text-align: end; }
.offer-action { width: 100%; }
.offer-note { margin-bottom: 0; }
.pilot-page { max-width: 680px; }
#pilot-form { margin-top: 24px; }
#pilot-note { margin-top: 0; }
#pilot-form fieldset { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; }
#pilot-form legend { padding-inline: 6px; font-weight: 680; }
#pilot-form label { display: flex; min-height: 44px; gap: 9px; align-items: center; cursor: pointer; }
#pilot-form input { accent-color: var(--cyan); }
#pilot-status { color: var(--cyan); font-weight: 600; margin: 14px 0 0; }
#pilot-status:empty { margin: 0; }

@media (max-width: 650px) {
  .journey { height: auto; }
  .hero { position: relative; height: auto; padding-block: 28px 18px; }
  .composition { gap: 22px; }
  .intro h1 { font-size: clamp(2.05rem, 7.3vw, 3.25rem); }
  .actions > * { min-height: 44px; padding-inline: 11px; }
  .mobile-album { display: grid; width: min(100%, 450px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mobile-album a {
    display: grid; place-items: center; min-height: 48px; padding: 6px; text-align: center;
    border: 1px solid var(--accent); border-radius: 9px; background: #111725; color: var(--text); font-weight: 690;
  }
  .mobile-album a:hover { background: #1d2940; }
  .display { --angle: 0deg; --shift: 0%; --rings: 1; }
  .cue { display: none; }
  #otevrene-album { top: 0; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .journey { height: auto; }
  .hero { position: relative; height: auto; min-height: var(--hero-height); padding-block: 28px; }
  .display { --angle: 0deg; --shift: 0%; --rings: 1; }
  .cue { display: none; }
  #otevrene-album { top: 0; }
}
@media (max-width: 650px) and (prefers-reduced-motion: reduce) {
  .hero { min-height: 0; }
}
