@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  color-scheme: dark;

  /* Монохромный рамп: единственная ось — светлота */
  --black: #050505;
  --surface-1: #0a0a0a;
  --surface-2: #0f0f0f;
  --surface-3: #151515;
  --white: #f4f3ed;
  --muted: #9a9a95;
  --dim: #6e6e69;
  --line: rgb(244 243 237 / 14%);
  --line-strong: rgb(244 243 237 / 34%);
  --line-bright: rgb(244 243 237 / 62%);

  /* Движение */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 720ms;

  --page-pad: clamp(1.25rem, 3.5vw, 4rem);
  --header-height: 5rem;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-ui: "Onest", system-ui, sans-serif;
}

html {
  min-width: 320px;
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  scrollbar-gutter: stable;
}


body {
  min-width: 320px;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Плёночное зерно — даёт монохрому фактуру вместо плоской заливки */
body::after {
  position: fixed;
  z-index: 300;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.035;
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  background: var(--white);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 1rem;
  left: 1rem;
  translate: 0 -200%;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
}

.skip-link:focus {
  translate: 0;
}

/* ---------- Шапка ---------- */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--page-pad);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), backdrop-filter var(--dur) var(--ease-out);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgb(5 5 5 / 82%);
  backdrop-filter: blur(16px) saturate(120%);
}

/* Пока открыто мобильное меню, у шапки не должно быть backdrop-filter:
   иначе шапка становится containing block для position: fixed оверлея
   навигации, и он схлопывается в полоску шапки вместо всего экрана. */
body.menu-open .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition: none;
}

.brand {
  display: block;
  width: clamp(6.25rem, 8.5vw, 7.75rem);
}

.brand img,
.hero-title img,
.footer-logo img {
  width: 100%;
  height: auto;
}

/* Логотип в шапке перетекает между страницами при переходе.
   Имя должно быть уникальным на странице — поэтому только шапка,
   логотипы в hero и подвале остаются обычными. */
.brand img {
  view-transition-name: brand-mark;
}

.site-navigation {
  display: flex;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Подчёркивание выезжает слева направо, а не появляется рывком */
.site-navigation > a:not(.nav-cta) {
  position: relative;
  padding-block: 0.45rem;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.site-navigation > a:not(.nav-cta)::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  scale: 0 1;
  transform-origin: left;
  transition: scale var(--dur) var(--ease-out);
}

.site-navigation > a:not(.nav-cta):hover {
  color: var(--white);
}

.site-navigation > a:not(.nav-cta):hover::after {
  scale: 1 1;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-content: center;
  gap: 0.42rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1.55rem;
  height: 1px;
  background: currentColor;
  transition: rotate var(--dur) var(--ease-out), translate var(--dur) var(--ease-out);
}

/* ---------- Кнопки: заливка «шторкой» снизу вверх ---------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --fill: var(--white);
  --fill-text: var(--black);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.btn::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--fill);
  content: "";
  scale: 1 0;
  transform-origin: bottom;
  transition: scale var(--dur) var(--ease-out);
}

.btn:hover::before,
.btn:focus-visible::before {
  scale: 1 1;
}

.btn:hover,
.btn:focus-visible {
  color: var(--fill-text);
}

/* Инверсные (уже залитые белым) кнопки заливаются чёрным */
.btn-inverse {
  background: var(--white);
  color: var(--black);
  --fill: var(--black);
  --fill-text: var(--white);
}

.nav-cta {
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--white);
  font-weight: 720;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: calc(var(--header-height) + 1.5rem) var(--page-pad) 2.25rem;
  isolation: isolate;
}

/* Две концентрические окружности — глубина без цвета */
.hero::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(75vw, 68rem);
  aspect-ratio: 1;
  border: 1px solid rgb(244 243 237 / 6%);
  border-radius: 50%;
  box-shadow: 0 0 0 clamp(3rem, 9vw, 9rem) rgb(244 243 237 / 2.5%);
  content: "";
  translate: -50% -50%;
}

/* Мягкий световой купол за логотипом */
.hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(
    58% 46% at 50% 42%,
    rgb(244 243 237 / 7%),
    transparent 72%
  );
  content: "";
  pointer-events: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 570;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  transition: color var(--dur) var(--ease-out);
}

.live-status.is-open {
  color: var(--white);
}

.status-dot {
  position: relative;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

/* «Открыто» читается пульсацией, а не цветом */
.live-status.is-open .status-dot {
  background: var(--white);
  border-color: var(--white);
}

.live-status.is-open .status-dot::after {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--white);
  border-radius: 50%;
  content: "";
  animation: pulse-ring 2.4s var(--ease-out) infinite;
}

@keyframes pulse-ring {
  0% {
    opacity: 0.7;
    scale: 1;
  }
  70%,
  100% {
    opacity: 0;
    scale: 3.2;
  }
}

.hero-title {
  display: grid;
  align-self: center;
  justify-items: center;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.hero-title img {
  width: min(78vw, 67rem);
}

/* Логотип уплывает вверх по мере скролла. Нативная анимация по таймлайну
   скролла: без JS, вне основного потока, поэтому не «залипает».
   Безопасна только потому, что mix-blend-mode убран — иначе transform
   создал бы stacking context и подложка логотипа проступила бы. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-title {
      animation: hero-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 80svh;
    }
  }
}

@keyframes hero-drift {
  to {
    opacity: 0.14;
    translate: 0 -2.5rem;
    scale: 0.94;
  }
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(24rem, 1.2fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
}

.hero-lead {
  max-width: 19ch;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero-kicker {
  margin-bottom: 0.55rem;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 570;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 26rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line-strong);
}

.hero-action {
  display: flex;
  min-height: 4.65rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-action + .hero-action {
  border-left: 1px solid var(--line-strong);
}

.hero-action-secondary {
  color: var(--muted);
}

/* Стрелка подаётся по направлению действия */
.hero-action span,
.button span {
  display: inline-block;
  font-size: 1.25em;
  transition: translate var(--dur) var(--ease-out);
}

.hero-action-primary:hover span,
.button-solid:hover span {
  translate: 0.15em 0.15em;
}

.hero-action-secondary:hover span,
.button-outline:hover span {
  translate: 0.15em -0.15em;
}

/* ---------- Секция адресов ---------- */

.addresses {
  padding: clamp(6rem, 11vw, 11rem) var(--page-pad);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-height);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(9rem, 0.45fr) 1.55fr;
  gap: 2rem;
  margin-bottom: clamp(4rem, 8vw, 7.5rem);
}

.section-label {
  padding-top: 0.75rem;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 570;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.7vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

.section-intro {
  max-width: 32rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

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

.branch-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 30rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.75rem);
  border: 1px solid var(--line);
  background: var(--surface-1);
  scroll-margin-top: calc(var(--header-height) + 1rem);
  transition: background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), translate var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

/* Блик по верхней кромке — карточка «ловит свет» при наведении */
.branch-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-bright) 50%,
    transparent
  );
  content: "";
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.branch-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  translate: 0 -6px;
  box-shadow: 0 32px 60px -32px rgb(0 0 0 / 90%);
}

.branch-card:hover::before {
  opacity: 1;
}

.branch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 570;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.branch-index {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--white);
  place-content: center;
  transition: background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.branch-card:hover .branch-index {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.branch-hours {
  text-align: right;
}

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

/* Кегль подобран так, чтобы самое длинное «Куйши Дина»
   помещалось в треть ширины одной строкой */
.branch-main h3 {
  max-width: 100%;
  font-family: var(--font-ui);
  font-size: clamp(1.9rem, 3.1vw, 3.6rem);
  font-weight: 790;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}

.branch-main address {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-style: normal;
  font-weight: 520;
}

.phone-link {
  position: relative;
  display: inline-block;
  margin-top: 0.7rem;
  padding-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  transition: color var(--dur-fast) var(--ease-out);
}

.phone-link::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.45;
  transition: opacity var(--dur) var(--ease-out);
}

.phone-link:hover {
  color: var(--white);
}

.phone-link:hover::after {
  opacity: 1;
}

.branch-actions {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0.65rem;
}

/* У закрытого филиала только «Маршрут» */
.branch-actions-single {
  grid-template-columns: 1fr;
}

/* ---------- Филиал на ремонте ---------- */

.branch-card.is-closed {
  border-style: dashed;
  background: transparent;
}

.branch-card.is-closed .branch-index,
.branch-card.is-closed .branch-main h3 {
  color: var(--muted);
}

/* Карточка не кликабельна целиком — подъём и блик были бы обманом */
.branch-card.is-closed:hover {
  background: transparent;
  translate: 0;
  box-shadow: none;
}

.branch-card.is-closed:hover::before {
  opacity: 0;
}

.branch-card.is-closed:hover .branch-index {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--muted);
}

.branch-status {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-strong);
  color: var(--white);
  white-space: nowrap;
}

.branch-note {
  max-width: 26ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button-solid {
  border-color: var(--white);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--white);
}

/* ---------- Памятка по бронированию ---------- */

.booking-tip {
  display: grid;
  grid-template-columns: minmax(12rem, 0.55fr) 1.45fr;
  gap: 2rem;
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border: 1px solid var(--line);
  background: var(--surface-1);
}

.booking-tip > p {
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 570;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.booking-tip ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.booking-tip li {
  padding-inline: 1.25rem;
  border-left: 1px solid var(--line);
  font-size: clamp(0.93rem, 1.35vw, 1.08rem);
  font-weight: 520;
}

.booking-tip li span {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

/* ---------- Подвал ---------- */

.site-footer {
  display: grid;
  grid-template-columns: minmax(15rem, 1.7fr) 1fr 1fr auto;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 5.5rem) var(--page-pad);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  gap: 1.25rem;
}

.footer-logo {
  display: block;
  width: min(100%, 12rem);
}

.footer-brand > p,
.copyright {
  color: var(--dim);
  font-size: 0.72rem;
}

.footer-column {
  display: grid;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.footer-column a {
  position: relative;
  width: fit-content;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-column a::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  scale: 0 1;
  transform-origin: left;
  transition: scale var(--dur) var(--ease-out);
}

.footer-column a:hover {
  color: var(--white);
}

.footer-column a:hover::after {
  scale: 1 1;
}

.footer-label {
  margin-bottom: 0.55rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.copyright {
  justify-self: end;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Появление при скролле ---------- */

.reveal {
  opacity: 0;
  translate: 0 2rem;
  transition: opacity var(--dur-slow) var(--ease-out),
    translate var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

.reveal.is-visible {
  opacity: 1;
  translate: 0;
}

/* ---------- Переходы между страницами ---------- */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-out 200ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

::view-transition-new(root) {
  animation: page-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes page-out {
  to {
    opacity: 0;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}

/* ---------- Адаптив ---------- */

/* Три колонки перестают дышать раньше остальной сетки */
@media (max-width: 1180px) {
  .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-main h3 {
    font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  }
}

@media (max-width: 960px) {
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-lead {
    max-width: 24ch;
  }

  .hero-copy {
    max-width: 30rem;
  }

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

  .site-footer {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .copyright {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 800px) {
  :root {
    --header-height: 4.5rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    translate: 0 0.21rem;
    rotate: 45deg;
  }

  .menu-toggle[aria-expanded="true"] span:last-of-type {
    translate: 0 -0.21rem;
    rotate: -45deg;
  }

  .site-navigation {
    position: fixed;
    inset: 0;
    display: flex;
    visibility: hidden;
    pointer-events: none;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
    padding: var(--page-pad);
    background: var(--black);
    font-size: clamp(1.75rem, 8vw, 3.25rem);
    font-weight: 680;
    letter-spacing: -0.04em;
    opacity: 0;
    transition: opacity var(--dur) var(--ease-out),
      visibility var(--dur) var(--ease-out);
  }

  .site-navigation.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }

  /* Пункты въезжают каскадом */
  .site-navigation > a {
    opacity: 0;
    translate: 0 1rem;
    transition: opacity var(--dur) var(--ease-out), translate var(--dur) var(--ease-out);
  }

  .site-navigation.is-open > a {
    opacity: 1;
    translate: 0;
  }

  .site-navigation.is-open > a:nth-child(1) {
    transition-delay: 80ms;
  }

  .site-navigation.is-open > a:nth-child(2) {
    transition-delay: 140ms;
  }

  .site-navigation.is-open > a:nth-child(3) {
    transition-delay: 200ms;
  }

  .site-navigation.is-open > a:nth-child(4) {
    transition-delay: 260ms;
  }

  .site-navigation > a:not(.nav-cta) {
    color: var(--white);
  }

  .site-navigation .nav-cta {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
  }

  .site-navigation .nav-cta::before {
    display: none;
  }

  .hero {
    padding-bottom: 6rem;
  }

  .hero::before {
    width: 112vw;
  }

  .hero-title img {
    width: min(94vw, 42rem);
  }

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

  .hero-action + .hero-action {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .addresses {
    padding-block: clamp(5rem, 16vw, 7rem);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-label {
    padding-top: 0;
  }

  .section-heading h2 {
    max-width: 100%;
    font-size: clamp(2.6rem, 12vw, 4.8rem);
    line-height: 0.97;
  }

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

  .branch-card {
    min-height: 31rem;
  }

  /* На тач-устройствах нет hover — подъём карточки только мешает */
  .branch-card:hover {
    translate: 0;
    box-shadow: none;
  }

  .branch-main h3 {
    font-size: clamp(2.6rem, 11.5vw, 4.3rem);
  }

  .booking-tip {
    grid-template-columns: 1fr;
  }

  .booking-tip ol {
    grid-template-columns: 1fr;
  }

  .booking-tip li {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .booking-tip li span {
    display: inline;
    margin-right: 0.75rem;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  :root {
    --page-pad: 1rem;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-bottom {
    gap: 1.5rem;
  }

  .hero-action {
    min-height: 4.2rem;
  }

  .branch-card {
    min-height: 29rem;
    padding: 1.2rem;
  }

  .branch-top {
    font-size: 0.54rem;
  }

  .branch-main h3 {
    font-size: clamp(2.15rem, 11.2vw, 3.2rem);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    translate: 0;
  }

  /* Псевдоэлементы перехода не попадают под селектор * */
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
