/* =================================================================
 * DS Kámen — Náhrobní kameny
 * Page styles. Tokens live in tokens.css.
 *
 * Visual direction:
 *  - Paper mode (warm off-white) — dignity, light, calm
 *  - Type-driven: Space Grotesk geometric sans + Inter body
 *  - Monochrome with a single muted moss-stone accent
 *  - Hairline borders, no shadows on cards, generous space
 * ================================================================= */

/* ---------- Mode override: paper-light ----------------------- */
:root {
  /* Warm paper override */
  --bg:            #F6F3EE;       /* warm cream (subtly warmer than --paper) */
  --bg-elevated:   #FBFAF7;
  --surface-1:     #FFFFFF;
  --surface-2:     #EFEBE3;
  --surface-3:     #E5E0D6;

  --fg:            #14181F;       /* deep ink */
  --fg-muted:      #5C6270;
  --fg-subtle:     #8A8F9C;

  --border:        rgba(20, 24, 31, 0.10);
  --border-strong: rgba(20, 24, 31, 0.18);

  /* Single restrained accent — muted moss/bronze */
  --accent:        #4A5D3E;       /* memorial moss */
  --accent-hover:  #3E4F33;
  --accent-press:  #344128;
  --accent-tint:   rgba(74, 93, 62, 0.08);
  --fg-on-accent:  #FBFAF7;

  --focus-ring:    #4A5D3E;

  /* Container widths */
  --container:       1240px;
  --container-narrow: 960px;
  --container-prose: 68ch;
}

/* ---------- Reset / base ------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--fg-on-accent); }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout helpers ----------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
section { padding: var(--space-9) 0; }
@media (max-width: 720px) { section { padding: var(--space-8) 0; } }

.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

.h-hero {
  font-family: 'Cormorant Garamond', 'Source Serif Pro', Georgia, serif;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.h-hero em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.h-section {
  font-family: 'Cormorant Garamond', 'Source Serif Pro', Georgia, serif;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  font-weight: 500;
}
.h-sub {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: var(--fw-medium);
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 56ch;
}

/* ---------- Top utility bar ---------------------------------- */
.utility {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}
.utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 36px;
}
.utility-left, .utility-right { display: flex; gap: 20px; align-items: center; }
.utility a { color: var(--fg); transition: color var(--dur-micro) var(--ease); }
.utility a:hover { color: var(--accent); }
.utility .sep { width: 1px; height: 14px; background: var(--border-strong); }
@media (max-width: 720px) {
  .utility .container { height: auto; padding: 8px 24px; flex-direction: column; gap: 4px; align-items: flex-start; }
}

/* ---------- Nav ---------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-2px);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: var(--fw-medium);
}
.nav-links a {
  position: relative;
  transition: color var(--dur-micro) var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--fg);
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}
.nav-cta:hover { background: var(--surface-1); border-color: var(--fg); }
.nav-cta .phone-icon {
  width: 14px; height: 14px;
  color: var(--accent);
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .container { height: 64px; }
}

/* ---------- Buttons ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 15px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--fg-on-accent);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--fg); background: var(--surface-1); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  padding: 10px 0;
}
.btn-ghost .arrow { transition: transform var(--dur) var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--dur-micro) var(--ease);
}
.btn-ghost { position: relative; }
.btn-ghost:hover::after { opacity: 0.6; }

/* ---------- HERO --------------------------------------------- */
.hero {
  padding: 40px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 22px; max-width: 600px; }
.hero-text .eyebrow { margin-bottom: 4px; }
.hero-title em {
  font-family: 'Cormorant Garamond', 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-lede { color: var(--fg-muted); font-size: 19px; line-height: 1.6; max-width: 52ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-meta {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}
.hero-meta-item .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  margin-bottom: 4px;
  color: var(--fg-subtle);
}
.hero-meta-item .value { color: var(--fg); font-size: 14px; font-weight: var(--fw-medium); }

.hero-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
  max-height: 600px;
}
.hero-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 1.2s var(--ease);
}
.hero-img-wrap:hover img { transform: scale(1.02); }
.hero-img-caption {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(20, 24, 31, 0.72);
  color: #F6F3EE;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  font-family: var(--font-mono);
  backdrop-filter: blur(8px);
}
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-img-wrap { aspect-ratio: 3 / 4; max-height: 600px; }
}

/* ---------- INTRO band --------------------------------------- */
.intro {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.intro .container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.intro-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--fg);
  text-wrap: pretty;
}
.intro-statement strong { font-weight: var(--fw-semibold); }
.intro-statement em { font-style: italic; font-weight: 300; color: var(--fg-muted); }
.intro-eyebrow { padding-top: 8px; }
@media (max-width: 800px) {
  .intro .container { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Section heading block ---------------------------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: var(--space-7);
}
.section-head h2 { max-width: 14ch; }
.section-head .lede { justify-self: end; max-width: 48ch; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .lede { justify-self: start; }
}

/* ---------- Typy hrobů (tabs) -------------------------------- */
.types-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.types-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  position: relative;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--fg-muted);
  white-space: nowrap;
  transition: color var(--dur-micro) var(--ease);
}
.tab-btn:hover { color: var(--fg); }
.tab-btn[aria-selected="true"] { color: var(--fg); }
.tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.tab-btn .tab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  margin-right: 10px;
  letter-spacing: 0.04em;
}
.tab-btn[aria-selected="true"] .tab-num { color: var(--accent); }

.tab-panel { display: none; }
.tab-panel[aria-hidden="false"] { display: grid; }
.tab-panel {
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  animation: fadeUp 400ms var(--ease);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
}
.tab-img img {
  width: 100%;
  height: auto;
  display: block;
}
.tab-content h3 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 16px; }
.tab-content p { color: var(--fg-muted); font-size: 17px; line-height: 1.65; }
.tab-content .specs {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.tab-content .specs li {
  font-size: 14px;
  color: var(--fg);
}
.tab-content .specs .spec-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-subtle);
  margin-bottom: 4px;
}
@media (max-width: 880px) {
  .tab-panel[aria-hidden="false"] { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Materiály --------------------------------------- */
.materials {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.material {
  background: var(--surface-1);
  padding: 28px 24px;
  transition: background var(--dur-micro) var(--ease);
  cursor: default;
}
.material:hover { background: var(--surface-2); }
.material-swatch {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.material-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.005em;
  color: var(--fg);
  margin-bottom: 4px;
}
.material-origin {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.material-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.55; }

/* Stone swatches (approximate tones) */
.sw-zula      { background: linear-gradient(135deg, #5C5550, #8A847D); }
.sw-bengal    { background: linear-gradient(135deg, #181818, #2A2A2A); }
.sw-impala    { background: linear-gradient(135deg, #2C2C30, #4A4A50); }
.sw-tarn      { background: linear-gradient(135deg, #1F1F22, #3E3E42); }
.sw-paradiso  { background: linear-gradient(135deg, #5E3A2A, #8C5A3E); }
.sw-aurora    { background: linear-gradient(135deg, #5B2E2E, #8B4A4A); }
.sw-olive     { background: linear-gradient(135deg, #2E3A28, #4A5B3E); }
.sw-vahlovice { background: linear-gradient(135deg, #B6A793, #DCC9A9); }
.sw-viscont   { background: linear-gradient(135deg, #DAD3C6, #F0EADB); }
.sw-pivka     { background: linear-gradient(135deg, #9B6A4C, #C68B65); }

/* ---------- Postup (process) -------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.process-step {
  padding: 40px 28px 8px 0;
  border-right: 1px solid var(--border);
  position: relative;
}
.process-step:last-child { border-right: 0; }
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}
.process-step h3 {
  font-size: 22px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.process-step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 28ch;
}
.process-step .step-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 20px;
}
@media (max-width: 980px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-bottom: 1px solid var(--border); padding: 32px 24px 24px 0; }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--border); padding: 28px 0; }
  .process-step:last-child { border-bottom: 0; }
}

/* ---------- Galerie ----------------------------------------- */
.gallery {
  background: var(--bg);
}
.gallery-grid {
  column-count: 3;
  column-gap: 16px;
}
.gallery-item {
  position: relative;
  break-inside: avoid;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 700ms var(--ease), filter 300ms var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(0.92); }
.gallery-item .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  font-size: 12px;
  color: #F6F3EE;
  background: linear-gradient(180deg, transparent, rgba(20,24,31,0.7));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.gallery-item:hover .caption { opacity: 1; transform: translateY(0); }

@media (max-width: 880px) {
  .gallery-grid { column-count: 2; }
}

@media (max-width: 520px) {
  .gallery-grid { column-count: 1; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.96);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.lightbox .lb-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #E5E0D6;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-micro) var(--ease);
}
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: rgba(255,255,255,0.18); }

/* ---------- Reference --------------------------------------- */
.testimonials {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-7) 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
.testimonial-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--fg);
  margin: 0;
}
.testimonial-author {
  margin-top: auto;
  font-size: 12px;
  color: var(--fg-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.testimonial-author strong { color: var(--fg); font-weight: var(--fw-medium); display: block; margin-bottom: 2px; font-family: var(--font-body); font-style: normal; font-size: 14px; }
@media (max-width: 720px) {
  .testimonials { display: none; }
}

/* ---------- Oblast působení (region) ------------------------ */
.region { padding: var(--space-7) 0; }
.region .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.region-list { display: flex; flex-direction: column; gap: 0; }
.region-list .city {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
}
.region-list .city .km {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  letter-spacing: 0.06em;
}
.region-list .city.primary { color: var(--accent); }

.region-map {
  position: relative;
  aspect-ratio: 5 / 3;
  max-height: 320px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.region-map svg { width: 100%; height: 100%; display: block; }
@media (max-width: 880px) {
  .region .container { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- FAQ --------------------------------------------- */
.faq .container { max-width: 920px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.005em;
  color: var(--fg);
  transition: color var(--dur-micro) var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-toggle {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--fg);
  transition: transform var(--dur) var(--ease), background var(--dur-micro) var(--ease);
}
.faq-toggle::before { width: 10px; height: 1px; }
.faq-toggle::after { width: 1px; height: 10px; }
.faq-item[aria-expanded="true"] .faq-toggle { background: var(--accent); border-color: var(--accent); }
.faq-item[aria-expanded="true"] .faq-toggle::before,
.faq-item[aria-expanded="true"] .faq-toggle::after { background: var(--fg-on-accent); }
.faq-item[aria-expanded="true"] .faq-toggle::after { transform: rotate(90deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease);
}
.faq-a-inner { overflow: hidden; }
.faq-item[aria-expanded="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a-inner p {
  padding: 0 60px 28px 0;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 70ch;
}

/* ---------- Kontakt ----------------------------------------- */
.contact {
  background: var(--fg);
  color: #E5E0D6;
}
.contact .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.contact .eyebrow { color: rgba(229, 224, 214, 0.6); }
.contact .eyebrow::before { background: currentColor; }
.contact h2 { color: #F6F3EE; margin-bottom: 16px; }
.contact .lede { color: rgba(229, 224, 214, 0.7); max-width: 44ch; margin-bottom: 40px; }

.contact-info { display: flex; flex-direction: column; gap: 32px; padding-top: 56px; }
.contact-info .info-block .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(229, 224, 214, 0.5);
  margin-bottom: 8px;
}
.contact-info .info-block .value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--fw-medium);
  color: #F6F3EE;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.contact-info .info-block .value a { transition: color var(--dur-micro) var(--ease); }
.contact-info .info-block .value a:hover { color: #B6CC9F; }
.contact-info .info-block .sub { font-size: 13px; color: rgba(229, 224, 214, 0.6); margin-top: 4px; }
.contact-info .socials { display: flex; gap: 12px; margin-top: 8px; }
.contact-info .socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(229, 224, 214, 0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}
.contact-info .socials a:hover { background: rgba(229, 224, 214, 0.08); border-color: rgba(229, 224, 214, 0.4); }

/* Form */
.form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(229,224,214,0.12);
  border-radius: var(--radius-md);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.full { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(229, 224, 214, 0.6);
  font-weight: var(--fw-medium);
}
.field label .req { color: #B6CC9F; margin-left: 4px; }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(229,224,214,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #F6F3EE;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(229,224,214,0.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #B6CC9F;
  background: rgba(255,255,255,0.07);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23E5E0D6' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field.error input, .field.error select, .field.error textarea { border-color: #E6A2A2; }
.field .err-msg {
  font-size: 12px;
  color: #E6A2A2;
  display: none;
}
.field.error .err-msg { display: block; }

.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip {
  position: relative;
  padding: 10px 16px;
  border: 1px solid rgba(229,224,214,0.18);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(229,224,214,0.85);
  transition: border-color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
  cursor: pointer;
  user-select: none;
}
.radio-chip input { position: absolute; opacity: 0; }
.radio-chip:hover { border-color: rgba(229,224,214,0.45); color: #F6F3EE; }
.radio-chip:has(input:checked) { border-color: #B6CC9F; background: rgba(182,204,159,0.1); color: #F6F3EE; }

.file-drop {
  border: 1px dashed rgba(229,224,214,0.25);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(229,224,214,0.65);
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}
.file-drop:hover, .file-drop.drag { border-color: #B6CC9F; background: rgba(182,204,159,0.06); color: #F6F3EE; }
.file-drop input { display: none; }
.file-drop .file-name { display: block; margin-top: 6px; font-size: 12px; color: #B6CC9F; font-family: var(--font-mono); }

.form-consent {
  font-size: 12px;
  color: rgba(229,224,214,0.55);
  line-height: 1.55;
  margin: 12px 0 20px;
}
.form-consent a { text-decoration: underline; text-underline-offset: 3px; }

.form .btn-primary {
  background: #B6CC9F;
  color: #1F2A18;
  width: 100%;
  padding: 16px;
  font-size: 15px;
}
.form .btn-primary:hover { background: #C9DDB3; }

.form-success {
  display: none;
  padding: 32px;
  text-align: center;
  color: #F6F3EE;
}
.form-success.show { display: block; }
.form-success .check {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border: 1px solid #B6CC9F;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #B6CC9F;
}
.form-success h3 { color: #F6F3EE; font-size: 24px; margin-bottom: 8px; }
.form-success p { color: rgba(229,224,214,0.7); font-size: 14px; }

@media (max-width: 980px) {
  .contact .container { grid-template-columns: 1fr; gap: 56px; }
  .contact-info { padding-top: 0; }
  .form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ------------------------------------------ */
.footer {
  background: var(--fg);
  color: rgba(229,224,214,0.55);
  padding: 28px 0;
  border-top: 1px solid rgba(229,224,214,0.08);
  font-size: 13px;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { color: rgba(229,224,214,0.85); transition: color var(--dur-micro) var(--ease); }
.footer a:hover { color: #B6CC9F; }
.footer-links { display: flex; gap: 24px; }
.footer-left { display: flex; flex-direction: column; gap: 4px; }
/* .footer má natvrdo tmavé pozadí v obou režimech (var(--fg) v light,
   #060606 v dark — viz níže), proto barva kreditu je natvrdo rgba na
   bázi stejné papírové barvy jako zbytek patičky, NE var(--fg-muted)
   (ta by v light módu dala kontrast ~2.9:1 na tmavém pozadí patičky). */
.footer-credit { font-size: 11px; color: rgba(229,224,214,0.6); }

/* ---------- Reveal on scroll -------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Misc -------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   ONDRA HANDOFF 2026-06-07 — 8 změn webu
   ============================================================ */

/* --- 1. Nav: zelená "Nezávazná poptávka" + zvýšený z-index --- */
.nav { z-index: 1000; }
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav-poptavka {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 6px;
}
@media (max-width: 720px) {
  .nav-poptavka { display: none; }
}

/* --- 5. Postup spolupráce: levý padding na dlaždicích --- */
.process-step {
  padding-left: 26px;
}
@media (max-width: 980px) {
  .process-step { padding-left: 22px; }
}
@media (max-width: 600px) {
  .process-step { padding-left: 18px; }
}

/* --- 3. Kámen sekce: 5×2 grid + fotky + lightbox + CTA --- */
.kameny-sekce {
  background: var(--bg);
  padding: 80px 0;
}
.kameny-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 48px;
}
@media (min-width: 600px)  { .kameny-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px)  { .kameny-grid { grid-template-columns: repeat(5, 1fr); } }

.dlazdice {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface-2);
  display: block;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.dlazdice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.dlazdice img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--ease);
}
.dlazdice:hover img,
.dlazdice:focus-visible img { transform: scale(1.07); }

.dlazdice .popis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 38px 14px 14px;
  color: #fff;
  background: linear-gradient(to top, rgba(20,24,31,0.92) 0%, rgba(20,24,31,0.55) 50%, rgba(20,24,31,0) 100%);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
.dlazdice .nazev {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.dlazdice .puvod {
  display: block;
  font-size: 11px;
  opacity: 0.78;
  margin-top: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dlazdice .lupa {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.dlazdice:hover .lupa,
.dlazdice:focus-visible .lupa { opacity: 1; }

/* CTA dlaždice (10., vpravo dole) — kamenná hnědá pro odlišení od zelené nav CTA */
.dlazdice-cta {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(145deg, #7a6a55, #5d4f3d);
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
  font-family: var(--font-sans);
}
.dlazdice-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.dlazdice-cta .ikona { font-size: 30px; }
.dlazdice-cta strong {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
}
.dlazdice-cta span:not(.ikona):not(.tlac) {
  font-size: 12.5px;
  opacity: 0.92;
  line-height: 1.45;
}
.dlazdice-cta .tlac {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 30px;
  padding: 8px 16px;
}

/* Lightbox pro Kámen sekci (.lb-kameny / .lbk-*) — scoped, nesedí s galerie .lightbox */
.lb-kameny {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(10,12,16,0.94);
  align-items: center;
  justify-content: center;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}
.lb-kameny.open { display: flex; }
.lb-kameny img {
  max-width: 75vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
.lb-kameny .lbk-popis {
  color: #fff;
  text-align: center;
  max-width: 75vw;
  font-family: var(--font-sans);
}
.lb-kameny .lbk-nazev {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-weight: 500;
  font-size: 26px;
}
.lb-kameny .lbk-text {
  font-size: 14px;
  opacity: 0.92;
  margin-top: 8px;
  line-height: 1.55;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.lb-kameny .lbk-meta {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  opacity: 0.7;
  margin-top: 10px;
  color: #e8ddca;
  letter-spacing: 0.06em;
}
.lb-kameny .lbk-zavrit {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 34px;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
}
.lb-kameny .lbk-sip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 38px;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px;
  opacity: 0.75;
  transition: opacity 200ms var(--ease);
}
.lb-kameny .lbk-sip:hover { opacity: 1; }
.lb-kameny .lbk-prev { left: 14px; }
.lb-kameny .lbk-next { right: 14px; }

/* --- 8. Oblast působení — Leaflet mapa --- */
.region-leaflet {
  background: var(--bg);
}
.region-leaflet .container {
  display: block;
  grid-template-columns: none;
  gap: 0;
}
.oblast-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 16px;
}
@media (min-width: 880px) {
  .oblast-wrap { grid-template-columns: 1.6fr 1fr; }
}
#mapa {
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 1;
}
.oblast-info h3 {
  margin: 0 0 12px;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 22px;
  font-weight: 500;
}
.oblast-info p {
  color: var(--fg-muted);
  line-height: 1.65;
  font-size: 15px;
  margin: 0 0 18px;
}
.legenda {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.legenda li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}
.legenda .tecka {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,0.12);
}
.oblast-info .pozn {
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--surface-2);
  border-left: 3px solid #7a6a55;
  padding: 12px 14px;
  border-radius: 6px;
  line-height: 1.55;
}

/* --- Reference: Google Places API build-time render (S14, replaced Trustindex) --- */
.testimonials .g-reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  background: var(--surface-1, #fdf9f3);
  border: 1px solid rgba(20, 24, 31, 0.08);
  border-radius: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.testimonials .g-summary-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonials .g-summary-text strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.testimonials .g-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-muted, #5C6270);
}
.testimonials .g-rating-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #14181F;
}
.testimonials .g-stars-big .g-star {
  color: #FBBC05;
  font-size: 16px;
  letter-spacing: 1px;
}
.testimonials .g-cta {
  font-size: 13px;
  color: var(--accent, #4A5D3E);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.testimonials .g-cta:hover { text-decoration: underline; }

.testimonials .g-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonials .g-review {
  background: var(--surface-1, #fdf9f3);
  border: 1px solid rgba(20, 24, 31, 0.06);
  border-radius: 10px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.testimonials .g-review-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
}
.testimonials .g-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8e0d3;
}
.testimonials .g-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent, #4A5D3E);
}
.testimonials .g-author {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #14181F;
}
.testimonials .g-when {
  font-size: 12px;
  color: var(--fg-muted, #5C6270);
}
.testimonials .g-stars .g-star {
  color: #FBBC05;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.testimonials .g-stars .g-star-off { color: #d6d0c4; }
.testimonials .g-review-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #14181F;
  margin: 0;
  flex: 1;
}
.testimonials .g-review-link {
  font-size: 12px;
  color: var(--fg-muted, #5C6270);
  text-decoration: none;
  letter-spacing: 0.02em;
  align-self: flex-start;
}
.testimonials .g-review-link:hover { color: var(--accent, #4A5D3E); }

@media (max-width: 599px) {
  .testimonials .g-reviews-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .testimonials .g-reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 11. Sticky offset pro anchor scroll na #poptavka --- */
#poptavka { scroll-margin-top: 96px; }

/* =====================================================================
   ONDRA HANDOFF 2026-06-08 — zarovnání hlaviček + mobil drobnosti
   Source: email "DS Kámen — pár doladění (zarovnání hlaviček + mobil)"
   ===================================================================== */

/* A) DESKTOP — zarovnání hlaviček „Ostatní služby" a „Oblast působení"
   V .section-head (#sluzby, #oblast) jsou eyebrow + h2 + popis tři volné
   položky gridu, nadpis odskakoval do špatného sloupce. Tohle dá levý
   sloupec = eyebrow + nadpis pod sebou, pravý sloupec = popis. Jen desktop. */
@media (min-width: 820px) {
  #sluzby .section-head,
  #oblast .section-head {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 6px;
    align-items: start;
  }
  #sluzby .section-head .eyebrow,
  #oblast .section-head .eyebrow { grid-column: 1; grid-row: 1; }
  #sluzby .section-head .h-section,
  #oblast .section-head .h-section { grid-column: 1; grid-row: 2; margin-top: 0; }
  #sluzby .section-head .lede,
  #oblast .section-head .lede {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
  }
}

/* (volitelné) nadpis sekce Reference doleva jako zbytek webu */
.testimonials .section-head { text-align: left; }

/* B0) MOBIL — sekce Kámen: poslední CTA dlaždice „Nevybrali jste si?".
   Ve čtverci 153×153 se nevešlo tlačítko. Na mobilu zobrazíme 8 kamenů
   (9. skryjeme) a CTA roztáhneme přes celou šířku ve výšce dlaždice. */
@media (max-width: 599px) {
  .dlazdice:has(+ .dlazdice-cta) { display: none; }
  .dlazdice-cta {
    grid-column: 1 / -1;
    aspect-ratio: 2.08 / 1;
    height: auto;
    min-height: 0;
    justify-content: center;
    gap: 5px;
    padding: 12px 20px;
    text-align: center;
  }
  .dlazdice-cta .ikona { display: none; }
  .dlazdice-cta strong { font-size: 18px; line-height: 1.1; }
  .dlazdice-cta > span:not(.tlac):not(.ikona) {
    font-size: 12.5px;
    line-height: 1.3;
    max-width: 300px;
  }
  .dlazdice-cta .tlac { margin-top: 3px; }
}

/* B2) MOBIL — zobrazit sekci Reference (Google recenze) i na telefonu.
   Byla pod 720px schovaná (display:none). Trustindex je mobilní-friendly. */
@media (max-width: 720px) {
  .testimonials { display: block; }
}

/* =====================================================================
   TMAVÝ REŽIM (den/noc) — Ondra handoff 2026-07-08
   Princip: html[data-theme="dark"] přepisuje sémantické proměnné z
   :root (viz blok "Mode override: paper-light" nahoře). Vše, co barvy
   čte z var(--...), se přebarví samo. Barvy z nového letáku:
   černá #0A0A0A + firemní limetka #B0C838.
   Var-mapping z Ondrova prototypu na reálné jméno v tomto souboru:
     --ink      -> --fg
     --muted    -> --fg-muted (+ --fg-subtle pro jemnější odstín)
     --line     -> --border / --border-strong
     --white    -> --surface-1
     --bg-alt   -> --surface-2 (+ --surface-3)
     --accent-d -> --accent-hover / --accent-press
   ===================================================================== */
html[data-theme="dark"] {
  --bg:            #0A0A0A;
  --bg-elevated:   #111111;
  --surface-1:     #161616;
  --surface-2:     #1c1c1c;
  --surface-3:     #232323;

  --fg:            #F0F0EA;
  --fg-muted:      #9aa0a8;
  --fg-subtle:     #7a8088;

  --border:        rgba(240, 240, 234, 0.10);
  --border-strong: rgba(240, 240, 234, 0.20);

  --accent:        #B0C838;       /* firemní limetka místo mechové zelené */
  --accent-hover:  #C3DA4C;
  --accent-press:  #93A82C;
  --accent-tint:   rgba(176, 200, 56, 0.10);
  --fg-on-accent:  #0A0A0A;       /* na limetce musí být tmavý text */

  --focus-ring:    #B0C838;
}

/* Nav má natvrdo světlé pozadí (rgba paper barva) pro blur efekt —
   v dark by prosvítalo světle, potřebuje vlastní tmavou variantu. */
html[data-theme="dark"] .nav {
  background: rgba(10, 10, 10, 0.85);
}

/* Kontakt sekce má natvrdo background: var(--fg) — v light je --fg tmavý
   ink, takže sekce vypadá tmavá už teď. V dark by --fg zesvětlal na
   #F0F0EA a sekce by zbělela. Uzamknout na tmavé pozadí i v dark. */
html[data-theme="dark"] .contact {
  background: #111417;
}

/* Footer má stejný problém — background: var(--fg). */
html[data-theme="dark"] .footer {
  background: #060606;
}

/* Recenze (.g-review): pozadí a border už čtou proměnné (var(--surface-1)),
   přebarví se samy. Ale text/rating mají natvrdo světlý inline fallback
   barvy (#14181F) jako pojistku pro starší prohlížeče — v dark by zůstal
   tmavý text na tmavém pozadí. Doplnit. */
html[data-theme="dark"] .testimonials .g-review-text,
html[data-theme="dark"] .testimonials .g-author,
html[data-theme="dark"] .testimonials .g-rating-big {
  color: var(--fg);
}
html[data-theme="dark"] .testimonials .g-avatar {
  background: var(--surface-3);
}
html[data-theme="dark"] .testimonials .g-stars .g-star-off {
  color: var(--surface-3);
}

/* Hero image caption + galerie/kámen lightboxy jsou už tmavé overlaye
   na obou režimech — beze změny. Stín pod hero obrázkem zesílit pro dark. */
html[data-theme="dark"] .hero-img-wrap img {
  box-shadow: none;
}
html[data-theme="dark"] .hero-img-wrap {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

/* Materiálové vzorky (.material-swatch) mají inset bílý stín pro lesk —
   na tmavém pozadí karty (--surface-1) je jemný, necháváme, jen ztlumit. */
html[data-theme="dark"] .material-swatch {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Mapa (#mapa) — jemný stín pro tmavé pozadí, ať dlaždice CARTO dark
   opticky nesplývají s okolím sekce. */
html[data-theme="dark"] #mapa {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Legenda teček u mapy má natvrdo světlý border pro kontrast na papíru. */
html[data-theme="dark"] .legenda .tecka {
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---------- Přepínač den/noc (switch), vedle telefonu v .nav-actions --- */
.theme-switch {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}
.theme-switch:hover { border-color: var(--fg-muted); }
.theme-switch svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--fg-muted);
}
.theme-switch .ico-sun { left: 7px; }
.theme-switch .ico-moon { right: 7px; }
.theme-switch .knob {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-1);
  box-shadow: 0 1px 4px rgba(20, 24, 31, 0.35);
  transition: left var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}
html[data-theme="dark"] .theme-switch { background: var(--surface-3); }
html[data-theme="dark"] .theme-switch .knob {
  left: 31px;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
/* Mobil: přepínač den/noc ZŮSTÁVÁ viditelný (Board 2026-07-08).
   Telefon vedle něj = jen ikona, aby se do úzké lišty vešel oba. */
@media (max-width: 720px) {
  .nav-cta-label { display: none; }
  .nav-cta { padding: 9px; gap: 0; }
  .nav-actions { gap: 10px; }
}

/* =====================================================================
   REFERENCE — jeden řádek na desktopu (Ondra handoff 2026-07-08)
   5 karet v .g-reviews-grid dnes na desktopu tečou do 2 řádků (4 + 1).
   Nad 1200px zobrazit 4 karty ve 4 sloupcích v jednom řádku, pátou
   skrýt. Pod 1200px beze změny (auto-fit, všech 5 recenzí).
   ===================================================================== */
@media (min-width: 1200px) {
  .testimonials .g-reviews-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials .g-review:nth-child(n+5) { display: none; }
}
