/* ===== OPTET.CZ – design system ===== */
:root {
  --navy-950: #050b17;
  --navy-900: #0a1830;
  --navy-800: #0d2244;
  --navy-700: #123159;
  --blue-600: #0e7490;
  --cyan-400: #00bfd8;
  --cyan-500: #06b6d4;
  --gradient-hero: linear-gradient(120deg, #050b17 0%, #0a1e42 45%, #0b3d63 75%, #0e6f8f 100%);
  --gradient-accent: linear-gradient(120deg, var(--blue-600), var(--cyan-400));
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e6eaf0;
  --text: #16212f;
  --text-muted: #5b6779;
  --success: #16a34a;
  --warning: #eab308;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 30, 60, 0.06), 0 1px 2px rgba(15, 30, 60, 0.04);
  --shadow-md: 0 10px 30px rgba(10, 25, 55, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 25, 55, 0.16);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-primary { background: var(--gradient-accent); color: #fff; box-shadow: 0 8px 20px rgba(14,116,144,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(14,116,144,.36); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-800); }
.btn-ghost { background: #eef2f7; color: var(--text); }
.btn-ghost:hover { background: #e3e9f1; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(10,25,55,.08); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; transition: height .25s ease; }
.site-header.is-scrolled .header-inner { height: 58px; }
.logo img { transition: transform .25s ease; }
.site-header.is-scrolled .logo img { transform: scale(.88); }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: var(--navy-900); margin-right: 8px; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text); transition: color .15s, background .15s; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { color: var(--blue-600); background: #eef4ff; }
.has-dropdown .dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .16s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.dropdown li a:hover { background: #eef4ff; color: var(--blue-600); }
.header-cta { flex-shrink: 0; }
.header-search-btn { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; color: var(--text-muted); transition: color .15s, background .15s; }
.header-search-btn:hover { color: var(--blue-600); background: #eef4ff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; background: var(--gradient-hero);
  padding: 110px 0 90px; color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1px, transparent 0);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  right: -160px; top: -160px; background: radial-gradient(circle, rgba(0,191,216,.35), transparent 65%);
  pointer-events: none;
}
.hero-glow-alt {
  position: absolute; z-index: 0; pointer-events: none; left: -140px; bottom: -180px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,64,110,.5), transparent 70%);
}
.hero-network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .6; display: block; }
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-400); background: rgba(0,191,216,.12); border: 1px solid rgba(0,191,216,.3); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: 48px; margin-bottom: 18px; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.82); margin-bottom: 32px; }
.hero:not(.page-hero) p.lead { max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { position: relative; z-index: 1; display: flex; gap: 40px; margin-top: 70px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 30px; font-weight: 800; color: #fff; }
.hero-stats div span { font-size: 13.5px; color: rgba(255,255,255,.65); }

/* ===== Hero: trust strip + coverage checker ===== */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 22px 28px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.88); }
.trust-item svg { flex-shrink: 0; color: var(--cyan-400); }
.check-card { position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); border-radius: 20px; padding: 30px 28px; box-shadow: var(--shadow-lg); }
.check-card h3 { font-size: 19px; margin-bottom: 6px; color: #fff; }
.check-card p.check-sub { font-size: 13.5px; color: rgba(255,255,255,.68); margin-bottom: 20px; }
.check-field { display: flex; gap: 8px; margin-bottom: 14px; }
.check-field input { flex: 1; min-width: 0; padding: 13px 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(5,11,23,.35); color: #fff; font-family: inherit; font-size: 14.5px; }
.check-field input::placeholder { color: rgba(255,255,255,.45); }
.check-field input:focus { outline: none; border-color: var(--cyan-400); }
.check-field button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 13px 18px; border-radius: 10px; border: none; background: var(--gradient-accent); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.check-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.check-hint .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-400); flex-shrink: 0; }

.check-result { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.check-result-list { display: flex; flex-direction: column; gap: 6px; }
.check-result-list[hidden] { display: none; }
.check-result-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 13px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; font-family: inherit; transition: background .15s ease;
}
.check-result-item:hover { background: rgba(255,255,255,.13); }
.check-result-item .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.check-result-status { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 13.5px; color: #fff; line-height: 1.4; }
.check-result-status-line { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.check-result-status .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.check-result-status.is-empty { font-weight: 500; color: rgba(255,255,255,.82); }
.check-result-status.is-empty .dot { background: rgba(255,255,255,.3); }
.check-result-status a { color: var(--cyan-400); font-weight: 700; }
a.check-result-status-line { color: #fff; text-decoration: none; margin: -6px -8px; padding: 6px 8px; border-radius: 8px; transition: background .15s ease; }
a.check-result-status-line:hover { background: rgba(255,255,255,.1); }
.check-result-address { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.65); padding-left: 20px; }
.check-result-back { display: block; background: none; border: none; color: var(--cyan-400); font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 10px 0 0; font-family: inherit; }
.check-result-back[hidden] { display: none; }
.check-result-map { width: 100%; height: 190px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); margin-top: 12px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .check-field { flex-direction: column; } }

.page-hero { padding: 70px 0 60px; }
.page-hero h1 { font-size: 38px; }
.page-hero p.lead { font-size: 17px; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.services-shelf { position: relative; z-index: 2; background: var(--bg); margin-top: -56px; padding-top: 40px; border-radius: 28px 28px 0 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-600); margin-bottom: 10px; }
.eyebrow-heading { font-size: 28px; text-transform: none; letter-spacing: normal; margin-bottom: 16px; }
.section-head h2 { font-size: 30px; margin-bottom: 0; }
.section-head p { color: var(--text-muted); margin: 8px 0 0; max-width: 560px; }

/* ===== Cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-link { cursor: pointer; }
.card-link:hover { border-color: var(--blue-600); }
.tariff-cta { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--blue-600); }
.card-link:hover .tariff-cta { text-decoration: underline; }
.card-featured { border-color: var(--blue-600); box-shadow: 0 0 0 1px var(--blue-600), var(--shadow-sm); background: #f5f9ff; }
.card-featured h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.service-card { position: relative; overflow: hidden; border-width: 2px; border-color: rgba(14,116,144,.22); box-shadow: 0 6px 18px rgba(14,116,144,.08); }
.service-card:hover { border-color: var(--blue-600); box-shadow: 0 14px 30px rgba(14,116,144,.18); }
.service-card.card-featured { border-color: var(--blue-600); }
.service-card .card-icon { box-shadow: 0 6px 14px rgba(14,116,144,.15); }
.service-card-content { position: relative; z-index: 1; }
.service-card-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--blue-600); background: rgba(14,116,144,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.service-card-bg { position: absolute; z-index: 0; pointer-events: none; right: -8px; bottom: -8px; width: 190px; height: 190px; object-fit: contain; opacity: .17; color: var(--blue-600); transition: opacity .18s ease, transform .3s ease; }
.service-card-bg-mask {
  background-color: var(--blue-600);
  -webkit-mask-image: url('/assets/img/logo_netsymbol.png'); mask-image: url('/assets/img/logo_netsymbol.png');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.service-card:hover .service-card-bg { opacity: .27; transform: scale(1.06); }
.service-card-cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 11px 22px;
  border-radius: 999px; background: rgba(14,116,144,.1); color: var(--blue-600);
  font-weight: 700; font-size: 13.5px; transition: all .18s ease;
}
.service-card:hover .service-card-cta { background: var(--blue-600); color: #fff; transform: translateX(3px); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e9f2ff, #e2fbff); color: var(--blue-600); margin-bottom: 18px;
}
.card h3 { font-size: 18.5px; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 0; }

.contact-card { background: #eef4ff; border-color: #dbe7fb; display: flex; gap: 16px; align-items: flex-start; padding: 26px; }
.contact-card:hover { transform: none; box-shadow: var(--shadow-sm); }
.contact-icon {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-accent);
}
.contact-card h3 { font-size: 14.5px; margin-bottom: 4px; color: var(--navy-900); }
.contact-card p { margin-bottom: 10px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { color: var(--blue-600); font-weight: 600; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }

/* ===== News cards ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-thumb { position: relative; aspect-ratio: 16/10; background: var(--gradient-hero); display: flex; align-items: center; justify-content: center; }
.news-thumb.thumb-c0 { background: linear-gradient(135deg, #050b17 0%, #0a1e42 55%, #0e6f8f 100%); }
.news-thumb.thumb-c1 { background: linear-gradient(135deg, #050b17 0%, #2e2210 55%, #b8811f 100%); }
.news-thumb.thumb-c2 { background: linear-gradient(135deg, #050b17 0%, #0a2e22 55%, #159463 100%); }
.news-thumb.thumb-c3 { background: linear-gradient(135deg, #050b17 0%, #101a42 55%, #3454c9 100%); }
.news-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-thumb-mark {
  width: 64px; height: 64px; background-color: rgba(255,255,255,.55);
  -webkit-mask-image: url('/assets/img/logo_netsymbol.png'); mask-image: url('/assets/img/logo_netsymbol.png');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.news-tag { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); color: var(--navy-900); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.news-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-body h3 { font-size: 17px; margin-bottom: 0; }
.news-body p { color: var(--text-muted); font-size: 14px; margin-bottom: 0; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.news-meta span { display: flex; align-items: center; gap: 5px; }

/* ===== Aktualita (detail) ===== */
.aktualita-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.aktualita-image { position: sticky; top: 96px; }
.aktualita-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 900px) {
  .aktualita-layout { grid-template-columns: 1fr; }
  .aktualita-image { position: static; order: -1; max-width: 320px; margin: 0 auto 20px; }
}

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan-card.featured { border-color: transparent; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); transform: scale(1.03); z-index: 1; }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gradient-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 999px; }
.plan-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-600); }
.plan-card.featured .plan-name { color: var(--cyan-400); }
.plan-speed { font-size: 34px; font-weight: 800; margin: 6px 0 4px; }
.plan-speed span { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.plan-card.featured .plan-speed span { color: rgba(255,255,255,.6); }
.plan-price { font-size: 26px; font-weight: 800; margin: 14px 0 18px; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.plan-card.featured .plan-price span { color: rgba(255,255,255,.6); }
.plan-features { margin: 0 0 26px; flex: 1; display: flex; flex-direction: column; gap: 13px; }
.plan-features li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; font-weight: 600; }
.plan-features li svg { flex-shrink: 0; margin-top: 1px; padding: 3px; box-sizing: content-box; border-radius: 50%; background: rgba(14,116,144,.12); color: var(--blue-600); }
.plan-card.featured .plan-features li svg { background: rgba(0,191,216,.16); color: var(--cyan-400); }
.plan-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.plan-card.featured .plan-desc { color: rgba(255,255,255,.65); }
.compare-card-muted { background: #f1f4f8; box-shadow: none; }
.compare-card-muted .plan-features li { color: var(--text-muted); font-weight: 500; }
.compare-card-muted .plan-features li svg { background: rgba(148,163,184,.16); }
.compare-grid { align-items: center; }
@media (max-width: 980px) { .compare-grid .plan-card.featured { transform: none; } }

.type-tabs { display: flex; gap: 8px; margin-bottom: 36px; background: #eef1f6; padding: 6px; border-radius: 999px; width: fit-content; }
.type-tab { padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border: none; background: none; transition: all .15s; }
.type-tab.active { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm); }

/* ===== Coverage map ===== */
.pokryti-toolbar { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; position: relative; z-index: 1000; }
.pokryti-toolbar .type-tabs { margin-bottom: 0; }
.pokryti-search-wrap { position: relative; flex: 1; min-width: 240px; max-width: 380px; margin-left: auto; }
.coverage-search { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; }
.coverage-search:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(14,116,144,.14); }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 16px; max-height: min(60vh, 520px); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease;
}
.pokryti-search-wrap.open .search-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.legend { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.search-hint { color: var(--text-muted); font-size: 13.5px; padding: 4px; margin: 0; }
.legend-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.street-list { max-height: min(48vh, 420px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.street-list[hidden] { display: none; }
.street-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.street-item:hover { background: #f3f6fa; }
.street-item .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.street-item .name { flex: 1; }
.street-item .obec-name { color: var(--text-muted); font-size: 12px; }
.leaflet-map { width: 100%; height: min(74vh, 780px); border-radius: var(--radius); border: 1px solid var(--border); background: #e9edf2; position: relative; z-index: 0; }
.leaflet-map-wide { height: min(76vh, 840px); }
.tab-panel { position: relative; }
.map-legend {
  position: absolute; left: 16px; bottom: 16px; z-index: 400;
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(4px);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
  box-shadow: var(--shadow-md); font-size: 13px; color: var(--text);
}
.map-legend .legend-item { display: flex; align-items: center; gap: 8px; }
@media (max-width: 640px) {
  .map-legend { left: 10px; bottom: 10px; padding: 8px 10px; font-size: 12px; }
}
.tab-count { font-size: 12px; opacity: .65; font-weight: 500; }
.map-no-key { display:flex; align-items:center; justify-content:center; height:100%; color: var(--text-muted); font-size: 14px; text-align:center; padding: 30px; }
@media (max-width: 640px) {
  .pokryti-search-wrap { max-width: none; width: 100%; }
}

/* ===== Grouped street/address list ===== */
.street-group { border-bottom: 1px solid var(--border); }
.street-group:last-child { border-bottom: none; }
.street-group-head {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 8px;
  background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; border-radius: 8px;
}
.street-group-head:hover { background: #f3f6fa; }
.street-group-dots { display: flex; gap: 3px; flex-shrink: 0; }
.street-group-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.street-group-head .name { flex: 1; font-size: 13.5px; font-weight: 500; }
.street-group-head .obec-name { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.street-group-count { font-size: 11.5px; font-weight: 700; color: var(--text-muted); background: #eef1f6; border-radius: 999px; padding: 2px 8px; }
.street-group-head .chev { color: var(--text-muted); transition: transform .15s; flex-shrink: 0; }
.street-group.open .street-group-head .chev { transform: rotate(180deg); }
.street-group-items { display: none; flex-direction: column; padding: 2px 0 8px 30px; }
.street-group.open .street-group-items { display: flex; }
.address-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.address-item:hover { background: #f3f6fa; }
.address-item .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.address-item .name { flex: 1; }
.address-status { font-size: 11.5px; color: var(--text-muted); }

.map-address-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: pointer; }

/* ===== Pokryti modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5, 11, 23, .62); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  z-index: 1000; opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  position: relative; width: 100%; max-width: min(94vw, 1560px); height: min(92vh, 1180px);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: translateY(10px); transition: transform .2s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px;
  border-radius: 50%; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 22px; line-height: 1; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #f3f6fa; color: var(--text); }
@media (max-width: 640px) {
  .modal-overlay { padding: 0; }
  .modal-box { max-width: none; height: 100vh; border-radius: 0; }
}

/* ===== Cookie lista ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: var(--navy-950); color: rgba(255,255,255,.85); border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--container); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; font-size: 13.5px; max-width: 720px; color: rgba(255,255,255,.75); }
.cookie-banner-inner a { color: var(--cyan-400); font-weight: 600; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn-ghost { background: rgba(255,255,255,.08); color: #fff; }
.cookie-banner .btn-ghost:hover { background: rgba(255,255,255,.15); }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ===== Mobile sticky CTA lista ===== */
.mobile-cta-bar { display: none; }

/* ===== CTA band ===== */
.cta-band { background: var(--gradient-hero); border-radius: 24px; padding: 60px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content:''; position:absolute; width:340px; height:340px; border-radius:50%; right:-100px; bottom:-140px; background: radial-gradient(circle, rgba(0,191,216,.3), transparent 65%); }
.cta-band h2 { font-size: 28px; margin-bottom: 8px; position: relative; z-index:1; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; position: relative; z-index:1; }
.cta-band-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { position: relative; overflow: hidden; background: var(--navy-950); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-watermark { position: absolute; z-index: 1; display: block; right: -40px; bottom: -40px; width: 260px; height: 260px; cursor: default; }
.footer-watermark img { width: 100%; height: 100%; object-fit: contain; opacity: .07; pointer-events: none; transition: opacity .15s; }
.footer-watermark:hover img, .footer-watermark:focus-visible img { opacity: .18; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.5); margin-top: 14px; }
.footer-brand .footer-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.logo-footer { color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-col a:hover { color: var(--cyan-400); }
.footer-contact li { font-size: 14px; color: rgba(255,255,255,.6); }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* ===== Forms (contact, admin) ===== */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 14.5px; background: #fff; color: var(--text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(14,116,144,.14); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
.search-input {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--text);
}
.search-input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(14,116,144,.14); }

.fb-share-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--text); transition: all .15s;
}
.fb-share-btn svg { flex-shrink: 0; color: #1877f2; transition: color .15s; }
.fb-share-btn:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.fb-share-btn:hover svg { color: #fff; }

/* ===== Dokumenty ===== */
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.doc-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--blue-600); }
.doc-item-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.doc-item-icon-pdf { background: #fee2e2; color: #b91c1c; }
.doc-item-icon-docx { background: #dbeafe; color: #1d4ed8; }
.doc-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.doc-item-title { font-weight: 700; font-size: 15px; color: var(--text); }
.doc-item-desc { font-size: 13px; color: var(--text-muted); }
.doc-item-meta { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.doc-item-size { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.doc-item-download { display: flex; color: var(--blue-600); transition: transform .18s ease; }
.doc-item:hover .doc-item-download { transform: translateY(2px); }
@media (max-width: 600px) {
  .doc-item { flex-wrap: wrap; }
  .doc-item-meta { width: 100%; justify-content: space-between; padding-left: 60px; }
}

/* ===== Badges / misc ===== */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-gray { background: #eef1f6; color: var(--text-muted); }
.breadcrumbs { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--blue-600); }

table.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data-table th, table.data-table td { padding: 13px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
table.data-table th { background: #f6f8fb; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #fafbfd; }

.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.alert-success { background: #dcfce7; color: #15803d; }
.alert-error { background: #fee2e2; color: #b91c1c; }

/* ===== Scroll reveal ===== */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-hidden { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal-hidden { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero h1 { font-size: 36px; }
  .grid-3, .pricing-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan-card.featured { transform: none; }
}
@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 10px; }
  .main-nav.open > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: none; padding-left: 12px; }
  .has-dropdown.open .dropdown { display: block; }
  .grid-3, .pricing-grid, .news-grid, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: 30px; }
  .cta-band { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .services-shelf { margin-top: -40px; padding-top: 28px; }
  body { padding-bottom: 64px; }
  .mobile-cta-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 890;
    background: var(--navy-950); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 20px rgba(0,0,0,.25);
  }
  .mobile-cta-bar .btn { flex: 1; min-height: 46px; }
}
