:root {
  --navy: #061a34;
  --navy-2: #0f365d;
  --paper: #f5f8fc;
  --orange: #ff7a18;
  --ink: #102137;
  --muted: #627184;
  --line: #dbe3ec;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(6, 26, 52, .13);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 0; max-width: 100%; overflow-x: hidden; }
body { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { max-width: 1240px; min-height: 76px; margin: auto; padding: 0 22px; display: flex; align-items: center; gap: 22px; }
.brand { font-size: 27px; font-weight: 800; color: #fff; letter-spacing: -1px; white-space: nowrap; }
.brand span { color: var(--orange); font-size: 15px; margin-inline-start: 5px; }
.main-nav { display: flex; gap: 20px; flex: 1; min-width: 0; }
.main-nav a { color: #fff; font-weight: 600; padding: 8px 0; white-space: nowrap; }
.main-nav a:hover { color: var(--orange); }
.header-actions { display: flex; gap: 8px; }
.header-popover-toggle, .mobile-menu-toggle { border: 1px solid rgba(255,255,255,.3); color: #fff; background: transparent; border-radius: 9px; min-width: 42px; height: 36px; }
.header-popover-toggle.country { background: #fff; color: var(--navy); }
.header-popover-toggle.settings { font-size: 18px; }
.mobile-menu-toggle { display: none; font-size: 24px; }
.header-popover { display: none; position: fixed; z-index: 300; min-width: 188px; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; }
.header-popover.open { display: flex; flex-direction: column; gap: 7px; }
.header-popover button { border: 0; background: transparent; text-align: start; padding: 9px; border-radius: 7px; color: var(--ink); }
.header-popover button:hover { background: #eef3f7; }
.settings-popover label { font-size: 14px; color: var(--ink); padding: 5px; display: flex; gap: 8px; align-items: center; }
.settings-popover strong { padding: 5px; }

.hero { background: linear-gradient(120deg, var(--navy), #11406d); color: #fff; padding: 58px 22px; }
.hero-inner, .content { max-width: 1240px; margin: auto; }
.hero h1 { font-size: clamp(30px, 5vw, 56px); line-height: 1.1; max-width: 760px; margin: 0 0 16px; }
.hero p { max-width: 630px; color: #d5e7f5; }
.eyebrow { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: #9bd5ff; }
.eyebrow.dark { color: #e86410; }
.hero-actions, .form-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border-radius: 10px; padding: 0 16px; background: var(--orange); color: #fff; font-weight: 700; border: 0; }
.button:active { transform: scale(.98); }
.button.secondary { background: transparent; border: 1px solid currentColor; }
.hero-home { display: grid; grid-template-columns: minmax(0,1fr) minmax(350px,520px); gap: 36px; align-items: center; }

.event-slider { position: relative; width: min(100%,540px); margin: 0 auto; min-height: 320px; }
.event-slider-track { position: relative; min-height: 320px; }
.event-slide { display: none; position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden; background: #173a5d; color: #fff; }
.event-slide.active { display: block; animation: slideIn .35s ease-out; }
.event-slide img { width: 100%; height: 320px; object-fit: cover; }
.event-slide::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.event-slide span { position: absolute; z-index: 1; bottom: 0; inset-inline: 0; padding: 20px; display: grid; gap: 4px; }
.event-slide strong { font-size: 18px; }
.event-slide small { color: #e8eef4; }
.event-slide-empty { display: grid; place-items: center; height: 320px; }
.slider-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--navy); font-size: 28px; }
.slider-arrow.prev { inset-inline-start: 12px; }.slider-arrow.next { inset-inline-end: 12px; }
.slider-dots { position: absolute; z-index: 2; bottom: 14px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #fff8; }
.slider-dots button.active { width: 22px; border-radius: 9px; background: #fff; }
@keyframes slideIn { from { opacity: .2; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

.content { padding: 34px 22px 64px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar h2 { margin: 0; font-size: 26px; }
.category-links { display: flex; gap: 8px; flex-wrap: wrap; }
.category-links a, .category-chip { background: #fff; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px,1fr)); gap: 20px; }
.event-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(6,26,52,.05); transition: transform .2s ease, box-shadow .2s ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-image { display: block; aspect-ratio: 16/10; background: #dfe8f0; overflow: hidden; }
.event-image img { width: 100%; height: 100%; object-fit: cover; }.event-image span { height: 100%; display: grid; place-items: center; color: var(--muted); }
.event-card-body { padding: 15px; }.event-card h3 { font-size: 18px; line-height: 1.35; margin: 10px 0; }.event-meta { margin: 4px 0; font-size: 14px; color: var(--muted); }
.producer-inline { display: flex; align-items: center; gap: 8px; color: #4a5d71; font-size: 13px; font-weight: 700; }.producer-inline img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; border: 1px solid var(--line); }
.empty-state, .not-found { padding: 42px; text-align: center; border: 1px dashed #aac0d1; background: #fff; border-radius: var(--radius); color: var(--muted); }

.detail-hero { background: var(--navy); color: #fff; }.detail-wrap { max-width: 1120px; margin: auto; padding: 30px 22px 64px; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(290px,.8fr); gap: 30px; }.detail-main,.ticket-panel { min-width: 0; }.detail-main h1 { font-size: clamp(30px,4vw,48px); line-height: 1.15; margin: 20px 0; }.detail-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: #173a5d; }.detail-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 20px 0; }.detail-fact { padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }.detail-description { background: #fff; border-radius: var(--radius); padding: 22px; color: var(--ink); white-space: pre-wrap; }.ticket-panel { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); align-self: start; color: var(--ink); }.ticket-row { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }.ticket-row:last-child { border: 0; }.producer-banner { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 12px; margin: 18px 0; color: var(--ink); }.producer-banner img { width: 55px; height: 55px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; }

.site-footer { background: #041225; color: #d6e2ee; display: flex; justify-content: space-between; gap: 24px; padding: 34px max(22px,calc((100vw - 1196px)/2)); flex-wrap: wrap; }.site-footer a { display: block; margin: 5px 0; color: #fff; }

.admin-shell { min-height: 100vh; background: #f3f6fa; display: grid; grid-template-columns: 248px minmax(0,1fr); }.admin-side { background: var(--navy); color: #fff; padding: 24px 17px; }.admin-side nav { display: grid; gap: 7px; margin-top: 28px; }.admin-side a { padding: 10px; border-radius: 9px; }.admin-side a:hover,.admin-side a.active { background: #123b61; }.admin-main { min-width: 0; padding: 28px; }.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 24px; flex-wrap: wrap; }.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 20px; margin-bottom: 20px; }.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.stat { background: #fff; border: 1px solid var(--line); padding: 20px; border-radius: 14px; }.stat strong { display: block; font-size: 32px; color: var(--navy); }.table-wrap { overflow: auto; }.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }.data-table th,.data-table td { padding: 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }.data-table th { color: var(--muted); font-size: 13px; }.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.form-field { display: grid; gap: 6px; }.form-field.full { grid-column: 1/-1; }.form-field label { font-size: 14px; font-weight: 700; }.form-field input,.form-field textarea,.form-field select { width: 100%; border: 1px solid #bdcad6; border-radius: 9px; padding: 10px; background: #fff; }.form-field textarea { min-height: 110px; resize: vertical; }.danger { background: #ca3340; }.warning { padding: 12px; border-radius: 10px; background: #fff4d7; border: 1px solid #f6d17b; }.flash { padding: 11px 13px; border-radius: 9px; margin-bottom: 16px; }.flash.success { background: #e5f7eb; color: #176634; }.flash.error { background: #ffe7e9; color: #9e1c2b; }.ticket-admin-list { display: grid; gap: 14px; }.ticket-edit-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg,var(--navy),#154673); }.login-card { width: min(430px,100%); padding: 28px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }

.flat-contrast { filter: contrast(1.12); }.flat-reduced-motion * { animation: none !important; transition: none !important; }[dir=rtl] { text-align: right; }[dir=rtl] .main-nav,[dir=rtl] .header-actions { flex-direction: row-reverse; }
@media (max-width: 900px) { .hero-home { grid-template-columns: 1fr; }.event-slider { width: 100%; } }
@media (max-width: 760px) { .header-inner { min-height: 68px; padding: 0 15px; gap: 10px; }.brand { font-size: 23px; }.brand span { display: none; }.mobile-menu-toggle { display: block; order: 3; }.main-nav { display: none; position: absolute; top: 68px; inset-inline: 0; background: var(--navy); padding: 15px; box-shadow: 0 12px 25px rgba(0,0,0,.25); z-index: 110; }.main-nav.open { display: flex; flex-direction: column; gap: 6px; }.main-nav a { padding: 11px; }.header-actions { margin-inline-start: auto; }.header-popover { position: fixed !important; inset-inline-end: 12px !important; inset-inline-start: auto !important; top: 72px !important; max-width: calc(100vw - 24px); }.hero,.hero-home { padding: 34px 15px; }.event-slider,.event-slider-track,.event-slide { min-height: 240px; }.event-slide img,.event-slide-empty { height: 240px; }.event-slide span { padding: 15px; }.slider-arrow { width: 36px; height: 36px; }.content { padding: 25px 15px 48px; }.category-links { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }.category-links a { white-space: nowrap; }.events-grid { grid-template-columns: 1fr; gap: 15px; }.detail-wrap { grid-template-columns: 1fr; padding: 20px 15px 42px; }.detail-facts { grid-template-columns: 1fr; }.detail-main h1 { font-size: 31px; }.site-footer { padding: 28px 18px; }.admin-shell { display: block; }.admin-side { padding: 15px; }.admin-side nav { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 13px; }.admin-main { padding: 18px 13px; }.stats,.form-grid { grid-template-columns: 1fr; }.form-field.full { grid-column: auto; }.admin-card { padding: 14px; } }
