/* ============================================================
   RacekSoft — style.css
   Světlý, čistý, skandinávský styl (varianta B)
   ------------------------------------------------------------
   Barvy a fonty se nastavují přes proměnné níže (:root).
   Chceš změnit akcentní barvu? Stačí upravit --navy.
   ============================================================ */

/* ===== Proměnné (barvy, fonty, rozměry) ===== */
:root {
  /* Barvy */
  --bg:          #FBFAF7;   /* hlavní pozadí — teplá bílá */
  --bg-alt:      #F1EDE4;   /* pozadí střídavých sekcí — písková */
  --ink:         #1B1B1A;   /* hlavní text — měkká černá */
  --muted:       #5E5D57;   /* vedlejší text — šedá */
  --navy:        #1E3A5F;   /* akcent — tmavomodrá */
  --navy-deep:   #14283F;   /* tmavší modrá */
  --accent:      #3E7C8B;   /* doplňkový akcent — tlumená modrozelená */
  --line:        rgba(20, 25, 35, 0.10);  /* jemné linky */
  --card:        #FFFFFF;   /* karty */

  /* Fonty */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rozměry */
  --container: 1140px;
  --radius:    18px;
  --radius-sm: 12px;

  /* Stíny */
  --shadow:    0 10px 30px -12px rgba(20, 30, 50, 0.18);
  --shadow-lg: 0 26px 60px -20px rgba(20, 30, 50, 0.28);

  /* Přechody */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== Scroll progress bar ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  z-index: 1000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ===== Reset / základ ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

.hidden { display: none; }

/* ============================================================
   TLAČÍTKA
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(30, 58, 95, 0.7);
}
.btn--primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(30, 58, 95, 0.65);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* Jemná pulzace hlavního CTA (jen lehké přitáhnutí pozornosti) */
.btn--pulse { animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 22px -10px rgba(30, 58, 95, 0.7); }
  50%      { box-shadow: 0 8px 22px -10px rgba(30, 58, 95, 0.7), 0 0 0 8px rgba(30, 58, 95, 0.07); }
}

/* ============================================================
   NAVIGACE
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.35s var(--ease);
}

/* Stav po odscrollování — pozadí + rozostření + zmenšení */
.nav.is-scrolled {
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-scrolled .nav__inner { height: 62px; }

.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__logo span { color: var(--navy); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__links a:not(.nav__cta):hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }

.nav__cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease), transform 0.25s var(--ease);
}
.nav__cta:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* Hamburger (mobil) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 52px;
  align-items: center;
}
.hero__content { max-width: 600px; }

.hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__subtitle {
  margin-top: 26px;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 620px;
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__facts {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
}
.hero__facts span { font-size: 14.5px; color: var(--muted); }

/* Dekorativní záře v pozadí hero */
.hero__glow {
  position: absolute;
  top: -200px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(62, 124, 139, 0.18), rgba(62, 124, 139, 0) 65%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   SEKCE — společné
   ============================================================ */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 640px; margin-bottom: 56px; }
.section__kicker {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section__lead {
  margin-top: 16px;
  font-size: 19px;
  color: var(--muted);
}

/* ============================================================
   PROJEKTY — karty
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--bg-alt);
  position: relative;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__media::after {
  content: "Otevřít →";
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0.55);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(2px);
}
.card:hover .card__media::after { opacity: 1; }
.card__media--btn::after { content: "Prohlédnout ↗"; }

.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__tag {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(62, 124, 139, 0.10);
  padding: 5px 11px;
  border-radius: 999px;
}
.card__tag--wip {
  color: #9A6B00;
  background: rgba(154, 107, 0, 0.10);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.01em;
}
.card__text { color: var(--muted); font-size: 15.5px; flex: 1; }
.card__link {
  margin-top: 4px;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.card__link span { transition: transform 0.3s var(--ease); }
.card__link:hover span { transform: translateX(5px); }

/* Statická ukázka (interní aplikace — náhled není proklik) */
.card__media--static { cursor: default; }
.card__text strong { color: var(--navy); font-weight: 600; }
.card__note {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card__note::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   SLUŽBY
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.service p { color: var(--muted); font-size: 15.5px; }
.service--wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  color: #fff;
  border-color: transparent;
}
.service--wide h3 { color: #fff; }
.service--wide p { color: rgba(255,255,255,0.8); }
.service--wide .service__icon {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}
.service__eshop-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.service__eshop-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service__eshop-list li {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  padding-left: 20px;
  position: relative;
}
.service__eshop-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
}
.service__eshop-list li:last-child {
  margin-top: 6px;
  padding-left: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.service__eshop-list li:last-child::before { display: none; }
@media (max-width: 600px) {
  .service__eshop-body { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   POSTUP — kroky
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  position: relative;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.step__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============================================================
   O MNĚ
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about__media { position: relative; }
.about__photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 2px dashed rgba(30, 58, 95, 0.25);
  background:
    linear-gradient(135deg, rgba(30, 58, 95, 0.06), rgba(62, 124, 139, 0.10));
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--navy);
  font-weight: 500;
}
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.about__text p { color: var(--muted); margin-top: 16px; font-size: 17px; }
.about__quote {
  margin-top: 28px;
  padding: 22px 26px;
  border-left: 3px solid var(--navy);
  background: rgba(30, 58, 95, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact { background: var(--navy-deep); color: #fff; }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.contact__lead { margin-top: 16px; font-size: 19px; color: rgba(255, 255, 255, 0.72); }

.contact__direct { margin-top: 38px; display: flex; flex-direction: column; gap: 22px; }
.contact__direct li { display: flex; flex-direction: column; gap: 3px; }
.contact__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.contact__direct a, .contact__direct li > span:last-child {
  font-size: 19px;
  font-weight: 500;
  color: #fff;
  transition: color 0.25s var(--ease);
  width: fit-content;
}
.contact__direct a:hover { color: var(--accent); }

/* Formulář */
.contact__form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.10);
}
.contact__form .btn--primary { background: #fff; color: var(--navy-deep); margin-top: 6px; }
.contact__form .btn--primary:hover { background: var(--accent); color: #fff; }

/* ============================================================
   PATIČKA
   ============================================================ */
.footer { padding: 36px 0; background: var(--navy-deep); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
}
.footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: #fff; }
.footer__word span { color: var(--accent); }
.footer__top { transition: color 0.25s var(--ease); }
.footer__top:hover { color: #fff; }

/* ============================================================
   ANIMACE PŘI SCROLLU (reveal)
   Třída .reveal je výchozí stav (skryté), .is-visible se přidá
   přes JavaScript (Intersection Observer) až prvek vjede do záběru.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Postupné zpoždění sousedních prvků (karty, služby, kroky) */
.cards .reveal:nth-child(2),
.services .reveal:nth-child(2),
.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3),
.services .reveal:nth-child(3),
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.services .reveal:nth-child(4),
.steps .reveal:nth-child(4) { transition-delay: 0.24s; }
.services .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ============================================================
   LOGO (značka s motivem racka)
   ============================================================ */
.nav__logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 34px; height: 22px; color: var(--navy); flex-shrink: 0; overflow: visible; }
.logo-word { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; }
.logo-word span { color: var(--navy); }
.nav__logo:hover .logo-mark { color: var(--accent); transition: color 0.3s var(--ease); }

.footer__brand { display: inline-flex; align-items: center; gap: 10px; }
.footer__brand .logo-mark { width: 30px; height: 19px; color: #fff; }

/* ============================================================
   HERO — vizuál (rámované ukázky práce)
   ============================================================ */
.hero__visual {
  position: relative;
  height: 420px;
  animation: floaty 7s ease-in-out infinite;
}
.frame {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.frame--web {
  top: 8px; left: 0;
  width: 86%;
  transform: rotate(-2deg);
}
.frame--web .frame__bar {
  display: flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.frame--web .frame__bar span { width: 8px; height: 8px; border-radius: 50%; background: #cdc8bd; }
.frame--web img { height: calc(100% - 26px); }

.frame--app {
  bottom: 0; right: 0;
  width: 52%;
  aspect-ratio: 16 / 11;
  transform: rotate(3deg);
  border-radius: 12px;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Fotka v sekci O mně */
.about__media img { object-position: center 22%; }

/* ============================================================
   PROJEKTY — klikací karta aplikace
   ============================================================ */
.card__media--btn {
  position: relative;
  border: 0; padding: 0; margin: 0;
  cursor: pointer;
  font: inherit;
  background: var(--bg-alt);
  width: 100%;
}
.card__zoom {
  position: absolute;
  bottom: 12px; right: 12px;
  font-size: 13px; font-weight: 600;
  color: #fff;
  background: rgba(20, 32, 46, 0.78);
  backdrop-filter: blur(4px);
  padding: 7px 13px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover .card__zoom { opacity: 1; transform: none; }

.card__link--btn {
  background: none; border: 0; padding: 0;
  font: inherit; cursor: pointer;
  font-weight: 600; color: var(--navy);
}
.card__link--btn span { display: inline-block; transition: transform 0.3s var(--ease); }
.card__link--btn:hover span { transform: translate(3px, -3px); }

/* ============================================================
   FAQ — rozbalovací dotazy
   ============================================================ */
.faq { max-width: 820px; }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow); border-color: rgba(30, 58, 95, 0.2); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18.5px;
  padding: 18px 36px 18px 0;
  position: relative;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__a {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  padding: 0 0 20px;
  max-width: 70ch;
}
.faq__price-list {
  list-style: none;
  padding: 10px 0 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq__price-list li {
  padding: 10px 16px;
  background: var(--bg-alt);
  border-left: 3px solid var(--navy);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
}

/* ============================================================
   MODAL — detail aplikace
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 34, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s var(--ease);
}
.modal__dialog {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: min(1000px, 100%);
  max-height: 90vh;
  overflow: auto;
  animation: popIn 0.35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 3;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal__close:hover { background: #fff; transform: rotate(90deg); }

.modal__grid { display: grid; grid-template-columns: 1.25fr 1fr; }
.modal__gallery { padding: 22px; background: var(--bg-alt); border-radius: var(--radius) 0 0 var(--radius); }
.modal__stage {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
  background: #fff;
}
.modal__stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.modal__thumb {
  border: 2px solid transparent;
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #fff;
  aspect-ratio: 16 / 11;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__thumb:hover { transform: translateY(-2px); }
.modal__thumb.is-active { border-color: var(--navy); }

.modal__info { padding: 30px 32px; display: flex; flex-direction: column; gap: 12px; }
.modal__info h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.01em; }
.modal__cap { font-size: 14.5px; color: var(--accent); font-weight: 600; margin-top: -4px; }
.modal__lead { color: var(--muted); font-size: 16px; }
.modal__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 6px; }
.modal__cols h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.modal__cols ul { display: flex; flex-direction: column; gap: 7px; }
.modal__cols li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.modal__cols li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.modal__note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

body.modal-open { overflow: hidden; }

/* ============================================================
   RESPONZIVITA
   ============================================================ */
@media (max-width: 940px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about__media { max-width: 360px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }

  /* Hero: text nad vizuálem */
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__content { max-width: 640px; }
  .hero__visual { height: 360px; max-width: 540px; }

  /* Modal: na výšku */
  .modal__grid { grid-template-columns: 1fr; }
  .modal__gallery { border-radius: var(--radius) var(--radius) 0 0; }
  .modal__info { padding: 26px 26px 30px; }
}

@media (max-width: 720px) {
  /* Mobilní menu */
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    background: var(--bg);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 20px; }

  .hero { padding: 140px 0 80px; }
  .section { padding: 72px 0; }
  .hero__facts { gap: 24px; }
  .hero__visual { display: none; }
  .modal__cols { grid-template-columns: 1fr; gap: 16px; }
  .modal__thumbs { gap: 7px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ===== Ohleduplnost: vypnout animace pro uživatele, kteří to chtějí ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   COOKIE LIŠTA (GDPR)
   ============================================================ */
.cookie-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 680px;
  width: calc(100% - 32px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  animation: slideUp 0.3s ease;
}
.cookie-bar[hidden] { display: none; }
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-bar__text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  flex: 1;
}
.cookie-bar__btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-bar__accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-bar__accept:hover { background: var(--navy); }
.cookie-bar__decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cookie-bar__decline:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: flex-start; gap: 12px; bottom: 12px; }
  .cookie-bar__btns { width: 100%; }
  .cookie-bar__accept, .cookie-bar__decline { flex: 1; text-align: center; }
}
