/* ============================================================
   Myslivna Zlatník — hlavní styly
   Design tokeny dle README.md (barvy, typografie, rozestupy).
   Čisté CSS, bez build kroku.
   ============================================================ */

:root {
  /* Barvy */
  --accent: #B0553A;          /* terakota – primární CTA */
  --accent-hover: #8F4530;
  --krem: #F6F2EA;            /* pozadí stránky */
  --bila: #FFFFFF;
  --krem-svetla: #EFE8DA;    /* chip / světlá plocha */
  --input-bg: #FBF9F4;
  --zelena: #2E3A2E;         /* brand primární */
  --zelena-footer: #262E26;
  --zelena-akcent: #3A4A3A;
  --okr: #A9784E;            /* slunce v logu, sekundární akcent */
  --zelena-pozitiv: #4C6B44;
  --zelena-pozitiv-bg: #E6EFE0;
  --text: #2A251F;
  --text-2: #5B5347;
  --text-tlumeny: #8A8175;
  --border: #E3DAC8;
  --border-2: #E9E1D2;
  --border-3: #EDE5D6;

  --max: 1200px;
  --pad-x: clamp(20px, 5vw, 40px);
  --pad-y: clamp(48px, 7vw, 96px);

  /* Fonty */
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --stin-velky: 0 18px 40px -22px rgba(46, 58, 46, 0.5);
  --stin-maly: 0 14px 30px -20px rgba(46, 58, 46, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--krem);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
input, textarea, button, select { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Typografie ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { font-family: var(--font-head); color: var(--zelena); margin: 0; }
.section-head { max-width: 640px; }
.section-head h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 12px 0 0;
}
.section-head p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 18px 0 0;
  text-wrap: pretty;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .15s, background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(0.92); color: #fff; }
.btn-secondary {
  background: var(--bila);
  color: var(--zelena);
  border-color: var(--border);
  font-weight: 600;
}
.btn-secondary:hover { background: var(--krem-svetla); color: var(--zelena); }

/* ============================================================
   HLAVIČKA
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar { background: var(--zelena); color: #DFE3D8; }
.topbar .wrap {
  padding-top: 7px;
  padding-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.topbar .loc { opacity: 0.85; }
.topbar .contacts { display: flex; gap: 22px; align-items: center; }
.topbar a[href^="tel"] { color: #F2EFE7; font-weight: 600; }
.topbar a[href^="mailto"] { color: #C9CFBF; }

.header-main {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--zelena);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--okr);
  margin-top: 3px;
  font-weight: 600;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a { color: #3A342B; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.nav .cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav .cta:hover { filter: brightness(0.92); color: #fff; }

/* mobilní ovládání */
.header-mobile { margin-left: auto; display: none; align-items: center; gap: 10px; }
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--zelena);
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.btn-call:hover { color: #fff; }
.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--krem-svetla);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  color: var(--zelena);
}

.mobile-panel { display: none; border-top: 1px solid var(--border); background: var(--krem); }
.mobile-panel.open { display: block; }
.mobile-panel .inner {
  padding: 8px var(--pad-x) 20px;
  display: flex;
  flex-direction: column;
}
.mobile-panel a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-2);
  color: var(--zelena);
  font-weight: 600;
  font-size: 17px;
}
.mobile-panel a.cta {
  margin-top: 14px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  border-bottom: none;
}
.mobile-panel .row { display: flex; gap: 10px; margin-top: 10px; font-size: 14px; }
.mobile-panel .row a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--zelena);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); scroll-margin-top: 90px; }
.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-col { flex: 1 1 380px; min-width: min(100%, 380px); }
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--krem-svetla);
  color: var(--accent-hover);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pill-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
  text-wrap: balance;
}
.hero .perex {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 30em;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin: 28px 0 0;
}
.meta-label { font-size: 13px; color: var(--text-tlumeny); letter-spacing: 0.04em; }
.meta-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--zelena);
  line-height: 1.1;
}
.meta-price span { font-size: 16px; font-weight: 500; color: var(--text-tlumeny); }
.meta-phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--zelena);
}
.meta-divider { width: 1px; height: 42px; background: var(--border); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.hero-photos {
  flex: 1 1 400px;
  min-width: min(100%, 340px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 12px;
}
.hero-photos .ph { border-radius: 16px; overflow: hidden; background: var(--border); box-shadow: var(--stin-maly); }
.hero-photos .ph.big { grid-row: 1 / 3; box-shadow: var(--stin-velky); }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hero-photos .ph:not(.big) img { aspect-ratio: 4/3; }

.feature-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bila);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #4A4338;
}

/* ============================================================
   O CHALUPĚ
   ============================================================ */
.section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
.section-white {
  background: var(--bila);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
#o-chalupe, #cenik, #dostupnost, #kontakt { scroll-margin-top: 80px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 14px;
  margin: 40px 0 0;
}
.feature-tile { background: var(--krem); border-radius: 14px; padding: 20px; }
.feature-tile .t {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--zelena);
  margin: 12px 0 2px;
}
.feature-tile .d { font-size: 14px; color: #6B6357; line-height: 1.5; }

.floor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0 0;
}
.floor-card { border: 1px solid var(--border-2); border-radius: 14px; padding: 22px; }
.floor-card .l {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--okr);
}
.floor-card .d { font-size: 15px; line-height: 1.6; color: #4A4338; margin: 8px 0 0; }

.peek-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 48px 0 16px;
}
.peek-head h3 { font-weight: 700; font-size: 22px; }
.peek-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--accent); }
.peek-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.peek-grid a { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--border); }
.peek-grid img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.peek-grid a:hover img { filter: brightness(0.95); }

/* ============================================================
   CENÍK
   ============================================================ */
.price-table-wrap {
  overflow-x: auto;
  margin: 32px 0 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bila);
}
.price-table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 15px; }
.price-table thead tr { background: var(--zelena); color: #F2EFE7; }
.price-table th { padding: 16px 20px; font-weight: 600; text-align: right; }
.price-table th:first-child { text-align: left; }
.price-table tbody tr { border-top: 1px solid var(--border-3); }
.price-table tbody tr:nth-child(even) { background: var(--input-bg); }
.price-table td { padding: 16px 20px; text-align: right; font-weight: 700; color: var(--zelena); }
.price-table td:first-child { text-align: left; font-weight: 400; }
.price-table td .name { font-weight: 600; color: var(--zelena); }
.price-table td .sub { font-size: 13px; color: var(--text-tlumeny); }

.season-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 14px 2px 0;
  font-size: 13.5px;
  color: var(--text-tlumeny);
}
.season-note strong { color: #6B6357; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0 0;
}
.info-card { background: var(--bila); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.info-card .h {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--zelena);
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card ul {
  margin: 14px 0 0;
  padding: 0 0 0 4px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  color: #4A4338;
}
.info-card li { display: flex; gap: 9px; }
.check-badge {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--zelena-pozitiv-bg); color: var(--zelena-pozitiv);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.arr-green { color: #7FA06F; }
.arr-accent { color: var(--accent); }
.arr-okr { color: var(--okr); }

.storno { background: var(--krem-svetla); border-radius: 16px; padding: 24px; margin: 20px 0 0; }
.storno .h { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--zelena); margin-bottom: 14px; }
.storno-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.storno-tile { background: var(--bila); border-radius: 12px; padding: 16px; }
.storno-tile .pct { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.storno-tile .d { font-size: 13.5px; color: #6B6357; margin-top: 2px; }

/* ============================================================
   DOSTUPNOST (kalendář)
   ============================================================ */
.section-dark { background: var(--zelena); color: #E9EBE2; }
.avail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.avail-head .section-head h2 { color: #fff; }
.avail-head .eyebrow { color: #D89A82; }
.avail-head .section-head p { color: #C7CDBE; }
.legend { display: flex; gap: 18px; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .box { width: 15px; height: 15px; border-radius: 4px; }
.legend .free { background: var(--krem-svetla); border: 1px solid #C9C7B8; }
.legend .busy { background: var(--accent); }
.legend .checkout { border: 1px solid #C9C7B8; background: linear-gradient(135deg, var(--accent) 0 46%, var(--krem-svetla) 46% 100%); }

.cal-nav { display: flex; align-items: center; gap: 12px; margin: 36px 0 0; }
.cal-btn {
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cal-btn:hover { background: rgba(255,255,255,0.14); }

.calendar { display: flex; flex-wrap: wrap; gap: 20px; margin: 20px 0 0; }
.cal-month {
  flex: 1 1 300px;
  min-width: 280px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}
.cal-month .label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 14px;
  text-transform: capitalize;
}
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { margin-bottom: 6px; }
.cal-dow div { text-align: center; font-size: 12px; font-weight: 600; color: #96A088; padding: 2px 0; }
.cal-cell {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 13.5px; font-weight: 600;
}
.cal-cell.free { background: var(--krem-svetla); color: #4A4338; border: 1px solid #C9C7B8; opacity: 0.95; }
.cal-cell.busy { background: var(--accent); color: #fff; border: 1px solid transparent; }
/* Turnovací den (odjezd): dopoledne obsazeno / odpoledne volno — diagonální půlka */
.cal-cell.checkout {
  color: #4A4338;
  border: 1px solid #C9C7B8;
  background: linear-gradient(135deg, var(--accent) 0 46%, var(--krem-svetla) 46% 100%);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.avail-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.avail-cta .btn-outline {
  background: transparent; color: #fff;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 16px;
  border: 1px solid rgba(255,255,255,0.35);
}
.avail-cta .btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-cards { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.contact-card {
  flex: 1 1 240px;
  display: flex; align-items: center; gap: 14px;
  background: var(--bila); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
  transition: border-color .15s;
}
.contact-card:hover { border-color: var(--accent); }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: var(--krem-svetla); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-card .lbl { display: block; font-size: 13px; color: var(--text-tlumeny); }
.contact-card .val { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--zelena); }
.contact-card .val.sm { font-size: 17px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin: 24px 0 0; align-items: start;
}
.form-card { background: var(--bila); border: 1px solid var(--border); border-radius: 18px; padding: clamp(22px, 3vw, 32px); }
.form-card h3 { font-weight: 700; font-size: 21px; margin: 0 0 4px; }
.form-card .hint { font-size: 14px; color: var(--text-tlumeny); margin: 0 0 18px; }
form.poptavka { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.field-row.narrow { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #4A4338; min-width: 0; }
label.field input, label.field textarea {
  width: 100%; min-width: 0;
  padding: 12px 14px;
  border: 1px solid #DAD0BE; border-radius: 10px;
  font-size: 15px; background: var(--input-bg); color: var(--text);
}
label.field textarea { resize: vertical; }
label.field input:focus, label.field textarea:focus { border-color: var(--accent); outline: none; }
.form-note { font-size: 12.5px; color: #A19684; margin: 0; text-align: center; }

.form-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 30px 10px; }
.form-success.show { display: flex; }
.form-card.done form.poptavka, .form-card.done .form-intro { display: none; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--zelena-pozitiv-bg); color: var(--zelena-pozitiv);
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 { font-weight: 700; font-size: 22px; margin: 16px 0 6px; }
.form-success p { font-size: 15px; color: #6B6357; margin: 0; max-width: 30em; }

.map-card { background: var(--bila); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.map-frame { aspect-ratio: 16/10; background: #DDE3D2; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-info {
  padding: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.map-info .name { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--zelena); }
.map-info .addr { font-size: 14px; color: #6B6357; line-height: 1.5; margin-top: 3px; }
.map-nav {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--zelena); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
}
.map-nav:hover { filter: brightness(1.15); color: #fff; }
.how-card { background: var(--bila); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.how-card .h { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--zelena); margin-bottom: 10px; }
.how-card p { font-size: 14.5px; line-height: 1.6; color: #4A4338; margin: 0 0 10px; }
.how-card p:last-child { margin-bottom: 0; }
.how-card strong { color: var(--zelena); }
.contact-right { display: flex; flex-direction: column; gap: 20px; }

/* ============================================================
   PATIČKA
   ============================================================ */
.site-footer { background: var(--zelena-footer); color: #B9C0AE; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-brand { max-width: 300px; }
.footer-brand .row { display: flex; align-items: center; gap: 10px; }
.footer-brand .name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #F2EFE7; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin: 14px 0 0; }
.footer-col .cap { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #8A9280; margin-bottom: 12px; }
.footer-col .links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col a[href^="tel"] { color: #F2EFE7; font-weight: 600; }
.footer-col a { color: #C6CCBB; }
.footer-col a:hover { color: #fff; }
.footer-col .addr { color: #9BA391; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(56, 66, 55, 0.22);
  margin: 32px 0 0; padding: 20px 0 0;
  font-size: 13px; color: #7E8674;
}
.site-footer .wrap { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }

/* ============================================================
   RESPONZIVNÍ ZLOM 900px
   ============================================================ */
@media (max-width: 899px) {
  .topbar { display: none; }
  .nav { display: none; }
  .header-mobile { display: flex; }
}
@media (min-width: 900px) {
  .mobile-panel { display: none !important; }
}

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-main { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 80px; }
.gallery-head .eyebrow { color: var(--accent); }
.gallery-head h1 {
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}
.gallery-head p { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 16px 0 0; max-width: 640px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.filter-chip {
  white-space: nowrap;
  padding: 9px 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: all .15s;
  border: 1px solid var(--border); background: var(--bila); color: #4A4338;
}
.filter-chip .cnt { opacity: 0.6; font-weight: 500; }
.filter-chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px; margin: 28px 0 0;
}
.gallery-tile {
  position: relative; padding: 0; border: none; cursor: pointer;
  border-radius: 14px; overflow: hidden; aspect-ratio: 4/3;
  background: var(--border); display: block;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.gallery-tile:hover img { filter: brightness(0.95); }
.gallery-tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px; text-align: left;
  background: linear-gradient(to top, rgba(28,30,24,0.72), transparent);
  color: #fff; font-size: 13.5px; font-weight: 600;
}

.header-simple .wrap { display: flex; align-items: center; gap: 16px; }
.header-simple .actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: #3A342B; font-weight: 600; font-size: 15px;
  padding: 9px 14px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--bila);
}
.back-link:hover { background: var(--krem-svetla); color: #3A342B; }
.header-simple .cta {
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.header-simple .cta:hover { filter: brightness(0.92); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(20,22,18,0.94); flex-direction: column; }
.lightbox.open { display: flex; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px,4vw,32px); color: #EDEAE0; }
.lb-counter { font-size: 14px; font-weight: 600; letter-spacing: 0.03em; color: #C9CDBF; }
.lb-close {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06);
  color: #fff; cursor: pointer; transition: background .15s;
}
.lb-close:hover { background: rgba(255,255,255,0.15); }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 clamp(8px,3vw,24px); position: relative; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6); }
.lb-arrow {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-arrow:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: clamp(8px,2vw,20px); }
.lb-next { right: clamp(8px,2vw,20px); }
.lb-caption { padding: 14px clamp(16px,4vw,32px) 28px; text-align: center; color: #EDEAE0; font-size: 15px; font-weight: 600; }
