/* ==========================================================================
   Rezmont s.r.o. – styly
   Barvy se používají VÝHRADNĚ přes proměnné z :root.
   ========================================================================== */

:root {
  /* Barvy */
  --forest: #2D3B2D;
  --forest-deep: #1F2A1F;
  --forest-mid: #4A7048;
  --sage: #84B082;
  --sage-text: #4A7048;
  --bark: #7A5433;
  --orange: #FF7D00;
  --orange-btn: #C25E00;
  --orange-btn-hover: #A34E00;
  --cream: #F6F3EE;
  --white: #FFFFFF;
  --text: #1C1C1E;
  --text-mid: #3D3D3D;
  --text-muted: #5F5F5F;
  --border: #D8D0C4;
  --error: #B3261E;
  --instagram: #C13584;

  /* Typografie */
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Geometrie */
  --r-sm: 8px;
  --r-md: 16px;
  --r-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(45, 59, 45, .10);
  --shadow-md: 0 4px 16px rgba(45, 59, 45, .12);
  --shadow-lg: 0 10px 40px rgba(45, 59, 45, .18);

  --nav-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
/* Pojistka proti 1px vodorovnému posunu při zmenšeném zobrazení na tabletu */
body { overflow-x: clip; }
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--forest);
  line-height: 1.2;
  margin: 0;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0; line-height: 1.75; }

a { color: var(--forest-mid); }
a:hover { color: var(--forest); }

/* Fokus na VŠECH interaktivních prvcích */
:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.icon {
  width: 1.25em; height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 80px; }
.section--cream { background: var(--cream); }

/* ---------- Přeskočit na obsah ---------- */
.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--r-sm);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); color: var(--white); }

/* ---------- Opakované prvky ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--bark);
}
.section-label::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--sage-text);
  flex-shrink: 0;
}

.accent-line {
  width: 56px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--sage));
  margin: 20px 0 24px;
}

.hl { color: var(--sage-text); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--orange-btn); color: var(--white); }
.btn-primary:hover {
  background: var(--orange-btn-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:disabled { cursor: progress; opacity: .85; transform: none; box-shadow: none; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 70%, transparent);
}
.btn-outline:hover {
  background: color-mix(in srgb, var(--white) 12%, transparent);
  color: var(--white);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-ghost-dark:hover { background: var(--forest); color: var(--white); }

/* ==========================================================================
   1. Navigace
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* Pozadí + rozostření na pseudoprvku: backdrop-filter přímo na hlavičce
   by z ní udělal containing block a fixní mobilní panel by se do ní "zavřel". */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: color-mix(in srgb, var(--forest) 97%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity .3s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: var(--r-sm);
}
.brand img { height: 40px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}
.brand-tag { font-size: .75rem; color: var(--sage); }

.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  color: color-mix(in srgb, var(--white) 90%, transparent);
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.nav-link:hover,
.nav-link[aria-current] { color: var(--white); }
.nav-link:hover::after,
.nav-link[aria-current]::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-cta { padding: 10px 22px; min-height: 44px; display: none; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 48px; height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  position: absolute;
  left: 12px;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: 16px; }
.nav-toggle-bar:nth-child(2) { top: 23px; }
.nav-toggle-bar:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99; /* pod hlavičkou, aby nepřekrýval křížek */
  background: color-mix(in srgb, var(--forest-deep) 55%, transparent);
}

@media (min-width: 900px) {
  .nav-cta { display: inline-flex; }
  .nav-backdrop { display: none; }
}

@media (max-width: 899.98px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    z-index: 110;
    width: min(320px, 80vw);
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--nav-h) + 24px) 32px 32px;
    background: var(--forest);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-link { font-size: 1.05rem; padding: 12px 0; }
}

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
  padding: 140px 0 96px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1);
  animation: hero-zoom 12s var(--ease) both;
}
/* Zmenšený desktop na tabletu: výška layout viewportu je tu přepočtená na 1440 px šířky
   (např. iPad na výšku ≈ 2070 px), takže 100dvh by hero nafouklo. Držíme desktopovou výšku. */
.is-scaled .hero { min-height: 900px; }
@keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--forest-deep) 90%, transparent) 0%,
    color-mix(in srgb, var(--forest) 65%, transparent) 55%,
    color-mix(in srgb, var(--forest-mid) 40%, transparent) 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 24px;
  border: 1px solid color-mix(in srgb, var(--white) 25%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 15%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage);
}
.hero-pill .icon { width: 16px; height: 16px; }

.hero h1 { color: var(--white); }
.hero h1 span { display: block; color: var(--sage); }

.hero-lead {
  max-width: 520px;
  margin-top: 24px;
  font-size: 1.15rem;
  color: color-mix(in srgb, var(--white) 85%, transparent);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.hero-stats {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100vw - 1200px) / 2 + 24px));
  bottom: 48px;
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0; padding: 0;
}
.hero-stat {
  min-width: 132px;
  padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--white) 12%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--white);
}
.hero-stat-label {
  display: block;
  font-size: .8rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--white) 80%, transparent);
}

.scroll-indicator {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: color-mix(in srgb, var(--white) 80%, transparent);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.scroll-indicator:hover { color: var(--white); }
.scroll-circle {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1.5px solid color-mix(in srgb, var(--white) 60%, transparent);
  border-radius: 50%;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-circle .icon { width: 16px; height: 16px; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Postupné nabíhání prvků hero */
.hero-anim { animation: fade-up .7s var(--ease) both; }
.hero-anim:nth-child(1) { animation-delay: .1s; }
.hero-anim:nth-child(2) { animation-delay: .2s; }
.hero-anim:nth-child(3) { animation-delay: .3s; }
.hero-anim:nth-child(4) { animation-delay: .4s; }
.hero-stats.hero-anim { animation-delay: .5s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (min-width: 768px) {
  .hero { padding-bottom: 200px; }
}
@media (max-width: 767.98px) {
  .hero-stats, .scroll-indicator { display: none; }
}

/* ==========================================================================
   Animace při scrollu (aktivují se jen když JS + IntersectionObserver fungují)
   ========================================================================== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .d1 { transition-delay: .1s; }
.js-reveal .d2 { transition-delay: .2s; }
.js-reveal .d3 { transition-delay: .3s; }
.js-reveal .d4 { transition-delay: .4s; }

/* ==========================================================================
   3. O nás
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  right: -24px;
  bottom: -24px;
  padding: 16px 24px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-badge-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--forest);
}
.about-badge-label { display: block; font-size: .8rem; color: var(--text-mid); }

.about-text h2 span { display: block; }
.about-text > p + p { margin-top: 16px; }
.about-text > p { color: var(--text-mid); }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  margin: 32px 0;
  padding: 0;
}
.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--forest-mid) 10%, transparent);
  color: var(--forest-mid);
}
.feature-icon .icon { width: 20px; height: 20px; }
.feature h3 { font-size: .9rem; font-weight: 600; color: var(--forest); }
.feature p { font-size: .85rem; line-height: 1.5; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 899.98px) {
  .about-grid { grid-template-columns: 1fr; gap: 64px; }
  .about-media { max-width: 520px; }
  .about-badge { right: 16px; }
}
@media (max-width: 499.98px) {
  .features { grid-template-columns: 1fr; }
}

/* ==========================================================================
   4. Služby
   ========================================================================== */
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.services-head > p { color: var(--text-mid); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0; padding: 0;
}
.service-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover,
.service-card:focus-within {
  border-color: var(--bark);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card:focus-within { outline: 3px solid var(--sage); outline-offset: 3px; }
.service-icon {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: contain;
}
.service-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bark) 10%, transparent);
  color: var(--bark);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.5;
}
.service-tag .icon { width: 14px; height: 14px; }
.service-card h3 { color: var(--forest); }
/* Celá karta klikatelná: odkaz v nadpisu se roztáhne přes kartu */
.service-link { color: inherit; text-decoration: none; }
.service-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
}
.service-link:focus-visible { outline: none; }
.service-card p { flex: 1; font-size: .95rem; color: var(--text-mid); }

@media (max-width: 1023.98px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .services-head { grid-template-columns: 1fr; gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. Galerie
   ========================================================================== */
.section-head-center {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head-center .section-label { justify-content: center; }
.section-head-center > p { margin-top: 16px; color: var(--text-mid); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px; /* pevná výška řádku: dlaždice jsou stejně vysoké a ořez je předvídatelný */
  gap: 16px;
  list-style: none;
  margin: 0; padding: 0;
}
.gallery li { display: flex; }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.g-item {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--cream);
  cursor: zoom-in;
}
.g-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.g-item:hover img,
.g-item:focus-visible img { transform: scale(1.06); filter: brightness(.82); }
/* Ořez na výšku: posunout výřez nahoru, aby lidem nechyběly hlavy */
.g-item img.pos-top { object-position: 50% 12%; }
.g-item img.pos-low { object-position: 50% 60%; }

@media (max-width: 767.98px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .gallery li:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 499.98px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .gallery li:first-child { grid-column: auto; }
}

/* Lightbox */
.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0;
  padding: 64px 72px;
  border: 0;
  background: transparent;
  color: var(--white);
}
.lightbox::backdrop { background: color-mix(in srgb, var(--forest-deep) 94%, transparent); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-height: 100%; }
.lb-figure img {
  max-width: min(1100px, 100%);
  max-height: calc(100dvh - 200px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.lb-figure figcaption { font-size: .95rem; text-align: center; color: color-mix(in srgb, var(--white) 90%, transparent); }
.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid color-mix(in srgb, var(--white) 30%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 10%, transparent);
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.lb-btn:hover { background: color-mix(in srgb, var(--white) 22%, transparent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599.98px) {
  .lightbox { padding: 72px 16px 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
}

/* ==========================================================================
   6. Kontakt
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--forest-mid) 12%, transparent);
  color: var(--forest-mid);
}
.contact-item h3 { font-size: .95rem; font-weight: 600; color: var(--forest); }
.contact-item p, .contact-item a { font-size: .95rem; line-height: 1.6; color: var(--text-mid); }
.contact-item a { text-decoration: underline; text-underline-offset: 3px; }
.contact-item a:hover { color: var(--forest-mid); }
.contact-item a.ig:hover { color: var(--instagram); }

.form-card {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.form-card h3 { margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label, .consent label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--error); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest-mid) 15%, transparent);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}
.field [aria-invalid="true"] { border-color: var(--error); }

.field-error {
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--error);
}

.consent { margin-bottom: 24px; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; }
.consent input {
  width: 22px; height: 22px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--forest-mid);
  cursor: pointer;
}
.consent label { font-weight: 400; font-size: .9rem; line-height: 1.5; color: var(--text-mid); cursor: pointer; }
.consent [aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.consent .field-error { margin-top: 6px; }

/* Past na roboty – mimo obrazovku, ne display:none (některé roboty ho přeskakují) */
.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.btn-block { width: 100%; }
.form-note { margin-top: 12px; font-size: .85rem; color: var(--text-muted); text-align: center; }

.form-alert {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--error);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--error) 6%, var(--white));
  color: var(--error);
  font-size: .9rem;
  line-height: 1.5;
}

.form-success { text-align: center; padding: 32px 0; }
.form-success .success-icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--forest-mid) 12%, transparent);
  color: var(--forest-mid);
}
.form-success .success-icon .icon { width: 36px; height: 36px; }
.form-success h3 { margin-bottom: 8px; }
.form-success h3:focus { outline: none; }
.form-success p { color: var(--text-mid); }

@media (max-width: 899.98px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 599.98px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px; }
}

/* ==========================================================================
   7. Patička
   ========================================================================== */
.site-footer {
  background: var(--forest);
  color: color-mix(in srgb, var(--white) 75%, transparent);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
}
.footer-brand { display: flex; align-items: flex-start; }
.footer-social { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 10%, transparent);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s var(--ease);
}
.social-pill:hover { background: color-mix(in srgb, var(--white) 18%, transparent); color: var(--white); }
.social-pill .icon { width: 18px; height: 18px; }

.footer-heading {
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 70%, transparent);
}
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a, .footer-contact span {
  font-size: .9rem;
  color: color-mix(in srgb, var(--white) 75%, transparent);
  text-decoration: none;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--sage); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px;
  font-size: .85rem;
  color: color-mix(in srgb, var(--white) 65%, transparent);
}
.footer-bottom p { line-height: 1.6; }
.footer-bottom a { color: color-mix(in srgb, var(--white) 65%, transparent); }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 767.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 499.98px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   8. Zpět nahoru
   ========================================================================== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s, background-color .2s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s, background-color .2s var(--ease);
}
.to-top:hover { background: var(--forest-mid); }
.to-top .icon { width: 20px; height: 20px; }

/* ==========================================================================
   Omezit pohyb
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-bg { transform: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Dokumentové stránky (obchodní podmínky, ochrana osobních údajů, cookies)
   ========================================================================== */
.legal-header {
  background: var(--forest);
  box-shadow: var(--shadow-md);
}
.legal-header .nav-inner { height: var(--nav-h); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  color: color-mix(in srgb, var(--white) 90%, transparent);
  text-decoration: none;
}
.legal-back:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.legal-back .icon { width: 18px; height: 18px; transform: rotate(180deg); }

.legal { padding-block: 64px 80px; background: var(--white); }
.legal .container { max-width: 840px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.legal .legal-meta { margin-top: 12px; font-size: .9rem; color: var(--text-muted); }
.legal h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 48px 0 16px; }
.legal h3 { font-size: 1.05rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-mid); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 12px 0; padding-left: 24px; line-height: 1.75; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--forest-mid); text-underline-offset: 3px; }
.legal a:hover { color: var(--forest); }
.legal strong { color: var(--text); }
.legal-box {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.legal-box p { margin: 0; line-height: 1.7; }
.legal-table-wrap { overflow-x: auto; margin: 16px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--border); line-height: 1.6; }
.legal th { font-family: var(--font-head); font-weight: 600; color: var(--forest); background: var(--cream); }
.legal td { color: var(--text-mid); }

.legal-footer .footer-bottom { border-top: 0; }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.legal-footer-links a[aria-current] { color: var(--white); }
.legal-back { white-space: nowrap; }
.legal-box + p, .legal-box + ol, .legal-table-wrap + p { margin-top: 16px; }
@media (max-width: 499.98px) {
  .legal-header .brand-tag { display: none; }
  .legal-header .brand img { display: none; }
}
