/* ============================================================
   Mapa automatizací — mapa.modernikomunikace.com
   Vizuální tokeny převzaté ze živého webu modernikomunikace.com
   (--color-base, --color-panel, --color-glow-* , blur/saturate),
   sladěné se specifikací 03-LANDING.md (Outfit, #0B0B0D, gradient).
   Mobile-first, návrh na 390 px.
   ============================================================ */

@font-face {
  font-family: "Outfit";
  src: url("fonty/Outfit-Regular.woff2") format("woff2"),
       url("fonty/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonty/Outfit-SemiBold.woff2") format("woff2"),
       url("fonty/Outfit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Podklady — ze živého webu MK */
  --zaklad: #050506;
  --panel: #0e0e12;
  --panel-vys: #141418;
  --linka: rgba(255, 255, 255, 0.08);
  --linka-vyr: rgba(255, 255, 255, 0.16);

  /* Text */
  --ink: #f5f5f7;
  --ink-soft: rgba(245, 245, 247, 0.64);
  --ink-faint: rgba(245, 245, 247, 0.42);
  --seda: #8a8a93;

  /* Záře — podpis značky */
  --zar-fialova: #8b5cf6;
  --zar-magenta: #e44bff;
  --zar-ruzova: #ff2d8f;
  --zar-oranzova: #ff5a2f;
  --zar-modra: #22d3ee;

  --akcent: var(--zar-fialova);
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);

  /* Rozměry */
  --sirka: 1120px;
  --sirka-text: 640px;
  --sirka-form: 480px;
  --radius: 14px;
  --radius-vel: 20px;

  --prechod: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--zaklad);
  color: var(--ink);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Pole záře na pozadí: tři aurory, podpis MK ---------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 12% 8%, rgba(255, 90, 47, 0.06), transparent 62%),
    radial-gradient(40rem 32rem at 88% 26%, rgba(255, 45, 143, 0.05), transparent 62%),
    radial-gradient(38rem 30rem at 50% 108%, rgba(139, 92, 246, 0.05), transparent 60%);
  animation: mk-float 26s ease-in-out infinite alternate;
}

@keyframes mk-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -2.5%, 0) scale(1.06); }
}

/* --- Skelet ---------------------------------------------------- */
.obal { position: relative; z-index: 1; }

.sekce {
  padding: 72px 20px;
  border-top: 1px solid var(--linka);
}
.sekce:first-of-type { border-top: 0; }

.uvnitr {
  width: 100%;
  max-width: var(--sirka);
  margin-inline: auto;
}
.uzky { max-width: var(--sirka-text); }

/* Mřížkové položky se ve výchozím stavu nesmrští pod svůj obsah
   (min-width:auto) a roztáhly by celou stránku do šířky. */
.hero-mrizka > *,
.sloupce > *,
.karty > *,
.sceny > *,
.tyden > * { min-width: 0; }

/* --- Typografie ------------------------------------------------ */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 { font-size: 34px; }
h2 { font-size: 27px; }
h3 { font-size: 20px; }

p { margin: 0 0 16px; max-width: 66ch; }

.nadnadpis {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.podnadpis {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.tlumene { color: var(--seda); }
.cisla { font-variant-numeric: tabular-nums; }

.akcent-text { color: var(--zar-modra); }

/* Tenká gradientová linka pod nadpisem — jediné dekorativní užití */
.linka-grad {
  width: 72px;
  height: 2px;
  border: 0;
  margin: 0 0 26px;
  background: var(--gradient);
  border-radius: 2px;
}

a { color: var(--zar-modra); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* --- Tlačítka -------------------------------------------------- */
.tlacitko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--gradient);
  color: #08080a;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--prechod), filter var(--prechod);
}
.tlacitko:hover { filter: brightness(1.08); color: #08080a; }
.tlacitko:active { transform: scale(0.985); }
.tlacitko[disabled] { opacity: 0.65; cursor: progress; }

.pod-tlacitkem {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 12px 0 0;
  max-width: 52ch;
}

/* --- Hero ------------------------------------------------------ */
.hero { padding-top: 56px; padding-bottom: 64px; }

.hero-mrizka { display: grid; gap: 40px; }

.hero h1 { margin-bottom: 20px; }

.hero-body { font-size: 17px; color: var(--ink-soft); }

.sliby {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: grid;
  gap: 10px;
}
.sliby li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 16px;
}
.sliby li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.hero-patka {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--linka);
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* Ukázková A4 — hlavní obrazový prvek, dokud nebude fotka */
.a4 {
  background: #fbfbf9;
  color: #16161a;
  border-radius: 6px;
  padding: 22px 20px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.1deg);
  font-size: 13px;
  line-height: 1.45;
}
.a4-hlava {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1.5px solid #16161a;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.a4-hlava strong { font-size: 15px; letter-spacing: -0.01em; }
.a4-stitek {
  font-size: 10px;
  color: #6f6570;
  border: 1px solid #cfc6cd;
  border-radius: 4px;
  padding: 2px 6px;
}
.a4 { max-width: 100%; }
.a4 table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.a4 th:nth-child(2), .a4 td:nth-child(2) { width: 22%; }
.a4 th:nth-child(3), .a4 td:nth-child(3) { width: 30%; }
.a4 th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  color: #6f6570;
  padding: 0 6px 7px 0;
  border-bottom: 1px solid #e2dde1;
  letter-spacing: 0.02em;
}
.a4 td {
  padding: 9px 6px 9px 0;
  vertical-align: top;
  border-bottom: 1px solid #efeaee;
}
.a4 td:nth-child(2),
.a4 td:nth-child(3) { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.a4 tr:last-child td { border-bottom: 0; }
.a4-pata { margin-top: 10px; font-size: 10.5px; color: #6f6570; }

/* --- Video ----------------------------------------------------- */
.video-ram {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--linka);
  background: var(--panel);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.video-ram p { color: var(--ink-faint); font-size: 14px; margin: 0; }

.body-textem { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.body-textem li {
  padding-left: 18px;
  border-left: 2px solid var(--linka-vyr);
  color: var(--ink-soft);
  max-width: 65ch;
}

/* --- Dva sloupce: pro koho ne / pro koho ano ------------------- */
.sloupce { display: grid; gap: 32px; margin-top: 28px; }

.sloupec h3 { margin-bottom: 14px; }
.sloupec ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sloupec li { position: relative; padding-left: 16px; }
.sloupec li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

.sloupec-ne { color: var(--seda); }
.sloupec-ano {
  color: var(--ink);
  border-left: 2px solid transparent;
  border-image: var(--gradient) 1;
  padding-left: 20px;
}

/* --- Scény ----------------------------------------------------- */
.sceny { display: grid; gap: 16px; margin-top: 28px; }

.scena {
  background: var(--panel);
  border: 1px solid var(--linka);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.scena h3 {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.scena p { color: var(--ink-soft); font-size: 16px; }
.scena p:last-child { margin-bottom: 0; }
.bez-viny {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--zar-modra);
  color: var(--zar-modra);
  font-size: 15px;
}

/* --- Osa tří kroků --------------------------------------------- */
.osa { display: grid; gap: 28px; margin-top: 28px; counter-reset: krok; }

.krok {
  position: relative;
  padding-left: 46px;
}
.krok::before {
  counter-increment: krok;
  content: counter(krok);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--linka-vyr);
  background: var(--panel);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.krok::after {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 38px;
  bottom: -28px;
  width: 1px;
  background: linear-gradient(180deg, var(--linka-vyr), transparent);
}
.krok:last-child::after { display: none; }
.krok h3 { margin-bottom: 10px; }
.krok p { color: var(--ink-soft); font-size: 16px; }

.tydny { display: grid; gap: 12px; margin-top: 28px; }
.tyden {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--linka);
  font-size: 16px;
  color: var(--ink-soft);
}
.tyden strong { color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }

/* --- Osm karet ------------------------------------------------- */
.karty { display: grid; gap: 14px; margin-top: 28px; }

.karta {
  background: var(--panel-vys);
  border: 1px solid var(--linka);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color var(--prechod);
}
.karta:hover { border-color: var(--linka-vyr); }

.karta-hlava { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.karta h3 { font-size: 18px; margin: 0; }

.ikona {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  stroke: var(--zar-modra);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 1px;
}

.karta .problem { color: var(--seda); font-size: 15px; margin-bottom: 12px; }
.karta .potom { color: var(--ink-soft); font-size: 15px; margin: 0; }
.karta .potom strong { color: var(--ink); font-weight: 600; }
.karta .sam {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--zar-modra);
}

/* --- Formulář -------------------------------------------------- */
.form-obal { max-width: var(--sirka-form); }

.pole { margin-bottom: 22px; }

.pole label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pole input[type="text"],
.pole input[type="tel"],
.pole input[type="email"],
.pole textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 15px;
  background: var(--panel);
  border: 1px solid var(--linka-vyr);
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px; /* pod 16 px iOS přizoomuje */
  transition: border-color var(--prechod), background var(--prechod);
}
.pole textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

.pole input:focus-visible,
.pole textarea:focus-visible {
  outline: none;
  border-color: var(--zar-fialova);
  background: #101016;
}

.napoveda { font-size: 14px; color: var(--ink-faint); margin: 8px 0 0; }

/* Pilulky */
.pilulky { display: flex; flex-wrap: wrap; gap: 8px; }

.pilulka {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  text-align: left;
  padding: 10px 18px;
  border: 1px solid var(--linka-vyr);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color var(--prechod), color var(--prechod),
              background var(--prechod), transform var(--prechod);
}
.pilulka:hover { border-color: var(--linka-vyr); color: var(--ink); }
.pilulka:active { transform: scale(0.97); }
.pilulka[aria-pressed="true"] {
  border-color: transparent;
  background: var(--gradient);
  color: #08080a;
  font-weight: 600;
}
.pilulka:focus-visible { outline: 2px solid var(--zar-modra); outline-offset: 2px; }

.hlaska-mala-firma {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--linka-vyr);
  background: var(--panel);
  font-size: 14px;
  color: var(--ink-soft);
}

.chyba {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 90, 47, 0.4);
  background: rgba(255, 90, 47, 0.08);
  color: var(--ink);
  font-size: 15px;
}

.pravni {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 14px 0 0;
  line-height: 1.55;
  max-width: none;
}

/* ARES našeptávač */
.naseptavac-obal { position: relative; }
.naseptavac {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel-vys);
  border: 1px solid var(--linka-vyr);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  max-height: 260px;
  overflow-y: auto;
}
.naseptavac li { padding: 0; }
.naseptavac button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
.naseptavac button:hover,
.naseptavac button:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.naseptavac small { display: block; color: var(--ink-faint); font-size: 13px; margin-top: 2px; }

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

/* --- Sticky tlačítko ------------------------------------------- */
.sticky {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-top: 1px solid var(--linka);
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky[data-videt="ano"] { transform: translateY(0); }

/* --- Patička --------------------------------------------------- */
.patka {
  padding: 48px 20px 64px;
  border-top: 1px solid var(--linka);
  color: var(--ink-faint);
  font-size: 15px;
}
.patka p { max-width: 60ch; }

/* --- Přístupnost ----------------------------------------------- */
:focus-visible { outline: 2px solid var(--zar-modra); outline-offset: 3px; border-radius: 4px; }

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

/* --- Režírovaný nástup hero (jediný nevyžádaný pohyb) ---------- */
.nastup > * {
  opacity: 0;
  transform: translateY(14px);
  animation: nastup 0.62s cubic-bezier(0.22, 0.68, 0.35, 1) forwards;
}
.nastup > *:nth-child(1) { animation-delay: 0.05s; }
.nastup > *:nth-child(2) { animation-delay: 0.13s; }
.nastup > *:nth-child(3) { animation-delay: 0.21s; }
.nastup > *:nth-child(4) { animation-delay: 0.29s; }
.nastup > *:nth-child(5) { animation-delay: 0.37s; }
.nastup > *:nth-child(6) { animation-delay: 0.45s; }
.nastup > *:nth-child(7) { animation-delay: 0.53s; }

@keyframes nastup {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora { animation: none; }
  .nastup > * { opacity: 1; transform: none; animation: none; }
  .sticky { transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- FAQ ------------------------------------------------------- */
.faq details {
  border-bottom: 1px solid var(--linka);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 34px 18px 0;
  min-height: 52px;
  position: relative;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }

/* Šipka: jednoduchá, otočení do 200 ms */
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}
.faq summary:hover { color: var(--ink); }
.faq summary:focus-visible { outline: 2px solid var(--zar-modra); outline-offset: 2px; }

.faq details > div {
  padding: 0 0 20px;
}
.faq details p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.faq details p:last-child { margin-bottom: 0; }

/* --- Desktop --------------------------------------------------- */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .sekce { padding: 88px 32px; }
  h1 { font-size: 46px; }
  h2 { font-size: 36px; }
  h3 { font-size: 22px; }
  .podnadpis { font-size: 20px; }

  .hero { padding-top: 76px; padding-bottom: 76px; }
  .hero-mrizka { grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }

  .tlacitko { width: auto; min-width: 280px; }

  .sloupce { grid-template-columns: 1fr 1fr; gap: 48px; }
  .sceny { grid-template-columns: repeat(3, 1fr); }
  .karty { grid-template-columns: 1fr 1fr; gap: 16px; }

  .a4 { padding: 30px 28px 24px; font-size: 14px; }

  .video-ram { aspect-ratio: 16 / 9; }

  /* Na desktopu sticky lištu nepotřebujeme */
  .sticky { display: none; }
}

@media (min-width: 1024px) {
  .sekce { padding: 96px 40px; }
  /* Spec předepisuje 56 px; víc se na 1120px mřížce láme do šesti řádků. */
  h1 { font-size: 56px; }
}
