/* ==========================================================================
   Español con Eli — hlavní styly
   Paleta a písma jsou definované v :root níže.
   ========================================================================== */

:root {
  /* Barvy značky */
  --purple:        #5B2A86;
  --purple-bright: #7C3FBF;
  --purple-soft:   #F3EDFA;
  --coral:         #F0566A;
  --coral-soft:    #FDEEF0;
  --blue:          #4E7DE9;
  --blue-soft:     #EBF1FD;
  --gold:          #F5A94B;
  --gold-deep:     #955F05; /* tmavší zlatá pro text na bílé (kontrast 5.4:1) */
  --gold-border:   #B97514; /* obrys zlatých ikon na bílé (kontrast 3.7:1) */
  --gold-soft:     #FDF3E3;
  --cream:         #FAF3E3;
  --ink:           #2A1E4F; /* tmavá inkoustová fialová — nadpisy, tmavé karty */
  --ink-2:         #3A2C66;
  --text:          #524B6B;
  --text-light:    #B9B1D6;

  /* Plochy */
  --bg:            #FFFFFF;
  --bg-tint:       #FAF7F1;
  --border:        #ECE8F4;

  /* Typografie */
  --font-head: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;

  /* Rozměry */
  --radius:     20px;
  --radius-lg:  28px;
  --header-h:   72px;
  --container:  1140px;

  --shadow-sm: 0 2px 10px rgba(42, 30, 79, .06);
  --shadow-md: 0 10px 30px rgba(42, 30, 79, .10);
  --shadow-lg: 0 18px 50px rgba(42, 30, 79, .16);
}

/* --------------------------------------------------------------------------
   Reset a základ
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Dekorativní kruhy přesahují okraje stránky — ořez musí být na <html>
   i <body>, jinak mobilní prohlížeče dovolí stránku "odtáhnout" do strany
   a fixní hlavička s menu ujedou z obrazovky. `clip` blokuje i posun
   skriptem; starší prohlížeče spadnou na `hidden` o řádek výš. */
html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
a { color: var(--purple); }
img, svg { max-width: 100%; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
.icon-sm { width: 17px; height: 17px; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--purple-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
/* na tmavých plochách má fialová málo kontrastu — tam zlatá */
.section-dark :focus-visible,
.site-footer :focus-visible,
.price-card-featured :focus-visible {
  outline-color: var(--gold);
}

::selection { background: var(--gold); color: var(--ink); }

/* --------------------------------------------------------------------------
   Tlačítka
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease,
              background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  color: #fff;
  box-shadow: 0 8px 22px rgba(91, 42, 134, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(91, 42, 134, .45);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border-color: #DCCEEE;
}
.btn-ghost:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: .95rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Hlavička
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0; /* místo inset kvůli starším iOS Safari */
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  color: var(--purple);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.nav-link:hover { background: var(--purple-soft); color: var(--purple); }
.nav-link.active { background: var(--purple-soft); color: var(--purple); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 11px;
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) 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(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Sekce — společné
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: 96px 0;
}
.section-tinted { background: var(--bg-tint); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .4em;
}
.eyebrow-light { color: var(--gold); }

.section-title {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  margin-bottom: .35em;
}

.section-lead {
  max-width: 560px;
  font-size: 1.15rem;
  margin-bottom: 2.6em;
}

.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: none;
}
.dot-purple { background: var(--purple-bright); }
.dot-coral  { background: var(--coral); }
.dot-gold   { background: var(--gold); }
.dot-blue   { background: var(--blue); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Dekorativní kruhy (motiv loga)
   -------------------------------------------------------------------------- */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.deco::before, .deco::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.deco-hero-left { top: 8%; left: -120px; width: 340px; height: 340px; }
.deco-hero-left::before {
  inset: 0;
  background: radial-gradient(circle, rgba(124, 63, 191, .16), rgba(124, 63, 191, 0) 70%);
}
.deco-hero-left::after {
  top: 150px; left: 130px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(78, 125, 233, .13), rgba(78, 125, 233, 0) 70%);
}

.deco-hero-right { top: 4%; right: -140px; width: 380px; height: 380px; }
.deco-hero-right::before {
  inset: 0;
  background: radial-gradient(circle, rgba(245, 169, 75, .18), rgba(245, 169, 75, 0) 70%);
}
.deco-hero-right::after {
  top: 190px; right: 120px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(240, 86, 106, .14), rgba(240, 86, 106, 0) 70%);
}

.deco-cenik { top: -40px; right: -150px; width: 360px; height: 360px; }
.deco-cenik::before {
  inset: 0;
  background: radial-gradient(circle, rgba(124, 63, 191, .10), rgba(124, 63, 191, 0) 70%);
}
.deco-cenik::after {
  top: 200px; right: 160px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245, 169, 75, .12), rgba(245, 169, 75, 0) 70%);
}

.deco-about { bottom: -60px; left: -160px; width: 380px; height: 380px; }
.deco-about::before {
  inset: 0;
  background: radial-gradient(circle, rgba(240, 86, 106, .09), rgba(240, 86, 106, 0) 70%);
}
.deco-about::after {
  top: -40px; left: 200px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(78, 125, 233, .10), rgba(78, 125, 233, 0) 70%);
}

.deco-contact { top: -80px; right: -100px; width: 400px; height: 400px; }
.deco-contact::before {
  inset: 0;
  background: radial-gradient(circle, rgba(124, 63, 191, .35), rgba(124, 63, 191, 0) 70%);
}
.deco-contact::after {
  top: 260px; right: 240px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(240, 86, 106, .22), rgba(240, 86, 106, 0) 70%);
}

/* --------------------------------------------------------------------------
   Úvod (hero)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 90px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(130px, 18vw, 170px);
  height: auto;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: .25em;
}

.grad {
  background: linear-gradient(100deg, var(--purple-bright) 10%, var(--coral) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  max-width: 560px;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  margin-bottom: 2em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 1.4em;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink-2);
  margin-bottom: 2.6em;
}
.hero-note .icon { color: #3BA55D; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Služby
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 34px 30px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: .4em;
}
.service-card p { margin: 0; }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 18px;
  margin-bottom: 20px;
}
.service-icon .icon { width: 27px; height: 27px; }
.si-purple { background: var(--purple-soft); color: var(--purple-bright); }
.si-coral  { background: var(--coral-soft);  color: var(--coral); }
.si-gold   { background: var(--gold-soft);   color: var(--gold-deep); }

.features-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
}
.features-row li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--ink-2);
}
.features-row .icon { color: #3BA55D; }

/* --------------------------------------------------------------------------
   Ceník
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.price-card h3 {
  font-size: 1.22rem;
  line-height: 1.3;
  margin-bottom: .9em;
}

.price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: .15em;
}

.price-unit {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.4em;
}

.price-desc {
  margin: 0;
  font-size: .98rem;
}

/* Zvýrazněná karta */
.price-card-featured {
  background: linear-gradient(160deg, var(--ink-2), var(--ink) 60%);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.price-card-featured:hover { box-shadow: var(--shadow-lg); }
.price-card-featured h3,
.price-card-featured .price { color: #fff; }
.price-card-featured .price-unit { color: var(--text-light); }
.price-card-featured .price-desc { color: #D9D3EC; }

.badge {
  position: absolute;
  top: -14px;
  right: 22px;
  margin: 0;
  padding: 6px 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(245, 169, 75, .5);
}

.pricing-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 0;
  font-weight: 700;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Reference
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  margin: 0;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
  margin-bottom: 16px;
}
.stars .icon { fill: currentColor; }
/* tmavší obrys kvůli kontrastu hvězdiček na bílé kartě (WCAG 1.4.11) */
.stars .icon path {
  stroke: var(--gold-border);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.testimonial blockquote {
  margin: 0 0 22px;
  font-size: 1.02rem;
  font-style: italic;
  color: var(--text);
  flex: 1;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.35;
  color: var(--ink);
}
.testimonial figcaption small { color: var(--text); }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
.av-purple { background: var(--purple-bright); }
.av-coral  { background: var(--coral); }
.av-gold   { background: var(--gold); color: var(--ink); }

/* --------------------------------------------------------------------------
   O mně
   -------------------------------------------------------------------------- */
.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: start;
}

.about-intro {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink-2);
}

.about-visual {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  text-align: center;
}

.about-logo {
  width: min(320px, 80%);
  height: auto;
  margin-bottom: 26px;
}

.about-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
.about-chips li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: .97rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Kontakt (tmavá sekce)
   -------------------------------------------------------------------------- */
.section-dark {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(124, 63, 191, .35), transparent),
    linear-gradient(160deg, var(--ink-2), var(--ink) 55%);
  color: #CFC8E6;
  overflow: hidden;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: #CFC8E6; }

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  padding: 38px 34px;
  border: none;
  box-shadow: var(--shadow-lg);
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  color: var(--ink);
  background: #FBFAFD;
  border: 2px solid #8A80AF; /* kontrast obrysu pole ≥ 3:1 na bílé kartě */
  border-radius: 14px;
  transition: border-color .18s ease, background-color .18s ease;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #756AA0; } /* kontrast 4.7:1 */
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple-bright);
  background: #fff;
}

.form-field.invalid input,
.form-field.invalid textarea { border-color: var(--coral); }

.form-error {
  margin: 7px 0 0;
  font-size: .9rem;
  font-weight: 700;
  color: #D53A50;
}

.form-success {
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--gold-soft);
  border: 2px solid var(--gold);
  border-radius: 14px;
  color: var(--ink-2);
}
.form-success p:last-child { margin: 0; }
.form-success-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: .2em;
}

.contact-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  line-height: 1.45;
}
.contact-info strong { color: #fff; }
.contact-info a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}
.contact-info a:hover { text-decoration: underline; }

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  flex: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
}
.contact-icon .icon { width: 23px; height: 23px; }
.ci-purple { color: #C9A6F0; }
.ci-coral  { color: #F9909E; }
.ci-gold   { color: var(--gold); }
.ci-blue   { color: #93B2F5; }

/* --------------------------------------------------------------------------
   Patička
   -------------------------------------------------------------------------- */
.site-footer {
  background: #221845;
  color: var(--text-light);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand-footer .brand-name { color: #fff; font-size: 1.1rem; }
.brand-footer .brand-name em { color: var(--gold); }
.brand-footer .brand-mark { width: 36px; height: 36px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.footer-nav a:hover { color: #fff; }

.footer-copy { margin: 0; font-size: .9rem; }

/* --------------------------------------------------------------------------
   Alpaka: poskok při najetí myší a v intru po načtení stránky
   -------------------------------------------------------------------------- */
.alpaca {
  /* pata alpaky v souřadnicích viewBoxu — stejný výsledek
     i ve starších Safari, která neznají transform-box */
  transform-box: view-box;
  transform-origin: 127px 196px;
}

@keyframes alpaca-jump {
  0%   { transform: translateY(0); }
  14%  { transform: translateY(3px) scale(1.05, .93); }
  40%  { transform: translateY(-24px) scale(.97, 1.05); }
  62%  { transform: translateY(0) scale(1.03, .95); }
  76%  { transform: translateY(-9px); }
  90%  { transform: translateY(0) scale(1.01, .98); }
  100% { transform: translateY(0) scale(1, 1); }
}

.brand:hover .alpaca,
.brand:focus-visible .alpaca,
.hero-logo:hover .alpaca,
.about-logo:hover .alpaca {
  animation: alpaca-jump .85s cubic-bezier(.34, .12, .26, 1);
}

/* intro po načtení stránky (třídu .intro přidává js/main.js) */
.hero-logo.intro .alpaca {
  animation: alpaca-jump .85s cubic-bezier(.34, .12, .26, 1) 2;
}

@media (prefers-reduced-motion: reduce) {
  .alpaca { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Animace při scrollu
   -------------------------------------------------------------------------- */
/* Skryté jen když běží JS (třídu .js přidává inline skript v <head>);
   bez JS zůstává celý obsah viditelný. Po dokončení animace JS třídy
   .reveal/.visible odebere, aby nekolidovaly s hover efekty karet. */
html.js .reveal {
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(22px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { transition: none; }
  html.js .reveal:not(.visible) { opacity: 1; transform: none; }
  .btn, .card, .service-card, .price-card, .testimonial { transition: none; }
}

/* --------------------------------------------------------------------------
   Responzivita
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-cta { display: none; } /* v úzké hlavičce by se CTA nevešlo */
}

@media (max-width: 1060px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }

  .services-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }

  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-visual { position: static; order: -1; }
  .about-logo { width: min(240px, 60%); }
  .about-chips { max-width: 480px; margin-inline: auto; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  /* Mobilní navigace */
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 24px 26px;
    background: #fff;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; /* na nízkých displejích (mobil naležato) menu roluje */
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .site-nav .nav-cta { display: inline-flex; } /* v mobilním menu CTA zůstává */
  .site-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link { display: block; padding: 12px 16px; font-size: 1.05rem; }
  .nav-cta { margin-top: 10px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .price-card-featured { order: -1; } /* nejoblíbenější nahoru na mobilu */

  .hero { padding-bottom: 64px; }
  .hero-cta .btn { width: 100%; }
  .hero-chips { flex-direction: column; align-items: center; }

  .contact-form { padding: 28px 22px; }

  .footer-inner { flex-direction: column; text-align: center; }
}
