/* ============ Tokens ============ */
:root {
  --navy-950: #071428;
  --navy-900: #0B1F3A;
  --navy-800: #12294B;
  --navy-700: #1C3A66;
  --navy-500: #3D5A87;
  --navy-100: #E4EAF3;
  --navy-50:  #F1F4F9;

  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --text: #0E1A2B;
  --text-muted: #4A5568;
  --border: #DFE4EC;
  --error: #B42318;
  --success: #116149;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-signature: "Ephesis", "Segoe Script", "Brush Script MT", cursive;
  /* Popisky nad sekcemi a drobné nadpisy – elegantní kurzíva (uživatel nechtěl „VELKÉ ROZTAŽENÉ“ AI popisky) */
  --font-label: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ink: #111111;          /* barva podpisu – černé pero */
  --sig-size: clamp(1.2rem, .85rem + 1.25vw, 1.55rem);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .08);
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, .22);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 160ms;
  --dur: 280ms;

  --header-h: 72px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
/* Fotky v rámečcích (oblouky, služby, kontakt): <picture> vyplní rámeček absolutně.
   Safari na iPhonu jinak nedopočítá šířku obrázku (fotka byla užší než panel). */
.arch, .panel-media, .contact-media { position: relative; }
.arch, .contact-media { width: 100%; } /* šířka natvrdo i tady – rámeček s aspect-ratio nesmí záviset na obsahu (Safari) */
.arch > picture, .panel-media > picture, .contact-media > picture { display: block; position: absolute; inset: 0; }
.arch img, .panel-media img, .contact-media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { margin: 0; color: var(--navy-900); line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

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

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

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

.eyebrow {
  display: block;
  font: italic 500 clamp(1.25rem, 1.1rem + .4vw, 1.45rem)/1.25 var(--font-label);
  color: var(--navy-500); margin-bottom: .6rem;
}

/* ============ Buttons ============ */
.btn {
  --btn-bg: var(--navy-900); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font: 600 1rem/1.2 var(--font-sans);
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn .icon { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-primary:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy-900); border-color: var(--navy-100); }
.btn-ghost:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy-900); }
.btn-light:hover { background: var(--navy-50); color: var(--navy-900); }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 249, .86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
/* Hlavička je širší než obsah stránky – podpis je blíž levému okraji a menu má víc místa */
.site-header .header-inner { width: min(1600px, 100% - 2.5rem); }
@media (min-width: 1280px) { .site-header .header-inner { width: calc(100% - 4rem); max-width: 1600px; } }

.brand { display: inline-flex; align-items: center; flex: none; min-width: 0; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
/* Logo = podpis perem (písmo Ephesis) */
.brand-name.signature {
  font: 400 var(--sig-size)/1 var(--font-signature);
  white-space: nowrap; display: block;
  word-spacing: -.1em; /* slova jména blíž k sobě (uživatel chtěl); víc ne – tahy písmen by se slily */
  padding-right: .15em; /* koncové tahy písma přesahují */
}
.brand-role { font: italic 500 .8125rem/1 var(--font-label); color: var(--text-muted); margin: .2rem 0 0 .15rem; }
.brand--light { color: #fff; }
.brand--light .brand-role { color: #B9C6DA; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav .btn { white-space: nowrap; }
.site-nav ul a {
  position: relative; display: inline-block; padding: .5rem 0; white-space: nowrap;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .9375rem;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--navy-900); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="true"] { color: var(--navy-900); }

.site-nav .lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.site-nav .lang-switch a {
  display: grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 .5rem;
  border-radius: 999px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  color: var(--text-muted); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.site-nav .lang-switch a::after { display: none; }
.site-nav .lang-switch a:hover { color: var(--navy-900); background: var(--navy-50); }
.site-nav .lang-switch a[aria-current="page"] { background: var(--navy-900); color: #fff; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--navy-900); cursor: pointer; place-items: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }

@media (min-width: 1240px) and (max-width: 1365px) {
  .site-nav { gap: 1.25rem; }
  .site-nav ul { gap: 1.25rem; }
}
@media (max-width: 1239px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .85rem 0; font-size: 1.0625rem; border-bottom: 1px solid var(--border); }
  .site-nav ul a::after { display: none; }
  .site-nav .lang-switch { flex-direction: row; align-self: flex-start; }
  .site-nav .lang-switch a { min-width: 52px; min-height: 44px; padding: 0 .75rem; border-bottom: 0; font-size: .9375rem; }
}

/* ============ Arch image frame (echo of the arch in photos) ============ */
.arch {
  position: relative; overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: var(--navy-50);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Hero ============ */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10vw; top: -20%; width: 60vw; height: 120%;
  background: radial-gradient(closest-side, var(--navy-50), transparent 70%);
  z-index: -1;
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); line-height: 1.05; margin-bottom: 1.5rem; }
.hero h1 .accent { font-style: italic; color: var(--navy-500); }
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--text-muted); max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.75rem; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-top: 1.75rem; border-top: 1px solid var(--border); max-width: 34rem; }
.hero-facts li { display: flex; flex-direction: column; gap: .15rem; }
.hero-facts strong { font: 600 1.5rem/1.1 var(--font-serif); color: var(--navy-900); }
.hero-facts span { font-size: .875rem; color: var(--text-muted); line-height: 1.35; }

.hero-media { position: relative; }
.hero-media .arch { aspect-ratio: 4 / 4.6; }
.hero-media .arch img { object-position: 55% 30%; }
.hero-badge {
  position: absolute; left: -1rem; bottom: 2rem;
  display: flex; flex-direction: column; gap: .1rem;
  padding: .9rem 1.2rem; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.hero-badge-name { font-weight: 600; color: var(--navy-900); font-size: .9375rem; }
.hero-badge-role { font-size: .8125rem; color: var(--text-muted); }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 4rem; }
}
@media (max-width: 959px) {
  .hero-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-badge { left: .75rem; bottom: 1rem; }
}
@media (max-width: 479px) {
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li:last-child { grid-column: 1 / -1; }
  .hero-actions .btn { width: 100%; }
}

/* ============ Sections ============ */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p:not(.eyebrow) { color: var(--text-muted); font-size: 1.125rem; }
.section-head--left { text-align: left; margin-inline: 0; }

/* ============ Services (tabs) ============ */
.services { background: var(--surface); border-block: 1px solid var(--border); }

.service-tabs {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}
.service-tab--featured, .service-tab:last-child { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .service-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-tab--featured, .service-tab:last-child { grid-column: auto; }
}
@media (max-width: 599px) { .panel-lead { font-size: 1.0625rem; } }
@media (min-width: 1100px) {
  .service-tabs { grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr)); }
  .service-tab { flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.1rem; }
}

.service-tab {
  display: flex; align-items: center; gap: .85rem; text-align: left;
  min-height: 76px; padding: .9rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  font: inherit; cursor: pointer; touch-action: manipulation;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.service-tab:hover { border-color: var(--navy-500); box-shadow: var(--shadow-sm); }
.service-tab:active { transform: scale(.985); }
.tab-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--navy-50); color: var(--navy-900);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.tab-icon .icon { width: 22px; height: 22px; }
.tab-text { display: flex; flex-direction: column; min-width: 0; }
.tab-label { font-weight: 600; color: var(--navy-900); line-height: 1.25; }
.tab-sub { font-size: .8125rem; color: var(--text-muted); line-height: 1.3; }

@media (max-width: 519px) {
  .service-tab:not(.service-tab--featured):not(:last-child) { flex-direction: column; align-items: flex-start; gap: .6rem; padding: .9rem; }
  .service-tab:not(.service-tab--featured) .tab-icon { width: 38px; height: 38px; }
  .tab-label { overflow-wrap: anywhere; }
}

.service-tab--featured { border-color: var(--navy-100); }
.service-tab--featured .tab-label { font-family: var(--font-serif); font-size: 1.125rem; }

.service-tab[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); box-shadow: var(--shadow); }
.service-tab[aria-selected="true"] .tab-label { color: #fff; }
.service-tab[aria-selected="true"] .tab-sub { color: #B9C6DA; }
.service-tab[aria-selected="true"] .tab-icon { background: rgba(255, 255, 255, .12); color: #fff; }

.service-panel {
  --pp: clamp(1.5rem, 4vw, 3rem); /* vnitřní okraj panelu – fotka ho „přetéká“ až k hraně */
  display: grid; gap: 2rem; align-items: stretch;
  padding: var(--pp); overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-50); border: 1px solid var(--navy-100);
  animation: panel-in var(--dur) var(--ease-out);
}
.service-panel[hidden] { display: none; }
.service-panel:focus-visible { outline-offset: 4px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel-body { max-width: 40rem; }
.panel-body h3 { font-family: var(--font-serif); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: 1rem; }
.panel-body h4 { font: italic 500 1.25rem/1.25 var(--font-label); color: var(--navy-500); margin: 1.75rem 0 .75rem; }
.panel-lead { font-size: 1.1875rem; color: var(--navy-900); font-weight: 500; }
.panel-body > p:not(.panel-lead) { color: var(--text-muted); }
.panel-body .btn { margin-top: 2rem; }

.check-list { display: grid; gap: .65rem; }
@media (min-width: 600px) { .check-list { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.check-list li { position: relative; padding-left: 2rem; line-height: 1.45; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* Featured panel – navy */
.service-panel--featured { background: var(--navy-900); border-color: var(--navy-900); color: #DCE4F0; }
.service-panel--featured h3 { color: #fff; }
.service-panel--featured .panel-lead { color: #fff; }
.service-panel--featured .panel-body > p:not(.panel-lead) { color: #C3CEDF; }
.service-panel--featured h4 { color: #9FB2CF; }
.service-panel--featured .check-list li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.service-panel--featured :focus-visible { outline-color: #fff; }
/* Fotka v panelu služby – bez rámečku, až k okraji panelu a plynule vybledlá do pozadí
   (uživatel nechtěl, aby fotka působila „vyříznutě“) */
.panel-media { position: relative; overflow: hidden; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* mobil: fotka pod textem přes celou šířku panelu, nahoře se rozplyne do pozadí */
.panel-media {
  aspect-ratio: 3 / 2;
  /* šířka natvrdo: Safari dá prvku mřížky s aspect-ratio jinak jen šířku obsahu (fotka byla jako malý čtvereček) */
  width: calc(100% + var(--pp) * 2); justify-self: stretch;
  margin: -1rem calc(var(--pp) * -1) calc(var(--pp) * -1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
}

@media (min-width: 960px) {
  /* každý panel, který má fotku: text vlevo, fotka vpravo přes celou výšku panelu */
  .service-panel--featured,
  .service-panel:has(> .panel-media) { grid-template-columns: 1.15fr .85fr; gap: 0; }
  .panel-media {
    aspect-ratio: auto; min-height: 460px;
    width: calc(100% + var(--pp)); align-self: stretch;
    margin: calc(var(--pp) * -1) calc(var(--pp) * -1) calc(var(--pp) * -1) 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 18%, #000 42%);
            mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 18%, #000 42%);
  }
  .service-panel:has(> .panel-media) .panel-body { padding-right: 2rem; }
}

/* ============ Approach ============ */
.approach-grid { display: grid; gap: 3rem; align-items: center; }
.approach-media .arch { aspect-ratio: 4 / 5; max-width: 480px; margin-inline: auto; }
.approach-media .arch img { object-position: 38% 50%; }
.pillars { display: grid; gap: 1rem; }
.pillar {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.4rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.pillar h3 { margin-bottom: .35rem; }
.pillar p { color: var(--text-muted); font-size: 1rem; }
.pillar-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--navy-900); color: #fff;
}
.pillar-icon .icon { width: 22px; height: 22px; }
@media (min-width: 960px) {
  .approach-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; }
}

/* ============ Process ============ */
.process { background: var(--navy-50); }
.process-grid { display: grid; gap: 2.5rem; }
.process-intro h2 { margin-bottom: 1rem; }
.process-intro p:not(.eyebrow) { color: var(--text-muted); font-size: 1.125rem; max-width: 28em; margin-bottom: 2rem; }
@media (min-width: 960px) {
  .process-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
  .process-intro { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

/* Časová osa: kroky pod sebou spojené čarou */
.steps { --dot: 44px; --pad: 1rem; display: grid; gap: .75rem; }
@media (min-width: 600px) { .steps { --dot: 52px; --pad: 1.5rem; } }
.step {
  position: relative; display: grid; grid-template-columns: var(--dot) minmax(0, 1fr);
  column-gap: 1.25rem; align-items: start; padding: .25rem 0 1.25rem;
}
.step::before {
  content: ""; position: absolute; left: calc(var(--dot) / 2 - 1px);
  top: calc(var(--dot) + .25rem + 6px); bottom: calc(-1rem + 6px); width: 2px;
  background: linear-gradient(var(--navy-500), var(--navy-100));
}
.step:last-child::before { display: none; }
.step-num {
  grid-row: 1 / span 3; display: grid; place-items: center;
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--surface); border: 2px solid var(--navy-900); color: var(--navy-900);
  font: 600 1.0625rem/1 var(--font-serif);
  box-shadow: 0 0 0 6px var(--navy-50);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.step:hover .step-num { background: var(--navy-900); color: #fff; }
.step h3 { grid-column: 2; margin: calc(var(--dot) / 2 - .75rem) 0 .4rem; font-size: 1.25rem; }
.step p { grid-column: 2; color: var(--text-muted); font-size: 1rem; max-width: 34em; }

/* Poslední krok – průběžný servis, zvýrazněný */
.step--ongoing {
  margin: .25rem 0 0; padding: var(--pad);
  border-radius: var(--radius-lg); background: var(--navy-900); box-shadow: var(--shadow);
}
@media (min-width: 600px) { .step--ongoing { margin-left: calc(var(--pad) * -1); } }
.step--ongoing .step-num { background: #fff; border-color: #fff; color: var(--navy-900); box-shadow: none; }
.step--ongoing:hover .step-num { background: #fff; color: var(--navy-900); }
.step--ongoing h3 { color: #fff; margin-top: .6rem; }
.step--ongoing p { color: #C3CEDF; }
.step-badge {
  grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: .4rem;
  margin-top: calc(var(--dot) / 2 - .8rem); padding: .3rem .7rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff;
  font: italic 500 1rem/1.2 var(--font-label);
}
.step-badge .icon { width: 14px; height: 14px; }

/* ============ About ============ */
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy > p { color: var(--text-muted); max-width: 36em; }
.about-copy strong { color: var(--navy-900); }
.about-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem;
  margin: 2rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--border);
}
.about-meta dt { font: italic 500 1.125rem/1.25 var(--font-label); color: var(--navy-500); }
.about-meta dd { margin: .2rem 0 0; font-weight: 600; color: var(--navy-900); }
.about-media .arch { aspect-ratio: 4 / 4.8; max-width: 500px; margin-inline: auto; }
.about-media .arch img { object-position: 50% 30%; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; }
}

/* ============ Reviews ============ */
.reviews { background: var(--surface); border-top: 1px solid var(--border); }
.star { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

.review-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
.review-list:empty { display: none; }
@media (min-width: 720px) { .review-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .review-list { grid-template-columns: repeat(3, 1fr); } }
.review {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.75rem; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
}
.review-stars { display: flex; gap: 2px; color: var(--navy-900); }
.review blockquote { margin: 0; flex: 1; color: var(--text); }
.review-author { display: flex; flex-direction: column; margin: 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.review-author strong { color: var(--navy-900); }
.review-author span { font-size: .875rem; color: var(--text-muted); }

.review-cta {
  max-width: 880px; margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: var(--radius-lg);
  background: var(--navy-50); border: 1px solid var(--navy-100);
}
.review-cta-head { display: grid; gap: 1.25rem; align-items: center; }
.review-cta-head h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: .4rem; }
.review-cta-head p { color: var(--text-muted); }
.review-cta-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy-900); color: #fff; }
.review-cta-icon .star { width: 24px; height: 24px; }
@media (min-width: 760px) {
  .review-cta-head { grid-template-columns: auto 1fr auto; gap: 1.5rem; }
}
.review-toggle[aria-expanded="true"] { --btn-bg: transparent; --btn-fg: var(--navy-900); border-color: var(--navy-900); }
.review-panel { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--navy-100); animation: panel-in var(--dur) var(--ease-out); }
.review-panel .field input[type="text"], .review-panel .field input[type="email"], .review-panel .field select, .review-panel .field textarea { background: var(--surface); }
.review-note { margin: 1.25rem 0 0; font-size: .8125rem; color: var(--text-muted); }

/* Hodnocení hvězdičkami */
fieldset.rating { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
fieldset.rating legend { padding: 0; font-weight: 600; font-size: .9375rem; color: var(--navy-900); margin-bottom: .4rem; }
.rating-stars { display: flex; gap: .25rem; }
.rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-stars label { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); cursor: pointer; color: #B7C3D6; transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.rating-stars .star { width: 30px; height: 30px; fill: none; stroke-width: 1.5; }
.rating-stars label:hover { transform: scale(1.08); }
.rating-stars input:focus-visible + label { outline: 3px solid var(--navy-500); outline-offset: 1px; }
.rating-stars:has(input[value="1"]:checked) label:nth-of-type(-n+1),
.rating-stars:has(input[value="2"]:checked) label:nth-of-type(-n+2),
.rating-stars:has(input[value="3"]:checked) label:nth-of-type(-n+3),
.rating-stars:has(input[value="4"]:checked) label:nth-of-type(-n+4),
.rating-stars:has(input[value="5"]:checked) label:nth-of-type(-n+5),
.rating-stars:has(label:nth-of-type(1):hover) label:nth-of-type(-n+1),
.rating-stars:has(label:nth-of-type(2):hover) label:nth-of-type(-n+2),
.rating-stars:has(label:nth-of-type(3):hover) label:nth-of-type(-n+3),
.rating-stars:has(label:nth-of-type(4):hover) label:nth-of-type(-n+4),
.rating-stars:has(label:nth-of-type(5):hover) label:nth-of-type(-n+5) { color: var(--navy-900); }
.rating-stars:has(input[value="1"]:checked) label:nth-of-type(-n+1) .star,
.rating-stars:has(input[value="2"]:checked) label:nth-of-type(-n+2) .star,
.rating-stars:has(input[value="3"]:checked) label:nth-of-type(-n+3) .star,
.rating-stars:has(input[value="4"]:checked) label:nth-of-type(-n+4) .star,
.rating-stars:has(input[value="5"]:checked) label:nth-of-type(-n+5) .star { fill: currentColor; }
fieldset.rating .field-error { margin-top: .25rem; }

/* ============ CTA band ============ */
.cta-band { background: var(--navy-900); color: #C3CEDF; padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 60px rgba(255, 255, 255, .02), 0 0 0 120px rgba(255, 255, 255, .015);
  pointer-events: none;
}
.cta-inner { display: grid; gap: 2rem; align-items: center; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { max-width: 36em; font-size: 1.0625rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.cta-phone { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: #fff; font-weight: 600; text-decoration: none; }
.cta-phone:hover { color: #fff; text-decoration: underline; }
.cta-band :focus-visible { outline-color: #fff; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr auto; } }

/* ============ Contact ============ */
.contact-grid { display: grid; gap: 3rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); max-width: 30em; }
.contact-list { display: grid; gap: 1rem; margin: 2rem 0; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-50); color: var(--navy-900); flex: none; }
.contact-label { display: block; font-size: .8125rem; color: var(--text-muted); }
.contact-list a { font-weight: 600; font-size: 1.125rem; color: var(--navy-900); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 11; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 25%; }

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .4rem; color: var(--navy-900); }
.req { color: var(--error); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-900); background: #fff; box-shadow: 0 0 0 4px rgba(28, 58, 102, .14); }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field-hint { font-size: .8125rem; color: var(--text-muted); margin: .35rem 0 0; }
.field-error { font-size: .875rem; color: var(--error); margin: .35rem 0 0; font-weight: 500; }
.field-error:empty { display: none; }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--navy-900); cursor: pointer; }
.field-check label { font-weight: 400; font-size: .9375rem; color: var(--text-muted); margin: 0; cursor: pointer; }
.field-check .field-error { grid-column: 2; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin: 1rem 0 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); padding: .9rem 1rem; background: #E8F5EF; border-radius: var(--radius-sm); }
.form-status.is-error { color: var(--error); padding: .9rem 1rem; background: #FDECEA; border-radius: var(--radius-sm); }
.form-note { font-size: .8125rem; color: var(--text-muted); margin: .75rem 0 0; }

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; }
}

/* ============ Footer ============ */
.site-footer { background: var(--navy-950); color: #B9C6DA; padding: 4rem 0 2rem; font-size: .9375rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-tag { margin-top: 1rem; max-width: 26em; }
.footer-title { font: italic 500 1.25rem/1.2 var(--font-label); color: #fff; margin-bottom: .75rem; }
.site-footer ul { display: grid; gap: .25rem; }
.site-footer ul a { display: inline-block; padding: .3rem 0; color: #B9C6DA; text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-legal { padding-top: 1.75rem; font-size: .8125rem; color: #8D9DB6; }
.footer-legal p { max-width: 70em; }

/* ============ Odkazy v patičce (zásady, nastavení cookies) ============ */
.footer-legal a, .link-button { color: #B9C6DA; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover, .link-button:hover { color: #fff; }
.link-button { background: none; border: 0; padding: .25rem 0; font: inherit; cursor: pointer; }
.link-button--inline { color: var(--navy-700); padding: 0; }
.link-button--inline:hover { color: var(--navy-900); }

/* Odkaz na zásady pod tlačítkem formuláře */
.form-privacy { margin: .75rem 0 0; font-size: .875rem; color: var(--text-muted); }
.form-privacy a { color: var(--navy-700); }

/* ============ Stránka „Zpracování osobních údajů“ ============ */
.legal-page { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); margin-bottom: .75rem; }
.legal h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin: 2.75rem 0 1rem; }
.legal h3 { font-size: 1.125rem; margin: 1.75rem 0 .6rem; }
.legal p, .legal li, .legal address { color: var(--text); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; display: grid; gap: .45rem; }
.legal address { font-style: normal; margin: 0 0 1rem; padding: 1rem 1.25rem; border-left: 3px solid var(--navy-100); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal a { overflow-wrap: anywhere; }
.legal-meta { color: var(--text-muted); font-size: .9375rem; }
.legal-lead { font-size: 1.125rem; color: var(--text-muted) !important; }
.legal-back { margin-top: 3rem; }
/* Místa, která musí uživatel ještě doplnit – před spuštěním webu nesmí na stránce zůstat */
.todo { background: #FFF1B8; color: #5C4600; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* ============ Cookie lišta ============ */
.cookie-banner {
  position: fixed; z-index: 1000; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 44rem; margin-inline: auto;
  max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain;
  padding: 1.25rem 1.5rem 1.4rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(11, 31, 58, .4);
  animation: panel-in var(--dur) var(--ease-out);
}
.cookie-banner[hidden] { display: none; }
.cc-title { font: 600 1.375rem/1.2 var(--font-serif); color: var(--navy-900); margin: 0 0 .5rem; }
.cc-text { font-size: .9375rem; color: var(--text-muted); margin: 0 0 1.1rem; }
.cc-text a { color: var(--navy-700); }
.cc-settings { margin: 0 0 1.1rem; border-top: 1px solid var(--border); }
.cc-settings[hidden] { display: none; }
.cc-settings-title { font: italic 500 1.25rem/1.2 var(--font-label); color: var(--navy-500); margin: 1rem 0 .25rem; }
.cc-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.cc-cat-name { display: block; font-weight: 600; color: var(--navy-900); cursor: pointer; }
.cc-cat-desc { margin: .15rem 0 0; font-size: .875rem; color: var(--text-muted); }
.cc-always { flex: none; font-size: .8125rem; font-weight: 600; color: var(--success); padding-top: .15rem; }
/* přepínač */
.cc-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; cursor: pointer;
  width: 48px; height: 28px; margin: 0; border-radius: 999px;
  background: #B7C3D6; transition: background-color var(--dur-fast) var(--ease-out);
}
.cc-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--dur-fast) var(--ease-out);
}
.cc-switch:checked { background: var(--navy-900); }
.cc-switch:checked::after { transform: translateX(20px); }
.cc-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cc-actions .cc-btn { flex: 1 1 9rem; min-height: 46px; }
.cc-actions .cc-btn[hidden] { display: none; }
/* Přijmout i Odmítnout jsou stejně výrazné – oba btn-primary, stejná velikost */
@media (max-width: 479px) {
  .cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; padding: 1.1rem 1.1rem 1.2rem; }
  .cc-actions .cc-btn { flex-basis: 100%; }
  .cc-actions [data-cc="reject"], .cc-actions [data-cc="accept"] { flex-basis: calc(50% - .3rem); }
}

/* ============ Reveal on scroll ============ */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
