/* FEP – fep.sk
   Farby a písmo sú definované raz v :root, zvyšok z nich vychádza. */

:root {
  --ink: #14213D;        /* základná tmavá */
  --ink-deep: #0E1830;   /* pätička */
  --ink-soft: #24325A;   /* plochy na tmavom pozadí */
  --accent: #C2410C;     /* tlačidlá, zvýraznenia */
  --accent-dark: #9A3412;
  --accent-light: #FB923C; /* šípky a štítky na tmavom pozadí */
  --ground: #F5F6F8;
  --white: #FFFFFF;
  --line: #DDE1E8;
  --text: #3B4658;
  --muted: #4A5568;
  --on-dark: #C5CCDA;

  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --radius: 14px;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
}

h1, h2, h3, p, ul, ol, dl { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Rozloženie ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: 96px 24px; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--white + .section--white { border-top: 0; }
.section--dark { background: var(--ink); color: var(--white); }

.stack { display: flex; flex-direction: column; gap: 44px; }
.split { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split--center { align-items: center; }
.col { display: flex; flex-direction: column; gap: 16px; }
.col--start { align-items: flex-start; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }

/* ---------- Typografia ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.section--dark .eyebrow { color: #FDBA74; }

h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 600; }

.lead { font-size: 19px; color: var(--text); }
.text { color: var(--text); }
.text--lg { font-size: 18px; }
.section--dark .lead, .section--dark .text { color: var(--on-dark); }
.strong { font-weight: 600; color: var(--ink); }
.claim { font-size: 22px; font-weight: 600; }
.claim--lg { font-size: 24px; }
.note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.section--dark .note { color: var(--on-dark); }

/* ---------- Tlačidlá ---------- */

.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: background-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 11px 20px; }
.btn--lg { font-size: 18px; padding: 16px 30px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* ---------- Hlavička ---------- */

.site-header { background: var(--white); border-bottom: 1px solid var(--line); padding: 14px 24px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo span { font-size: 26px; font-weight: 700; letter-spacing: 0.04em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 12px 4px; }
.nav a:not(.btn):hover { color: var(--accent); }

/* ---------- 1. Úvod ---------- */

.hero { padding: 88px 24px 96px; }
.hero .col { gap: 22px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card--soft { background: var(--ground); }
.card--float { box-shadow: 0 18px 40px rgba(20, 33, 61, 0.10); padding: 26px; display: flex; flex-direction: column; gap: 18px; }

.ticket-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.ticket-no { font-family: var(--mono); font-weight: 600; color: var(--muted); }
.ticket-title { font-size: 24px; font-weight: 600; line-height: 1.2; }
.ticket-meta {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.ticket-meta dl, .ticket-meta dt, .ticket-meta dd { margin: 0; }
.ticket-meta dt { color: var(--muted); font-size: 13px; }
.ticket-meta dd { font-weight: 600; }
.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.timeline li { display: flex; gap: 12px; }
.timeline li::before {
  content: ''; flex: none; width: 10px; height: 10px; margin-top: 7px;
  border-radius: 50%; background: var(--ink);
}
.timeline li.is-last::before { background: var(--accent); }

/* Štítky stavov – líšia sa farbou aj svetlosťou */
.badge {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}
.badge--lg { font-size: 13px; padding: 5px 10px; }
.badge--work { color: #7C2D12; background: #FFEDD5; }
.badge--wait { color: #374151; background: #E5E7EB; }
.badge--assigned { color: var(--white); background: var(--ink); }
.badge--new { color: #1E3A8A; background: #DBEAFE; }

/* ---------- 2. Problém ---------- */

.quote {
  font-size: 22px; font-weight: 600; color: var(--ink);
  background: var(--ground); padding: 16px 20px; border-radius: 10px;
}
.col--tight { gap: 14px; }

.flow-box { background: var(--ink); color: var(--white); border-radius: 16px; padding: 40px 32px; display: flex; flex-direction: column; gap: 32px; }
.flow-box h3 { font-size: 26px; line-height: 1.2; }
.flow-box p { color: var(--on-dark); margin-top: 6px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.flow svg { flex: none; }
.flow-sources, .flow-steps { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }
.flow-sources { flex: 1 1 180px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.flow-sources li { border: 1px solid #47557A; border-radius: 8px; padding: 10px 14px; }
.flow-core { flex: 0 1 150px; background: var(--white); color: var(--ink); border-radius: 12px; padding: 28px 20px; text-align: center; font-size: 32px; font-weight: 700; letter-spacing: 0.04em; }
.flow-steps { flex: 2 1 360px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow-steps span { background: var(--ink-soft); border-radius: 8px; padding: 12px 14px; }

/* ---------- 3. Ako to funguje ---------- */

.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.step-no { flex: none; width: 48px; font-family: var(--mono); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--accent); }
.step-body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.step-body h3 { font-size: 23px; }
.step-aside { flex: 0 1 260px; align-self: center; background: var(--ground); border-radius: 10px; padding: 16px 18px; }
.step-aside small { display: block; font-size: 13px; color: var(--muted); }
.step-aside b { font-family: var(--mono); font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 500; }
.chips li { background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

.chain { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; }
.chain li + li::before { content: '→'; color: var(--accent); margin-right: 12px; }
.chain--boxes li span { display: inline-block; background: var(--ink); color: var(--white); border-radius: 8px; padding: 12px 18px; }

/* ---------- 4. E-mail vs FEP ---------- */

.compare { display: flex; flex-wrap: wrap; gap: 24px; }
.compare > * { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.panel-dark { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 28px; }
.panel-dark p { color: var(--on-dark); }

.inbox { list-style: none; padding: 0; font-size: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--text); }
.inbox li { padding: 11px 16px; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox b { color: var(--ink); }
.questions { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }

.table-box { overflow-x: auto; background: var(--white); color: var(--ink); border-radius: 10px; }
.tickets { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 15px; }
.tickets th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tickets td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tickets tr:last-child td { border-bottom: 0; }
.tickets td:first-child { font-family: var(--mono); font-weight: 600; }

/* ---------- 5. Pre koho ---------- */

.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.cards > * { flex: 1 1 250px; min-width: 0; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.cards h3 { font-size: 20px; }
.cards p { color: var(--text); font-size: 16px; }
.icon { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.statement { font-size: 21px; font-weight: 500; line-height: 1.45; max-width: 900px; }

/* ---------- 6. Prehľad vedúceho ---------- */

.dash { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.dash-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.dash-total b { font-size: 60px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.dash-tiles { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dash-tiles li { flex: 1 1 90px; border-radius: 10px; padding: 14px; font-size: 14px; font-weight: 500; }
.dash-tiles b { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; }
.tile--new { background: #DBEAFE; color: #1E3A8A; }
.tile--work { background: #FFEDD5; color: #7C2D12; }
.tile--wait { background: #E5E7EB; color: #374151; }
.tile--late { background: var(--ink); color: var(--white); }

/* ---------- 7. História ---------- */

.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ''; position: absolute; left: 4px; top: 5px;
  width: 14px; height: 8px;
  border-left: 2.4px solid var(--accent); border-bottom: 2.4px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- 8. Zavedenie ---------- */

.grid-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.grid-list li { flex: 1 1 300px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; font-weight: 500; }

/* ---------- 10–11. Technológia a cena ---------- */

.duo { display: flex; flex-wrap: wrap; gap: 24px; }
.duo > * { flex: 1 1 400px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.duo h2 { font-size: 28px; line-height: 1.2; letter-spacing: 0; }
.link { font-weight: 600; padding: 10px 0; align-self: flex-start; }

/* ---------- 12. Demo ---------- */

.videos { display: flex; flex-direction: column; gap: 12px; }
.videos-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.videos ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.videos li { display: flex; align-items: center; gap: 14px; background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-weight: 500; }
.videos svg { flex: none; }

/* ---------- 13. Záver a pätička ---------- */

.cta { padding: 104px 24px; }
.cta .wrap { max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cta .btn { margin-top: 8px; }
.contact { color: var(--on-dark); font-size: 16px; }
.contact a { color: var(--white); }

.site-footer { background: var(--ink-deep); color: var(--on-dark); padding: 36px 24px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer b { color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer a { color: var(--white); padding: 12px 0; }

/* ---------- Menšie obrazovky ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 20px; }
  .hero { padding: 56px 20px 64px; }
  .cta { padding: 72px 20px; }
  .site-header { padding: 12px 20px; }
  .nav { gap: 0 16px; }
  .card, .panel-dark { padding: 22px; }
  .duo > * { padding: 24px; }
  .flow-box { padding: 28px 20px; }
  .flow > svg { transform: rotate(90deg); margin: 0 auto; flex-basis: 100%; height: 20px; }
  .flow-core { flex: 1 1 100%; }
  .btns .btn { flex: 1 1 100%; text-align: center; }
  .chain li + li::before { margin-right: 8px; }
}

/* ---------- Doplnené sekcie (úpravy obsahu) ---------- */

.section--tint { background: #FFF1E8; border-bottom: 1px solid #F6D9C4; }
.section--white + .section--tint { margin-top: -1px; }

.service-line { font-size: 16px; font-weight: 500; color: var(--text); padding-top: 18px; border-top: 1px solid var(--line); }

.flow-box h3 { max-width: 760px; }

/* FEP v praxi – časová os */
.day { list-style: none; padding: 0; display: flex; flex-direction: column; }
.day li { position: relative; display: flex; gap: 18px; padding: 0 0 22px 26px; }
.day li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.day li::after { content: ''; position: absolute; left: 5px; top: 22px; bottom: -4px; width: 2px; background: var(--line); }
.day li.is-last { padding-bottom: 0; }
.day li.is-last::before { background: var(--accent); }
.day li.is-last::after { display: none; }
.day time { flex: none; width: 52px; font-family: var(--mono); font-weight: 600; color: var(--accent); }
.day span { color: var(--text); }
.day b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* Prečo vznikol FEP */
.story { display: flex; flex-direction: column; gap: 14px; }
.story .card { padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.story .card p { color: var(--text); font-size: 16px; }
.story .claim { margin-top: 8px; }

/* Naša úloha – tmavá sekcia */
.h-xl { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; }
.section--dark .chain--boxes li span { background: var(--ink-soft); }
.section--dark .chain li + li::before { color: var(--accent-light); }

.videos li { background: var(--white); }
.site-footer p { line-height: 1.7; }

@media (max-width: 640px) {
  .day li { gap: 12px; }
}

/* Firemné údaje v pätičke */
.site-footer .wrap { align-items: flex-start; }
.company { font-style: normal; line-height: 1.7; }
