/* Tokens inherited from /css/responsive-system.css
   Landing-specific overrides: */
:root {
  --bg: #f0f4f8;
}
[data-theme="dark"] body { background: var(--bg); }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(165deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
  color: var(--text); line-height: 1.55;
}
.wrap { max-width: 48rem; margin: 0 auto; padding: 0 1rem 3rem; }
@media (max-width: 480px) {
  .wrap { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); padding-bottom: max(3rem, env(safe-area-inset-bottom)); }
}
.weather-fallback {
  display: none;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--bg);
}
.weather-fallback a { color: var(--accent); text-decoration: none; font-weight: 600; }
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin: 0 0 0.5rem; }
@media (min-width: 640px) { .intro-grid { grid-template-columns: repeat(3, 1fr); } }
.intro-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.15rem 1.1rem; box-shadow: 0 2px 12px var(--shadow); }
.intro-card h3 { font-family: var(--display); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.intro-card p { margin: 0; font-size: 0.88rem; color: var(--text); line-height: 1.55; }
.intro-card ul { margin: 8px 0 0; padding-left: 1.1rem; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.map-preview { margin: 1.25rem 0 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 8px 28px var(--shadow); background: var(--card); }
.map-preview-img-link { display: block; line-height: 0; outline: none; }
.map-preview-img-link:focus-visible { box-shadow: inset 0 0 0 3px rgba(37,99,235,0.45); }
.map-preview img { width: 100%; height: auto; display: block; }
.map-preview-content { padding: 1.1rem 1rem 1.25rem; text-align: center; border-top: 1px solid var(--border); }
.map-preview-content p { margin: 0 0 12px; font-size: 0.92rem; color: var(--text); max-width: 28em; margin-left: auto; margin-right: auto; }
.map-preview-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.map-preview-note { font-size: 0.72rem; color: var(--muted); margin: 10px 0 0; }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
details.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 1rem; box-shadow: 0 1px 8px var(--shadow); }
details.faq-item summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; padding: 14px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '＋'; font-weight: 400; color: var(--muted); font-size: 1.1rem; }
details.faq-item[open] summary::after { content: '−'; }
.faq-a { padding: 0 0 14px; font-size: 0.86rem; color: var(--muted); line-height: 1.55; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 0; }
.trust-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.2rem; margin-top: 1.5rem; box-shadow: 0 2px 12px var(--shadow); }
.trust-card h3 { font-family: var(--display); font-size: 1rem; margin: 0 0 10px; }
.trust-card p { margin: 0 0 8px; font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.trust-card p:last-child { margin-bottom: 0; }
.trust-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 0.84rem; }
.trust-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.trust-links a:hover { text-decoration: underline; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 1rem; max-width: 48rem; margin: 0 auto; }
.topbar-logo { font-family: var(--display); font-weight: 900; font-size: 14px; color: var(--accent); letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar-logo-dot { width: 6px; height: 6px; background: var(--accent2); border-radius: 50%; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.theme-btn { border: 1px solid var(--border); background: var(--card); border-radius: 8px; width: 36px; height: 32px; cursor: pointer; font-size: 16px; color: var(--muted); }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-badge { font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; }
.hero { text-align: center; padding: 2rem 0 1.5rem; }
.hero-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; background: rgba(37,99,235,0.08); padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(37,99,235,0.15); }
.hero h1 { font-family: var(--display); font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 900; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.hero-lead { color: var(--muted); font-size: 1.05rem; max-width: 34em; margin: 0 auto; }
.hero-value { font-family: var(--display); font-size: clamp(1.05rem, 3vw, 1.25rem); font-weight: 800; color: var(--text); margin: 0.35rem auto 0.85rem; max-width: 22em; line-height: 1.35; }
.kpi-updated { text-align: center; font-size: 0.78rem; color: var(--muted); margin: 0.65rem 0 0; min-height: 1.3em; }
.methodology-section, .audience-section { margin-top: 2rem; }
.methodology-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.15rem; box-shadow: 0 2px 12px var(--shadow); }
.methodology-box h3 { font-family: var(--display); font-size: 0.95rem; margin: 0 0 10px; color: var(--accent); }
.methodology-box p, .methodology-box li { font-size: 0.88rem; color: var(--text); line-height: 1.55; margin: 0 0 8px; }
.methodology-box ul { margin: 6px 0 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.86rem; }
.methodology-cols { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-top: 0.75rem; }
@media (min-width: 640px) { .methodology-cols { grid-template-columns: 1fr 1fr; } }
.audience-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 560px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
.audience-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1rem 1.1rem; box-shadow: 0 2px 12px var(--shadow); text-align: left; }
.audience-card .ac-icon { font-size: 1.6rem; margin-bottom: 6px; }
.audience-card h3 { font-size: 0.88rem; font-weight: 700; margin: 0 0 6px; }
.audience-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.45; margin: 0; }
.how-followup { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.15rem 1.2rem; margin-top: 1rem; box-shadow: 0 2px 12px var(--shadow); }
.how-followup h3 { font-family: var(--display); font-size: 0.95rem; margin: 0 0 10px; }
.how-followup ul { margin: 0; padding-left: 1.15rem; font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.hero-actions { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.75rem auto 0; max-width: 26rem; }
@media (min-width: 480px) { .hero-actions { flex-direction: row; justify-content: center; max-width: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 48px; padding: 0.85rem 1.5rem; border-radius: 14px; font-size: 1rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: transform 0.1s, box-shadow 0.15s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 18px rgba(37,99,235,0.35); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 24px rgba(37,99,235,0.4); }
.btn-telegram { background: #229ED9; color: #fff; }
.btn-telegram:hover { filter: brightness(1.08); }
.btn-outline { background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: 0 1px 4px var(--shadow); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.kpi-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 2rem 0 0; }
.kpi-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 0.8rem; text-align: center; box-shadow: 0 4px 18px var(--shadow); }
.kpi-value { font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; line-height: 1; }
.kpi-label { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.ad-slot { margin: 1.5rem 0; text-align: center; min-height: 100px; }
.ad-slot ins { display: block; }
.section-title { font-family: var(--display); font-size: 1.1rem; font-weight: 700; margin: 2.5rem 0 1rem; text-align: center; letter-spacing: -0.01em; }
.steps { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 540px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; text-align: center; box-shadow: 0 2px 12px var(--shadow); position: relative; }
.step-num { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-icon { font-size: 2rem; margin: 8px 0 6px; }
.step-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.step-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 540px) { .features-grid { grid-template-columns: 1fr 1fr; } }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.15rem; box-shadow: 0 2px 12px var(--shadow); }
.feature-icon { font-size: 1.5rem; margin-bottom: 4px; }
.feature-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 3px; }
.feature-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.weather-section { margin-top: 2rem; }
.weather-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; box-shadow: 0 4px 18px var(--shadow); }
.weather-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.weather-header-left { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; }
.weather-header-right { font-size: 0.75rem; color: var(--muted); }
.weather-header-right a { color: var(--accent); text-decoration: none; }
#prognostik-widget { border-radius: 8px; overflow: hidden; }
.weather-footer { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.weather-footer a { color: var(--accent); text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.weather-note { font-size: 0.72rem; color: var(--muted); }
.donate-card { background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(5,150,105,0.06)); border: 1px solid rgba(37,99,235,0.15); border-radius: 16px; padding: 1.5rem; text-align: center; margin-top: 2rem; }
.donate-card h2 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 8px; color: var(--accent); }
.donate-card p { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }
.donate-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.embed-section { margin-top: 2rem; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; box-shadow: 0 2px 12px var(--shadow); }
.embed-section h2 { font-size: 0.9rem; margin: 0 0 8px; font-weight: 700; }
.embed-section p { font-size: 0.82rem; color: var(--muted); margin: 0 0 10px; }
.embed-code { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-family: 'Courier New', monospace; font-size: 0.78rem; overflow-x: auto; word-break: break-all; color: var(--text); cursor: pointer; }
.embed-code:hover { border-color: var(--accent); }
.feedback-section { margin-top: 2rem; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; box-shadow: 0 4px 18px var(--shadow); }
.feedback-section h2 { font-family: var(--display); font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; text-align: center; }
.feedback-section .fb-lead { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 0 0 1.25rem; }
.fb-field { margin-bottom: 1rem; }
.fb-label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.fb-input, .fb-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 0.92rem; font-family: inherit; outline: none; transition: border-color 0.15s; }
.fb-input:focus, .fb-textarea:focus { border-color: var(--accent); }
.fb-textarea { resize: vertical; min-height: 100px; }
.fb-counter { text-align: right; font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.fb-submit { display: block; width: 100%; min-height: 48px; padding: 12px; border: none; border-radius: 12px; background: var(--accent); color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.fb-submit:hover { background: var(--accent-hover); }
.fb-submit:disabled { opacity: 0.5; cursor: default; }
.fb-success { display: none; text-align: center; padding: 1.5rem 0; color: var(--accent2); font-weight: 600; font-size: 1rem; }
footer { margin-top: 2.5rem; text-align: center; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1.5rem; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.6rem; }
.footer-legal { margin-top: 0.75rem; }
.scroll-top-btn { position: fixed; right: 18px; bottom: 22px; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--accent); font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; z-index: 1200; }
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { border-color: var(--accent); background: rgba(37,99,235,0.08); }
@media (max-width: 480px) { .scroll-top-btn { right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); } }
@media (max-width: 420px) { .kpi-strip { grid-template-columns: 1fr; } }

/* --- v2 visual refresh (homepage only) --- */
.wrap {
  max-width: 72rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.hero {
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: 1.06;
  background: linear-gradient(135deg, var(--accent) 0%, #003d82 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  max-width: 44rem;
}

.hero-actions .btn {
  min-height: 52px;
  border-radius: 12px;
}

.hero-actions .btn-primary {
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

.kpi-strip {
  gap: 1rem;
  margin-top: 2.2rem;
}

.kpi-card {
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--shadow);
}

.kpi-value {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.section-title {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  margin-top: 3rem;
  margin-bottom: 1.2rem;
}

.intro-grid,
.audience-grid,
.features-grid,
.steps {
  gap: 1rem;
}

.intro-card,
.audience-card,
.feature-card,
.step-card,
.methodology-box,
.weather-card,
.feedback-section,
.trust-card,
.embed-section,
.donate-card {
  border-radius: 16px;
  box-shadow: 0 10px 28px var(--shadow);
}

.map-preview {
  border-radius: 20px;
}

.map-preview-content {
  padding: 1.4rem 1.2rem 1.5rem;
}

.weather-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, #fff 4%) 0%, var(--card) 100%);
}

.donate-card {
  background: linear-gradient(135deg, rgba(0,87,184,0.1), rgba(255,215,0,0.12));
  border-color: rgba(0,87,184,0.25);
}

@media (min-width: 960px) {
  .hero {
    padding-top: 3.6rem;
  }
  .hero-actions {
    margin-top: 2rem;
  }
}

/* --- v3 redesign based on UX template --- */
:root {
  --rw-blue: #0057B8;
  --rw-blue-dark: #003D82;
  --rw-yellow: #FFD700;
}

body {
  background: linear-gradient(180deg, #e9f2ff 0%, var(--bg) 38%);
}

.hero-badge {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: none;
  border: 2px solid color-mix(in srgb, var(--rw-yellow) 75%, #fff 25%);
  background: #fff8dc;
  color: #1f2937;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
}

.hero-actions .btn-primary {
  background: var(--rw-blue);
}

.hero-actions .btn-outline {
  border: 2px solid var(--rw-blue);
  color: var(--rw-blue);
  background: #fff;
}

.kpi-card {
  padding: 1.6rem 1rem;
}

.kpi-value {
  font-size: clamp(2rem, 5vw, 3rem);
}

.section-title {
  background: linear-gradient(135deg, var(--rw-blue), var(--rw-blue-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

/* Reduce cognitive overload on homepage */
#about,
#methodology,
.embed-section,
#trust {
  display: none;
}

.map-preview {
  border-radius: 24px;
  overflow: hidden;
}

.map-preview-img-link {
  line-height: 1;
}

.map-mockup {
  position: relative;
  min-height: 460px;
  background: linear-gradient(135deg, #e6f0ff 0%, #f5f5f5 100%);
}

.map-roads {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 22% 35%, rgba(220, 38, 38, 0.12) 0 12%, transparent 14%),
    radial-gradient(circle at 70% 28%, rgba(234, 88, 12, 0.14) 0 11%, transparent 13%),
    linear-gradient(12deg, transparent 39%, rgba(0, 87, 184, 0.22) 40%, rgba(0, 87, 184, 0.22) 41%, transparent 42%),
    linear-gradient(-8deg, transparent 56%, rgba(0, 87, 184, 0.22) 57%, rgba(0, 87, 184, 0.22) 58%, transparent 59%);
}

.map-markers {
  position: absolute;
  inset: 0;
}

.marker {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  animation: marker-pop .5s ease-out both;
}

.marker-critical { background: #dc2626; top: 34%; left: 26%; }
.marker-warning { background: #ea580c; top: 45%; left: 62%; animation-delay: .1s; }
.marker-good { background: #16a34a; top: 62%; left: 39%; animation-delay: .2s; }
.marker-critical-2 { background: #dc2626; top: 26%; left: 72%; animation-delay: .3s; }
.marker-warning-2 { background: #ea580c; top: 74%; left: 20%; animation-delay: .4s; }

@keyframes marker-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.map-legend {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
  max-width: 220px;
}

.map-legend h3 {
  margin: 0 0 .6rem;
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  margin-bottom: .45rem;
}

.legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.legend-dot.red { background: #dc2626; }
.legend-dot.orange { background: #ea580c; }
.legend-dot.green { background: #16a34a; }

@media (max-width: 768px) {
  .map-mockup { min-height: 340px; }
  .map-legend { position: static; max-width: none; margin: 1rem; }
}

/* --- exact-template homepage redesign --- */
.rw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.rw-nav.scrolled { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08); }
.rw-nav-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.rw-logo { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: #0057B8; font-weight: 800; font-size: 1.7rem; }
.rw-logo-icon { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0057B8, #003D82); }
.rw-nav-menu { list-style: none; display: flex; align-items: center; gap: 0.45rem; margin: 0; padding: 0; }
.rw-nav-item { position: relative; display: flex; align-items: center; }
.rw-nav-link {
  text-decoration: none;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.rw-nav-link.active, .rw-nav-link:hover { background: #e6f0ff; color: #0057B8; }
.rw-nav-item:has(.rw-mega) > .rw-nav-link {
  padding-right: 1.35rem;
}
.rw-nav-item:has(.rw-mega) > .rw-nav-link::after {
  content: "▾";
  margin-left: 0.25rem;
  font-size: 0.65rem;
  opacity: 0.72;
  flex-shrink: 0;
}
.rw-mega {
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}
/* Десктоп: підменю лише по кліку (.rw-submenu-open), без hover — інакше курсор «падає» у зазор і меню зникає */
.rw-nav-item.rw-submenu-open .rw-mega { display: block; }
.rw-mega a { display: block; text-decoration: none; color: #334155; font-size: 0.86rem; padding: 0.5rem 0.6rem; border-radius: 8px; }
.rw-mega a:hover { background: #f5f9ff; color: #0057B8; }
[data-theme="dark"] .rw-mega {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .rw-mega a {
  color: #e2e8f0;
}
[data-theme="dark"] .rw-mega a:hover {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
}
.rw-nav-cta { display: flex; align-items: center; gap: 0.65rem; }
.rw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  min-height: 2.5rem;
  border: 2px solid transparent;
  transition: 0.2s ease;
  box-sizing: border-box;
}
.rw-btn-primary { background: #0057B8; color: #fff; }
.rw-btn-primary:hover { background: #003D82; }
.rw-btn-outline { border-color: #0057B8; color: #0057B8; background: #fff; }
.rw-btn-outline:hover { background: #e6f0ff; }
.rw-btn-large { padding: 0.9rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.rw-theme-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.rw-mobile-btn {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #334155;
  line-height: 1;
  padding: 0.25rem;
  align-items: center;
  justify-content: center;
}
.rw-mobile-btn:focus-visible {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 3px;
  border-radius: 8px;
}
a.rw-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10002;
  padding: 0.55rem 1rem;
  background: var(--accent, #2563eb);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
a.rw-skip-link:focus {
  left: max(12px, env(safe-area-inset-left, 0px));
  top: max(12px, env(safe-area-inset-top, 0px));
  outline: 2px solid #fff;
  outline-offset: 2px;
}
[data-theme="dark"] a.rw-skip-link:focus {
  outline-color: #93c5fd;
}

.rw-content { max-width: 1280px; margin: 0 auto; padding: 7.2rem 1.2rem 2.8rem; }
#rw-main:focus-visible {
  outline: 2px dashed var(--accent, #2563eb);
  outline-offset: 0.35rem;
}
.rw-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.rw-hero h1 { margin: 0 0 1rem; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
.rw-gradient { background: linear-gradient(135deg, #0057B8, #003D82); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rw-hero p { margin: 0 0 1rem; color: #475569; font-size: 1.06rem; }
.rw-hero-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.65rem; }
.rw-stat-value { font-size: 1.9rem; color: #0057B8; font-weight: 800; font-family: "JetBrains Mono", monospace; }
.rw-stat-label { font-size: 0.82rem; color: #64748b; }
.rw-hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.1rem; }
.rw-hero-visual { min-height: 0; }

.rw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rw-hero-bridge {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}
.rw-hero-bridge-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.rw-hero-bridge-link:hover {
  border-bottom-color: var(--accent);
}

.rw-hero-map-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Якір «До карти областей» — відступ під фіксовану навігацію */
#rw-hero-oblast-map {
  scroll-margin-top: calc(72px + 12px);
}
.rw-hero-map-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.rw-hero-map-heading {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.rw-hero-map-lead {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
}
.rw-hero-map-lead a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.rw-hero-map-lead a:hover {
  text-decoration: underline;
}

.rw-hero-embedded-map {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.rw-map-mode-toolbar {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.rw-map-mode-desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rw-map-mode-mobile {
  display: none;
}
.rw-map-mode-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
}
.rw-map-mode-legend {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
[data-theme="dark"] .rw-map-mode-legend {
  color: #cbd5e1;
}

@media (max-width: 720px) {
  .rw-map-mode-desktop {
    display: none;
  }
  .rw-map-mode-mobile {
    display: block;
  }
}

.rw-leaflet-host-wrap {
  position: relative;
  min-height: 420px;
}
.rw-oblast-map-loading {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: color-mix(in srgb, #e8f0fa 92%, var(--card));
  z-index: 5;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
}
.rw-oblast-map-loading.is-active {
  display: flex;
}
[data-theme="dark"] .rw-oblast-map-loading {
  background: color-mix(in srgb, #1e293b 92%, var(--card));
  color: #cbd5e1;
}
.rw-oblast-map-loading-spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-top-color: var(--accent);
  animation: rw-spin 0.75s linear infinite;
}
@keyframes rw-spin {
  to {
    transform: rotate(360deg);
  }
}

.rw-oblast-backdrop[hidden] {
  display: none !important;
}
.rw-oblast-backdrop:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  z-index: 2500;
  cursor: pointer;
}

body.rw-oblast-modal-open {
  overflow: hidden;
}

.rw-hero-screencap {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  text-decoration: none;
  line-height: 0;
}
.rw-hero-screencap img { width: 100%; height: auto; display: block; }
.rw-hero-screencap-cap {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 87, 184, 0.92);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  line-height: 1.2;
}
.rw-hero-legend-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
}
.rw-leg {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  margin: 0 0.1rem;
}
.rw-leg-bad { background: #fee2e2; color: #991b1b; }
.rw-leg-mid { background: #ffedd5; color: #9a3412; }
.rw-leg-ok { background: #dcfce7; color: #166534; }

.rw-section { margin-top: 3.3rem; }
.rw-section-header { text-align: center; margin-bottom: 1.5rem; }
.rw-badge { display: inline-block; background: #e6f0ff; color: #0057B8; border-radius: 999px; padding: 0.35rem 0.7rem; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.rw-section h2 { margin: 0.7rem 0 0; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.02em; }
.rw-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Підказка на внутрішніх сторінках порталу (новини, погода тощо) */
.rw-portal-hint {
  max-width: 52rem;
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.06);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text, #1e293b);
}
.rw-portal-hint a { color: var(--accent, #2563eb); font-weight: 600; text-decoration: none; }
.rw-portal-hint a:hover { text-decoration: underline; }
[data-theme="dark"] .rw-portal-hint {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(147, 197, 253, 0.35);
  color: #e2e8f0;
}
[data-theme="dark"] .rw-portal-hint a { color: #93c5fd; }

/* Один екран-огляд: куди йти за дашбордом, RQI, містом, додатком */
.rw-analytics-hub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.rw-analytics-hub li {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text, #1e293b);
}
.rw-analytics-hub a {
  color: var(--accent, #2563eb);
  font-weight: 600;
  text-decoration: none;
}
.rw-analytics-hub a:hover { text-decoration: underline; }
[data-theme="dark"] .rw-analytics-hub li {
  background: var(--card, #1e293b);
  border-color: var(--border, #334155);
  color: #e2e8f0;
}
[data-theme="dark"] .rw-analytics-hub a { color: #93c5fd; }

.rw-portal-empty {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card, #fff);
}
.rw-portal-empty p { margin: 0 0 0.75rem; color: #64748b; font-size: 0.95rem; line-height: 1.55; }
.rw-portal-empty p:last-child { margin-bottom: 0; }
.rw-portal-empty .rw-portal-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.rw-portal-empty .rw-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text, #1e293b);
  background: var(--surface, #f8fafc);
}
.rw-portal-empty .rw-btn-sm.rw-btn-sm-primary {
  background: var(--accent, #2563eb);
  color: #fff;
  border-color: var(--accent, #2563eb);
}
[data-theme="dark"] .rw-portal-empty { background: rgba(30, 41, 59, 0.92); border-color: #334155; }
[data-theme="dark"] .rw-portal-empty p { color: #cbd5e1; }
[data-theme="dark"] .rw-portal-empty .rw-btn-sm { color: #e2e8f0; background: #1e293b; border-color: #475569; }
.rw-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06); }
.rw-card-cta {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.rw-card-cta a {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent, #2563eb);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent, #2563eb) 42%, transparent);
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
}
.rw-card-cta a:hover { text-decoration: underline; }
[data-theme="dark"] .rw-card-cta a {
  background: rgba(37, 99, 235, 0.14);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.45);
}
.rw-card__strip {
  margin: -0.15rem 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.rw-card--soft {
  border-style: dashed;
  border-color: #cbd5e1;
}
.rw-card .icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.rw-card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.rw-card p { margin: 0; color: #64748b; font-size: 0.9rem; }
[data-theme="dark"] .rw-card__strip { color: #94a3b8; }
[data-theme="dark"] .rw-card--soft { border-color: #475569; }
/* Білий фон карток при темній темі: body дає світлий --text — заголовки зливалися з фоном */
[data-theme="dark"] .rw-card h3 {
  color: #0f172a;
}
[data-theme="dark"] .rw-review-head,
[data-theme="dark"] .rw-review-head strong {
  color: #0f172a;
}
[data-theme="dark"] .map-legend {
  color: #1e293b;
}
[data-theme="dark"] .map-legend h3 {
  color: #475569;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rw-card h3 {
    color: #0f172a;
  }
  :root:not([data-theme="light"]) .rw-review-head,
  :root:not([data-theme="light"]) .rw-review-head strong {
    color: #0f172a;
  }
  :root:not([data-theme="light"]) .map-legend {
    color: #1e293b;
  }
  :root:not([data-theme="light"]) .map-legend h3 {
    color: #475569;
  }
}

.rw-map-live .rw-map-frame { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1); }
.rw-svg-wrap {
  position: relative;
  min-height: 420px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
 padding: 0.5rem;
}
.rw-svg-img {
  display: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  object-fit: contain;
  object-position: center;
}
.rw-svg-img.active { display: block; }

.rw-oblast-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 40rem;
  margin: 0 auto 1rem;
  line-height: 1.5;
}
/* Карта областей на всю ширину фрейму; деталі — у модальному вікні */
.rw-oblast-map-frame .rw-map-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 480px;
}
@media (min-width: 1100px) {
  .rw-oblast-map-frame .rw-map-split {
    min-height: 560px;
  }
  .rw-leaflet-host-wrap {
    min-height: 520px;
  }
  .rw-hero-embedded-map .rw-leaflet-host {
    min-height: 520px;
  }
  .rw-hero-embedded-map .rw-leaflet-host.rw-oblast-map--svg {
    min-height: 520px;
  }
  .rw-leaflet-host {
    min-height: 520px;
  }
}
.rw-map-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.rw-map-mode {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.rw-map-mode:hover { border-color: var(--accent); color: var(--accent); }
.rw-map-mode-active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--accent);
}
.rw-leaflet-host {
  min-height: 420px;
  width: 100%;
  background: #d4e4f7;
  z-index: 1;
}
[data-theme="dark"] .rw-leaflet-host {
  background: #1a2d44;
}
.rw-hero-embedded-map .rw-leaflet-host {
  min-height: 400px;
}
@media (min-width: 901px) {
  .rw-hero-embedded-map .rw-leaflet-host {
    min-height: 460px;
  }
}
.rw-leaflet-host-wrap:has(.rw-oblast-map--svg) {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.rw-leaflet-host.rw-oblast-map--svg {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 360px;
  overflow: hidden;
  line-height: 0;
}
.rw-hero-embedded-map .rw-leaflet-host.rw-oblast-map--svg {
  min-height: 360px;
}
@media (min-width: 901px) {
  .rw-hero-embedded-map .rw-leaflet-host.rw-oblast-map--svg {
    min-height: 400px;
  }
}
.rw-leaflet-host.rw-oblast-map--svg > svg {
  flex: 1;
  min-height: 240px;
  width: 100%;
  height: 100%;
  max-height: none;
}
.rw-leaflet-host.rw-oblast-map--svg g#contours {
  pointer-events: none;
}
.rw-uk-svg-region {
  cursor: pointer;
}
.rw-uk-svg-region:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Підписи областей на карті головної */
.rw-oblast-div-label {
  background: transparent !important;
  border: none !important;
}
.rw-oblast-div-label span {
  display: block;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
  text-shadow:
    0 0 4px #fff,
    0 0 8px #fff,
    0 1px 2px rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.1;
}
[data-theme="dark"] .rw-oblast-div-label span {
  color: #f8fafc;
  text-shadow:
    0 0 4px #0f172a,
    0 0 10px #0f172a,
    0 1px 2px rgba(15, 23, 42, 0.95);
}
.rw-oblast-svg-label {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 240px;
  fill: #0f172a;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 28px;
  stroke-linejoin: round;
  pointer-events: none;
}
[data-theme="dark"] .rw-oblast-svg-label {
  fill: #f1f5f9;
  stroke: rgba(15, 23, 42, 0.88);
}
.rw-oblast-panel[hidden] {
  display: none !important;
}
.rw-oblast-panel:not([hidden]) {
  display: block;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw - 1.5rem, 440px);
  max-height: min(88vh, 720px);
  overflow: auto;
  z-index: 2510;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  animation: rw-oblast-modal-in 0.2s ease-out;
}
@keyframes rw-oblast-modal-in {
  from {
    opacity: 0.9;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
.rw-oblast-panel-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  z-index: 3;
}
.rw-oblast-panel-inner { padding: 1rem 1rem 1.1rem; padding-right: 2rem; }
.rw-oblast-h1 h3 { margin: 0 0 4px; font-family: var(--display); font-size: 1.05rem; }
.rw-oblast-meta { margin: 0; font-size: 0.8rem; color: var(--muted); }
.rw-oblast-hero { margin: 12px 0 14px; }
.rw-oblast-rqi-big {
  font-family: "JetBrains Mono", monospace;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.rw-oblast-rqi-bar {
  height: 8px;
  border-radius: 6px;
  background: var(--border);
  margin-top: 8px;
  overflow: hidden;
}
.rw-oblast-rqi-bar span {
  display: block;
  height: 100%;
  border-radius: 6px;
  width: 0%;
  transition: width 0.35s ease;
}
.rw-oblast-trend { margin: 8px 0 0; font-size: 0.86rem; color: var(--muted); }
.rw-oblast-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.rw-oblast-kpis span {
  display: block;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.05rem;
}
.rw-oblast-kpis small { font-size: 0.68rem; color: var(--muted); font-weight: 600; }
.rw-oblast-footnote { font-size: 0.68rem; color: var(--muted); margin: 8px 0 10px; line-height: 1.4; }
.rw-oblast-footnote-details {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.rw-oblast-footnote-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  list-style: none;
}
.rw-oblast-footnote-details summary::-webkit-details-marker {
  display: none;
}
.rw-oblast-footnote-details[open] summary {
  margin-bottom: 6px;
}
.rw-oblast-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.rw-oblast-tab {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.rw-oblast-tab-active {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
}
.rw-oblast-pane { display: none; }
.rw-oblast-pane-active { display: block; }
.rw-oblast-hw-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}
.rw-oblast-panel:not([hidden]) .rw-oblast-hw-list {
  max-height: min(38vh, 320px);
}
.rw-oblast-hw-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.rw-oblast-hw-list a { color: var(--accent); font-weight: 700; text-decoration: none; }
.rw-oblast-hw-list a:hover { text-decoration: underline; }
.rw-oblast-hw-list .rw-hw-r {
  float: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.rw-oblast-mini-map { height: 220px; border-radius: 10px; border: 1px solid var(--border); }
.rw-oblast-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding: 8px 4px 0;
}
.rw-oblast-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.rw-oblast-bar > div:first-child {
  width: 100%;
  max-width: 36px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  min-height: 4px;
}
.rw-oblast-bar > small { font-size: 0.58rem; color: var(--muted); text-align: center; line-height: 1.1; word-break: break-all; }
.rw-oblast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.rw-btn-sm { padding: 8px 12px; font-size: 0.8rem; }

.rw-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.8rem; }
.rw-reviews-note {
  margin: 0.5rem auto 0;
  max-width: 40rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.rw-section-header .rw-reviews-note {
  margin-top: 0.65rem;
}
.rw-review { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.rw-review-head { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; margin-bottom: 0.35rem; }
.rw-review-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: inherit;
}
.rw-review-link:hover {
  text-decoration: underline;
}
.rw-review-meta {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.rw-review p:not(.rw-review-meta) {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
}
.score { font-weight: 800; font-family: "JetBrains Mono", monospace; border-radius: 6px; padding: 0.2rem 0.4rem; font-size: 0.82rem; }
.score.s5 { color: #166534; background: #dcfce7; }
.score.s4 { color: #92400e; background: #ffedd5; }
.score.s2 { color: #991b1b; background: #fee2e2; }

.rw-cta { margin-top: 3rem; }
.rw-cta-box { background: linear-gradient(135deg, #0057B8, #003D82); border-radius: 20px; padding: 2rem 1.3rem; text-align: center; color: #fff; box-shadow: 0 20px 45px rgba(0, 87, 184, 0.32); }
.rw-cta-box h2 { margin: 0 0 0.55rem; }
.rw-cta-box p { margin: 0 0 1rem; opacity: 0.95; }
.rw-footer { margin-top: 2.2rem; border-top: 1px solid var(--border); padding-top: 1.3rem; text-align: center; font-size: 0.86rem; color: #64748b; }
.rw-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 1rem; margin-bottom: 0.5rem; }
.rw-footer a { color: #0057B8; text-decoration: none; }

@media (max-width: 1100px) {
  .rw-nav-menu { display: none; }
  .rw-mobile-btn { display: inline-flex; align-items: center; justify-content: center; }
  .rw-nav-menu.rw-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    padding: 0.6rem;
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom, 0px));
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    max-height: min(70vh, calc(100vh - 88px - env(safe-area-inset-bottom, 0px)));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  [data-theme="dark"] .rw-nav-menu.rw-open {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
  /* Підменю в колонку під пунктом, а не збоку */
  .rw-nav-menu.rw-open .rw-nav-item {
    flex-direction: column;
    align-items: stretch;
  }
  .rw-nav-menu.rw-open .rw-nav-link {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
  }
  .rw-nav-menu.rw-open .rw-mega {
    position: static;
    display: none;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 0.15rem 0 0.35rem 0.75rem;
    margin: 0;
    border-left: 2px solid rgba(0, 87, 184, 0.2);
  }
  .rw-nav-menu.rw-open .rw-nav-item:hover .rw-mega {
    display: none;
  }
  .rw-nav-menu.rw-open .rw-nav-item.rw-submenu-open .rw-mega {
    display: block;
  }
  .rw-nav-menu.rw-open .rw-nav-item:has(.rw-mega) > .rw-nav-link {
    position: relative;
    padding-right: 1.75rem;
  }
  .rw-nav-menu.rw-open .rw-nav-item:has(.rw-mega) > .rw-nav-link::after {
    content: "▾";
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    font-size: 0.72rem;
    opacity: 0.75;
  }
  .rw-nav-menu.rw-open .rw-nav-item.rw-submenu-open:has(.rw-mega) > .rw-nav-link::after {
    content: "▴";
  }
}
@media (max-width: 900px) {
  .rw-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rw-nav-cta .rw-btn { display: none; }
  .rw-svg-wrap { min-height: 280px; }
}

/* --- Внутрішні сторінки (та сама оболонка, що й лендінг) --- */
body.rw-landing-inner {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(165deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.55;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.rw-inner-main {
  max-width: 72rem;
  margin: 0 auto;
  /* Clear fixed .rw-nav (~72px) so titles are not covered */
  padding: calc(72px + 1.5rem) 1rem 3rem;
}
.rw-inner-hero {
  text-align: center;
  padding: 2rem 0 1.25rem;
}
.rw-inner-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}
.rw-inner-hero .rw-inner-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0 auto;
}
.rw-inner-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
[data-theme="dark"] .rw-inner-card {
  background: var(--card);
  color: var(--text);
}
.rw-inner-card p {
  margin: 0 0 1rem;
  color: var(--text);
}
.rw-inner-card p:last-child {
  margin-bottom: 0;
}
.rw-inner-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.rw-inner-card a:hover {
  text-decoration: underline;
}
.rw-inner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}
#rw-nav-mount {
  min-height: 72px;
}

/* Модальне вікно: відгук про трасу (головна) */
.rw-hw-rv[hidden] {
  display: none !important;
}
.rw-hw-rv:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.rw-hw-rv__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}
.rw-hw-rv__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--card, #fff);
  color: var(--text, #0f172a);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.1));
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  padding: 1.35rem 1.35rem 1.2rem;
}
[data-theme="dark"] .rw-hw-rv__dialog {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.rw-hw-rv__x {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #dc2626;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.rw-hw-rv__x:hover {
  background: rgba(220, 38, 38, 0.08);
}
.rw-hw-rv__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b45309;
  margin: 0 2rem 0.5rem 0;
  text-align: center;
}
[data-theme="dark"] .rw-hw-rv__title {
  color: #fbbf24;
}
.rw-hw-rv__lead {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted, #64748b);
  text-align: center;
}
.rw-hw-rv__lead a {
  color: var(--accent, #2563eb);
  font-weight: 600;
}
.rw-hw-rv__form {
  margin-top: 0.25rem;
}
.rw-hw-rv__field {
  margin-bottom: 1rem;
}
.rw-hw-rv__label-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.rw-hw-rv__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.rw-hw-rv__req {
  color: #dc2626;
}
.rw-hw-rv__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent, #2563eb);
  font-size: 0.65rem;
  font-weight: 800;
  cursor: help;
  margin-bottom: 0.35rem;
}
.rw-hw-rv__select,
.rw-hw-rv__input,
.rw-hw-rv__textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.12));
  background: var(--bg, #f8fafc);
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
}
.rw-hw-rv__textarea {
  resize: vertical;
  min-height: 6rem;
}
.rw-hw-rv__stars {
  display: flex;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.rw-hw-rv__star {
  border: none;
  background: none;
  padding: 0.1rem 0.2rem;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  color: #f59e0b;
  opacity: 0.28;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.rw-hw-rv__star:hover {
  opacity: 0.55;
}
.rw-hw-rv__star[aria-pressed="true"] {
  opacity: 1;
}
.rw-hw-rv__msg {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: var(--muted, #64748b);
}
.rw-hw-rv__msg.rw-hw-rv__msg--err {
  color: #dc2626;
}
.rw-hw-rv__msg.rw-hw-rv__msg--ok {
  color: #059669;
  font-weight: 600;
}
.rw-hw-rv__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
