/* ============================================================
   kulisekmatej — weby a e-shopy na míru
   Světlý minimalismus v duchu Apple
   ============================================================ */

/* --- Design tokeny --- */
:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #e8e8ed;
  --accent: #0066cc;

  /* Akcenty pro barevné nadpisy (Apple Intelligence paleta) */
  --c-blue: #0a84ff;
  --c-indigo: #5e5ce6;
  --c-purple: #a259ff;
  --c-magenta: #d6246f;
  --c-pink: #ff5e8a;
  --c-orange: #ff9f0a;

  /* Tmavší varianty pro malé texty (AA kontrast na bílé) */
  --c-blue-text: #0071e3;
  --c-purple-text: #7c3aed;
  --c-pink-text: #d12d63;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --section-pad: clamp(6rem, 22vh, 11rem);
  --container: 1100px;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;

  --title-xl: clamp(2.75rem, 8vw, 6.5rem);
  --title-l: clamp(2.25rem, 5.5vw, 4rem);
  --title-m: clamp(1.5rem, 3vw, 2rem);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; }

::selection { background: rgba(162, 89, 255, 0.25); }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* --- Tlačítka --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn--primary { background: var(--text); color: #ffffff; }
.btn--primary:hover { transform: scale(1.03); }
.btn--ghost { color: var(--accent); padding-inline: 0.5rem; }
.btn--ghost:hover { text-decoration: underline; }

/* --- Gradientový text (akcent v hero) --- */
.text-gradient {
  background: linear-gradient(90deg, #0090ff 0%, #a259ff 50%, #ff5e8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Pomocné třídy --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--text);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }
.section-title { font-size: var(--title-l); }

/* --- Hlavička a navigace (frosted glass) --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 4rem;
}
.nav__logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav__menu { display: flex; align-items: center; gap: 1.75rem; }
.nav__link {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--text); }
.nav__cta {
  background: var(--text);
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.nav__cta:hover { transform: scale(1.04); }
.nav__toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, background 0.2s ease;
}
.nav__toggle-bar { position: relative; }
.nav__toggle-bar::before,
.nav__toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bar::before { top: -6px; }
.nav__toggle-bar::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 4rem;
  overflow: hidden;
}
.hero__glow-wrap {
  position: absolute;
  left: 50%;
  top: 12%;
  width: min(90rem, 140vw);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__glow {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(40% 50% at 30% 50%, rgba(0, 144, 255, 0.18), transparent 70%),
    radial-gradient(35% 45% at 55% 40%, rgba(162, 89, 255, 0.16), transparent 70%),
    radial-gradient(30% 40% at 75% 55%, rgba(255, 94, 138, 0.14), transparent 70%);
  filter: blur(10px);
}
.hero__inner { position: relative; }
.hero__title {
  font-size: var(--title-xl);
  letter-spacing: -0.045em;
  max-width: 15ch;
  margin-inline: auto;
}
.hero__subtitle {
  margin-top: 1.75rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-2);
  max-width: 34ch;
  margin-inline: auto;
}
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Myšlenkové sekce (storytelling) --- */
.story { padding-block: var(--section-pad); }
.story__inner { max-width: 900px; }
.story__index {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}
.story__title { font-size: var(--title-l); }
.story__text {
  margin-top: 1.75rem;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--text-2);
  max-width: 46ch;
  line-height: 1.45;
}

/* Rytmus: 01 vlevo, 02 vpravo, 03 centrované */
.story--b .story__inner { margin-left: auto; text-align: right; }
.story--b .story__text { margin-left: auto; }
.story--c .story__inner { margin-inline: auto; text-align: center; }
.story--c .story__text { margin-inline: auto; }

/* Serpendina 01→02→03 — dekorativní křivka vinoucí se za story sekcemi */
.story-flow { position: relative; }
.story-flow__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}
.story-flow > section { position: relative; }

/* Barevné akcenty story sekcí — 01 modrá, 02 fialová, 03 růžová */
.story--a .story__index { color: var(--c-blue-text); }
.story--b .story__index { color: var(--c-purple-text); }
.story--c .story__index { color: var(--c-pink-text); }

.story--a .story__title {
  background: linear-gradient(90deg, var(--c-blue), var(--c-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.story--b .story__title {
  background: linear-gradient(90deg, var(--c-purple), var(--c-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.story--c .story__title {
  background: linear-gradient(90deg, var(--c-pink), var(--c-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Showcase projektů --- */
.showcase {
  padding-block: var(--section-pad);
  background: var(--bg-soft);
}
.showcase__grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
/* Podrobná reference — náhled a souvislý popis skutečné zakázky. */
.case-study { margin-top: 3.5rem; }
.case-study__overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.case-study__preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.case-study__preview a { display: block; border-radius: var(--radius); }
.case-study__preview figcaption { margin-top: 1rem; color: var(--text-2); font-size: 0.875rem; }
.case-study__summary h3 { font-size: var(--title-m); line-height: 1.15; letter-spacing: -0.035em; }
.case-study__lead { margin-top: 1.25rem; font-size: 1.2rem; line-height: 1.6; }
.case-study__summary > p + p { margin-top: 1rem; color: var(--text-2); line-height: 1.7; }
.case-study__facts { margin-block: 1.75rem; }
.case-study__facts div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding-block: 0.65rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.case-study__facts dt { color: var(--text-2); }
.case-study__facts dd { margin: 0; }
.case-study__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.case-study__detail h4 { font-size: 1.05rem; }
.case-study__detail p { margin-top: 0.75rem; color: var(--text-2); line-height: 1.7; }
.case-study__cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.case-study__cta p { font-weight: 500; }
@media (max-width: 900px) {
  .case-study__overview { grid-template-columns: 1fr; }
  .case-study__preview { max-width: 40rem; }
}
@media (max-width: 700px) {
  .case-study__details { grid-template-columns: 1fr; }
  .case-study__cta { align-items: flex-start; flex-direction: column; }
}

/* Podpisový gradient vrcholu stránky — blue → purple → pink → orange */
.showcase .section-title {
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple) 40%, var(--c-pink) 70%, var(--c-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Podtitulek sekce (Demo) */
.showcase__intro { margin-top: 1.25rem; max-width: 44rem; color: var(--text-2); font-size: 1.15rem; }
.showcase__intro + .showcase__grid { margin-top: 2.5rem; }
.project {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project--link { display: block; text-decoration: none; color: inherit; }
.project--link:focus-visible { outline: 3px solid var(--accent, #0a84ff); outline-offset: 3px; }
.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
}
.project__visual { aspect-ratio: 4 / 3; }
.project__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project__visual--1 { background: linear-gradient(135deg, #1c1f22, #ea580c); }
.project__visual--2 { background: linear-gradient(135deg, #2a1b12, #b0713c); }
.project__visual--3 { background: linear-gradient(135deg, #4f46e5, #06b6d4); }
.project__visual--4 { background: linear-gradient(135deg, #2b2d42, #8d99ae); }
.project__body { padding: 1.5rem; }
.project__name { font-size: 1.25rem; }
.project__desc { margin-top: 0.5rem; color: var(--text-2); }
.project__tags { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project__tags li {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
}

/* --- Čísla --- */
.numbers { padding-block: var(--section-pad); }
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat__value {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.stat:nth-child(1) .stat__value {
  background: linear-gradient(90deg, var(--c-blue), var(--c-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat:nth-child(2) .stat__value {
  background: linear-gradient(90deg, var(--c-purple), var(--c-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat:nth-child(3) .stat__value {
  background: linear-gradient(90deg, var(--c-pink), var(--c-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat__label { margin-top: 0.5rem; color: var(--text-2); font-size: 1.05rem; }

/* --- O mně --- */
.about {
  padding-block: var(--section-pad);
  background: var(--bg-soft);
}
.about__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 210deg, #0090ff, #a259ff, #ff5e8a, #0090ff);
}
.about__portrait span {
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.about__text { margin-top: 1.25rem; max-width: 55ch; color: var(--text-2); font-size: 1.1rem; }
.about__quote {
  margin-top: 2rem;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--c-blue), var(--c-pink)) 1;
  padding-left: 1.25rem;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

/* --- Kontakt (tmavý závěr) --- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--text);
  color: #ffffff;
  padding-block: var(--section-pad);
}
/* Jemný statický barevný glow na tmavém pozadí (protiváha hero) */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(35% 45% at 20% 25%, rgba(10, 132, 255, 0.16), transparent 70%),
    radial-gradient(30% 40% at 80% 20%, rgba(162, 89, 255, 0.14), transparent 70%),
    radial-gradient(30% 40% at 55% 85%, rgba(255, 94, 138, 0.12), transparent 70%);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact__title { font-size: var(--title-l); color: #ffffff; }
.contact__intro > p { margin-top: 1.25rem; color: rgba(255, 255, 255, 0.65); }
.contact__list { margin-top: 2rem; display: grid; gap: 0.75rem; }
.contact__list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
}
.contact__list a:hover { text-decoration: underline; }
/* Delší e-mailová adresa: zalomit jen v případě přetečení (úzké mobily) */
.contact__list a,
.page-cta__alt a { overflow-wrap: anywhere; }

/* Formulář na tmavém pozadí */
.form { display: grid; gap: 1.25rem; }
.form__field { display: grid; gap: 0.5rem; }
.form label { font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.form input,
.form select,
.form textarea {
  font: inherit;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.form select:focus,
.form input:focus,
.form textarea:focus { border-color: #ffffff; }
.form select:focus-visible,
.form input:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.form__error { color: #ff8fa3; font-size: 0.9rem; }
.form .btn--primary { background: #ffffff; color: var(--text); justify-self: start; }
.form__note { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.form select { width: 100%; min-width: 0; color-scheme: dark; }
.form select option { background: var(--text); color: #ffffff; }
.form textarea { resize: vertical; min-width: 0; width: 100%; }
.form__field[hidden] { display: none; }
.form__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form__copy { color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.4); }
.form__copy:hover { background: rgba(255, 255, 255, 0.1); }
.form__status { color: #ffffff; font-size: 0.9rem; }
.form__status:empty { display: none; }
.form__note a { text-decoration: underline; }

/* --- Patička --- */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  font-size: 0.9rem;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Pohyb jen pro ty, kteří ho chtějí --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .nav__cta:hover, .project:hover { transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --- Responzivita --- */
@media (max-width: 900px) {
  .showcase__grid { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about__quote { border-left: 0; padding-left: 0; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__menu {
    position: fixed;
    inset: 4rem 0 auto 0;
    z-index: 99;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 2.5rem;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font-size: 1.2rem; color: var(--text); }
}

@media (max-width: 700px) {
  .numbers__grid { grid-template-columns: 1fr; gap: 3rem; }
  .story--b .story__inner { margin-left: 0; text-align: left; }
  .story--b .story__text { margin-left: 0; }
}

/* ============================================================
   Oživení — pohyb jen s prefers-reduced-motion: no-preference
   ============================================================ */

/* Rotující slovo v hero (šířku nastavuje JS podle nejširšího slova) */
.hero__word {
  display: inline-block;
  white-space: nowrap;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease, transform 0.25s ease;
}
.hero__word.is-out { opacity: 0; transform: translateY(-0.4em); }
.hero__word.is-in { animation: word-in 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes word-in {
  from { opacity: 0; transform: translateY(0.4em); }
}

/* Kaskádové zobrazení karet a statistik (guard :not(.is-visible),
   aby se nezpožďoval hover transform až po revealu) */
.project.reveal:not(.is-visible):nth-child(2),
.stat.reveal:not(.is-visible):nth-child(2) { transition-delay: 0.12s; }
.project.reveal:not(.is-visible):nth-child(3),
.stat.reveal:not(.is-visible):nth-child(3) { transition-delay: 0.24s; }

/* Animované podtržení odkazů navigace + zvýraznění aktivní sekce */
.nav__link { position: relative; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { color: var(--text); }

/* Shine sweep přes kartu projektu při hoveru */
.project { position: relative; }
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.project:hover::after { transform: translateX(110%); }

/* Pohyb jen pro ty, kteří ho chtějí */
@media (prefers-reduced-motion: no-preference) {
  /* Vstupní kaskáda hero obsahu (čistý CSS, funguje i bez JS) */
  .hero__title, .hero__subtitle, .hero__actions {
    opacity: 0;
    animation: hero-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero__subtitle { animation-delay: 0.15s; }
  .hero__actions { animation-delay: 0.3s; }
  @keyframes hero-enter {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }

  /* Pomalý drift glow v pozadí hero */
  .hero__glow { animation: glow-drift 22s ease-in-out infinite alternate; }
  @keyframes glow-drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(3%, 4%) scale(1.07); }
  }
}

/* --- Honeypot: vizuálně i pro čtečky mimo obrazovku --- */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Služby a ceny — teaser na homepage + podstránka sluzby.html
   ============================================================ */

/* --- Teaser „Co dělám." (homepage) --- */
.services { padding-block: var(--section-pad); }
.services__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.services__item {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding: 2.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.services__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.services__item:nth-child(1) .services__dot { background: var(--c-blue); }
.services__item:nth-child(2) .services__dot { background: var(--c-purple); }
.services__item:nth-child(3) .services__dot { background: var(--c-pink); }
.services__item h3 { font-size: 1.3rem; }
.services__cta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.services__cta p { color: var(--text-2); font-size: 1.1rem; }

/* --- Hero podstránky --- */
.page-hero { padding-block: calc(4rem + clamp(3rem, 10vh, 6rem)) 0; }
.page-hero__title {
  font-size: var(--title-xl);
  letter-spacing: -0.045em;
  max-width: 15ch;
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple) 40%, var(--c-pink) 70%, var(--c-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.page-hero__subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-2);
  max-width: 34ch;
}

/* --- Co nabízím (karty služeb) --- */
.svc { padding-block: var(--section-pad); }
.svc__lead { margin-top: 1.25rem; color: var(--text-2); font-size: 1.15rem; max-width: 52ch; }
.svc__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.svc__card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.svc__head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.svc__badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}
.svc__tagline { margin-top: 0.6rem; color: var(--text-2); }
.svc__list { margin-top: 1.4rem; display: grid; gap: 0.55rem; color: var(--text-2); }
.svc__list li { position: relative; padding-left: 1.3rem; }
.svc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
}
.svc__card:nth-child(1) .svc__list li::before { background: var(--c-blue); }
.svc__card:nth-child(2) .svc__list li::before { background: var(--c-purple); }
.svc__card:nth-child(3) .svc__list li::before { background: var(--c-pink); }
.svc__card:nth-child(4) .svc__list li::before { background: var(--c-orange); }

/* --- Pro koho --- */
.audience { padding-block: var(--section-pad); background: var(--bg-soft); }
.audience__lead {
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 46ch;
}
.audience__tags {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.audience__tags li {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.audience__motto {
  margin-top: 3rem;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 30ch;
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple) 40%, var(--c-pink) 70%, var(--c-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Ceník (balíčky) --- */
.pricing { padding-block: var(--section-pad); }
.pricing__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.pricing__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.pricing__name {
  font-size: 1.05rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
}
.pricing__price {
  margin-top: 0.9rem;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.pricing__for { margin-top: 0.4rem; color: var(--text-2); font-weight: 500; }
.pricing__list { margin-top: 1.5rem; display: grid; gap: 0.55rem; color: var(--text-2); }
.pricing__list li { position: relative; padding-left: 1.5rem; }
.pricing__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.pricing__card .btn {
  margin-top: auto;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
}
.pricing__card--custom .pricing__price {
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.pricing__note { margin-top: 2rem; color: var(--text-2); font-size: 0.95rem; max-width: 60ch; }

/* --- Co dostanete --- */
.deliver { padding-block: var(--section-pad); background: var(--bg-soft); }
.deliver__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.deliver__col {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.deliver__col h3 { font-size: 1.25rem; }
.deliver__col ul { margin-top: 1.25rem; display: grid; gap: 0.5rem; color: var(--text-2); font-size: 0.98rem; }
.deliver__col li { position: relative; padding-left: 1.6rem; }
.deliver__col--in li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.deliver__col--not li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-2);
}
.deliver__hint { margin-top: 1.25rem; color: var(--text-2); font-size: 0.95rem; }

/* --- Jak to probíhá (časová osa) --- */
.process { padding-block: var(--section-pad); }
.process__list {
  position: relative;
  margin-top: 3rem;
  display: grid;
  gap: 1.75rem;
  max-width: 640px;
}
.process__list::before {
  content: "";
  position: absolute;
  left: 1.45rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--c-blue), var(--c-purple), var(--c-pink), var(--c-orange));
  opacity: 0.35;
}
.process__list li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  align-items: center;
}
.process__num {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-weight: 700;
}
.process__list h3 { font-size: 1.15rem; }
.process__list p { margin-top: 0.2rem; color: var(--text-2); }

/* --- Závěrečné CTA podstránky (tmavé, jako kontakt) --- */
.page-cta {
  position: relative;
  overflow: hidden;
  background: var(--text);
  color: #ffffff;
  padding-block: var(--section-pad);
}
.page-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(35% 45% at 20% 25%, rgba(10, 132, 255, 0.16), transparent 70%),
    radial-gradient(30% 40% at 80% 20%, rgba(162, 89, 255, 0.14), transparent 70%),
    radial-gradient(30% 40% at 55% 85%, rgba(255, 94, 138, 0.12), transparent 70%);
  pointer-events: none;
}
.page-cta__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
}
.page-cta__inner h2 { font-size: var(--title-l); color: #ffffff; }
.page-cta .btn--primary { background: #ffffff; color: var(--text); }
.page-cta__alt { color: rgba(255, 255, 255, 0.65); }
.page-cta__alt a { color: #ffffff; }

/* --- Navigace: aktuální stránka na podstránce --- */
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* --- Responzivita nových sekcí --- */
@media (max-width: 900px) {
  .svc__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__cta { justify-content: center; text-align: center; }
  .deliver__grid { grid-template-columns: 1fr; }
}

/* Vlastní CRM — obchodní postup od kontaktu po fakturaci. */
.crm-feature { padding-block: clamp(4rem, 9vw, 7rem); background: #182b35; color: #f4f8fa; }
.crm-feature__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.crm-feature__eyebrow { color: #a8d8dc; margin-bottom: 1.25rem; font-size: 0.95rem; }
.crm-feature h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.1; letter-spacing: -0.04em; }
.crm-feature__pitch { font-size: 1.1rem; line-height: 1.75; color: #d0dde3; }
.crm-feature__pitch p + p { margin-top: 1rem; }
.crm-feature__flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; list-style: none; margin-block: 3rem; padding-block: 2rem; border-block: 1px solid #42555f; }
.crm-feature__step { display: block; margin-bottom: 1rem; color: #a8d8dc; font-size: 0.9rem; }
.crm-feature h3 { font-size: 1.2rem; }
.crm-feature__flow p { margin-top: 0.75rem; color: #d0dde3; line-height: 1.7; }
.crm-feature__bottom { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.crm-feature__bottom > div { max-width: 42rem; }
.crm-feature__bottom p { margin-top: 0.8rem; color: #d0dde3; line-height: 1.7; }
.crm-feature__bottom .crm-feature__note { font-size: 0.875rem; color: #b0c3cd; }
.crm-feature__button { flex-shrink: 0; background: #d0eff0; color: #182b35; gap: 0.6rem; }
.crm-feature__button:hover { background: #e5f7f8; }
.crm-feature a:focus-visible { outline-color: #d0eff0; }
.svc__card--app { grid-column: 1 / -1; order: 1; }
.svc__card--app > p:not(.svc__tagline) { max-width: 48rem; color: var(--text-2); }
.svc__card--app .btn { margin-top: 1.5rem; }
@media (max-width: 900px) {
  .crm-feature__intro { grid-template-columns: 1fr; gap: 1.75rem; }
  .crm-feature__flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-feature__bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
@media (max-width: 500px) {
  .crm-feature__flow { grid-template-columns: 1fr; gap: 1.75rem; }
  .crm-feature__step { margin-bottom: 0.4rem; }
}
