/* АЗС — ГДЕ ТОПЛИВО */

.azs-page {
  --bg: #0b0b12;
  --bg-elev: #14141f;
  --bg-card: #161622;
  --ink: #f3f4f8;
  --muted: rgba(210, 214, 230, 0.62);
  --line: rgba(255, 255, 255, 0.08);
  --blue: #4f8cff;
  --violet: #8b5cf6;
  --cyan: #5eb7ff;
  --ok: #32d583;
  --low: #f5a524;
  --none: #f04438;
  --warn: #c9782e;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79, 140, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(139, 92, 246, 0.14), transparent 50%),
    linear-gradient(180deg, #10101a 0%, var(--bg) 40%, #09090f 100%);
  color: var(--ink);
  font-family: var(--font);
  position: relative;
  overflow-x: hidden;
}

.azs-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  box-sizing: border-box;
}

.azs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.azs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.azs-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5b8cff, #7c3aed);
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.28);
  color: #fff;
}

.azs-logo svg {
  width: 20px;
  height: 20px;
}

.azs-brand-text {
  min-width: 0;
}

.azs-brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.azs-brand-text span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.azs-loc-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(79, 140, 255, 0.35);
  background: rgba(79, 140, 255, 0.08);
  color: #c9dcff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  max-width: 46%;
}

.azs-loc-short {
  display: none;
}

.azs-loc-btn:active {
  transform: scale(0.97);
}

.azs-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.azs-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.azs-title em {
  font-style: normal;
  background: linear-gradient(90deg, #5eb7ff, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.azs-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(20, 20, 32, 0.9);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.azs-leg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(230, 233, 245, 0.88);
}

.azs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.azs-dot--ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(50, 213, 131, 0.18); }
.azs-dot--low { background: var(--low); box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.18); }
.azs-dot--none { background: var(--none); box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.18); }
.azs-dot--na { background: #6b7280; box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.18); }

.azs-map {
  position: relative;
  height: min(62vh, 460px);
  min-height: 360px;
  border-radius: 0;
  overflow: hidden;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #1a1f2b;
  margin: 0 -16px 14px;
  width: calc(100% + 32px);
}

.azs-leaflet {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #1a1f2b;
}

.azs-leaflet .leaflet-tile-pane {
  filter: none;
}

.azs-pin-wrap,
.azs-you-wrap {
  background: transparent !important;
  border: none !important;
}

.azs-pin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--ring, #32d583);
  background: #fff;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.azs-pin-face {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}

.azs-pin-face svg {
  width: 34px;
  height: 34px;
  display: block;
}

.azs-you-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4f8cff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(79, 140, 255, 0.28), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.azs-map-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 500;
  background: rgba(12, 12, 20, 0.88);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.azs-map-tools {
  position: absolute;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.azs-map-tools--zoom {
  right: 12px;
  bottom: 12px;
}

.azs-map-tools--center {
  left: 12px;
  bottom: 12px;
}

.azs-map-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 28, 0.92);
  color: #e8ebf5;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.azs-brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.azs-brand-badge svg {
  width: 44px;
  height: 44px;
  display: block;
}

.azs-warn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(201, 120, 46, 0.14);
  border: 1px solid rgba(201, 120, 46, 0.35);
  color: #f0c090;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 18px;
}

.azs-warn-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(201, 120, 46, 0.35);
  color: #ffd9a8;
  font-size: 13px;
  font-weight: 900;
}

.azs-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.azs-list-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.azs-sort {
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.azs-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.azs-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.azs-card:hover,
.azs-card:focus-visible {
  border-color: rgba(79, 140, 255, 0.4);
  outline: none;
}

.azs-card-top {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.azs-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 2px;
  min-width: 0;
  flex-wrap: wrap;
}

.azs-card-top > div:last-child {
  min-width: 0;
}

.azs-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}

.azs-card-addr {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.azs-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}

.azs-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.azs-fuels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.azs-fuel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
}

.azs-fuel b {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
  color: rgba(240, 242, 250, 0.92);
}

.azs-fuel-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.azs-fuel-status .azs-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.azs-fuel strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.azs-cta {
  margin-top: 16px;
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #4f8cff, #7c3aed);
  box-shadow: 0 12px 28px rgba(79, 140, 255, 0.28);
}

.azs-cta:active {
  transform: scale(0.98);
}

/* Auth overlay */
.azs-page .auth-step {
  display: none;
}

.azs-page .auth-step.active {
  display: block;
}

.azs-page.azs-auth-open #azs-hero {
  display: none;
}

.azs-page.azs-auth-open .azs-main {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.azs-page.azs-auth-open .container.svelte-vywflk,
.azs-page.azs-auth-open .auth.auth--phone.auth--regular.svelte-vywflk,
.azs-page.azs-auth-open .auth--regular.svelte-vywflk .form.svelte-vywflk {
  background: #141922 !important;
  border-radius: 20px;
}

.azs-page.azs-auth-open .auth.auth--phone.auth--regular.svelte-vywflk {
  margin: 12px 0 24px;
  padding: 8px 4px 16px;
  border: 1px solid rgba(79, 140, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.azs-page.azs-auth-open .input.input--secondary.input--neutral.svelte-14rzpox,
.azs-page.azs-auth-open .digit.digit--normal.svelte-j7f9bk {
  background: #1e2533 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f4f1ea !important;
}

.azs-page.azs-auth-open .subheader.svelte-ny25n1,
.azs-page.azs-auth-open .text-primary {
  color: #f4f1ea !important;
}

.azs-page.azs-auth-open .detail.svelte-ny25n1,
.azs-page.azs-auth-open .text-tertiary,
.azs-page.azs-auth-open .footer .description {
  color: rgba(244, 241, 234, 0.7) !important;
}

.azs-page.azs-auth-open .button--primary.svelte-23gx81 {
  background: linear-gradient(135deg, #4f8cff, #7c3aed) !important;
  color: #fff !important;
}

.azs-page.azs-auth-open .qr-phone-link,
.azs-page.azs-auth-open .back-link,
.azs-page.azs-auth-open .legal-link {
  color: #5eb7ff !important;
}

.azs-page.azs-auth-open #switch-to-qr-wrap {
  display: block !important;
  margin-top: 16px;
}

.azs-page.azs-auth-open #switch-to-qr-wrap[hidden] {
  display: none !important;
}

.azs-page.azs-auth-open #switch-to-qr {
  font-size: 15px;
  font-weight: 700;
  padding: 10px 0;
}

.azs-success {
  text-align: center;
  padding: 28px 8px;
}

.azs-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #fff;
  background: linear-gradient(135deg, #4f8cff, #7c3aed);
}

html.landing-azs,
html.landing-azs body {
  background: #0b0b12;
  height: auto !important;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html.landing-azs body {
  display: block !important;
  margin: 0;
  padding: 0;
}

html.landing-azs .azs-page {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html.landing-azs .azs-page .container.svelte-12qhfyh,
html.landing-azs .azs-page .container.svelte-vywflk,
html.landing-azs .azs-page .auth.auth--phone.auth--regular.svelte-vywflk,
html.landing-azs .azs-page .auth--regular.svelte-vywflk .form.svelte-vywflk {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  box-sizing: border-box;
}

html.landing-azs .azs-main {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.azs-page:not(.azs-auth-open) .azs-main > .container.svelte-12qhfyh {
  background: transparent;
}

.azs-page:not(.azs-auth-open) .azs-main .background.svelte-vywflk {
  display: none;
}

.azs-page:not(.azs-auth-open) #auth-footer {
  display: none !important;
}

/* Mobile: no text collisions */
@media (max-width: 420px) {
  .azs-wrap {
    padding: 14px 14px 36px;
  }

  .azs-top {
    gap: 8px;
    margin-bottom: 14px;
  }

  .azs-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .azs-brand-text strong {
    font-size: 13px;
  }

  .azs-brand-text span {
    font-size: 10px;
  }

  .azs-loc-btn {
    padding: 7px 10px;
    font-size: 11px;
    max-width: none;
  }

  .azs-loc-full {
    display: none;
  }

  .azs-loc-short {
    display: inline;
  }

  .azs-title {
    font-size: 22px;
    line-height: 1.22;
    margin-bottom: 12px;
  }

  .azs-legend {
    gap: 8px 10px;
    padding: 9px 10px;
  }

  .azs-leg {
    font-size: 11px;
  }

  .azs-map {
    margin-left: -14px;
    margin-right: -14px;
    width: calc(100% + 28px);
    height: min(52vh, 380px);
    min-height: 300px;
  }

  .azs-list-head {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
  }

  .azs-list-head h2 {
    font-size: 16px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .azs-sort {
    font-size: 11px;
    flex: 0 0 auto;
  }

  .azs-card {
    padding: 12px;
  }

  .azs-card-top {
    gap: 10px;
    margin-bottom: 10px;
  }

  .azs-card-name {
    font-size: 13px;
    line-height: 1.25;
    gap: 5px;
  }

  .azs-card-addr {
    font-size: 11px;
    line-height: 1.35;
  }

  .azs-card-meta {
    gap: 8px;
    font-size: 11px;
  }

  .azs-fuels {
    gap: 5px;
  }

  .azs-fuel {
    padding: 7px 4px;
    min-width: 0;
  }

  .azs-fuel b {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .azs-fuel-status {
    font-size: 10px;
    gap: 3px;
    margin-bottom: 3px;
    white-space: nowrap;
  }

  .azs-fuel strong {
    font-size: 11px;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .azs-warn {
    font-size: 11px;
    gap: 8px;
    padding: 9px 10px;
  }

  .azs-cta {
    padding: 14px 16px;
    font-size: 14px;
  }
}

.azs-map.is-locked .leaflet-container {
  cursor: default;
}
