/* ═══════════════════════════════════════════════════════
   MAIN.CSS — Variables, Reset, Typography, Nav, Hero, Footer
   CHCI TELEVIZI — Premium TV Installation, Prague
═══════════════════════════════════════════════════════ */

/* ── CSS VARIABLES — SVĚTLÝ MOTIV ──
   Neutrální (mírně chladná) šedá škála — žádné béžové/nažloutlé tóny.
   Černé bloky jsou grafitové, ne absolutně černé. ── */
:root {
  /* Text */
  --black:   #16181c;            /* primární text — 15.9:1 na bílé */
  --ink-2:   #3d434c;            /* sekundární text — 9.4:1 */
  --mid:     #5b626d;            /* tlumený text — 5.5:1 i na nejtmavší světlé ploše */
  --ink-4:   #666d78;            /* popisky, meta — 4.9:1 */

  /* Plochy */
  --white:   #f7f8fa;            /* základní plocha stránky */
  --cream:   #eef0f4;            /* střídavá plocha sekcí */
  --card-bg: #ffffff;            /* karty */
  --tint:    #e8edf6;            /* jemně namodralá plocha (brand navy) */
  --tint-2:  #dde5f1;            /* hlubší namodralá */
  --deep:    #e4e7ec;            /* nejtmavší světlá plocha */

  /* Grafitové kontrastní bloky (karty, CTA, patička) — ne pozadí sekcí */
  --ink-surface:   #22252b;      /* bílý text 15.4:1 */
  --ink-surface-2: #2e323a;      /* vnořené prvky uvnitř tmavých bloků */
  --on-ink:        #ffffff;
  --on-ink-2:      rgba(255,255,255,.80);
  --on-ink-3:      rgba(255,255,255,.60);
  --ink-line:      rgba(255,255,255,.14);

  /* Barvy značky — odstíny laděné na kontrast AA v každém kontextu */
  --accent:        #e85c2e;      /* oranžová — dekorace, ikony, rámečky */
  --accent-btn:    #d34617;      /* výplň tlačítek — bílý text 4.5:1 */
  --accent-ink:    #bf3f15;      /* drobný text na světlém (4.5–5.3:1) */
  --accent-on-ink: #f2733f;      /* text na grafitovém bloku (5.3:1) */
  --accent-dark:   #b93a11;      /* hover tlačítek */
  --accent2:       #1a3a5c;      /* navy */
  --gold:          #b8790a;      /* hvězdičky hodnocení (grafika, 3.6:1) */
  --green:         #158744;      /* stav OK — 4.6:1 */
  --red:           #c92a2a;      /* chyby — 5.5:1 */

  /* Linky a stíny */
  --border:      rgba(22,24,28,.09);
  --line:        rgba(22,24,28,.10);
  --line-strong: rgba(22,24,28,.17);

  --sh-1: 0 1px 2px rgba(22,26,34,.05), 0 4px 14px rgba(22,26,34,.05);
  --sh-2: 0 4px 14px rgba(22,26,34,.07), 0 18px 44px rgba(22,26,34,.09);
  --sh-3: 0 4px 24px rgba(22,26,34,.08);
  --sh-4: 0 30px 80px rgba(22,26,34,.18);
  --shadow: var(--sh-2);
  --focus-ring: 0 0 0 3px rgba(232,92,46,.2);

  --nav-h: 62px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

/* Desktop: větší základ písma — vše v rem se škáluje proporcionálně */
@media (min-width: 901px) {
  html { font-size: 20px; }
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
textarea { resize: vertical; }
ul { list-style: none; }

/* Doteková interakce: bez 300ms prodlevy, bez šedého záblesku */
a, button, [role="button"], input, select, textarea, label, summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 92, 46, .15);
}

/* Kotvy nesmí zmizet pod plovoucí navigací */
section[id], [id]:target { scroll-margin-top: calc(var(--nav-h) + 34px); }

/* Přeskočení na obsah (viditelné až při fokusu klávesnicí) */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--ink-surface);
  color: var(--on-ink);
  font-size: .9rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 0 0 12px 12px;
  transition: transform .2s var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ── TYPOGRAPHY BASE ── */
h1, h2, h3 {
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 22px;
  height: var(--nav-h);
  width: calc(100% - 48px);
  max-width: 1400px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--sh-3), 0 1px 0 rgba(255,255,255,.9) inset;
  transition: box-shadow .4s var(--ease-out), background .4s, width .4s var(--ease-out), top .4s var(--ease-out);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 40px rgba(22,26,34,.10), 0 1px 0 rgba(255,255,255,.9) inset;
  border-color: rgba(22,26,34,.12);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 0;
}
.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  list-style: none;
  margin: 0 auto;
  flex-wrap: nowrap;
}
.nav-links > li { flex-shrink: 0; }
.nav-links a {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s;
}
.nav-links a:hover { color: var(--black); }

/* ── NAV "VÍCE" DROPDOWN ── */
.nav-more { position: relative; }
.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: .01em;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .2s;
}
.nav-more-btn:hover,
.nav-more.open .nav-more-btn { color: var(--black); }
.nav-caret {
  width: 12px; height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease-out);
}
.nav-more.open .nav-caret { transform: rotate(180deg); }

.nav-more-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -8px;
  min-width: 178px;
  list-style: none;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(22,26,34,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility .2s;
}
.nav-more.open .nav-more-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-more-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--mid);
  transition: color .2s, background .2s;
}
.nav-more-menu a:hover {
  color: var(--black);
  background: rgba(22,26,34,.05);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-phone svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}
.nav-phone:hover { color: var(--accent); background: rgba(232,92,46,.08); }

.nav-cta {
  background: var(--accent-btn);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: .85rem;
  font-weight: 600;
  flex-shrink: 0;
  cursor: pointer;
  letter-spacing: .01em;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(232, 92, 46, .35);
}
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 92, 46, .45);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: calc(16px + var(--nav-h) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  width: calc(100% - 48px);
  max-width: 1400px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--sh-2);
  padding: 2rem 28px 2.5rem;
  transition: transform .4s var(--ease-out), opacity .35s var(--ease-out);
}
.mobile-menu {
  overscroll-behavior: contain;
}
.mobile-menu.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-phone {
  display: block;
  font-weight: 700 !important;
  color: var(--accent) !important;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-2);
  display: block;
  padding: .4rem 0;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--accent-ink); }
.mobile-menu .mobile-cta {
  background: var(--accent-btn);
  color: #fff;
  border-radius: 6px;
  padding: 14px 24px;
  text-align: center;
  margin-top: .8rem;
  font-weight: 600;
}

/* ── SECTION WRAPPER ── */
section { padding: 110px 5vw; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1.2rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--black);
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}
.section-desc {
  font-size: 1.05rem;
  color: var(--mid);
  font-weight: 400;
  max-width: 520px;
  line-height: 1.8;
  margin-top: 1.1rem;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent-btn);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 15px 32px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  letter-spacing: .01em;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 24px rgba(232, 92, 46, .32);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(232, 92, 46, .38);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 15px 32px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  box-shadow: var(--sh-1);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.btn-secondary:hover {
  border-color: var(--black);
  color: var(--black);
  background: #fff;
  transform: translateY(-2px);
}

/* ── FOCUS (klávesnice) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.8rem;
  padding: calc(16px + var(--nav-h) + 60px) 5vw 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 45%, var(--white) 100%);
}

/* Grain texture overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .22;
  pointer-events: none;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 70% at 55% 38%, rgba(26,58,92,.11) 0%, transparent 65%),
    radial-gradient(ellipse 42% 42% at 4% 88%, rgba(232,92,46,.12) 0%, transparent 62%),
    radial-gradient(ellipse 32% 32% at 96% 8%, rgba(232,92,46,.09) 0%, transparent 62%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-top .hero-badge {
  align-self: center;
  margin-bottom: 1.4rem;
}

.hero-top h1 {
  text-align: center;
  max-width: 980px;
  margin-bottom: 1.5rem;
}

.hero-top .hero-chips {
  justify-content: center;
  margin-top: 0;
}

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 640px);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
}

.hero-info .hero-proof {
  margin-top: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  color: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp .7s var(--ease-out) both;
  align-self: flex-start;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(23,146,74,.16);
}

h1 {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.03em;
  color: var(--black);
  animation: fadeUp .85s .1s var(--ease-out) both;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 400;
  color: var(--mid);
  max-width: 460px;
  line-height: 1.8;
  margin-top: 1.6rem;
  animation: fadeUp .85s .2s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeUp .85s .35s var(--ease-out) both;
}

/* ── HERO PILLARS (co / jak / proč) ── */
.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2rem;
  max-width: 600px;
  box-shadow: var(--sh-1);
  animation: fadeUp .85s .3s var(--ease-out) both;
}
.hero-pillar {
  background: var(--card-bg);
  padding: 1rem 1.1rem;
  transition: background .25s;
}
.hero-pillar:hover {
  background: rgba(232,92,46,.06);
}
.hero-pillar-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .55rem;
}
.hero-pillar-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-pillar-text {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--mid);
}

/* ── HERO SOCIAL PROOF ── */
.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  border-radius: 12px;
  padding: 10px 16px;
  margin-top: 1.6rem;
  animation: fadeUp .85s .15s var(--ease-out) both;
  align-self: flex-start;
}

.hero-proof-avatars {
  display: flex;
  align-items: center;
}
.proof-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  flex-shrink: 0;
}
.hero-proof-avatars .proof-avatar:first-child { margin-left: 0; }
.proof-avatar svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255,255,255,.7);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.proof-avatar--more {
  background: rgba(232,92,46,.14);
  border-color: var(--card-bg);
  box-shadow: 0 0 0 1px rgba(232,92,46,.28);
  font-size: .65rem;
  font-weight: 700;
  color: var(--accent-ink);
}

.hero-proof-text {
  font-size: .82rem;
  color: var(--mid);
  font-weight: 400;
  line-height: 1.3;
}
.proof-count {
  font-weight: 700;
  color: var(--black);
}
.proof-stars {
  font-size: .72rem;
  color: var(--ink-4);
  margin-top: 2px;
  letter-spacing: .01em;
}
.proof-stars span {
  color: var(--black);
  font-weight: 700;
}

/* ── HERO CHIPS ── */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 2rem;
  animation: fadeUp .85s .25s var(--ease-out) both;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  cursor: default;
}
.hero-chip:hover {
  border-color: rgba(232,92,46,.35);
  color: var(--black);
  transform: translateY(-1px);
}
.hero-chip svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── HERO VISUAL / SERVICE CARD ── */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.2s .35s var(--ease-out) both;
  padding: 0 10px;
  overflow: visible;
}

.hero-photo-frame {
  width: min(100%, 620px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  background: var(--card-bg);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
}

.hero-photo-frame.is-switching .hero-photo {
  transform: scale(1.015);
}

.hero-orbit-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: .94rem;
  font-weight: 600;
  color: var(--ink-2);
  backdrop-filter: blur(12px);
  box-shadow: var(--sh-2);
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  transition:
    transform .24s var(--ease-out),
    border-color .24s var(--ease-out),
    box-shadow .24s var(--ease-out),
    background .24s var(--ease-out),
    color .24s var(--ease-out);
}

.orbit-chip:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #fff;
}

.orbit-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.orbit-chip.is-active {
  border-color: rgba(232,92,46,.55);
  color: var(--black);
  background: #fff;
  box-shadow:
    var(--sh-2),
    0 0 0 1px rgba(232,92,46,.35) inset;
}

.orbit-chip svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.orbit-chip-1 {
  top: 8%;
  left: 4%;
}

.orbit-chip-2 {
  top: 6%;
  right: 5%;
}

.orbit-chip-3 {
  right: 4%;
  bottom: 8%;
}

.orbit-chip-4 {
  left: 5%;
  bottom: 10%;
}

.tv-wrap {
  width: min(100%, 720px);
  position: relative;
  padding: 82px 72px 70px;
}

.tv-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 44%;
  width: 84%;
  height: 84%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(26,58,92,.16) 0%, rgba(232,92,46,.12) 42%, transparent 72%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.tv-mockup {
  background: #16161a;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  box-shadow:
    0 0 0 8px #1c1c20,
    0 0 0 9px rgba(22,26,34,.12),
    0 40px 90px rgba(22,26,34,.26),
    0 12px 28px rgba(22,26,34,.14);
  overflow: hidden;
  z-index: 1;
}

.tv-screen {
  position: absolute;
  inset: 4%;
  background: linear-gradient(145deg, #0d1f3c 0%, #071525 50%, #040e1a 100%);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}
.tv-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(26,80,160,.3), transparent 70%);
}
.tv-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,.012) 3px,
    rgba(255,255,255,.012) 4px
  );
  pointer-events: none;
}

.tv-ui {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tv-ui-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tv-ui-apps {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tv-ui-app {
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
}

.tv-ui-app.red { background: #c91b1b; }
.tv-ui-app.dark { background: rgba(0,0,0,.44); }
.tv-ui-app.blue { background: #1b58d0; }
.tv-ui-app.teal { background: #0f7f8f; }
.tv-ui-app.grey { background: rgba(255,255,255,.15); }

.tv-ui-clock {
  font-size: .67rem;
  font-weight: 700;
  color: rgba(255,255,255,.72);
  letter-spacing: .06em;
}

.tv-ui-hero {
  position: relative;
  flex: 1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 40%, rgba(0,0,0,.24) 100%);
}

.tv-ui-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 45%, rgba(232,92,46,.34), transparent 42%),
    radial-gradient(circle at 85% 25%, rgba(26,58,92,.52), transparent 46%);
  opacity: .9;
}

.tv-ui-hero-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tv-ui-badge-tag {
  display: inline-flex;
  width: fit-content;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .11em;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(0,0,0,.24);
}

.tv-ui-hero-title {
  font-size: .96rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.tv-ui-hero-sub {
  font-size: .67rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
}

.tv-ui-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 3px;
  border-radius: 100px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
}

.tv-ui-progress-fill {
  width: 62%;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), #f38a52);
  animation: progress 3.2s ease-in-out infinite alternate;
}

.tv-ui-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tv-ui-card {
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.1);
}

.tv-scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,.02) 2px,
    rgba(255,255,255,.02) 3px
  );
}

.tv-glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 38%);
  mix-blend-mode: screen;
}

.tv-stand {
  width: 150px;
  height: 14px;
  background: #1c1c20;
  margin: 0 auto;
  border-radius: 0 0 5px 5px;
}
.tv-base {
  width: 220px;
  height: 10px;
  background: #16161a;
  margin: 0 auto;
  border-radius: 100px;
  box-shadow: 0 10px 24px rgba(22,26,34,.22);
}

.tv-badge {
  position: absolute;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: var(--sh-2);
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  backdrop-filter: blur(10px);
  min-width: 188px;
  top: 50%;
  left: 50%;
  will-change: transform;
}
.tv-badge-1 { animation: orbitPath1 18s linear infinite; }
.tv-badge-2 { animation: orbitPath2 20s linear infinite; }
.tv-badge-3 { animation: orbitPath3 19s linear infinite; }
.tv-badge-4 { animation: orbitPath4 21s linear infinite; }

.tv-badge.is-changing .badge-label {
  opacity: 0;
  transform: translateY(5px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-dot.green  { background: var(--green);   box-shadow: 0 0 0 3px rgba(23,146,74,.16); }
.badge-dot.blue   { background: #2563eb;        box-shadow: 0 0 0 3px rgba(37,99,235,.16); }
.badge-dot.orange { background: var(--accent);  box-shadow: 0 0 0 3px rgba(232,92,46,.16); }
.badge-dot.gold   { background: var(--gold);    box-shadow: 0 0 0 3px rgba(217,146,6,.18); }

.badge-label {
  display: inline-block;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}

/* ── SERVICE CARD ── */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--sh-2);
  width: 100%;
  max-width: 420px;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tech-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #24537f, #16324f);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(22,26,34,.1);
}
.tech-avatar svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255,255,255,.92);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tech-info { flex: 1; }
.tech-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -.01em;
}
.tech-eta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--mid);
  margin-top: 4px;
}
.eta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(23,146,74,.16);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.tech-rating {
  font-size: .83rem;
  font-weight: 700;
  color: #8a5b02;
  background: rgba(217,146,6,.12);
  border: 1px solid rgba(217,146,6,.28);
  border-radius: 8px;
  padding: 5px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  color: var(--ink-4);
}
.service-item.done { color: var(--mid); }
.service-item.active { color: var(--black); font-weight: 600; }

.service-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}
.service-item.done .service-check {
  background: rgba(23,146,74,.1);
  border-color: rgba(23,146,74,.3);
}
.service-item.done .service-check svg { stroke: var(--green); }

.service-item.active .service-check {
  background: rgba(232,92,46,.13);
  border-color: rgba(232,92,46,.4);
  animation: pulseGlow 2.2s ease-in-out infinite;
}
.service-item.active .service-check svg { stroke: var(--accent); }

.service-item.pending .service-check svg { opacity: 0; }

.service-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: var(--line-strong);
}

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,92,46,0); }
  50%      { box-shadow: 0 0 0 5px rgba(232,92,46,.12); }
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sf-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 4px;
}
.sf-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--black);
}
.service-guarantee {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.service-guarantee svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-location-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .77rem;
  font-weight: 500;
  color: var(--ink-4);
  margin-top: 16px;
  justify-content: center;
}
.service-location-badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--ink-4);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── FOOTER ── */
footer {
  background: var(--ink-surface);
  border-top: 1px solid var(--ink-line);
  padding: 3rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.footer-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: .82rem;
  color: var(--on-ink-2);
  transition: color .2s;
}
.footer-links a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--on-ink);
  white-space: nowrap;
  transition: color .2s;
}
.footer-phone svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--accent-on-ink);
  stroke-width: 2;
}
.footer-phone:hover { color: var(--accent-on-ink); }

.footer-copy {
  font-size: .78rem;
  color: var(--on-ink-3);
}

/* ── KEYFRAMES ── */
@keyframes pulse    { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.4)} }
@keyframes float    { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes progress { from{width:15%} to{width:88%} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0;transform:scale(.98)} to{opacity:1;transform:scale(1)} }
@keyframes slideIn  { from{opacity:0;transform:translateX(-16px)} to{opacity:1;transform:translateX(0)} }
@keyframes orbitPath1 {
  0%   { transform: translate(-50%, -50%) translate(-192px, -122px); }
  25%  { transform: translate(-50%, -50%) translate(182px, -112px); }
  50%  { transform: translate(-50%, -50%) translate(194px, 116px); }
  75%  { transform: translate(-50%, -50%) translate(-186px, 108px); }
  100% { transform: translate(-50%, -50%) translate(-192px, -122px); }
}
@keyframes orbitPath2 {
  0%   { transform: translate(-50%, -50%) translate(186px, -116px); }
  25%  { transform: translate(-50%, -50%) translate(188px, 116px); }
  50%  { transform: translate(-50%, -50%) translate(-188px, 112px); }
  75%  { transform: translate(-50%, -50%) translate(-188px, -118px); }
  100% { transform: translate(-50%, -50%) translate(186px, -116px); }
}
@keyframes orbitPath3 {
  0%   { transform: translate(-50%, -50%) translate(194px, 116px); }
  25%  { transform: translate(-50%, -50%) translate(-186px, 110px); }
  50%  { transform: translate(-50%, -50%) translate(-194px, -124px); }
  75%  { transform: translate(-50%, -50%) translate(184px, -114px); }
  100% { transform: translate(-50%, -50%) translate(194px, 116px); }
}
@keyframes orbitPath4 {
  0%   { transform: translate(-50%, -50%) translate(-188px, 114px); }
  25%  { transform: translate(-50%, -50%) translate(-188px, -120px); }
  50%  { transform: translate(-50%, -50%) translate(184px, -116px); }
  75%  { transform: translate(-50%, -50%) translate(192px, 114px); }
  100% { transform: translate(-50%, -50%) translate(-188px, 114px); }
}

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

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  /* Obsah odkrývaný scrollem musí zůstat viditelný i bez animace */
  .reveal { opacity: 1 !important; transform: none !important; }

  .tv-badge { transform: translate(-50%, -50%) !important; }
}
