:root {
  --traffic-paper: #f8f3ea;
  --traffic-panel: rgba(255, 253, 248, 0.88);
  --traffic-panel-strong: rgba(255, 255, 255, 0.95);
  --traffic-ink: #2d261f;
  --traffic-muted: #74685b;
  --traffic-gold: #98733c;
  --traffic-gold-deep: #715126;
  --traffic-blue: #68828f;
  --traffic-red: #a84334;
  --traffic-line: rgba(126, 91, 52, 0.22);
  --traffic-shadow: 0 16px 44px rgba(67, 49, 31, 0.11);
}

.traffic-page {
  min-width: 0;
  color: var(--traffic-ink);
  background:
    linear-gradient(90deg, rgba(84, 69, 54, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(84, 69, 54, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.94), rgba(245, 238, 226, 0.72) 58%, rgba(233, 225, 211, 0.66)),
    var(--traffic-paper);
  background-size: 52px 52px, 52px 52px, auto, auto;
}

.traffic-page *,
.traffic-page *::before,
.traffic-page *::after {
  min-width: 0;
}

.traffic-page button,
.traffic-page input,
.traffic-page select,
.traffic-page a {
  overflow-wrap: anywhere;
}

.traffic-header,
.traffic-main,
.traffic-footer {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.traffic-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
}

.traffic-brand,
.traffic-nav,
.traffic-home-link,
.traffic-telegram-link {
  display: flex;
  align-items: center;
}

.traffic-brand {
  gap: 11px;
}

.traffic-brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.traffic-brand strong,
.traffic-brand small {
  display: block;
}

.traffic-brand strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.1;
}

.traffic-brand small {
  margin-top: 3px;
  color: var(--traffic-muted);
  font-size: 0.72rem;
}

.traffic-nav {
  gap: 9px;
}

.traffic-home-link,
.traffic-telegram-link {
  min-height: 44px;
  gap: 7px;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--traffic-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #4a3a2e;
  font-size: 0.86rem;
  font-weight: 700;
}

.traffic-telegram-link {
  color: #fff;
  border-color: rgba(53, 80, 92, 0.34);
  background: #536f7b;
}

.traffic-main {
  padding-bottom: 52px;
}

.traffic-hero {
  position: relative;
  isolation: isolate;
  min-height: 470px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid var(--traffic-line);
  border-radius: 18px;
  background-image:
    linear-gradient(90deg, rgba(250, 247, 240, 0.98) 0%, rgba(250, 247, 240, 0.93) 38%, rgba(250, 247, 240, 0.34) 69%, rgba(250, 247, 240, 0.08) 100%),
    url("../assets/generated/traffic-hero.webp");
  background-size: cover;
  background-position: center;
  box-shadow: var(--traffic-shadow);
}

.traffic-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(64, 48, 33, 0.05));
}

.traffic-hero-copy {
  width: min(610px, 58%);
}

.traffic-eyebrow,
.traffic-section-heading > p,
.traffic-map-head p,
.poi-heading p {
  margin: 0 0 8px;
  color: var(--traffic-gold-deep);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.traffic-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.traffic-hero-copy > p:last-of-type {
  max-width: 570px;
  margin: 18px 0 0;
  color: #574a3e;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.55;
}

.traffic-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.traffic-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--traffic-ink);
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.traffic-btn-primary {
  color: #fff;
  border-color: #7e5b34;
  background: linear-gradient(135deg, #8b6938, #68491f);
  box-shadow: 0 9px 20px rgba(104, 73, 31, 0.2);
}

.traffic-btn-secondary {
  border-color: rgba(113, 81, 38, 0.34);
  background: rgba(255, 253, 248, 0.82);
}

.traffic-btn-telegram {
  color: #fff;
  border-color: rgba(57, 80, 91, 0.32);
  background: #536f7b;
}

.traffic-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.traffic-quick-card {
  position: relative;
  isolation: isolate;
  min-height: 172px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 17px;
  border: 1px solid var(--traffic-line);
  border-radius: 12px;
  color: #2d261f;
  background-color: #ede3d4;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 28px rgba(67, 49, 31, 0.09);
  text-align: left;
}

.traffic-quick-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.16) 8%, rgba(255, 253, 248, 0.6) 52%, rgba(255, 253, 248, 0.96) 100%);
}

.quick-airport {
  background-image: url("../assets/generated/airport-transfer-bg.webp");
}

.quick-metro {
  background-image: url("../assets/generated/metro-guide-bg.webp");
}

.quick-taxi {
  background-image: url("../assets/generated/taxi-guide-bg.webp");
}

.quick-train {
  background-image: url("../assets/generated/traffic-hero.webp");
  background-position: 72% center;
}

.quick-card-index {
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(49, 40, 32, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
}

.traffic-quick-card strong {
  font-family: var(--font-display);
  font-size: 1.03rem;
  line-height: 1.2;
}

.traffic-quick-card > span:last-child {
  color: #6e6257;
  font-size: 0.78rem;
  line-height: 1.35;
}

.traffic-load-error {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(168, 67, 52, 0.35);
  border-radius: 10px;
  background: rgba(255, 244, 239, 0.92);
  color: #633a31;
}

.traffic-load-error p {
  margin: 5px 0 12px;
}

.traffic-load-error > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.traffic-load-error button,
.traffic-load-error a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(99, 58, 49, 0.28);
  border-radius: 8px;
  padding: 8px 13px;
  background: #fff;
  color: inherit;
  font-weight: 700;
}

.traffic-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  gap: 16px;
  align-items: start;
  margin-top: 20px;
}

.route-planner-panel,
.traffic-map-panel,
.address-section,
.city-guide-section,
.poi-section {
  border: 1px solid var(--traffic-line);
  border-radius: 14px;
  background: var(--traffic-panel);
  box-shadow: var(--traffic-shadow);
}

.route-planner-panel,
.traffic-map-panel {
  padding: clamp(17px, 2.5vw, 25px);
}

.traffic-section-heading h2,
.traffic-map-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.48rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.route-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 20px;
}

.route-form > label,
.address-form {
  display: grid;
  gap: 6px;
}

.route-form label > span,
.address-form > label,
.route-mode-fieldset legend {
  color: #5f5143;
  font-size: 0.8rem;
  font-weight: 800;
}

.route-form select,
.address-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(113, 81, 38, 0.25);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--traffic-ink);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
}

.route-mode-fieldset {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
}

.route-mode-control {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
  padding: 4px;
  border: 1px solid rgba(113, 81, 38, 0.18);
  border-radius: 10px;
  background: rgba(238, 230, 216, 0.6);
}

.route-mode-control label {
  position: relative;
}

.route-mode-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.route-mode-control span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #625548;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.route-mode-control input:checked + span {
  color: #fff;
  border-color: rgba(78, 55, 26, 0.4);
  background: #7e5b34;
  box-shadow: 0 5px 12px rgba(78, 55, 26, 0.16);
}

.route-submit {
  grid-column: 1 / -1;
  width: 100%;
}

.route-result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(126, 91, 52, 0.17);
}

.route-placeholder,
.address-result > p {
  margin: 0;
  color: var(--traffic-muted);
}

.route-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.route-result-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
}

.route-result-head p {
  margin: 3px 0 0;
  color: var(--traffic-muted);
  font-size: 0.82rem;
}

.route-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(168, 67, 52, 0.24);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--traffic-red);
  background: rgba(168, 67, 52, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
}

.route-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.route-summary div {
  padding: 10px;
  border-left: 2px solid rgba(152, 115, 60, 0.42);
  background: rgba(255, 255, 255, 0.52);
}

.route-summary span,
.route-copy-block span {
  display: block;
  color: var(--traffic-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.route-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 0.84rem;
  line-height: 1.3;
}

.route-copy-block {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(104, 130, 143, 0.24);
  border-radius: 8px;
  background: rgba(232, 240, 242, 0.56);
}

.route-copy-block strong {
  display: block;
  margin-top: 5px;
  color: #2f4d59;
  font-size: 0.95rem;
  line-height: 1.5;
}

.route-copy-actions,
.address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.copy-button {
  min-height: 44px;
  border: 1px solid rgba(83, 111, 123, 0.3);
  border-radius: 8px;
  padding: 8px 11px;
  color: #34525e;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.route-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.route-details h4 {
  margin: 0 0 6px;
  font-size: 0.84rem;
}

.route-details ol,
.route-details ul {
  margin: 0;
  padding-left: 18px;
  color: #66594c;
  font-size: 0.8rem;
}

.route-details li + li {
  margin-top: 5px;
}

.traffic-map-panel {
  position: sticky;
  top: 12px;
}

.traffic-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}

.traffic-map-meta {
  flex: 0 0 auto;
  text-align: right;
}

.traffic-map-meta strong,
.traffic-map-meta span {
  display: block;
}

.traffic-map-meta strong {
  font-size: 0.82rem;
}

.traffic-map-meta span {
  margin-top: 3px;
  color: var(--traffic-muted);
  font-size: 0.7rem;
}

.traffic-map {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(126, 91, 52, 0.2);
  border-radius: 10px;
  background-image:
    linear-gradient(rgba(255, 251, 243, 0.23), rgba(255, 251, 243, 0.23)),
    url("../assets/generated/traffic-map-bg.webp");
  background-size: cover;
  background-position: center;
}

.traffic-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  pointer-events: none;
}

.traffic-map .map-empty {
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--traffic-muted);
  text-align: center;
}

.fallback-route-shadow,
.fallback-route-line {
  fill: none;
  stroke-linecap: round;
}

.fallback-route-shadow {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 9;
}

.fallback-route-line {
  stroke: #9b7037;
  stroke-width: 4;
  stroke-dasharray: 11 8;
}

.traffic-map-marker-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.traffic-map-marker {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(83, 111, 123, 0.18);
  box-shadow: 0 4px 10px rgba(51, 65, 70, 0.16);
  cursor: pointer;
  pointer-events: auto;
}

.marker-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border: 2px solid #fffdf8;
  border-radius: 50%;
  background: #536f7b;
}

.marker-label {
  position: absolute;
  left: calc(100% + 5px);
  top: -9px;
  width: max-content;
  max-width: 150px;
  color: #43372d;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  text-shadow:
    -1px -1px 0 rgba(255, 253, 247, 0.96),
    1px -1px 0 rgba(255, 253, 247, 0.96),
    -1px 1px 0 rgba(255, 253, 247, 0.96),
    1px 1px 0 rgba(255, 253, 247, 0.96);
}

.traffic-map-marker.label-left .marker-label {
  left: auto;
  right: calc(100% + 5px);
  text-align: right;
}

.traffic-map-marker.is-route {
  background: rgba(152, 115, 60, 0.24);
}

.traffic-map-marker.is-route .marker-dot {
  background: #98733c;
}

.traffic-map-marker.is-selected {
  z-index: 4;
  background: rgba(168, 67, 52, 0.25);
  box-shadow: 0 0 0 5px rgba(168, 67, 52, 0.1);
}

.traffic-map-marker.is-selected .marker-dot {
  background: #a84334;
}

.traffic-map-note {
  margin: 9px 0 0;
  color: var(--traffic-muted);
  font-size: 0.72rem;
}

.address-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(20px, 4vw, 50px);
  margin-top: 20px;
  padding: clamp(20px, 4vw, 38px);
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.8)),
    url("../assets/generated/taxi-guide-bg.webp");
  background-size: cover;
  background-position: center;
}

.address-copy > p:last-child {
  margin: 12px 0 0;
  color: var(--traffic-muted);
}

.address-tool {
  padding: 16px;
  border: 1px solid rgba(126, 91, 52, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.address-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.address-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(126, 91, 52, 0.16);
}

.address-result h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
}

.address-result dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px 12px;
  margin: 12px 0 0;
  font-size: 0.82rem;
}

.address-result dt {
  color: var(--traffic-muted);
  font-weight: 700;
}

.address-result dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.address-missing {
  padding: 12px;
  border-left: 3px solid rgba(168, 67, 52, 0.48);
  background: rgba(255, 245, 240, 0.66);
}

.address-missing a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  color: #466775;
  font-weight: 800;
}

.city-guide-section,
.poi-section {
  margin-top: 20px;
  padding: clamp(20px, 3vw, 30px);
}

.city-guide-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-top: 15px;
  padding-bottom: 5px;
  scrollbar-width: thin;
}

.city-guide-tabs button {
  min-width: max-content;
  min-height: 44px;
  border: 1px solid var(--traffic-line);
  border-radius: 8px;
  padding: 8px 13px;
  color: #5f5143;
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.city-guide-tabs button.is-active {
  color: #fff;
  background: #7e5b34;
}

.city-guide-card {
  margin-top: 12px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(126, 91, 52, 0.18);
  border-radius: 10px;
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.9) 57%, rgba(255, 253, 248, 0.58) 100%),
    url("../assets/generated/metro-guide-bg.webp");
  background-size: cover;
  background-position: center;
}

.city-guide-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.guide-grid {
  width: min(830px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin-top: 15px;
}

.guide-item {
  padding-left: 12px;
  border-left: 2px solid rgba(152, 115, 60, 0.42);
}

.guide-item strong {
  display: block;
  font-size: 0.8rem;
}

.guide-item p {
  margin: 4px 0 0;
  color: #66594c;
  font-size: 0.78rem;
}

.guide-item:last-child {
  grid-column: 1 / -1;
}

.poi-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.poi-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.poi-heading > span {
  color: var(--traffic-muted);
  font-size: 0.8rem;
}

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

.poi-card {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1px solid rgba(126, 91, 52, 0.18);
  border-radius: 9px;
  padding: 13px;
  color: var(--traffic-ink);
  background: rgba(255, 255, 255, 0.68);
  font: inherit;
  text-align: left;
}

.poi-card.is-selected {
  border-color: rgba(168, 67, 52, 0.52);
  background: rgba(168, 67, 52, 0.07);
  box-shadow: 0 8px 18px rgba(168, 67, 52, 0.1);
}

.poi-type {
  color: var(--traffic-blue);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.poi-card strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.poi-card span:last-child {
  color: var(--traffic-muted);
  font-size: 0.74rem;
}

.traffic-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(126, 91, 52, 0.16);
  color: var(--traffic-muted);
  font-size: 0.78rem;
}

.traffic-footer a {
  color: #536f7b;
  font-weight: 800;
}

.traffic-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  width: min(calc(100% - 24px), 520px);
  transform: translate(-50%, 130%);
  padding: 12px 15px;
  border-radius: 8px;
  color: #fff;
  background: rgba(43, 37, 31, 0.94);
  box-shadow: 0 16px 36px rgba(42, 32, 23, 0.2);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.traffic-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .traffic-home-link:hover,
  .traffic-telegram-link:hover,
  .traffic-btn:hover,
  .traffic-quick-card:hover,
  .city-guide-tabs button:hover,
  .poi-card:hover,
  .copy-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(67, 49, 31, 0.13);
  }
}

@media (max-width: 1040px) {
  .traffic-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traffic-workspace {
    grid-template-columns: 1fr;
  }

  .traffic-map-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .traffic-header,
  .traffic-main,
  .traffic-footer {
    width: min(calc(100% - 22px), 1240px);
  }

  .traffic-header {
    align-items: flex-start;
  }

  .traffic-brand small {
    display: none;
  }

  .traffic-nav {
    gap: 5px;
  }

  .traffic-home-link,
  .traffic-telegram-link {
    padding-inline: 9px;
    font-size: 0.75rem;
  }

  .traffic-hero {
    min-height: 540px;
    align-items: flex-end;
    padding: 24px 18px;
    background-image:
      linear-gradient(180deg, rgba(250, 247, 240, 0.08) 0%, rgba(250, 247, 240, 0.22) 38%, rgba(250, 247, 240, 0.93) 67%, rgba(250, 247, 240, 0.98) 100%),
      url("../assets/generated/traffic-hero.webp");
    background-position: 64% center;
  }

  .traffic-hero-copy {
    width: 100%;
  }

  .traffic-hero h1 {
    font-size: clamp(2.05rem, 10vw, 3.1rem);
  }

  .traffic-hero-copy > p:last-of-type {
    font-size: 0.96rem;
  }

  .traffic-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traffic-hero-actions .traffic-btn-telegram {
    grid-column: 1 / -1;
  }

  .route-form,
  .address-section {
    grid-template-columns: 1fr;
  }

  .route-summary {
    grid-template-columns: 1fr;
  }

  .route-details {
    grid-template-columns: 1fr;
  }

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

  .traffic-map svg {
    min-height: 300px;
  }

  .traffic-map .map-empty {
    min-height: 300px;
  }

  .traffic-map-head {
    align-items: flex-start;
  }

  .address-section {
    background-image:
      linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0.97)),
      url("../assets/generated/taxi-guide-bg.webp");
  }

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

  .guide-item:last-child {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .traffic-header {
    min-height: 66px;
    gap: 8px;
  }

  .traffic-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .traffic-brand strong {
    font-size: 0.88rem;
  }

  .traffic-home-link span {
    display: none;
  }

  .traffic-quick-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .traffic-quick-card {
    min-height: 142px;
  }

  .route-planner-panel,
  .traffic-map-panel,
  .address-section,
  .city-guide-section,
  .poi-section {
    padding: 16px;
    border-radius: 11px;
  }

  .route-form {
    grid-template-columns: 1fr;
  }

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

  .route-result-head,
  .traffic-map-head,
  .poi-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .route-badge,
  .traffic-map-meta {
    justify-self: start;
    text-align: left;
  }

  .address-form > div {
    grid-template-columns: 1fr;
  }

  .address-form .traffic-btn {
    width: 100%;
  }

  .address-result dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .address-result dd + dt {
    margin-top: 7px;
  }

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

  .traffic-map {
    min-height: 278px;
  }

  .traffic-map svg {
    min-height: 278px;
  }

  .traffic-map .map-empty {
    min-height: 278px;
  }
}

@media (max-width: 390px) {
  .traffic-header,
  .traffic-main,
  .traffic-footer {
    width: min(calc(100% - 18px), 1240px);
  }

  .traffic-telegram-link {
    display: none;
  }

  .traffic-hero {
    min-height: 520px;
    padding-inline: 15px;
  }

  .traffic-hero-actions {
    grid-template-columns: 1fr;
  }

  .traffic-hero-actions .traffic-btn-telegram {
    grid-column: auto;
  }

  .route-copy-actions,
  .address-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .traffic-map {
    min-height: 264px;
  }

  .traffic-map svg {
    min-height: 264px;
  }

  .traffic-map .map-empty {
    min-height: 264px;
  }
}
