@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;
  --white: #f4f3ed;
  --muted: #9a9a95;
  --dim: #6e6e69;
  --line: rgb(244 243 237 / 14%);
  --line-strong: rgb(244 243 237 / 34%);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-synthesis: none;
  line-height: 1.5;
  -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;
}

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

h1 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: var(--header-height);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: rgb(5 5 5 / 82%);
  backdrop-filter: blur(16px) saturate(120%);
}

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

.brand img {
  display: block;
  width: 100%;
  height: auto;
  view-transition-name: brand-mark;
}

.back-link,
.booking-link {
  font-family: var(--font-display);
  font-size: 0.61rem;
  font-weight: 620;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.back-link {
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease-out);
}

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

/* Заливка «шторкой» снизу вверх */
.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);
}

.booking-link {
  justify-self: end;
  padding: 0.85rem 1rem;
  border: 1px solid var(--white);
}

main {
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-height) + 3rem) var(--page-pad) 4rem;
  place-items: center;
}

.menu-message {
  width: min(100%, 60rem);
  min-width: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.61rem;
  font-weight: 570;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8.5vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-transform: uppercase;
}

.menu-copy {
  max-width: 36rem;
  margin: 1.85rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.branch-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(3rem, 7vw, 5rem);
  border-block: 1px solid var(--line-strong);
  text-align: left;
}

.branch-links a {
  display: grid;
  gap: 0.55rem;
  padding: 1.4rem 1.25rem;
  transition: background-color var(--dur) var(--ease-out);
}

.branch-links a + a {
  border-left: 1px solid var(--line-strong);
}

.branch-links a:hover {
  background: var(--surface-1);
}

.branch-links span:first-child {
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out);
}

.branch-links a:hover span:first-child {
  color: var(--white);
}

.branch-links span:last-child {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  padding: 1.15rem 1.5rem;
  border: 1px solid var(--white);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.secondary-link {
  border-color: var(--line-strong);
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem var(--page-pad);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer a {
  transition: color var(--dur-fast) var(--ease-out);
}

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

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

  .booking-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
  }

  .booking-link::before {
    display: none;
  }

  h1 {
    font-size: clamp(2.05rem, 9.5vw, 3.2rem);
  }

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

  .branch-links a + a {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .menu-actions {
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .back-link,
  .booking-link {
    font-size: 0.52rem;
  }

  .brand {
    width: 5.5rem;
  }

  footer {
    gap: 1rem;
    flex-direction: column;
  }
}

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


/* Переходы между страницами (работают, только если объявлены на обеих) */
@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 (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
