:root {
  --ink: #1a2f33;
  --amber: #f39c12;
  --amber-2: #ffb238;
  --mist: #f2f6f7;
  --paper: #fcfcfc;
  --white: #ffffff;
  --deep: #04191d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

p { margin: 0; }

.kicker {
  position: relative;
  margin: 0 0 16px;
  padding-left: 45px;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.kicker:before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: var(--amber);
}

.kicker.light { color: var(--mist); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 30px;
  border: 0;
  border-radius: 5px;
  background: var(--amber);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn:hover { filter: brightness(1.08); transform: scale(1.015); }

.btn-ghost {
  background: transparent;
  color: var(--mist);
  box-shadow: inset 0 0 0 1px rgba(242, 246, 247, 0.45);
}

.bar {
  position: fixed;
  z-index: 40;
  top: 15px;
  left: 15px;
  right: 15px;
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 22px 0 14px;
  border-radius: 10px;
  background: #13282c;
  color: var(--mist);
  box-shadow: 0 8px 22px rgba(4, 25, 29, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.bar-slogan {
  flex: 1;
  margin: 0 28px;
  color: #f7f1e8;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-slogan:before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 14px;
  border-radius: 2px;
  background: #f39c12;
  vertical-align: middle;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav a {
  display: flex;
  align-items: center;
  height: 80px;
  margin: 0 12px;
  color: #f2f6f7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a:hover { color: var(--amber); }

.bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.burger {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span,
.burger span:before,
.burger span:after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 3px;
  background: #f2f6f7;
  position: relative;
  content: "";
  transition: 0.3s ease;
}

.burger span:before { position: absolute; top: -7px; }
.burger span:after { position: absolute; top: 7px; }

.burger.is-open span { background: transparent; }
.burger.is-open span:before { top: 0; transform: rotate(45deg); }
.burger.is-open span:after { top: 0; transform: rotate(-45deg); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.stage {
  --stage-ms: 6.5s;
  margin: 110px 15px 0;
}

.stage-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1712 / 624;
  border-radius: 10px;
  background: #f7f9fc;
  box-shadow: 0 12px 30px rgba(26, 47, 51, 0.16);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transform: translate3d(6%, 0, 0);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.stage.is-back .slide { transform: translate3d(-6%, 0, 0); }

.slide.is-active {
  opacity: 1;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  transition: transform var(--stage-ms) linear;
}

.slide.is-active img { transform: scale(1); }

.stage-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(26, 47, 51, 0.18);
  cursor: pointer;
  transition: 0.3s ease;
}

.stage-arrow:hover { background: var(--amber); }

.stage-arrow:before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.stage-prev { left: 18px; }
.stage-prev:before { transform: rotate(-135deg) translate(1px, 1px); }
.stage-next { right: 18px; }
.stage-next:before { transform: rotate(45deg) translate(1px, -1px); }

.stage-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 16px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.stage-dot {
  width: 46px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(26, 47, 51, 0.18);
  overflow: hidden;
  cursor: pointer;
}

.stage-dot i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
}

.stage-dot.is-on i { animation: stage-fill var(--stage-ms) linear forwards; }

.stage.is-paused .stage-dot.is-on i { animation-play-state: paused; }

@keyframes stage-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide img, .stage-dot i { transition: none; animation: none; }
  .slide img, .slide.is-active img { transform: none; }
  .stage-dot.is-on i { transform: scaleX(1); }
}

.section { padding: 100px 0; }

.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.section h2 { margin-bottom: 14px; font-size: clamp(36px, 5vw, 68px); }

.soft { color: rgba(26, 47, 51, 0.72); }

.band { background: var(--paper); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.facts, .detail { display: grid; gap: 16px; }

.fact, .card, .portal, .detail article {
  padding: 28px;
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 5px 10px rgba(26, 47, 51, 0.08);
}

.fact strong, .detail h3 { display: block; margin-bottom: 6px; font-size: 28px; }

.portals, .columns, .steps {
  display: grid;
  gap: 18px;
}

.portals, .columns, .detail { margin-top: 28px; }

.portals, .columns { grid-template-columns: repeat(2, 1fr); }

.portal {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: var(--ink);
}

.portal em {
  color: var(--amber);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.portal h3 { margin: 10px 0 8px; font-size: 40px; }

.portal p { flex: 1; }

.portal span {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.portal:hover { background: var(--amber); }

.steps {
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.night {
  background: var(--ink);
  color: var(--mist);
}

.steps li {
  padding: 26px 22px;
  border-radius: 5px;
  background: rgba(242, 246, 247, 0.06);
}

.steps strong {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.steps h3 { margin-bottom: 8px; font-size: 32px; }

.steps p { color: rgba(242, 246, 247, 0.78); }

.card h3 { margin-bottom: 12px; font-size: 36px; }

.card ul, .detail ul { margin: 0; padding-left: 18px; }

.card li + li { margin-top: 8px; }

.site-footer {
  padding: 64px 0 28px;
  color: rgba(242, 246, 247, 0.82);
  background: var(--deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: var(--white);
  border-radius: 5px;
}

.site-footer h2 { margin: 14px 0 8px; font-size: 40px; color: var(--white); }

.foot-links { display: grid; gap: 8px; margin-top: 10px; }

.site-footer a:hover { color: var(--amber); }

.legal {
  width: min(1140px, calc(100% - 40px));
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 246, 247, 0.15);
  color: rgba(242, 246, 247, 0.55);
  font-size: 14px;
}

@media (max-width: 1360px) {
  .nav a { margin: 0 8px; letter-spacing: 0.4px; }
}

@media (max-width: 1280px) {
  .stage { margin: 80px 0 0; }
  .stage-frame { border-radius: 0; }
  .bar { top: 0; left: 0; right: 0; }
  .bar-inner { border-radius: 0 0 10px 10px; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav a { color: var(--ink); }
  .nav {
    display: none;
    position: fixed;
    top: 90px;
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 18px;
    border-radius: 5px;
    background: var(--white);
    box-shadow: 0 5px 10px rgba(26, 47, 51, 0.2);
  }
  .nav.is-open { display: flex; }
  .nav a {
    height: auto;
    margin: 0;
    padding: 14px 28px;
  }
  .portals, .columns, .steps, .split, .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar-inner { height: 70px; padding: 0 16px; }
  .brand img { width: 52px; height: 52px; }
  .nav { top: 78px; }
  .stage { margin: 70px 0 0; }
  .stage-frame { border-radius: 0; }
  .stage-arrow { width: 38px; height: 38px; margin-top: -19px; }
  .stage-prev { left: 8px; }
  .stage-next { right: 8px; }
  .stage-dots { bottom: 8px; }
  .stage-dot { width: 28px; }
  .bar-slogan { display: none; }
  .bar-right .btn { height: 42px; padding: 0 14px; }
  .guest-panel .btn { width: 100%; }
  .guest-top { flex-direction: column; align-items: stretch; }
  .guest-stats, .guest-row { grid-template-columns: 1fr; }
  .guest-book-head { flex-direction: column; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 40px; }
  .portals, .columns, .steps, .split, .footer-grid { grid-template-columns: 1fr; }
  .portal h3, .card h3, .fact strong, .detail h3 { font-size: 30px; }
  .wrap { width: min(1140px, calc(100% - 32px)); }
}

.page-main {
  width: min(760px, calc(100% - 32px));
  margin: 120px auto 64px;
}

.page-main.is-ledger { width: min(980px, calc(100% - 32px)); }

.guest-panel, .guest-book {
  padding: 28px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(26, 47, 51, 0.08);
}

.guest-panel h1, .page-main h1 {
  margin-bottom: 10px;
  font-size: clamp(36px, 5vw, 52px);
}

.guest-panel label {
  display: block;
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.guest-panel input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: var(--mist);
  color: var(--ink);
  font: inherit;
}

.guest-panel .btn { margin-top: 18px; }

.guest-note { margin-top: 14px; color: rgba(26, 47, 51, 0.72); }

.guest-error { margin-top: 10px; color: #b43318; font-weight: 600; }

.guest-timer {
  margin-top: 8px;
  color: var(--amber);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}

.guest-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.guest-place + .guest-place { margin-top: 28px; }

.guest-place > h2 { margin-bottom: 12px; font-size: 34px; }

.guest-book + .guest-book { margin-top: 12px; }

.guest-book h3 { font-size: 22px; }

.guest-book p { color: rgba(26, 47, 51, 0.72); }

.guest-points {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.guest-points small {
  display: block;
  margin-bottom: 6px;
  color: rgba(26, 47, 51, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-book ul { margin: 0; padding-left: 18px; }

.guest-book li + li { margin-top: 8px; }

.guest-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.guest-stats article {
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(26, 47, 51, 0.08);
}

.guest-stats small {
  display: block;
  color: rgba(26, 47, 51, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.guest-book-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.guest-mini {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  color: rgba(26, 47, 51, 0.72);
  font-size: 14px;
}

.guest-history { margin-top: 8px; }

.guest-row {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(26, 47, 51, 0.08);
}

.guest-row time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(26, 47, 51, 0.62);
  font-size: 13px;
}

.guest-row time span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.guest-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 8px;
}

.guest-facts dt {
  color: rgba(26, 47, 51, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-facts dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 600;
}

.guest-row strong { display: block; }

.guest-row p { margin-top: 2px; }

.guest-row b { font-size: 18px; color: #1f8a4c; }

.guest-row.is-cash b { color: #b43318; }

.guest-row.is-void strong,
.guest-row.is-void p,
.guest-row.is-void b,
.guest-row.is-void .guest-facts dd {
  color: rgba(26, 47, 51, 0.45);
  text-decoration: line-through;
}

.guest-out {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.guide-steps { margin-top: 28px; }

.guide-steps li {
  background: #fff;
  box-shadow: 0 8px 22px rgba(26, 47, 51, 0.08);
}

.guide-steps h3 { color: var(--ink); }

.guide-steps p { color: rgba(26, 47, 51, 0.72); }

.guide-note { margin: 22px 0 18px; }
