/* ===========================================================================
   VS Malíř — Theme v2 (nový vizuál, rozvržení beze změny)
   Patkové nadpisy (Instrument Serif) + bezpatkové písmo (Hanken Grotesk),
   „okénkové" karty s jemným rámečkem, pilulková navigace a tlačítka.
   Načítá se PO styles.css a jen přepisuje tokeny/vzhled — žádná struktura.
   =========================================================================== */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/instrument-serif-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/instrument-serif-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/instrument-serif-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/instrument-serif-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-display: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif; /* štítky, tlačítka */
  /* zaoblení: větší, „okénkové" */
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --section-y: clamp(4.5rem, 9vw, 8rem);
  /* teplejší, hlubší antracit (podle mockupu) */
  --concrete-950: #0c0a08;
  --concrete-900: #14110e;
  --concrete-800: #1b1713;
}
.theme-dark, [data-theme="dark"] {
  --bg-subtle: #100d0b;
  --surface: #14110e;
  --surface-card: #14110e;
  --border: rgba(246, 243, 238, 0.10);
  --border-strong: rgba(246, 243, 238, 0.20);
}
html:not(.theme-dark) { --border: #E3DCCF; }

body { font-feature-settings: "kern", "liga"; }

/* ----------------------------------------------------------- Nadpisy (serif) */
h1, h2, h3, h4, .vs-serif, .vs-section-heading__title, .vs-stat__value, .vs-card__title {
  font-family: var(--font-serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.012em;
  font-synthesis: none;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; }
h1 em, h2 em, h3 em, .vs-section-heading__title em, .vs-serif em {
  font-style: italic; color: var(--accent-text, var(--brass-600));
}
.theme-dark h1 em, .theme-dark h2 em, .theme-dark h3 em, .theme-dark .vs-section-heading__title em { color: var(--brass-400); }

.vs-section-heading { max-width: 760px; gap: var(--space-4); }
.vs-section-heading__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; }
.vs-section-heading__lead { font-size: 1.08rem; line-height: 1.6; }
.vs-card__title { font-size: 1.55rem; line-height: 1.1; margin-bottom: var(--space-3); }
.vs-card__text { font-size: 0.95rem; }
.vs-stat__value { font-size: clamp(2.4rem, 3.4vw, 3.1rem); line-height: 1; }
.vs-block-title { font-size: 1.7rem !important; line-height: 1.1; }
footer h3 { font-family: var(--font-text) !important; font-weight: 700 !important; font-size: 13px !important; letter-spacing: 0.12em !important; }
.vs-serif { font-size: inherit; }

/* ------------------------------------------------- Štítek (pilulka s obrysem) */
.vs-eyebrow {
  font-family: var(--font-text); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--accent-text, var(--accent));
  padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: var(--radius-pill); gap: 0; width: fit-content;
}
.vs-eyebrow::before { content: none; }
html .vs-badge--accent {
  background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent-text, var(--brass-700)); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11.5px; padding: 0.5em 1.1em;
}
html .theme-dark .vs-badge--accent, html.theme-dark .vs-badge--accent { color: var(--brass-300); }

/* ------------------------------------------------------------ Tlačítka (pill) */
.vs-btn { border-radius: var(--radius-pill); font-family: var(--font-text); font-weight: 600; letter-spacing: 0.005em; }
.vs-btn:hover { transform: translateY(-2px); }
.vs-btn:active { transform: translateY(0); }
.vs-btn--secondary { border-color: var(--border-strong); }
.vs-btn--secondary:hover { background: color-mix(in srgb, var(--text) 7%, transparent); border-color: var(--text-faint); }
.vs-icon-btn { border-radius: var(--radius-pill); }

/* ------------------------------------------------------------ Pole formulářů */
.vs-input, .vs-textarea, .vs-select { border-radius: 14px; background: var(--bg); border-color: var(--border-strong); }
.theme-dark .vs-input, .theme-dark .vs-textarea, .theme-dark .vs-select { background: var(--concrete-950); }
.vs-textarea { border-radius: 18px; }
.vs-checkbox__box { border-radius: 7px; }

/* ----------------------------------------------------- Karty = „okénka" */
.vs-card { border-radius: var(--radius-lg); background: var(--surface-card); border-color: var(--border); }
html:not(.theme-dark) .vs-card { box-shadow: 0 1px 2px rgba(33,29,24,.04); }
.vs-card__icon { border-radius: 16px; }
.vs-services-grid .vs-card { padding: 4px; }
.vs-win { position: relative; }
.vs-win-dots { display: flex; gap: 7px; padding: 15px 22px; margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-5); border-bottom: 1px solid var(--border); }
.vs-win--flush .vs-win-dots { margin: 0; }
.vs-win-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: block; }
.vs-win-dots i:first-child { background: color-mix(in srgb, var(--accent) 80%, transparent); }
.vs-calc-table thead tr { background: transparent !important; }
.vs-calc-table th { text-transform: uppercase; letter-spacing: 0.1em; font-size: 11.5px !important; }
.vs-calc-table td:last-child { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------- Rozsah oprav: výběrové karty */
.vs-repairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.vs-repair {
  position: relative; display: flex; flex-direction: column; gap: 3px; cursor: pointer;
  padding: 14px 44px 14px 16px; border-radius: 16px; min-height: 64px;
  background: var(--surface); border: 1px solid var(--border-strong);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.vs-repair input { position: absolute; opacity: 0; width: 0; height: 0; }
.vs-repair::after {
  content: ""; position: absolute; right: 14px; top: 16px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.vs-repair:hover { border-color: var(--text-faint); transform: translateY(-1px); }
.vs-repair__title { font-weight: 700; font-size: 14.5px; color: var(--text); line-height: 1.25; }
.vs-repair__hint { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.vs-repair.is-on { border-color: var(--accent); background: var(--accent-soft); }
.vs-repair.is-on::after { border-color: var(--accent); background: var(--accent) radial-gradient(circle, var(--on-accent) 0 3.5px, transparent 4px); }
.vs-repair:focus-within { box-shadow: 0 0 0 3px var(--focus-ring); }

/* ------------------------------------------------------ Navigace (pilulka) */
nav.vs-nav-desktop {
  padding: 5px; gap: 2px !important; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--border);
}
.vs-navlink { border-radius: var(--radius-pill) !important; padding: 8px 16px !important; font-size: 14.5px !important; font-weight: 500 !important; transition: background .2s, color .2s; }
.vs-navlink:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.vs-navlink.is-active { color: var(--text) !important; background: color-mix(in srgb, var(--accent) 18%, transparent); }

/* ------------------------------------------------------------------- Hero */
#domov::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(214,174,99,.11), transparent 70%);
}
#domov > * { position: relative; }
#domov .vs-hero-badge { border-radius: 18px; }

/* FAQ — otázky patkově */
#caste-dotazy .vs-card { border-radius: 20px; }
#caste-dotazy button { font-family: var(--font-serif) !important; font-weight: 400 !important; font-size: 1.35rem !important; letter-spacing: -0.005em; }

/* Galerie / kontakt: kulatější rohy přes tokeny; jemnější oddělení sekcí */
.vs-section + .vs-section { border-top: 1px solid var(--border-faint); }

@media (max-width: 640px) {
  .vs-repairs { grid-template-columns: 1fr; gap: 8px; }
  .vs-repair { min-height: 0; padding: 12px 44px 12px 16px; }
  .vs-repair::after { top: 50%; margin-top: -9px; }
  .vs-win-dots { padding: 13px 18px; }
}
@media (prefers-reduced-motion: reduce) { .vs-repair, .vs-btn { transition: none; } }

/* ---------------------------------------------- Hlavička: logo | pilulka | akce */
.vs-header-row { display: flex; justify-content: space-between; }
@media (min-width: 921px) {
  .vs-header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-4); }
  .vs-header-row > :first-child { justify-self: start; }
  .vs-header-row > :last-child { justify-self: end; }
  header .vs-logo-tag { display: none !important; }
}
@media (min-width: 921px) and (max-width: 1180px) {
  .vs-header-row { grid-template-columns: auto 1fr auto; }
  .vs-header-row > nav { justify-self: center; }
}

/* ------------------------------------------------ Hero: vystředěný, velký nadpis */
.vs-hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: clamp(0.5rem, 3vw, 2.5rem); }
#domov h1 {
  font-size: clamp(2.9rem, 8vw, 6.4rem); line-height: 1.0; letter-spacing: -0.02em;
  margin: var(--space-6) 0 0; color: var(--concrete-50); max-width: 14ch;
}
#domov h1 em { color: var(--brass-400); padding-right: 0.06em; }
.vs-hero-lead { max-width: 600px; margin: var(--space-6) 0 0; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--concrete-300); line-height: 1.6; }
.vs-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: var(--space-7); }
.vs-hero-regions { margin: var(--space-6) 0 0; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--concrete-400); }
#domov .vs-btn--primary { background: var(--concrete-50); color: var(--concrete-950); box-shadow: none; }
#domov .vs-btn--primary:hover { background: #fff; box-shadow: 0 10px 30px rgba(246,243,238,.14); }
#domov .vs-btn--secondary { background: var(--concrete-800); color: var(--concrete-50); border-color: var(--border); }
#domov .vs-btn--secondary:hover { background: #231e18; border-color: var(--border-strong); }
.vs-hero-photo { position: relative; max-width: 1040px; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; }
.vs-hero-photo__frame { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 8.5; border: 1px solid var(--border-strong); box-shadow: 0 30px 70px rgba(0,0,0,.5); background: var(--concrete-900); }
.vs-hero-photo__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (max-width: 640px) {
  .vs-hero-photo__frame { aspect-ratio: 4 / 3.2; }
  .vs-hero-regions { letter-spacing: 0.04em; font-size: 12px; }
  #domov .vs-hero-badge { left: 12px; bottom: -16px; }
}

/* poznámky pod zaškrtávátky: zarovnané přesně pod text (box 22 px + mezera 12 px) */
.vs-addon-note { margin: 4px 0 0; padding-left: 34px; font-size: 13px; line-height: 1.5; max-width: 46ch; }

/* ---- Doladění podle pravidel z @koppkev (méně dekorace, jednotná typografie) ---- */
.vs-section-heading .vs-eyebrow { display: none; }           /* zbytečné štítky nad nadpisy */
.vs-btn { font-size: 15px; }                                 /* text tlačítek o 1 px menší než okolní text */
.vs-btn--lg { font-size: 16px; }
.vs-btn--sm { font-size: 14px; }
h1 { letter-spacing: -0.025em; }
h2, .vs-section-heading__title { letter-spacing: -0.018em; } /* čím větší písmo, tím těsnější mezery */
#domov h1 { letter-spacing: -0.028em; }
.vs-section-heading__lead, .vs-hero-lead, .vs-card__title { text-wrap: balance; } /* žádné osamocené slovo na řádku */
