/* =========================================================
   YVEX – styl webu (vizuální směr „Tmavě zelená s fotkou“,
   vybraný klientem 19. 11. 2026; archiv variant: docs/archiv/).
   ========================================================= */

:root {
  /* barvy */
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f1f5ee;
  --text: #1d1d1b;
  --muted: #4a5048;
  --brand: #1b5a29;
  --brand-strong: #154820;
  --accent: #78b849;
  --accent-soft: #e6f0df;
  --border: #e1e7dd;
  --focus: #1b5a29;

  --btn-bg: #1b5a29;
  --btn-text: #ffffff;
  --btn-bg-hover: #154820;
  --btn2-bg: transparent;
  --btn2-text: #ffffff;
  --btn2-border: rgba(255, 255, 255, 0.55);

  --hero-bg: #0f2d17;
  --hero-text: #ffffff;
  --hero-muted: #d3e0cf;

  --header-bg: rgba(13, 40, 20, 0.96);
  --footer-bg: #f4f5f2;

  /* typografie */
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: var(--font-body);
  --head-weight: 700;
  --head-tracking: -0.02em;
  --h1-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
  --h2-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem);
  --h3-size: 1.125rem;

  /* tvary */
  --radius: 12px;
  --radius-btn: 10px;
  --radius-media: 16px;

  /* rozvržení */
  --container: 1160px;
  --gutter: 16px;
  --section-y: clamp(4rem, 3rem + 4vw, 7rem);
  --header-h: 76px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --header-h: 92px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-strong); }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: var(--h1-size); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--h2-size); font-weight: 800; }
h3 { font-size: var(--h3-size); letter-spacing: -0.01em; line-height: 1.3; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--text); color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-btn); border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { background: var(--btn-bg-hover); color: var(--btn-text); }
.btn--secondary { background: var(--btn2-bg); color: var(--btn2-text); border-color: var(--btn2-border); }
.btn--secondary:hover { color: var(--btn2-text); border-color: currentColor; }
/* světle zelené tlačítko jen na tmavém podkladu (hlavička, hero) */
.site-header .btn--primary, .hero .btn--primary { background: #78b849; color: #0d2814; }
.site-header .btn--primary:hover, .hero .btn--primary:hover { background: #93cc68; color: #0d2814; }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }

/* ---------- hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header :focus-visible,
.hero :focus-visible { outline-color: #a6d97f; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; padding: 6px 0; }
.logo { height: 58px; width: auto; }
@media (min-width: 720px) { .logo { height: 72px; } }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: #eef4ec; text-decoration: none; font-weight: 500; font-size: 0.975rem; border-radius: 8px;
}
.site-nav a:hover { color: #ffffff; background: rgba(255, 255, 255, .1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 600; text-decoration: none; color: #eef4ec; white-space: nowrap; }
.header-phone:hover { color: #ffffff; }

.menu-toggle {
  display: none; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px; background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: #ffffff; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* „Zavolat“ a tlačítko menu stojí v DOM před navigací, aby po otevření menu
   vedl Tab rovnou na jeho odkazy (WCAG 2.4.3). */
.header-mobile { display: none; }

@media (max-width: 1039.98px) {
  .header-actions { display: none; }
  .header-mobile { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0; margin: 0;
    background: #0f2d17; border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 16px 32px -16px rgba(20, 30, 20, .25);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
  .site-nav a { min-height: 52px; font-size: 1.125rem; padding: 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0; }
  .site-nav li:last-child a { border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--hero-bg); color: var(--hero-text);
  padding: clamp(4rem, 3rem + 6vw, 8rem) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
/* zelený překryv přes fotku – drží kontrast textu ≥ 4.5:1 i nad světlou oblohou */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 40, 20, .80), rgba(13, 40, 20, .92));
}
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero-kicker { font-weight: 600; color: #a6d97f; margin-bottom: 18px; font-size: 1rem; }
.hero h1 { max-width: 13ch; }
.hero-lead { margin-top: 24px; max-width: 36rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--hero-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture { display: contents; }

.hero-facts {
  display: grid; gap: 0; margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-facts li { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); color: var(--hero-muted); display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { color: var(--hero-text); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; font-family: var(--font-head); }
@media (min-width: 720px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .hero-facts li { border-bottom: 0; padding: 24px 24px 24px 0; }
  .hero-facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .18); }
}

/* ---------- sekce ---------- */
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.125rem; }
.section-head--side .btn { margin-top: 28px; }

.split { display: grid; gap: 40px; }
@media (min-width: 1040px) {
  .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .section-head--side { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}

.icon { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Proč YVEX */
.features { display: grid; gap: 36px 40px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature .icon { margin-bottom: 16px; }
.feature p { margin-top: 6px; color: var(--muted); }

/* Správa – checklist */
.checklist { display: grid; gap: 0; border-top: 1px solid var(--border); }
.checklist li { position: relative; padding: 22px 0 22px 40px; border-bottom: 1px solid var(--border); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 25px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b5a29' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3L17 9'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.checklist p { margin-top: 4px; color: var(--muted); }
@media (min-width: 720px) {
  .checklist { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}

/* Další služby */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.services { display: grid; gap: 16px; grid-auto-rows: 1fr; }
.service { padding: 28px; display: flex; flex-direction: column; }
.service .icon { margin-bottom: 20px; }
.service p { margin-top: 8px; color: var(--muted); }
/* všechny služby jsou rovnocenné: stejná šířka i výška, neúplný poslední řádek zleva */
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* Kroky */
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--brand); }
.step::before {
  content: counter(step); display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 2.25rem; line-height: 1; color: var(--brand); margin-bottom: 18px; letter-spacing: -0.03em;
}
.step p { margin-top: 6px; color: var(--muted); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Příběh */
.story { max-width: 40rem; }
.story h2 { margin-bottom: 20px; }
.story-lead { font-size: 1.25rem; line-height: 1.5; color: var(--text); }
.story p + p { margin-top: 16px; }
.story p:not(.story-lead) { color: var(--muted); }
.story-quote { margin-top: 32px; padding-left: 20px; border-left: 3px solid var(--accent); }
.story-quote p { color: var(--text) !important; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.375rem; line-height: 1.35; letter-spacing: -0.01em; }
@media (min-width: 1040px) { .split--story { grid-template-columns: 7fr 5fr; align-items: center; } }

/* Fotky (ilustrační) */
.hero-media img, .story-media img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-media); background: var(--tint);
}
.hero-media img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-position: 50% 72%; }
.story-media img { object-position: 50% 40%; }
@media (min-width: 1040px) { .story-media img { aspect-ratio: 4 / 5; } }

/* Kontakt */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1040px) { .contact-grid { grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; } }
.contact-list { display: grid; gap: 22px; }
.contact-list dt { font-size: 0.9375rem; color: var(--muted); }
.contact-list dd { font-size: 1.1875rem; font-weight: 500; margin-top: 2px; }
.contact-list dd a { font-weight: 600; text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
.contact-list address { font-style: normal; }

.form { padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 720px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.req { color: var(--brand); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); border: 1px solid #858c81; border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 0.9375rem; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9375rem; color: var(--muted); }
.form .btn { justify-self: start; }
.form-status { font-weight: 600; color: var(--brand); }
.form-status:empty { display: none; }
.form-status.is-error { color: #b3261e; }
.privacy { border-top: 1px solid var(--border); padding-top: 14px; font-size: 0.9375rem; color: var(--muted); }
.privacy summary { cursor: pointer; font-weight: 600; color: var(--brand); min-height: 44px; display: flex; align-items: center; }
.privacy summary { list-style: none; gap: 10px; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.privacy[open] summary::after { content: "\2212"; }
.privacy__body { display: grid; gap: 10px; padding-top: 6px; }
.form .btn[disabled] { opacity: .7; cursor: progress; }

.map { margin-top: 48px; }
.map iframe { display: block; width: 100%; height: clamp(280px, 40vw, 420px); border: 0; border-radius: var(--radius); background: var(--tint); }
.map-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 600; }

/* Patička */
.site-footer { background: var(--footer-bg); padding: 56px 0 40px; font-size: 0.975rem; color: var(--muted); }
.site-footer a { color: var(--text); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.logo--footer { height: 72px; margin-bottom: 14px; }
.footer-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: 8px; }
.footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.875rem; }

/* ---------- omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
