*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #102033;
  --muted: #536174;
  --soft: #6b7788;
  --line: #d8e0ea;
  --line-strong: #b9c6d6;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --surface-blue: #eef6ff;
  --blue: #155eef;
  --blue-strong: #0f3ea8;
  --teal: #0f766e;
  --green: #166534;
  --green-soft: #e7f7ec;
  --amber: #92400e;
  --amber-soft: #fff4d6;
  --red: #b42318;
  --red-soft: #fff0ee;
  --shadow-sm: 0 8px 24px rgba(16, 32, 51, 0.08);
  --shadow-md: 0 20px 50px rgba(16, 32, 51, 0.14);
  --radius: 8px;
  --radius-lg: 12px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(21, 94, 239, 0.16), transparent 26rem),
    radial-gradient(circle at 95% 18%, rgba(15, 118, 110, 0.14), transparent 24rem),
    linear-gradient(180deg, #f7fbff 0%, #eef3f8 48%, #ffffff 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(184, 198, 214, 0.7);
  backdrop-filter: blur(18px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.logo__mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.logo__mark img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.logo__text {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  color: #38465a;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav__link:hover {
  background: var(--surface-blue);
  color: var(--blue-strong);
}

.header__auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__greeting {
  max-width: 180px;
  color: var(--blue-strong);
  font-size: 0.9rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  border-radius: 99px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  padding: 64px 0;
}

.section--compact {
  padding: 24px 0 40px;
}

.section--alt {
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(216, 224, 234, 0.7);
  border-bottom: 1px solid rgba(216, 224, 234, 0.7);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section__title {
  font-size: clamp(1.7rem, 2.3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ink);
}

.section__lead {
  max-width: 440px;
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.hero {
  padding: 72px 0 32px;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 32px;
  align-items: stretch;
  min-width: 0;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 468px;
  padding: 40px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(16, 32, 51, 0.9), rgba(15, 62, 168, 0.82)),
    url("https://images.unsplash.com/photo-1519692933481-e162a57d6721?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 0;
}

.hero__copy .eyebrow {
  color: #9ee8dd;
}

.hero__title {
  width: 100%;
  max-width: 760px;
  font-size: clamp(2.35rem, 4.3vw, 4.5rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.hero__subtitle {
  width: 100%;
  max-width: 660px;
  margin-top: 20px;
  color: #e4edf8;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 650;
}

.weather-panel,
.card,
.side-panel,
.flow-step,
.hourly-card,
.rental-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.weather-panel {
  min-height: 468px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(18px);
}

.current-weather {
  display: grid;
  gap: 28px;
}

.current-weather__city {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.current-weather__temp-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.current-weather__emoji {
  font-size: 3.5rem;
  line-height: 1;
}

.current-weather__temp {
  font-size: 5rem;
  line-height: 0.9;
  font-weight: 800;
  color: var(--ink);
}

.current-weather__unit {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 700;
}

.current-weather__desc {
  margin-top: 12px;
  color: var(--blue-strong);
  font-size: 1.25rem;
  font-weight: 750;
}

.rain-meter {
  padding: 20px;
  background: var(--surface-blue);
  border: 1px solid #c6dcff;
  border-radius: var(--radius);
}

.rain-meter__label {
  display: block;
  color: #38465a;
  font-size: 0.9rem;
  font-weight: 700;
}

.rain-meter strong {
  display: block;
  margin: 6px 0 12px;
  color: var(--blue-strong);
  font-size: 2rem;
  line-height: 1;
}

.rain-meter__track {
  height: 10px;
  overflow: hidden;
  background: #d9e8ff;
  border-radius: 99px;
}

.rain-meter__track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: inherit;
  transition: width 0.35s ease;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-step {
  display: flex;
  gap: 14px;
  min-height: 118px;
  padding: 18px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.flow-step.is-active {
  border-color: var(--blue);
  box-shadow: 0 12px 28px rgba(21, 94, 239, 0.18);
}

.flow-step.is-complete {
  border-color: rgba(15, 118, 110, 0.45);
  background: #f0fbf8;
}

.flow-step__num {
  flex: 0 0 auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  border-radius: 50%;
  font-weight: 800;
}

.flow-step.is-active .flow-step__num {
  background: var(--blue);
}

.flow-step.is-complete .flow-step__num {
  background: var(--teal);
}

.flow-step h2 {
  font-size: 1rem;
  line-height: 1.25;
}

.flow-step p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.25);
}

.btn--primary:hover {
  background: var(--blue-strong);
  border-color: var(--blue-strong);
}

.btn--secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  background: var(--surface-soft);
  border-color: #91a4ba;
}

.btn--ghost {
  color: #27364b;
  background: #ffffff;
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--surface-blue);
  border-color: #b4cdf8;
}

.btn--nav {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn--small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.btn--wide {
  min-width: 156px;
}

.hero__copy .btn--secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
}

.hero__copy .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero__copy .btn--primary {
  color: var(--blue-strong);
  background: #ffffff;
  border-color: #ffffff;
}

.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.alert--warning {
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid #f7c35f;
}

.alert--info {
  color: var(--blue-strong);
  background: var(--surface-blue);
  border: 1px solid #bad2fb;
}

.alert--error {
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #f3b7b1;
}

.loading {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 220px;
  color: var(--muted);
  text-align: center;
}

.loading__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #d7e1ed;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hourly-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hourly-card {
  min-height: 170px;
  padding: 18px 14px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hourly-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.hourly-card__time {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.hourly-card__emoji {
  display: block;
  margin: 12px 0 8px;
  font-size: 2rem;
}

.hourly-card__temp {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
}

.hourly-card__prob {
  margin-top: 6px;
  color: var(--blue-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.rental-layout {
  display: block;
}

.rental-main {
  display: grid;
  gap: 24px;
}

.rental-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 750;
}

.rental-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rental-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 232px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.rental-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.rental-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.station-dot {
  width: 14px;
  height: 14px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
}

.rental-card__name {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
}

.rental-card__address {
  color: var(--muted);
  font-size: 0.95rem;
}

.rental-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}

.rental-card__meta span {
  padding: 6px 9px;
  color: #344259;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
}

.rental-card__available {
  color: var(--green) !important;
  background: var(--green-soft) !important;
  border-color: #b9e6c8 !important;
}

.rental-card .btn {
  margin-top: auto;
  width: 100%;
}

.card {
  padding: 24px;
}

.card--payment,
.card--rental,
.card--complete,
.card--form {
  max-width: 560px;
}

.card--payment,
.card--rental {
  max-width: none;
}

.card--complete {
  color: var(--green);
  background: var(--green-soft);
  border-color: #b9e6c8;
}

.complete-message {
  font-size: 1rem;
  font-weight: 800;
}

.card__subtitle {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
}

.payment-head,
.active-rental__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.payment-main {
  min-width: 0;
}

.payment-point {
  display: grid;
  gap: 4px;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.payment-point span,
.payment-point small {
  color: var(--muted);
}

.payment-point strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.payment-label {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

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

.tariff-card {
  position: relative;
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 14px 10px;
  text-align: center;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.tariff-card:hover {
  border-color: var(--line-strong);
}

.tariff-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tariff-card:has(input:focus-visible) {
  outline: 3px solid rgba(21, 94, 239, 0.35);
  outline-offset: 3px;
}

.tariff-card:has(input:checked) {
  background: var(--surface-blue);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(21, 94, 239, 0.16);
}

.tariff-card__duration {
  color: var(--ink);
  font-weight: 800;
}

.tariff-card__price {
  color: var(--blue-strong);
  font-weight: 800;
}

.form {
  display: grid;
  gap: 14px;
}

.form--payment {
  padding-top: 4px;
}

.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 0.34fr);
  gap: 12px;
}

.form__group {
  display: grid;
  gap: 7px;
}

.form__group label {
  color: #344259;
  font-size: 0.9rem;
  font-weight: 750;
}

.form__group input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__group input::placeholder {
  color: #748195;
}

.form__group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
  outline: none;
}

.form__group--cvv input {
  text-align: center;
}

.form__error {
  color: var(--red);
  font-size: 0.92rem;
  font-weight: 750;
}

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

.form__actions .btn {
  flex: 1 1 180px;
}

.payment-summary {
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(238, 246, 255, 0.9), rgba(255, 255, 255, 0.96)),
    var(--surface-blue);
  border: 1px solid #c6dcff;
  border-radius: var(--radius);
}

.payment-summary__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.payment-summary__top strong {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.2;
}

.payment-summary dl {
  display: grid;
  gap: 12px;
}

.payment-summary dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.payment-summary dt {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.payment-summary dd {
  color: var(--ink);
  font-weight: 800;
}

.payment-summary__total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  margin-top: auto;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius);
}

.payment-summary__total span {
  color: #c7d4e4;
  font-weight: 700;
}

.payment-summary__total strong {
  font-size: 1.8rem;
  line-height: 1;
}

.pickup-code {
  display: grid;
  gap: 8px;
  padding: 18px;
  margin-bottom: 18px;
  background: #101f33;
  border-radius: var(--radius);
  color: #ffffff;
}

.pickup-code span {
  color: #c7d4e4;
  font-size: 0.85rem;
  font-weight: 750;
}

.pickup-code strong {
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.12em;
}

.rental-details {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.rental-details__row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rental-details__row:last-child {
  border-bottom: 0;
}

.rental-details dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.rental-details dd {
  color: var(--ink);
  font-weight: 750;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge--success {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #b9e6c8;
}

.badge--warning {
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid #f7c35f;
}

.side-panel {
  padding: 0;
  overflow: hidden;
  width: 100%;
}

.map-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

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

.map-card h2 {
  font-size: 1.18rem;
  line-height: 1.25;
}

.map-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: stretch;
}

.stations-map {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 420px;
  height: 100%;
  overflow: hidden;
  border: 1px solid #c6dcff;
  border-radius: var(--radius);
  background: var(--surface-blue);
}

.stations-map .leaflet-pane,
.stations-map .leaflet-top,
.stations-map .leaflet-bottom {
  z-index: 1;
}

.stations-map .leaflet-popup-pane {
  z-index: 2;
}

.stations-map--fallback {
  display: grid;
  place-items: center;
}

.stations-map--fallback::before {
  content: 'Санкт-Петербург';
  color: var(--blue-strong);
  font-weight: 800;
}

.station-map-marker {
  display: grid;
  place-items: center;
}

.station-map-marker span {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--blue);
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(16, 32, 51, 0.28);
}

.leaflet-popup-content {
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.88rem;
  line-height: 1.45;
}

.leaflet-popup-content strong {
  color: var(--blue-strong);
}

.map-stations {
  display: grid;
  gap: 8px;
  align-content: start;
}

.map-station {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.map-station:hover {
  background: var(--surface-blue);
  border-color: #b4cdf8;
}

.map-station span {
  font-weight: 800;
}

.map-station small {
  color: var(--muted);
  font-weight: 650;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.6fr);
  gap: 28px;
  align-items: start;
}

.auth-wrapper {
  max-width: 560px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.auth-tabs__btn {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.auth-tabs__btn--active {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.auth-welcome {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.auth-welcome-email {
  margin: 6px 0 18px;
  color: var(--muted);
  font-weight: 650;
}

.footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
  font-weight: 650;
}

.footer a {
  color: var(--blue-strong);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero__layout,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero__copy,
  .weather-panel {
    min-height: auto;
  }

  .map-card__body {
    grid-template-columns: 1fr;
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }

  .stations-map {
    min-height: 360px;
  }

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

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

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

@media (max-width: 820px) {
  .header__right {
    position: fixed;
    top: var(--header-h);
    left: 16px;
    right: 16px;
    display: grid;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s, opacity 0.22s;
  }

  .header__right.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    display: grid;
  }

  .header__auth {
    display: grid;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 44px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .hero__copy {
    padding: 28px;
    width: 100%;
    max-width: 100%;
  }

  .section-heading,
  .footer__inner {
    align-items: start;
    flex-direction: column;
  }

  .rental-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo__text {
    display: none;
  }

  .hero__title {
    font-size: 1.7rem;
    line-height: 1.08;
    max-width: 280px;
  }

  .hero__subtitle {
    max-width: 290px;
    font-size: 0.98rem;
  }

  .hero__copy .eyebrow {
    max-width: 280px;
    font-size: 0.68rem;
  }

  .hero__actions,
  .form__actions,
  .trust-row {
    display: grid;
  }

  .btn--wide,
  .hero__actions .btn,
  .form__actions .btn,
  .trust-row span {
    width: 100%;
  }

  .flow-steps,
  .hourly-grid,
  .tariff-grid,
  .form__row {
    grid-template-columns: 1fr;
  }

  .current-weather__temp {
    font-size: 4rem;
  }

  .weather-panel,
  .card {
    padding: 18px;
  }

  .map-card {
    padding: 18px;
  }

  .stations-map {
    min-height: 300px;
  }

  .rental-details__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
