/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #111111;
  --bg2: #1a1a1a;
  --bg3: #222222;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #e5e5e5;
  --text-muted: #9ca3af;
  --border: #2a2a2a;
  --sidebar-w: 400px;
  --page-pad: clamp(2rem, 8vw, 9.5rem);
  --nav-h: clamp(50px, 5.5vh, 70px);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: clamp(200px, 30vw, var(--sidebar-w));
  min-height: 100vh;
  background: rgba(13,13,13,0.92);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--nav-h); left: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(8px);
}

.sidebar.open { transform: translateX(0); }
.sidebar-logo { display: none; }
.sidebar.collapsed { transform: translateX(-100%); }
.content.expanded { margin-left: 0; }

.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--accent); letter-spacing: 3px; }

.nav-links { list-style: none; }
.nav-links li { width: 100%; }

.nav-link {
  display: block;
  padding: 0.75rem 0.75rem 0.75rem var(--page-pad);
  white-space: nowrap;
  text-align: left;
  color: var(--text-muted);
  text-decoration: none;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  letter-spacing: 0.5px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  border-left-color: transparent;
  background: rgba(245,158,11,0.05);
}

/* ===== TOP NAV BAR ===== */
.nav-topbar {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 var(--page-pad);
  background: rgba(13,13,13,0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  width: 100%;
}

.sidebar-toggle {
  background: none; border: none; cursor: pointer;
  padding: 0.4rem; border-radius: 4px;
  transition: background 0.2s; flex-shrink: 0;
  display: flex; flex-direction: column;
  gap: clamp(3px,0.4vw,5px);
  align-items: center; justify-content: center;
  width: clamp(28px,3vw,40px);
  height: clamp(28px,3vw,40px);
}

.sidebar-toggle span {
  display: block;
  width: clamp(14px,1.5vw,22px);
  height: 2px; background: #e5e5e5;
  border-radius: 2px; transition: background 0.2s;
}

.sidebar-toggle:hover { background: rgba(245,158,11,0.1); }
.sidebar-toggle:hover span { background: var(--accent); }

.nav-logo {
  height: clamp(12px,1.4vw,22px); width: auto;
  filter: invert(1) sepia(1) saturate(5) hue-rotate(5deg);
  flex-shrink: 0;
}

.nav-contact { margin-left: auto; display: flex; gap: clamp(0.75rem,2vw,2rem); align-items: center; }

.nav-contact a {
  color: #ffffff; text-decoration: none;
  font-size: clamp(0.62rem,0.85vw,0.85rem);
  font-weight: 400; white-space: nowrap; transition: color 0.2s;
}

.nav-contact a:hover { color: var(--accent); }

.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99; }
.overlay.open { display: block; }

.scroll-progress {
  position: fixed; top: var(--nav-h); left: 0;
  height: 2px; width: 0%; background: var(--accent);
  z-index: 300; transition: width 0.1s linear; opacity: 0;
}

/* ===== MAIN CONTENT ===== */
.content { margin-top: var(--nav-h); flex: 1; min-width: 0; }

/* ===== SECTIONS ===== */
.section {
  padding: clamp(2.5rem,4vw,4rem) var(--page-pad);
  border-bottom: 1px solid var(--border);
}

.section-header { margin-bottom: 2.5rem; }

.section-header h2, .section-header h3 {
  font-size: clamp(1.2rem,2.5vw,1.8rem);
  font-weight: 800; letter-spacing: 2px; margin-bottom: 0.5rem;
}

.section-header p { color: var(--text-muted); font-size: clamp(0.8rem,1.1vw,0.95rem); }

/* ===== HERO ===== */
.hero-section {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  background: url('images/hero.JPG') center/cover no-repeat;
  padding: clamp(3rem,5vw,4rem) var(--page-pad) clamp(3rem,6vw,6rem);
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.2));
}

.hero-content { position: relative; z-index: 1; max-width: 650px; }

.hero-content h1 {
  font-size: clamp(1.6rem,4vw,3.2rem);
  font-weight: 900; line-height: 1.15; letter-spacing: 2px; margin-bottom: 1rem;
}

.hero-content p {
  color: rgba(255,255,255,0.85); font-size: clamp(0.85rem,1.2vw,1rem);
  margin-bottom: 2rem; line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; background: var(--accent); color: #000;
  font-weight: 700; padding: clamp(0.6rem,1vw,0.8rem) clamp(1.2rem,2vw,2rem);
  border-radius: 6px; text-decoration: none; font-size: clamp(0.8rem,1vw,0.9rem);
  letter-spacing: 0.5px; border: none; cursor: pointer; transition: background 0.2s ease;
}
.btn:hover { background: var(--accent-dark); }

/* ===== ACCENT ===== */
.accent { color: var(--accent); }
.accent-link { color: var(--accent); text-decoration: none; }
.accent-link:hover { text-decoration: underline; }

/* ===== CARDS GRID — vždy jeden riadok, scroll ===== */
.cards-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1rem;
  align-items: flex-start;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.cards-grid::-webkit-scrollbar { display: none; }

/* Pevná šírka karty — platí pre všetky screeny nad 425px */
.cards-grid > .card {
  flex: 0 0 280px;
  min-width: 280px;
  max-width: 280px;
}

.cards-grid > .info-card {
  flex: 0 0 220px;
  min-width: 220px;
  max-width: 260px;
  align-self: stretch;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(1rem,1.5vw,1.5rem);
  display: flex; flex-direction: column; gap: 0.5rem;
  position: relative;
}

.card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.card-top h3 { font-size: clamp(0.78rem,1vw,0.95rem); font-weight: 800; letter-spacing: 1px; }
.card-sub { font-size: clamp(0.72rem,0.9vw,0.8rem); color: var(--text-muted); }

.card-info {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.3rem 0.6rem;
  margin-top: 0.5rem; padding-top: 0.75rem;
  font-size: clamp(0.72rem,0.9vw,0.82rem);
  color: var(--text-muted); align-items: center;
}

.card-info span { display: contents; }
.card-info i { color: var(--accent); text-align: center; }

/* ===== DROPDOWN ===== */
.dropdown-toggle {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: clamp(0.72rem,0.9vw,0.82rem);
  color: var(--accent); padding: 0.4rem 0; user-select: none;
}

.dropdown-toggle i { transition: transform 0.3s; }
.dropdown-toggle.open i { transform: rotate(180deg); }

.dropdown-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  opacity: 0; font-size: clamp(0.75rem,0.95vw,0.85rem);
  color: var(--text-muted); line-height: 1.6;
  width: 100%; overflow-wrap: break-word; word-break: break-word;
}

.dropdown-content.open { max-height: 200px; opacity: 1; padding: 0.5rem 0; }

/* ===== BADGES ===== */
.badge {
  font-size: clamp(0.6rem,0.75vw,0.7rem); font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 20px;
  letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0;
}

.badge-medium { background: rgba(245,158,11,0.15); color: var(--accent); }
.badge-high { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-extreme { background: rgba(139,0,0,0.3); color: #ff4444; }
.badge-open { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-closed { background: rgba(107,114,128,0.15); color: #6b7280; }

/* ===== PRICE TABLE ===== */
.price-table-wrap {
  margin-top: clamp(3rem,6vw,8rem);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}

.price-table-wrap h3 {
  font-size: clamp(1.2rem,2.5vw,1.8rem);
  font-weight: 800; letter-spacing: 2px; margin-bottom: 1rem;
}

.price-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: clamp(0.78rem,1vw,0.9rem); }

.price-table th {
  text-align: left; padding: 0.75rem 1rem;
  background: var(--bg3); color: var(--text-muted);
  font-size: clamp(0.7rem,0.85vw,0.8rem); letter-spacing: 0.5px; border-bottom: none;
}

.price-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.price-table tr:hover td { background: var(--bg2); }

/* ===== INFO BOX ===== */
.info-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem; margin-top: 1.5rem;
  font-size: clamp(0.78rem,1vw,0.9rem); line-height: 1.7;
}

.info-box h4 {
  font-size: clamp(0.78rem,1vw,0.9rem); font-weight: 800;
  letter-spacing: 1px; color: var(--accent); margin-bottom: 0.5rem;
}

/* ===== WARNING BOX ===== */
.warning-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px; padding: 1.5rem;
  font-size: clamp(0.78rem,1vw,0.9rem); line-height: 1.7;
}

.warning-box i { color: #ef4444; font-size: 1.3rem; margin-top: 0.2rem; flex-shrink: 0; }
.warning-box strong { display: block; margin-bottom: 0.4rem; color: #ef4444; }

/* ===== FORM ===== */
.form-wrap { margin-top: clamp(3rem,6vw,8rem); }

.form-wrap h3 {
  font-size: clamp(1.2rem,2.5vw,1.8rem);
  font-weight: 800; letter-spacing: 2px; margin-bottom: 0.3rem;
}

.form-sub { color: var(--text-muted); font-size: clamp(0.75rem,0.95vw,0.85rem); margin-bottom: 1.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 700px; width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.75rem 1rem; color: var(--text);
  font-size: clamp(0.78rem,1vw,0.9rem); width: 100%; transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }

.contact-form textarea { min-height: 80px; resize: vertical; }

.form-contact-layout { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start; }

/* ===== INFO CARDS ===== */
.info-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: clamp(1rem,1.5vw,1.5rem);
  display: flex; flex-direction: column; gap: 0.5rem;
}

.info-card i { font-size: clamp(1rem,1.5vw,1.3rem); }
.info-card h4 { font-size: clamp(0.75rem,0.95vw,0.85rem); font-weight: 800; letter-spacing: 1px; }
.info-card p { font-size: clamp(0.75rem,0.95vw,0.85rem); color: var(--text-muted); line-height: 1.6; }

/* ===== ROUTES ===== */
.route-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }

.route-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: clamp(1rem,1.5vw,1.5rem);
  display: flex; flex-direction: column; gap: 0.5rem;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}

.route-card:hover { border-color: var(--accent); background: var(--bg3); }
.route-card h4 { font-size: clamp(0.75rem,0.95vw,0.85rem); font-weight: 800; letter-spacing: 1px; color: var(--text); }
.route-card p { font-size: clamp(0.75rem,0.95vw,0.85rem); color: var(--text-muted); line-height: 1.6; }
.route-card.active-route { border-color: var(--accent); }

#route-map {
  margin-top: 1.5rem; height: 300px; border-radius: 10px;
  overflow: hidden; position: relative; z-index: 0; isolation: isolate;
}

.route-map-wrap {
  margin-top: 1.5rem; width: 100%; border-radius: 10px;
  overflow: hidden; position: relative; z-index: 0; isolation: isolate;
}

/* ===== ABOUT ===== */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

.about-text h3 { font-size: clamp(0.85rem,1.1vw,1rem); font-weight: 800; letter-spacing: 1px; margin-bottom: 1rem; }
.about-text p { font-size: clamp(0.8rem,1vw,0.9rem); color: var(--text-muted); line-height: 1.7; margin-bottom: 0.75rem; }

.about-img img {
  width: 100%; border-radius: 10px;
  object-fit: cover; object-position: center 20%;
  max-height: 350px; display: block;
}

/* ===== SUPPORT ===== */
.support-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: clamp(1.25rem,2vw,2rem);
}

.support-box h3 { font-size: clamp(0.85rem,1.1vw,1rem); font-weight: 800; letter-spacing: 1px; margin-bottom: 0.75rem; }
.support-box p { font-size: clamp(0.8rem,1vw,0.9rem); color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }

/* ===== RULES DROPDOWN ===== */
.rules-dropdown-content {
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: clamp(0.78rem,1vw,0.9rem); color: var(--text-muted);
  line-height: 1.8; max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0; padding-left: 1.5rem;
}

.rules-dropdown-content.open { max-height: 1200px; opacity: 1; }

/* ===== GALLERY ===== */
.gallery-wrap {
  overflow-x: auto; overflow-y: hidden;
  border-radius: 10px; cursor: grab; scrollbar-width: none;
}

.gallery-wrap::-webkit-scrollbar { display: none; }
.gallery-wrap:active { cursor: grabbing; }

.gallery-track { display: flex; gap: 1rem; width: max-content; }

.gallery-track img {
  flex-shrink: 0; width: auto;
  height: clamp(12rem,20vw,20rem);
  object-fit: cover; border-radius: 10px;
  pointer-events: none; user-select: none;
}

.gallery-track img[alt] { font-size: 0; color: transparent; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 1rem; }

.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.25rem 1.5rem;
  text-decoration: none; color: var(--text); transition: border-color 0.2s;
}

.contact-card:hover { border-color: var(--accent); }
.contact-card i { font-size: 1.4rem; }

/* ===== PARTNERS ===== */
.partners { margin-top: 2.5rem; }
.partners h3 { font-size: clamp(0.85rem,1.1vw,1rem); font-weight: 800; letter-spacing: 2px; margin-bottom: 1rem; }

.partner-list { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.partner-link {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.5rem 1rem;
  font-size: clamp(0.75rem,0.95vw,0.85rem); color: var(--text);
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
}

.partner-link:hover { border-color: var(--accent); color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
  padding: 2rem var(--page-pad); text-align: center;
  color: var(--text-muted); font-size: clamp(0.72rem,0.9vw,0.8rem);
  border-top: 1px solid var(--border);
}

.contact-sidebar { display: none; }
.sidebar-contact-item { display: none; }
.hamburger { display: none; }

/* ===================================
   RESPONSIVE BREAKPOINTS
=================================== */

/* LARGE MONITOR 1600px+ */
@media (min-width: 1600px) {
  :root { --page-pad: clamp(9.5rem,10vw,14rem); }
}

/* ULTRA WIDE 2000px+ */
@media (min-width: 2000px) {
  html { font-size: 112%; }
  :root { --page-pad: clamp(12rem,12vw,18rem); }
  .cards-grid > .card { flex: 0 0 310px; min-width: 310px; max-width: 310px; }
  .cards-grid > .info-card { flex: 0 0 250px; min-width: 250px; max-width: 280px; }
  .nav-link { padding-left: 2rem; }
}

/* TABLET 769px – 1200px */
@media (max-width: 1200px) and (min-width: 769px) {
  :root { --page-pad: clamp(2rem,5vw,6rem); }
  .route-grid { grid-template-columns: repeat(3, 1fr); }
  .route-grid { grid-template-columns: repeat(3, 1fr); }
  #route-map { display: block; height: 260px; }
  .about-img { order: -1; width: 100%; }
  .about-img img { max-height: 300px; width: 100%; object-fit: cover; object-position: center 20%; }
  .form-contact-layout { grid-template-columns: 1fr; }
  /* Na tablete karty trochu užšie */
  .cards-grid > .card { flex: 0 0 240px; min-width: 240px; max-width: 240px; }
  .cards-grid > .info-card { flex: 0 0 200px; min-width: 200px; max-width: 240px; }
}

/* TABLET malý 769px – 1023px */
@media (max-width: 1023px) and (min-width: 769px) {
  .route-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  #route-map { display: none; height: 260px; margin: 0; border-radius: 0 0 10px 10px; }
}

/* MOBILE up to 768px */
@media (max-width: 768px) {
  :root {
    --page-pad: clamp(1.25rem,5vw,2rem);
    --nav-h: 50px;
  }

  .nav-link { padding-left: clamp(1rem,5vw,2rem); white-space: normal; font-size: clamp(0.72rem,3.5vw,0.85rem); }
  .content { margin-top: var(--nav-h); }
  .scroll-progress { top: var(--nav-h); }
  .sidebar { top: var(--nav-h); }
  .hero-section { min-height: 80vh; }
  .section { padding: 2.5rem var(--page-pad); }
  .section-header { margin-bottom: 1.5rem; }

  /* Karty na mobile — užšie, scrollovateľné */
  .cards-grid > .card { flex: 0 0 260px; min-width: 260px; max-width: 260px; }
  .cards-grid > .info-card { flex: 0 0 220px; min-width: 220px; max-width: 240px; }

  .route-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }

  #route-map { display: none; height: 220px; margin: 0; border-radius: 0 0 10px 10px; }

  .form-contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { max-width: 100%; }
  .price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .about-block { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .about-img { order: -1; width: 100%; }
  .about-img img { max-height: 250px; width: 100%; object-fit: cover; object-position: center 20%; }

  .form-wrap { margin-top: 2.5rem; }
  .price-table-wrap { margin-top: 2.5rem; }
  .overlay.open { display: block; }
}

/* SMALL MOBILE up to 425px */
@media (max-width: 425px) {
  .cards-grid > .card { flex: 0 0 82vw; min-width: 82vw; max-width: 82vw; }
  .cards-grid > .info-card { flex: 0 0 82vw; min-width: 82vw; max-width: 82vw; }
  .about-collapsed { display: none; }
  .about-dots { display: inline; }
  .about-collapsed.open { display: block; }
}

/* ===== O NÁS — rozbaľovanie textu ===== */
.about-dots {
  display: none; color: var(--accent); cursor: pointer;
  font-size: inherit; font-weight: 700; letter-spacing: 1px;
}

.about-dots:hover { opacity: 0.7; }