/* REV-NET – vzhled 2026 (bez generátoru, bez knihoven) */
:root {
  --bg: #0b0f0c;
  --surface: #111714;
  --surface-2: #161e19;
  --border: #23302a;
  --border-strong: #34463b;
  --text: #e9f0ea;
  --muted: #a3b2a7;
  --accent: #8dc73f;        /* zelená z loga */
  --accent-hover: #a9da6a;
  --on-accent: #0b0f0c;
  --radius: 14px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 12, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; flex: none; }
.logo img { height: 40px; width: auto; }

.site-nav { margin-left: auto; }
.header-tools { order: 3; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; }
.lang-switch a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  line-height: 1;
}
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--surface-2); color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; margin: auto; display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); text-decoration: none; }
.site-nav .nav-cta a { color: var(--on-accent); background: var(--accent); margin-left: 8px; }
.site-nav .nav-cta a:hover { background: var(--accent-hover); color: var(--on-accent); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .site-nav a:hover { background: none; }
  .site-nav .nav-cta a { margin: 16px 0 0; text-align: center; border-radius: 10px; border: 0; padding: 14px; }
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }

/* ---------- Sekce ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- Úvod ---------- */
.hero { padding: clamp(80px, 14vw, 168px) 0 clamp(72px, 10vw, 120px); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); letter-spacing: -0.035em; max-width: 14ch; margin-bottom: 0.45em; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 62ch; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(56px, 8vw, 88px); }
.service {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.service:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.service svg { width: 28px; height: 28px; flex: none; fill: var(--accent); }
.service .arrow { margin-left: auto; color: var(--muted); font-weight: 400; }
.service:hover .arrow { color: var(--accent); }

/* ---------- Tarify ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--accent); }
.plan-name { font-size: 1.125rem; font-weight: 600; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.plan.featured .plan-name { color: var(--accent); }
.plan-price { font-size: clamp(2.5rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.plan-price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan-price-label { color: var(--muted); font-size: 0.9rem; margin: 8px 0 0; }
.plan dl { margin: 28px 0 0; border-top: 1px solid var(--border); }
.plan dl div { padding: 14px 0; border-bottom: 1px solid var(--border); }
.plan dt { color: var(--muted); font-size: 0.85rem; margin-bottom: 2px; }
.plan dd { margin: 0; font-weight: 500; }
.plan .btn { margin-top: auto; }
.plan dl { margin-bottom: 28px; }
.plan-price-text { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.plan-availability { color: var(--muted); font-size: 0.9rem; margin: -8px 0 24px; padding-left: 12px; border-left: 2px solid var(--accent); }
.plan-business { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 8px 32px; }
.plan-business .plan-name { grid-column: 1; margin: 0; }
.plan-business .plan-price { grid-column: 1; }
.plan-business .plan-text { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0 0 0 32px; border-top: 0; border-left: 1px solid var(--border); }
.plan-business .btn { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.plan-text { color: var(--muted); margin: 24px 0 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.note { color: var(--muted); font-size: 0.925rem; max-width: 72ch; margin-top: 24px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.contact-item:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.contact-item .icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
}
.contact-item .icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-item b { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.contact-item span { font-size: 1.15rem; font-weight: 600; }

.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.form h3 { font-size: 1.375rem; margin-bottom: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(141, 199, 63, 0.18); }
.field textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cf-turnstile { min-height: 65px; max-width: 100%; overflow: hidden; }
.form-message { display: none; margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; }
.form-message.is-visible { display: block; }
.form-send-success { border: 1px solid var(--accent); color: var(--accent-hover); }
.form-send-error { border: 1px solid #c8574a; color: #f0a59b; }

/* ---------- Dokumenty a odkazy ---------- */
.link-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; }
.link-group { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.link-group h3 { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.link-group ul { list-style: none; margin: 0; padding: 0; }
.link-group li + li { border-top: 1px solid var(--border); }
.link-group a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; color: var(--text); font-weight: 500; }
.link-group a::after { content: "↗"; color: var(--muted); font-weight: 400; }
.link-group a[href$=".pdf"]::after { content: "PDF"; flex: none; white-space: nowrap; font-size: 0.72rem; letter-spacing: 0.06em; border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 6px; }
.link-group a:hover { color: var(--accent-hover); text-decoration: none; }
.link-group a:hover::after { color: var(--accent); }

/* ---------- O nás ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
.about-grid address { font-style: normal; }
.about-grid .muted, .muted { color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.security { margin-top: 28px; padding: 20px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; }
.security p { margin: 0; }

/* ---------- IPTV ---------- */
.iptv-frame { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: #111; padding: clamp(8px, 2vw, 20px); overflow: hidden; }
.iptv-frame #app { max-width: 900px; margin: 0 auto; min-height: 500px; }

/* ---------- Text (cookies) ---------- */
.prose { max-width: 70ch; }
.prose p { color: var(--muted); }

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; color: var(--muted); font-size: 0.925rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: start; }
.footer-grid img { height: 32px; width: auto; }
.footer-grid p { margin: 0 0 6px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--accent-hover); }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom p { margin: 0; }

/* ---------- Cookie lišta ---------- */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 760px;
  margin: 0 auto;
  display: none;
  gap: 16px 24px;
  align-items: center;
  padding: 20px 22px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.925rem;
}
.cookie-bar.is-visible { display: flex; }
.cookie-bar h3 { font-size: 1rem; margin: 0 0 4px; }
.cookie-bar p { margin: 0; color: var(--muted); }
.cookie-bar .btn { flex: none; min-height: 44px; }

/* ---------- Responzivita ---------- */
@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-business { display: flex; align-items: stretch; }
  .plan-business .plan-name { margin-bottom: 12px; }
  .plan-business .plan-text { margin: 24px 0 28px; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .plan-business .btn { margin-top: auto; }
}
@media (max-width: 900px) {
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .link-groups { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .services { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 8px; }
}

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