@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #070b0a;
  --bg-2: #101615;
  --ink: #f4efe6;
  --muted: #9aa49c;
  --line: rgba(244, 239, 230, 0.1);
  --gold: #d8b07a;
  --gold-2: #f0d7b0;
  --danger: #ff8a7a;
  --glass: rgba(7, 11, 10, 0.62);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  font-feature-settings: "ss01" on;
}
body { overflow-x: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
a { color: var(--gold); }
.wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.hidden { display: none !important; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  background: linear-gradient(to bottom, rgba(7,11,10,.72), transparent);
}
.site-head-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 2.4vw, 26px);
  font-style: italic;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav { display: flex; gap: 36px; flex: 1; justify-content: center; align-items: center; }
.nav > a { position: relative; z-index: 2; }
.nav a, .nav-item > a {
  color: rgba(244, 239, 230, 0.72);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a.is-on, .nav a:hover, .nav-item.is-on > a, .nav-item > a:hover { color: var(--ink); }
.nav-item { position: relative; }
.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 10px 0;
  background: #0d1210;
  z-index: 40;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub { display: block; }
.nav-sub a {
  display: block;
  padding: 10px 18px;
  white-space: nowrap;
}
.head-actions { display: flex; align-items: center; gap: 8px; }
.cart-link, .nav-toggle {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
.cart-link b {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--gold);
  color: #14100a;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.cart-link b.is-empty { display: none; }
.nav-toggle { display: none; font-size: 20px; color: var(--ink); }
.staff-fab {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 12;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 239, 230, 0.16);
  text-decoration: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.staff-fab:hover { color: rgba(244, 239, 230, 0.4); }

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 120px 0 72px;
  background:
    linear-gradient(180deg, rgba(7, 11, 10, 0.28) 0%, rgba(7, 11, 10, 0.42) 45%, #070b0a 100%),
    url("../img/budapest-panorama.png") center 42% / cover no-repeat;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, var(--bg));
}
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker {
  margin: 0 0 18px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
}
.hero h1 {
  margin: 0 0 20px;
  max-width: 14ch;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(56px, 10vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero p {
  margin: 0 0 36px;
  max-width: 28ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #0b100e;
  text-decoration: none;
  font: 600 14px/1 Manrope, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.btn:hover { background: var(--gold-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, 0.28);
}
.btn-ghost:hover { background: rgba(244, 239, 230, 0.08); }
.btn-text {
  background: none;
  color: var(--gold);
  min-height: 0;
  padding: 0;
}

.section { padding: 40px 0 88px; }
.section h2, .page-intro h1 {
  margin: 0 0 12px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.lead { color: var(--muted); margin: 0 0 36px; max-width: 40ch; line-height: 1.55; }
.kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.page-hero {
  min-height: 48vh;
  display: grid;
  align-items: end;
  padding: 110px 0 28px;
  background:
    linear-gradient(180deg, rgba(7, 11, 10, 0.35), #070b0a),
    url("../img/budapest-panorama.png") center 55% / cover no-repeat;
}
body[data-page="programs"] .page-hero,
body[data-page="partners"] .page-hero,
body[data-page="shop"] .page-hero,
body[data-page="shop-egyeb"] .page-hero {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.4), #070b0a),
    url("../img/budapest-panorama.png");
  background-size: cover;
  background-position: center 48%;
}
body[data-page="harbor"] .page-hero {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.4), #070b0a),
    url("../img/hajo-lanchid.jpg");
  background-size: cover;
  background-position: center 60%;
}
body[data-page="ticket"] .page-hero {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.4), #070b0a),
    url("../img/hajo-pestbuda.jpg");
  background-size: cover;
  background-position: center 50%;
}
.jegy-card {
  max-width: 36rem;
  padding: 28px 0 64px;
}
.jegy-card h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 40px;
  line-height: 1.15;
  margin: 8px 0 16px;
  font-weight: 400;
}
.jegy-card code {
  font-size: 13px;
  letter-spacing: 0.06em;
}
body[data-page="hire"] .page-hero {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.42), #070b0a),
    url("../img/hajo32.jpg");
  background-size: cover;
  background-position: center 45%;
}
.page-intro { padding: 0; }

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-auto-rows: 280px;
  gap: 12px;
}
.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  text-decoration: none;
  color: var(--ink);
  min-height: 220px;
}
.tile b {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.tile span { color: rgba(244, 239, 230, 0.7); max-width: 28ch; line-height: 1.45; margin-top: 8px; }
.tile, .pick { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45); }
.tile:hover { filter: brightness(1.08); }
.t-jegy, .t-kikoto, .t-hajo, .t-busz, .t-hire, .t-prog, .pick, .event-card {
  background-size: cover;
  background-position: center;
}
.t-jegy {
  grid-row: span 2;
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.1) 10%, rgba(7, 11, 10, 0.82)),
    url("../img/tile-hajozas.png");
}
.t-prog {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.12), rgba(7, 11, 10, 0.8)),
    url("../img/tile-programok.png");
}
.t-kikoto {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.15), rgba(7, 11, 10, 0.8)),
    url("../img/tile-kikoto.png");
}
.t-hajo {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.12), rgba(7, 11, 10, 0.8)),
    url("../img/tile-hajozas.png");
}
.t-busz {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.15), rgba(7, 11, 10, 0.82)),
    url("../img/tile-egyeb.png");
}
.t-hire {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.15), rgba(7, 11, 10, 0.82)),
    url("../img/busz-volvo.jpg");
  background-position: center 55%;
}

.shop-tabs { display: flex; gap: 22px; margin: 0 0 28px; }
.shop-tabs a {
  color: rgba(244, 239, 230, 0.55);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}
.shop-tabs a.is-on, .shop-tabs a:hover { color: var(--ink); }

.event-list { display: grid; gap: 0; }
.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.event-card {
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ink);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}
.event-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3vw, 36px);
}
.event-card p { margin: 0; color: rgba(244, 239, 230, 0.78); max-width: 36ch; line-height: 1.5; }
.event-when {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.e-unnep { background-image: linear-gradient(180deg, rgba(7,11,10,.12), rgba(7,11,10,.86)), url("../img/tile-programok.png"); }
.e-feny { background-image: linear-gradient(180deg, rgba(7,11,10,.12), rgba(7,11,10,.86)), url("../img/budapest-panorama.png"); }
.e-emlek { background-image: linear-gradient(180deg, rgba(7,11,10,.15), rgba(7,11,10,.86)), url("../img/tile-hajozas.png"); }
.e-advent { background-image: linear-gradient(180deg, rgba(7,11,10,.12), rgba(7,11,10,.86)), url("../img/tile-advent.png"); }
.e-szilveszter { background-image: linear-gradient(180deg, rgba(7,11,10,.12), rgba(7,11,10,.86)), url("../img/tile-programok.png"); }
.e-tavasz { background-image: linear-gradient(180deg, rgba(7,11,10,.15), rgba(7,11,10,.86)), url("../img/tile-kikoto.png"); }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.strip-3 { grid-template-columns: repeat(3, 1fr); }
.strip a {
  min-height: 220px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  background: #232b25;
  border: 1px solid rgba(216, 176, 122, 0.18);
}
.strip a:hover { border-color: rgba(216, 176, 122, 0.42); background: #2a332c; }
.strip .price {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.04em;
  color: var(--gold-2);
  line-height: 1;
  margin-top: 18px;
}
.strip strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin-top: auto;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.product {
  grid-column: span 4;
  min-height: 320px;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #232b25;
  border: 1px solid rgba(216, 176, 122, 0.18);
  position: relative;
}
.product:hover { border-color: rgba(216, 176, 122, 0.42); background: #2a332c; }
.kind {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.product b {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.product p { margin: 8px 0 18px; color: rgba(244, 239, 230, 0.66); }
.product .price {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--gold-2);
  margin: 12px 0 14px;
}
.product .btn { align-self: flex-start; margin-top: auto; }

.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick {
  min-height: 340px;
  padding: 32px;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}
.pick-harbor {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.15), rgba(7, 11, 10, 0.82)),
    url("../img/tile-kikoto.png");
}
.pick-hire {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.18), rgba(7, 11, 10, 0.84)),
    url("../img/tile-berles.png");
}
.pick b {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 56px;
  font-weight: 400;
}
.pick span { color: rgba(244, 239, 230, 0.65); margin-top: 8px; }
.pick.is-on { outline: 1px solid var(--gold); }
.p-hajo {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.12), rgba(7, 11, 10, 0.82)),
    url("../img/hajo32.jpg");
}
.p-busz {
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.18), rgba(7, 11, 10, 0.84)),
    url("../img/busz-volvo.jpg");
  background-position: center 45%;
}

.sheet {
  margin-top: 28px;
  padding: 8px 0 0;
}
.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.sheet-grid .wide { grid-column: 1 / -1; }

.field { margin: 0; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input[type="hidden"] { display: none; min-height: 0; padding: 0; border: 0; }
.date-picks {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.85fr;
  gap: 12px;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 22px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 12px) 22px, calc(100% - 6px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: #101615; color: #f4efe6; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 500 16px/1.3 Manrope, sans-serif;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.err { color: var(--danger); font-size: 13px; }
.ok {
  padding: 28px 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  line-height: 1.25;
}
.ok-note {
  display: block;
  margin-top: 12px;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.cart-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  visibility: hidden;
}
body.cart-open .cart-layer { pointer-events: auto; visibility: visible; }
.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity .25s;
}
body.cart-open .cart-backdrop { opacity: 1; }
.cart-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: #0d1210;
  padding: 28px 24px 32px;
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow: auto;
}
body.cart-open .cart-drawer { transform: none; }
.cart-drawer h2 {
  margin: 0 20px 20px 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 40px;
  font-weight: 400;
}
.cart-close {
  position: absolute;
  top: 22px; right: 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cart-line input {
  width: 52px;
  margin-left: 8px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.cart-sum {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  font-size: 16px;
}
.site-footer {
  padding: 48px 0 36px;
  color: var(--muted);
  font-size: 13px;
}
.site-foot-in { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.site-footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .mosaic, .strip, .strip-3, .pick-grid, .sheet-grid, .event-grid, .site-foot-in { grid-template-columns: 1fr; }
  .ticket-grid { grid-template-columns: 1fr; }
  .product, .product:nth-child(n) { grid-column: auto; min-height: 280px; }
  .t-jegy { grid-row: auto; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 76px;
    background: #0d1210;
    flex-direction: column;
    padding: 8px 20px 24px;
    gap: 16px;
  }
  body.nav-open .nav { display: flex; }
  .nav-sub {
    position: static;
    transform: none;
    display: flex;
    flex-direction: column;
    padding: 4px 0 0 8px;
    background: transparent;
    min-width: 0;
  }
  .site-foot-in { flex-direction: column; align-items: flex-start; }
  .site-footer a { margin: 8px 16px 0 0; }
}

@media print {
  body[data-page="ticket"] {
    background: #fff;
    color: #161616;
  }
  body[data-page="ticket"]::before,
  body[data-page="ticket"] .site-header,
  body[data-page="ticket"] .site-footer,
  body[data-page="ticket"] .staff-fab,
  body[data-page="ticket"] .page-hero {
    display: none !important;
  }
  body[data-page="ticket"] .jegy-card,
  body[data-page="ticket"] .muted {
    color: #161616;
  }
}
