:root {
  --black: #101311;
  --ink: #171a18;
  --green: #c7fd00;
  --green-deep: #6f8f00;
  --paper: #f6f7f4;
  --white: #ffffff;
  --line: #e6e8e3;
  --muted: #667068;
  --shadow: 0 18px 50px rgba(16, 19, 17, 0.08);
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 10px;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  color: white;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav.solid {
  background: rgba(16, 19, 17, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.logo {
  display: block;
  height: 46px;
  overflow: hidden;
}
.logo img {
  height: 90px;
  width: auto;
  margin-top: -22px;
  display: block;
}
.menu { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.menu a { opacity: 0.88; }
.menu a:hover { opacity: 1; color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn, .menu-toggle {
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: white;
  border-radius: 999px;
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.cart-btn b {
  background: var(--green);
  color: #141806;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.menu-toggle { display: none; width: 42px; padding: 0; justify-content: center; }

.btn, .btn-line, .btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  border: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn { background: var(--green); color: #111408; }
.btn:hover, .btn-dark:hover, .btn-line:hover { transform: translateY(-1px); }
.btn-line {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-dark { background: var(--black); color: white; }
.btn.full, .btn-dark.full { width: 100%; }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: white;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  padding: 140px 0 120px;
  background: #101311;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.on { opacity: 1; }
.hero-slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,10,9,0.82) 0%, rgba(8,10,9,0.45) 48%, rgba(8,10,9,0.2) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow, .hero h1, .hero p, .hero-actions { animation: rise .8s cubic-bezier(.22,.8,.3,1) both; }
.hero h1 { animation-delay: .08s; }
.hero p { animation-delay: .16s; }
.hero-actions { animation-delay: .24s; }
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}
.hero p { max-width: 460px; font-size: 18px; color: rgba(255,255,255,0.86); margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .eyebrow { color: var(--green); }

.band {
  background: var(--green);
  color: #141806;
}
.band article { animation: rise .7s cubic-bezier(.22,.8,.3,1) both; }
.band article:nth-child(2) { animation-delay: .1s; }
.band article:nth-child(3) { animation-delay: .2s; }
.band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.band article {
  padding: 28px 24px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.band article + article { box-shadow: inset 1px 0 0 rgba(0,0,0,0.08); }
.band strong { display: block; font-size: 16px; }
.band span { font-size: 14px; }
.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.35);
  display: grid;
  place-items: center;
  flex: none;
}

.section { padding: 92px 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  font-weight: 600;
}
.lead { color: var(--muted); max-width: 560px; margin: 0; }

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.frame {
  position: relative;
  padding: 18px 18px 0 0;
}
.frame img { width: 100%; height: 460px; object-fit: cover; border-radius: 8px; }
.frame:before {
  content: "";
  position: absolute;
  inset: 36px 0 0 36px;
  border: 2px solid var(--green);
  border-radius: 8px;
  z-index: -1;
}
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none;
}

.programs { background: var(--black); color: white; }
.programs .eyebrow { color: var(--green); }
.programs .head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.programs .lead { color: rgba(255,255,255,0.7); }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.program {
  position: relative;
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: end;
}
.program img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.program:hover img { transform: scale(1.08); }
.program span {
  position: relative;
  z-index: 1;
  padding: 20px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}

.shop-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  color: var(--muted);
}
.chip.on { background: var(--black); color: var(--green); border-color: var(--black); }
.carousel {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  padding-left: max(20px, calc((100% - 1120px) / 2));
  user-select: none;
}
.carousel.dragging { cursor: grabbing; }
.track {
  display: flex;
  gap: 16px;
  padding-right: 24px;
  will-change: transform;
}
.carousel-nav {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  font-size: 22px;
}
.drag-hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.card {
  flex: 0 0 320px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card img { height: 220px; width: 100%; object-fit: cover; background: #eee; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card small { color: var(--green-deep); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.price { font-weight: 800; font-size: 18px; }
.stock { font-size: 12px; color: var(--muted); }

.drawer-back, .nav-back {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 11, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}
.drawer-back.show, .nav-back.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  max-width: 100%;
  height: 100dvh;
  background: var(--paper);
  z-index: 50;
  transform: translateX(104%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: none;
}
.drawer.show { transform: none; }
html.cart-open,
html.cart-open body {
  overflow: hidden;
  overscroll-behavior: none;
}
html.cart-open body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
.drawer header, .sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 8px;
}
.drawer header h2, .sheet-head h2 { margin: 0; font-size: 22px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: white; font-size: 20px;
}
.cart-list { overflow: auto; overscroll-behavior: contain; padding: 8px 18px 18px; display: grid; gap: 10px; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; }
.line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  background: white;
  border-radius: 14px;
  padding: 10px;
}
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.line h3 { margin: 0 0 4px; font-size: 15px; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: white;
}
.summary {
  background: white;
  padding: 16px 18px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.summary div { display: flex; justify-content: space-between; }
.summary .total { font-size: 18px; font-weight: 800; }
.muted { color: var(--muted); font-size: 13px; }
.empty { padding: 40px 10px; text-align: center; color: var(--muted); }

#cart-view { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#form-view, #done-view { display: none; height: 100%; min-height: 0; overflow: hidden; }
#form-view { flex-direction: column; }
.sheet { display: none; }
.sheet.show { display: block; }
.sheet-head .eyebrow { margin-bottom: 2px; }
.sheet-head h2 { font-family: var(--display); letter-spacing: 0.03em; font-size: 34px; }
.form {
  display: grid;
  gap: 14px;
  padding: 4px 18px calc(24px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.block h3 { margin: 0; font-size: 16px; }
.hint { margin: -4px 0 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.form label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); min-width: 0; max-width: 100%; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fbfbfa;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 16px;
  color: var(--ink);
  scroll-margin: 120px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--green);
  border-color: transparent;
  background: white;
}
textarea { min-height: 84px; resize: vertical; }
.row, .row.city { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay label {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 8px;
  background: #fbfbfa;
  text-align: center;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay label:has(input:checked) {
  background: var(--black);
  color: var(--green);
  border-color: var(--black);
}
.error { color: #b42318; font-size: 14px; margin: 0; }
.success { padding: 36px 22px 40px; }
.success h2 { font-family: var(--display); font-size: 64px; line-height: 0.9; margin: 8px 0 16px; }
.success .btn { margin-top: 8px; }

.toast {
  position: fixed;
  top: 78px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-12px) scale(0.96);
  background: white;
  color: var(--ink);
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .38s cubic-bezier(.22,.9,.3,1.2);
  z-index: 70;
  box-shadow: 0 14px 34px rgba(16, 19, 17, 0.18);
  max-width: calc(100% - 20px);
}
.toast.show { opacity: 1; transform: none; }
.toast-logo {
  width: 78px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  background: #111;
  flex: none;
}
.toast-logo img { height: 74px; width: auto; margin-top: -18px; margin-left: -2px; max-width: none; }
.toast-copy { display: flex; align-items: center; gap: 8px; min-width: 0; }
.toast-copy #toast-text {
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1;
}
.toast-dots { display: flex; gap: 4px; align-items: center; }
.toast-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-deep);
  opacity: 0.25;
}
.toast.show .toast-dots i { animation: dot 1s ease infinite; }
.toast.show .toast-dots i:nth-child(2) { animation-delay: .15s; }
.toast.show .toast-dots i:nth-child(3) { animation-delay: .3s; }
.toast.warn .toast-dots { display: none; }

.footer {
  background: var(--black);
  color: rgba(255,255,255,0.78);
  padding: 42px 0;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer strong { color: white; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="side"] { transform: translateX(64px); }
[data-reveal="side"].in { transform: none; }
.cart-btn b.pop { animation: pop .35s ease; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  50% { transform: scale(1.35); }
}
@keyframes dot {
  0%, 70%, 100% { opacity: 0.25; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .menu { display: none; }
  .menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    background: var(--black);
    padding: 18px;
    border-radius: 16px;
    z-index: 45;
  }
  .menu-toggle { display: inline-flex; }
  .program-grid, .band-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .frame img { height: 320px; }
  .card { flex-basis: 46vw; }
}
@media (max-width: 680px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .nav { padding: 10px 14px; gap: 8px; }
  .logo { height: 34px; }
  .logo img { height: 66px; margin-top: -16px; }
  .cart-btn { height: 40px; padding: 0 12px; font-size: 14px; }
  .menu.open { top: 64px; }
  .menu.open a { padding: 12px 4px; font-size: 18px; }
  .hero { padding: 112px 0 56px; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 16px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 36px; }
  .program-grid {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0;
    padding: 0 0 8px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .program { flex: 0 0 78vw; min-height: 230px; scroll-snap-align: start; }
  .program span { font-size: 24px; }
  .band-grid, .pay { grid-template-columns: 1fr; }
  .drawer { left: 0; width: 100%; max-width: 100%; }
  .toast { top: 68px; right: 10px; }
  .sheet-head h2 { font-size: 32px; }
  .form { padding-left: 12px; padding-right: 12px; }
  .block { padding: 14px; }
  .band article { padding: 18px 8px; }
  .band article + article { box-shadow: inset 0 1px 0 rgba(0,0,0,0.08); }
  .shop-head, .programs .head, .footer .wrap { flex-direction: column; align-items: start; }
  .filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
  .chip { flex: none; }
  .carousel { padding-left: 14px; }
  .card { flex-basis: 78vw; }
  .card img { height: 180px; }
  .frame img { height: 240px; }
  .drawer { width: 100%; }
  input, select, textarea { font-size: 16px; }
  .footer { padding: 32px 0 28px; }
}
