/* ============================================================
   European Rotary Tennis Tournament — Zalau 2026
   Official Rotary Brand Colors + Open Sans Typography
   ============================================================ */

:root {
  --royal-blue: #14365e;
  --gold: #f7a81b;
  --azure: #0067c8;
  --charcoal: #54565a;
  --text: #39424a;
  --text-light: #5e717d;
  --dark: #0c2340;
  --white: #ffffff;
  --light: #f5f6f8;
  --border: #e2e5ea;
  --radius: 10px;
  --max-width: 1000px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a { color: var(--azure); text-decoration: none; }

/* ============================================================
   Animations & Transitions
   ============================================================ */

/* Page load fade-in removed -- was causing Lighthouse NO_FCP */

/* Page exit transition */
body.page-exit {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Scroll reveal -- only when JS is active */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero staggered entrance -- only when JS is active */
.js-ready .hero-content .hero-badge { opacity: 0; animation: fadeUp 0.6s ease 0.3s forwards; }
.js-ready .hero-content h1 { opacity: 0; animation: fadeUp 0.6s ease 0.5s forwards; }
.js-ready .hero-details { opacity: 0; animation: fadeUp 0.6s ease 0.7s forwards; }
.js-ready .hero-actions { opacity: 0; animation: fadeUp 0.6s ease 0.9s forwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nav scroll shadow */
.nav.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  flex: 1;
  max-width: var(--max-width);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav > .nav-links {
  padding-right: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-wheel {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-title {
  font-family: "Open Sans Condensed", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--royal-blue);
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--royal-blue); }

.nav-cta {
  background: var(--gold);
  color: var(--dark) !important;
  padding: 6px 16px;
  border-radius: 20px;
  transition: opacity 0.2s;
  font-size: 0.75rem !important;
}

.nav-cta:hover { opacity: 0.9; }

/* Language toggle */
.lang-toggle {
  background: none;
  border: 1.5px solid var(--royal-blue);
  color: var(--royal-blue);
  font-family: "Open Sans Condensed", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
  line-height: 1;
}

.lang-toggle:hover {
  background: var(--royal-blue);
  color: var(--white);
}

/* Hamburger menu */
.menu-toggle { display: none; }
.menu-icon { display: none; cursor: pointer; padding: 8px; z-index: 101; }
.menu-icon span,
.menu-icon span::before,
.menu-icon span::after {
  display: block;
  background: var(--text);
  height: 2px;
  width: 22px;
  position: relative;
  transition: all 0.3s;
}
.menu-icon span::before,
.menu-icon span::after {
  content: "";
  position: absolute;
}
.menu-icon span::before { top: -7px; }
.menu-icon span::after { top: 7px; }
.menu-toggle:checked ~ .menu-icon span { background: transparent; }
.menu-toggle:checked ~ .menu-icon span::before { transform: rotate(45deg); top: 0; }
.menu-toggle:checked ~ .menu-icon span::after { transform: rotate(-45deg); top: 0; }
.nav.menu-open .nav-links { /* handled in mobile breakpoint */ }

.nav-links .active { color: var(--royal-blue) !important; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 24px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--dark) 0%, #14365e 60%, var(--royal-blue) 100%);
  padding-top: 64px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse at 30% 80%, rgba(247, 168, 27, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}

.hero-tennis {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 85%;
  opacity: 0.12;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 24px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: "Open Sans Condensed", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero-details {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.hero-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.hero-detail svg { opacity: 0.7; }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--light);
}

.section-dark {
  background: var(--dark);
}

.section-dark h2 { color: var(--white); }

.section-blue {
  position: relative;
  background: linear-gradient(160deg, var(--dark) 0%, #14365e 80%);
  overflow: hidden;
}

.section-tennis {
  position: absolute;
  left: -2%;
  top: 50%;
  transform: translateY(-50%);
  height: 80%;
  opacity: 0.1;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}

.section-blue .container {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 40px;
}

.section-header-light h2 { color: var(--white); }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.label-gold { color: var(--gold); }

h2 {
  font-family: "Open Sans Condensed", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--royal-blue);
  line-height: 1.2;
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-sign {
  margin-top: 24px;
  font-style: italic;
  color: var(--text-light);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.highlight-number {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--royal-blue);
  width: 72px;
  flex-shrink: 0;
  text-align: center;
}

.highlight-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  margin: -12px 0;
  filter: brightness(0) saturate(100%) invert(15%) sepia(40%) saturate(1600%) hue-rotate(185deg) brightness(70%);
}

.highlight-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   Schedule / Timeline
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.2s;
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.timeline-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 8px 0;
}

.timeline-day {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
}

.timeline-num {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
}

.timeline-month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
}

.timeline-content h3 {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* ============================================================
   Notice (Pricing)
   ============================================================ */
.notice {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--light);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 640px;
}

.notice-icon {
  flex-shrink: 0;
  color: var(--gold);
}

.notice p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.notice p:last-child { margin-bottom: 0; }

/* ============================================================
   Location
   ============================================================ */
/* Map */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 36px;
}

.map {
  width: 100%;
  height: 380px;
  background: #0c2340;
}

/* Hide Google branding */
.map .gm-style .gmnoprint,
.map .gm-style .gm-style-cc { display: none !important; }
.map .gm-style > div > div > div > a { display: none !important; }
.map .gm-style a[title*="Google Maps"],
.map .gm-style a[aria-label*="Google Maps"],
.map .gm-style div[style*="z-index: 1000000"] { display: none !important; }

/* InfoWindow */
.gm-style .gm-style-iw-c {
  background: var(--dark) !important;
  border: 1px solid rgba(23, 69, 143, 0.4) !important;
  border-radius: 10px !important;
  padding: 0 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}
.gm-style .gm-style-iw-d { overflow: visible !important; max-height: none !important; }
.gm-style .gm-style-iw-tc::after { background: var(--dark) !important; }
.gm-style .gm-ui-hover-effect > span { background-color: rgba(255,255,255,0.5) !important; }

.map-info {
  padding: 14px 18px;
  font-family: "Open Sans", sans-serif;
}
.map-info h4 {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.map-info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.map-info-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.map-info-link:hover { text-decoration: underline; }

/* Powered by badge */
.powered-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  opacity: 0.85;
}
.powered-badge span {
  font-family: "Open Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.powered-badge img {
  height: 18px;
  width: auto;
}

/* Fancy marker */
.fancy-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}
.marker-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e09510);
  border: 3px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(247, 168, 27, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  position: relative;
  z-index: 2;
}
.fancy-marker:hover .marker-dot { transform: scale(1.15); }
.marker-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(247, 168, 27, 0.2);
  z-index: 1;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.location-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 660px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(23, 69, 143, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--royal-blue);
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   Registration Form
   ============================================================ */
.contact-text {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 580px;
  line-height: 1.8;
}

.form-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 580px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.form {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  gap: 14px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.form input:focus,
.form textarea:focus {
  border-color: var(--royal-blue);
}

.form textarea { resize: vertical; }

.form .btn { align-self: flex-start; border-radius: 24px; }

/* ============================================================
   Organizers
   ============================================================ */
.organizers {
  display: flex;
  gap: 48px;
  justify-content: center;
}

.organizer { text-align: center; }

.organizer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.organizer h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 28px 0;
  background: var(--dark);
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.footer-note {
  font-size: 0.7rem !important;
  font-style: italic;
  color: rgba(255, 255, 255, 0.3) !important;
}
.footer-cookie-link {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}
.footer-cookie-link:hover { color: var(--gold); }

/* ============================================================
   Responsive
   ============================================================ */
/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Nav: compact top + show only CTA */
  .nav-inner { height: 56px; }
  .nav-title { font-size: 0.85rem; }
  .menu-icon { display: block; margin-left: auto; }
  .nav-inner {
    position: relative;
    z-index: 2;
    background: var(--white);
  }
  .nav-links {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 72px 24px 24px;
    gap: 20px;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1;
  }
  .nav.menu-open .nav-links {
    transform: translateY(0);
  }
  .nav-links a { font-size: 1rem; }
  .nav-cta { text-align: center; }
  .lang-toggle { align-self: center; font-size: 0.85rem; padding: 8px 20px; }

  /* Hero: fit content, not full viewport */
  .hero {
    min-height: auto;
    justify-content: center;
    padding: 100px 20px 60px;
  }
  .hero-tennis { height: 70%; opacity: 0.08; }
  .hero h1 { font-size: clamp(1.75rem, 6vw, 3rem); text-wrap: balance; }
  .hero-badge { font-size: 0.7rem; padding: 6px 16px; }
  .hero-details { flex-direction: column; gap: 10px; }
  .hero-detail { font-size: 0.95rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 12px;
  }

  /* Sections: tighter padding */
  .section { padding: 56px 0; }
  h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

  /* About: single column */
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-text p { font-size: 1rem; }

  /* Schedule timeline: vertical cards */
  .timeline-item {
    flex-direction: column;
    gap: 8px;
    padding: 20px 16px;
    border-radius: 12px;
  }
  .timeline-date {
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
  }
  .timeline-num { font-size: 1.8rem; }
  .timeline-content h3 { font-size: 1rem; }
  .timeline-content p { font-size: 0.85rem; }

  /* Location cards: single column */
  .info-cards { grid-template-columns: 1fr; gap: 12px; }
  .info-card { padding: 20px 16px; }

  /* Map: shorter, add touch-action */
  .map { height: 220px; touch-action: pan-y; }
  .map-wrapper { border-radius: 12px; }
  .location-intro { font-size: 1rem; }

  /* Contact */
  .contact-text { font-size: 1rem; }

  /* Form: full-width, iOS-safe font size */
  .form-row { flex-direction: column; }
  .form input, .form textarea { font-size: 16px; min-height: 48px; border-radius: 12px; }
  .form .btn { width: 100%; text-align: center; border-radius: 12px; min-height: 48px; }

  /* Organizers: center on mobile */
  #organizers .section-header { text-align: center; }
  .organizers {
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  .organizers::-webkit-scrollbar { display: none; }
  .organizer {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  /* Touch targets */
  .btn { min-height: 44px; touch-action: manipulation; }
  a { -webkit-tap-highlight-color: transparent; }
  .btn:active { transform: scale(0.97); transition: transform 0.1s ease; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   Cookie Banner
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 200;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: min(680px, calc(100vw - 32px));
  width: max-content;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  pointer-events: none;
}

.cookie-banner--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner--hidden {
  transform: translateX(-50%) translateY(120px);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__msg {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: "Open Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.cookie-banner__btn:hover { opacity: 0.85; }

.cookie-banner__btn--accept {
  background: var(--gold);
  color: var(--dark);
}

.cookie-banner__btn--decline {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-banner__link {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  white-space: nowrap;
  transition: color 0.2s;
}

.cookie-banner__link:hover { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    bottom: 12px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    transform: translateX(0) translateY(200px);
  }
  .cookie-banner--visible { transform: translateX(0) translateY(0); }
  .cookie-banner--hidden  { transform: translateX(0) translateY(200px); }
  .cookie-banner__msg { white-space: normal; font-size: 0.85rem; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; text-align: center; }
}

/* ============================================================
   Cookie Policy Page
   ============================================================ */

.cookies-block {
  margin-bottom: 52px;
}

.cookies-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--royal-blue);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.cookies-block p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}

.cookies-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.cookies-list li {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  padding: 6px 0 6px 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.cookies-list li:last-child { border-bottom: none; }

.cookies-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.cookies-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}

.cookies-table-row {
  display: grid;
  grid-template-columns: 1.2fr 3fr 1fr;
  gap: 0;
}

.cookies-table-row + .cookies-table-row {
  border-top: 1px solid var(--border);
}

.cookies-table-row span {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.4;
}

.cookies-table-row span + span {
  border-left: 1px solid var(--border);
}

.cookies-table-header {
  background: var(--light);
}

.cookies-table-header span {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

code {
  font-family: "Courier New", monospace;
  font-size: 0.82em;
  background: rgba(20, 54, 94, 0.07);
  color: var(--royal-blue);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Events table (HTML table) */
.cookies-table-wrap { margin-top: 16px; overflow-x: auto; }
.cookies-table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.cookies-table-wrap th,
.cookies-table-wrap td {
  padding: 12px 18px;
  font-size: 0.85rem;
  text-align: left;
  line-height: 1.4;
}
.cookies-table-wrap thead th {
  background: var(--dark);
  color: var(--gold);
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
}
.cookies-table-wrap tbody tr { background: var(--white); }
.cookies-table-wrap tbody tr:nth-child(even) { background: var(--light); }
.cookies-table-wrap tbody td { color: var(--text); border-top: 1px solid var(--border); }
.cookies-table-wrap tbody td:first-child { font-weight: 600; color: var(--royal-blue); }

/* Toggle switch row */
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0 14px;
}

.cookie-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cookie-toggle-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.cookie-toggle-desc {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Toggle switch visual */
.cookie-toggle-switch {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.cookie-toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-track {
  display: block;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 0, 0, 0.1);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.cookie-toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.cookie-toggle-switch input:checked + .cookie-toggle-track {
  background: var(--royal-blue);
  border-color: var(--royal-blue);
}

.cookie-toggle-switch input:checked + .cookie-toggle-track::after {
  transform: translateX(22px);
}

.cookie-toggle-switch input:focus-visible + .cookie-toggle-track {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.cookies-manage-note {
  font-size: 0.8rem !important;
  color: var(--text-light) !important;
  font-style: italic;
}

@media (max-width: 768px) {
  .cookie-toggle-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookies-table-row { grid-template-columns: 1fr 2fr 0.7fr; }
  .cookies-table-row span { font-size: 0.75rem; padding: 8px 10px; }
}
