/* ============================================================
   Jakub Simon — tvorba webů · "Editorial Atelier"
   Designový systém + styly portfolia
   ============================================================ */

/* ---------- Tokeny ---------- */
:root {
  /* Barvy — teplá redakční paleta */
  --bone:      #F4EFE6;   /* pozadí stránky */
  --bone-2:    #EDE6D8;   /* zapuštěné plochy */
  --paper:     #FBF8F2;   /* karty / povrchy */
  --ink:       #16130D;   /* hlavní text */
  --ink-2:     #4B4438;   /* tlumený text */
  --ink-3:     #6E6557;   /* nejtlumenější — splňuje WCAG AA i pro malý text na krému */
  --line:      #E2DAC9;   /* hairline linky */
  --line-2:    #D6CCB7;

  --cobalt:      #2C28D6;  /* primární akcent */
  --cobalt-deep: #201CA6;  /* hover */
  --cobalt-soft: #E4E2FB;  /* světlé plochy */
  --coral:       #FF5A35;  /* teplý akcent (střídmě) */
  --coral-soft:  #FFE3D7;
  --whatsapp:      #25D366;
  --whatsapp-deep: #16b352;

  /* Typografie */
  --f-display: "Clash Display", "Clash Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body:    "General Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-serif:   "Fraunces", Georgia, "Times New Roman", serif;

  /* Rádiusy */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Stíny */
  --sh-sm: 0 1px 2px rgba(22,19,13,.05), 0 2px 6px rgba(22,19,13,.04);
  --sh:    0 6px 16px rgba(22,19,13,.07), 0 2px 6px rgba(22,19,13,.05);
  --sh-lg: 0 24px 60px -18px rgba(22,19,13,.22), 0 10px 24px -14px rgba(22,19,13,.16);
  --sh-cobalt: 0 18px 40px -14px rgba(44,40,214,.42);

  /* Rozměry */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 74px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 17.5px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Jemná zrnitost přes celou stránku */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
/* Velké zaoblené plochy (náhledy webů) — viditelný focus kopírující rádius rámu */
.browser:focus-visible, .work__media:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }
::selection { background: var(--cobalt); color: #fff; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.display {
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
}
.h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.03em; }
.h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.serif-i { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.accent { color: var(--cobalt); }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.32rem); color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }

/* Kotvy: aby nadpis po prokliku nezůstal schovaný pod sticky navigací
   (sladěno s offsetem plynulého scrollu v script.js) */
:where(section[id], #top) { scroll-margin-top: 84px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-body); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow__num {
  font-family: var(--f-display); font-weight: 600;
  color: var(--cobalt); font-size: .82rem; letter-spacing: 0;
}
.eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--line-2); }
.eyebrow--center::before { content: ""; width: 34px; height: 1px; background: var(--line-2); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { display: none; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head .h2 { margin-top: 18px; }
.section-head p { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Tlačítka ---------- */
.btn {
  --bg: var(--ink); --fg: var(--bone);
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 600; font-size: .98rem;
  letter-spacing: -.01em;
  padding: .92em 1.5em; border-radius: var(--r-pill);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background .25s, color .25s;
  will-change: transform;
  position: relative;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn:active { transform: translateY(0); }

.btn--primary { --bg: var(--cobalt); --fg: #fff; box-shadow: var(--sh-cobalt); }
.btn--primary:hover { --bg: var(--cobalt-deep); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn--wa { --bg: var(--whatsapp); --fg: #07371c; }
.btn--wa:hover { --bg: var(--whatsapp-deep); --fg: #fff; }
.btn--lg { padding: 1.08em 1.9em; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px; transition: gap .3s var(--ease), color .25s, border-color .25s;
}
.arrow-link:hover { gap: .9em; color: var(--cobalt); border-color: var(--cobalt); }

/* ===========================================================
   NAVIGACE
   =========================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s, height .4s;
}
.nav.scrolled {
  height: 62px;
  background: rgba(248,244,237,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bone);
  font-family: var(--f-display); font-weight: 600; font-size: .92rem; letter-spacing: -.04em;
  box-shadow: var(--sh-sm);
  transition: transform .5s var(--ease-out), background .3s;
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); background: var(--cobalt); }
.brand__sub { color: var(--ink-3); font-weight: 500; font-family: var(--f-body); font-size: .82rem; letter-spacing: 0; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 500; font-size: .96rem; color: var(--ink-2); position: relative; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--cobalt); transition: width .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger span:nth-child(3) { top: 28px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobilní menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bone);
  padding: calc(var(--nav-h) + 30px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .5s var(--ease-out), opacity .4s, visibility 0s .5s;
}
body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; transition: transform .5s var(--ease-out), opacity .4s, visibility 0s; }
.mobile-menu a { font-family: var(--f-display); font-weight: 600; font-size: 2rem; letter-spacing: -.03em; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border: none; }
.mobile-menu .btn { margin-top: 24px; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 90px)); padding-bottom: clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 80%;
  z-index: 0; pointer-events: none; filter: blur(8px);
  background:
    radial-gradient(38% 50% at 18% 25%, rgba(44,40,214,.16), transparent 70%),
    radial-gradient(34% 44% at 86% 18%, rgba(255,90,53,.14), transparent 70%),
    radial-gradient(40% 50% at 70% 60%, rgba(44,40,214,.08), transparent 70%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(30px, 5vw, 64px); align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--paper); border: 1px solid var(--line);
  padding: .5em .95em .5em .6em; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--sh-sm);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(37,211,102,.18); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 3px rgba(37,211,102,.20);} 50%{ box-shadow:0 0 0 7px rgba(37,211,102,0);} }

.hero h1 { margin: 26px 0 0; }
.hero h1 .line { display: block; overflow: hidden; }
.hero__sub { margin-top: 26px; max-width: 30ch; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__trust { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__trophy {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 600; font-size: .95rem;
  background: linear-gradient(100deg, var(--coral-soft), #fff3d9);
  border: 1px solid #f3d3b9;
  padding: .55em 1em; border-radius: var(--r-pill);
  color: #8a2c12;
}
.hero__trophy svg { width: 1.15em; height: 1.15em; }
.hero__stars { display: inline-flex; align-items: center; gap: .55em; font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.hero__stars b { color: var(--ink); }
.stars { color: var(--coral); letter-spacing: 1px; }

/* Hero vizuál — prohlížeč s živým náhledem */
.hero__visual { position: relative; }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

.browser {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  overflow: hidden;
}
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--paper), var(--bone-2)); }
.browser__dot { width: 11px; height: 11px; border-radius: 50%; background: #d9cfbd; }
.browser__dot:nth-child(1){ background:#ff6259; } .browser__dot:nth-child(2){ background:#febc2e; } .browser__dot:nth-child(3){ background:#28c840; }
.browser__url { margin-left: 10px; flex: 1; height: 26px; border-radius: 7px; background: var(--bone); display: flex; align-items: center; padding: 0 12px; font-size: .76rem; color: var(--ink-3); gap: 7px; overflow: hidden; white-space: nowrap; }
.browser__url svg { width: 12px; height: 12px; flex: none; }

/* Škálovaný iframe náhled */
.preview { position: relative; width: 100%; aspect-ratio: 1440 / 900; overflow: hidden; background: var(--bone-2); }
.preview iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform: scale(var(--s, .3)); transform-origin: top left; pointer-events: none; }

.chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--paper); border: 1px solid var(--line);
  padding: .6em .9em; border-radius: var(--r-pill);
  font-size: .86rem; font-weight: 600; box-shadow: var(--sh);
}
.chip svg { width: 1.05em; height: 1.05em; }
/* Chipy „plavou" u rámu, ale nesmí kolidovat s URL lištou prohlížeče (nahoře)
   ani vyčnívat mimo viewport na užších šířkách. */
.chip--1 { top: 20%; left: -6%; }
.chip--2 { bottom: 13%; right: -5%; }
.chip i { font-style: normal; color: var(--cobalt); }
.chip--2 i { color: var(--whatsapp); }

/* ===========================================================
   MARQUEE / pásek dovedností
   =========================================================== */
.marquee { border-block: 1px solid var(--line); background: var(--paper); padding-block: 18px; overflow: hidden; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 16px; padding-inline: 26px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.35rem); letter-spacing: -.02em; color: var(--ink-2); white-space: nowrap; }
.marquee__item::after { content: "✦"; color: var(--cobalt); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ===========================================================
   PRÁCE / Ukázky
   =========================================================== */
.works { display: grid; gap: clamp(28px, 4vw, 46px); }
.work {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center;
}
.work:nth-child(even) .work__media { order: 2; }
.work__frame {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--sh-lg); background: var(--paper);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.work__frame .browser__bar { padding: 11px 14px; }
.work:hover .work__frame { transform: translateY(-6px); box-shadow: var(--sh-lg), var(--sh-cobalt); }
.work__media { position: relative; }
.work__open {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  background: linear-gradient(transparent 55%, rgba(22,19,13,.28));
  opacity: 0; transition: opacity .4s var(--ease);
}
.work:hover .work__open { opacity: 1; }
.work__open span {
  background: var(--paper); color: var(--ink); font-weight: 600;
  padding: .8em 1.4em; border-radius: var(--r-pill); box-shadow: var(--sh-lg);
  display: inline-flex; align-items: center; gap: .5em; transform: translateY(8px); transition: transform .4s var(--ease);
}
.work:hover .work__open span { transform: translateY(0); }

.work__tag { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.work__title { margin: 12px 0 14px; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.work__desc { color: var(--ink-2); max-width: 44ch; }
.work__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: .82rem; font-weight: 500; color: var(--ink-2); background: var(--bone-2); border: 1px solid var(--line); padding: .4em .85em; border-radius: var(--r-pill); }
.work__links { margin-top: 26px; display: flex; align-items: center; gap: 22px; }

/* ===========================================================
   O MNĚ / Příběh
   =========================================================== */
.about { background: var(--ink); color: var(--bone); border-radius: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.about::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; height: 80%; background: radial-gradient(circle, rgba(44,40,214,.5), transparent 65%); filter: blur(20px); }
.about__inner {
  position: relative; z-index: 1;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 72px);
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(34px, 5vw, 72px); align-items: center;
}
.about .eyebrow, .about .eyebrow__num { color: #c9c4b8; }
.about .eyebrow::after { background: rgba(255,255,255,.2); }
.about__portrait {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(150deg, #2a2620, #1a1712);
  border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__portrait .ph { text-align: center; color: #8b857a; }
.about__portrait .ph-mark { font-family: var(--f-display); font-weight: 600; font-size: 4.5rem; color: rgba(255,255,255,.14); letter-spacing: -.04em; }
.about__trophy-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: .85rem;
  padding: .6em 1em; border-radius: var(--r-pill); box-shadow: var(--sh-lg);
}
.about__trophy-badge svg { width: 1.2em; height: 1.2em; color: var(--coral); }
.about h2 { color: var(--bone); }
.about__lead { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; color: #fff; letter-spacing: -.01em; margin-top: 20px; }
.about__body { color: #d4cfc4; margin-top: 22px; max-width: 54ch; }
.about__body p + p { margin-top: 14px; }
.about__stats { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about__stat { border-top: 1px solid rgba(255,255,255,.16); padding-top: 14px; }
.about__stat b { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; }
.about__stat span { color: #b3ada1; font-size: .88rem; }

/* ===========================================================
   BALÍČKY / Ceník
   =========================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 26px); align-items: stretch; }
.plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column;
  box-shadow: var(--sh-sm); transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.plan--featured { background: var(--ink); color: var(--bone); border-color: var(--ink); box-shadow: var(--sh-lg); }
.plan--featured .plan__name, .plan--featured .plan__price b { color: #fff; }
.plan__badge { align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--coral); color: #fff; padding: .4em .8em; border-radius: var(--r-pill); margin-bottom: 16px; }
.plan__name { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; }
.plan__for { color: var(--ink-3); font-size: .92rem; margin-top: 4px; }
.plan--featured .plan__for { color: #b3ada1; }
.plan__price { margin: 22px 0 4px; display: flex; align-items: baseline; gap: .35em; }
.plan__price .from { font-size: .85rem; color: var(--ink-3); }
.plan--featured .plan__price .from { color: #b3ada1; }
.plan__price b { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.7rem); letter-spacing: -.03em; }
.plan__price .cur { font-weight: 600; font-size: 1.1rem; color: var(--ink-2); }
.plan--featured .plan__price .cur { color: #d4cfc4; }
.plan__hr { height: 1px; background: var(--line); margin: 22px 0; }
.plan--featured .plan__hr { background: rgba(255,255,255,.14); }
.plan__feats { display: grid; gap: 12px; margin-bottom: 28px; }
.plan__feats li { display: flex; gap: .7em; align-items: flex-start; font-size: .96rem; color: var(--ink-2); }
.plan--featured .plan__feats li { color: #d4cfc4; }
.plan__feats svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--cobalt); }
.plan--featured .plan__feats svg { color: #8f8bff; }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--ink-3); font-size: .92rem; margin-top: 28px; }

/* ===========================================================
   PROCES
   =========================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.5vw, 30px); counter-reset: step; }
.step { position: relative; }
.step__num { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--cobalt); display: inline-flex; align-items: center; gap: .6em; margin-bottom: 18px; }
.step__num::before { counter-increment: step; content: "0" counter(step); }
.step__num::after { content: ""; flex: 1; height: 1px; background: var(--line); min-width: 30px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .96rem; }

/* ===========================================================
   FAQ
   =========================================================== */
.faq { display: grid; gap: 0; max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; padding: 26px 4px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.08rem, 1.9vw, 1.32rem); letter-spacing: -.02em; color: var(--ink); }
.faq__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; position: relative; transition: background .3s, border-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), background .3s; }
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after { width: 2px; height: 12px; }
.faq__item.open .faq__icon { background: var(--cobalt); border-color: var(--cobalt); }
.faq__item.open .faq__icon::before, .faq__item.open .faq__icon::after { background: #fff; }
.faq__item.open .faq__icon::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq__a-inner { padding: 0 4px 26px; color: var(--ink-2); max-width: 64ch; }

/* ===========================================================
   KONTAKT
   =========================================================== */
.contact { position: relative; }
.contact__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: clamp(24px, 4vw, 44px);
  padding: clamp(30px, 5vw, 68px); box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.contact__card::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 50%; height: 70%; background: radial-gradient(circle, rgba(44,40,214,.10), transparent 65%); filter: blur(10px); }
.contact__intro { position: relative; z-index: 1; }
.contact h2 { margin: 18px 0; }
.contact__methods { margin-top: 30px; display: grid; gap: 12px; }
.cmethod { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--bone); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.cmethod:hover { transform: translateX(4px); border-color: var(--line-2); }
.cmethod__ic { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--paper); box-shadow: var(--sh-sm); }
.cmethod__ic svg { width: 20px; height: 20px; }
.cmethod--wa .cmethod__ic { background: var(--whatsapp); color: #fff; }
.cmethod div span { font-size: .82rem; color: var(--ink-3); display: block; }
.cmethod b { font-weight: 600; font-size: 1.02rem; }

/* Formulář */
.form { position: relative; z-index: 1; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--bone); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: .85em 1em; width: 100%;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); background: var(--paper); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__success { display: none; text-align: center; padding: 20px; }
.form__success.show { display: block; animation: pop .5s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.96);} to { opacity: 1; transform: scale(1);} }
.form__success .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.form__success .ic svg { width: 30px; height: 30px; }
.form__note { font-size: .82rem; color: var(--ink-3); text-align: center; }

/* ===========================================================
   PATIČKA
   =========================================================== */
.footer { padding-block: clamp(54px, 7vw, 88px) 34px; }
.footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 34px; align-items: flex-start; }
.footer__brand { max-width: 30ch; }
.footer__brand p { color: var(--ink-2); margin-top: 16px; }
.footer__cols { display: flex; gap: clamp(40px, 8vw, 90px); flex-wrap: wrap; }
.footer__col h4 { font-family: var(--f-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; font-weight: 600; }
.footer__col a { display: block; color: var(--ink-2); padding: 5px 0; transition: color .2s, padding-left .25s; }
.footer__col a:hover { color: var(--cobalt); padding-left: 5px; }
.footer__bottom { margin-top: clamp(44px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--ink-3); font-size: .9rem; }
.footer__bottom a { color: var(--ink-2); }
.footer__made { display: inline-flex; align-items: center; gap: .5em; }

/* WhatsApp plovoucí tlačítko */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transform: translateY(30px) scale(.6); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .5s var(--ease-out), opacity .4s, background .25s, visibility 0s .5s;
}
.wa-float.show { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition: transform .5s var(--ease-out), opacity .4s, background .25s, visibility 0s; }
.wa-float:hover { background: var(--whatsapp-deep); transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0%{ transform: scale(1); opacity: .7;} 100%{ transform: scale(1.5); opacity: 0;} }

/* ===========================================================
   REVEAL animace
   =========================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .badge .dot, .wa-float::after { animation: none; }
  /* žádné poskakování při hoveru, pokud uživatel nechce pohyb */
  .btn:hover, .plan:hover, .work:hover .work__frame,
  .cmethod:hover, .wa-float:hover, .brand:hover .brand__mark { transform: none; }
}

/* Hero load reveal */
.hero .line > * { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease-out) forwards; }
.hero h1 .line:nth-child(1) > * { animation-delay: .05s; }
.hero h1 .line:nth-child(2) > * { animation-delay: .15s; }
.hero h1 .line:nth-child(3) > * { animation-delay: .25s; }
@keyframes rise { to { transform: none; } }
.hero .fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .8s var(--ease-out) forwards; }
.hero .badge.fade-up { animation-delay: 0s; }
.hero__sub.fade-up { animation-delay: .35s; }
.hero__cta.fade-up { animation-delay: .45s; }
.hero__trust.fade-up { animation-delay: .55s; }
.hero__visual.fade-up { animation-delay: .3s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .line > *, .hero .fade-up { animation: none; opacity: 1; transform: none; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; margin-top: 14px; }
  .hero__sub { max-width: none; }
  .about__inner { grid-template-columns: 1fr; }
  .about__portrait { max-width: 360px; }
  .contact__card { grid-template-columns: 1fr; }
  .work, .work:nth-child(even) .work__media { grid-template-columns: 1fr; }
  .work:nth-child(even) .work__media { order: 0; }
  .work__body { order: 2; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta .btn:not(.nav__burger) { display: none; }
  .nav__cta .nav__burger { display: block; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plan--featured { order: -1; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .footer__top { flex-direction: column; }
  .chip { display: none; }
  .btn { width: 100%; justify-content: center; }
  .hero__cta { flex-direction: column; }
  /* Pohodlné tap-targety na mobilu (≥44px) */
  .footer__col a { padding: 9px 0; }
  .arrow-link { padding-block: 8px 6px; }
  .work__links { gap: 16px 22px; flex-wrap: wrap; }
}
