/* Layout «Вектор роста»: one hand-drawn orange line (the VECTOR of the logo) runs from the hero photo through every section heading to the booking form; the four directions keep the logo colours (ABA red, ЛФК green, логопед blue, сенсорика orange). */
:root {
  --bg: #fbfaf7;
  --bg-tint: #f2f4f8;
  --surface: #ffffff;
  --fg: #1d2433;
  --muted: #5a6475;
  --line: #e2e5ec;
  --red: #e5251f;
  --green: #3fa21b;
  --blue: #1d6fdc;
  --orange: #f07a1c;
  --red-soft: #fde8e7;
  --green-soft: #e7f5e1;
  --blue-soft: #e4eefc;
  --orange-soft: #fdeedf;
  --orange-ink: #c4560a;
  --purple: #7a4cd9;
  --teal: #0f9488;
  --purple-soft: #efe8fc;
  --teal-soft: #dff4f1;
  --primary: var(--blue);
  --primary-fg: #ffffff;
  --logo-plate: transparent;
  --font-display: "Unbounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161f; --bg-tint: #171c27; --surface: #1c2230; --fg: #eef1f6; --muted: #a3acbd; --line: #2b3343;
    --red: #ff5a52; --green: #6cc84a; --blue: #5b9bff; --orange: #ff9a4d;
    --red-soft: #3a1f22; --green-soft: #1f3320; --blue-soft: #1b2a45; --orange-soft: #3a2a1c; --orange-ink: #ffab6b;
    --purple: #a98bff; --teal: #3cc7b8; --purple-soft: #2a2242; --teal-soft: #173431;
    --primary-fg: #0d1220; --logo-plate: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12161f; --bg-tint: #171c27; --surface: #1c2230; --fg: #eef1f6; --muted: #a3acbd; --line: #2b3343;
  --red: #ff5a52; --green: #6cc84a; --blue: #5b9bff; --orange: #ff9a4d;
  --red-soft: #3a1f22; --green-soft: #1f3320; --blue-soft: #1b2a45; --orange-soft: #3a2a1c; --orange-ink: #ffab6b;
    --purple: #a98bff; --teal: #3cc7b8; --purple-soft: #2a2242; --teal-soft: #173431;
  --primary-fg: #0d1220; --logo-plate: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 600; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.wrap.narrow > * { max-width: 820px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section > .wrap { display: grid; gap: 28px; }
.section-tint { background: var(--bg-tint); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }

.demo-bar {
  background: var(--orange-soft); color: var(--fg);
  font-size: 0.85rem; text-align: center; padding: 8px 16px;
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand { display: block; background: var(--logo-plate); border-radius: 10px; padding: 2px 6px; flex-shrink: 0; }
.brand img { display: block; width: 104px; height: auto; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button {
  font: 600 0.8rem var(--font-body); border: 0; background: none; color: var(--muted);
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 12px 22px; border: 2px solid transparent;
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }

/* Hero */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid.no-photo { grid-template-columns: 1fr; }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.tagline { font-family: var(--font-hand); font-size: 1.8rem; color: var(--muted); margin: 0; line-height: 1; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); font-weight: 800; }
.mark {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11 C 40 4, 90 3, 130 8 S 180 12, 197 6' fill='none' stroke='%23f07a1c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 100% / 100% 0.32em;
  padding-bottom: 0.14em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dirs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-dirs a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 0.92rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; background: var(--surface);
}
.hero-dirs a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.hero-dirs a:hover { border-color: var(--c); }
.hero-visual { position: relative; min-width: 0; margin-bottom: 40px; }
.hero-photo {
  aspect-ratio: 5 / 4; max-width: 100%; overflow: hidden; background: var(--bg-tint);
  border-radius: 36px 140px 36px 36px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-empty { display: grid; place-items: center; text-align: center; padding: 24px; border: 2px dashed var(--line); background: var(--surface); }
.hero-photo-empty > span { display: grid; gap: 4px; max-width: 20em; }
.hero-photo-empty b { font-weight: 600; }
.hero-photo-empty span span { color: var(--muted); font-size: 0.9rem; }
.hand { font-family: var(--font-hand); font-weight: 700; line-height: 1.05; }
.hero-note {
  position: absolute; left: -8px; bottom: -44px; margin: 0; font-size: 1.75rem; color: var(--orange-ink);
  transform: rotate(-3deg); background: var(--bg); padding: 0 8px; border-radius: 6px;
}
.hero-arrow {
  position: absolute; left: -96px; bottom: 6px; width: 104px; height: 62px; overflow: visible;
  fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
}

/* The vector line */
main { position: relative; }
main > section > .wrap { position: relative; z-index: 2; }
.vector-path { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; overflow: visible; }
.vector-path path { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
#vector-arrow, #branch-arrow { opacity: 0; transition: opacity 0.3s; }
#vector-arrow.on, #branch-arrow.on { opacity: 1; }
/* Phones and tablets: a thin straight line along the left edge, sections get room for it. */
.vec-narrow main > section > .wrap { padding-left: 34px; }
.vec-narrow .vector-path path { stroke-width: 3; }
.vec-narrow .vector-path circle { stroke-width: 3; }
.vector-path circle { fill: var(--bg); stroke: var(--orange); stroke-width: 5; transition: fill 0.3s; }
.vector-path circle.on { fill: var(--orange); }

.c-red { --c: var(--red); --soft: var(--red-soft); }
.c-green { --c: var(--green); --soft: var(--green-soft); }
.c-blue { --c: var(--blue); --soft: var(--blue-soft); }
.c-orange { --c: var(--orange); --soft: var(--orange-soft); }
.c-purple { --c: var(--purple); --soft: var(--purple-soft); }
.c-teal { --c: var(--teal); --soft: var(--teal-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Requests */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 24px; display: grid; gap: 12px; align-content: start;
}
.squiggle { width: 120px; height: 14px; overflow: visible; }
.squiggle path { fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; }
.service h3 { color: var(--c); font-size: 1.25rem; }
.service p { margin: 0; }
.meta { display: grid; gap: 4px; font-size: 0.92rem; color: var(--muted); }
.meta b { color: var(--fg); font-weight: 600; }

/* Steps: the road. A real sequence, so numbered; cards alternate around one drawn line. */
.road { position: relative; }
.road-line { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.road-line path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.steps { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; }
.node {
  grid-column: 2; grid-row: 1; justify-self: center; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font: 800 1.05rem var(--font-display);
  border: 3px solid var(--orange); background: var(--bg-tint); color: var(--orange-ink); transition: background 0.3s, color 0.3s;
}
.step.reached .node { background: var(--orange); color: #fff; }
.step-card { grid-column: 1; grid-row: 1; display: grid; gap: 4px; text-align: right; padding-block: 10px; }
.step-right .step-card { grid-column: 3; text-align: left; }
.step-card b { font-weight: 600; font-size: 1.1rem; }
.step-card > span:last-child { color: var(--muted); font-size: 0.95rem; }
.step-note { font-size: 1.45rem; color: var(--orange-ink); }

/* Team */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: 500 0.9rem var(--font-body); padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
}
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.person {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; text-align: left; cursor: pointer; color: var(--fg);
  font: inherit; display: grid;
}
.person:hover { border-color: var(--c); }
.avatar {
  aspect-ratio: 4 / 3; max-width: 100%; background: var(--soft); color: var(--c);
  display: grid; place-items: center; font: 800 2.6rem var(--font-display);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-text { padding: 14px 16px 18px; display: grid; gap: 4px; }
.person-text b { font-weight: 600; font-size: 1.05rem; }
.person-text span { color: var(--muted); font-size: 0.9rem; }
.person-text .person-note { color: var(--fg); font-size: 1.3rem; margin-top: 4px; }
.tag { justify-self: start; font-size: 0.78rem; font-weight: 600; color: var(--c); background: var(--soft); border-radius: 999px; padding: 2px 10px; }

.person-dialog {
  border: 0; border-radius: 18px; padding: 24px; max-width: min(460px, calc(100vw - 32px));
  background: var(--surface); color: var(--fg);
}
.person-dialog::backdrop { background: rgb(10 14 24 / 0.5); }
.dialog-body { display: grid; gap: 10px; margin-bottom: 16px; }
.dialog-body p { margin: 0; }

/* Prices */
.table-wrap { overflow-x: auto; }
.prices { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.prices th, .prices td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prices th { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prices td:nth-child(2), .prices td:nth-child(3), .prices th:nth-child(2), .prices th:nth-child(3) { text-align: right; white-space: nowrap; }
.prices td { font-variant-numeric: tabular-nums; }
.prices tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 24px; min-width: 0; }
.contact-list { display: grid; gap: 16px; margin: 0; }
.contact-list dt { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; font-weight: 500; font-size: 1.05rem; overflow-wrap: anywhere; }
.book-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  display: grid; gap: 8px; min-width: 0;
}
.book-form h3 { margin-bottom: 8px; }
.book-form label { font-size: 0.9rem; font-weight: 500; margin-top: 6px; }
.book-form input, .book-form select, .book-form textarea {
  font: inherit; color: var(--fg); background: var(--bg); width: 100%;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.book-form button { margin-top: 12px; }
.form-status { margin: 4px 0 0; font-size: 0.92rem; color: var(--green); }
.form-status.error { color: var(--red); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 0.88rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.footer-col { display: grid; gap: 4px; align-content: start; max-width: 520px; }
.footer-col strong { color: var(--fg); font-weight: 600; }
.footer-col b { font-weight: 500; color: var(--fg); }
.footer-col span { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid, .contacts-grid { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
  .hero-note { left: 16px; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vector-path path { stroke-width: 4.5; }
  .vector-path circle { stroke-width: 4; }
  .services { grid-template-columns: 1fr; }
  .step, .step-right { grid-template-columns: 52px minmax(0, 1fr); }
  .node { grid-column: 1; }
  .step-card, .step-right .step-card { grid-column: 2; text-align: left; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .avatar { font-size: 2rem; }
  .header-actions .btn-sm { display: none; }
  .hero-photo { border-radius: 24px 80px 24px 24px; }
  .hero-note { font-size: 1.5rem; }
}
.map-link { display: block; font-size: 0.9rem; font-weight: 500; color: var(--blue); margin-top: 2px; }
.book-form button:disabled { opacity: 0.6; cursor: wait; }

/* Sessions gallery: real photos from the center; the first one spans two columns. */
.section-intro { display: grid; gap: 10px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 260px); gap: 16px; }
.shot {
  position: relative; display: block; padding: 0; border: 0; margin: 0; cursor: zoom-in; height: 100%; min-width: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-tint);
  font: inherit; color: inherit; text-align: left;
}
.shot-wide { grid-column: span 2; grid-row: span 2; }
.shot-long { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.shot:hover img { transform: scale(1.03); }
.shot-caption {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: var(--surface); color: var(--fg); border-radius: 10px; padding: 8px 10px; font-size: 0.9rem; font-weight: 500;
}
.shot-empty {
  cursor: default; display: grid; place-items: center; text-align: center; padding: 20px;
  border: 2px dashed var(--line); background: var(--surface);
}
.shot-empty-text { display: grid; gap: 4px; max-width: 22em; }
.shot-empty-text b { font-weight: 600; }
.shot-empty-text span { color: var(--muted); font-size: 0.9rem; }
.photo-dialog {
  border: 0; border-radius: 16px; padding: 12px; background: var(--surface); color: var(--fg);
  max-width: min(1100px, calc(100vw - 32px));
}
.photo-dialog::backdrop { background: rgb(10 14 24 / 0.75); }
.photo-dialog figure { margin: 0 0 10px; display: grid; gap: 8px; }
.photo-dialog img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 10px; display: block; }
.photo-dialog figcaption { color: var(--muted); text-align: center; }
.photo-dialog form { text-align: center; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-auto-rows: 220px; }
  .shot-wide, .shot-long { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 240px; }
  .shot-wide, .shot-long { grid-column: auto; grid-row: auto; }
}
.person { grid-template-rows: auto 1fr; align-content: start; }
.person-text { min-width: 0; align-content: start; }
.tag { max-width: 100%; overflow-wrap: anywhere; }

/* Group photo of the team above the specialist cards. */
.team-photo { margin: 0 0 28px; border-radius: 36px 120px 36px 36px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--surface); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
@media (max-width: 640px) { .team-photo { aspect-ratio: 4 / 3; border-radius: 24px 64px 24px 24px; } }

/* Real photos: the caption sits on a soft shadow at the bottom edge so it never covers faces. */
.shot-caption {
  left: 0; right: 0; bottom: 0; border-radius: 0; padding: 36px 14px 12px; gap: 6px 8px;
  background: linear-gradient(to top, rgb(12 16 24 / 0.78), rgb(12 16 24 / 0.45) 55%, transparent);
  color: #fff; font-size: 0.88rem; line-height: 1.35; text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
}
.shot-caption .tag { background: rgb(255 255 255 / 0.92); text-shadow: none; }

/* Training: a dark panel the second branch of the vector points into. */
.vector-path circle.fork { stroke-width: 5; }
#training > .wrap { z-index: 0; } /* the branch arrow is drawn over the panel */
.training-panel {
  position: relative; overflow: hidden; display: grid; gap: 22px; padding: clamp(28px, 5vw, 52px);
  border-radius: 28px; color: #eef1f6; background: radial-gradient(120% 140% at 100% 0%, #24345c 0%, #141d33 55%, #0f1729 100%);
  box-shadow: 0 24px 60px rgb(15 23 41 / 0.25);
}
.training-panel::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px;
  background: linear-gradient(90deg, var(--red) 0 25%, var(--green) 25% 50%, var(--blue) 50% 75%, var(--orange) 75%);
}
.training-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.training-panel h2 { color: #fff; }
.training-note { margin: 0; font-size: 1.6rem; color: #ffb37a; transform: rotate(-2deg); }
.training-panel .lead { color: #c3cad8; max-width: 40em; }
.training-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.training-card {
  display: grid; gap: 10px; align-content: start; padding: 20px 20px 22px; border-radius: 18px;
  background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.1);
}
.training-card .squiggle { width: 72px; }
.training-card h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.training-card p { margin: 0; color: #c3cad8; font-size: 0.95rem; }
.training-card.c-red { --c: #ff6b63; } .training-card.c-green { --c: #74d152; } .training-card.c-blue { --c: #6ea8ff; } .training-card.c-orange { --c: #ff9a4d; }
.btn-light { justify-self: start; background: #fff; color: #141d33; }
.btn-light:hover { background: #ffe9d6; }
@media (max-width: 1000px) { .training-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .training-cards { grid-template-columns: 1fr; } .training-panel { border-radius: 22px; } }

/* Map at the bottom: the widget fills a rounded box, the address card sits over its corner. */
.map-section { padding-block: 0 clamp(48px, 7vw, 88px); background: var(--bg-tint); }
.map-box { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 50px rgb(15 23 41 / 0.12); background: var(--surface); }
.map-frame { height: 440px; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-card {
  position: absolute; left: 24px; bottom: 24px; max-width: 360px; display: grid; gap: 6px;
  background: var(--surface); color: var(--fg); border-radius: 18px; padding: 18px 20px 20px; box-shadow: 0 10px 30px rgb(15 23 41 / 0.18);
}
.map-card p { margin: 0; }
.map-note { font-size: 1.5rem; color: var(--orange-ink); }
.map-addr { font-weight: 600; }
.map-landmark, .map-route { color: var(--muted); font-size: 0.9rem; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 640px) {
  .map-frame { height: 320px; }
  .map-card { position: static; max-width: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
}
