/* Предохранитель от горизонтального скролла (зум браузера, масштаб Windows,
   декоративные элементы): страница никогда не ездит вбок; широкие таблицы
   по-прежнему скроллятся внутри своих контейнеров. */
html {
  overflow-x: hidden;
  overflow-x: clip;
}

:root {
  --bg: #f4f8fc;
  --bg-white: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-soft: #e0f2fe;
  --success: #059669;
  --success-soft: #d1fae5;
  --success-border: #6ee7b7;
  --busy: #ea580c;
  --busy-soft: #ffedd5;
  --vip: #d97706;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Golos Text", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1140px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  height: 2.7rem;
  width: auto;
  flex: none;
  display: block;
}
.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand__name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand__tag {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.district-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 0.85rem;
}
.district-picker label { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.district-picker select {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  padding: 0.4rem 0.6rem;
  min-width: 140px;
  cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}
.btn-ghost {
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-owner {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid #bae6fd;
}

/* ── USP Hero ── */
.hero-usp {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 45%, #0ea5e9 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.hero-usp::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.hero-usp__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-usp h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero-usp__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 520px;
  line-height: 1.55;
}
.hero-usp__highlight {
  color: #fde68a;
  font-weight: 800;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.hero-cta__light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.hero-cta__light:hover { background: rgba(255,255,255,0.25); }
.stat-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Audience cards ── */
.audience {
  padding: 2rem 0;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}
.audience__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.audience-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.audience-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.audience-card__icon--driver { background: var(--primary-soft); }
.audience-card__icon--owner { background: var(--success-soft); }
.audience-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.audience-card p { margin: 0 0 1rem; color: var(--text-soft); font-size: 0.92rem; }
.audience-card ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}
.audience-card li { margin-bottom: 0.25rem; }

/* ── Driver queue rules ── */
.driver-rules {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}
.driver-rules--compact { margin-top: 1rem; padding: 1rem; }
.driver-rules__title { margin: 0 0 0.5rem; font-size: 1.05rem; color: #92400e; }
.driver-rules__lead { margin: 0 0 1rem; font-size: 0.9rem; color: #78350f; line-height: 1.55; }
.driver-rules__list { margin: 0 0 1rem; padding-left: 1.25rem; color: #78350f; }
.driver-rules__list > li { margin-bottom: 0.85rem; }
.driver-rules__list > li > strong { display: block; font-size: 0.92rem; color: #92400e; margin-bottom: 0.2rem; }
.driver-rules__list > li p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: #a16207; }
.driver-rules__list > li p strong { color: #92400e; }
.driver-rules__note {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.45;
}
.time-badge {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.88em;
}

/* ── What is box ── */
.what-is {
  padding: 0 0 0.5rem;
  margin-top: -0.5rem;
}
.what-is__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.what-is__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.what-is h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.what-is p { margin: 0; color: var(--text-soft); font-size: 0.92rem; line-height: 1.6; }

/* ── Page nav in header ── */
.page-nav {
  display: flex;
  gap: 0.15rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
}
.page-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
}
.page-nav a:hover { background: var(--bg-white); color: var(--primary); }

/* ── Map layout + explain ── */
.map-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
}
.explain-box {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.explain-box h3 { margin: 0 0 0.85rem; font-size: 0.95rem; }
.explain-box__tip {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--primary-dark);
  line-height: 1.45;
}
.meaning-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.meaning-row:last-of-type { margin-bottom: 0; }
.meaning-row strong { display: block; font-size: 0.88rem; margin-bottom: 0.1rem; }
.meaning-row p { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.meaning-row__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.meaning-row__dot--free { background: #10b981; }
.meaning-row__dot--busy { background: #ea580c; }
.meaning-row__dot--blue { background: #3b82f6; }

/* ── Guide sections ── */
.guide-section {
  padding: 3rem 0;
  background: var(--bg-white);
  border-top: 1px solid var(--line);
}
.guide-section--alt { background: var(--bg); }
.guide-section__head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.guide-section__emoji {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.guide-section__head--visitor .guide-section__emoji { background: var(--primary-soft); }
.guide-section__head--owner .guide-section__emoji { background: var(--success-soft); }
.guide-section__head h2 { margin: 0 0 0.2rem; font-size: 1.35rem; }
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .guide-grid { grid-template-columns: 1fr; }
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  counter-reset: none;
}
.step {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.guide-section--alt .step__num {
  background: var(--success-soft);
  color: #047857;
}
.step__body strong { display: block; margin-bottom: 0.2rem; font-size: 0.95rem; }
.step__body p { margin: 0; color: var(--text-soft); font-size: 0.88rem; line-height: 1.5; }
.guide-aside {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}
.guide-section--alt .guide-aside { background: var(--bg-white); }
.guide-aside h3 { margin: 0 0 0.85rem; font-size: 0.95rem; }
.status-demo { margin-bottom: 1rem; }
.status-demo p { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--muted); }
.guide-note {
  margin-top: 0.85rem;
  padding: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #9a3412;
  line-height: 1.45;
}
.guide-note--success {
  background: var(--success-soft);
  border-color: var(--success-border);
  color: #047857;
}
.benefit-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.benefit-list li { margin-bottom: 0.45rem; }
.guide-cta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── FAQ ── */
.faq-section {
  padding: 3rem 0 4rem;
  background: var(--bg-white);
  border-top: 1px solid var(--line);
}
.faq-section h2 { margin: 0 0 1.25rem; font-size: 1.35rem; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.65rem;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.faq-item summary {
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.faq-item a { color: var(--primary); }

.wash-card__addr { font-size: 0.88rem; margin: 0; }

/* ── Live queue status badge ── */
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.live-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.live-status--free {
  background: var(--success-soft);
  color: #047857;
  border: 1px solid var(--success-border);
}
.live-status--free .live-status__dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse 2s infinite;
}
.live-status--busy {
  background: var(--busy-soft);
  color: #c2410c;
  border: 1px solid #fdba74;
}
.live-status--busy .live-status__dot { background: var(--busy); }
.live-status--none {
  background: #f1f5f9;
  color: var(--muted);
  border: 1px solid var(--line);
}
.live-status--lg {
  padding: 0.65rem 1.1rem;
  font-size: 1rem;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Map ── */
.map-section { padding: 0 0 2.5rem; }
.map-wrap {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}
.map-wrap__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.75rem;
  flex-wrap: wrap;
}
.map-wrap__label h2 { margin: 0; font-size: 1rem; }
#map {
  width: 100%;
  height: min(68vh, 600px);
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
}
.map-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.map-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot--free { background: #10b981; }
.legend-dot--busy { background: #ea580c; }

/* ── Wash cards ── */
.section-head { margin-bottom: 1.25rem; }
.section-head h2 { margin: 0 0 0.25rem; font-size: 1.35rem; }
.nearby-section { padding: 0 0 3rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.wash-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.wash-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.wash-card--month,
.wash-card--vip { border-color: #fcd34d; }
.wash-card__img img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.wash-card__body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}
.wash-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  /* длинное название + бейджи: чипы аккуратно переносятся под заголовок */
  flex-wrap: wrap;
}
.wash-card__body h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.wash-card__body h3 a { color: inherit; text-decoration: none; }
.wash-card__body h3 a:hover { color: var(--primary); }
.wash-card__meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 0.25rem;
}
.wash-card__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── Detail page ── */
.detail-page { padding: 1.5rem 0 3rem; }
.detail-hero-status {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.detail-hero-status__hint { font-size: 0.9rem; }
.explain-box--inline {
  margin-bottom: 1rem;
  box-shadow: none;
  background: var(--bg);
}
.meaning-grid .meaning-row { margin-bottom: 0.5rem; }
.detail-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
@media (min-width: 860px) {
  .detail-card { grid-template-columns: 1fr 1.1fr; }
}
.detail-photo { width: 100%; min-height: 260px; object-fit: cover; }
.detail-content { padding: 1.5rem; }
.detail-content h1 { margin: 0.5rem 0; font-size: 1.6rem; line-height: 1.2; }
.detail-address { color: var(--muted); margin: 0 0 1rem; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-soft);
  white-space: nowrap; /* бейдж всегда в одну строку, не «круглый блоб» */
}
.badge-month,
.badge-vip { background: #fffaeb; color: #8a5a00; border: 1px solid #f2dfa4; }
.badge-queue { background: var(--primary-soft); color: var(--primary-dark); }
.detail-facts { display: grid; gap: 0.65rem; margin: 1rem 0; }
.detail-facts dt { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.detail-facts dd { margin: 0.1rem 0 0; font-weight: 600; }
.detail-description {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.detail-description h2 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.detail-description__text {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  max-width: 62ch;
}
.detail-description--wide {
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.detail-description--wide .detail-description__text {
  max-width: none;
  white-space: normal;
}
.detail-description__text h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.35rem;
  color: var(--text);
}
.detail-description__text ul,
.detail-description__text ol {
  margin: 0.5rem 0;
  padding-left: 1.35rem;
}
.detail-description__text li { margin: 0.25rem 0; }
.page-detail .detail-description__text p { margin: 0 0 20px; }
.page-detail .detail-description__text p:last-child { margin-bottom: 0; }
.detail-card--info { grid-template-columns: 1fr; }
.badge-queue--lg {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}
.detail-route { margin-top: 1rem; }
.detail-map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}
.detail-map-wrap[hidden] { display: none !important; }
.detail-map {
  height: 280px;
  border-radius: 0;
  border: none;
  overflow: hidden;
  margin-top: 0;
}
.detail-route__btn {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
.detail-route__btn:hover { filter: brightness(1.05); }
.detail-route__hint {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.detail-queue-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--primary-soft) 0%, #dbeafe 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}
.detail-queue-banner__badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-queue-banner__title {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.detail-queue-banner__text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  max-width: 42rem;
}
.detail-queue-banner__cta { flex-shrink: 0; }
.detail-description p { color: var(--text-soft); margin: 0; line-height: 1.6; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* ── Queue panel on detail ── */
.queue-panel {
  background: var(--bg-white);
  border: 2px solid var(--primary-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.queue-panel--accent {
  border-color: var(--primary);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.14);
}
.queue-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.queue-panel__head h2 { margin: 0; font-size: 1.2rem; }
.queue-panel__sub { margin: 0; color: var(--muted); font-size: 0.9rem; }
.queue-list { margin-bottom: 1rem; }
.queue-list ul { list-style: none; padding: 0; margin: 0; }
.queue-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.queue-free-msg {
  text-align: center;
  padding: 1.5rem;
  color: var(--success);
  font-weight: 800;
  font-size: 1.15rem;
}
.queue-panel__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.footer-logo { display: block; width: auto; height: 3.6rem; max-width: 100%; margin: 0 0 0.7rem; }
.footer-brand__city { color: var(--primary); }
.footer-grid h4 { margin: 0 0 0.5rem; font-size: 0.9rem; }
.footer-grid p, .footer-grid a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  line-height: 1.6;
}
.footer-grid a:hover { color: var(--primary); }
/* Легенда домиков-меток в футере (графикой, вместо текстовой строки) */
.footer-legend { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-legend li { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.84rem; line-height: 1.3; }
.footer-legend__pin { flex: none; filter: drop-shadow(0 1px 2px rgba(20,30,45,.2)); }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-telegram { margin-top: 0.65rem; }
.footer-telegram__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #0088cc !important;
}
.header-tg { white-space: nowrap; }
.header-mobile-only { display: none; }

/* Error & legal pages */
.error-page { padding: 2.5rem 1rem 4rem; }
.error-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.error-card__code {
  font-size: 3rem;
  font-weight: 900;
  color: #cbd5e1;
  margin: 0;
  line-height: 1;
}
.error-card__badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.error-card h1 { margin: 0.5rem 0; font-size: 1.35rem; }
.error-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.error-card__help { margin: 1rem 0 0; font-size: 0.88rem; color: var(--muted); }

.legal-page {
  max-width: 720px;
  padding: 2rem 1rem 3rem;
  line-height: 1.65;
}
.legal-page h1 { margin: 0 0 0.35rem; }
.legal-page__updated { color: var(--muted); font-size: 0.88rem; margin: 0 0 1.5rem; }
.legal-page section { margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.legal-page ul { margin: 0; padding-left: 1.25rem; }
.legal-page li { margin-bottom: 0.35rem; }

.sitemap-section { margin-bottom: 1.5rem; }
.sitemap-list { margin: 0; padding: 0; list-style: none; }
.sitemap-list li { margin-bottom: 0.35rem; }
.sitemap-list a { color: var(--primary); text-decoration: none; font-weight: 600; }
.sitemap-list a:hover { text-decoration: underline; }
.sitemap-list--cols {
  columns: 2;
  column-gap: 1.5rem;
}
@media (max-width: 600px) {
  .sitemap-list--cols { columns: 1; }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  padding: 0.85rem 0;
  backdrop-filter: blur(8px);
}
.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cookie-banner p { margin: 0; font-size: 0.85rem; line-height: 1.45; flex: 1; min-width: 200px; }
.cookie-banner a { color: #7dd3fc; }

/* ── Auth pages ── */
.auth-page {
  min-height: 80vh;
  padding: 2rem 1rem 3rem;
}
.auth-layout {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .auth-layout { grid-template-columns: 1fr; }
}
.auth-side {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.auth-side h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.auth-side > p { margin: 0 0 1rem; color: var(--text-soft); font-size: 0.9rem; }
.auth-side .steps { margin-bottom: 0; }
.auth-side .step { padding-bottom: 0.75rem; margin-bottom: 0.75rem; }
.auth-page--centered {
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.auth-card label { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.75rem; }
.auth-card input {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
}
.flash-error { color: #dc2626; font-size: 0.9rem; }
.flash-success { color: var(--success); font-size: 0.9rem; }

/* ── Owner cabinet ── */
.cabinet-page { padding: 1.5rem 0 3rem; }
.cabinet-help {
  background: var(--primary-soft);
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--primary-dark);
  line-height: 1.5;
}
.cabinet-help strong { display: block; margin-bottom: 0.25rem; }
.claim-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.claim-form input {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  min-width: 140px;
}
.howto-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-bottom: 1rem;
}
.howto-box h3 { margin: 0 0 0.65rem; font-size: 0.95rem; }
.howto-box ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}
.howto-box li { margin-bottom: 0.35rem; }

/* ── Всплывающая карточка мойки на карте ── */
.wash-balloon {
  font-family: var(--font);
  width: 262px;
  max-width: 84vw;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.wb-photo {
  position: relative;
  display: block;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #e3f3ea 0%, #d8edf9 60%, #e8f0fb 100%);
  overflow: hidden;
}
.wb-photo__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wb-photo__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 46px;
  opacity: 0.5;
}
.wb-photo__status { position: absolute; left: 10px; bottom: 10px; }
.wb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
}
.wb-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wb-status--free { background: #e6f9ee; color: #0b7a3e; }
.wb-status--busy { background: #e0f2fe; color: #075985; }
.wb-body { padding: 10px 12px 12px; }
.wb-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.wb-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
}
.wb-badge--month { background: #fffaeb; color: #8a5a00; border: 1px solid #f2dfa4; }
.wb-badge--fav { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.wb-badge--queue { background: var(--primary-soft, #dff5e8); color: #00753a; border: 1px solid #b9e7cd; }
.wb-title { margin: 0 0 3px; font-size: 14.5px; line-height: 1.25; letter-spacing: -0.01em; }
.wb-title a { color: var(--text, #1a1814); text-decoration: none; }
.wb-title a:hover { color: var(--primary); }
.wb-addr { margin: 0 0 6px; font-size: 12px; color: #6b7280; line-height: 1.4; }
.wb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 9px;
  flex-wrap: wrap; /* если часам и цене тесно — цена уходит на строку ниже */
}
.wb-meta__item { font-size: 12.5px; color: #4b5563; min-width: 0; }
/* Часы работы: каждая группа дней с новой строки, выходные — приглушённо */
.wb-hours { display: flex; gap: 5px; align-items: flex-start; }
.wb-hours__rows { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wb-hours__row { line-height: 1.4; } /* перенос разрешён — текст не обрезается */
.wb-hours__row--off { color: #9ca3af; }
.wb-meta__price {
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}
.wb-closed {
  margin: 6px 0 8px;
  padding: 8px 11px;
  background: #eef4fb;
  border: 1px solid #cfe0f2;
  border-radius: 9px;
  color: #1e4f7a;
  font-size: 13px;
  line-height: 1.4;
}
.wb-actions { display: grid; gap: 5px; }
.wb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: filter 0.15s ease, background 0.15s ease;
}
.wb-btn--primary {
  background: linear-gradient(135deg, #0cb85f, var(--primary, #00a046));
  color: #fff !important;
  box-shadow: 0 6px 14px -6px rgba(0, 160, 70, 0.55);
}
.wb-btn--primary:hover { filter: brightness(1.05); }
.wb-btn--ghost { border: 1.5px solid #e5e7eb; color: #374151 !important; background: #fff; }
.wb-btn--ghost:hover { background: #f9fafb; }

/* Обёртка стандартного балуна Яндекс-карт: убираем поля, скругляем углы,
   аккуратная кнопка закрытия поверх фото. Только внутри карты #map. */
#map [class*="balloon__content"] { margin: 0 !important; padding: 0 !important; }
#map [class*="balloon__layout"] { border-radius: 14px; overflow: hidden; }
#map [class*="balloon__close-button"] {
  width: 26px !important;
  height: 26px !important;
  margin: 8px 8px 0 0;
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  opacity: 1;
}

/* Балун на мобильных — компактный попап у метки (панель отключена в map.js):
   узкая карточка, фото пониже, всё умещается на карте; если контента много —
   внутренний скролл. */
@media (max-width: 768px) {
  #map .wash-balloon { width: 212px; max-width: 64vw; border-radius: 12px; }
  /* фото — узкая полоска: карта на телефоне низкая (~370px), балун обязан
     быть заметно ниже её, иначе вылезает за край и autoPan не спасает */
  #map .wash-balloon .wb-photo { aspect-ratio: 3 / 1; }
  #map .wash-balloon .wb-body { padding: 7px 9px 9px; }
  #map .wash-balloon .wb-badges { margin-bottom: 4px; }
  #map .wash-balloon .wb-title { font-size: 13px; margin-bottom: 2px; }
  #map .wash-balloon .wb-addr { font-size: 11px; margin-bottom: 4px; }
  /* часы и цена в столбик — на узкой карточке в одну строку им тесно */
  #map .wash-balloon .wb-meta {
    margin-bottom: 6px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  #map .wash-balloon .wb-meta__item,
  #map .wash-balloon .wb-meta__price { font-size: 11px; }
  #map .wash-balloon .wb-meta__price { padding: 2px 8px; }
  #map .wash-balloon .wb-hours__rows { gap: 0; }
  #map .wash-balloon .wb-hours__row { white-space: normal; }
  #map .wash-balloon .wb-status { padding: 3px 8px; font-size: 10.5px; }
  #map .wash-balloon .wb-actions { gap: 4px; }
  #map .wash-balloon .wb-btn { min-height: 30px; padding: 5px 10px; font-size: 12px; border-radius: 8px; }
  #map .wash-balloon .wb-badge { font-size: 9.5px; padding: 1px 6px; }
  #map [class*="balloon__content"] {
    max-height: 52vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .hero-usp h1 { max-width: none; }
  /* Мобильная шапка: как на главной — название слева, «Владельцам» закреплена
     в правом верхнем углу (absolute). Остальные кнопки шапки (например «← м. …»
     на странице мойки) остаются отдельной строкой под названием, как раньше. */
  .header-inner { position: relative; align-items: flex-start; flex-wrap: wrap; gap: 0 1rem; }
  .brand { min-width: 0; flex: 1 1 auto; padding-right: 6.8rem; gap: 0.5rem; }
  .brand__mark { height: 2.2rem; }
  .brand__tag { white-space: normal; line-height: 1.35; }
  .btn-owner.header-mobile-only { position: absolute; top: 0.8rem; right: 0; }
  .header-nav { width: 100%; justify-content: flex-end; gap: 0.35rem; }
  .page-nav { display: none; }
  .header-desktop-only { display: none !important; }
  .header-mobile-only {
    display: inline-flex !important;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
  }
}

/* ── Блок «верификация номера один раз» в правилах очереди ── */
.driver-rules__verify {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 18px 0 22px;
  padding: 16px 18px;
  background: rgba(0, 160, 70, .07);
  border: 1px solid rgba(0, 160, 70, .22);
  border-radius: 14px;
}
.driver-rules__verify-icon { font-size: 26px; line-height: 1; flex: 0 0 auto; }
.driver-rules__verify-title {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 800;
  color: #0a7c39;
}
.driver-rules__verify-body p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #3a3730; }
.driver-rules__verify-body strong { color: #0a7c39; }
@media (max-width: 480px) {
  .driver-rules__verify { flex-direction: column; gap: 8px; padding: 14px; }
}

/* ── Рекламные баннеры (управление: /admin/banners) ── */
.site-banner { margin: 1.1rem auto; text-align: center; }
.site-banner img { max-width: 100%; height: auto; border-radius: 12px; }
.site-banner--home { width: min(1140px, 92vw); }
.site-banner--queue { margin: 0.9rem 0 0.2rem; }
.site-banner--wash { margin: 1rem 0; }

/* ── Плавающий виджет «Любимые мойки» (список избранного из cookie) ── */
.fav-widget { position: fixed; left: 16px; bottom: 16px; z-index: 1000; }
.fav-widget__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 46px; padding: 0 14px 0 12px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  cursor: pointer; font: inherit; font-weight: 700; color: #0f172a;
}
.fav-widget__toggle:hover { border-color: #fcd34d; }
.fav-widget__star { color: #f59e0b; font-size: 20px; line-height: 1; }
.fav-widget__count {
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-grid; place-items: center;
  background: #f59e0b; color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 800;
}
.fav-widget__panel {
  position: absolute; left: 0; bottom: 56px;
  width: min(320px, 84vw);
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}
.fav-widget__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem .9rem; border-bottom: 1px solid #eef2f7;
}
.fav-widget__close {
  border: none; background: none; cursor: pointer; font-size: 1rem; color: #64748b; line-height: 1;
}
.fav-widget__list { list-style: none; margin: 0; padding: .3rem; max-height: 50vh; overflow-y: auto; }
.fav-item {
  display: flex; align-items: center; gap: .4rem;
  padding: .1rem .2rem;
}
.fav-item__link {
  flex: 1; padding: .55rem .6rem; border-radius: 8px;
  color: #0f172a; text-decoration: none; font-weight: 600; font-size: .92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fav-item__link:hover { background: #f8fafc; color: #0369a1; }
.fav-item__del {
  flex: none; width: 30px; height: 30px; border: none; background: none;
  color: #94a3b8; cursor: pointer; border-radius: 8px; font-size: .9rem;
}
.fav-item__del { flex: none; }
.fav-item__del:hover { background: #fef2f2; color: #dc2626; }
.fav-widget__empty { margin: 0; padding: .9rem; font-size: .85rem; color: #64748b; }

/* Мобильный: панель — нижний лист по центру, крупнее крестики удаления */
@media (max-width: 640px) {
  .fav-widget__panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 74px;
    width: auto;
    border-radius: 16px;
    max-height: 62vh;
  }
  .fav-widget__list { max-height: calc(62vh - 52px); }
  .fav-item__link { font-size: 1rem; padding: .7rem .7rem; }
  .fav-item__del { width: 40px; height: 40px; font-size: 1.05rem; }
}

/* Переключатель города в шапке */
.city-switch { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.city-switch__pin { font-size: 14px; }
.city-switch__select { border: 1px solid #d5dee7; border-radius: 8px; padding: 5px 8px; font-size: 14px;
  background: #fff; color: #17303b; cursor: pointer; max-width: 160px; }
