/* Branch header and stable direction cards; forms use the shared responsive stylesheet. */
body[data-city] { --header-height:110px; }
body[data-city] .top {
  position:fixed; display:flex; align-items:center; justify-content:space-between;
  height:var(--header-height); min-height:var(--header-height); gap:16px;
  padding:2px max(clamp(24px,5vw,72px),calc((100% - var(--header-content))/2)) 0;
}
body[data-city] .top .header-identity { display:flex; width:auto; height:auto; flex:none; }
body[data-city] .top .brand { width:260px; min-width:260px; max-width:260px; transform:translateY(calc(260px * 4.5 / 567)); }
body[data-city] .top .top-right { display:flex; flex:none; align-items:center; gap:12px; }
body[data-city] .top .top-right > .header-enrol {
  display:inline-flex; position:relative; width:auto; min-width:0; height:62px;
  min-height:62px; padding:8px 8px 8px 28px; gap:16px; border:0; border-radius:40px;
  background:var(--bord); color:var(--cream); font-family:var(--brand-font); font-size:17px; line-height:1.2;
}
body[data-city] .top .header-enrol i,
body[data-city] .top .header-enrol:hover i {
  position:static; width:46px; height:46px; flex:0 0 46px;
  display:grid; place-items:center; transform:none; background:var(--cream); color:var(--bord);
}
body[data-city] .top .header-enrol i svg { width:20px; height:20px; }
body[data-city] .top .header-call {
  display:grid; place-items:center; flex:0 0 62px; width:62px; height:62px;
  border-radius:50%; background:#d9cec2; color:#383838;
}
body[data-city] .top .header-call svg { width:25px; height:25px; }
body[data-city] .top .header-call:hover { background:#cfc1b2; }
body[data-city] .hero { padding-top:calc(var(--header-height) + 40px); }
body[data-city] :focus-visible { outline:2px solid var(--bord); outline-offset:4px; }


@media(max-width:1000px) {
  body[data-city] { --header-height:80px; }
  body[data-city] .top { padding-left:clamp(16px,4vw,24px); padding-right:clamp(16px,4vw,24px); gap:8px; }
  body[data-city] .top .brand { width:clamp(104px,32vw,180px); min-width:0; max-width:180px; transform:translateY(1.4px); }
  body[data-city] .top .top-right { gap:8px; }
  body[data-city] .top .top-right > .header-enrol { width:clamp(112px,34vw,156px); min-width:0; height:44px; min-height:44px; padding:4px 38px 4px 12px; font-size:clamp(11px,2.5vw,13px); }
  body[data-city] .top .header-enrol i,
  body[data-city] .top .header-enrol:hover i { position:absolute; top:50%; width:32px; height:32px; flex:0 0 32px; right:4px; transform:translateY(-50%); }
  body[data-city] .top .header-enrol i svg { width:18px; height:18px; }
  body[data-city] .top .header-call { width:44px; height:44px; flex-basis:44px; }
  body[data-city] .top .header-call svg { width:22px; height:22px; }
  body[data-city] .hero { padding-top:calc(var(--header-height) + 32px); }
}


body[data-city] .top .header-enrol:hover { transform:none; background:var(--ink); }
body[data-city] .top .top-right > .header-enrol { text-transform:uppercase; }

/* Shared edge inset and equal gap between text, arrow and card edges. */
body[data-city] #dirs { --direction-inset:24px; --direction-arrow:28px; }
/* One stable layout: icons above, titles anchored at the bottom, descriptions out of flow. */
body[data-city] #dirs { scroll-margin-top:calc(var(--header-height) + 20px); }
body[data-city] #dirs .grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
body[data-city] #dirs .card,
body[data-city] #dirs .card:hover,
body[data-city] #dirs .card:focus-visible {
  display:block; position:relative; height:clamp(330px,29vw,400px); min-height:0; padding:24px;
  transform:none; transition:none; opacity:1;
}
body[data-city] #dirs .card > .ico,
body[data-city] #dirs .card:hover > .ico {
  position:absolute; left:24px; top:24px; width:96px; height:96px; max-width:none; overflow:visible;
  object-fit:contain; object-position:center; transform:none;
}
body[data-city] #dirs .card > span:not(.bg-clip):not(.go),
body[data-city] #dirs .card.is-active > span:not(.bg-clip):not(.go),
body[data-city] #dirs .card:hover > span:not(.bg-clip):not(.go) {
  position:absolute; left:var(--direction-inset); right:calc(2 * var(--direction-inset) + var(--direction-arrow)); bottom:var(--direction-inset); width:auto; min-width:0; padding:0;
  transform:none; text-align:left; transition:transform .16s var(--ease);
}
body[data-city] #dirs .card .name { font-size:clamp(35px,3.75vw,57.5px); line-height:1.08; max-width:none; transform:none; }
body[data-city] #dirs .card .desc,
body[data-city] #dirs .card.is-active .desc,
body[data-city] #dirs .card.is-preview .desc,
body[data-city] #dirs .card:hover .desc,
body[data-city] #dirs .card:focus-visible .desc {
  position:absolute; left:0; top:100%; width:100%; height:auto; max-height:none;
  padding:0; margin:8px 0 0; overflow:visible; font-size:16px; line-height:1.35; white-space:normal; overflow-wrap:break-word; text-wrap:pretty;
  opacity:0; visibility:hidden; transition:opacity .12s ease-out,visibility 0s linear .12s;
}
body[data-city] #dirs .card .go,
body[data-city] #dirs .card:hover .go,
body[data-city] #dirs .card:focus-visible .go {
  top:auto; bottom:24px; right:20px; width:32px; height:32px; opacity:1; transform:none;
}
body[data-city] #dirs .card.is-preview > span:not(.bg-clip):not(.go),
body[data-city] #dirs .card:focus-visible > span:not(.bg-clip):not(.go) { transform:translateY(calc(-1 * var(--description-rise,80px))); }
body[data-city] #dirs .card.is-preview .desc,
body[data-city] #dirs .card:focus-visible .desc { opacity:1; visibility:visible; transition:opacity .18s ease-out,visibility 0s; }
body[data-city] #dirs .card.is-preview .go,
body[data-city] #dirs .card:focus-visible .go { opacity:1; }
@media(hover:hover) and (pointer:fine) {
  body[data-city] #dirs .card:hover > span:not(.bg-clip):not(.go) { transform:translateY(calc(-1 * var(--description-rise,80px))); }
  body[data-city] #dirs .card:hover .desc { opacity:1; visibility:visible; transition:opacity .18s ease-out,visibility 0s; }
  body[data-city] #dirs .card:hover .go { opacity:1; }
}
@media(min-width:700px) and (max-width:1000px) {
  body[data-city] #dirs .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:1000px) {
  body[data-city] #dirs { --direction-inset:16px; --direction-arrow:26px; }
  body[data-city] #dirs .card,
  body[data-city] #dirs .card:hover,
  body[data-city] #dirs .card:focus-visible { height:300px; padding:16px; }
  body[data-city] #dirs .card > .ico,
  body[data-city] #dirs .card:hover > .ico { left:16px; top:16px; width:64px; height:64px; transform:none; }
  body[data-city] #dirs .card > span:not(.bg-clip):not(.go),
  body[data-city] #dirs .card.is-active > span:not(.bg-clip):not(.go),
  body[data-city] #dirs .card.is-preview > span:not(.bg-clip):not(.go),
  body[data-city] #dirs .card:hover > span:not(.bg-clip):not(.go),
  body[data-city] #dirs .card:focus-visible > span:not(.bg-clip):not(.go) { left:var(--direction-inset); right:calc(2 * var(--direction-inset) + var(--direction-arrow)); bottom:var(--direction-inset); }
  body[data-city] #dirs .card .name { font-size:clamp(27.5px,4vw,40px); }
  body[data-city] #dirs .card .desc,
  body[data-city] #dirs .card.is-active .desc,
  body[data-city] #dirs .card.is-preview .desc,
  body[data-city] #dirs .card:hover .desc,
  body[data-city] #dirs .card:focus-visible .desc { font-size:15px; width:100%; }
  body[data-city] #dirs .card .go,
  body[data-city] #dirs .card:hover .go,
  body[data-city] #dirs .card:focus-visible .go { bottom:20px; right:16px; width:28px; height:28px; }
}
@media(width < 700px) {
  body[data-city] #dirs .grid { grid-template-columns:minmax(0,1fr); }
  body[data-city] #dirs .card,
  body[data-city] #dirs .card:hover,
  body[data-city] #dirs .card:focus-visible { height:260px; }
}
/* Compact vertical arrow, with no inherited rotation from generic button hover rules. */
body[data-city] .top .header-enrol i,
body[data-city] .top .header-enrol:hover i { width:32px; height:32px; flex-basis:32px; transform:none; }
body[data-city] .top .header-enrol i svg { width:18px; height:18px; }
@media(max-width:1000px) {
  body[data-city] .top .header-enrol i,
  body[data-city] .top .header-enrol:hover i { width:26px; height:26px; flex-basis:26px; transform:translateY(-50%); }
  body[data-city] .top .header-enrol i svg { width:16px; height:16px; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-city] #dirs .card *,body[data-city] #dirs .card::before,
  body[data-city] #dirs .card::after { animation:none!important; transition:none!important; }
}

/* Fill each card proportionally; crop surplus artwork at the edges. */
body[data-city] #dirs .card .bg,
body[data-city] #dirs .card .bg-clip .bg,
body[data-city] #dirs .card:hover .bg,
body[data-city] #dirs .card:focus-visible .bg {
  position:absolute; inset:auto; left:0; top:0; width:100%; height:100%; max-width:none;
  transform:none; transition:none;
}
body[data-city] #dirs .card .bg-clip { inset:0; }
body[data-city] #dirs .card::before,
body[data-city] #dirs .card::after {
  inset:0; background-size:100% 100%,cover; background-repeat:no-repeat,no-repeat;
  background-position:center; transform:none;
}
body[data-city] #dirs .card > .ico { transition:transform .25s var(--ease); }
body[data-city] #dirs .card.is-preview > .ico { transform:scale(1.15); transform-origin:center; }
body[data-city] #dirs .card .go { transition:background-color .2s,color .2s,box-shadow .2s,transform .2s; }

@media(max-width:1000px) {
 body[data-city] .top .header-enrol i { right:7px; }
 body[data-city] .top .top-right > .header-enrol { white-space:nowrap; font-size:clamp(10px,2.6vw,13px); padding-left:10px; }
}

/* Decorative SVGs and captions must never extend the card's hit area. */
body[data-city] #dirs .card > *,
body[data-city] #dirs .card::before,
body[data-city] #dirs .card::after { pointer-events:none; }

/* Explicit signup affordance; repeated taps on the preview do not restart playback. */
body[data-city] #dirs .card .go,
body[data-city] #dirs .card:hover .go,
body[data-city] #dirs .card:focus-visible .go,
body[data-city] #dirs .card.is-preview .go { pointer-events:auto; right:var(--direction-inset); bottom:var(--direction-inset); width:var(--direction-arrow); height:var(--direction-arrow); background:transparent; isolation:isolate; }
body[data-city] #dirs .card .go::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:50%; background:var(--fg); transition:transform .3s var(--ease); }
body[data-city] #dirs .card.actor .go::before { background:var(--ink); }
body[data-city] #dirs .card .go svg { pointer-events:none; transition:transform .35s var(--ease); }
body[data-city] #dirs .card.is-preview .go::before { transform:scale(1.15); animation:direction-cta-pulse 1.2s ease-in-out .35s 2; }
body[data-city] #dirs .card.is-preview .go svg { transform:rotate(-135deg) scale(1.15); }
@keyframes direction-cta-pulse { 0%,100% { transform:scale(1.15); } 50% { transform:scale(1.23); } }
@media(prefers-reduced-motion:reduce) {
 body[data-city] #dirs .card.is-preview .go::before { animation:none; }
}

/* Lift only the soft color veil; the original pattern stays still. */
body[data-city] #dirs .card.live::before,
body[data-city] #dirs .card.actor.live::after {
 background-image:linear-gradient(to top,color-mix(in srgb,var(--c) 74%,transparent) 0%,color-mix(in srgb,var(--c) 62%,transparent) 30%,transparent 62%);
 background-size:100% 100%; opacity:.8; transform:translateY(12%);
 transition:transform .22s var(--ease),opacity .16s ease-out;
}
body[data-city] #dirs .card.live.is-preview::before,
body[data-city] #dirs .card.actor.live.is-preview::after,
body[data-city] #dirs .card.live:focus-visible::before,
body[data-city] #dirs .card.actor.live:focus-visible::after { opacity:1; transform:translateY(0); }
@media(hover:hover) and (pointer:fine) {
 body[data-city] #dirs .card.live:hover::before,
 body[data-city] #dirs .card.actor.live:hover::after { opacity:1; transform:translateY(0); }
}

body[data-city] #dirs .card .go::after { content:""; position:absolute; inset:calc((var(--direction-arrow) - 44px) / 2); border-radius:50%; }
body[data-city] #dirs .card .desc-copy { white-space:normal; overflow:visible; overflow-wrap:break-word; }

/* The header signup CTA stays calm after touch activation. */
body[data-city] #top .header-enrol,
body[data-city] #top .header-enrol:hover,
body[data-city] #top .header-enrol:active,
body[data-city] #top .header-enrol:focus-visible {
 background:var(--bord); color:var(--cream); transform:none; transition:none;
 -webkit-tap-highlight-color:transparent;
}
body[data-city] #top .header-enrol i,
body[data-city] #top .header-enrol:hover i,
body[data-city] #top .header-enrol:active i { background:var(--cream); color:var(--bord); transition:none; }
body[data-city] #top .header-enrol svg { transition:none; animation:none; }

@media(max-width:1000px) {
 body[data-city] { --header-height:64px; }
 body[data-city] #top .header-identity { width:144px; flex:0 0 144px; }
 body[data-city] #top .brand { width:144px; min-width:144px; max-width:144px; transform:translateY(1.14px); }
 body[data-city] #top .top-right { width:166px; flex:0 0 166px; gap:6px; }
 body[data-city] #top .top-right > .header-enrol { width:124px; min-width:124px; height:36px; min-height:36px; padding:4px 30px 4px 8px; font-size:10px; }
 body[data-city] #top .header-enrol-label { display:inline; white-space:nowrap; line-height:1.2; }
 body[data-city] #top .header-enrol i,
 body[data-city] #top .header-enrol:hover i { width:24px; height:24px; right:4px; top:50%; transform:translateY(-50%); }
 body[data-city] #top .header-enrol i svg { width:14px; height:14px; }
 body[data-city] #top .header-call { width:36px; height:36px; flex-basis:36px; }
 body[data-city] #top .header-call svg { width:18px; height:18px; }
 body[data-city] .hero .hero-branch-line { display:block; }
 body[data-city] .hero-actions { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
 body[data-city] .hero-actions .btn.openForm,
 body[data-city] .hero-actions .link { box-sizing:border-box; width:190px; max-width:100%; min-height:44px; }
 body[data-city] .hero-actions .link { padding-left:18px; padding-right:6px; justify-content:space-between; font-size:12px; letter-spacing:.025em; }
}
@media(orientation:landscape) and (max-height:650px) and (max-width:1000px) {
 body[data-city] { --header-height:54px; }
}

@media(max-width:360px) {
 body[data-city] #top { gap:4px; }
}

@media(max-width:1000px) {
 body[data-city] .hero-actions .link { width:max-content; min-width:190px; white-space:nowrap; flex-wrap:nowrap; }
 body[data-city] .hero-actions .link svg { flex:0 0 14px; }
}
@media(max-width:360px) {
 body[data-city] #top .header-identity { width:128px; flex-basis:128px; }
 body[data-city] #top .brand { width:128px; min-width:128px; max-width:128px; }
}

/* Soft corners on direction cards. */
body[data-city] #dirs .card { border-radius:8px; }

@media(max-width:1000px) {
 body[data-city] .hero-actions .link { padding-left:14px; padding-bottom:8px; align-items:flex-end; line-height:1; }
 body[data-city] .hero-actions .link svg { transform:none; }
}

@media(max-width:1000px) {
 body[data-city] .hero-actions .link { position:relative; border-bottom-color:transparent; }
 body[data-city] .hero-actions .link::after { content:""; position:absolute; left:8px; right:8px; bottom:-2px; height:2px; background:var(--bord); }
}

@media(min-width:500px) {
 body[data-city] .hero-actions { flex-direction:row; flex-wrap:wrap; align-items:center; gap:12px 16px; }
}

/* On wide screens the environment artwork ends at the last line of adjacent copy. */
@media(min-width:1001px) {
 body[data-city] #env .poster { position:relative; top:0; align-self:stretch; height:auto; aspect-ratio:auto; min-height:0; }
}

@media(pointer:coarse) {
 body[data-city] button.btn { -webkit-appearance:none; appearance:none; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
 body[data-city] .btn > span { white-space:nowrap; }
 body[data-city] #top .header-enrol-label { flex:1 1 auto; text-align:center; }
}

/* Native touch labels are centered in the space before the fixed arrow circle. */
@media(pointer:coarse) {
 body[data-city] .hero-actions .btn.openForm {
  display:grid; grid-template-columns:minmax(0,1fr) 32px; column-gap:8px;
  padding:6px; align-items:center;
 }
 body[data-city] .hero-actions .btn.openForm > span {
  display:block; width:100%; text-align:center; padding-top:2px; line-height:1.2;
 }
 body[data-city] #top .top-right > .header-enrol {
  display:grid; grid-template-columns:minmax(0,1fr) 32px; gap:6px; padding:6px;
 }
 body[data-city] #top .header-enrol-label { display:block; width:100%; padding-top:1px; text-align:center; }
 body[data-city] #top .header-enrol i,
 body[data-city] #top .header-enrol:hover i { position:static; transform:none; margin:0; }
}
@media(pointer:coarse) and (max-width:1000px) {
 body[data-city] #top .top-right > .header-enrol { grid-template-columns:minmax(0,1fr) 24px; gap:6px; padding:4px; }
}

/* Preserve usable controls while the surrounding phone page scales down. */
[data-scaled-phone] body[data-city] { --header-height:calc(60px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .top-right { width:calc(174px * var(--touch-ui-factor)); flex-basis:calc(174px * var(--touch-ui-factor)); gap:calc(6px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .top-right > .header-enrol {
 width:calc(124px * var(--touch-ui-factor)); min-width:0;
 height:calc(48px * var(--touch-ui-factor)); min-height:calc(48px * var(--touch-ui-factor));
 grid-template-columns:minmax(0,1fr) calc(28px * var(--touch-ui-factor));
 padding:calc(6px * var(--touch-ui-factor)); gap:calc(6px * var(--touch-ui-factor));
 font-size:calc(11px * var(--touch-ui-factor));
}
[data-scaled-phone] body[data-city] #top .header-enrol i,
[data-scaled-phone] body[data-city] #top .header-enrol:hover i { width:calc(28px * var(--touch-ui-factor)); height:calc(28px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .header-enrol i svg { width:calc(16px * var(--touch-ui-factor)); height:calc(16px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .header-call { width:calc(48px * var(--touch-ui-factor)); height:calc(48px * var(--touch-ui-factor)); flex-basis:calc(48px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .header-call svg { width:calc(20px * var(--touch-ui-factor)); height:calc(20px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] .hero-actions { column-gap:calc(8px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] .hero-actions .btn.openForm,
[data-scaled-phone] body[data-city] .hero-actions .link { width:max(190px,calc(140px * var(--touch-ui-factor))); min-width:0; min-height:calc(48px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] main .btn.openForm,
[data-scaled-phone] body[data-city] #join .btn.openForm { height:calc(48px * var(--touch-ui-factor)); min-height:calc(48px * var(--touch-ui-factor)); font-size:calc(13px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] .hero-actions .btn.openForm { grid-template-columns:minmax(0,1fr) calc(32px * var(--touch-ui-factor)); padding:calc(6px * var(--touch-ui-factor)); column-gap:calc(8px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] main .btn.openForm i,
[data-scaled-phone] body[data-city] #join .btn.openForm i { width:calc(32px * var(--touch-ui-factor)); height:calc(32px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] main .btn.openForm i svg { width:calc(16px * var(--touch-ui-factor)); height:calc(16px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] .hero-actions .link { font-size:calc(10.5px * var(--touch-ui-factor)); padding-left:calc(10px * var(--touch-ui-factor)); padding-right:0; gap:calc(4px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] .hero-actions .link svg { width:calc(12px * var(--touch-ui-factor)); height:calc(12px * var(--touch-ui-factor)); flex-basis:calc(12px * var(--touch-ui-factor)); }

/* Troitsk first screen: balanced phone controls and centered native labels. */
@media(max-width:1000px) {
 body[data-city] .hero-actions { flex-direction:row; flex-wrap:nowrap; align-items:center; gap:8px; }
 body[data-city] .hero-actions .btn.openForm,
 body[data-city] .hero-actions .link { box-sizing:border-box; width:190px; min-width:0; height:44px; min-height:44px; margin:0; }
 body[data-city] .hero-actions .link { display:inline-flex; align-items:center; justify-content:space-between; padding:0 10px; line-height:1.2; }
 body[data-city] .hero-actions .btn.openForm > span { padding-top:4px; line-height:1.2; }
 body[data-city] #top .header-enrol-label { padding-top:3px; line-height:1.2; }
}
[data-scaled-phone] body[data-city] #top .header-identity { width:calc(128px * var(--touch-ui-factor)); flex-basis:calc(128px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .brand { width:calc(128px * var(--touch-ui-factor)); min-width:calc(128px * var(--touch-ui-factor)); max-width:calc(128px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .top-right { width:calc(146px * var(--touch-ui-factor)); flex-basis:calc(146px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .top-right > .header-enrol { width:calc(104px * var(--touch-ui-factor)); height:calc(40px * var(--touch-ui-factor)); min-height:calc(40px * var(--touch-ui-factor)); grid-template-columns:minmax(0,1fr) calc(24px * var(--touch-ui-factor)); padding:calc(4px * var(--touch-ui-factor)); gap:calc(4px * var(--touch-ui-factor)); font-size:calc(10px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .header-enrol i,
[data-scaled-phone] body[data-city] #top .header-enrol:hover i { width:calc(24px * var(--touch-ui-factor)); height:calc(24px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .header-call { width:calc(36px * var(--touch-ui-factor)); height:calc(36px * var(--touch-ui-factor)); flex-basis:calc(36px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] .hero-actions .btn.openForm,
[data-scaled-phone] body[data-city] .hero-actions .link { width:calc(136px * var(--touch-ui-factor)); height:calc(44px * var(--touch-ui-factor)); min-height:calc(44px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] .hero-actions .btn.openForm { font-size:calc(12px * var(--touch-ui-factor)); grid-template-columns:minmax(0,1fr) calc(28px * var(--touch-ui-factor)); padding:calc(5px * var(--touch-ui-factor)); gap:calc(5px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] .hero-actions .btn.openForm i { width:calc(28px * var(--touch-ui-factor)); height:calc(28px * var(--touch-ui-factor)); }

/* Troitsk: underline follows the complete link, including its arrow. */
@media(max-width:1000px) {
 body[data-city] .hero-actions .link { width:max-content; flex:0 0 auto; padding-left:0; padding-right:0; gap:6px; }
 body[data-city] .hero-actions .link::after { left:0; right:0; bottom:5px; height:1px; }
}
[data-scaled-phone] body[data-city] .hero-actions .btn.openForm { width:calc(128px * var(--touch-ui-factor)); flex:0 0 auto; }
[data-scaled-phone] body[data-city] .hero-actions .link { width:max-content; padding-left:0; padding-right:0; gap:calc(4px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .top-right { width:calc(150px * var(--touch-ui-factor)); flex-basis:calc(150px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .top-right > .header-enrol { width:calc(112px * var(--touch-ui-factor)); height:calc(36px * var(--touch-ui-factor)); min-height:calc(36px * var(--touch-ui-factor)); grid-template-columns:minmax(0,1fr) calc(22px * var(--touch-ui-factor)); font-size:calc(10.5px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .header-enrol i,
[data-scaled-phone] body[data-city] #top .header-enrol:hover i { width:calc(22px * var(--touch-ui-factor)); height:calc(22px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .header-call { width:calc(32px * var(--touch-ui-factor)); height:calc(32px * var(--touch-ui-factor)); flex-basis:calc(32px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] #top .header-call svg { width:calc(16px * var(--touch-ui-factor)); height:calc(16px * var(--touch-ui-factor)); }

/* Troitsk spacing rhythm and a compact, non-modal invitation. */
body[data-city] { --section-space:clamp(52px,7vw,104px); }
body[data-city] .hero { min-height:auto; padding-bottom:40px; }
body[data-city] .hero h1 { margin-top:18px; margin-bottom:22px; }
body[data-city] .hero-actions { margin-top:26px; }
body[data-city] #dirs { padding-top:36px; padding-bottom:var(--section-space); scroll-margin-top:max(12px,calc(var(--header-height) - 72px)); }
body[data-city] #env,
body[data-city] #how { padding-top:var(--section-space); padding-bottom:var(--section-space); }
body[data-city] #join { padding-top:var(--section-space); }
body[data-city] .sec-head { margin-bottom:32px; }
body[data-city] .stick { display:none!important; }
@media(max-width:1000px) {
 body[data-city] .hero { padding-top:calc(var(--header-height) + 28px); padding-bottom:28px; }
 body[data-city] .hero h1 { margin-top:16px; margin-bottom:20px; }
 body[data-city] .hero-actions { margin-top:22px; }
 body[data-city] #dirs { padding-top:28px; }
 body[data-city] #top { padding-left:max(16px,env(safe-area-inset-left)); padding-right:max(16px,env(safe-area-inset-right)); }
}
/* These sizes compensate for the 500px phone composition. */
[data-scaled-phone] body[data-city] #top .header-enrol::before,
[data-scaled-phone] body[data-city] #top .header-call::before { content:""; position:absolute; inset:calc(-6px * var(--touch-ui-factor)) 0; }
[data-scaled-phone] body[data-city] #top .header-call { position:relative; }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

[data-scaled-phone] body[data-city] #top .header-call::before { inset:calc(-6px * var(--touch-ui-factor)); }

/* A lighter invitation and consistent first-screen action typography. */
body[data-city] #top .header-call { background:#49423e; color:var(--cream); border:0; }
body[data-city] #top .header-call:hover { background:#403a37; }
@media(max-width:1000px) {
 body[data-city] .hero-actions { flex-wrap:wrap; gap:10px 20px; }
 body[data-city] .hero-actions .btn.openForm,
 body[data-city] .hero-actions .link { font-size:12px; line-height:1.2; }
 body[data-city] .hero-actions .btn.openForm > span,
 body[data-city] .hero-actions .hero-direction-label,
 body[data-city] #top .header-enrol-label { padding-top:0; line-height:1.2; transform:translateY(2px); }
}
[data-scaled-phone] body[data-city] .hero-actions { gap:calc(10px * var(--touch-ui-factor)) calc(20px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] .hero-actions .btn.openForm,
[data-scaled-phone] body[data-city] .hero-actions .link { font-size:calc(12px * var(--touch-ui-factor)); }
[data-scaled-phone] body[data-city] .hero-actions .btn.openForm > span,
[data-scaled-phone] body[data-city] .hero-actions .hero-direction-label,
[data-scaled-phone] body[data-city] #top .header-enrol-label { transform:translateY(calc(2px * var(--touch-ui-factor))); }
[data-scaled-phone] body[data-city] #top .top-right > .header-enrol { font-size:calc(12px * var(--touch-ui-factor)); }

/* Invitation rhythm: a shared heading row, separated copy and a compact CTA. */
body[data-city] .lesson-nudge {
 --nudge-scale:1; box-sizing:border-box;
 width:min(calc(280px * var(--nudge-scale)),calc(100vw - 32px * var(--nudge-scale)));
 padding:calc(14px * var(--nudge-scale));
 right:max(calc(16px * var(--nudge-scale)),env(safe-area-inset-right));
 bottom:calc((12px + env(safe-area-inset-bottom)) * var(--nudge-scale));
 max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain;
}
[data-scaled-phone] body[data-city] .lesson-nudge { --nudge-scale:var(--touch-ui-factor); }
body[data-city] .lesson-nudge .nudge-heading { display:grid; grid-template-columns:minmax(0,1fr) calc(24px * var(--nudge-scale)); align-items:center; gap:calc(8px * var(--nudge-scale)); margin-bottom:calc(8px * var(--nudge-scale)); }
body[data-city] .lesson-nudge h2 { margin:0; font-size:calc(18px * var(--nudge-scale)); line-height:1.2; font-weight:400; }
body[data-city] .lesson-nudge p { margin:0 0 calc(12px * var(--nudge-scale)); font-size:calc(12px * var(--nudge-scale)); line-height:1.4; text-wrap:pretty; }
body[data-city] .lesson-nudge .lesson-nudge-close { position:relative; inset:auto; width:calc(24px * var(--nudge-scale)); height:calc(24px * var(--nudge-scale)); margin:0; padding:0; font-size:calc(23px * var(--nudge-scale)); line-height:1; color:var(--bord); }
body[data-city] .lesson-nudge .lesson-nudge-close::before { content:""; position:absolute; inset:calc(-10px * var(--nudge-scale)); }


/* One disclosure layout: only the measured description lifts the title. */
body[data-city] #dirs {
 --direction-control-scale:1; --direction-cta-ratio:.9; --direction-control-gap:12px;
 --direction-cta-width:calc(124px * var(--direction-cta-ratio) * var(--direction-control-scale));
 --direction-control-height:calc(36px * var(--direction-cta-ratio) * var(--direction-control-scale));
 --direction-transition:240ms cubic-bezier(.22,.61,.36,1);
}
[data-scaled-phone] body[data-city] #dirs { --direction-control-scale:var(--touch-ui-factor); }
body[data-city] #dirs .card[data-disclosure] { text-align:left; }
body[data-city] #dirs .card[data-disclosure] > .direction-copy {
 left:var(--direction-inset)!important;
 right:calc(var(--direction-inset) + var(--direction-cta-width) + var(--direction-control-gap) * var(--direction-control-scale))!important;
 bottom:var(--direction-inset)!important; pointer-events:none;
 transform:translateY(0)!important; transition:transform var(--direction-transition);
}
body[data-city] #dirs .card[data-disclosure].is-expanded > .direction-copy {
 transform:translateY(calc(-1 * var(--description-rise,48px)))!important;
}
body[data-city] #dirs .card[data-disclosure] .name { display:block; padding-right:0; font-size:clamp(30px,3.2vw,44px); line-height:1.08; }
body[data-city] #dirs .card[data-disclosure] .desc,
body[data-city] #dirs .card[data-disclosure]:hover .desc,
body[data-city] #dirs .card[data-disclosure]:focus-visible .desc {
 display:block; position:absolute; left:0; top:100%; width:100%; height:auto; max-height:none;
 overflow:visible; padding:0; margin:8px 0 0; opacity:0; visibility:hidden;
 font-size:15px; line-height:1.35; text-wrap:pretty;
 transition:opacity var(--direction-transition),visibility 0s linear 240ms;
}
body[data-city] #dirs .card[data-disclosure].is-expanded .desc { opacity:1; visibility:visible; transition-delay:0s; }
body[data-city] #dirs .direction-toggle { position:absolute; z-index:2; inset:0; width:100%; height:100%; border:0; padding:0; background:transparent; border-radius:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; pointer-events:auto; }
body[data-city] #dirs .direction-toggle:focus-visible { outline:3px solid var(--ink); outline-offset:-5px; }
body[data-city] #dirs .card[data-disclosure] .direction-indicator {
 display:grid; place-items:center; width:var(--direction-control-height); height:var(--direction-control-height);
 bottom:var(--direction-inset); right:var(--direction-inset); border:0; border-radius:50%;
 background:var(--cream); color:#1a1a1a; transform:none; padding:0; pointer-events:none;
 opacity:1; visibility:visible; transition:opacity var(--direction-transition),visibility 0s;
}
body[data-city] #dirs .card[data-disclosure] .direction-indicator svg {
 width:calc(17px * var(--direction-control-scale)); height:calc(17px * var(--direction-control-scale));
 display:block; fill:none; stroke:currentColor; stroke-width:2.1; stroke-linecap:round; transform:none; transition:none;
}
body[data-city] #dirs .card[data-disclosure] .direction-indicator::before,
body[data-city] #dirs .card[data-disclosure] .direction-indicator::after { content:none; }
body[data-city] #dirs .card[data-disclosure].is-expanded .direction-indicator { opacity:0; visibility:hidden; transition-delay:0s,240ms; }
body[data-city] #dirs .card[data-disclosure] .direction-signup {
 --cta-position:absolute; --cta-ratio:var(--direction-cta-ratio);
 --cta-bg:#1a1a1a; --cta-text:#fff; --cta-circle-bg:var(--cream); --cta-icon-color:#1a1a1a; --cta-hover:#1a1a1a;
 --cta-transition:opacity var(--direction-transition),visibility 0s linear 240ms,background-color .2s;
 z-index:3; right:var(--direction-inset); bottom:var(--direction-inset);
 opacity:0; visibility:hidden; pointer-events:none;
}
body[data-city] #dirs .card[data-disclosure].is-expanded .direction-signup {
 --cta-transition:opacity var(--direction-transition),visibility 0s,background-color .2s;
 opacity:1; visibility:visible; pointer-events:auto;
}
body[data-city] #dirs .card[data-disclosure]:not(.is-expanded)::before,
body[data-city] #dirs .card[data-disclosure]:not(.is-expanded)::after { transform:translateY(12%); opacity:.8; }
@media(max-width:1000px) {
 body[data-city] #dirs .card[data-disclosure],
 body[data-city] #dirs .card[data-disclosure]:hover { height:280px; }
 body[data-city] #dirs .card[data-disclosure] .name { font-size:30px; }
 body[data-city] #dirs .card[data-disclosure] > .ico { width:56px; height:56px; }
}
[data-scaled-phone] body[data-city] #dirs .card[data-disclosure] .desc { font-size:calc(13px * var(--touch-ui-factor)); }
body[data-city] .lesson-nudge .lesson-nudge-close { display:grid; place-items:center; border-radius:50%; background:var(--cream); }
body[data-city] .lesson-nudge .lesson-nudge-close svg { display:block; width:calc(17px * var(--nudge-scale)); height:calc(17px * var(--nudge-scale)); fill:none; stroke:currentColor; stroke-width:2.1; stroke-linecap:round; }
@media(prefers-reduced-motion:reduce) {
 body[data-city] #dirs { --direction-transition:0s; }
 body[data-city] #dirs .card[data-disclosure] * { transition:none!important; }
}


/* Shared bottom baseline: description and CTA occupy independent columns. */
body[data-city] #dirs .card[data-disclosure] { container:direction-card / inline-size; --direction-action-width:176px; --direction-action-height:52px; }
body[data-city] #dirs .card[data-disclosure] > .direction-copy {
 right:calc(var(--direction-inset) + var(--direction-action-width) + 12px * var(--direction-control-scale))!important;
 bottom:var(--direction-inset)!important; transform:none!important; transition:none!important;
}
body[data-city] #dirs .card[data-disclosure].is-expanded > .direction-copy { transform:none!important; }
body[data-city] #dirs .card[data-disclosure] .name,
body[data-city] #dirs .card[data-disclosure] .desc,
body[data-city] #dirs .card[data-disclosure] .desc-copy {
 overflow:visible!important; text-overflow:clip!important; -webkit-line-clamp:unset!important; line-clamp:unset!important;
 max-height:none!important; max-width:none!important; white-space:normal; overflow-wrap:anywhere; word-break:normal;
}
body[data-city] #dirs .card[data-disclosure] .name {
 display:block; padding:0; font-size:clamp(28px,7.5cqw,42px)!important; line-height:1.12!important;
 transform:translateY(0)!important; transition:transform var(--direction-transition)!important;
}
body[data-city] #dirs .card[data-disclosure].is-expanded .name { transform:translateY(calc(-1 * var(--description-rise,48px)))!important; }
body[data-city] #dirs .card[data-disclosure] .desc,
body[data-city] #dirs .card[data-disclosure]:hover .desc {
 position:absolute; top:auto!important; bottom:0; left:0; width:100%; padding:0!important; margin:0!important;
 font-size:clamp(15px,3.6cqw,18px)!important; line-height:1.45!important;
 transform:translateY(4px)!important; transition:opacity var(--direction-transition),transform var(--direction-transition),visibility 0s linear 240ms;
}
body[data-city] #dirs .card[data-disclosure].is-expanded .desc {
 transform:translateY(0)!important; transition-delay:0s;
}
body[data-city] #dirs .card[data-disclosure] .desc-copy { transform:none!important; font-size:inherit!important; line-height:inherit!important; transition:none!important; }
body[data-city] #dirs .card[data-disclosure] .direction-signup {
 --cta-ratio:1; --cta-height:52px; --cta-circle:36px; --cta-inset:8px; --cta-leading:20px;
 --cta-gap:10px; --cta-font:15px; --cta-min-width:176px; --cta-arrow:22px; --cta-stroke:1.63636;
}
body[data-city] #dirs .card[data-disclosure] .direction-indicator { width:var(--direction-action-height); height:var(--direction-action-height); }
@media(min-width:1001px) and (max-width:1350px) {
 body[data-city] #dirs .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:1000px) {
 body[data-city] #dirs .card[data-disclosure] .direction-signup {
  --cta-height:36px; --cta-circle:24px; --cta-inset:6px; --cta-leading:12px;
  --cta-gap:6px; --cta-font:11px; --cta-min-width:124px; --cta-arrow:16px; --cta-stroke:2.25;
 }
}
[data-scaled-phone] body[data-city] #dirs .card[data-disclosure] .desc { font-size:calc(13px * var(--touch-ui-factor))!important; }

/* Keep the desktop call circle exactly as tall as the adjacent compact CTA. */
@media(min-width:1001px) {
 body[data-city] #top .header-call { width:var(--header-action-size,48px); height:var(--header-action-size,48px); flex-basis:var(--header-action-size,48px); border-radius:50%; }
}

/* Scale the selected direction icon, never its text or background mask. */
body[data-city] #dirs .card[data-disclosure] > .ico {
 transform:scale(1)!important; transform-origin:center; transition:transform 240ms cubic-bezier(.22,.61,.36,1);
}
body[data-city] #dirs .card[data-disclosure].is-expanded > .ico { transform:scale(1.15)!important; }
/* The translucent SVG groups stay still; only their inner contours flip. */
body[data-city] #dirs .card.actor .bg-clip { isolation:isolate; }

/* Environment module: paired desktop columns and the direction-card corner radius. */
body[data-city] #env .poster { border-radius:8px; overflow:hidden; isolation:isolate; }
@media(min-width:1001px) {
 body[data-city] #env { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:stretch; gap:clamp(32px,6vw,96px); }
 body[data-city] #env > div:first-child { min-width:0; }
 body[data-city] #env .kicker { margin-bottom:18px; }
 body[data-city] #env .h2 { font-size:clamp(48px,5.6vw,88px); line-height:1.05; margin-bottom:36px; }
 body[data-city] #env .path { margin:0; }
 body[data-city] #env .path li { padding-bottom:32px; }
 body[data-city] #env .path li:last-child { padding-bottom:0; }
 body[data-city] #env .path h3 { font-size:clamp(24px,2.1vw,32px); line-height:1.15; margin-bottom:10px; }
 body[data-city] #env .path p { max-width:none; font-size:17px; line-height:1.5; }
 body[data-city] #env .poster { position:relative; top:0; width:100%; max-width:none; align-self:stretch; height:auto; min-height:0; aspect-ratio:auto; }
}

/* One generous desktop scale for the three modules after directions. */
@media(min-width:1001px) {
 body[data-city] { --content-module-height:clamp(900px,90svh,1040px); --content-module-padding:clamp(72px,6vw,96px); --content-module-heading:clamp(56px,6.6vw,108px); }
 body[data-city] #env,
 body[data-city] #how,
 body[data-city] #join { min-height:var(--content-module-height); padding-top:var(--content-module-padding); }
 body[data-city] #env,
 body[data-city] #how { padding-bottom:var(--content-module-padding); }
 body[data-city] #env .h2,
 body[data-city] #how .h2,
 body[data-city] #join .h2 { font-size:var(--content-module-heading); line-height:1.05; margin-bottom:40px; }
 body[data-city] #env .kicker,
 body[data-city] #how .kicker,
 body[data-city] #join .kicker { margin-bottom:22px; }
 body[data-city] #env > div:first-child { display:flex; flex-direction:column; }
 body[data-city] #env .path { display:flex; flex:1; flex-direction:column; justify-content:space-between; margin-top:0; }
 body[data-city] #how { display:flex; flex-direction:column; }
 body[data-city] #how .h2 { margin-bottom:48px; }
 body[data-city] #how .steps { margin-top:clamp(48px,8vh,96px); margin-bottom:auto; }
 body[data-city] #env .path h3,
 body[data-city] #how .step h3 { font-size:clamp(26px,2.3vw,34px); line-height:1.15; }
 body[data-city] #env .path p,
 body[data-city] #how .step p { font-size:18px; line-height:1.5; max-width:none; }
 body[data-city] #join > div:first-child { padding-bottom:var(--content-module-padding); }
}

/* The final primary CTA uses the shared geometry and its high-contrast light palette. */
body[data-city] #join .join-primary { --cta-bg:var(--cream); --cta-text:var(--bord); --cta-circle-bg:var(--bord); --cta-icon-color:var(--cream); --cta-hover:#f1e2d3; }


/* Balance the final composition inside the same desktop module height. */
@media(min-width:1001px) {
 body[data-city] #join {
  align-items:center;
  padding-bottom:var(--content-module-padding);
 }
 body[data-city] #join > div:first-child { padding-bottom:0; }
 body[data-city] #join .arch {
  width:min(100%,560px,calc((var(--content-module-height) - 2 * var(--content-module-padding)) * .75));
  margin-bottom:0;
  align-self:center;
 }
}

/* Match the lower illustration corners to the environment animation. */
body[data-city] #join .arch { border-bottom-left-radius:8px; border-bottom-right-radius:8px; overflow:hidden; isolation:isolate; }

/* Equal mobile screens after the environment section; content may grow both modules. */
@media(max-width:1000px) {
 body[data-city] { --mobile-module-scale:var(--touch-ui-factor,1); --mobile-module-pad:calc(24px * var(--mobile-module-scale)); }
 body[data-city] :is(#how,#join) {
  box-sizing:border-box; min-height:max(100svh,var(--mobile-module-natural,0px));
  padding:calc(var(--mobile-module-header,var(--header-height)) + var(--mobile-module-pad)) var(--gutter) var(--mobile-module-pad);
  scroll-margin-top:0; overflow:visible;
 }
 body[data-city] #how { display:flex; flex-direction:column; }
 body[data-city] #how .h2 { margin-bottom:var(--mobile-module-pad); }
 body[data-city] #how .steps {
  display:flex; flex:1; flex-direction:column; justify-content:space-between;
  gap:var(--mobile-module-pad); margin:0;
 }
 body[data-city] #how .step { flex:none; }
 body[data-city] #join {
  display:grid; grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(min-content,1fr) auto; gap:var(--mobile-module-pad);
  align-items:stretch; align-content:stretch;
 }
 body[data-city] #join > div:first-child {
  display:flex; flex-direction:column; justify-content:space-between;
  gap:calc(18px * var(--mobile-module-scale)); padding-bottom:0; min-width:0;
 }
 body[data-city] #join :is(.kicker,.h2,.lead,.addr) { margin:0; }
 body[data-city] #join .addr { padding-top:calc(16px * var(--mobile-module-scale)); }
 body[data-city] #join .arch { align-self:end; margin:0; }
}

/* Keep the mobile timeline continuous while Safari's browser chrome moves. */
@media(max-width:680px) {
 body[data-city] #how .steps {
  justify-content:center; gap:clamp(24px,4svh,36px);
 }
 body[data-city] #how .steps::after {
  height:var(--steps-track,0px); transform:scaleY(var(--steps-progress,0));
  transform-origin:top; transition:none;
 }
 /* The timeline has its own progress animation; independently hiding each line
    of its text creates apparent holes when slowly crossing observer boundaries. */
 body.reveal-enabled[data-city] #how .step > .scroll-reveal {
  opacity:1; translate:none; transform:none; transition:none; pointer-events:auto;
 }
}

/* Keep the first-screen logo stationary instead of floating vertically. */
body[data-city] .hero .stage > svg { animation:none; transform:none; }

/* Header artwork must paint independently from a hidden SVG symbol sprite. */
body:is(.home-page,[data-city]) :is(.home-brand,.brand),
body:is(.home-page,[data-city]) :is(.home-brand,.brand) > svg[data-brand-logo] {
 display:block; visibility:visible; opacity:1;
}
body:is(.home-page,[data-city]) :is(.home-brand,.brand) > svg[data-brand-logo] {
 width:100%; height:auto; aspect-ratio:567 / 91; overflow:visible;
}
@media(max-width:1000px) {
 body[data-city] #top {
  padding-left:clamp(calc(16px * var(--touch-ui-factor,1)),5vw,calc(20px * var(--touch-ui-factor,1)));
  padding-right:clamp(calc(16px * var(--touch-ui-factor,1)),5vw,calc(20px * var(--touch-ui-factor,1)));
  gap:calc(8px * var(--touch-ui-factor,1));
 }
 body[data-city] #top .header-identity {
  width:auto; min-width:0; flex:0 0 auto; height:auto; overflow:visible;
 }
 body[data-city] #top .brand { flex-shrink:0; overflow:visible; }
}
/* Scroll reveals never move, hide or scale a direction-card container. */
body[data-city] #dirs .card[data-disclosure] {
 opacity:1!important; visibility:visible!important; transform:none!important;
 translate:none!important; scale:none!important; animation:none!important;
 transition-property:background-color,border-color,color;
}
@media(max-width:1024px) {
 body[data-city]:not(.measure-module-baseline) #how .step p { max-width:none; width:100%; }
}
@media(min-width:681px) and (max-width:1280px) {
 body[data-city] .hero { grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); gap:24px; }
 body[data-city] .hero > :first-child { min-width:0; }
 body[data-city] .hero h1 { font-size:clamp(34px,4.5vw,58px); }
 body[data-city] .hero > .stage { display:block; width:min(100%,420px); min-width:0; justify-self:center; }
}
@media(min-width:600px) and (max-width:759px) {
 body[data-city] #env .poster { width:min(100%,320px); justify-self:center; }
}
@media(min-width:760px) and (max-width:1024px) {
 body[data-city] #env {
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:24px; align-items:stretch;
 }
 body[data-city] #env > div:first-child { min-width:0; }
 body[data-city] #env .h2 { font-size:clamp(42px,5.2vw,56px); margin-bottom:28px; }
 body[data-city] #env .path { margin:0; }
 body[data-city] #env .path h3 { font-size:24px; }
 body[data-city] #env .path p { max-width:none; font-size:16px; line-height:1.5; }
 body[data-city] #env .poster {
  width:100%; max-width:none; height:auto; min-height:360px; aspect-ratio:auto; top:0; align-self:stretch;
 }
}
@media(min-width:681px) and (max-width:1024px) {
 body[data-city]:not(.measure-module-baseline) #how .steps {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; align-content:center; align-items:start;
 }
 body[data-city]:not(.measure-module-baseline) #how .step { min-width:0; padding:56px 0 0; }
 body[data-city]:not(.measure-module-baseline) #how .step .n { font-size:clamp(48px,6vw,64px); }
 body[data-city]:not(.measure-module-baseline) #how .step h3 { font-size:24px; line-height:1.2; }
 body[data-city]:not(.measure-module-baseline) #how .step p { font-size:16px; line-height:1.5; }
}
@media(max-width:680px) {
 body[data-city]:not(.measure-module-baseline) #join { grid-template-rows:auto minmax(min-content,1fr); }
 body[data-city]:not(.measure-module-baseline) #join > div:first-child {
  justify-content:flex-start; gap:calc(18px * var(--mobile-module-scale));
 }
 body[data-city]:not(.measure-module-baseline) #join .arch { align-self:center; }
}
@media(min-width:681px) and (max-width:1000px) {
 body[data-city]:not(.measure-module-baseline) #join {
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); grid-template-rows:minmax(0,1fr);
  gap:24px; align-items:center;
 }
 body[data-city]:not(.measure-module-baseline) #join > div:first-child { justify-content:center; gap:24px; }
 body[data-city]:not(.measure-module-baseline) #join .h2 { font-size:clamp(42px,6vw,60px); }
 body[data-city]:not(.measure-module-baseline) #join .arch { width:min(100%,340px); align-self:center; }
}

@media(min-width:681px) and (max-width:1024px) {
 body[data-city] #how .steps::before,
 body[data-city] #how .steps::after { top:var(--steps-start,15px); }
}

@media(max-width:680px) {
 body[data-city] #top .top-right { width:auto; flex:0 0 auto; gap:calc(6px * var(--touch-ui-factor,1)); }
 body[data-city] #top .header-enrol.tz-cta {
  --cta-height:36px; --cta-circle:22px; --cta-inset:7px; --cta-leading:10px;
  --cta-gap:6px; --cta-font:10.5px; --cta-min-width:112px; --cta-arrow:16px;
 }
 body[data-city] #top .header-call {
  width:calc(32px * var(--touch-ui-factor,1)); height:calc(32px * var(--touch-ui-factor,1));
  flex-basis:calc(32px * var(--touch-ui-factor,1));
 }
}

@media(min-width:600px) and (max-width:1024px) {
 body[data-city] #env { padding-top:calc(var(--header-height) + 24px); }
}
@media(max-width:680px) {
 body[data-city]:not(.measure-module-baseline) #join { grid-template-rows:auto minmax(0,1fr); }
 body[data-city]:not(.measure-module-baseline) #join .arch {
  height:min(100%,calc(400px * var(--mobile-module-scale)),calc((100vw - 2 * var(--gutter)) / .75));
  width:auto; max-width:100%; aspect-ratio:301.5 / 402; align-self:center;
 }
 body[data-city].measure-module-content #join .arch { height:0; min-height:0; }
}
