/* Magic Date 2026 visual system — shared by every page. */
:root {
  --md-bg: #120018;
  --md-bg-deep: #08020d;
  --md-surface: #24102e;
  --md-surface-soft: #31133d;
  --md-violet: #7b39ff;
  --md-violet-deep: #5d22dc;
  --md-pink: #ff3e9d;
  --md-pink-light: #ff86c7;
  --md-white: #fff8ff;
  --md-muted: #d9c8dc;
  --md-line: rgba(255, 255, 255, 0.12);
  --md-shadow: 0 24px 64px rgba(5, 0, 10, 0.42);
  --md-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: var(--md-bg);
  --bg-2: var(--md-surface);
  --panel: rgba(45, 17, 56, 0.86);
  --panel-2: rgba(67, 24, 83, 0.9);
  --ink: var(--md-white);
  --muted: var(--md-muted);
  --brand: var(--md-pink);
  --brand-2: var(--md-pink-light);
  --accent: var(--md-violet);
  --border: 1px solid var(--md-line);
  --shadow: var(--md-shadow);
  --font-display: var(--md-display);
}

html { background: var(--md-bg-deep); }

body {
  color: var(--md-white);
  background:
    radial-gradient(circle at 84% 7%, rgba(123, 57, 255, 0.2), transparent 27rem),
    radial-gradient(circle at 4% 34%, rgba(255, 62, 157, 0.1), transparent 28rem),
    linear-gradient(180deg, var(--md-bg) 0%, #19051f 52%, var(--md-bg-deep) 100%);
  font-family: var(--md-display);
}

body::after { content: none !important; }

h1, h2, h3, h4, .brand span {
  font-family: var(--md-display) !important;
  letter-spacing: -0.04em;
}

h1 { font-weight: 900 !important; }
h2 { font-weight: 850 !important; }

a { color: #ffd1eb; }
a:hover { color: #fff; }

.container { max-width: 1180px !important; }

header,
.topbar {
  background: rgba(8, 2, 13, 0.86) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: none !important;
  backdrop-filter: blur(20px) saturate(135%) !important;
}

.brand { gap: 11px !important; }
.brand span { font-weight: 900 !important; letter-spacing: -0.045em; }
.brand .logo,
.brand img {
  background: #050307 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(255, 62, 157, 0.18) !important;
}
.brand .logo img { background: transparent !important; box-shadow: none !important; }

.navlinks a,
.topbar a { font-weight: 700; }
.navlinks a::after { background: var(--md-pink) !important; }

.lang-switch {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.lang-switch a.is-active {
  color: #fff !important;
  background: var(--md-violet) !important;
  box-shadow: none !important;
}

.btn {
  min-height: 48px;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  font-family: var(--md-display);
  font-weight: 850 !important;
  letter-spacing: -0.02em;
}
.btn-primary {
  color: #fff !important;
  background: var(--md-pink) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 14px 32px rgba(255, 62, 157, 0.25) !important;
}
.btn-primary:hover {
  filter: brightness(1.08) !important;
  box-shadow: 0 18px 42px rgba(255, 62, 157, 0.35) !important;
}
.btn-ghost {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.17) !important;
}

/* Main landing hero: the accepted violet editorial plane, without changing markup. */
main > .hero:first-child {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  margin-top: 28px !important;
  padding: clamp(42px, 7vw, 86px) clamp(26px, 6vw, 72px) !important;
  border: 0 !important;
  border-radius: 30px !important;
  background: linear-gradient(132deg, var(--md-violet) 0 63%, var(--md-violet-deep) 63% 100%) !important;
  box-shadow: var(--md-shadow) !important;
  overflow: hidden !important;
}
main > .hero:first-child::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  inset: auto -8% -44% 30% !important;
  width: 78% !important;
  height: 105% !important;
  border-radius: 50% !important;
  background: rgba(255, 62, 157, 0.14) !important;
  opacity: 1 !important;
  transform: rotate(-13deg) !important;
}
main > .hero:first-child::after {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  right: -14% !important;
  bottom: -36% !important;
  width: 50% !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  background: var(--md-pink) !important;
  filter: none !important;
  opacity: 0.48 !important;
}

/* City and guide templates keep their existing two-column phone composition. */
html:has(link[href*="/cities/city.css"]) main > .hero:first-child {
  grid-template-columns: minmax(0, 1fr) clamp(240px, 27vw, 310px) !important;
  column-gap: clamp(28px, 5vw, 64px) !important;
  align-items: center !important;
}
html:has(link[href*="/cities/city.css"]) main > .hero:first-child > * {
  grid-column: 1 !important;
}
html:has(link[href*="/cities/city.css"]) main > .hero:first-child::after {
  content: "" !important;
  position: relative !important;
  z-index: 2 !important;
  inset: auto !important;
  grid-column: 2 !important;
  grid-row: 1 / span 4 !important;
  justify-self: center !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 941 / 1672 !important;
  border-radius: 30px !important;
  border: 7px solid #100515 !important;
  background: url("/shot-720.jpg") center top / cover no-repeat #100515 !important;
  box-shadow: 0 34px 70px rgba(8, 0, 14, 0.48) !important;
  opacity: 1 !important;
  transform: rotate(4deg) !important;
}

/* Legal/support pages use the same palette with a calmer editorial opening. */
html:has(link[href="/legal.css"]) main > .hero:first-child {
  min-height: auto;
  background: linear-gradient(132deg, #5425bc, #35124c) !important;
}
html:has(link[href="/legal.css"]) .hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 72px) !important;
}

.hero-copy { position: relative; z-index: 3; }
.hero-eyebrow,
.eyebrow {
  color: #fff !important;
  background: rgba(12, 0, 18, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  padding: 8px 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  width: fit-content !important;
  max-width: 100% !important;
  justify-self: start !important;
}

.hero h1 {
  max-width: 760px;
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: clamp(46px, 7.1vw, 88px) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.065em !important;
  text-wrap: balance;
}
.hero .lead { color: rgba(255, 255, 255, 0.84) !important; max-width: 660px !important; }

.phone {
  z-index: 2 !important;
  border: 8px solid #100515 !important;
  border-radius: 32px !important;
  background: #100515 !important;
  box-shadow: 0 34px 70px rgba(8, 0, 14, 0.48) !important;
  transform: rotate(4deg) !important;
}
.phone:hover { transform: rotate(1deg) translateY(-5px) !important; }

.trust div,
.panel,
.card,
.doc,
.quick-links,
.pay-note,
.mobile-mid-cta-card {
  background: rgba(43, 15, 53, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.panel::before,
.card::before { display: none !important; }

section:not(.hero) > h2,
.doc > h2 {
  color: var(--md-white);
  font-size: clamp(30px, 4.6vw, 56px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.055em !important;
}

.grid .card,
.steps .step {
  border-radius: 20px !important;
  padding: clamp(22px, 3vw, 32px) !important;
}
.grid .card:nth-child(2),
.steps .step:nth-child(2),
.steps .step:nth-child(4) { background: #5425bc !important; }
.grid .card:nth-child(3),
.steps .step:nth-child(3) { background: #79204f !important; }
.card h3 { color: #fff !important; }
.num { color: var(--md-pink) !important; }

.cities {
  gap: 12px !important;
}
.city {
  min-height: 128px;
  padding: 0 !important;
  border-radius: 18px !important;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 3, 23, 0.16), rgba(17, 3, 23, 0.72)),
    linear-gradient(135deg, #7b39ff, #3b166f) !important;
}
.city:nth-child(3n + 2) {
  background: linear-gradient(135deg, #902053, #3d102d) !important;
}
.city:nth-child(3n) {
  background: linear-gradient(135deg, #442368, #151026) !important;
}
.city a {
  width: 100%;
  min-height: 128px;
  padding: 22px !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  flex-direction: column !important;
  color: #fff !important;
}
.city a span { color: rgba(255, 255, 255, 0.68) !important; }
.city a b { font-size: 18px; letter-spacing: -0.025em; }

.pride-card {
  border-radius: 24px !important;
  background: linear-gradient(120deg, #511167, #2d123a) !important;
}

details,
.faq-item {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.doc,
.quick-links,
.pay-note { border-radius: 20px !important; }
.doc { padding: clamp(26px, 5vw, 58px) !important; }
.notice { border-left-color: var(--md-pink) !important; background: rgba(255, 62, 157, 0.08) !important; }
.pill,
.links a {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

footer {
  background: #07020a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 760px) {
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  main > .hero:first-child {
    min-height: auto;
    margin-top: 14px !important;
    padding: 34px 22px 28px !important;
    border-radius: 22px !important;
  }
  .hero h1 {
    font-size: clamp(39px, 12.4vw, 60px) !important;
    line-height: 0.96 !important;
  }
  .hero .lead { font-size: 16px !important; line-height: 1.52 !important; }
  .phone { transform: rotate(2deg) !important; border-width: 6px !important; }
  html:has(link[href*="/cities/city.css"]) main > .hero:first-child {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  html:has(link[href*="/cities/city.css"]) main > .hero:first-child::after {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: min(74%, 290px) !important;
    margin: 22px auto 2px !important;
    transform: rotate(2deg) !important;
  }
  section:not(.hero) > h2,
  .doc > h2 { font-size: clamp(28px, 9vw, 42px) !important; }
  .city,
  .city a { min-height: 112px; }
  .topbar-actions > .btn-primary { min-height: 40px; padding: 9px 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; }
}

/* Direction 01: warm editorial, restrained and light. */
:root {
  --md-bg: #fbf6ef;
  --md-bg-deep: #f3e9df;
  --md-surface: #fffdf9;
  --md-surface-soft: #f7eee8;
  --md-violet: #b9a6e9;
  --md-violet-deep: #8d74cd;
  --md-pink: #f4475c;
  --md-pink-light: #ff7b89;
  --md-white: #fffdf9;
  --md-ink: #3d0715;
  --md-muted: #705b62;
  --md-line: rgba(61, 7, 21, 0.12);
  --md-shadow: 0 24px 70px rgba(74, 25, 31, 0.12);
  --bg: var(--md-bg);
  --bg-2: var(--md-surface-soft);
  --panel: rgba(255, 253, 249, 0.92);
  --panel-2: #fff;
  --ink: var(--md-ink);
  --muted: var(--md-muted);
  --brand: var(--md-pink);
  --brand-2: #d82f48;
  --accent: var(--md-violet);
  --border: 1px solid var(--md-line);
  --shadow: var(--md-shadow);
}

html { background: var(--md-bg); }
body {
  color: var(--md-ink);
  background:
    radial-gradient(circle at 92% 3%, rgba(185, 166, 233, 0.18), transparent 30rem),
    linear-gradient(180deg, #fbf6ef 0%, #fffdf9 48%, #f7eee8 100%);
}
a { color: #b6203a; }
a:hover { color: #ef3f56; }

header,
.topbar {
  background: rgba(251, 246, 239, 0.9) !important;
  border-bottom-color: rgba(61, 7, 21, 0.09) !important;
}
.brand { color: var(--md-ink) !important; }
.brand .logo,
.brand img {
  background: #080408 !important;
  box-shadow: 0 0 0 1px rgba(61, 7, 21, 0.08), 0 8px 24px rgba(61, 7, 21, 0.09) !important;
}
.navlinks a,
.topbar a { color: #3d0715; }
.navlinks a:hover,
.topbar a:hover { color: #ef3f56; }
.lang-switch { background: #f2e8e2 !important; border-color: rgba(61, 7, 21, 0.1) !important; }
.lang-switch a { color: #705b62 !important; }
.lang-switch a.is-active { color: #fff !important; background: #3d0715 !important; }

.btn-primary {
  color: #fff !important;
  background: #f4475c !important;
  border-color: transparent !important;
  box-shadow: 0 14px 30px rgba(244, 71, 92, 0.2) !important;
}
.btn-ghost {
  color: #3d0715 !important;
  background: rgba(255, 255, 255, 0.62) !important;
  border-color: rgba(61, 7, 21, 0.16) !important;
}

main > .hero:first-child {
  color: var(--md-ink) !important;
  background:
    radial-gradient(circle at 8% 92%, rgba(244, 71, 92, 0.09), transparent 23rem),
    linear-gradient(132deg, #fffaf3, #f5ede6) !important;
  border: 1px solid rgba(61, 7, 21, 0.09) !important;
  box-shadow: var(--md-shadow) !important;
}
main > .hero:first-child::before {
  inset: auto -10% -54% 34% !important;
  background: rgba(185, 166, 233, 0.19) !important;
}
main > .hero:first-child::after {
  background: rgba(244, 71, 92, 0.1) !important;
  opacity: 1 !important;
}
.hero h1 { color: #3d0715 !important; }
.hero .lead { color: #705b62 !important; }
.hero-eyebrow,
.eyebrow {
  color: #8f2032 !important;
  background: #f8e5e5 !important;
  border-color: rgba(61, 7, 21, 0.09) !important;
}

.phone {
  border-color: #170b10 !important;
  background: #170b10 !important;
  box-shadow: 0 34px 64px rgba(61, 7, 21, 0.19) !important;
}

html:has(link[href*="/cities/city.css"]) main > .hero:first-child::after {
  border-color: #170b10 !important;
  background: url("/shot-720.jpg") center top / cover no-repeat #170b10 !important;
  box-shadow: 0 34px 64px rgba(61, 7, 21, 0.19) !important;
}
html:has(link[href="/legal.css"]) main > .hero:first-child {
  background: linear-gradient(132deg, #fffaf3, #f2e6df) !important;
}

.trust div,
.panel,
.card,
.doc,
.quick-links,
.pay-note,
.mobile-mid-cta-card {
  color: var(--md-ink) !important;
  background: rgba(255, 253, 249, 0.92) !important;
  border-color: rgba(61, 7, 21, 0.11) !important;
}
.trust div:hover,
.panel:hover,
.card:hover { background: #fff !important; border-color: rgba(244, 71, 92, 0.2) !important; }
section:not(.hero) > h2,
.doc > h2,
.card h3 { color: #3d0715 !important; }
.grid .card:nth-child(2),
.steps .step:nth-child(2),
.steps .step:nth-child(4),
.grid .card:nth-child(3),
.steps .step:nth-child(3) { background: #fffdf9 !important; }
.num { color: #f4475c !important; }
.lead,
.note,
.small,
.card p,
.doc p,
.doc li { color: #705b62 !important; }

.city,
.city:nth-child(3n + 2),
.city:nth-child(3n) {
  background: linear-gradient(145deg, #fffdf9, #f2e8e2) !important;
  border-color: rgba(61, 7, 21, 0.1) !important;
}
.city:nth-child(even) { background: linear-gradient(145deg, #f2edf9, #e9e0f4) !important; }
.city a { color: #3d0715 !important; }
.city a span { color: #8b7078 !important; }

.pride-card { background: linear-gradient(120deg, #fff3f2, #efe8f7) !important; }
details,
.faq-item { background: rgba(255, 255, 255, 0.72) !important; border-color: rgba(61, 7, 21, 0.1) !important; }
.notice { background: #fff0ef !important; }
.pill,
.links a { color: #5e2330 !important; background: #f6ece7 !important; border-color: rgba(61, 7, 21, 0.1) !important; }

footer {
  color: #705b62 !important;
  background: #f1e7df !important;
  border-top-color: rgba(61, 7, 21, 0.09) !important;
}
footer a { color: #6d2635 !important; }

/* Direction 01 — approved: elegant midnight editorial. */
:root {
  --md-bg: #03081b;
  --md-bg-deep: #020512;
  --md-surface: #081027;
  --md-surface-soft: #0d1530;
  --md-pink: #ed2f69;
  --md-pink-light: #f47fa5;
  --md-white: #fff8e9;
  --md-ink: #fff8e9;
  --md-muted: #bcb9c8;
  --md-line: rgba(244, 127, 165, 0.24);
  --md-shadow: 0 28px 80px rgba(0, 0, 12, 0.5);
  --bg: var(--md-bg);
  --bg-2: var(--md-surface-soft);
  --panel: rgba(8, 16, 39, 0.9);
  --panel-2: #101936;
  --ink: var(--md-ink);
  --muted: var(--md-muted);
  --brand: var(--md-pink);
  --brand-2: var(--md-pink-light);
  --accent: var(--md-pink-light);
  --border: 1px solid var(--md-line);
  --shadow: var(--md-shadow);
}

html { background: var(--md-bg-deep); }
body {
  color: var(--md-ink);
  background:
    radial-gradient(circle at 13% 45%, rgba(134, 35, 116, 0.24), transparent 29rem),
    radial-gradient(circle at 85% 3%, rgba(33, 51, 109, 0.23), transparent 31rem),
    linear-gradient(180deg, #03081b 0%, #050a20 56%, #020512 100%);
}
h1, h2, h3, h4 {
  color: var(--md-white) !important;
}
a { color: #f5a4bd; }
a:hover { color: #fff; }

header,
.topbar {
  background: rgba(3, 8, 27, 0.9) !important;
  border-bottom-color: rgba(244, 127, 165, 0.16) !important;
}
.brand { color: #fff8e9 !important; }
.brand .logo,
.brand img {
  background: #02030a !important;
  box-shadow: 0 0 0 1px rgba(244, 127, 165, 0.18), 0 8px 28px rgba(237, 47, 105, 0.12) !important;
}
.navlinks a,
.topbar a { color: #eee8e5; }
.navlinks a:hover,
.topbar a:hover { color: #f47fa5; }
.lang-switch { background: rgba(255, 255, 255, 0.04) !important; border-color: rgba(244, 127, 165, 0.22) !important; }
.lang-switch a { color: #aaa7b8 !important; }
.lang-switch a.is-active { color: #fff !important; background: #9c2350 !important; }

.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #db245d, #ed2f69) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 14px 32px rgba(237, 47, 105, 0.2) !important;
}
.btn-primary:hover { box-shadow: 0 18px 42px rgba(237, 47, 105, 0.3) !important; }
.btn-ghost {
  color: #fff8e9 !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border-color: rgba(244, 127, 165, 0.34) !important;
}

main > .hero:first-child {
  color: var(--md-white) !important;
  background:
    radial-gradient(circle at 10% 88%, rgba(126, 26, 105, 0.34), transparent 27rem),
    linear-gradient(128deg, #07102b 0%, #03091d 64%, #071027 100%) !important;
  border: 1px solid rgba(244, 127, 165, 0.2) !important;
  box-shadow: var(--md-shadow) !important;
}
main > .hero:first-child::before {
  background: radial-gradient(circle, rgba(237, 47, 105, 0.18), transparent 68%) !important;
}
main > .hero:first-child::after {
  background: rgba(237, 47, 105, 0.08) !important;
  opacity: 1 !important;
}
.hero h1 {
  color: #fff8e9 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.98 !important;
}
.hero .lead { color: #bcb9c8 !important; }
.hero-eyebrow,
.eyebrow {
  color: #f6a2bc !important;
  background: rgba(237, 47, 105, 0.08) !important;
  border-color: rgba(244, 127, 165, 0.22) !important;
}

.phone {
  border-color: #16131d !important;
  background: #16131d !important;
  box-shadow: 0 34px 72px rgba(0, 0, 12, 0.6), 0 0 0 1px rgba(244, 127, 165, 0.2) !important;
}
html:has(link[href*="/cities/city.css"]) main > .hero:first-child::after {
  border-color: #16131d !important;
  background: url("/shot-720.jpg") center top / cover no-repeat #16131d !important;
  box-shadow: 0 34px 72px rgba(0, 0, 12, 0.6), 0 0 0 1px rgba(244, 127, 165, 0.2) !important;
}
html:has(link[href="/legal.css"]) main > .hero:first-child {
  background: linear-gradient(128deg, #08112d, #071024) !important;
}

.trust div,
.panel,
.card,
.doc,
.quick-links,
.pay-note,
.mobile-mid-cta-card {
  color: var(--md-white) !important;
  background: rgba(8, 16, 39, 0.9) !important;
  border-color: rgba(244, 127, 165, 0.18) !important;
}
.trust div:hover,
.panel:hover,
.card:hover {
  background: #0d1633 !important;
  border-color: rgba(244, 127, 165, 0.36) !important;
}
section:not(.hero) > h2,
.doc > h2 {
  color: #fff8e9 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.04em !important;
}
.card h3 { color: #fff8e9 !important; }
.grid .card:nth-child(2),
.steps .step:nth-child(2),
.steps .step:nth-child(4),
.grid .card:nth-child(3),
.steps .step:nth-child(3) { background: rgba(8, 16, 39, 0.9) !important; }
.num { color: #ed2f69 !important; }
.lead,
.note,
.small,
.card p,
.doc p,
.doc li { color: #bcb9c8 !important; }

.city,
.city:nth-child(3n + 2),
.city:nth-child(3n),
.city:nth-child(even) {
  background: linear-gradient(145deg, #0b1430, #070d22) !important;
  border-color: rgba(244, 127, 165, 0.18) !important;
}
.city a { color: #fff8e9 !important; }
.city a span { color: #a9a6b7 !important; }
.pride-card { background: linear-gradient(120deg, #17112d, #09132d) !important; }
details,
.faq-item { background: rgba(8, 16, 39, 0.76) !important; border-color: rgba(244, 127, 165, 0.17) !important; }
.notice { background: rgba(237, 47, 105, 0.07) !important; }
.pill,
.links a { color: #e8dfe3 !important; background: rgba(255, 255, 255, 0.035) !important; border-color: rgba(244, 127, 165, 0.18) !important; }

footer {
  color: #aaa7b8 !important;
  background: #020512 !important;
  border-top-color: rgba(244, 127, 165, 0.14) !important;
}
footer a { color: #e89ab3 !important; }

/* UX refinement: calmer headings and denser discovery sections. */
.hero h1 {
  max-width: 690px;
  font-size: clamp(38px, 5vw, 64px) !important;
}
html:has(link[href="/legal.css"]) .hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 4.6vw, 54px) !important;
}

#cities > h2,
#guides > h2,
#cities > .cities-note,
#guides > .cities-note {
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
#cities > .cities-note,
#guides > .cities-note { margin-bottom: 24px !important; }

#cities .cities,
#guides .cities {
  width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
}
#cities .city { flex: 0 1 176px; }
#guides .city { flex: 0 1 270px; }
#cities .city,
#cities .city a,
#guides .city,
#guides .city a {
  min-height: 96px;
}
#cities .city a,
#guides .city a { padding: 17px 18px !important; }
#cities .city a b,
#guides .city a b { font-size: 16px; }

section[id] { scroll-margin-top: 112px; }

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(32px, 9.4vw, 42px) !important;
    line-height: 1.01 !important;
  }
  html:has(link[href="/legal.css"]) .hero h1 {
    font-size: clamp(30px, 8.6vw, 38px) !important;
  }
  main > .hero:first-child:has(.hero-copy) .hero-actions {
    margin-top: 28px !important;
    margin-bottom: 12px !important;
  }
  main > .hero:first-child:has(.hero-copy) .phone {
    margin-top: 24px !important;
  }
  #cities .cities,
  #guides .cities {
    width: min(100%, 520px);
    gap: 10px !important;
  }
  #cities .city,
  #guides .city { flex: 0 1 calc(50% - 5px); }
  #cities .city,
  #cities .city a,
  #guides .city,
  #guides .city a { min-height: 84px; }
  #cities .city a,
  #guides .city a { padding: 14px !important; }
  #cities .city a b,
  #guides .city a b { font-size: 14px; }
}

/* Compact, wider discovery catalog. */
#cities .cities,
#guides .cities {
  width: min(100%, 1120px);
  gap: 9px !important;
}
#cities .city { flex: 1 1 168px; max-width: 190px; }
#guides .city { flex: 1 1 230px; max-width: 265px; }
#cities .city,
#cities .city a,
#guides .city,
#guides .city a {
  min-height: 54px;
}
#cities .city a,
#guides .city a {
  padding: 9px 13px !important;
  justify-content: center !important;
}
#cities .city a span,
#guides .city a span {
  font-size: 11px;
  line-height: 1.1;
}
#cities .city a b,
#guides .city a b {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.12;
}

@media (max-width: 760px) {
  #cities .cities,
  #guides .cities { width: 100%; }
  #cities .city,
  #guides .city {
    flex: 0 1 calc(50% - 5px);
    max-width: none;
  }
  #cities .city,
  #cities .city a,
  #guides .city,
  #guides .city a { min-height: 58px; }
  #cities .city a,
  #guides .city a { padding: 9px 11px !important; }
}

/* Clear step sequence, consistent Telegram icon, cleaner guide cards. */
.steps .num {
  width: 44px;
  height: 44px;
  color: #fff8e9 !important;
  background: #071027 !important;
  border: 2px solid #ed2f69;
  box-shadow: 0 0 0 4px rgba(237, 47, 105, 0.08) !important;
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.mobile-mid-cta .cta-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 1.05em;
  overflow: hidden;
  color: transparent;
  font-size: 16px !important;
  line-height: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2303081b' d='M21.5 4.4 18.3 19.6c-.2 1.1-.8 1.4-1.7.9l-4.9-3.6-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.1 9.2-8.3c.4-.4-.1-.6-.6-.3L6.1 13 1.3 11.5c-1-.3-1-1 .2-1.5l18.6-7.2c.9-.3 1.7.2 1.4 1.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#guides .city a span { display: none !important; }
#guides .city a b { margin-top: 0; }

/* ============================================================
   Мобільна навігація і постійний CTA (блокер 2)
   ============================================================ */

/* --- Перемикач мови на юридичних сторінках --- */
html:has(link[href="/legal.css"]) .topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
html:has(link[href="/legal.css"]) .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  flex-shrink: 0;
}
html:has(link[href="/legal.css"]) .lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 33px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}
/* --- Хлібні крихти --- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 18px 0 -6px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }
.breadcrumbs .sep { opacity: 0.45; }
@media (max-width: 640px) {
  .breadcrumbs { font-size: 12px; margin: 12px 0 -4px; }
}

/* --- Меню на мобільному: бренд + мова в один ряд, посилання окремим рядком --- */
@media (max-width: 980px) {
  header .container.nav,
  .topbar .topbar-inner {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: flex-start;
    row-gap: 6px;
  }
  header .container.nav > .brand,
  .topbar .topbar-inner > .brand {
    flex: 0 0 auto;
    margin-right: auto;
  }
  header .header-actions,
  .topbar .topbar-actions {
    width: auto !important;
    margin-left: auto;
    flex: 0 0 auto;
  }
  header nav.navlinks,
  .topbar nav.navlinks {
    /* Section chips consume the first mobile viewport; anchors remain available in content. */
    display: none !important;
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 7px;
    margin: 0;
    padding-bottom: 1px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  header nav.navlinks::-webkit-scrollbar,
  .topbar nav.navlinks::-webkit-scrollbar { display: none; }
  header nav.navlinks a,
  .topbar nav.navlinks a {
    flex: 0 0 auto;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12.5px;
    line-height: 1.25;
    white-space: nowrap;
  }
  header nav.navlinks a::after,
  .topbar nav.navlinks a::after { display: none !important; }
}

@media (max-width: 640px) {
  header .container.nav,
  .topbar .topbar-inner {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }
}

/* Якір-переходи з урахуванням нижчої шапки */
@media (max-width: 980px) {
  section[id] { scroll-margin-top: 84px; }
}

/* --- Постійна кнопка в бот на мобільному --- */
.mobile-sticky-cta { display: none; }

@media (max-width: 760px) {
  .mobile-sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 14px;
    color: #3e0f3d;
    background: linear-gradient(135deg, #ff46b6, #ff9df2);
    box-shadow: 0 12px 30px rgba(3, 0, 20, 0.5), 0 0 22px rgba(255, 70, 182, 0.28);
    font-weight: 850;
    font-size: 15px;
    line-height: 1.15;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition:
      opacity 0.24s ease,
      transform 0.24s ease,
      visibility 0s linear 0.24s;
  }
  .mobile-sticky-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .mobile-sticky-cta::before {
    content: "";
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 1.15em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233e0f3d' d='M21.5 4.4 18.3 19.6c-.2 1.1-.8 1.4-1.7.9l-4.9-3.6-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.1 9.2-8.3c.4-.4-.1-.6-.6-.3L6.1 13 1.3 11.5c-1-.3-1-1 .2-1.5l18.6-7.2c.9-.3 1.7.2 1.4 1.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  body { padding-bottom: 78px; }
  .to-top,
  .back-to-top {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-sticky-cta { transition: none !important; }
}

/* --- Компактні посилання на юридичні сторінки у футері --- */
.footer-legal {
  gap: 6px 8px !important;
  margin-top: 14px !important;
  padding-top: 14px !important;
}
.footer-legal a {
  min-height: 26px !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
@media (max-width: 640px) {
  .footer-legal { gap: 5px 6px !important; }
  .footer-legal a {
    min-height: 24px !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
  }
}
