﻿/* Lincaro — matte dark palette, soft bubble corners */

/* Honeypot — vizuálně skryté, boty to vyplní, lidé ne */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* GDPR checkbox */
.gdpr-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.gdpr-check input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.gdpr-check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
:root {
  --bg: #0b0d12;          /* matte black */
  --bg-2: #0f1320;        /* matte dark blue */
  --bg-3: #141a2b;        /* lifted panel */
  --surface: #1a2033;     /* card */
  --surface-2: #222942;   /* hover / input */
  --line: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.12);
  --fg: #f3f4f8;          /* matte white */
  --fg-2: #c9ccd6;
  --fg-3: #8e93a3;
  --fg-4: #5f6478;
  --accent: #7ed4b8;      /* mint, chosen accent */
  --accent-ink: #0b2a22;
  --danger: #e08a8a;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
  --shadow-2: 0 2px 4px rgba(0,0,0,.5), 0 18px 48px rgba(0,0,0,.35);
  --maxw: 1240px;
  --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; overscroll-behavior-x: none; }
body { margin: 0; padding: 0; overflow-x: hidden; overscroll-behavior-x: none; max-width: 100%; touch-action: pan-y; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(126,212,184,.04), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(70,90,160,.05), transparent 60%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,13,18,.82);
  border-bottom: 1px solid var(--line);
}
main { padding-top: 68px; }
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: .2px;
}
.brand-dot {
  width: 28px; height: 28px; border-radius: 14px;
  background: var(--fg);
  position: relative;
}
.brand-dot::after{
  content:""; position:absolute; inset: 6px;
  background: var(--bg); border-radius: 10px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: 8px;
}
.nav-link {
  padding: 8px 14px; border-radius: 999px;
  color: var(--fg-2); font-size: 14px;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface); color: var(--fg); }
.nav-link.active { background: var(--surface); color: var(--fg); }
.nav-spacer { flex: 1; }
.nav-cta { display:flex; gap:8px; align-items:center; }
.nav-instagram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; gap: 0;
  background: var(--surface-2); border-radius: 10px; color: var(--fg);
  text-decoration: none; border: 1px solid var(--line);
}
.nav-instagram-label { display: none; }
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--fg); border-radius: 2px;
}
.nav-mobile-menu {
  display: flex; flex-direction: column;
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 8px 16px 16px;
}
.nav-mobile-link {
  padding: 14px 4px; font-size: 16px; font-weight: 500;
  color: var(--fg-2); border-bottom: 1px solid var(--line);
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link.active { color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  font-weight: 500; font-size: 14px;
  transition: transform .1s, background .15s, color .15s, border-color .15s;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fg); color: #0b0d12; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--fg-2); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); color: var(--fg); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }

/* ---------- Bubble / card ---------- */
.bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.bubble-lg { border-radius: var(--radius-xl); }
.bubble-pad { padding: 22px; }
.bubble-pad-lg { padding: 32px; }

/* ---------- Inputs ---------- */
.input, .select, .textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--fg);
  transition: border-color .15s, background .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--line-2); background: var(--surface);
}
.textarea { height: auto; padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.45; }
.label {
  display: block;
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 6px;
  font-family: var(--font-mono);
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-3);
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02; letter-spacing: -0.01em;
}
.h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing:-.01em; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; margin: 0; }
.h3 { font-weight: 500; font-size: 18px; margin: 0; }
.muted { color: var(--fg-3); }
.mono { font-family: var(--font-mono); }

/* ---------- Utils ---------- */
.row { display: flex; gap: 12px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Reviews carousel ---- */
.reviews-carousel { position: relative; padding: 0 48px; }
.reviews-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px;
}
.reviews-scroll::-webkit-scrollbar { display: none; }
.review-card-wrap {
  flex: 0 0 calc(33.333% - 12px);
  scroll-snap-align: start;
  min-width: 260px;
  overflow: hidden;
}
.reviews-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, opacity .15s;
  z-index: 2;
}
.reviews-arrow-left  { left: 4px; }
.reviews-arrow-right { right: 4px; }
.reviews-arrow:hover { background: var(--surface); }
.reviews-add-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.reviews-add-btn:hover { opacity: 0.85; }
.reviews-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
@media (max-width: 640px) {
  .reviews-header { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 640px) {
  .review-card-wrap { flex: 0 0 calc(100% - 8px); min-width: 0; }
  .reviews-carousel { padding: 0 48px; }
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--fg-2);
  font-size: 12px;
  font-family: var(--font-mono);
  border: 1px solid var(--line);
}
.badge-accent { background: rgba(126,212,184,.12); color: var(--accent); border-color: rgba(126,212,184,.25); }
.badge-sold { background: rgb(26, 32, 51); color: rgb(243, 244, 248); border-color: rgba(255,255,255,.12); }

.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------- Car card ---------- */
.car-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.car-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.car-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.car-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.car-thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-thumb-overlay {
  position: absolute; top: 12px; left: 12px; display: flex; gap: 6px;
}
.car-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.car-title { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.car-sub { color: var(--fg-3); font-size: 13px; }
.car-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  color: var(--fg-3); font-size: 12px;
  font-family: var(--font-mono);
}
.car-price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding-top: 10px; margin-top: 2px;
  border-top: 1px dashed var(--line);
}
.car-price .num { font-size: 19px; font-weight: 500; font-family: var(--font-display); }
.car-price .unit { color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); }

/* ---------- Placeholder image ---------- */
.ph {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 10px, rgba(255,255,255,.06) 10px 20px),
    linear-gradient(180deg, #182038, #0e1425);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-4);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.stat-bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center; text-align: center;
}
.stat-bubble .num {
  font-family: var(--font-display); font-size: 48px; line-height: 1;
}
.stat-bubble .lbl { color: var(--fg-3); font-size: 13px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Filters ---------- */
.filter-mobile-toggle { display: none; }
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 14px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}
@media (max-width: 960px) { .filter-bar { grid-template-columns: 1fr 1fr; } }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface);
  color: var(--fg-2);
  border: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { background: var(--surface-2); color: var(--fg); }
.chip.active { background: var(--fg); color: #0b0d12; border-color: var(--fg); }

/* ---------- Services page ---------- */
.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.service-card-text {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card-photo {
  position: relative;
  overflow: hidden;
}
.service-card-photo img {
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.service-card-photo:hover img {
  transform: translateY(-10px) scale(1.04);
}
.service-card-fade {
  position: absolute; left: 0; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(to right, var(--surface), transparent);
  z-index: 1; pointer-events: none;
}

/* ---------- Detail page ---------- */
.gallery-main {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.gallery-thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s, border-color .15s;
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { opacity: 1; border-color: var(--fg); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.spec-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--fg-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; align-self: center; }
.spec-row .v { color: var(--fg); text-align: right; font-weight: 500; }

/* ---------- Sold history ---------- */
.sold-card .car-thumb { filter: saturate(.6) brightness(.85); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 40px 0 48px;
  color: var(--fg-3); font-size: 13px;
}
.footer .grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer .grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > div { min-width: 0; overflow: hidden; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Admin texts field ---------- */
.texts-field { display: grid; grid-template-columns: 200px 1fr; gap: 12px; }
@media (max-width: 640px) { .texts-field { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Admin ---------- */
.dropzone {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  background: var(--bg-3);
  transition: background .15s, border-color .15s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.dragover { background: var(--surface); border-color: var(--fg-3); }
.dropzone.dragover { border-color: var(--accent); }

.thumb-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 640px) { .thumb-grid { grid-template-columns: repeat(3, 1fr); } }

.thumb-wrap {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line);
}
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.thumb-remove {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 999px;
  background: rgba(0,0,0,.7); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.admin-list-row {
  display: grid; grid-template-columns: 64px 1.4fr 1fr 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: var(--radius-md);
  transition: background .15s;
}
.admin-list-row:hover { background: var(--bg-3); }
.admin-list-thumb { aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--fg); color: #0b0d12;
  padding: 12px 18px; border-radius: 999px;
  box-shadow: var(--shadow-2);
  font-size: 14px; font-weight: 500;
  z-index: 100;
  animation: toast-in .2s ease-out;
}
@keyframes toast-in { from { transform: translate(-50%, 10px); opacity: 0;} to { transform: translate(-50%, 0); opacity: 1;} }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2d355a; }

/* Focus visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* Simple transitions for page content */
.fade-in { animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: none;} }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,7,12,.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fade .18s ease-out;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  box-shadow: var(--shadow-2);
}

/* ---------- Lightbox ---------- */
.lightbox-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.92);
  z-index:1000; display:flex; align-items:center; justify-content:center; }
.lightbox-img { width:90vw; max-width:1200px; height:80vh;
  object-fit:contain; border-radius:4px; display:block; }
.lightbox-close { position:absolute; top:20px; right:28px; font-size:2rem;
  color:#fff; cursor:pointer; background:none; border:none; }
.lightbox-arrow { position:absolute; top:50%; transform:translateY(-50%);
  font-size:2.5rem; color:#fff; cursor:pointer; background:none; border:none;
  padding:0 20px; user-select:none; }
.lightbox-arrow.left { left:0; }
.lightbox-arrow.right { right:0; }
.lightbox-counter { position:absolute; bottom:20px; left:50%;
  transform:translateX(-50%); color:#fff; font-size:0.95rem; opacity:0.7; }

/* ========================================
   TABLET  (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero { padding: 52px 0 32px; }
  .display { font-size: clamp(36px, 5vw, 58px); }

  .filter-bar { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   MOBIL  (max-width: 640px)
   ======================================== */
@media (max-width: 640px) {
  /* Layout */
  .container { padding: 0 16px; }
  .grid { grid-template-columns: 1fr !important; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; }
  .row.between { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* Navigace */
  .nav-inner { height: 56px; padding: 0 20px 0 12px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logout { display: none; }
  main { padding-top: 56px; }

  /* Hero */
  .hero { padding: 36px 0 28px; height: auto; }
  .display { font-size: clamp(28px, 8vw, 42px); }
  .hero .row { flex-direction: column; align-items: stretch; }
  .hero .btn { width: 100%; justify-content: center; }

  /* Detail auta — galerie */
  .gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .gallery-thumb { flex: 0 0 72px; width: 72px; }

  /* Filtry */
  .filter-mobile-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
  .filter-bar { grid-template-columns: 1fr; display: none; }
  .filter-bar.filter-bar-open { display: grid; }

  /* Formuláře */
  .form-row { grid-template-columns: 1fr; }
  .input, .textarea, .select { width: 100%; }
  .modal-backdrop .btn { width: 100%; justify-content: center; }

  /* Admin */
  .admin-list-row {
    grid-template-columns: 48px 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 8px;
  }
  .admin-list-row > :nth-child(1) { grid-row: 1 / 3; }
  .admin-list-row > :nth-child(3) { display: none; }
  .admin-list-row > :nth-child(4) { display: none; }
  .admin-list-row > :nth-child(5) { grid-column: 2 / 4; }
  .dropzone { padding: 24px 16px; }
  .thumb-grid { grid-template-columns: repeat(3, 1fr); }

  /* Modální okno */
  .modal {
    width: calc(100vw - 32px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
  }

  /* Lightbox */
  .lightbox-arrow { padding: 16px 20px; }
  .lightbox-img { max-width: 95vw; max-height: 80vh; width: auto; height: auto; }

  /* Patička */
  .footer { margin-top: 48px; padding: 28px 0 36px; text-align: center; }
  .footer .grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer .grid > *:nth-child(1) { grid-column: span 2; }
  .footer .grid > *:nth-child(2) { grid-column: span 2; }
  .footer .grid > *:nth-child(3) {
    grid-column: span 2;
    overflow: hidden;
    word-break: break-word;
    font-size: 13px;
  }
  .footer .grid > *:nth-child(4) {
    grid-column: span 2;
    font-size: 13px;
  }
  .footer .grid > *:nth-child(5) { grid-column: span 2; }
  .footer .row { flex-direction: column; gap: 16px; }

  /* Stat bubbles */
  .stat-bubble .num { font-size: 28px; }
}

/* ========================================
   Dvousloupcové sekce — desktop
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-cta-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0 28px;
  }
  .hero-grid .row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-grid .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-grid .grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
