:root {
  --ink: #172026;
  --muted: #63717a;
  --line: #d9e0e5;
  --paper: #f7f8f7;
  --brand: #1d6f5f;
  --brand-dark: #145447;
  --accent: #c63f2f;
  --gold: #d6a938;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.45; }
body.home-page { background: #071014; }
.page-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #071014; }
.page-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 12, 15, .84), rgba(5, 12, 15, .48) 52%, rgba(5, 12, 15, .25)); }
a { color: inherit; }
.site-header { display: flex; align-items: center; gap: 24px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.home-page .site-header { position: relative; left: 0; right: 0; top: 0; background: rgba(4, 11, 14, .62); border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; z-index: 3; }
.home-page nav a { color: rgba(255,255,255,.9); }
.site-header.compact { position: static; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; min-width: 280px; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
nav a { text-decoration: none; color: #34424a; font-weight: 600; }
.beta { color: #fff; background: var(--accent); padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.hero { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr); gap: 22px; align-items: center; padding: 28px; max-width: 1220px; margin: 0 auto; min-height: calc(100vh - 180px); }
.video-hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; max-width: none; padding: 118px 28px 54px; overflow: hidden; color: #fff; }
.video-hero::after { content: none; }
.video-hero .hero-video { display: none; }
.home-page main, .home-page .site-footer { position: relative; z-index: 2; }
.video-hero .hero-copy { position: relative; z-index: 1; max-width: 760px; margin-left: max(0px, calc((100vw - 1220px) / 2)); padding-bottom: 24px; }
.video-hero .hero-copy p { color: rgba(255,255,255,.92); }
.video-hero .eyebrow { color: #f0c85a; }
.hero-copy h1, .page-title h1, .info-layout h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.02; margin: 8px 0 14px; letter-spacing: 0; }
.hero-copy p { font-size: 19px; color: #394950; max-width: 620px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; color: var(--brand); font-weight: 800; font-size: 13px; margin: 0 0 6px; }
.hero-video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #111; box-shadow: 0 18px 50px rgba(20, 35, 45, .18); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 15px; border: 1px solid var(--line); background: #fff; border-radius: 6px; text-decoration: none; font-weight: 800; cursor: pointer; color: var(--ink); }
.button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.button.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.button.small { min-height: 34px; padding: 7px 10px; font-size: 14px; }
.wide-button { width: 100%; }
.quick-grid, .metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1220px; margin: 0 auto 34px; padding: 0 28px; }
.quick-grid article, .panel, .metric-grid article, .table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.home-page .quick-grid article { background: rgba(255,255,255,.9); backdrop-filter: blur(8px); }
.contact-page { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h2 { margin: 0 0 12px; font-size: 22px; }
.page { max-width: 1220px; margin: 0 auto; padding: 24px 28px 42px; }
.legal-page { max-width: 980px; }
.legal-page h1 { margin-top: 0; font-size: 38px; }
.legal-page h2 { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.legal-page p { color: #334149; }
.page-title { margin-bottom: 18px; }
.tight { max-width: 780px; }
.checkout-layout { display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(320px, .8fr); gap: 18px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
label { display: grid; gap: 5px; font-weight: 700; color: #2c3940; }
input { width: 100%; min-height: 42px; border: 1px solid #c8d1d7; border-radius: 6px; padding: 9px 10px; font: inherit; background: #fff; }
.wide { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 9px; margin: 14px 0; }
.check input { width: 18px; min-height: 18px; }
.company-box { border-left: 4px solid var(--gold); padding-left: 12px; margin-bottom: 14px; }
.hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.checkout-total { display: grid; grid-template-columns: 1fr auto; gap: 8px; border-top: 1px solid var(--line); margin: 18px 0; padding-top: 14px; font-size: 18px; }
.result-panel .approved { color: var(--brand-dark); font-weight: 900; font-size: 24px; margin: 0 0 8px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.admin-shell { max-width: 1060px; margin: 0 auto; }
.login-panel { max-width: 420px; margin: 30px auto; }
.dash-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.dash-head h1 { margin: 0; font-size: 38px; }
.metric-grid { grid-template-columns: repeat(4, 1fr); padding: 0; margin-bottom: 16px; }
.metric-grid article span { color: var(--muted); display: block; margin-bottom: 6px; }
.metric-grid article strong { font-size: 28px; }
.ok { color: var(--brand); }
.table-wrap { margin-bottom: 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: #f0f4f2; }
.timeline { margin: 0; padding-left: 20px; }
.timeline li { margin: 10px 0; }
.info-layout { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: center; }
.photo, .gallery img { width: 100%; border-radius: 8px; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.gallery img { aspect-ratio: 4 / 3; }
.timeline-panel { margin-top: 18px; }
.history-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.history-line article { position: relative; border-left: 4px solid var(--brand); background: #f7faf8; padding: 14px; border-radius: 6px; transform: translateY(8px); opacity: .92; animation: riseIn .7s ease forwards; }
.history-line article:nth-child(2n) { border-left-color: var(--gold); }
.history-line article:nth-child(3n) { border-left-color: var(--accent); }
.history-line h3 { margin: 0 0 6px; font-size: 18px; }
.history-line time { display: block; font-size: 24px; font-weight: 900; color: var(--brand-dark); margin-bottom: 6px; }
.history-line p { margin: 0; color: #394950; }
@keyframes riseIn { to { transform: translateY(0); opacity: 1; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 2px 0 0; font-weight: 900; font-size: 22px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding: 22px 28px; background: #fff; }
.site-footer p { margin: 4px 0; color: var(--muted); }
.footer-logos { display: flex; gap: 18px; align-items: center; }
.footer-logos img { max-width: 150px; max-height: 56px; object-fit: contain; }
.footer-logos img[src$=".svg"] { max-width: 58px; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.24); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 4px 0; max-width: 780px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 0; flex-shrink: 0; }
.print-area { background: #fff; color: #000; padding: 20px; }
.invoice { border: 1px solid #aaa; padding: 18px; margin-bottom: 18px; }
.ticket-sheet { display: grid; gap: 10px; }
.ticket-print { position: relative; width: 100%; max-width: 860px; aspect-ratio: 2482 / 710; background: url("assets/ticket-template.jpg") center / contain no-repeat; break-inside: avoid; margin: 0 auto; }
.ticket-qr { position: absolute; left: 5.5%; top: 22%; width: 15%; aspect-ratio: 1; background: #fff; border: 4px solid #fff; box-shadow: 0 0 0 1px #111; }
.ticket-code { position: absolute; left: 4.5%; top: 73%; width: 17%; text-align: center; font-weight: 900; font-size: 13px; }
.cut-line { text-align: center; border-top: 2px dashed #777; color: #555; font-weight: 800; padding-top: 4px; }
.ticket-instructions { text-align: center; font-weight: 800; margin: 0 0 8px; }
@media (max-width: 880px) {
  .site-header, .site-footer, .dash-head { align-items: flex-start; flex-direction: column; }
  .hero, .checkout-layout, .info-layout { grid-template-columns: 1fr; }
  .video-hero { min-height: 72vh; }
  .quick-grid, .metric-grid, .gallery, .facts, .history-line, .contact-page { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .brand { min-width: 0; }
}
@media print {
  body > :not(.page), .page > :not(.print-area), .site-header, .site-footer, .cookie-bar { display: none !important; }
  .page { padding: 0; max-width: none; }
  .print-area { display: block !important; }
  body.print-invoice #ticketsPrint { display: none !important; }
  body.print-tickets #invoicePrint { display: none !important; }
  .ticket-print { max-width: 100%; }
}
