/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primary – Orange */
  --primary-900: #7a3508;
  --primary-800: #a04610;
  --primary-700: #c55a0d;
  --primary-600: #d9660f;
  --primary:     #ea6710;
  --primary-400: #ee8038;
  --primary-300: #f4a66e;
  --primary-100: #fde8d5;
  --primary-50:  #fff5ed;

  /* Secondary – Blue (Dutch) */
  --blue-900: #0d2340;
  --blue-800: #1a3a6b;
  --blue-700: #1e4a8a;
  --blue-600: #2460b0;
  --blue-400: #5b8ed4;
  --blue-100: #dce9f9;
  --blue-50:  #f0f5fc;

  /* Semantic */
  --green-600: #2e7d52;
  --green-100: #d4eddf;
  --red-600:   #c0392b;
  --red-100:   #fde8e5;
  --yellow-500:#d4a017;
  --yellow-100:#fef8e1;

  /* Neutrals */
  --neutral-900: #111827;
  --neutral-800: #1f2937;
  --neutral-700: #374151;
  --neutral-600: #4b5563;
  --neutral-500: #6b7280;
  --neutral-400: #9ca3af;
  --neutral-300: #d1d5db;
  --neutral-200: #e5e7eb;
  --neutral-100: #f3f4f6;
  --neutral-50:  #f9fafb;
  --white: #ffffff;

  --font-body:    'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 8px 10px rgba(0,0,0,.06);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;
  --transition:  200ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--neutral-900);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-700); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--primary-700);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.tip-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
}
.tip-badge--number {
  background: var(--primary);
  color: var(--white);
}
.tip-badge--oblast {
  background: var(--primary-100);
  color: var(--primary-700);
}
.tip-badge--kdo {
  background: var(--blue-100);
  color: var(--blue-700);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--neutral-100);
  color: var(--neutral-600);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.tag:hover { background: var(--primary-100); color: var(--primary-700); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--primary);
  width: 100%;
}

.topbar-inner {
  display: flex;
  align-items: center;
  height: 56px;
}

.topbar-logo {
  display: flex;
  align-items: center;
}

.topbar-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--neutral-900);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-nl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  letter-spacing: .05em;
}

.main-nav { display: flex; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-700);
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.nav-link:hover, .nav-link:focus {
  background: var(--primary-50);
  color: var(--primary-700);
}

.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }
.chevron { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--transition); }
.has-submenu:hover .chevron, .has-submenu.open .chevron { transform: rotate(180deg); }

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  list-style: none;
  z-index: 200;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 1px; /* Vytvoří prostor, kam můžete najet myší */
    margin-top: -1px; /* Posune podmenu zpět na místo */
}
.has-submenu:hover .submenu, .has-submenu.open .submenu { display: block; }
.submenu li a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--neutral-700);
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}
.submenu li a:hover { background: var(--primary-50); color: var(--primary-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--neutral-800);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-900);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122,53,8,.85) 0%, rgba(30,74,138,.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  margin-bottom: 20px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--neutral-400);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: 14px 48px 14px 48px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--neutral-800);
  background: var(--white);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234,103,16,.12);
}
.search-input::placeholder { color: var(--neutral-400); }
.search-input::-webkit-search-cancel-button { display: none; }

.search-clear {
  position: absolute;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.search-clear:hover { background: var(--neutral-200); }
.search-clear svg { width: 14px; height: 14px; color: var(--neutral-500); }

/* ============================================================
   FILTER SECTION
   ============================================================ */
.filter-section { padding: 64px 0 80px; }

.section-header {
  text-align: center;
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: 32px;
  color: var(--neutral-900);
  margin-bottom: 8px;
}
.section-header p {
  color: var(--neutral-600);
  font-size: 16px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.filter-group {
  flex: 1;
  min-width: 180px;
}

.filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--neutral-500);
  margin-bottom: 6px;
}

/* Custom Select */
.custom-select { position: relative; }

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-800);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  user-select: none;
}
.select-trigger:hover,
.custom-select.open .select-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234,103,16,.12);
}
.select-trigger svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--neutral-400);
  transition: transform var(--transition);
}
.custom-select.open .select-trigger svg { transform: rotate(180deg); }

.select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}
.custom-select.open .select-dropdown { display: block; }

.select-option {
  padding: 9px 12px;
  font-size: 14px;
  color: var(--neutral-700);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.select-option:hover { background: var(--primary-50); color: var(--primary-700); }
.select-option.selected {
  background: var(--primary-100);
  color: var(--primary-700);
  font-weight: 600;
}

.filter-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--neutral-600);
}
#filter-count { font-weight: 600; color: var(--primary-700); }

/* ============================================================
   TIP CARDS GRID
   ============================================================ */
.tipy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tip-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}
.tip-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary-300);
}

.tip-card-link { display: block; color: inherit; }

.tip-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--neutral-100);
}
.tip-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.tip-card:hover .tip-card-img img { transform: scale(1.04); }

.tip-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-400));
}
.tip-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
}

.tip-card-body { padding: 20px; }

.tip-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tip-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tip-card-perex {
  font-size: 13px;
  color: var(--neutral-600);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tip-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results {
  text-align: center;
  padding: 64px 24px;
  color: var(--neutral-600);
}
.no-results p {
  font-size: 18px;
  margin-bottom: 16px;
}

/* ============================================================
   TIP DETAIL PAGE
   ============================================================ */
.tip-detail-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-color: var(--primary-900);
  background-size: cover;
  background-position: center;
}

.tip-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(122,53,8,.9) 0%,
    rgba(122,53,8,.5) 50%,
    rgba(122,53,8,.2) 100%
  );
}

.tip-detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 24px 48px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  padding: 8px 0;
  transition: color var(--transition);
}
.btn-back:hover { color: var(--white); }
.btn-back svg { width: 16px; height: 16px; }

.tip-detail-number {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary-300);
  margin-bottom: 8px;
}

.tip-detail-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 800px;
}

.tip-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tip-detail-badges .tip-badge--oblast {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.95);
}
.tip-detail-badges .tip-badge--kdo {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
}
.tip-detail-badges .tag {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}

.tip-detail-body {
  padding: 48px 24px 80px;
}

/* Carousel */
.tip-carousel {
  position: relative;
  margin-bottom: 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 400ms ease;
}

.carousel-slide { min-width: 100%; }
.carousel-slide img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
  z-index: 10;
}
.carousel-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.05);
}
.carousel-btn svg { width: 18px; height: 18px; color: var(--neutral-800); }
.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }

/* Two-column layout */
.tip-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.tip-content {
  min-width: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--neutral-800);
}
.tip-content h2, .tip-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--neutral-900);
}
.tip-content h2 { font-size: 24px; }
.tip-content h3 { font-size: 20px; }
.tip-content p { margin-bottom: 16px; }
.tip-content a { color: var(--primary-700); text-decoration: underline; }
.tip-content a:hover { color: var(--primary-800); }
.tip-content ul, .tip-content ol { margin: 0 0 16px 24px; }
.tip-content li { margin-bottom: 6px; }
.tip-content strong { color: var(--neutral-900); }
.tip-content sup { font-size: 11px; }

.tip-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tip-video h3,
.tip-info-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--neutral-900);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-100);
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--neutral-900);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tip-info-box {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.tip-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--neutral-700);
  margin-bottom: 12px;
}
.tip-info-row:last-child { margin-bottom: 0; }
.tip-info-row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}
.tip-info-row a { color: var(--primary-700); text-decoration: underline; word-break: break-all; }
.tip-info-row a:hover { color: var(--primary-800); }

.tip-map-link .btn { width: 100%; justify-content: center; }

/* Tip navigation */
.tip-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--neutral-200);
}

.tip-nav-prev,
.tip-nav-next {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--neutral-50);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  color: var(--neutral-800);
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition);
  max-width: 48%;
}
.tip-nav-prev:hover, .tip-nav-next:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-sm);
  color: var(--primary-700);
}
.tip-nav-prev svg, .tip-nav-next svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--neutral-400);
}
.tip-nav-prev:hover svg, .tip-nav-next:hover svg { color: var(--primary); }
.tip-nav-next { margin-left: auto; }
.tip-nav-prev span, .tip-nav-next span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tip-nav-prev small, .tip-nav-next small {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--neutral-400);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--neutral-900);
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-logo .logo-nl { background: var(--primary); }

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   MAIN CONTENT SPACING
   ============================================================ */
.main-content { min-height: calc(100vh - 120px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .tip-layout { grid-template-columns: 1fr; }
  .tip-sidebar { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px 24px;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
  .nav-link { padding: 10px 12px; }
  .submenu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; }
  .has-submenu:hover .submenu { display: none; }
  .has-submenu.open .submenu { display: block; }

  .hero { min-height: 420px; }
  .hero-content { padding: 60px 24px; }

  .filter-bar { flex-direction: column; }
  .filter-group { min-width: unset; width: 100%; }

  .tipy-grid { grid-template-columns: 1fr; }

  .carousel-slide img { height: 260px; }

  .tip-nav-prev, .tip-nav-next {
    max-width: 100%;
    font-size: 13px;
    padding: 12px 16px;
  }
  .tip-nav { flex-direction: column; }
  .tip-nav-next { margin-left: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .topbar-inner { height: 48px; }
  .topbar-logo img { height: 30px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .section-header h2 { font-size: 26px; }
  .tip-detail-hero { min-height: 320px; }
}
