/* Filip Langr — hlavní stylopis */
:root {
  box-sizing: border-box;
  --ink: #141F35;
  --ink-soft: #2C3A57;
  --wine: #7C2530;
  --wine-deep: #5C1B23;
  --paper: #EFE9DD;
  --paper-raised: #F7F3EA;
  --sand: #D8CDBA;
  --moss: #5B6F52;
  --text-on-paper: #241F18;
  --text-muted: #6B6252;
  --line: rgba(36, 31, 24, 0.14);
  --shadow: 0 18px 40px rgba(20, 31, 53, 0.14);
  --radius-s: 2px;
  --radius-m: 4px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

  html { scroll-behavior: smooth; scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.overflow-x { overflow-x: auto; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wine);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--wine); color: #F7F0EC; }
.btn-primary:hover { background: var(--wine-deep); }
.btn-line { border-color: var(--ink); color: var(--text-on-paper); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper-raised); }
/* tlačítko v tmavé úvodní sekci: světlý text a rámeček */
.hero .btn-line { color: #F1E6D0; border-color: rgba(241, 230, 208, 0.6); }
.hero .btn-line:hover { background: #F1E6D0; color: var(--ink); border-color: #F1E6D0; }
.btn:active { transform: scale(0.98); }

/* ---------- Images ---------- */
picture { display: block; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-mark picture { width: 100%; height: 100%; }
.about-mark img { width: 100%; height: 100%; object-fit: cover; }
.pair-grid picture { min-width: 0; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--wine); }
nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-on-paper);
  position: relative;
  padding-bottom: 4px;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--wine);
  transition: right 0.25s ease;
}
nav a:hover::after { right: 0; }
.nav-desktop { display: flex; align-items: center; gap: 36px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-mobile-panel { display: none; }

@media (max-width: 860px) {
  .nav-desktop nav { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile-panel {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 22px;
    border-top: 1px solid var(--line);
  }
  .nav-mobile-panel.open { display: flex; }
  .nav-mobile-panel a {
    text-decoration: none;
    color: var(--text-on-paper);
    font-size: 16px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 84px);
  background: var(--ink);
  color: #EFE6DA;
}
.hero-photo {
  position: absolute;
  inset: 0;
  --hero-shade: linear-gradient(100deg, rgba(13,18,32,0.94) 18%, rgba(13,18,32,0.72) 46%, rgba(13,18,32,0.4) 78%);
  background-color: var(--ink);
  background-image: var(--hero-shade), url("../images/hero-1920.jpg");
  background-size: cover;
  background-position: center 30%;
}
.hero-map {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
}
.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #D9A5AC;
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 0.98;
  color: #F7F0E8;
}
.hero-role {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 26px);
  color: #C7B9A4;
  margin-top: 18px;
}
.hero-lede {
  max-width: 40ch;
  margin-top: 26px;
  font-size: 17px;
  color: #C7BEB0;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-side {
  border-left: 1px solid rgba(247, 240, 232, 0.2);
  padding-left: 32px;
}
.hero-stat { margin-bottom: 26px; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 40px;
  color: #F1E6D0;
  display: block;
  line-height: 1;
}
.hero-stat .label {
  font-size: 13.5px;
  color: #A79C8B;
  margin-top: 6px;
  display: block;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { border-left: none; border-top: 1px solid rgba(247, 240, 232, 0.2); padding-left: 0; padding-top: 26px; display: flex; gap: 40px; }
}

/* ---------- Section shell ---------- */
section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 8px; }
.section-head p { max-width: 46ch; color: var(--text-muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 700px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* ---------- About ---------- */
.about { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.about-mark {
  aspect-ratio: 4/5;
  border-radius: var(--radius-m);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.about-mark svg { width: 78%; }
.about-text p { font-size: 17px; color: var(--text-on-paper); margin-bottom: 18px; }
.about-text p:last-of-type { margin-bottom: 0; }
.about-text .lead { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--wine-deep); margin-bottom: 22px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-mark { max-width: 320px; } }

/* ---------- Properties ---------- */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.prop-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.prop-visual {
  aspect-ratio: 4/3;
  background: var(--ink);
  position: relative;
  display: flex;
  align-items: flex-end;
}
.prop-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.prop-tag {
  position: relative;
  z-index: 1;
  margin: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--wine);
  color: #F7EDEA;
  padding: 6px 12px;
  border-radius: 999px;
}
.prop-tag.sold { background: var(--moss); }
.prop-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.prop-body h3 { font-size: 20px; }
.prop-body .meta { font-size: 14px; color: var(--text-muted); }
.prop-body .price { font-family: var(--font-display); font-size: 21px; color: var(--wine-deep); margin-top: 6px; }
@media (max-width: 900px) { .prop-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .prop-grid { grid-template-columns: 1fr; } }

.prop-card.clickable { cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.prop-card.clickable:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prop-link { font-size: 13.5px; font-weight: 600; color: var(--wine-deep); margin-top: 6px; }

/* ---------- Property modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 18, 32, 0.86);
  backdrop-filter: blur(6px);
  z-index: 300;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 40px 24px;
  padding-top: calc(40px + env(safe-area-inset-top, 0px));
}
.modal-overlay.open { display: block; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 880px;
  min-width: 0;
  margin: 0 auto;
  background: var(--paper-raised);
  border-radius: var(--radius-m);
  padding: clamp(22px, 4vw, 44px);
}
.modal-box > * { min-width: 0; }
/* Zavírací tlačítko je sticky: zůstává v dosahu při scrollování detailu */
.modal-close {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  margin: -14px -14px -26px auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text-on-paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 31, 53, 0.12);
}
.modal-eyebrow { font-size: 12.5px; }
.modal-box h3 { font-size: clamp(24px, 3.2vw, 32px); margin-top: 8px; margin-bottom: 22px; padding-right: 40px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.gallery-grid picture { min-width: 0; }
.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: var(--sand);
}
/* Zvětšení fotografie bez ořezu */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 400;
  background: rgba(13, 18, 32, 0.94);
  align-items: center; justify-content: center;
  padding: 16px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(13,18,32,0.7); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-text h4 { font-family: var(--font-display); font-size: 19px; font-weight: 500; margin-top: 26px; margin-bottom: 10px; color: var(--wine-deep); }
.modal-text h4:first-child { margin-top: 0; }
.modal-text p { font-size: 15.5px; color: var(--text-on-paper); margin-bottom: 4px; }
.modal-text strong { color: var(--wine-deep); }
.modal-price { font-family: var(--font-display); font-size: 27px; color: var(--wine-deep); margin: -10px 0 24px; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.pair-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--line); }
.pair-caption { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 22px; }
@media (max-width: 600px) { .pair-grid { grid-template-columns: 1fr; } }
.modal-summary { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: -6px 0 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.modal-summary div span { display: block; font-size: 12.5px; color: var(--text-muted); }
.modal-summary div strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--text-on-paper); margin-top: 2px; }
.lv-meta { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.7; }
.lv-table { width: 100%; border-collapse: collapse; margin: 6px 0 8px; font-size: 13.5px; }
.lv-table th, .lv-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.lv-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); font-weight: 600; }
.lv-note { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }
.chart-box { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 24px; margin: 18px 0 26px; }
.chart-box h5 { font-family: var(--font-display); font-size: 16px; font-weight: 500; margin: 0 0 14px; color: var(--text-on-paper); }
.chart-box svg text { font-family: "Work Sans", sans-serif; }
.video-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 30px;
  background: var(--ink);
}
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,18,32,0.25), rgba(13,18,32,0.6)); }
.video-facade {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  cursor: pointer; color: #EFE6DA; text-align: center; padding: 20px;
}
.video-play {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wine);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.video-facade:hover .video-play { transform: scale(1.08); }
.video-play svg { width: 22px; height: 22px; fill: #F7EDEA; margin-left: 3px; }
.video-card-title { font-family: var(--font-display); font-size: 18px; color: #F7F0E8; }
.video-card-sub { font-size: 13px; color: #A79C8B; }
.article-header { border-radius: var(--radius-m); overflow: hidden; margin-bottom: 28px; }
.article-header svg { display: block; width: 100%; height: auto; }
.article-map-wrap {
  position: relative;
  height: 200px;
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--ink) url("../images/pattern-header.svg") right center / cover no-repeat;
}
.article-map-wrap::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #D9A5AC, var(--wine));
}
.article-map-overlay { display: none; }
.article-map-text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 0 34px; max-width: 70%; pointer-events: none; }
.article-map-text .eyebrow { color: #D9A5AC; font-size: 12.5px; }
.article-map-text h3 { font-family: var(--font-display); font-size: 32px; line-height: 1.1; font-weight: 500; color: #F7F0E8; margin: 8px 0 8px; }
.article-map-text span.loc { font-size: 13.5px; color: #B5AA97; max-width: 44ch; }
body.modal-open { overflow: hidden; }

.modal-text, .modal-text > * { min-width: 0; max-width: 100%; }
.modal-text img { max-width: 100%; }
.lv-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Desktop od 1024 px: detail využije většinu obrazovky */
@media (min-width: 1024px) {
  .modal-overlay { padding: 40px; padding-top: calc(40px + env(safe-area-inset-top, 0px)); }
  .modal-box {
    width: calc(100vw - 80px);
    max-width: 1200px;
    padding: 48px 56px 56px;
  }
  .modal-box h3 { font-size: 36px; }
  .modal-text p, .modal-text ul, .modal-text ol { max-width: 880px; }
  .video-embed-wrap { max-width: 960px; }
  .modal-summary { gap: 12px 44px; }
}
/* Tablet */
@media (min-width: 601px) and (max-width: 1023px) {
  .modal-overlay { padding: 28px 24px; padding-top: calc(28px + env(safe-area-inset-top, 0px)); }
  .modal-box { max-width: none; width: 100%; padding: 32px 30px 36px; }
}
/* Mobil do 600 px: téměř celá šířka displeje */
@media (max-width: 600px) {
  .modal-overlay { padding: 8px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .modal-box { max-width: none; width: 100%; padding: 18px 16px 24px; border-radius: 12px; }
  .modal-box h3 { font-size: 24px; margin-bottom: 16px; padding-right: 36px; }
  .modal-price { font-size: 24px; margin: -6px 0 18px; }
  .modal-summary { gap: 14px 16px; margin: -4px 0 20px; padding-bottom: 16px; }
  .modal-summary div { flex: 0 0 calc(50% - 8px); min-width: 0; }
  .modal-summary div strong { font-size: 17px; overflow-wrap: anywhere; }
  .gallery-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; }
  .modal-text p { font-size: 15.5px; }
  .chart-box { padding: 16px 14px; }
  .lv-table th, .lv-table td { padding: 8px 8px; }
  .video-embed-wrap { margin-bottom: 22px; }
  .article-map-wrap { height: 176px; }
  .article-map-text { padding: 0 22px 0 24px; max-width: 92%; }
  .article-map-text h3 { font-size: 26px; }
}


/* ---------- Market data / chart ---------- */
.market { background: var(--ink); color: #EDE6D8; }
.market .eyebrow { color: #D9A5AC; }
.market .section-head { border-color: rgba(237, 230, 216, 0.16); }
.market .section-head p { color: #A79C8B; }
.market-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.chart-card {
  background: rgba(247, 240, 232, 0.04);
  border: 1px solid rgba(247, 240, 232, 0.14);
  border-radius: var(--radius-m);
  padding: 28px;
}
.chart-card h4 { font-size: 15px; font-weight: 600; color: #EDE6D8; font-family: var(--font-body); }
.chart-note { font-size: 12.5px; color: #83786A; margin-top: 10px; }
.district-compare { display: flex; flex-direction: column; }
.district-row { display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 22px; padding: 20px 0; border-bottom: 1px solid rgba(247, 240, 232, 0.12); cursor: pointer; transition: opacity 0.15s ease; }
.district-row:last-child { border-bottom: none; }
.district-row:hover { opacity: 0.82; }
.district-row h4 { font-family: var(--font-display); font-size: 19px; font-weight: 500; margin: 0 0 4px; color: #F7F0E8; }
.district-row p { font-size: 13px; color: #A79C8B; max-width: 32ch; margin: 0; }
.bar-track { position: relative; height: 10px; background: rgba(247, 240, 232, 0.1); border-radius: 5px; overflow: hidden; }
.bar-fill { position: absolute; top: 0; bottom: 0; left: 0; background: #E39BA2; border-radius: 5px; }
.district-row .value-col { text-align: right; white-space: nowrap; }
.district-row .value-col .value { display: block; font-family: var(--font-display); font-size: 18px; color: #F1E6D0; }
.district-row .value-col .arrow { font-size: 12.5px; color: #D9A5AC; }
@media (max-width: 860px) { .market-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .district-row { grid-template-columns: 1fr; gap: 10px; } .district-row .value-col { text-align: left; } }

  .dist-head, .dist-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) 1.6fr 112px 78px; align-items: center; gap: 18px; }
.dist-head { font-size: 12.5px; color: #83786A; padding: 0 0 10px; border-bottom: 1px solid rgba(247, 240, 232, 0.16); }
.dist-head .r, .dist-price, .dist-tx { text-align: right; }
.dist-row { padding: 12px 0; border-bottom: 1px solid rgba(247, 240, 232, 0.1); }
.dist-row:last-child { border-bottom: none; }
.dist-row.clickable { cursor: pointer; transition: opacity 0.15s ease; }
.dist-row.clickable:hover { opacity: 0.85; }
.dist-title { display: block; font-family: var(--font-display); font-size: 17px; color: #F7F0E8; }
.dist-link { display: block; font-size: 12.5px; color: #D9A5AC; margin-top: 2px; }
.dist-low { display: block; font-size: 12px; color: #83786A; margin-top: 2px; }
.dist-price { font-family: var(--font-display); font-size: 17px; color: #F1E6D0; white-space: nowrap; }
.dist-tx { font-size: 14px; color: #A79C8B; }
.dist-row.low .bar-fill { opacity: 0.4; }
@media (max-width: 640px) {
  .dist-head { display: none; }
  .dist-row { grid-template-columns: 1fr auto; grid-template-areas: "name price" "bar bar" "tx tx"; gap: 8px 14px; }
  .dist-name { grid-area: name; }
  .dist-price { grid-area: price; }
  .dist-row .bar-track { grid-area: bar; }
  .dist-tx { grid-area: tx; text-align: left; }
  .dist-tx::after { content: " transakcí"; }
}

/* ---------- Articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  background: var(--paper-raised);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.article-card .eyebrow { font-size: 12px; }
.article-card h3 { font-size: 19px; line-height: 1.3; }
.article-card p { font-size: 14.5px; color: var(--text-muted); flex: 1; }
.article-card .read { font-size: 13.5px; font-weight: 600; color: var(--wine-deep); }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- Calculator ---------- */
.calc { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 22px; }
.field label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.field label span.val { color: var(--wine-deep); font-family: var(--font-body); }
input[type="range"] {
  width: 100%;
  accent-color: var(--wine);
  height: 4px;
}
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.calc-result {
  background: var(--ink);
  color: #EDE6D8;
  border-radius: var(--radius-m);
  padding: 32px;
}
.calc-result .headline-num { font-family: var(--font-display); font-size: 48px; color: #F1E6D0; line-height: 1; display: block; }
.calc-result .headline-label { font-size: 13.5px; color: #A79C8B; margin-top: 8px; display: block; }
.calc-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(237, 230, 216, 0.16); }
.calc-breakdown div span { display: block; font-size: 12.5px; color: #83786A; }
.calc-breakdown div strong { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.calc-fine { font-size: 12.5px; color: #83786A; margin-top: 22px; line-height: 1.5; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }

/* ---------- Spolupráce ---------- */
.collab-intro { max-width: 62ch; font-size: 17px; color: var(--text-on-paper); margin-bottom: 40px; }
.collab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.collab-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.collab-card .eyebrow { font-size: 12px; }
.collab-card h3 { font-size: 23px; line-height: 1.25; }
.collab-card p.dek { color: var(--text-muted); font-size: 15px; }
.collab-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.collab-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-on-paper); }
.collab-card li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--wine); }
.collab-card .btn { align-self: flex-start; margin-top: 4px; }
.collab-note { font-size: 13.5px; color: var(--text-muted); margin-top: 28px; max-width: 60ch; }
@media (max-width: 860px) { .collab-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonial ---------- */

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.review-card { display: flex; flex-direction: column; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 22px 20px; }
.review-top { display: flex; justify-content: space-between; align-items: center; }
.review-stars { color: #C08A34; letter-spacing: 2px; font-size: 15px; }
.review-src { font-size: 12px; color: var(--text-muted); }
.review-card blockquote { margin: 12px 0 16px; font-size: 15px; line-height: 1.62; color: var(--text-on-paper); }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13.5px; }
.review-name { font-weight: 600; }
.review-tag { font-size: 12px; color: var(--text-muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); font-size: 15.5px; max-width: 40ch; margin-bottom: 28px; }
.contact-link-list { display: flex; flex-direction: column; gap: 16px; }
.contact-link-list a, .contact-link-list .contact-place { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 16px; font-weight: 500; }
.contact-link-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--wine); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-muted); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 15px;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--wine); outline-offset: 1px; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin-top: 14px; }
.form-status { display: none; padding: 14px 18px; border-radius: var(--radius-s); font-size: 14.5px; margin-top: 16px; color: #F3F1E9; }
.form-status.show { display: block; }
.form-status.ok { background: var(--moss); }
.form-status.info { background: var(--ink-soft); }
.form-status.err { background: var(--wine); }
.form-note a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

footer {
  background: var(--ink);
  color: #A79C8B;
  padding: 40px 0;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 13.5px;
}
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.foot-row .wordmark { color: #EDE6D8; font-size: 22px; }
.foot-row .wordmark span { color: #E39BA2; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Hero image variants ---------- */
@supports (background-image: image-set(url("a.webp") type("image/webp"))) {
  .hero-photo { background-image: var(--hero-shade), image-set(url("../images/hero-1920.webp") type("image/webp"), url("../images/hero-1920.jpg") type("image/jpeg")); }
}
@media (max-width: 900px) {
  .hero-photo { background-image: var(--hero-shade), url("../images/hero-960.jpg"); }
  @supports (background-image: image-set(url("a.webp") type("image/webp"))) {
    .hero-photo { background-image: var(--hero-shade), image-set(url("../images/hero-960.webp") type("image/webp"), url("../images/hero-960.jpg") type("image/jpeg")); }
  }
}

/* ---------- Dark mode (follows the visitor's system setting) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171310;
    --paper-raised: #1E1A15;
    --text-on-paper: #EDE6D8;
    --text-muted: #A69A85;
    --line: rgba(237, 230, 216, 0.14);
    --sand: #3A3226;
    --ink: #0D1424;
    --ink-soft: #1A2438;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  }
  .eyebrow { color: #C97B84; }
  .about-text .lead, .prop-body .price, .prop-link, .modal-text h4, .modal-text strong,
  .modal-price, .article-card .read, .field label span.val { color: #E39BA2; }
  .btn-line { border-color: var(--text-on-paper); }
  .btn-line:hover { background: var(--text-on-paper); color: var(--ink); }
}

/* ---------- Hero na mobilu: obličej v záběru, text pod fotkou ---------- */
@media (max-width: 600px) {
  .hero { padding-top: 292px; }
  .hero-photo {
    --hero-shade:
      linear-gradient(180deg, rgba(13,18,32,0.30) 0, rgba(13,18,32,0) 90px, rgba(13,18,32,0) 190px, rgba(13,18,32,0.78) 330px, var(--ink) 430px),
      linear-gradient(90deg, rgba(13,18,32,0.35) 0, rgba(13,18,32,0) 35%);
    background-repeat: no-repeat;
    background-size: auto 440px;
    background-position: 91% 0;
  }
  .hero-photo { background-image: var(--hero-shade), url("../images/hero-1920.jpg"); }
  @supports (background-image: image-set(url("a.webp") type("image/webp"))) {
    .hero-photo { background-image: var(--hero-shade), image-set(url("../images/hero-1920.webp") type("image/webp"), url("../images/hero-1920.jpg") type("image/jpeg")); }
  }
  .hero-map { opacity: 0.2; }
}
