:root {
  color-scheme: dark light;
  --app-bg: #070b0d;
  --page-bg: #070b0d;
  --surface-1: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-3: rgba(20, 78, 72, 0.55);
  --border-soft: rgba(255, 255, 255, 0.11);
  --border-mint: rgba(110, 255, 228, 0.25);
  --sand: var(--page-bg);
  --sand-deep: #0b1416;
  --paper: var(--surface-1);
  --ink: rgba(255, 255, 255, 0.95);
  --muted: rgba(205, 214, 224, 0.68);
  --teal: #19c7b9;
  --teal-dark: #8effeb;
  --teal-soft: rgba(25, 199, 185, 0.18);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.16);
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, 0.14);
  --error-text: #fecdd3;
  --border: var(--border-soft);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-xl: 24px;
  --radius-card: 20px;
  --radius-inner: 14px;
  --radius-pill: 999px;
  --nav-height: 76px;
  --bottom-nav-clearance: calc(var(--nav-height) + 56px + env(safe-area-inset-bottom));
  --text-main: rgba(255, 255, 255, 0.95);
  --text-body: rgba(235, 239, 244, 0.84);
  --text-muted: rgba(205, 214, 224, 0.68);
  --text-soft: rgba(185, 198, 210, 0.58);
  --accent: #19c7b9;
  --accent-strong: #0f9f91;
  --accent-soft: rgba(25, 199, 185, 0.18);
  --accent-mint: rgba(142, 255, 235, 0.94);
  --active-purple: rgba(86, 56, 140, 0.75);
  --card-bg: var(--surface-1);
  --card-bg-strong: var(--surface-2);
  --card-border: var(--border-soft);
  --body-background:
    radial-gradient(circle at 20% 0%, rgba(25, 199, 185, 0.12), transparent 32%),
    radial-gradient(circle at 90% 15%, rgba(86, 56, 140, 0.14), transparent 30%),
    var(--page-bg);
  --header-bg: rgba(7, 11, 13, 0.88);
  --bottom-nav-bg: rgba(7, 11, 13, 0.92);
  --input-bg: rgba(255, 255, 255, 0.055);
  --input-border: #aeb9b5;
  --button-text: #ffffff;
  --overlay-bg: rgba(2, 8, 10, 0.66);
  --detail-panel-bg:
    radial-gradient(circle at 18% 0%, rgba(25, 199, 185, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
  --detail-panel-border: rgba(110, 255, 228, 0.18);
  --detail-panel-shadow: 0 -24px 70px rgba(0, 0, 0, 0.42);
  --detail-close-bg: rgba(255, 255, 255, 0.06);
  --detail-close-color: rgba(235, 239, 244, 0.9);
  --consent-bg: rgba(9, 36, 37, 0.94);
  --consent-border: rgba(110, 255, 228, 0.28);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --app-bg: #f6fbf9;
    --page-bg: #f6fbf9;
    --surface-1: rgba(255, 255, 255, 0.96);
    --surface-2: #eef8f5;
    --surface-3: #d6eee8;
    --border-soft: rgba(16, 37, 38, 0.16);
    --border-mint: rgba(15, 118, 110, 0.34);
    --sand: var(--page-bg);
    --sand-deep: #e7f3ef;
    --paper: #ffffff;
    --ink: #102526;
    --muted: #4b6264;
    --teal: #0f766e;
    --teal-dark: #075f60;
    --teal-soft: rgba(15, 118, 110, 0.13);
    --red: #b4233c;
    --red-soft: #fde7eb;
    --error-text: #9f1239;
    --border: var(--border-soft);
    --shadow: 0 18px 46px rgba(16, 37, 38, 0.12);
    --text-main: #102526;
    --text-body: #223c3e;
    --text-muted: #4b6264;
    --text-soft: #637a7c;
    --accent: #0f766e;
    --accent-strong: #075f60;
    --accent-soft: rgba(15, 118, 110, 0.13);
    --accent-mint: #075f60;
    --card-bg: #ffffff;
    --card-bg-strong: #f0faf7;
    --card-border: var(--border-soft);
    --body-background:
      radial-gradient(circle at 20% 0%, rgba(15, 118, 110, 0.11), transparent 34%),
      radial-gradient(circle at 90% 12%, rgba(255, 176, 122, 0.16), transparent 30%),
      linear-gradient(180deg, #f7fffc 0%, #eff9f5 58%, #e8f4f0 100%);
    --header-bg: rgba(246, 251, 249, 0.9);
    --bottom-nav-bg: rgba(246, 251, 249, 0.95);
    --input-bg: #ffffff;
    --input-border: rgba(16, 37, 38, 0.28);
    --button-text: #ffffff;
    --overlay-bg: rgba(16, 37, 38, 0.28);
    --detail-panel-bg:
      radial-gradient(circle at 18% 0%, rgba(15, 118, 110, 0.1), transparent 36%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 250, 247, 0.97));
    --detail-panel-border: rgba(16, 37, 38, 0.18);
    --detail-panel-shadow: 0 -24px 70px rgba(16, 37, 38, 0.2);
    --detail-close-bg: rgba(15, 118, 110, 0.1);
    --detail-close-color: #102526;
    --consent-bg: rgba(255, 255, 255, 0.96);
    --consent-border: rgba(15, 118, 110, 0.24);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --app-bg: #f6fbf9;
  --page-bg: #f6fbf9;
  --surface-1: rgba(255, 255, 255, 0.96);
  --surface-2: #eef8f5;
  --surface-3: #d6eee8;
  --border-soft: rgba(16, 37, 38, 0.16);
  --border-mint: rgba(15, 118, 110, 0.34);
  --sand: var(--page-bg);
  --sand-deep: #e7f3ef;
  --paper: #ffffff;
  --ink: #102526;
  --muted: #4b6264;
  --teal: #0f766e;
  --teal-dark: #075f60;
  --teal-soft: rgba(15, 118, 110, 0.13);
  --red: #b4233c;
  --red-soft: #fde7eb;
  --error-text: #9f1239;
  --border: var(--border-soft);
  --shadow: 0 18px 46px rgba(16, 37, 38, 0.12);
  --text-main: #102526;
  --text-body: #223c3e;
  --text-muted: #4b6264;
  --text-soft: #637a7c;
  --accent: #0f766e;
  --accent-strong: #075f60;
  --accent-soft: rgba(15, 118, 110, 0.13);
  --accent-mint: #075f60;
  --card-bg: #ffffff;
  --card-bg-strong: #f0faf7;
  --card-border: var(--border-soft);
  --body-background:
    radial-gradient(circle at 20% 0%, rgba(15, 118, 110, 0.11), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(255, 176, 122, 0.16), transparent 30%),
    linear-gradient(180deg, #f7fffc 0%, #eff9f5 58%, #e8f4f0 100%);
  --header-bg: rgba(246, 251, 249, 0.9);
  --bottom-nav-bg: rgba(246, 251, 249, 0.95);
  --input-bg: #ffffff;
  --input-border: rgba(16, 37, 38, 0.28);
  --button-text: #ffffff;
  --overlay-bg: rgba(16, 37, 38, 0.28);
  --detail-panel-bg:
    radial-gradient(circle at 18% 0%, rgba(15, 118, 110, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 250, 247, 0.97));
  --detail-panel-border: rgba(16, 37, 38, 0.18);
  --detail-panel-shadow: 0 -24px 70px rgba(16, 37, 38, 0.2);
  --detail-close-bg: rgba(15, 118, 110, 0.1);
  --detail-close-color: #102526;
  --consent-bg: rgba(255, 255, 255, 0.96);
  --consent-border: rgba(15, 118, 110, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: var(--bottom-nav-clearance);
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--body-background);
  color: var(--text-body);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px max(18px, env(safe-area-inset-left)) 10px max(18px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--border-soft);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}

.brand,
.eyebrow,
h1,
h2,
p {
  margin-top: 0;
}

.brand {
  margin-bottom: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.brand-link {
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.brand-link:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 6px;
}

.brand-subtitle {
  display: none;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.15;
}

.desktop-nav {
  display: none;
}

.eyebrow {
  margin-bottom: 2px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 12px;
  height: 12px;
  border: 3px solid var(--teal-soft);
  border-radius: 50%;
  background: var(--teal);
  box-sizing: content-box;
}

.app-main {
  width: min(100%, 760px);
  margin: 0 auto;
}

.view {
  padding: 22px 16px 12px;
  animation: view-in 180ms ease-out;
}

.view[hidden] {
  display: none;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.view.is-back-returning {
  animation: view-back-return 170ms ease-out;
}

@keyframes view-back-return {
  from { opacity: 0.88; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.floating-back-button {
  position: fixed;
  z-index: 80;
  top: calc(env(safe-area-inset-top) + 58px);
  left: 10px;
  width: 30px;
  height: 30px;
  display: none;
  place-items: center;
  border: 1px solid rgba(153, 246, 228, 0.34);
  border-radius: 999px;
  background: rgba(5, 47, 44, 0.62);
  color: #d9fffb;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  font: 700 24px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.floating-back-button.is-visible {
  display: grid;
}

.hero {
  overflow: hidden;
  position: relative;
  padding: 28px 22px 22px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(25, 199, 185, 0.2), transparent 230px),
    linear-gradient(145deg, rgba(20, 78, 72, 0.7), rgba(10, 18, 20, 0.96));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.08);
}

.hero-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 17px;
  background: var(--teal);
  color: #052f2c;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(25, 199, 185, 0.24);
}

h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--text-main);
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.07rem;
  font-weight: 650;
}

.notice {
  position: relative;
  z-index: 1;
  padding: 15px 16px;
  border-radius: 16px;
}

.notice strong {
  display: block;
  margin-bottom: 3px;
}

.notice p {
  margin-bottom: 0;
}

.notice--info {
  background: var(--teal-soft);
  color: var(--text-body);
}

.notice--warning {
  margin-bottom: 18px;
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.08));
  color: rgba(255, 224, 178, 0.94);
}

.notice--danger {
  margin-bottom: 22px;
  background: var(--red-soft);
  color: #fecdd3;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.home-section {
  margin-top: 24px;
}

.home-section--primary {
  margin-top: 18px;
}

.primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.primary-card {
  display: flex;
  min-width: 0;
  min-height: 74px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  box-shadow: 0 6px 18px rgba(31, 41, 51, 0.05);
  cursor: pointer;
}

.primary-card__icon {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 1rem;
  font-weight: 900;
}

.quick-card {
  display: flex;
  min-width: 0;
  min-height: 98px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 7px 22px rgba(48, 45, 33, 0.06);
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.quick-card:active,
.help-grid button:active,
.card-action:active,
.primary-button:active {
  transform: translateY(1px);
}

.quick-card--accent {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--button-text);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.quick-card--accent .quick-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--button-text);
}

.install-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.05);
}

.install-card__icon {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--teal);
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
}

.install-card h2 {
  margin-bottom: 10px;
}

.install-card p {
  margin-bottom: 7px;
  color: var(--ink);
}

.install-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.mini-guide,
.help-block,
.request-panel {
  margin-top: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading--page {
  margin-bottom: 12px;
}

.section-heading--page h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 8vw, 2.85rem);
}

.section-symbol {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--teal);
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
}

.section-intro {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 600;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.steps span {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.steps p {
  margin-bottom: 0;
}

.card-list {
  display: grid;
  gap: 14px;
}

.info-card {
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 0%, rgba(25, 199, 185, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.card-body {
  padding: 20px 18px 18px;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-category,
.risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.card-area {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}

.global-source-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
}

.info-card h3 {
  margin: 0 0 13px;
  color: var(--text-main);
  font-size: 1.18rem;
  font-weight: 760;
  line-height: 1.32;
}

.card-copy {
  margin-bottom: 13px;
  color: var(--text-body);
  font-weight: 540;
  line-height: 1.52;
}

.price-main {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 1.08rem;
  font-weight: 780;
  line-height: 1.35;
}

.card-alert,
.card-tip,
.route-meta {
  margin: 11px 0 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  font-size: 0.94rem;
}

.card-alert {
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.08));
  color: rgba(255, 224, 178, 0.94);
  font-weight: 620;
}

.card-tip {
  background: rgba(255, 255, 255, 0.065);
  color: var(--text-body);
}

.partner-badge {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  border: 1px solid var(--border-mint);
  border-radius: 14px;
  background: rgba(25, 199, 185, 0.08);
  padding: 12px 13px;
  color: var(--text-body);
}

.partner-badge__label {
  color: var(--teal-dark);
  font-size: 0.92rem;
}

.partner-badge__text {
  margin: 0;
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 560;
  line-height: 1.4;
}

.partner-badge__text span {
  color: var(--teal-dark);
  font-weight: 760;
}

.card-premium-panel {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.1);
  padding: 12px 13px;
  color: var(--text-body);
}

.card-premium-panel--compact {
  margin-top: 10px;
}

.card-premium-panel__title {
  color: #fde68a;
  font-size: 0.92rem;
  font-weight: 850;
}

.card-premium-panel__text {
  margin: 0;
  color: rgba(254, 243, 199, 0.94);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
}

.card-premium-panel__button,
.card-cta--premium,
.detail-cta--premium {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
}

.card-premium-panel__button {
  justify-self: start;
  min-height: 34px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  padding: 0 13px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.card-premium-panel__button:hover,
.card-premium-panel__button:focus-visible,
.card-cta--premium:hover,
.card-cta--premium:focus-visible {
  border-color: rgba(253, 230, 138, 0.72);
  background: rgba(245, 158, 11, 0.24);
  color: #fff7d6;
}

.card-tip strong,
.route-meta strong {
  color: var(--accent-mint);
  font-weight: 760;
}

.risk-badge--high {
  background: var(--red-soft);
  color: var(--red);
}

.risk-badge--medium {
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
  color: rgba(255, 224, 178, 0.94);
}

.route-meta {
  display: grid;
  gap: 6px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text-body);
}

.card-actions,
.card-share-actions,
.compact-card__actions,
.info-card__actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 11px 12px 12px;
  padding: 0;
  border: 0;
}

.card-share-actions,
.compact-card__actions,
.info-card__actions,
.result-actions {
  margin: 10px 0 0;
}

.card-actions > *,
.compact-card__actions > *,
.card-share-actions > *,
.info-card__actions > *,
.result-actions > *,
.favorite-button,
.card-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-mint);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  box-sizing: border-box;
}

.card-action::after {
  content: none;
}

.card-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  margin: 0;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-mint);
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  box-sizing: border-box;
}

.card-cta:active {
  transform: translateY(1px);
}

.card-cta--detail {
  margin: 14px 0 0;
}

.open-section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex: 0 0 auto;
  width: auto;
  max-width: max-content;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-mint);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.open-section-action:hover,
.open-section-action:focus-visible {
  border-color: rgba(110, 255, 228, 0.35);
  background: rgba(25, 199, 185, 0.18);
  color: var(--accent-mint);
  text-decoration: none;
}

.open-section-action:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.info-card.is-source-highlighted {
  border-color: var(--teal);
  box-shadow:
    0 0 0 4px rgba(25, 199, 185, 0.14),
    0 20px 48px rgba(0, 0, 0, 0.3);
}

.contact-directory {
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.help-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.help-mode-tab {
  min-height: 38px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 0 16px;
  font: inherit;
  font-weight: 850;
}

.help-mode-tab.is-active {
  border-color: rgba(45, 212, 191, 0.68);
  background: var(--teal);
  color: #052f2c;
}

.contact-group {
  min-width: 0;
}

.contact-group__title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.18rem;
}

.contact-group__grid {
  display: grid;
  gap: 14px;
}

.contact-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.contact-status--verified {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.contact-status--check {
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
  color: rgba(255, 224, 178, 0.94);
}

.card-type-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.13);
  color: var(--accent-mint);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-type-label--urgent {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.36);
  color: #fecaca;
}

.card-type-label--contact {
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.card-type-label--instruction {
  border: 1px solid rgba(147, 197, 253, 0.26);
  background: rgba(59, 130, 246, 0.13);
  color: #bfdbfe;
}

.contact-note {
  margin: 0;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.07));
  color: rgba(255, 224, 178, 0.94);
  padding: 11px 12px;
  font-size: 0.9rem;
  font-weight: 560;
  line-height: 1.5;
}

.contact-values {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.contact-value {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.055);
  padding: 8px 10px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-value__label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-value strong {
  color: var(--teal-dark);
  font-size: 1rem;
  font-weight: 900;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 12px;
}

.contact-button {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(15, 118, 110, 0.32);
  border-radius: 12px;
  background: var(--paper);
  color: var(--teal-dark);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.contact-button--whatsapp {
  border-color: var(--teal);
  background: var(--teal);
  color: #052f2c;
}

.external-fallback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: end;
  background: rgba(2, 8, 10, 0.66);
  backdrop-filter: blur(4px);
  padding: 16px;
}

.external-fallback-backdrop[hidden] {
  display: none;
}

.external-fallback-sheet {
  width: min(100%, 520px);
  margin: 0 auto;
  border: 1px solid rgba(110, 255, 228, 0.18);
  border-radius: 24px 24px 18px 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(25, 199, 185, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  padding: 18px;
  box-shadow: 0 -22px 58px rgba(0, 0, 0, 0.38);
}

.external-fallback-title {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 1.25rem;
}

.external-fallback-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.external-fallback-value {
  margin: 14px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
  color: var(--text-main);
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.external-fallback-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.external-fallback-button {
  min-height: 46px;
  border: 1px solid rgba(110, 255, 228, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--teal-dark);
  font-weight: 760;
}

.external-fallback-button--primary {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(25, 199, 185, 0.95), rgba(12, 143, 132, 0.92));
  color: #052f2c;
}

.external-fallback-button--telegram {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
}

.external-fallback-button--ghost {
  color: var(--muted);
}

.external-fallback-status {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.help-grid button {
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.3);
  border-radius: 15px;
  background: var(--paper);
  color: var(--teal-dark);
  font-weight: 800;
  cursor: pointer;
}

.request-panel {
  padding: 20px 17px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.privacy-note {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 600;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.field label span {
  color: var(--red);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 13px;
  border: 1.5px solid var(--input-border);
  border-radius: 13px;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 16px;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.consent-field input[aria-invalid="true"] {
  border-color: var(--red);
}

.consent-field {
  margin: 2px 0 14px;
}

.consent-field__label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
}

.consent-field__label a {
  color: var(--teal-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.consent-field input {
  appearance: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid rgba(15, 118, 110, 0.72);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  accent-color: var(--teal);
}

.consent-field input:checked {
  background:
    linear-gradient(135deg, transparent 43%, #ffffff 43% 57%, transparent 57%) 4px 7px / 5px 5px no-repeat,
    linear-gradient(45deg, transparent 43%, #ffffff 43% 57%, transparent 57%) 7px 6px / 7px 7px no-repeat,
    var(--teal);
  border-color: var(--teal);
}

.field-error {
  min-height: 0;
  margin: 5px 0 0;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

.form-status {
  display: none;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
}

.form-status.is-error {
  display: block;
  background: var(--red-soft);
  color: var(--red);
}

.form-status.is-success {
  display: block;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.primary-button {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 0;
  border-radius: 15px;
  background: var(--teal);
  color: var(--button-text);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.data-error {
  padding: 17px;
  border: 1px solid rgba(251, 113, 133, 0.34);
  border-radius: 16px;
  background: var(--red-soft);
  color: var(--error-text);
}

.data-error p {
  margin: 4px 0 0;
}

.bottom-nav {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  min-height: var(--nav-height);
  padding: 7px max(6px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  border-top: 1px solid var(--border-soft);
  background: var(--bottom-nav-bg);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.nav-item {
  display: flex;
  min-width: 0;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 2px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  overflow: hidden;
}

.nav-item span {
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.nav-icon svg,
.section-symbol svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-icon--star svg path,
.section-symbol--favorite svg path {
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-item.is-active .nav-icon--star svg path {
  fill: currentColor;
}

.nav-item small {
  display: block;
  width: 100%;
  overflow: hidden;
  max-width: 100%;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.05;
  text-overflow: clip;
  white-space: nowrap;
}

.nav-item small span {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.nav-label-short {
  display: none;
}

.nav-item.is-active {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

@media (max-width: 420px) {
  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }
}

@media (min-width: 640px) {
  .view {
    padding: 28px 24px 20px;
  }

  .quick-grid,
  .help-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-directory {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-group__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-card {
    display: flex;
    flex-direction: column;
  }

  .card-body {
    flex: 1;
  }
}

@media (max-width: 359px) {
  .quick-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .nav-item small {
    font-size: 0.61rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .view {
    animation: none;
  }

  .view.is-back-returning {
    animation: none;
  }
}

/* UI polish: shared layout, compact hero, form, and responsive navigation. */
:root {
  --content-width: 920px;
}

body {
  padding-bottom: calc(var(--nav-height) + 64px + env(safe-area-inset-bottom));
}

.app-header {
  display: block;
  min-height: 64px;
  padding: 0;
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--content-width));
  min-height: 64px;
  margin: 0 auto;
  padding: 10px max(16px, env(safe-area-inset-left)) 9px max(16px, env(safe-area-inset-right));
}

.brand,
.eyebrow,
.quick-card,
.help-grid button,
.card-action {
  font-weight: 750;
}

.app-main {
  width: min(100%, var(--content-width));
}

.view {
  padding: 20px 16px 48px;
}

.hero {
  padding: 22px 20px 20px;
}

.hero-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 15px;
}

h1 {
  font-size: clamp(2rem, 8vw, 3rem);
}

h2,
.info-card h3 {
  font-weight: 750;
}

.hero-subtitle {
  margin-bottom: 16px;
  font-weight: 600;
}

.notice {
  padding: 13px 15px;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.hero-button {
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 750;
  cursor: pointer;
}

.hero-button--primary {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.hero-button--secondary {
  border: 1px solid var(--border-mint);
  background: rgba(25, 199, 185, 0.12);
  color: var(--accent-mint);
}

.quick-card {
  min-height: 116px;
}

.section-intro,
.card-copy,
.privacy-note {
  font-weight: 500;
}

.price-main,
.primary-button {
  font-weight: 800;
}

.request-panel {
  width: min(100%, 720px);
  margin-right: auto;
  margin-left: auto;
  padding: 22px 18px 24px;
}

.field {
  margin-bottom: 17px;
}

.field label {
  font-weight: 700;
}

.field input,
.field textarea {
  min-height: 54px;
  padding: 13px 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.field textarea {
  min-height: 124px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.bottom-nav {
  min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  border-top-color: var(--border-soft);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
}

.nav-item {
  min-height: 54px;
}

.nav-item span {
  font-weight: 800;
}

.nav-item small {
  font-weight: 700;
}

@media (min-width: 640px) {
  .view {
    padding: 26px 24px 56px;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-button {
    min-width: 210px;
  }

  .quick-grid,
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 769px) {
  :root {
    --nav-height: 64px;
  }

  body {
    padding-bottom: 0;
  }

  .app-header__inner,
  .view {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero {
    padding: 26px;
  }

  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.tg-mini-app) .bottom-nav {
    display: none;
  }

  body:not(.tg-mini-app) .app-main,
  body:not(.tg-mini-app) .view {
    padding-bottom: 32px;
  }
}

@media (min-width: 960px) {
  .card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-directory {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-group__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .help-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-height: 600px) and (max-width: 768px) {
  body {
    padding-bottom: calc(var(--nav-height) + 84px + env(safe-area-inset-bottom));
  }
}

/* Final mobile pass: keep the hero compact and all content clear of fixed navigation. */
.app-main {
  padding-bottom: 64px;
}

.request-panel {
  scroll-margin-top: 80px;
}

@media (max-width: 600px) {
  .view {
    padding-top: 14px;
  }

  .hero {
    padding: 16px;
  }

  .hero-mark {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 13px;
    font-size: 0.9rem;
  }

  .hero > .eyebrow {
    margin-bottom: 0;
    font-size: 0.7rem;
  }

  .hero h1 {
    margin-bottom: 5px;
    font-size: clamp(1.85rem, 8vw, 2.2rem);
  }

  .hero-subtitle {
    margin-bottom: 10px;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .hero .notice {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .hero .notice strong {
    margin-bottom: 1px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 10px;
  }

  .hero-button {
    min-height: 48px;
    padding: 10px 14px;
  }

  .quick-grid {
    margin-top: 14px;
  }
}

/* Search, filters, and card details flow. */
.catalog-tools {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.catalog-search {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.catalog-search__input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 11px 88px 11px 14px;
  border: 1.5px solid #aeb9b5;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}

.catalog-search__input:focus {
  border-color: var(--teal);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.catalog-search__clear {
  position: absolute;
  top: 50%;
  right: 7px;
  min-height: 36px;
  transform: translateY(-50%);
  padding: 6px 9px;
  border: 0;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.catalog-search__clear[hidden] {
  display: none;
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 7px;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  background: var(--paper);
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.catalog-reset {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.empty-results {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px 17px;
  border: 1px dashed rgba(15, 118, 110, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-muted);
  font-weight: 650;
}

.empty-results--actionable {
  display: grid;
  align-items: start;
  gap: 9px;
}

.empty-results--actionable strong {
  color: var(--text-main);
  font-size: 1.02rem;
}

.empty-results--actionable span {
  font-weight: 650;
}

.empty-results__suggestions,
.empty-results__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.empty-results__chip,
.empty-results__button {
  min-height: 36px;
  border: 1px solid rgba(142, 255, 235, 0.24);
  border-radius: 999px;
  background: rgba(7, 11, 13, 0.24);
  color: var(--accent-mint);
  padding: 7px 11px;
  font-weight: 780;
  cursor: pointer;
}

.empty-results__button--primary {
  background: var(--accent);
  color: #052f2c;
}

.empty-results__chip:hover,
.empty-results__chip:focus-visible,
.empty-results__button:hover,
.empty-results__button:focus-visible {
  border-color: rgba(142, 255, 235, 0.5);
  background: rgba(25, 199, 185, 0.16);
}

.empty-results__button--primary:hover,
.empty-results__button--primary:focus-visible {
  background: var(--accent-mint);
  color: #052f2c;
}

body.detail-open,
body.pulse-open {
  overflow: hidden;
}

.detail-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 12px 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(4px);
}

.detail-backdrop[hidden] {
  display: none;
}

.detail-panel {
  display: flex;
  width: min(100%, 680px);
  max-height: min(88dvh, 760px);
  flex-direction: column;
  overflow: hidden;
  padding: 16px 17px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid var(--detail-panel-border);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: var(--detail-panel-bg);
  color: var(--text-body);
  box-shadow: var(--detail-panel-shadow);
}

.detail-panel:focus {
  outline: none;
}

.detail-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.detail-header .eyebrow {
  margin: 0;
}

.detail-close {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(110, 255, 228, 0.24);
  border-radius: 999px;
  background: var(--detail-close-bg);
  color: var(--detail-close-color);
  font-weight: 750;
  cursor: pointer;
}

.detail-close:hover,
.detail-close:focus-visible {
  border-color: rgba(142, 255, 235, 0.34);
  background: rgba(25, 199, 185, 0.16);
  color: rgba(142, 255, 235, 0.96);
  outline: 3px solid rgba(110, 255, 228, 0.22);
  outline-offset: 3px;
}

.detail-content {
  min-height: 0;
  overflow-y: auto;
  padding: 2px 3px 4px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(142, 255, 235, 0.34) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.detail-content::-webkit-scrollbar {
  width: 9px;
}

.detail-content::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.detail-content::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(142, 255, 235, 0.34);
  background-clip: padding-box;
}

.detail-content h2 {
  margin: 0 0 15px;
  padding-right: 8px;
  color: var(--text-main);
  font-size: clamp(1.45rem, 6vw, 2rem);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.detail-gallery__item {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.detail-gallery__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.detail-row {
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
}

.detail-label {
  display: block;
  margin-bottom: 3px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-value {
  margin: 0;
  color: var(--text-body);
  font-weight: 550;
}

.detail-extended {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.detail-block {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.detail-block--danger {
  border-left: 4px solid var(--red);
  background: rgba(251, 113, 133, 0.12);
}

.detail-block--danger .detail-block__title {
  color: var(--red);
}

.detail-block--warning {
  border-left: 4px solid var(--amber);
  background: rgba(245, 158, 11, 0.12);
}

.detail-block--warning .detail-block__title {
  color: rgba(255, 224, 178, 0.94);
}

.detail-block__title {
  margin: 0 0 7px;
  color: var(--teal-dark);
  font-size: 0.92rem;
  line-height: 1.3;
}

.detail-block__text,
.detail-list {
  margin: 0;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.detail-list {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

.detail-list li::marker {
  color: var(--teal);
}

.detail-cta {
  flex: 0 0 auto;
  margin-top: 12px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(25, 199, 185, 0.95), rgba(12, 143, 132, 0.92));
  color: #052f2c;
  box-shadow: 0 10px 24px rgba(25, 199, 185, 0.18);
}

.detail-consent {
  flex: 0 0 auto;
  margin: 10px 2px 0;
}

.detail-consent[hidden] {
  display: none;
}

.detail-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.3;
}

.detail-consent input {
  appearance: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1.5px solid rgba(110, 255, 228, 0.5);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  accent-color: var(--teal);
}

.detail-consent input:checked {
  background:
    linear-gradient(135deg, transparent 43%, #ffffff 43% 57%, transparent 57%) 4px 7px / 5px 5px no-repeat,
    linear-gradient(45deg, transparent 43%, #ffffff 43% 57%, transparent 57%) 7px 6px / 7px 7px no-repeat,
    var(--teal);
  border-color: var(--teal);
}

.detail-consent input[aria-invalid="true"] {
  border-color: var(--red);
}

.detail-consent__error {
  min-height: 0;
  margin: 4px 0 0 25px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 750;
}

.detail-consent__error:empty {
  display: none;
}

@media (min-width: 700px) {
  .detail-backdrop {
    align-items: center;
    padding: 24px;
  }

  .detail-panel {
    max-height: min(82vh, 720px);
    padding: 20px 22px 22px;
    border: 1px solid rgba(110, 255, 228, 0.18);
    border-radius: 24px;
  }
}

@media (max-width: 600px) {
  .home-section .section-heading {
    margin-bottom: 11px;
  }

  .primary-card {
    min-height: 68px;
    padding: 11px;
  }

  .quick-card {
    min-height: 92px;
    padding: 14px;
  }

  .install-card {
    padding: 16px;
  }
}

@media (max-width: 370px) {
  .primary-card {
    gap: 8px;
    font-size: 0.92rem;
  }

  .primary-card__icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .quick-card {
    min-height: 88px;
    padding: 12px;
    font-size: 0.92rem;
  }

  .install-card {
    display: block;
  }

  .install-card__icon {
    margin-bottom: 12px;
  }
}

/* Stable catalog previews. Do not apply this to Help/contacts. */
@media (min-width: 640px) {
  #prices-view .card-list,
  #safety-view .card-list,
  #routes-view .card-list {
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  #prices-view .info-card,
  #safety-view .info-card,
  #routes-view .info-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  #prices-view .info-card .card-body,
  #safety-view .info-card .card-body,
  #routes-view .info-card .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  #prices-view .info-card h3,
  #safety-view .info-card h3,
  #routes-view .info-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #prices-view .card-copy,
  #safety-view .card-copy,
  #routes-view .card-copy {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #prices-view .card-alert,
  #prices-view .card-tip,
  #safety-view .card-alert,
  #safety-view .card-tip,
  #routes-view .card-alert,
  #routes-view .card-tip {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #routes-view .route-meta {
    max-height: none;
    overflow: visible;
  }

  #prices-view .card-cta,
  #prices-view .card-action,
  #prices-view .open-section-action,
  #safety-view .card-cta,
  #safety-view .card-action,
  #safety-view .open-section-action,
  #routes-view .card-cta,
  #routes-view .card-action,
  #routes-view .open-section-action {
    flex: 0 0 auto;
  }

  #help-view #contacts-list,
  #help-view .contact-group__grid {
    align-items: start;
    grid-auto-rows: auto;
  }

  #help-view .info-card {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  #help-view .info-card .card-body {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (min-width: 960px) {
  #help-view .contact-group__grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

/* HOME DESIGN REFRESH */
#home-view {
  padding-top: 18px;
}

.home-hero {
  isolation: isolate;
  min-height: 0;
  padding: clamp(20px, 5vw, 34px) clamp(18px, 5vw, 38px) clamp(18px, 4.6vw, 32px);
  border-color: var(--border-soft);
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 6%, rgba(25, 199, 185, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(20, 78, 72, 0.64), rgba(8, 15, 17, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.home-hero::after {
  display: none;
}

.home-hero__content {
  position: relative;
  z-index: 2;
}

.home-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(18px, 5vw, 30px);
}

.home-hero__logo {
  width: clamp(54px, 13vw, 70px);
  height: clamp(54px, 13vw, 70px);
  margin: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 20%, rgba(45, 212, 191, 0.28), transparent 42%),
    linear-gradient(145deg, #0f766e 0%, #07534e 100%);
  font-size: clamp(1rem, 4.6vw, 1.55rem);
  letter-spacing: -0.02em;
  box-shadow: 0 18px 32px rgba(15, 118, 110, 0.24);
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 clamp(16px, 4vw, 26px);
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(25, 199, 185, 0.12);
  color: var(--accent-mint);
  font-size: clamp(0.78rem, 2.6vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero__eyebrow span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(145deg, #2dd4bf, #0f766e);
  color: white;
  font-size: 0.72rem;
  line-height: 1;
}

.home-hero__title {
  max-width: 680px;
  margin-bottom: clamp(12px, 3vw, 20px);
  color: var(--text-main);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.75rem, 11vw, 5.4rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
}

.home-hero__lead {
  max-width: 630px;
  margin-bottom: clamp(18px, 4vw, 28px);
  color: var(--text-body);
  font-size: clamp(1.02rem, 3.8vw, 1.48rem);
  font-weight: 500;
  line-height: 1.45;
}

.home-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(18px, 4vw, 30px);
}

.home-hero__chip {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-body);
  font-size: clamp(0.88rem, 3.4vw, 1rem);
  font-weight: 760;
  box-shadow: none;
}

.home-honest-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  max-width: 660px;
  padding: clamp(18px, 5vw, 28px);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 14% 24%, rgba(153, 246, 228, 0.32), transparent 34%),
    rgba(239, 253, 250, 0.88);
  color: #173d47;
  box-shadow: 0 20px 44px rgba(20, 83, 75, 0.08);
}

.home-honest-note__icon {
  display: grid;
  place-items: center;
  width: clamp(48px, 12vw, 68px);
  height: clamp(48px, 12vw, 68px);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 64%),
    rgba(204, 251, 241, 0.9);
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
}

.home-honest-note__icon::before {
  content: "";
  position: absolute;
}

.home-honest-note__icon {
  text-shadow: none;
  background-color: #0f766e;
}

.home-honest-note strong {
  color: var(--accent-mint);
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  letter-spacing: -0.02em;
}

.home-honest-note p {
  margin-top: 8px;
  color: var(--text-body);
  font-size: clamp(0.98rem, 3.5vw, 1.14rem);
  line-height: 1.65;
}

.home-hero__art {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: min(46%, 270px);
  height: 52%;
  opacity: 0.86;
}

.home-hero__blob {
  position: absolute;
  top: -42px;
  right: -52px;
  width: 250px;
  height: 250px;
  border-radius: 42% 0 58% 48%;
  background: linear-gradient(145deg, rgba(207, 250, 254, 0.62), rgba(204, 251, 241, 0.5));
}

.home-hero__route {
  position: absolute;
  top: 94px;
  right: 20px;
  width: 160px;
  height: 190px;
  border: 4px dashed rgba(15, 118, 110, 0.34);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 55% 38% 60% 44%;
  transform: rotate(28deg);
}

.home-hero__dot,
.home-hero__compass,
.home-hero__palm {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.home-hero__dot {
  width: 18px;
  height: 18px;
  background: #0f9f94;
  box-shadow: 0 0 0 8px rgba(15, 159, 148, 0.09);
}

.home-hero__dot--one {
  top: 132px;
  right: 148px;
}

.home-hero__dot--two {
  top: 214px;
  right: 58px;
}

.home-hero__compass {
  top: 64px;
  right: 44px;
  width: 48px;
  height: 48px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 1.5rem;
  font-weight: 900;
  transform: rotate(-35deg);
}

.home-hero__palm {
  top: 70px;
  right: 150px;
  color: rgba(15, 118, 110, 0.34);
  font-size: 2.1rem;
  transform: rotate(8deg);
}

.home-section--primary {
  margin-top: 34px;
  padding: clamp(20px, 5vw, 28px);
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.home-section--primary .section-heading {
  margin-bottom: 18px;
}

.home-section--primary h2 {
  color: var(--text-main);
  font-size: clamp(1.35rem, 5vw, 1.9rem);
}

.home-section--primary .primary-grid {
  gap: 12px;
}

.home-section--primary .primary-card {
  min-height: 112px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-color: var(--border-soft);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
  box-shadow: none;
}

.home-section--primary .primary-card__icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 15px;
  background: rgba(25, 199, 185, 0.14);
  color: var(--accent-mint);
  font-size: 1.25rem;
}

.home-section--primary .primary-card span:last-child {
  display: grid;
  gap: 3px;
}

.home-section--primary .primary-card strong {
  color: var(--text-main);
  font-size: 1.02rem;
  line-height: 1.15;
}

.home-section--primary .primary-card small {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
}

.home-footer {
  display: grid;
  gap: 8px;
  margin-top: 30px;
  margin-bottom: calc(var(--bottom-nav-clearance) - 20px);
  padding: clamp(20px, 5vw, 28px);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-body);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.home-footer h2 {
  color: var(--text-main);
  font-size: 1.35rem;
}

.home-footer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .home-hero {
    padding: 44px 46px 48px;
  }

  .home-hero__chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-hero__chip {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .home-hero {
    border-radius: 28px;
  }

  .home-hero__art {
    width: 42%;
    height: 34%;
    opacity: 0.5;
  }

  .home-hero__blob {
    width: 178px;
    height: 178px;
  }

  .home-hero__route {
    top: 62px;
    right: -6px;
    width: 108px;
    height: 132px;
    border-width: 3px;
  }

  .home-hero__dot--one {
    top: 96px;
    right: 86px;
  }

  .home-hero__dot--two {
    top: 154px;
    right: 20px;
  }

  .home-hero__compass {
    top: 42px;
    right: 22px;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .home-hero__palm {
    display: none;
  }

  .home-honest-note {
    grid-template-columns: 1fr;
  }

  .home-honest-note__icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 390px) {
  .home-hero {
    padding: 24px 18px 22px;
  }

  .home-hero__top {
    margin-bottom: 22px;
  }

  .home-hero__eyebrow {
    margin-bottom: 20px;
    padding: 9px 13px;
  }

  .home-hero__chips {
    gap: 8px;
  }

  .home-hero__chip {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 0.84rem;
  }

  .home-section--primary {
    padding: 17px;
  }

  .home-section--primary .primary-card {
    min-height: 104px;
    padding: 14px;
  }
}

/* HOME DESIGN POLISH */
.app-header {
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(255, 252, 247, 0.9);
}

.app-header__inner {
  width: min(100%, 760px);
  margin: 0 auto;
}

.brand-link .eyebrow {
  display: none;
}

.brand {
  color: var(--text-main);
  font-size: 0.96rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

#home-view {
  padding-top: 14px;
}

.home-hero {
  padding-top: clamp(24px, 5.8vw, 38px);
  padding-bottom: clamp(22px, 5.4vw, 38px);
}

.home-hero__top {
  margin-bottom: clamp(22px, 5vw, 36px);
}

.home-hero__eyebrow {
  margin-bottom: clamp(20px, 4.8vw, 34px);
}

.home-hero__lead {
  margin-bottom: clamp(20px, 4.8vw, 30px);
}

.home-hero__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: clamp(22px, 5vw, 34px);
}

.home-hero__chip {
  justify-content: flex-start;
  min-height: 48px;
  padding: 10px 12px;
  border-color: var(--border-mint);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-body);
  font-size: clamp(0.84rem, 3.1vw, 0.98rem);
  line-height: 1.2;
}

.home-hero__chip > span {
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(25, 199, 185, 0.14);
  color: var(--accent-mint);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.home-hero__route,
.home-hero__dot,
.home-hero__compass,
.home-hero__palm {
  display: none !important;
}

.home-hero__art {
  width: min(44%, 260px);
  height: 44%;
  opacity: 0.78;
}

.home-hero__blob {
  top: -58px;
  right: -62px;
  width: 260px;
  height: 260px;
  border-radius: 48% 0 58% 52%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.62), transparent 38%),
    linear-gradient(145deg, rgba(204, 251, 241, 0.7), rgba(186, 230, 253, 0.28));
  filter: blur(0.2px);
}

.home-hero__ring {
  position: absolute;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
}

.home-hero__ring--one {
  top: 42px;
  right: 36px;
  width: 112px;
  height: 112px;
}

.home-hero__ring--two {
  top: 96px;
  right: 116px;
  width: 54px;
  height: 54px;
  border-color: rgba(15, 118, 110, 0.1);
}

.home-hero__orb {
  position: absolute;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.22);
}

.home-hero__orb--one {
  top: 76px;
  right: 76px;
  width: 13px;
  height: 13px;
}

.home-hero__orb--two {
  top: 154px;
  right: 168px;
  width: 9px;
  height: 9px;
  background: rgba(45, 212, 191, 0.36);
}

.home-honest-note {
  gap: 14px;
  padding: clamp(16px, 4.5vw, 24px);
  background: rgba(239, 253, 250, 0.86);
  box-shadow: 0 12px 30px rgba(20, 83, 75, 0.06);
}

.home-honest-note__icon {
  width: clamp(44px, 11vw, 58px);
  height: clamp(44px, 11vw, 58px);
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: #d9f3ee;
  color: #0f766e;
  font-size: 1.12rem;
  text-shadow: none;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.08);
}

.home-honest-note strong {
  font-size: clamp(1.08rem, 3.6vw, 1.42rem);
}

.home-honest-note p {
  line-height: 1.58;
}

@media (min-width: 768px) {
  .home-hero__chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-hero__chip {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .home-hero__art {
    width: 40%;
    height: 28%;
    opacity: 0.48;
  }

  .home-hero__blob {
    width: 176px;
    height: 176px;
  }

  .home-hero__ring--one {
    top: 34px;
    right: 20px;
    width: 76px;
    height: 76px;
  }

  .home-hero__ring--two {
    top: 82px;
    right: 86px;
    width: 38px;
    height: 38px;
  }

  .home-hero__orb--one {
    top: 58px;
    right: 50px;
  }

  .home-hero__orb--two {
    top: 118px;
    right: 116px;
  }
}

@media (max-width: 390px) {
  .home-hero {
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .home-hero__chips {
    gap: 8px;
  }

  .home-hero__chip {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 0.81rem;
  }

  .home-hero__chip > span {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }
}

/* HERO MAP FINAL FIX */
.status-dot {
  opacity: 0.75;
  transform: scale(0.82);
}

.home-hero {
  padding-top: clamp(22px, 5.2vw, 34px);
  padding-bottom: clamp(22px, 5vw, 34px);
}

.home-hero__top {
  margin-bottom: clamp(18px, 4.4vw, 30px);
}

.home-hero__eyebrow {
  margin-bottom: clamp(18px, 4.3vw, 30px);
}

.home-hero__title {
  margin-bottom: clamp(12px, 3.3vw, 20px);
}

.home-hero__lead {
  margin-bottom: clamp(18px, 4.2vw, 28px);
}

.home-hero__chips {
  gap: 11px;
  margin-bottom: clamp(20px, 4.6vw, 30px);
}

.home-hero__chip {
  min-height: 50px;
  padding: 10px 13px;
  border-color: var(--border-mint);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.home-hero__art {
  top: 0;
  right: 0;
  width: min(46%, 300px);
  height: 50%;
  opacity: 1;
}

.home-hero__blob {
  top: -64px;
  right: -76px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.55), transparent 34%),
    radial-gradient(circle at 54% 54%, rgba(153, 246, 228, 0.42), rgba(204, 251, 241, 0.2) 58%, transparent 72%);
  filter: none;
}

.home-hero__ring,
.home-hero__orb {
  display: none !important;
}

.home-hero__map {
  position: absolute;
  top: 24px;
  right: -2px;
  width: min(230px, 100%);
  height: auto;
  overflow: visible;
}

.home-hero__path {
  fill: none;
  stroke: rgba(15, 118, 110, 0.42);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 14;
}

.home-hero__map-dot {
  fill: #0f9f94;
  opacity: 0.84;
}

.home-hero__map-dot--soft {
  fill: rgba(15, 118, 110, 0.2);
}

.home-hero__compass-mark circle {
  fill: rgba(15, 118, 110, 0.12);
}

.home-hero__compass-mark path {
  fill: rgba(15, 118, 110, 0.6);
}

@media (min-width: 768px) {
  .home-hero__map {
    right: 8px;
    width: 260px;
  }
}

@media (max-width: 600px) {
  .home-hero__art {
    width: 42%;
    height: 34%;
    opacity: 0.58;
  }

  .home-hero__blob {
    top: -48px;
    right: -62px;
    width: 190px;
    height: 190px;
  }

  .home-hero__map {
    top: 22px;
    right: -26px;
    width: 158px;
  }

  .home-hero__path {
    stroke-width: 4;
    stroke-dasharray: 9 13;
  }
}

@media (max-width: 390px) {
  .home-hero {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .home-hero__chip {
    min-height: 46px;
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .home-hero__art {
    width: 38%;
    opacity: 0.46;
  }

  .home-hero__map {
    right: -38px;
    width: 144px;
  }
}

/* FINAL HOME UI FIX */
.app-header {
  min-height: 52px;
  padding: 8px max(16px, env(safe-area-inset-left)) 8px max(16px, env(safe-area-inset-right));
  border-bottom-color: rgba(15, 118, 110, 0.08);
  background: rgba(255, 252, 247, 0.94);
}

.app-header__inner {
  width: min(100%, 760px);
  margin: 0 auto;
}

.brand-link {
  min-height: 32px;
  align-content: center;
}

.brand {
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.15;
}

.status-dot {
  display: none;
}

#home-view {
  padding-top: 12px;
}

.home-hero {
  padding-top: clamp(20px, 4.8vw, 32px);
  padding-bottom: clamp(20px, 4.6vw, 32px);
}

.home-hero__top {
  margin-bottom: clamp(16px, 3.8vw, 26px);
}

.home-hero__eyebrow {
  margin-bottom: clamp(16px, 3.8vw, 26px);
}

.home-hero__lead {
  margin-bottom: clamp(16px, 3.8vw, 24px);
}

.home-hero__chips {
  margin-bottom: clamp(18px, 4vw, 26px);
}

.home-hero__chip {
  min-height: 50px;
  padding: 11px 13px;
}

.home-hero__art {
  width: min(44%, 280px);
  height: 46%;
  opacity: 0.72;
}

.home-hero__blob {
  top: -70px;
  right: -84px;
  width: 310px;
  height: 310px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 45% 38%, rgba(255, 255, 255, 0.58), transparent 33%),
    radial-gradient(circle at 54% 52%, rgba(153, 246, 228, 0.36), rgba(204, 251, 241, 0.16) 58%, transparent 74%);
}

.home-hero__ring,
.home-hero__orb {
  display: none !important;
}

.home-hero__map {
  top: 26px;
  right: -10px;
  width: min(230px, 100%);
}

.home-hero__path {
  stroke: rgba(15, 118, 110, 0.34);
  stroke-width: 4;
  stroke-dasharray: 9 14;
}

.home-hero__map-dot {
  fill: #0f8f84;
  opacity: 0.72;
}

.home-hero__map-dot--soft {
  fill: rgba(15, 118, 110, 0.18);
}

.home-hero__compass-mark circle {
  fill: rgba(15, 118, 110, 0.1);
}

.home-hero__compass-mark path {
  fill: rgba(15, 118, 110, 0.52);
}

.home-footer {
  max-width: 520px;
  margin: 16px auto 88px;
  padding: 12px 14px;
  border: 1px solid rgba(110, 255, 228, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 0%, rgba(25, 199, 185, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.04));
  box-shadow: none;
  color: rgba(235, 239, 244, 0.78);
}

.home-footer h2 {
  display: none;
}

.home-footer p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
}

.home-footer p + p {
  margin-top: 5px;
}

.home-footer strong {
  color: rgba(142, 255, 235, 0.94);
  font-weight: 800;
}

@media (max-width: 600px) {
  .home-hero__art {
    width: 40%;
    height: 30%;
    opacity: 0.5;
  }

  .home-hero__blob {
    top: -48px;
    right: -66px;
    width: 190px;
    height: 190px;
  }

  .home-hero__map {
    top: 20px;
    right: -34px;
    width: 150px;
  }

  .home-hero__path {
    stroke-width: 3.5;
  }
}

@media (max-width: 390px) {
  .home-hero__chip {
    min-height: 48px;
    padding: 10px;
  }

  .home-footer {
    margin-bottom: 84px;
  }
}

/* HERO CHIPS ACTIONS */
button.home-hero__chip {
  width: 100%;
  appearance: none;
  border-style: solid;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

button.home-hero__chip:hover {
  border-color: rgba(110, 255, 228, 0.34);
  background: rgba(25, 199, 185, 0.12);
  box-shadow: none;
}

button.home-hero__chip:active {
  transform: translateY(1px);
}

button.home-hero__chip:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 3px;
}

button.home-hero__chip > span:first-child {
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(25, 199, 185, 0.14);
  color: var(--accent-mint);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

button.home-hero__chip > span:last-child {
  display: inline;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
}

/* FINAL MANUAL HOME FIX */
.app-header {
  min-height: 56px !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(142, 255, 235, 0.12) !important;
  background: rgba(7, 15, 16, 0.92) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.app-header__inner {
  width: min(100%, var(--content-width, 920px)) !important;
  min-height: 56px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.brand-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 12px !important;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(142, 255, 235, 0.18);
  background: rgba(25, 199, 185, 0.18);
  color: var(--accent-mint);
  font-size: 0.72rem;
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: none;
}

.brand {
  margin: 0 !important;
  color: var(--text-main) !important;
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: -0.015em !important;
}

.status-dot,
.app-header .status-dot,
.app-header__inner::after {
  display: none !important;
  content: none !important;
}

.header-live {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid rgba(142, 255, 235, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--accent-mint);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.header-live__time,
.header-live__weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.header-live__weather {
  gap: 0;
}

.header-live__weather[hidden] {
  display: none !important;
}

.header-live:hover {
  border-color: rgba(142, 255, 235, 0.3);
  background: rgba(25, 199, 185, 0.14);
}

.header-live:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 3px;
}

.pulse-backdrop {
  position: fixed;
  z-index: 95;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 12px 0;
  background: rgba(2, 8, 10, 0.62);
  backdrop-filter: blur(4px);
}

.pulse-backdrop[hidden] {
  display: none !important;
}

.pulse-panel {
  width: min(100%, 520px);
  max-height: min(86dvh, 640px);
  overflow: hidden;
  padding: 16px 17px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid rgba(110, 255, 228, 0.18);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(25, 199, 185, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.42);
}

.pulse-panel:focus {
  outline: none;
}

.pulse-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.pulse-panel__eyebrow,
.pulse-panel__subtitle,
.pulse-card__label,
.pulse-card__value,
.pulse-card__text,
.pulse-card__note,
.pulse-currency p {
  margin: 0;
}

.pulse-panel__eyebrow {
  color: rgba(142, 255, 235, 0.94);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-panel__title {
  margin: 2px 0 5px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.42rem;
  line-height: 1.1;
}

.pulse-panel__subtitle {
  color: rgba(220, 228, 236, 0.76);
  font-size: 0.94rem;
  line-height: 1.38;
}

.pulse-panel__close {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(110, 255, 228, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(235, 239, 244, 0.9);
  font-weight: 750;
  cursor: pointer;
}

.pulse-panel__close:focus-visible,
.pulse-party-link:focus-visible {
  outline: 3px solid rgba(110, 255, 228, 0.24);
  outline-offset: 3px;
}

.pulse-panel__close:hover {
  border-color: rgba(142, 255, 235, 0.34);
  background: rgba(25, 199, 185, 0.16);
  color: rgba(142, 255, 235, 0.96);
}

.pulse-panel__body {
  display: grid;
  gap: 10px;
  min-height: 0;
  max-height: calc(min(86dvh, 640px) - 118px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pulse-card {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.pulse-card__label {
  color: rgba(142, 255, 235, 0.92);
  font-size: 0.9rem;
  font-weight: 850;
}

.pulse-card__value,
.pulse-currency {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

.pulse-currency {
  display: grid;
  gap: 2px;
}

.pulse-card__text,
.pulse-card__note {
  color: rgba(220, 228, 236, 0.76);
  font-size: 0.93rem;
  line-height: 1.42;
}

.pulse-party-link {
  justify-self: start;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(110, 255, 228, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(25, 199, 185, 0.95), rgba(12, 143, 132, 0.92));
  color: #052f2c;
  font-size: 15px;
  font-weight: 750;
  line-height: 42px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(25, 199, 185, 0.18);
}

.pulse-party-link:hover {
  border-color: rgba(142, 255, 235, 0.42);
  background: linear-gradient(180deg, rgba(33, 221, 203, 0.96), rgba(13, 166, 153, 0.94));
}

.home-hero {
  padding-top: clamp(20px, 4.4vw, 30px) !important;
  padding-bottom: clamp(20px, 4.2vw, 30px) !important;
}

.home-hero__top {
  margin-bottom: clamp(14px, 3.4vw, 24px) !important;
}

.home-hero__eyebrow {
  margin-bottom: clamp(14px, 3.4vw, 24px) !important;
}

.home-hero__title {
  margin-bottom: clamp(10px, 2.8vw, 18px) !important;
}

.home-hero__lead {
  margin-bottom: clamp(14px, 3.4vw, 22px) !important;
}

.home-hero__chips {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: clamp(16px, 3.6vw, 24px) !important;
}

.home-hero__chip {
  min-height: 48px !important;
  padding: 10px 12px !important;
  border-color: var(--border-mint) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: var(--text-body) !important;
  font-size: clamp(0.86rem, 2.7vw, 0.98rem) !important;
  line-height: 1.18 !important;
}

.home-hero__chip > span {
  color: var(--accent-mint) !important;
  background: rgba(25, 199, 185, 0.14) !important;
}

/* Right hero map: only blob + dashed path + 3 dots. No rings, compass, orbits, target shapes. */
.home-hero__art {
  pointer-events: none !important;
  position: absolute !important;
  z-index: 1 !important;
  top: 0 !important;
  right: 0 !important;
  width: min(46%, 300px) !important;
  height: 48% !important;
  opacity: 0.9 !important;
  overflow: hidden !important;
}

.home-hero__blob {
  position: absolute !important;
  top: -72px !important;
  right: -86px !important;
  width: 310px !important;
  height: 310px !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.58), transparent 33%),
    radial-gradient(circle at 54% 52%, rgba(153, 246, 228, 0.38), rgba(204, 251, 241, 0.18) 58%, transparent 74%) !important;
  filter: none !important;
}

.home-hero__route,
.home-hero__dot,
.home-hero__compass,
.home-hero__palm,
.home-hero__ring,
.home-hero__orb,
.home-hero__compass-mark {
  display: none !important;
}

.home-hero__map {
  position: absolute !important;
  top: 14px !important;
  right: -2px !important;
  width: min(245px, 100%) !important;
  height: auto !important;
  overflow: visible !important;
}

.home-hero__path {
  fill: none !important;
  stroke: rgba(15, 118, 110, 0.46) !important;
  stroke-width: 4.5 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-dasharray: 10 13 !important;
}

.home-hero__map-dot {
  fill: #0f8f84 !important;
  opacity: 0.82 !important;
}

.home-hero__map-dot--one {
  fill: rgba(15, 118, 110, 0.26) !important;
}

.home-honest-note {
  padding: clamp(14px, 3.5vw, 20px) !important;
}

.home-footer {
  width: min(100%, 420px) !important;
  max-width: 420px !important;
  margin: 12px auto 82px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(110, 255, 228, 0.18) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(25, 199, 185, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.04)) !important;
  box-shadow: none !important;
  color: rgba(235, 239, 244, 0.78) !important;
}

.home-footer p {
  margin: 0 !important;
  font-size: 0.66rem !important;
  line-height: 1.36 !important;
}

.home-footer p + p {
  margin-top: 3px !important;
}

.home-footer strong {
  color: rgba(142, 255, 235, 0.94) !important;
  font-weight: 850 !important;
}

@media (min-width: 768px) {
  .pulse-backdrop {
    align-items: center;
    padding: 24px;
  }

  .pulse-panel {
    border: 1px solid rgba(110, 255, 228, 0.18);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  }

  .home-hero__chips {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .home-hero__map {
    right: 10px !important;
    width: 260px !important;
  }
}

@media (max-width: 600px) {
  .app-header__inner {
    padding: 0 16px !important;
  }

  .brand {
    font-size: 1rem !important;
  }

  .header-live {
    gap: 4px;
    padding: 5px 7px;
    font-size: 0.72rem;
  }

  .header-live__time {
    gap: 4px;
  }

  .home-hero__art {
    width: 42% !important;
    height: 30% !important;
    opacity: 0.6 !important;
  }

  .home-hero__blob {
    top: -50px !important;
    right: -68px !important;
    width: 190px !important;
    height: 190px !important;
  }

  .home-hero__map {
    top: 14px !important;
    right: -34px !important;
    width: 152px !important;
  }

  .home-hero__path {
    stroke-width: 3.6 !important;
    stroke-dasharray: 8 12 !important;
  }

  .home-footer {
    width: min(100%, 360px) !important;
    margin-bottom: 82px !important;
  }
}

@media (max-width: 390px) {
  .home-hero__art {
    opacity: 0.5 !important;
  }

  .home-hero__map {
    right: -42px !important;
    width: 140px !important;
  }

  .home-footer {
    font-size: 0.64rem !important;
  }
}

/* HERO CHIP TEXT FIX */
.home-hero__chips {
  align-items: stretch;
}

.home-hero__chip,
button.home-hero__chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.home-hero__chip-icon,
.home-hero__chip > span:first-child {
  display: inline-grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

.home-hero__chip-label,
.home-hero__chip > span:last-child {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  color: inherit;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: normal;
}

/* HERO CHIP LABEL BACKGROUND FIX */
.home-hero__chip-label,
.home-hero__chip > span:last-child {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: normal;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* HERO CHIP SPAN BACKGROUND FIX */
button.home-hero__chip .home-hero__chip-label,
button.home-hero__chip > span:last-child,
.home-hero__chip .home-hero__chip-label,
.home-hero__chip > span:last-child {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* CARD DEEPLINK HIGHLIGHT */
.info-card--deeplink-highlight {
  outline: 2px solid rgba(18, 184, 134, 0.45);
  box-shadow:
    0 0 0 6px rgba(18, 184, 134, 0.12),
    0 18px 34px rgba(15, 118, 110, 0.16);
}

/* CARD SHARE BUTTON */
.card-share-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.card-share-button {
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: rgba(25, 199, 185, 0.12);
  color: var(--accent-mint);
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}

.card-share-button:hover {
  border-color: rgba(110, 255, 228, 0.35);
  background: rgba(25, 199, 185, 0.18);
}

.card-share-button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

/* CARD PREVIEW UI FIX */
.card-topline {
  min-width: 0;
}

.card-category,
.risk-badge,
.contact-status,
.global-source-badge {
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.card-topline .card-category,
.card-topline .risk-badge,
.card-topline .contact-status {
  flex: 0 1 auto;
  max-width: min(100%, 13.5rem);
}

.card-area {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-cta--map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: calc(100% - 36px);
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  place-items: initial;
  align-self: flex-start;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.15;
}

#routes-view .card-copy,
[data-global-results] .card-copy {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* PREVIEW CARD LAYOUT FIX */
.card-list,
.contact-group__grid {
  align-items: start;
  grid-auto-rows: auto;
}

.info-card {
  height: auto;
  min-height: 0;
  max-height: none;
}

.info-card .card-body {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

.card-action,
.card-cta,
.open-section-action {
  margin-top: 0;
}

.route-meta {
  max-height: none;
  overflow: visible;
  line-height: 1.42;
}

.route-meta > div {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.route-meta > div:first-child {
  -webkit-line-clamp: 3;
}

.route-meta > div:not(:first-child) {
  -webkit-line-clamp: 2;
}

@media (min-width: 640px) {
  #prices-view .card-list,
  #safety-view .card-list,
  #routes-view .card-list {
    align-items: start;
    grid-auto-rows: auto;
  }

  #prices-view .info-card,
  #safety-view .info-card,
  #routes-view .info-card {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  #prices-view .info-card .card-body,
  #safety-view .info-card .card-body,
  #routes-view .info-card .card-body {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }

  #routes-view .route-meta {
    max-height: none;
    overflow: visible;
  }
}

.home-hero__telegram {
  display: flex;
  margin: 10px 0 0;
}

.home-hero__telegram-link,
.home-footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 38px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: rgba(25, 199, 185, 0.12);
  color: var(--accent-mint);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 14px;
  text-decoration: none;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.home-hero__telegram-link:hover,
.home-hero__telegram-link:focus-visible,
.home-footer__links a:hover,
.home-footer__links a:focus-visible {
  border-color: rgba(142, 255, 235, 0.38);
  background: rgba(25, 199, 185, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.home-footer__links {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

body.tg-mini-app .home-hero__telegram {
  display: none;
}

@media (max-width: 520px) {
  .home-hero__telegram {
    margin-top: 8px;
  }

  .home-hero__telegram-link,
  .home-footer__links a {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 13px;
  }
}

@media (max-width: 340px) {
  .header-live {
    gap: 3px;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 0.64rem;
  }

  .header-live__time {
    gap: 3px;
  }
}

/* CARD EQUAL HEIGHT FIX */
@media (min-width: 640px) {
  #prices-view .card-list,
  #safety-view .card-list,
  #routes-view .card-list {
    align-items: stretch;
    grid-auto-rows: auto;
  }

  #prices-view .info-card,
  #safety-view .info-card,
  #routes-view .info-card {
    display: flex;
    height: 100%;
    min-height: 0;
    max-height: none;
    flex-direction: column;
    overflow: hidden;
  }

  #prices-view .info-card .card-body,
  #safety-view .info-card .card-body,
  #routes-view .info-card .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  #prices-view .info-card h3,
  #safety-view .info-card h3,
  #routes-view .info-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #prices-view .card-copy,
  #safety-view .card-copy,
  #routes-view .card-copy,
  #prices-view .card-alert,
  #prices-view .card-tip,
  #safety-view .card-tip {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #routes-view .route-meta {
    max-height: none;
    overflow: visible;
  }

  #routes-view .route-meta > div:first-child {
    -webkit-line-clamp: 3;
  }

  #routes-view .route-meta > div:not(:first-child) {
    -webkit-line-clamp: 2;
  }

  #prices-view .card-action,
  #prices-view .card-cta,
  #prices-view .open-section-action,
  #safety-view .card-action,
  #safety-view .card-cta,
  #safety-view .open-section-action,
  #routes-view .card-action,
  #routes-view .card-cta,
  #routes-view .open-section-action {
    flex: 0 0 auto;
  }
}

@media (min-width: 960px) {
  #prices-view .card-list,
  #safety-view .card-list,
  #routes-view .card-list {
    grid-auto-rows: auto;
  }
}

@media (max-width: 639px) {
  #prices-view .card-list,
  #safety-view .card-list,
  #routes-view .card-list {
    align-items: start;
    grid-auto-rows: auto;
  }

  #prices-view .info-card,
  #safety-view .info-card,
  #routes-view .info-card {
    display: block;
    height: auto;
  }
}

/* TRUST FEEDBACK STAGE */
.home-hero__trust {
  max-width: 620px;
  margin: -10px 0 18px;
  color: var(--text-body);
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  font-weight: 650;
}

.home-hero__cta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  width: fit-content;
  max-width: 100%;
}

.home-hero__cta-button,
.feedback-actions button {
  flex: 0 0 auto;
  width: auto;
  max-width: max-content;
  min-height: 42px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: var(--accent);
  color: #052f2c;
  padding: 9px 15px;
  font-weight: 720;
  cursor: pointer;
}

.home-hero__cta-button--secondary {
  min-width: 92px;
  background: rgba(25, 199, 185, 0.12);
  color: var(--accent-mint);
}

.home-hero__cta-button--ghost,
.feedback-actions button {
  background: rgba(25, 199, 185, 0.12);
  color: var(--accent-mint);
}

.quick-scenarios {
  scroll-margin-top: 82px;
}

.quick-grid--scenarios {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-grid--scenarios .quick-card {
  min-height: 86px;
}

.home-forum-note,
.home-feedback {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  padding: clamp(16px, 4vw, 22px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.home-forum-note p,
.home-feedback p {
  margin-bottom: 0;
  color: var(--text-body);
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 850;
}

.detail-trust-meta {
  display: grid;
  gap: 5px;
  margin: 8px 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
}

.detail-trust-meta__row {
  margin: 0;
  color: var(--text-body);
  font-size: 0.9rem;
}

.card-share-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.card-feedback-button {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(255, 255, 255, 0.055);
}

@media (min-width: 760px) {
  .quick-grid--scenarios {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-feedback {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
    align-items: center;
  }
}

@media (max-width: 520px) {
  .home-hero__cta {
    display: grid;
  }

  .home-hero__cta-button {
    width: 100%;
  }

  .quick-grid--scenarios {
    gap: 10px;
  }

  .quick-grid--scenarios .quick-card {
    min-height: 82px;
    padding: 12px;
  }

  .feedback-actions {
    display: grid;
  }
}

/* HOME VISUAL CLEANUP */
.home-hero {
  padding: clamp(18px, 4.8vw, 30px) clamp(16px, 4.5vw, 34px);
  border-radius: clamp(20px, 5vw, 28px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.home-hero__top {
  margin-bottom: clamp(10px, 2.8vw, 18px);
}

.home-hero__logo {
  width: clamp(44px, 11vw, 58px);
  height: clamp(44px, 11vw, 58px);
  border-radius: 16px;
  font-size: clamp(1rem, 4vw, 1.25rem);
}

.home-hero__eyebrow {
  margin-bottom: 12px;
  padding: 6px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.055em;
}

.home-hero__eyebrow span {
  width: 20px;
  height: 20px;
}

.home-hero__title {
  max-width: 620px;
  margin-bottom: 12px;
  color: var(--text-main);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(30px, 8vw, 52px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.04;
}

.home-hero__lead {
  max-width: 600px;
  margin-bottom: 10px;
  color: var(--text-body);
  font-size: clamp(0.96rem, 2.5vw, 1.12rem);
  line-height: 1.45;
}

.home-hero__trust {
  max-width: 560px;
  margin: 0 0 14px;
  color: var(--text-body);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.38;
}

.home-hero__cta {
  gap: 8px;
  margin-bottom: 0;
}

.home-hero__cta-button,
.feedback-actions button {
  min-height: 42px;
  padding: 9px 14px;
  box-shadow: none;
}

.home-hero__cta-button--ghost {
  border-color: var(--border-mint);
  background: rgba(25, 199, 185, 0.12);
  color: var(--accent-mint);
  text-decoration: none;
}

.home-hero__art {
  opacity: 0.32;
}

.home-hero__blob {
  opacity: 0.5;
}

.home-hero__path {
  stroke-width: 2.4;
  stroke-dasharray: 6 12;
  opacity: 0.48;
}

.home-hero__map-dot {
  opacity: 0.42;
}

.home-calm-note {
  max-width: 780px;
  margin: 10px auto 16px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-body);
  padding: 9px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.home-section--primary {
  padding-top: clamp(16px, 4vw, 22px);
}

.home-section--primary .section-intro {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.home-section--primary .primary-card {
  min-height: 84px;
  padding: 13px;
}

.home-section--primary .primary-card__icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 1rem;
}

.quick-grid--scenarios {
  margin-top: 14px;
}

.quick-grid--scenarios .quick-card {
  min-height: 70px;
  padding: 10px 12px;
  gap: 9px;
  box-shadow: none;
}

.quick-grid--scenarios .quick-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 0.78rem;
}

.home-forum-note,
.home-feedback {
  gap: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  padding: clamp(14px, 3.5vw, 18px);
  box-shadow: none;
}

.home-forum-note h2,
.home-feedback h2 {
  margin-bottom: 6px;
}

.home-forum-note p,
.home-feedback p {
  font-size: 0.95rem;
  line-height: 1.45;
}

.feedback-actions button {
  width: fit-content;
  background: var(--teal);
  color: #052f2c;
}

.trust-badges {
  margin-bottom: 6px;
}

.trust-badge {
  min-height: 20px;
  padding: 3px 8px;
  font-size: 0.7rem;
}

.detail-trust-meta {
  margin: 6px 0 10px;
  padding: 8px 10px;
}

.card-feedback-button {
  background: transparent;
  color: var(--accent-mint);
}

@media (max-width: 700px) {
  .home-hero__art {
    opacity: 0.18;
  }
}

@media (max-width: 520px) {
  .home-hero {
    padding: 18px 16px;
  }

  .home-hero__title {
    font-size: clamp(30px, 8.5vw, 38px);
  }

  .home-hero__cta {
    grid-template-columns: 1fr 0.72fr;
  }

  .home-hero__cta-button--ghost {
    grid-column: 1 / -1;
    min-height: 34px;
    justify-self: start;
    padding-left: 0;
  }

  .quick-grid--scenarios .quick-card {
    min-height: 68px;
  }

  .feedback-actions button {
    width: 100%;
  }
}

/* CONTACT GRID ALIGN FIX */
@media (min-width: 640px) {
  #help-view #contacts-list:not(.contact-directory),
  #help-view .contact-group__grid {
    display: grid;
    align-items: start;
    grid-auto-rows: auto;
    gap: 14px;
  }

  #help-view #contacts-list:not(.contact-directory),
  #help-view .contact-group__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #help-view .contact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  #help-view .contact-card .card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  #help-view .contact-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #help-view .contact-card .card-copy,
  #help-view .contact-card .contact-note,
  #help-view .contact-card .partner-badge {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #help-view .contact-card .card-copy {
    -webkit-line-clamp: 3;
  }

  #help-view .contact-card .contact-note {
    -webkit-line-clamp: 4;
  }

  #help-view .contact-card .partner-badge {
    -webkit-line-clamp: 5;
  }

  #help-view .contact-card .card-cta,
  #help-view .contact-card .contact-actions,
  #help-view .contact-card .open-section-action,
  #help-view .contact-card .card-action {
    flex: 0 0 auto;
  }

  #help-view .contact-card .card-action {
    margin-top: 0;
  }
}

@media (min-width: 960px) {
  #help-view #contacts-list:not(.contact-directory),
  #help-view .contact-group__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* APP DASHBOARD FAST START FAVORITES */
.app-dashboard-hero {
  display: block;
  padding: 16px;
}

.app-dashboard-hero::after,
.app-dashboard-hero .home-hero__art {
  display: none;
}

.app-dashboard-hero .home-hero__top {
  margin-bottom: 8px;
}

.app-dashboard-hero .home-hero__logo {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 12px;
  font-size: 0.95rem;
}

.app-dashboard-hero .home-hero__eyebrow {
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  color: var(--teal-dark);
  letter-spacing: 0;
}

.app-dashboard-hero .home-hero__eyebrow span {
  display: none;
}

.app-dashboard-hero .home-hero__title {
  margin-bottom: 6px;
  font-size: clamp(1.9rem, 8vw, 2.55rem);
  letter-spacing: 0;
}

.app-dashboard-hero .home-hero__lead {
  max-width: 620px;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.app-dashboard-hero .home-hero__support,
.app-dashboard-hero .home-hero__note {
  max-width: 680px;
  margin: 0 0 8px;
  color: var(--text-body);
  line-height: 1.48;
}

.app-dashboard-hero .home-hero__support {
  font-size: 0.94rem;
}

.app-dashboard-hero .home-hero__note {
  color: var(--accent-mint);
  font-size: 0.9rem;
  font-weight: 760;
}

.app-dashboard-hero .home-hero__value {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 12px;
}

.app-dashboard-hero .home-hero__value button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(142, 255, 235, 0.24);
  border-radius: 999px;
  background: rgba(7, 11, 13, 0.24);
  color: var(--text-main);
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}

.app-dashboard-hero .home-hero__value button:hover,
.app-dashboard-hero .home-hero__value button:focus-visible {
  border-color: rgba(142, 255, 235, 0.5);
  background: rgba(25, 199, 185, 0.16);
}

.app-dashboard-hero .home-hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.app-dashboard-hero .home-hero__cta-button {
  width: auto;
  min-width: 104px;
  max-width: max-content;
  min-height: 42px;
  border-radius: 12px;
  text-decoration: none;
}

.fast-start-section,
.favorites-section {
  scroll-margin-top: 82px;
}

.situation-helper {
  scroll-margin-top: 82px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.038));
  color: var(--text-body);
  padding: 14px;
}

.situation-helper__heading {
  margin-bottom: 8px;
}

.situation-helper__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.situation-helper__chip {
  min-height: 36px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-main);
  padding: 7px 10px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.situation-helper__chip.is-active,
.situation-helper__chip[aria-pressed="true"] {
  border-color: rgba(110, 255, 228, 0.35);
  background: rgba(25, 199, 185, 0.18);
  color: var(--accent-mint);
}

.situation-helper__panel {
  display: grid;
  gap: 11px;
  margin-top: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.situation-helper__panel-head {
  display: grid;
  gap: 3px;
}

.situation-helper__panel-head h3,
.situation-helper__block h4,
.situation-helper__related h4 {
  margin: 0;
}

.situation-helper__panel-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.situation-helper__content {
  display: grid;
  gap: 8px;
}

.situation-helper__block {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.situation-helper__block--warning {
  background: rgba(245, 158, 11, 0.12);
}

.situation-helper__list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.38;
}

.situation-helper__phrase {
  display: grid;
  gap: 7px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(25, 199, 185, 0.08);
  padding: 10px;
}

.situation-helper__phrase span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.situation-helper__phrase p {
  margin: 0;
  color: var(--text-main);
  font-weight: 750;
  line-height: 1.35;
}

.situation-helper__small-button,
.situation-helper__help-button {
  width: fit-content;
  min-height: 36px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--accent-mint);
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.situation-helper__small-button:hover,
.situation-helper__help-button:hover,
.situation-helper__small-button:focus-visible,
.situation-helper__help-button:focus-visible {
  border-color: rgba(110, 255, 228, 0.35);
  background: rgba(25, 199, 185, 0.18);
}

.situation-helper__related {
  display: grid;
  gap: 10px;
}

.situation-helper__cards {
  grid-template-columns: minmax(0, 1fr);
}

.situation-helper__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
}

.situation-helper__status {
  display: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.situation-helper__status.is-success,
.situation-helper__status.is-error {
  display: block;
}

.situation-helper__status.is-success {
  color: var(--accent-mint);
}

.situation-helper__status.is-error {
  color: var(--red);
}

.situation-helper__help-button {
  background: rgba(255, 255, 255, 0.055);
}

.fast-start-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.fast-start-tabs::-webkit-scrollbar {
  display: none;
}

.fast-start-tab {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-body);
  padding: 7px 11px;
  font-weight: 700;
  cursor: pointer;
}

.fast-start-tab.is-active {
  border-color: rgba(142, 255, 235, 0.44);
  background: rgba(25, 199, 185, 0.18);
  color: var(--accent-mint);
}

.compact-card-grid {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(25, 199, 185, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04));
  padding: 12px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.compact-card__body {
  min-width: 0;
}

.compact-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.compact-card__section,
.compact-card__category {
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 750;
}

.compact-card__category {
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.1);
  color: rgba(255, 224, 178, 0.9);
}

.compact-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.3;
}

.compact-card__text {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 520;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card__actions {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 7px;
  align-items: center;
}

.compact-card__detail {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-mint);
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.favorite-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  min-width: 0;
  height: 30px;
  min-height: 30px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--accent-mint);
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.favorite-button[aria-pressed="true"] {
  border-color: rgba(110, 255, 228, 0.36);
  background: rgba(25, 199, 185, 0.18);
}

.favorite-button--detail {
  background: rgba(255, 255, 255, 0.055);
}

.favorites-empty {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px dashed rgba(110, 255, 228, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-body);
  padding: 14px;
  line-height: 1.45;
}

.favorites-empty strong {
  color: var(--text-main);
  font-weight: 780;
}

.favorites-empty p {
  margin: 0;
}

.favorites-empty__button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(110, 255, 228, 0.3);
  border-radius: 999px;
  background: rgba(25, 199, 185, 0.16);
  color: var(--accent-mint);
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
}

.open-section-action--detail {
  margin: 0;
}

@media (min-width: 720px) {
  .situation-helper__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .situation-helper__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .app-dashboard-hero {
    padding: 18px 20px;
  }

  .compact-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .situation-helper__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compact-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .situation-helper {
    padding: 13px;
  }

  .situation-helper__panel {
    padding: 12px;
  }

  .situation-helper__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .situation-helper__help-button {
    width: 100%;
  }

  .app-dashboard-hero .home-hero__cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .compact-card__actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .compact-card__detail,
  .favorite-button--compact {
    width: auto;
    max-width: max-content;
  }
}

@media (max-width: 639px) {
  #help-view #contacts-list,
  #help-view .contact-group__grid {
    align-items: start;
    grid-auto-rows: auto;
  }

  #help-view .contact-card {
    display: block;
    height: auto;
  }

  #help-view .contact-card .card-body {
    display: block;
    overflow: visible;
  }
}

/* HOME UX CLEANUP */
:root {
  --bottom-nav-clearance: calc(var(--nav-height) + 88px + env(safe-area-inset-bottom));
  --home-surface: rgba(239, 255, 251, 0.9);
  --home-surface-soft: rgba(214, 253, 245, 0.18);
  --home-surface-glass: rgba(238, 255, 251, 0.12);
  --home-text-dark: #102526;
  --home-text-teal: #175f60;
  --home-muted-dark: #476466;
  --home-mint: #9ff5df;
  --home-sand: #fff1cc;
  --home-coral: #ffb07a;
}

html,
body {
  overflow-x: hidden;
}

body {
  padding-bottom: calc(var(--nav-height) + 96px + env(safe-area-inset-bottom));
  background: var(--body-background);
}

.app-main {
  padding-bottom: calc(var(--nav-height) + 84px + env(safe-area-inset-bottom));
}

#home-view {
  max-width: 1040px;
  margin-inline: auto;
}

.view {
  padding-bottom: calc(var(--nav-height) + 84px + env(safe-area-inset-bottom));
}

.home-section {
  margin-top: 16px;
}

.home-search {
  max-width: 920px;
  margin: 10px auto 14px;
}

.home-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
  margin: -1px;
  border: 0;
  padding: 0;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 700;
}

.home-search__box {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid rgba(177, 255, 238, 0.8);
  border-radius: 20px;
  background: rgba(238, 255, 251, 0.92);
  box-shadow: 0 16px 34px rgba(7, 49, 47, 0.16);
}

.home-search svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #0f766e;
}

.home-search__input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--home-text-dark);
  font: inherit;
  font-size: 16px;
}

.home-search__input::placeholder {
  color: rgba(34, 79, 80, 0.66);
}

.home-search__clear {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.home-search__clear[hidden],
.home-search__results[hidden] {
  display: none;
}

.home-search__results {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 18px;
  background: rgba(10, 24, 25, 0.9);
}

.home-search__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-search__filter {
  min-height: 34px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 0 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.home-search__filter.is-active {
  border-color: rgba(45, 212, 191, 0.68);
  background: var(--teal);
  color: #052f2c;
}

.home-search__filter:disabled {
  cursor: default;
  opacity: 0.42;
}

.home-hero--simple {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 2px 4px;
}

.home-hero--redesign {
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-hero__mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 241, 204, 0.85), transparent 34%),
    linear-gradient(135deg, rgba(18, 184, 166, 0.92), rgba(10, 91, 86, 0.95));
  color: #fff7dc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 24px rgba(0, 0, 0, 0.16);
}

.home-hero__mark svg {
  width: 42px;
  height: 42px;
}

.home-hero__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.home-hero--simple .home-hero__title {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(1.55rem, 6vw, 2.25rem);
  line-height: 1.05;
}

.home-hero--simple .home-hero__lead {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(236, 253, 245, 0.86);
  font-size: clamp(0.82rem, 2.7vw, 0.98rem);
  line-height: 1.2;
}

.home-search--main {
  margin-top: 10px;
  margin-bottom: 14px;
}

.home-map-card {
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 120px;
  gap: 16px;
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 241, 204, 0.92), transparent 34%),
    linear-gradient(135deg, #aff8e7 0%, #59d9ca 48%, #0f766e 100%);
  color: var(--home-text-dark);
  box-shadow: 0 18px 42px rgba(7, 49, 47, 0.26);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.home-map-card:hover,
.home-map-card:focus-visible {
  border-color: rgba(153, 246, 228, 0.72);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 241, 204, 0.98), transparent 36%),
    linear-gradient(135deg, #c5fff0 0%, #67e8d8 48%, #12877d 100%);
  transform: translateY(-1px);
}

.home-map-card:focus-visible {
  outline: 3px solid rgba(153, 246, 228, 0.32);
  outline-offset: 3px;
}

.home-map-card__icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  color: #07524d;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.home-map-card__icon svg {
  width: 34px;
  height: 34px;
}

.home-map-card__text {
  display: grid;
  flex: 1 1 48%;
  min-width: 0;
  gap: 3px;
}

.home-map-card__art {
  display: block;
  flex: 0 1 38%;
  min-width: 90px;
  max-width: 180px;
  opacity: 0.95;
}

.home-map-card__art svg {
  display: block;
  width: 100%;
  height: auto;
}

.home-map-card strong {
  color: #082f2e;
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  line-height: 1.15;
}

.home-map-card small {
  color: #134e4a;
  font-size: clamp(0.9rem, 2.8vw, 1rem);
  line-height: 1.25;
}

.home-map-card__arrow {
  display: inline-grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 78, 71, 0.14);
  color: #064e47;
  font-size: 1.2rem;
  font-weight: 900;
}

.home-telegram-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.home-telegram-panel__text {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.home-telegram-panel__text strong {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.2;
}

.home-telegram-panel__text span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.home-telegram-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.home-telegram-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--accent-mint);
  padding: 0 13px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.home-telegram-link--primary {
  border-color: rgba(94, 234, 212, 0.68);
  background: linear-gradient(135deg, #0bb6a6, #38d1c1);
  color: #052f2c;
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.24);
}

.home-telegram-link:hover,
.home-telegram-link:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(153, 246, 228, 0.34);
  outline-offset: 2px;
}

.home-main-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.home-main-action {
  display: grid;
  min-height: 112px;
  align-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 22px;
  color: var(--home-text-dark);
  text-align: left;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.home-main-action--goa {
  background: linear-gradient(145deg, rgba(255, 241, 204, 0.95), rgba(181, 252, 234, 0.9));
}

.home-main-action--help {
  background: linear-gradient(145deg, rgba(229, 255, 249, 0.95), rgba(255, 190, 142, 0.78));
}

.home-main-action:hover,
.home-main-action:focus-visible,
.home-category-card:hover,
.home-category-card:focus-visible,
.home-now-chip:hover,
.home-now-chip:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(153, 246, 228, 0.34);
  outline-offset: 2px;
}

.home-action-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  color: #0f766e;
}

.home-action-icon svg {
  width: 25px;
  height: 25px;
}

.home-main-action span:last-child {
  display: grid;
  gap: 4px;
}

.home-main-action strong {
  color: #0b2f30;
  font-size: clamp(1.02rem, 3.8vw, 1.22rem);
  line-height: 1.12;
}

.home-main-action small {
  color: #3f5f61;
  font-size: 0.84rem;
  line-height: 1.2;
}

.home-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.home-category-card {
  display: grid;
  min-width: 0;
  min-height: 78px;
  place-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background: rgba(238, 255, 251, 0.88);
  color: var(--home-text-teal);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.home-category-card span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.1);
}

.home-category-card svg {
  width: 21px;
  height: 21px;
}

.home-category-card strong {
  max-width: 100%;
  color: #17494a;
  font-size: clamp(0.72rem, 2.6vw, 0.86rem);
  line-height: 1.1;
  text-align: center;
}

.home-now-panel {
  margin-top: 0;
  padding: clamp(14px, 3.4vw, 20px);
  border: 1px solid rgba(153, 246, 228, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(238, 255, 251, 0.16), rgba(238, 255, 251, 0.08)),
    rgba(7, 26, 27, 0.62);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.13);
}

.home-now-panel .section-heading {
  min-height: 0;
  margin-bottom: 12px;
}

.home-now-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.home-now-chip {
  display: grid;
  min-width: 0;
  min-height: 64px;
  align-content: center;
  justify-items: start;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid rgba(153, 246, 228, 0.28);
  border-radius: 17px;
  background: rgba(238, 255, 251, 0.1);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.home-now-chip span {
  display: inline-grid;
  min-width: 28px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(159, 245, 223, 0.18);
  color: var(--accent-mint);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.home-now-chip strong {
  color: var(--text-main);
  font-size: clamp(0.78rem, 2.7vw, 0.92rem);
  line-height: 1.12;
}

.home-action-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .info-card,
  :root:not([data-theme="dark"]) .compact-card,
  :root:not([data-theme="dark"]) .home-section,
  :root:not([data-theme="dark"]) .home-now-panel,
  :root:not([data-theme="dark"]) .request-panel,
  :root:not([data-theme="dark"]) .install-card,
  :root:not([data-theme="dark"]) .map-cta-panel,
  :root:not([data-theme="dark"]) .map-tools,
  :root:not([data-theme="dark"]) .map-selected-card {
    border-color: var(--card-border);
    background: var(--card-bg);
    color: var(--text-body);
    box-shadow: 0 14px 34px rgba(16, 37, 38, 0.1);
  }

  :root:not([data-theme="dark"]) .section-intro,
  :root:not([data-theme="dark"]) .card-copy,
  :root:not([data-theme="dark"]) .compact-card__text,
  :root:not([data-theme="dark"]) .route-meta,
  :root:not([data-theme="dark"]) .map-status,
  :root:not([data-theme="dark"]) .home-now-panel .section-heading p {
    color: var(--text-muted);
  }

  :root:not([data-theme="dark"]) .quick-card,
  :root:not([data-theme="dark"]) .primary-card,
  :root:not([data-theme="dark"]) .help-grid button,
  :root:not([data-theme="dark"]) .filter-chip,
  :root:not([data-theme="dark"]) .map-filter-chip,
  :root:not([data-theme="dark"]) .home-now-chip {
    border-color: var(--border-soft);
    background: var(--paper);
    color: var(--text-main);
  }
}

:root[data-theme="light"] .info-card,
:root[data-theme="light"] .compact-card,
:root[data-theme="light"] .home-section,
:root[data-theme="light"] .home-now-panel,
:root[data-theme="light"] .request-panel,
:root[data-theme="light"] .install-card,
:root[data-theme="light"] .map-cta-panel,
:root[data-theme="light"] .map-tools,
:root[data-theme="light"] .map-selected-card {
  border-color: var(--card-border);
  background: var(--card-bg);
  color: var(--text-body);
  box-shadow: 0 14px 34px rgba(16, 37, 38, 0.1);
}

:root[data-theme="light"] .section-intro,
:root[data-theme="light"] .card-copy,
:root[data-theme="light"] .compact-card__text,
:root[data-theme="light"] .route-meta,
:root[data-theme="light"] .map-status,
:root[data-theme="light"] .home-now-panel .section-heading p {
  color: var(--text-muted);
}

:root[data-theme="light"] .quick-card,
:root[data-theme="light"] .primary-card,
:root[data-theme="light"] .help-grid button,
:root[data-theme="light"] .filter-chip,
:root[data-theme="light"] .map-filter-chip,
:root[data-theme="light"] .home-now-chip {
  border-color: var(--border-soft);
  background: var(--paper);
  color: var(--text-main);
}

@media (max-width: 760px) {
  .home-action-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .home-map-card {
    min-height: 116px;
    gap: 10px;
    padding: 16px;
  }

  .home-map-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
  }

  .home-map-card__art {
    flex-basis: 32%;
    min-width: 72px;
  }

  .home-map-card__arrow {
    width: 32px;
    height: 32px;
  }

  .home-telegram-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-telegram-panel__actions {
    justify-content: stretch;
  }

  .home-telegram-link {
    flex: 1 1 140px;
  }

  .home-main-action {
    min-height: 102px;
    padding: 13px;
  }

  .home-action-icon {
    width: 34px;
    height: 34px;
  }

  .home-now-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 370px) {
  .home-category-card {
    min-height: 70px;
    padding-inline: 4px;
  }

  .home-category-card strong,
  .home-now-chip strong {
    font-size: 0.72rem;
  }
}

.home-section--compact {
  margin-top: 14px;
  padding: clamp(14px, 3.4vw, 20px);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
}

.home-section--compact .section-heading {
  min-height: 0;
  margin-bottom: 12px;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-quick-grid .quick-card {
  min-height: 74px;
  justify-content: center;
  padding: 13px 14px;
  border-radius: 16px;
}

.home-quick-grid .quick-card span {
  display: grid;
  gap: 3px;
}

.home-quick-grid .quick-card strong,
.home-popular-list .tg-list-card strong {
  color: var(--text-main);
  line-height: 1.15;
}

.home-quick-grid .quick-card small,
.home-popular-list .tg-list-card small {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.2;
}

.home-popular-list {
  display: grid;
  gap: 8px;
}

.home-popular-list .tg-list-card {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.home-popular-list .tg-list-card::after {
  content: "→";
  flex: 0 0 auto;
  margin-left: 12px;
  color: var(--accent-mint);
  font-weight: 850;
}

.home-popular-list .tg-list-card > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.app-dashboard-hero {
  padding: 12px 14px;
}

.app-dashboard-hero .home-hero__top {
  margin-bottom: 5px;
}

.app-dashboard-hero .home-hero__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.app-dashboard-hero .home-hero__eyebrow {
  margin-bottom: 5px;
  font-size: 0.66rem;
}

.app-dashboard-hero .home-hero__title {
  margin-bottom: 4px;
  font-size: clamp(1.65rem, 7vw, 2.25rem);
}

.app-dashboard-hero .home-hero__lead {
  margin-bottom: 9px;
  font-size: 0.92rem;
  line-height: 1.34;
}

.app-dashboard-hero .home-hero__cta-button {
  width: auto;
  min-width: 104px;
  max-width: max-content;
  min-height: 38px;
  padding: 8px 12px;
}

.home-calm-note {
  margin: 8px auto 10px;
  font-size: 0.84rem;
  line-height: 1.35;
}

.fast-start-section .section-heading,
.favorites-section .section-heading,
.quick-scenarios .section-heading {
  margin-bottom: 8px;
}

.fast-start-section .section-intro,
.favorites-section .section-intro,
.quick-scenarios .section-intro {
  margin: 3px 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.fast-start-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 10px;
  overflow: visible;
  padding-bottom: 0;
}

.fast-start-tab {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

.primary-grid {
  gap: 8px;
}

.home-section--primary .primary-card {
  min-height: 70px;
  padding: 10px;
}

.quick-grid--scenarios {
  gap: 8px;
  margin-top: 10px;
}

.quick-grid--scenarios .quick-card {
  min-height: 62px;
  padding: 9px 10px;
}

.compact-card {
  padding: 11px;
}

.compact-card__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.compact-card__detail {
  flex: 0 0 auto;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
}

.favorite-button {
  flex: 0 0 auto;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}

.info-card > .favorite-button {
  width: auto;
  margin: 0 12px 10px;
  align-self: flex-start;
}

.card-action {
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
}

.favorites-section {
  padding-bottom: 4px;
}

.favorites-empty {
  padding: 12px;
  font-size: 0.92rem;
}

#help-view .section-heading--page {
  margin-bottom: 8px;
}

#help-view .notice--danger {
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.35;
}

#help-view .notice--danger strong {
  margin-bottom: 2px;
}

#help-view .help-block {
  margin-top: 16px;
}

#help-view #contacts-section .section-intro {
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (min-width: 720px) {
  .fast-start-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .app-dashboard-hero .home-hero__cta {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 0.48fr);
  }

  .compact-card__actions {
    flex-direction: row;
    align-items: center;
  }

  .compact-card__detail {
    width: auto;
  }

  .favorite-button--compact {
    width: auto;
  }
}

@media (max-width: 339px) {
  .compact-card__actions {
    flex-wrap: wrap;
  }

  .compact-card__detail,
  .favorite-button--compact {
    width: auto;
    max-width: max-content;
  }
}

/* QUICK SCENARIOS CLS STABILIZATION */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.quick-scenarios {
  contain: layout paint;
  min-height: 0;
  padding-top: 12px;
  padding-bottom: 12px;
}

.quick-scenarios .section-heading {
  min-height: 0;
  margin-bottom: 8px;
}

.quick-scenarios .section-intro {
  line-height: 1.35;
}

.quick-scenarios .primary-grid {
  align-items: stretch;
  min-height: 0;
  gap: 8px;
}

.quick-scenarios .primary-card {
  min-height: 70px;
  line-height: 1.15;
}

.quick-scenarios .primary-card small,
.quick-scenarios .quick-card span:last-child {
  line-height: 1.2;
}

.quick-grid--scenarios {
  align-items: stretch;
  min-height: 0;
  gap: 8px;
}

.quick-grid--scenarios .quick-card {
  min-height: 62px;
  line-height: 1.15;
}

@media (max-width: 420px) {
  .quick-scenarios {
    min-height: 0;
  }

  .quick-scenarios .section-heading {
    min-height: 0;
  }

  .quick-scenarios .primary-grid {
    min-height: 0;
  }
}

/* FAST START CLS STABILIZATION */
.fast-start-section {
  min-height: 0;
  margin-top: 22px;
}

.fast-start-section .section-heading {
  min-height: 0;
  margin-bottom: 8px;
}

.fast-start-section .section-intro {
  line-height: 1.35;
}

.fast-start-tabs {
  align-items: stretch;
  min-height: 0;
  margin-top: 8px;
  margin-bottom: 10px;
}

.fast-start-tab {
  min-height: 34px;
  line-height: 1.15;
}

.fast-start-results {
  min-height: 0;
}

.fast-start-results[hidden],
.fast-start-results:empty {
  min-height: 0;
}

@media (max-width: 420px) {
  .fast-start-section {
    min-height: 0;
  }

  .fast-start-section .section-heading {
    min-height: 0;
  }

  .fast-start-tabs {
    min-height: 0;
  }
}

/* TELEGRAM MINI APP MODE */
.tg-start-panel,
.tg-popular-panel,
.tg-incident-panel {
  display: none;
}

body.tg-mini-app {
  --nav-height: 68px;
  --tg-home-bg: var(--tg-bg-color, #151515);
  --tg-card-bg: var(--tg-secondary-bg-color, var(--card-bg));
  --tg-card-border: rgba(128, 150, 150, 0.28);
  --tg-main-text: var(--tg-text-color, var(--ink));
  --tg-soft-text: var(--tg-hint-color, var(--muted));
  --text-main: var(--tg-text-color, var(--ink));
  --text-body: var(--tg-text-color, var(--ink));
  --text-muted: var(--tg-hint-color, var(--muted));
  --text-soft: var(--tg-hint-color, var(--muted));
  --accent-mint: var(--tg-button-color, var(--teal-dark));
  --accent-strong: var(--tg-button-color, var(--teal-dark));
  --button-text: var(--tg-button-text-color, #ffffff);
  --card-bg: var(--tg-secondary-bg-color, var(--paper));
  --card-bg-strong: var(--tg-secondary-bg-color, var(--paper));
  --card-border: rgba(128, 150, 150, 0.28);
  background: var(--tg-bg-color, var(--tg-home-bg));
  color: var(--tg-text-color, var(--tg-main-text));
  padding-bottom: calc(128px + env(safe-area-inset-bottom));
}

body.tg-mini-app .app-header {
  display: none;
}

body.tg-mini-app .app-main {
  padding-top: max(8px, env(safe-area-inset-top));
}

body.tg-mini-app .view {
  padding: 10px 12px calc(128px + env(safe-area-inset-bottom));
}

body.tg-mini-app .home-hero {
  min-height: auto;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(94, 234, 212, 0.32), transparent 42%),
    linear-gradient(135deg, #12726a, #1e5265 58%, #243447);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

body.tg-mini-app .home-hero__eyebrow,
body.tg-mini-app .home-hero__cta,
body.tg-mini-app .home-calm-note,
body.tg-mini-app #situation-helper,
body.tg-mini-app .fast-start-section,
body.tg-mini-app .favorites-section,
body.tg-mini-app .quick-scenarios,
body.tg-mini-app .install-card,
body.tg-mini-app .home-footer {
  display: none;
}

body.tg-mini-app .home-hero__title::before {
  content: "🌴 ";
}

body.tg-mini-app .home-hero--simple .home-hero__title::before {
  content: none;
}

body.tg-mini-app .home-hero__title {
  color: #ffffff;
  font-size: clamp(1.9rem, 9vw, 2.65rem);
  font-weight: 780;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

body.tg-mini-app .home-hero__lead {
  color: rgba(255, 255, 255, 0.84);
  max-width: 34rem;
  font-size: 0;
}

body.tg-mini-app .home-hero__lead::after {
  content: "Гоа без хаоса: цены, маршруты, контакты и помощь туристам.";
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
}

body.tg-mini-app .home-hero--simple .home-hero__lead {
  font-size: 0.98rem;
}

body.tg-mini-app .home-hero--simple .home-hero__lead::after {
  content: none;
}

body.tg-mini-app .home-search {
  margin: 10px 0;
}

body.tg-mini-app .home-search label {
  color: rgba(235, 239, 244, 0.84);
}

body.tg-mini-app .home-search__box {
  min-height: 56px;
  border-color: rgba(177, 255, 238, 0.74);
  background: rgba(238, 255, 251, 0.92);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

body.tg-mini-app .home-search svg {
  color: #0f766e;
}

body.tg-mini-app .home-search__input {
  color: var(--home-text-dark);
  font-size: 16px;
}

body.tg-mini-app .home-search__input::placeholder {
  color: rgba(34, 79, 80, 0.66);
}

body.tg-mini-app .home-search__clear {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

body.tg-mini-app .home-search__results {
  border-color: rgba(112, 255, 229, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

body.tg-mini-app .home-search__filter,
body.tg-mini-app .help-mode-tab {
  border-color: rgba(112, 255, 229, 0.22);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.9);
}

body.tg-mini-app .home-search__filter.is-active,
body.tg-mini-app .help-mode-tab.is-active {
  background: #5eead4;
  color: #052f2c;
}

body.tg-mini-app .home-map-card {
  min-height: 118px;
  margin: 8px 0 12px;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 241, 204, 0.9), transparent 34%),
    linear-gradient(135deg, #aff8e7 0%, #59d9ca 48%, #0f766e 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

body.tg-mini-app .home-map-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  color: #07524d;
}

body.tg-mini-app .home-map-card strong {
  color: #082f2e;
  font-size: clamp(1.28rem, 5.5vw, 1.58rem);
}

body.tg-mini-app .home-map-card small {
  color: #134e4a;
  font-size: 0.9rem;
}

body.tg-mini-app .home-map-card__arrow {
  width: 34px;
  height: 34px;
  background: rgba(6, 78, 71, 0.14);
  color: #064e47;
}

body.tg-mini-app .home-telegram-panel {
  display: none;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .home-telegram-panel {
    display: none;
  }
}

body.tg-mini-app .tg-start-panel,
body.tg-mini-app .tg-popular-panel,
body.tg-mini-app .tg-incident-panel {
  display: block;
}

body.tg-mini-app .home-section {
  margin: 10px 0;
  padding: 14px;
  border: 1px solid var(--tg-card-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

body.tg-mini-app .home-main-actions {
  gap: 10px;
  margin-bottom: 12px;
}

body.tg-mini-app .home-main-action {
  min-height: 106px;
  padding: 13px;
}

body.tg-mini-app .home-categories {
  gap: 7px;
  margin-bottom: 12px;
}

body.tg-mini-app .home-category-card {
  min-height: 72px;
  padding: 8px 5px;
}

body.tg-mini-app .home-now-panel {
  margin: 10px 0;
  background:
    linear-gradient(180deg, rgba(238, 255, 251, 0.16), rgba(238, 255, 251, 0.08)),
    rgba(7, 26, 27, 0.62);
}

body.tg-mini-app .section-heading {
  min-height: 0;
  margin-bottom: 10px;
}

body.tg-mini-app .section-heading h2 {
  color: var(--tg-main-text);
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.018em;
  text-shadow: none;
}

body.tg-mini-app .section-intro {
  color: var(--tg-hint-color, var(--tg-soft-text));
  font-size: 0.9rem;
}

body.tg-mini-app .quick-grid,
body.tg-mini-app .help-grid {
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.tg-mini-app .tg-start-grid {
  gap: 10px;
}

body.tg-mini-app .tg-start-grid .quick-card {
  min-height: 104px;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card-bg-strong);
  box-shadow: 0 10px 24px rgba(3, 31, 30, 0.16);
  color: var(--text-main);
}

body.tg-mini-app .tg-start-grid .quick-card--accent {
  border-color: var(--border-mint);
  background: var(--accent-soft);
}

body.tg-mini-app .tg-start-grid .quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1rem;
}

body.tg-mini-app .tg-start-grid .quick-card > span:last-child {
  display: grid;
  gap: 2px;
  color: var(--text-main);
}

body.tg-mini-app .tg-start-grid .quick-card strong {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.12;
}

body.tg-mini-app .tg-start-grid .quick-card small {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.15;
}

body.tg-mini-app .home-quick-grid {
  gap: 9px;
}

body.tg-mini-app .home-quick-grid .quick-card {
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid var(--card-border);
  border-radius: 15px;
  background: var(--card-bg-strong);
  color: var(--text-main);
}

body.tg-mini-app .home-quick-grid .quick-card--accent {
  border-color: var(--border-mint);
  background: var(--accent-soft);
}

body.tg-mini-app .home-quick-grid .quick-card strong,
body.tg-mini-app .home-popular-list .tg-list-card strong {
  color: var(--text-main);
}

body.tg-mini-app .home-quick-grid .quick-card small,
body.tg-mini-app .home-popular-list .tg-list-card small {
  color: var(--tg-soft-text);
}

body.tg-mini-app .tg-list-grid {
  display: grid;
  gap: 10px;
}

body.tg-mini-app .tg-list-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.tg-mini-app .tg-list-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--tg-card-border);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    #1c1c1c;
  color: var(--tg-main-text);
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

body.tg-mini-app .tg-list-grid--compact .tg-list-card {
  min-height: 94px;
  align-items: flex-start;
  flex-direction: column;
}

body.tg-mini-app .tg-list-card__icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 13px;
  background: rgba(20, 184, 166, 0.18);
  color: #ccfbf1;
  font-size: 1rem;
}

body.tg-mini-app .tg-list-card > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body.tg-mini-app .tg-list-card strong {
  color: var(--tg-main-text);
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.16;
}

body.tg-mini-app .tg-list-card small {
  color: var(--tg-soft-text);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.18;
}

body.tg-mini-app .home-popular-list {
  gap: 8px;
}

body.tg-mini-app .home-popular-list .tg-list-card {
  min-height: 54px;
  padding: 10px 12px;
  border-color: var(--tg-card-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    #1c1c1c;
  box-shadow: none;
}

body.tg-mini-app .home-feedback,
body.tg-mini-app .mini-guide {
  border: 1px solid var(--tg-card-border);
  background:
    linear-gradient(145deg, rgba(20, 184, 166, 0.09), rgba(255, 255, 255, 0.035)),
    #1b1b1b;
  color: var(--tg-main-text);
}

body.tg-mini-app .home-feedback .eyebrow,
body.tg-mini-app .mini-guide .eyebrow {
  color: rgba(153, 246, 228, 0.86);
}

body.tg-mini-app .home-feedback p,
body.tg-mini-app .mini-guide p {
  color: var(--tg-soft-text);
}

body.tg-mini-app .feedback-actions button {
  border: 0;
  background: var(--tg-button-color, #14b8a6);
  color: var(--button-text);
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.22);
}

body.tg-mini-app .steps {
  gap: 9px;
}

body.tg-mini-app .steps li {
  border: 1px solid var(--tg-card-border);
  background: var(--card-bg-strong);
  color: var(--tg-main-text);
}

body.tg-mini-app .steps span {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

body.tg-mini-app .steps strong {
  color: var(--tg-main-text);
}

body.tg-mini-app .detail-cta:empty {
  display: none;
}

body.tg-mini-app .primary-card {
  min-height: 68px;
  padding: 10px;
  border-radius: 14px;
}

body.tg-mini-app .info-card {
  border-radius: 15px;
}

body.tg-mini-app .card-body {
  padding: 14px;
}

body.tg-mini-app .bottom-nav {
  min-height: var(--nav-height);
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  background: var(--tg-secondary-bg-color, var(--bottom-nav-bg));
}

body.tg-mini-app .nav-item {
  min-height: 50px;
  border-radius: 12px;
}

body.tg-mini-app .nav-item.is-active {
  background: var(--tg-button-color, var(--teal-soft));
  color: var(--tg-button-text-color, var(--teal-dark));
}

/* TELEGRAM MINI APP FULL VISUAL PASS */
body.tg-mini-app {
  --tg-home-bg: var(--tg-bg-color, #151515);
  --tg-surface: var(--tg-secondary-bg-color, var(--tg-bg-color, var(--paper)));
  --tg-surface-soft: var(--tg-secondary-bg-color, var(--paper));
  --tg-border: rgba(128, 150, 150, 0.28);
  --tg-muted: var(--tg-hint-color, var(--muted));
  --tg-faint: var(--tg-hint-color, var(--muted));
  --tg-accent: var(--tg-button-color, var(--teal));
  --tg-accent-soft: rgba(20, 184, 166, 0.16);
  --tg-warn-bg: rgba(245, 158, 11, 0.14);
  --tg-warn-border: rgba(245, 158, 11, 0.28);
  --tg-danger-bg: rgba(239, 68, 68, 0.13);
  --tg-danger-border: rgba(239, 68, 68, 0.28);
  --text-main: var(--tg-text-color, var(--ink));
  --text-body: var(--tg-text-color, var(--ink));
  --text-muted: var(--tg-hint-color, var(--muted));
  --text-soft: var(--tg-hint-color, var(--muted));
  --accent-strong: var(--tg-button-color, var(--teal-dark));
  --accent-mint: var(--tg-button-color, var(--teal-dark));
  --button-text: var(--tg-button-text-color, #ffffff);
  --card-bg: var(--tg-secondary-bg-color, var(--paper));
  --card-bg-strong: var(--tg-secondary-bg-color, var(--paper));
  --card-border: rgba(128, 150, 150, 0.28);
  overflow-x: hidden;
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
}

body.tg-mini-app .app-main {
  overflow-x: hidden;
}

body.tg-mini-app .view {
  max-width: 100%;
  padding: 10px 14px calc(150px + env(safe-area-inset-bottom));
}

body.tg-mini-app .section-heading--page {
  min-height: auto;
  margin: 0 0 12px;
  padding: 16px;
  gap: 10px;
  border: 1px solid var(--tg-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(94, 234, 212, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(27, 75, 84, 0.96), rgba(33, 33, 33, 0.98));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  color: #ffffff;
}

body.tg-mini-app .section-heading--page > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

body.tg-mini-app .section-heading--page h1 {
  color: #ffffff;
  max-width: none;
  font-size: clamp(2rem, 8.4vw, 2.28rem);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.02em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

body.tg-mini-app .section-symbol {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--tg-accent-soft);
  color: #ccfbf1;
  font-size: 1.12rem;
}

body.tg-mini-app .section-heading--page + .section-intro,
body.tg-mini-app .view > .section-intro {
  margin: 8px 2px 12px;
  color: var(--tg-soft-text);
}

body.tg-mini-app .catalog-tools,
body.tg-mini-app .notice,
body.tg-mini-app .empty-results,
body.tg-mini-app .data-error {
  border: 1px solid var(--tg-border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    var(--tg-surface);
  color: var(--tg-soft-text);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

body.tg-mini-app .catalog-tools {
  gap: 10px;
  margin: 10px 0 12px;
  padding: 12px;
}

body.tg-mini-app .catalog-search {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.tg-mini-app .catalog-search__input {
  min-height: 50px;
  border: 1px solid var(--tg-border);
  border-radius: 16px;
  background: var(--input-bg);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

body.tg-mini-app .catalog-search__input::placeholder {
  color: var(--text-soft);
}

body.tg-mini-app .catalog-search__input:focus {
  border-color: rgba(20, 184, 166, 0.68);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

body.tg-mini-app .catalog-search__clear,
body.tg-mini-app .catalog-reset {
  border: 1px solid var(--border-mint);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

body.tg-mini-app .filter-chips {
  gap: 8px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

body.tg-mini-app .filter-chips::-webkit-scrollbar {
  display: none;
}

body.tg-mini-app .filter-chip {
  min-height: 38px;
  border: 1px solid var(--tg-border);
  border-radius: 999px;
  background: var(--card-bg-strong);
  color: var(--text-main);
  box-shadow: none;
}

body.tg-mini-app .filter-chip.is-active,
body.tg-mini-app .filter-chip[aria-pressed="true"] {
  border-color: var(--tg-accent);
  background: var(--tg-accent);
  color: var(--button-text);
}

body.tg-mini-app .catalog-summary,
body.tg-mini-app .catalog-count {
  color: var(--tg-muted);
}

body.tg-mini-app .card-list,
body.tg-mini-app .contact-directory,
body.tg-mini-app .contact-group__grid {
  gap: 12px;
}

body.tg-mini-app .info-card,
body.tg-mini-app .contact-card,
body.tg-mini-app .compact-card {
  border: 1px solid var(--tg-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04)),
    var(--tg-surface);
  color: var(--text-body);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.tg-mini-app .info-card .card-body,
body.tg-mini-app .contact-card .card-body {
  padding: 14px;
}

body.tg-mini-app .detail-gallery__item {
  border-color: var(--tg-border);
  background: rgba(255, 255, 255, 0.055);
}

body.tg-mini-app .info-card h2,
body.tg-mini-app .info-card h3,
body.tg-mini-app .contact-card h2,
body.tg-mini-app .contact-card h3,
body.tg-mini-app .contact-group__title {
  color: var(--text-main);
  font-weight: 780;
  letter-spacing: -0.02em;
  text-shadow: none;
}

body.tg-mini-app .info-card p,
body.tg-mini-app .contact-card p,
body.tg-mini-app .card-copy,
body.tg-mini-app .contact-note,
body.tg-mini-app .route-meta,
body.tg-mini-app .route-meta div,
body.tg-mini-app .compact-card__text,
body.tg-mini-app .partner-badge__text,
body.tg-mini-app .card-premium-panel__text {
  color: var(--text-body);
  line-height: 1.48;
  text-shadow: none;
}

body.tg-mini-app .card-tip,
body.tg-mini-app .contact-note,
body.tg-mini-app .route-meta,
body.tg-mini-app .trust-badges {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-body);
  line-height: 1.45;
  box-shadow: none;
}

body.tg-mini-app .card-tip strong,
body.tg-mini-app .route-meta strong,
body.tg-mini-app .contact-note strong,
body.tg-mini-app .detail-label,
body.tg-mini-app .partner-badge__text span {
  color: var(--accent-mint);
  font-weight: 780;
}

body.tg-mini-app .price-main {
  color: #5eead4;
  font-size: 1.1rem;
  font-weight: 780;
}

body.tg-mini-app .card-alert,
body.tg-mini-app .notice--warning {
  border: 1px solid var(--tg-warn-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.08));
  color: rgba(255, 224, 178, 0.94);
  font-weight: 620;
}

body.tg-mini-app .card-tip {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-body);
}

body.tg-mini-app .card-tip strong {
  color: var(--accent-mint);
}

body.tg-mini-app .risk-badge,
body.tg-mini-app .global-source-badge,
body.tg-mini-app .trust-badge,
body.tg-mini-app .contact-status,
body.tg-mini-app .partner-badge {
  border: 1px solid rgba(20, 184, 166, 0.24);
  background: var(--tg-accent-soft);
  color: #ccfbf1;
}

body.tg-mini-app .risk-badge--high {
  border-color: var(--tg-danger-border);
  background: var(--tg-danger-bg);
  color: #fecaca;
}

body.tg-mini-app .risk-badge--medium {
  border-color: var(--tg-warn-border);
  background: var(--tg-warn-bg);
  color: #fde68a;
}

body.tg-mini-app .contact-note,
body.tg-mini-app .route-meta,
body.tg-mini-app .trust-badges,
body.tg-mini-app .card-premium-panel {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-body);
  box-shadow: none;
}

body.tg-mini-app .contact-button {
  min-height: 44px;
  border: 1px solid var(--border-mint);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: none;
}

body.tg-mini-app .card-actions,
body.tg-mini-app .card-share-actions,
body.tg-mini-app .compact-card__actions,
body.tg-mini-app .info-card__actions,
body.tg-mini-app .result-actions {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 10px;
}

body.tg-mini-app .card-actions .card-action,
body.tg-mini-app .card-actions .card-cta,
body.tg-mini-app .card-actions .open-section-action,
body.tg-mini-app .card-actions .favorite-button,
body.tg-mini-app .card-share-actions .card-share-button,
body.tg-mini-app .card-share-actions .card-feedback-button,
body.tg-mini-app .card-share-actions .favorite-button,
body.tg-mini-app .card-share-actions .open-section-action,
body.tg-mini-app .compact-card__actions .compact-card__detail,
body.tg-mini-app .compact-card__actions .favorite-button,
body.tg-mini-app .compact-card__actions .favorite-button--compact {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  max-width: max-content;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12.5px;
  line-height: 1;
  box-shadow: none;
}

body.tg-mini-app .card-actions .favorite-button,
body.tg-mini-app .card-share-actions .favorite-button,
body.tg-mini-app .compact-card__actions .favorite-button,
body.tg-mini-app .compact-card__actions .favorite-button--compact {
  height: 30px;
  min-height: 30px;
}

body.tg-mini-app .contact-button--whatsapp,
body.tg-mini-app .primary-button,
body.tg-mini-app .detail-cta,
body.tg-mini-app .card-cta--detail,
body.tg-mini-app .card-premium-panel__button {
  border-color: transparent;
  background: var(--tg-accent);
  color: var(--button-text);
}

body.tg-mini-app .contact-values {
  gap: 8px;
}

body.tg-mini-app .contact-value {
  border-color: var(--tg-border);
  background: var(--card-bg-strong);
  color: var(--text-main);
  font-size: 0.95rem;
}

body.tg-mini-app .contact-value__label {
  color: var(--accent-strong);
  font-weight: 780;
}

body.tg-mini-app .card-premium-panel__title {
  color: var(--accent-strong);
}

body.tg-mini-app .contact-value strong {
  color: var(--text-main);
  font-size: 1.04rem;
}

body.tg-mini-app .detail-backdrop {
  background: rgba(0, 0, 0, 0.72);
}

body.tg-mini-app .detail-panel {
  max-height: min(88vh, 760px);
  border: 1px solid var(--tg-border);
  border-radius: 24px 24px 0 0;
  background: var(--detail-panel-bg);
  color: var(--text-body);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.38);
}

body.tg-mini-app .detail-header {
  border-bottom: 1px solid var(--tg-border);
}

body.tg-mini-app .detail-close {
  border: 1px solid var(--tg-border);
  background: var(--detail-close-bg);
  color: var(--detail-close-color);
}

body.tg-mini-app .detail-consent__label {
  color: var(--tg-muted);
}

body.tg-mini-app .detail-consent input {
  border-color: var(--tg-border);
  background: rgba(255, 255, 255, 0.08);
}

body.tg-mini-app .detail-row,
body.tg-mini-app .detail-block,
body.tg-mini-app .detail-trust-meta {
  border: 1px solid var(--tg-border);
  border-radius: 16px;
  background: var(--tg-surface-soft);
  color: var(--text-main);
}

body.tg-mini-app .detail-label,
body.tg-mini-app .detail-block__title {
  color: var(--accent-strong);
}

body.tg-mini-app .detail-value,
body.tg-mini-app .detail-list li,
body.tg-mini-app .detail-block__text,
body.tg-mini-app .detail-trust-meta__row {
  color: var(--tg-muted);
}

body.tg-mini-app .detail-block--warning {
  border-color: var(--tg-warn-border);
  background: var(--tg-warn-bg);
}

body.tg-mini-app .detail-block--danger {
  border-color: var(--tg-danger-border);
  background: var(--tg-danger-bg);
}

body.tg-mini-app .bottom-nav {
  min-height: var(--nav-height);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  padding: 7px max(7px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
  border-top: 1px solid var(--tg-border);
  background: var(--tg-secondary-bg-color, var(--bottom-nav-bg));
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

body.tg-mini-app .nav-item {
  min-height: 50px;
  border-radius: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-shadow: none;
  overflow: hidden;
}

body.tg-mini-app .nav-item span,
body.tg-mini-app .nav-item small {
  color: inherit;
  text-shadow: none;
}

body.tg-mini-app .nav-item > span {
  font-weight: 700;
}

body.tg-mini-app .nav-item small {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.05;
  text-overflow: clip;
  white-space: nowrap;
}

body.tg-mini-app .nav-item small span {
  font-size: inherit;
  font-weight: inherit;
}

body.tg-mini-app .nav-item.is-active {
  background: var(--teal);
  color: var(--button-text);
  box-shadow: inset 0 0 0 1px var(--teal);
  font-weight: 700;
}

/* DESKTOP TOP NAVIGATION */
@media (min-width: 640px) {
  body:not(.tg-mini-app) .app-header__inner {
    width: min(100%, 1180px) !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }

  body:not(.tg-mini-app) .brand-link {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
  }

  body:not(.tg-mini-app) .brand-subtitle {
    display: none;
  }

  body:not(.tg-mini-app) .desktop-nav {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
  }

  body:not(.tg-mini-app) .desktop-nav__item {
    display: inline-flex;
    min-width: 0;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(142, 255, 235, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 780;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
  }

  body:not(.tg-mini-app) .desktop-nav__item:hover,
  body:not(.tg-mini-app) .desktop-nav__item:focus-visible {
    border-color: rgba(142, 255, 235, 0.34);
    background: rgba(20, 184, 166, 0.12);
    color: var(--accent-mint);
  }

  body:not(.tg-mini-app) .desktop-nav__item.is-active {
    border-color: rgba(45, 212, 191, 0.5);
    background: var(--teal);
    color: #052f2c;
  }

  body:not(.tg-mini-app) .header-live {
    margin-left: auto;
    flex: 0 0 auto;
  }
}

@media (min-width: 640px) and (max-width: 1060px) {
  body:not(.tg-mini-app) .app-header__inner {
    flex-wrap: wrap !important;
    justify-content: center !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body:not(.tg-mini-app) .desktop-nav {
    flex: 1 1 100%;
    order: 3;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body:not(.tg-mini-app) .header-live {
    margin-left: auto;
  }

  body:not(.tg-mini-app) .desktop-nav__item {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.84rem;
  }
}

body.tg-mini-app .favorites-empty {
  border-color: var(--card-border);
  background: var(--card-bg);
  color: var(--text-body);
}

body.tg-mini-app .favorites-empty strong {
  color: var(--text-main);
}

body.tg-mini-app .favorites-empty__button {
  border-color: var(--border-mint);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

body.tg-mini-app .external-fallback-backdrop {
  z-index: 180;
  background: rgba(0, 0, 0, 0.72);
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
}

body.tg-mini-app .external-fallback-sheet {
  border: 1px solid var(--tg-border);
  border-radius: 24px 24px 20px 20px;
  background: var(--tg-surface);
  color: var(--text-main);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.4);
}

body.tg-mini-app .external-fallback-title {
  color: var(--text-main);
}

body.tg-mini-app .external-fallback-text {
  color: var(--tg-muted);
}

body.tg-mini-app .external-fallback-value {
  border: 1px solid var(--tg-border);
  background: var(--tg-surface-soft);
  color: var(--text-main);
}

body.tg-mini-app .external-fallback-button {
  border-color: var(--border-mint);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

body.tg-mini-app .external-fallback-button--primary {
  border-color: transparent;
  background: var(--tg-accent);
  color: var(--button-text);
}

body.tg-mini-app .external-fallback-button--telegram {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

body.tg-mini-app .external-fallback-button--ghost {
  border-color: var(--tg-border);
  background: rgba(255, 255, 255, 0.055);
  color: var(--tg-muted);
}

body.tg-mini-app .external-fallback-status {
  color: var(--accent-strong);
}

@media (max-width: 380px) {
  body.tg-mini-app .view {
    padding-right: 12px;
    padding-left: 12px;
  }

  body.tg-mini-app .section-heading--page h1 {
    font-size: 1.9rem;
    line-height: 1.1;
  }
}

/* MAP MVP */
.map-cta-panel,
.map-tools,
.map-side-panel,
.map-selected-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.map-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px;
}

.map-cta-panel strong {
  display: block;
  color: var(--text-main);
  font-size: 1.05rem;
}

.map-cta-panel p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.map-cta-panel button,
.map-tools button,
.map-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(20, 184, 166, 0.32);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--teal);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.map-cta-panel button:hover,
.map-tools button:hover,
.map-card-button:hover,
.map-cta-panel button:focus-visible,
.map-tools button:focus-visible,
.map-card-button:focus-visible {
  border-color: rgba(20, 184, 166, 0.58);
  background: rgba(20, 184, 166, 0.18);
  outline: none;
}

.map-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

.map-search {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 10px;
  align-items: center;
}

.map-search input,
.map-radius-select,
.map-area-fallback select {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-main);
  font: inherit;
}

.map-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0 14px;
  font-size: 16px;
}

#map-search-clear {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.map-search-toggle {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.map-search-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

.map-search-toggle.is-open svg {
  transform: rotate(180deg);
}

.map-search input::placeholder {
  color: var(--text-muted);
}

#map-area-select option,
#map-area-select optgroup {
  color-scheme: light;
  background-color: #ffffff;
  color: #111827;
}

#map-area-select option:checked {
  background-color: #d1fae5;
  color: #064e3b;
}

.map-search-suggestions {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  max-height: min(320px, calc(var(--map-visible-height, 100dvh) - 220px - env(safe-area-inset-bottom)));
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 18px;
  background: rgba(7, 20, 19, 0.97);
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}

.map-search-suggestions[hidden] {
  display: none;
}

.map-search-suggestion {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-main);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.map-search-suggestion:hover,
.map-search-suggestion:focus-visible,
.map-search-suggestion.is-active {
  border-color: rgba(20, 184, 166, 0.42);
  background: rgba(20, 184, 166, 0.18);
  color: var(--accent-strong);
  outline: none;
}

.map-nearby-row,
.map-area-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.map-radius-select,
.map-area-fallback select {
  padding: 0 12px;
}

.map-area-fallback label {
  color: var(--text-muted);
  font-weight: 750;
}

.map-category-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.map-filter-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.08);
  color: var(--teal);
  font-weight: 800;
  cursor: pointer;
}

.map-filter-chip.is-active {
  border-color: rgba(153, 246, 228, 0.78);
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.map-status {
  min-height: 20px;
  color: var(--text-muted);
  font-weight: 700;
}

.map-status.is-error {
  color: #fca5a5;
}

.map-status.is-success {
  color: var(--teal);
}

.map-layout {
  display: grid;
  gap: 16px;
}

.map-canvas {
  position: relative;
  width: 100%;
  min-height: 357px;
  height: min(53vh, 527px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #10201d;
  box-shadow: var(--shadow-soft);
  z-index: 0;
}

.map-gesture-hint {
  position: absolute;
  z-index: 700;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  width: min(420px, calc(100% - 28px));
  margin: 0 auto;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(153, 246, 228, 0.36);
  border-radius: 16px;
  background: rgba(5, 47, 44, 0.78);
  color: #ecfffb;
  box-shadow: 0 14px 30px rgba(5, 15, 19, 0.24);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
  pointer-events: none;
}

.map-gesture-hint[hidden] {
  display: none;
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-control-attribution {
  border-radius: 8px 0 0 0;
  background: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  opacity: 0.75;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(230, 248, 250, 0.84);
  color: #175f60;
}

.leaflet-popup-content-wrapper {
  border: 1px solid rgba(23, 95, 96, 0.28);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(16, 37, 38, 0.22);
}

.leaflet-popup-content {
  margin: 12px 14px;
  color: #175f60;
  font-weight: 700;
  line-height: 1.45;
}

.leaflet-popup-content strong {
  display: inline-block;
  margin-bottom: 3px;
  color: #102526;
  font-weight: 700;
  line-height: 1.25;
}

.leaflet-popup-close-button {
  color: #102526 !important;
  font-weight: 800;
  opacity: 0.9;
}

.map-side-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
}

.map-list-summary {
  color: var(--text-muted);
  font-weight: 800;
}

.map-point-list {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding-right: 2px;
}

.map-point-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.map-point-item:hover,
.map-point-item:focus-visible,
.map-point-item.is-active,
.map-point-item.is-selected {
  border-color: rgba(20, 184, 166, 0.52);
  background: rgba(20, 184, 166, 0.12);
  outline: none;
}

.map-point-item strong,
.map-selected-card h2,
.map-selected-card h3 {
  color: var(--text-main);
}

.map-point-meta,
.map-selected-meta,
.map-selected-card p {
  color: var(--text-muted);
}

.map-selected-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  scroll-margin-top: 16px;
  scroll-margin-bottom: calc(var(--nav-height) + 24px);
}

.map-selected-card[hidden] {
  display: none;
}

.map-selected-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.map-selected-card__header h2,
.map-selected-card h3 {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  line-height: 1.18;
}

.map-selected-card__close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(20, 184, 166, 0.32);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal-dark);
  padding: 0 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}

.map-selected-card__close:hover,
.map-selected-card__close:focus-visible {
  border-color: rgba(20, 184, 166, 0.58);
  background: rgba(20, 184, 166, 0.16);
  outline: none;
}

.map-selected-card p {
  margin: 0;
  line-height: 1.5;
}

.map-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-card-button--primary {
  border-color: transparent;
  background: var(--teal);
  color: #ffffff;
}

.map-premium-badge,
.map-point-premium {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 10px;
  padding: 4px 9px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #facc15;
  font-weight: 900;
}

.map-point-premium {
  margin: 0;
  font-size: 0.78rem;
}

.map-premium-note {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.1);
  color: #facc15;
}

.map-premium-note strong {
  color: #fde68a;
}

.map-premium-note p,
.map-premium-note small {
  margin: 0;
  color: #fef3c7;
  font-weight: 750;
}

@media (min-width: 940px) {
  .map-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  .map-cta-panel,
  .map-search {
    display: grid;
  }

  .map-search {
    grid-template-columns: minmax(0, 1fr) auto auto;
    scroll-margin-top: calc(12px + env(safe-area-inset-top));
  }

  .map-search-suggestions {
    grid-column: 1 / -1;
  }

  #map-search-clear,
  #map-search-toggle {
    width: auto;
  }

  #map-search-toggle {
    width: 44px;
  }

  body.map-search-mode .bottom-nav {
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + env(safe-area-inset-bottom)));
  }

  body.map-search-mode .map-search-suggestions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    gap: 8px;
    overflow: visible;
    overscroll-behavior: auto;
    padding: 8px;
  }

  body.map-search-mode .map-search-suggestion {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    align-items: center;
    justify-content: center;
    border-color: rgba(20, 184, 166, 0.24);
    border-radius: 14px;
    background: rgba(20, 184, 166, 0.11);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.18;
    text-align: center;
    white-space: normal;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
  }

  body.map-search-mode .map-search-suggestion:last-child {
    grid-column: 1 / -1;
  }

  body.map-search-mode .map-search-suggestion:active {
    transform: scale(0.985);
  }

  .map-canvas {
    min-height: 306px;
    height: 47vh;
    border-radius: 20px;
  }

  .map-gesture-hint {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: min(360px, calc(100% - 20px));
    padding: 9px 10px;
    font-size: 0.78rem;
  }

  .leaflet-control-attribution {
    max-width: 70vw;
    font-size: 9px;
    white-space: normal;
  }

  .map-point-list {
    max-height: none;
  }

  .map-selected-card {
    scroll-margin-top: 10px;
  }

  .map-selected-card__header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .map-selected-card__close {
    align-self: flex-start;
  }

  .map-card-button,
  .map-tools button,
  .map-cta-panel button {
    width: 100%;
  }

  .map-tools #map-search-clear,
  .map-tools #map-search-toggle {
    width: auto;
  }

  .map-tools #map-search-clear {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .map-tools #map-search-toggle {
    width: 44px;
  }
}

body.tg-mini-app.map-search-mode .bottom-nav {
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + env(safe-area-inset-bottom)));
}

body.tg-mini-app.map-search-mode .map-search {
  scroll-margin-top: calc(12px + env(safe-area-inset-top));
}

body.tg-mini-app.map-search-mode .map-search-suggestions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: none;
  gap: 8px;
  overflow: visible;
  overscroll-behavior: auto;
}

body.tg-mini-app.map-search-mode .map-search-suggestion:last-child {
  grid-column: 1 / -1;
}

body.tg-mini-app .map-cta-panel,
body.tg-mini-app .map-tools,
body.tg-mini-app .map-side-panel,
body.tg-mini-app .map-selected-card,
body.tg-mini-app .map-point-item,
body.tg-mini-app .map-canvas {
  border-color: var(--tg-border);
  background: var(--tg-surface-soft);
  box-shadow: none;
}

body.tg-mini-app .map-search input,
body.tg-mini-app .map-radius-select,
body.tg-mini-app .map-area-fallback select {
  border-color: var(--tg-border);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
}

body.tg-mini-app .map-card-button,
body.tg-mini-app .map-tools button,
body.tg-mini-app .map-cta-panel button,
body.tg-mini-app .map-selected-card__close,
body.tg-mini-app .map-filter-chip {
  border-color: var(--border-mint);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

body.tg-mini-app .map-card-button--primary,
body.tg-mini-app .map-filter-chip.is-active {
  border-color: var(--tg-accent);
  background: var(--tg-accent);
  color: var(--button-text);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.13);
}

body.tg-mini-app .map-premium-badge,
body.tg-mini-app .map-point-premium,
body.tg-mini-app .map-premium-note {
  border-color: rgba(250, 204, 21, 0.38);
  background: rgba(250, 204, 21, 0.12);
}

:root[data-theme="light"] body.tg-mini-app {
  --tg-home-bg: #f6fbf9;
  --tg-card-bg: rgba(255, 255, 255, 0.96);
  --tg-card-border: rgba(16, 37, 38, 0.16);
  --tg-main-text: #102526;
  --tg-soft-text: #4b6264;
  --tg-surface: #ffffff;
  --tg-surface-soft: rgba(255, 255, 255, 0.96);
  --tg-border: rgba(16, 37, 38, 0.16);
  --tg-muted: #4b6264;
  --tg-faint: #637a7c;
  --tg-accent: #0f766e;
  --tg-accent-soft: rgba(15, 118, 110, 0.13);
  --tg-warn-bg: #fff7df;
  --tg-warn-border: rgba(180, 83, 9, 0.3);
  --tg-danger-bg: #fde7eb;
  --tg-danger-border: rgba(180, 35, 60, 0.32);
  background: var(--tg-bg-color, var(--body-background));
  color: var(--text-body);
}

:root[data-theme="light"] body.tg-mini-app .bottom-nav {
  background: var(--bottom-nav-bg);
  border-top-color: var(--border-soft);
  box-shadow: 0 -10px 28px rgba(16, 37, 38, 0.12);
}

:root[data-theme="light"] body.tg-mini-app .home-section,
:root[data-theme="light"] body.tg-mini-app .home-popular-list .tg-list-card,
:root[data-theme="light"] body.tg-mini-app .home-feedback,
:root[data-theme="light"] body.tg-mini-app .mini-guide,
:root[data-theme="light"] body.tg-mini-app .catalog-tools,
:root[data-theme="light"] body.tg-mini-app .notice,
:root[data-theme="light"] body.tg-mini-app .empty-results,
:root[data-theme="light"] body.tg-mini-app .data-error,
:root[data-theme="light"] body.tg-mini-app .info-card,
:root[data-theme="light"] body.tg-mini-app .contact-card,
:root[data-theme="light"] body.tg-mini-app .compact-card,
:root[data-theme="light"] body.tg-mini-app .map-cta-panel,
:root[data-theme="light"] body.tg-mini-app .map-tools,
:root[data-theme="light"] body.tg-mini-app .map-side-panel,
:root[data-theme="light"] body.tg-mini-app .map-selected-card,
:root[data-theme="light"] body.tg-mini-app .map-point-item {
  border-color: var(--card-border);
  background: var(--card-bg);
  color: var(--text-body);
  box-shadow: 0 12px 30px rgba(16, 37, 38, 0.1);
}

:root[data-theme="light"] body.tg-mini-app .section-heading--page {
  border-color: var(--card-border);
  background:
    radial-gradient(circle at 100% 0, rgba(15, 118, 110, 0.12), transparent 42%),
    linear-gradient(135deg, #ffffff, #e7f3ef);
  color: var(--text-main);
  box-shadow: 0 12px 28px rgba(16, 37, 38, 0.1);
}

:root[data-theme="light"] body.tg-mini-app .section-heading--page h1,
:root[data-theme="light"] body.tg-mini-app .info-card h2,
:root[data-theme="light"] body.tg-mini-app .info-card h3,
:root[data-theme="light"] body.tg-mini-app .contact-card h2,
:root[data-theme="light"] body.tg-mini-app .contact-card h3,
:root[data-theme="light"] body.tg-mini-app .contact-group__title,
:root[data-theme="light"] body.tg-mini-app .steps strong,
:root[data-theme="light"] body.tg-mini-app .home-quick-grid .quick-card strong,
:root[data-theme="light"] body.tg-mini-app .home-popular-list .tg-list-card strong {
  color: var(--text-main);
  text-shadow: none;
}

:root[data-theme="light"] body.tg-mini-app .section-heading--page + .section-intro,
:root[data-theme="light"] body.tg-mini-app .view > .section-intro,
:root[data-theme="light"] body.tg-mini-app .info-card p,
:root[data-theme="light"] body.tg-mini-app .contact-card p,
:root[data-theme="light"] body.tg-mini-app .card-copy,
:root[data-theme="light"] body.tg-mini-app .contact-note,
:root[data-theme="light"] body.tg-mini-app .route-meta,
:root[data-theme="light"] body.tg-mini-app .route-meta div,
:root[data-theme="light"] body.tg-mini-app .compact-card__text,
:root[data-theme="light"] body.tg-mini-app .partner-badge__text,
:root[data-theme="light"] body.tg-mini-app .card-premium-panel__text,
:root[data-theme="light"] body.tg-mini-app .tg-list-card small {
  color: var(--text-muted);
  text-shadow: none;
}

:root[data-theme="light"] body.tg-mini-app .catalog-search__input,
:root[data-theme="light"] body.tg-mini-app .map-search input,
:root[data-theme="light"] body.tg-mini-app .map-radius-select,
:root[data-theme="light"] body.tg-mini-app .map-area-fallback select {
  border-color: var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
}

:root[data-theme="light"] body.tg-mini-app .catalog-search__input::placeholder,
:root[data-theme="light"] body.tg-mini-app .map-search input::placeholder {
  color: var(--text-soft);
  opacity: 1;
}

:root[data-theme="light"] body.tg-mini-app .filter-chip,
:root[data-theme="light"] body.tg-mini-app .contact-button,
:root[data-theme="light"] body.tg-mini-app .card-actions .card-action,
:root[data-theme="light"] body.tg-mini-app .card-actions .card-cta,
:root[data-theme="light"] body.tg-mini-app .card-actions .open-section-action,
:root[data-theme="light"] body.tg-mini-app .card-actions .favorite-button,
:root[data-theme="light"] body.tg-mini-app .card-share-actions .card-share-button,
:root[data-theme="light"] body.tg-mini-app .card-share-actions .card-feedback-button,
:root[data-theme="light"] body.tg-mini-app .card-share-actions .favorite-button,
:root[data-theme="light"] body.tg-mini-app .card-share-actions .open-section-action,
:root[data-theme="light"] body.tg-mini-app .compact-card__actions .compact-card__detail,
:root[data-theme="light"] body.tg-mini-app .compact-card__actions .favorite-button,
:root[data-theme="light"] body.tg-mini-app .compact-card__actions .favorite-button--compact,
:root[data-theme="light"] body.tg-mini-app .map-card-button,
:root[data-theme="light"] body.tg-mini-app .map-tools button,
:root[data-theme="light"] body.tg-mini-app .map-cta-panel button,
:root[data-theme="light"] body.tg-mini-app .map-selected-card__close,
:root[data-theme="light"] body.tg-mini-app .map-filter-chip {
  border-color: var(--border-mint);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

:root[data-theme="light"] body.tg-mini-app .filter-chip.is-active,
:root[data-theme="light"] body.tg-mini-app .filter-chip[aria-pressed="true"],
:root[data-theme="light"] body.tg-mini-app .map-card-button--primary,
:root[data-theme="light"] body.tg-mini-app .map-filter-chip.is-active,
:root[data-theme="light"] body.tg-mini-app .nav-item.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--button-text);
}

:root[data-theme="light"] body.tg-mini-app .card-tip,
:root[data-theme="light"] body.tg-mini-app .contact-note,
:root[data-theme="light"] body.tg-mini-app .route-meta,
:root[data-theme="light"] body.tg-mini-app .trust-badges,
:root[data-theme="light"] body.tg-mini-app .card-premium-panel,
:root[data-theme="light"] body.tg-mini-app .steps li {
  border-color: var(--card-border);
  background: var(--card-bg-strong);
  color: var(--text-body);
}

:root[data-theme="light"] body.tg-mini-app .card-tip strong,
:root[data-theme="light"] body.tg-mini-app .route-meta strong,
:root[data-theme="light"] body.tg-mini-app .contact-note strong,
:root[data-theme="light"] body.tg-mini-app .detail-label,
:root[data-theme="light"] body.tg-mini-app .partner-badge__text span {
  color: var(--accent-strong);
}

/* CARD READABILITY PASS */
.card-list,
.contact-group__grid,
.compact-card-grid {
  align-items: start;
  grid-auto-rows: auto;
}

#prices-view .card-list,
#safety-view .card-list,
#routes-view .card-list,
#help-view #contacts-list:not(.contact-directory),
#help-view .contact-group__grid {
  align-items: start;
  grid-auto-rows: auto;
}

.info-card,
.contact-card,
.compact-card,
#prices-view .info-card,
#safety-view .info-card,
#routes-view .info-card,
#help-view .contact-card {
  display: grid;
  height: auto;
  min-height: 0;
  max-height: none;
  grid-template-rows: auto auto;
  overflow: hidden;
  color: var(--text-body);
}

.info-card .card-body,
.contact-card .card-body,
#help-view .contact-card .card-body {
  display: grid;
  min-height: 0;
  gap: 8px;
  overflow: visible;
}

.info-card h3,
.contact-card h3,
.compact-card h3 {
  color: var(--text-main);
  font-weight: 780;
  letter-spacing: -0.01em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.contact-card__media {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg-strong);
}

.contact-card__image {
  display: block;
  width: 100%;
  height: clamp(78px, 18vw, 116px);
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.info-card .card-copy,
.contact-card .card-copy,
.compact-card__text,
.compact-card__meta,
.contact-note,
.card-tip,
.route-meta,
.partner-badge__text {
  color: var(--text-muted);
  line-height: 1.46;
}

.contact-note,
.card-tip,
.route-meta,
.trust-badges,
.partner-badge,
.compact-card__meta {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg-strong);
  color: var(--text-body);
  box-shadow: none;
}

.card-alert {
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.11);
  color: var(--text-body);
  line-height: 1.46;
  box-shadow: none;
}

.card-tip strong,
.route-meta strong,
.contact-note strong,
.partner-badge__label,
.partner-badge__text span,
.detail-label,
.contact-value__label,
.compact-card__meta strong {
  color: var(--accent-mint);
  font-weight: 800;
}

.route-meta > div {
  color: inherit;
}

.price-main {
  color: var(--accent-mint);
  font-weight: 800;
}

.contact-values {
  display: none;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.contact-button,
.contact-actions .card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  max-width: none;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.contact-button--cta,
.contact-button--whatsapp {
  border-color: transparent;
  background: var(--teal);
  color: #ffffff;
}

.card-actions,
.card-share-actions,
.compact-card__actions,
.info-card__actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 10px;
}

.card-actions > *,
.card-share-actions > *,
.compact-card__actions > *,
.info-card__actions > *,
.result-actions > *,
.favorite-button,
.card-action,
.card-cta,
.open-section-action,
.compact-card__detail,
.card-share-button,
.card-feedback-button,
.details-button,
.detail-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: max-content;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: none;
}

.favorite-button,
.favorite-button--compact {
  height: 30px;
  min-height: 30px;
}

@media (max-width: 640px) {
  .card-actions,
  .card-share-actions,
  .compact-card__actions,
  .info-card__actions,
  .result-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 10px;
  }

  .card-actions > *,
  .card-share-actions > *,
  .compact-card__actions > *,
  .info-card__actions > *,
  .result-actions > *,
  .card-actions .favorite-button,
  .card-actions .card-action,
  .card-actions .card-cta,
  .card-actions .open-section-action,
  .compact-card__actions .compact-card__detail,
  .compact-card__actions .favorite-button {
    width: auto;
    max-width: max-content;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12.5px;
  }
}

.detail-gallery {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.detail-gallery__item {
  background: rgba(255, 255, 255, 0.055);
}

.detail-gallery__item:first-child {
  grid-column: 1 / -1;
}

.detail-gallery__image {
  max-height: 180px;
  background: rgba(255, 255, 255, 0.04);
  object-fit: contain;
}

.detail-gallery__item:first-child .detail-gallery__image {
  max-height: 420px;
  aspect-ratio: 16 / 10;
}

body.tg-mini-app .card-list,
body.tg-mini-app .contact-directory,
body.tg-mini-app .contact-group__grid,
body.tg-mini-app .compact-card-grid {
  align-items: start;
  grid-auto-rows: auto;
}

body.tg-mini-app .info-card,
body.tg-mini-app .contact-card,
body.tg-mini-app .compact-card {
  height: auto;
  min-height: 0;
  max-height: none;
}

body.tg-mini-app .contact-actions {
  border-color: var(--tg-border);
}

body.tg-mini-app .contact-button,
body.tg-mini-app .contact-actions .card-cta {
  min-height: 42px;
  border: 1px solid var(--border-mint);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: none;
}

body.tg-mini-app .contact-button--cta,
body.tg-mini-app .contact-button--whatsapp {
  border-color: transparent;
  background: var(--tg-accent);
  color: var(--button-text);
}

body.tg-mini-app .detail-gallery__item {
  background: rgba(255, 255, 255, 0.055);
}

body.tg-mini-app .detail-gallery__image {
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 640px) {
  .detail-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* SEO GUIDE LINKS */
.seo-guide-strip {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(110, 242, 226, 0.2);
  border-radius: 22px;
  background: rgba(230, 248, 250, 0.08);
}

.seo-guide-strip__header h2 {
  margin: 0 0 4px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.seo-guide-strip__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.seo-guide-links,
.seo-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-guide-chip,
.seo-footer-links a {
  color: var(--text);
  text-decoration: none;
}

.seo-guide-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(110, 242, 226, 0.26);
  border-radius: 999px;
  background: rgba(8, 182, 166, 0.14);
  font-size: 0.9rem;
  font-weight: 800;
}

.seo-guide-chip:hover,
.seo-guide-chip:focus-visible,
.seo-footer-links a:hover,
.seo-footer-links a:focus-visible {
  border-color: rgba(110, 242, 226, 0.52);
  color: var(--accent);
}

.seo-footer-links {
  margin: 18px 0 0;
  padding: 0 2px calc(var(--bottom-nav-clearance) + 10px);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.seo-footer-links a:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--muted);
}

body.tg-mini-app .seo-footer-links {
  padding-bottom: calc(var(--bottom-nav-clearance) + 18px);
}

.analytics-consent-banner {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--nav-height) + max(14px, env(safe-area-inset-bottom, 0px)));
  left: max(14px, env(safe-area-inset-left, 0px));
  z-index: 2200;
  display: grid;
  gap: 12px;
  width: min(720px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--consent-border);
  border-radius: 18px;
  background: var(--consent-bg);
  color: var(--ink);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.analytics-consent-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

.analytics-consent-banner a {
  color: var(--accent-mint);
  font-weight: 800;
  text-underline-offset: 3px;
}

.analytics-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-consent-banner__button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border-mint);
  border-radius: 999px;
  background: rgba(25, 199, 185, 0.12);
  color: var(--accent-mint);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.analytics-consent-banner__button--primary {
  border-color: transparent;
  background: var(--teal);
  color: var(--button-text);
}
