:root {
  --paper: #f3ecdf;
  --ticket: #fffdf8;
  --ink: #1d1914;
  --muted: #5e5146;
  --line: #e0d4c4;
  --gold: #f2c14b;
  --chalk: #24302a;
  --chalk-ink: #f4efe4;
  --wrap: 1080px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --sign: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --script: "Caveat", cursive;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(70, 42, 16, 0.045) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: calc(5.4rem + env(safe-area-inset-bottom));
  overflow-x: clip;
}

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

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

a {
  color: inherit;
}

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

::selection {
  background: var(--gold);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem 1.2rem;
  padding-top: 0.95rem;
  padding-bottom: 0.2rem;
  position: relative;
  z-index: 3;
}

.logo {
  font-family: var(--sign);
  font-weight: 700;
  font-size: 2rem;
  line-height: 0.8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.05rem;
}

.top nav a,
.top-phone {
  text-decoration: none;
  font-size: 0.98rem;
}

.top nav a:hover,
.top-phone:hover,
.place a:hover,
.vk-line a:hover,
.note a:hover,
.site-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.top-phone {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.lights {
  position: relative;
  height: 86px;
  margin-top: 0.35rem;
  z-index: 2;
  pointer-events: none;
}

.wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 86px;
}

.wire path {
  fill: none;
  stroke: #2a241c;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.bulb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 14px;
  height: 8px;
  transform: translateX(-50%);
}

.bulb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 8px;
  background: #2a241c;
  transform: translateX(-50%);
}

.bulb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 13px;
  height: 17px;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 35% 28%, #fffaf0 0 1.5px, transparent 2.4px),
    radial-gradient(circle at 40% 35%, #fff6d2, #ffd56a 45%, #f0b429 76%, #d9922a);
  box-shadow:
    0 0 8px 2px rgba(255, 198, 70, 0.8),
    0 0 18px 6px rgba(255, 186, 60, 0.38);
}

.bulb:nth-child(4)::after,
.bulb:nth-child(8)::after,
.bulb:nth-child(11)::after {
  filter: brightness(0.82);
}

.bulb:nth-child(3n)::after {
  animation: twinkle 3.6s ease-in-out infinite;
}

.bulb:nth-child(4n)::after {
  animation: twinkle 4.8s ease-in-out infinite 0.7s;
}

.bulb:nth-child(5n)::after {
  animation: twinkle 4.1s ease-in-out infinite 1.3s;
}

@keyframes twinkle {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(0.72);
  }
}

.sign {
  container-type: inline-size;
  padding-top: 0.15rem;
}

.sign h1 {
  font-family: var(--sign);
  font-weight: 700;
  font-size: clamp(4.6rem, 16vw, 10.5rem);
  font-size: 18.2cqi;
  line-height: 0.78;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.slogan {
  margin-top: 0.15rem;
  font-family: var(--script);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.05;
}

.slogan span {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 0.72em;
  background-size: 100% 0.38em;
  padding: 0 0.12em 0.02em;
  box-decoration-break: clone;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.95rem;
  font-weight: 700;
  font-size: 0.98rem;
}

.status::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: #b7a690;
  flex: 0 0 auto;
}

body.is-open .status::before {
  background: #e3a31a;
  box-shadow: 0 0 0 5px rgba(242, 193, 75, 0.38);
}

body.is-closed .status::before {
  background: #8f8274;
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  align-items: start;
  padding-top: 1.35rem;
  padding-bottom: 3.2rem;
}

.lead {
  max-width: 38rem;
  font-size: 1.14rem;
  line-height: 1.55;
}

.place {
  margin-top: 0.85rem;
  color: var(--muted);
}

.place a {
  color: var(--ink);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: #3a3128;
  border-color: #3a3128;
}

.btn-line {
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.receipt-shadow {
  width: min(100%, 380px);
  justify-self: end;
  filter: drop-shadow(0 16px 16px rgba(48, 28, 8, 0.12));
  transform: rotate(-1.35deg);
}

.receipt {
  background: var(--ticket);
  padding: 1.45rem 1.3rem 1.7rem;
  -webkit-mask-image: radial-gradient(circle at 10px 100%, transparent 8px, #000 8.5px);
  -webkit-mask-size: 20px 100%;
  -webkit-mask-repeat: repeat-x;
  mask-image: radial-gradient(circle at 10px 100%, transparent 8px, #000 8.5px);
  mask-size: 20px 100%;
  mask-repeat: repeat-x;
}

.receipt-head {
  text-align: center;
}

.receipt-kicker,
.receipt-sub,
.receipt-foot,
.receipt-lines {
  font-family: var(--mono);
}

.receipt-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.receipt-name {
  margin-top: 0.15rem;
  font-family: var(--sign);
  font-weight: 700;
  font-size: 3.35rem;
  line-height: 0.8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.receipt-sub {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.receipt-lines {
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0.15rem 0 0;
  border-top: 1px dashed rgba(29, 25, 20, 0.35);
  font-size: 0.84rem;
  line-height: 1.35;
}

.receipt-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
}

.receipt-lines li + li {
  border-top: 1px dashed rgba(29, 25, 20, 0.22);
}

.receipt-lines .bill {
  margin-top: 0.45rem;
  padding: 0.5rem 0.55rem;
  background: var(--gold);
  border-top: 0;
  font-weight: 500;
}

.receipt-foot {
  margin-top: 0.95rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.steps {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0 1.7rem;
}

.steps ol {
  list-style: none;
  margin-block: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: baseline;
}

.num {
  font-family: var(--sign);
  font-weight: 700;
  font-size: 3rem;
  line-height: 0.8;
  letter-spacing: 0.02em;
}

.room {
  padding: 4.2rem 0 4.4rem;
}

.room-head {
  display: grid;
  gap: 0.8rem;
  max-width: 40rem;
}

h2 {
  font-family: var(--sign);
  font-weight: 700;
  font-size: clamp(3.4rem, 8vw, 5.4rem);
  line-height: 0.8;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.room-head p,
.board-lead,
.note,
.hours,
.addr-sub {
  color: var(--muted);
}

.room-head p {
  font-size: 1.12rem;
  color: var(--ink);
}

.shelf {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.shelf li {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.shelf h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shelf p {
  max-width: 40rem;
}

.week {
  background-color: var(--chalk);
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  color: var(--chalk-ink);
  padding: 4.2rem 0 4.4rem;
}

.week :focus-visible {
  outline-color: var(--gold);
}

.board-lead {
  max-width: 38rem;
  margin-top: 1rem;
  color: #ddd4c6;
}

.days {
  list-style: none;
  margin: 1.7rem 0 0;
  padding: 0;
}

.days li {
  display: grid;
  grid-template-columns: 2.7rem 1fr;
  gap: 0.15rem 0.85rem;
  align-items: baseline;
  padding: 0.85rem 0.55rem;
  border-top: 1px solid rgba(244, 239, 228, 0.16);
}

.days .d {
  font-family: var(--sign);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 0.8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.days .price {
  grid-column: 2;
  color: #f6e7b4;
  font-variant-numeric: tabular-nums;
}

.flag {
  display: none;
  margin-left: 0.45rem;
  padding: 0.12rem 0.4rem 0.16rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.12em;
}

.days li.is-today {
  box-shadow: inset 3px 0 0 var(--gold);
}

.days li.is-today .flag {
  display: inline;
}

.stop {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.15rem 0 0;
  padding: 0.9rem 0.75rem;
  border: 1px dashed rgba(244, 239, 228, 0.4);
  border-radius: 12px;
}

.stop strong {
  font-weight: 700;
  color: var(--gold);
}

.stop.is-now {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(242, 193, 75, 0.12);
}

.stop.is-now strong::after {
  content: " · сейчас";
  font-weight: 600;
}

.fine {
  max-width: 40rem;
  margin-top: 1rem;
  color: #d9d0c2;
  font-size: 0.98rem;
}

.fine a {
  color: var(--gold);
  font-weight: 700;
}

.quotes {
  padding: 4.2rem 0 4.5rem;
}

.note {
  margin-top: 0.9rem;
}

.note a,
.vk-line a,
.site-foot a {
  font-weight: 700;
}

.quote-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

blockquote {
  margin: 0;
}

blockquote p {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.quote-grid figure:first-child blockquote p {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  max-width: 40rem;
}

figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.visit {
  padding: 0 0 4.2rem;
}

.visit-grid {
  display: grid;
  gap: 1.8rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 2.4rem;
}

.invite {
  font-family: var(--script);
  font-weight: 600;
  font-size: clamp(2.15rem, 4vw, 2.9rem);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.addr-kicker {
  display: block;
  margin: 0 0 0.15rem;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.addr {
  font-family: var(--sign);
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 5.6rem);
  line-height: 0.8;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.addr-sub,
.hours {
  margin-top: 0.55rem;
}

.phone {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.phone:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.vk-line {
  margin-top: 0.95rem;
}

.map-shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #e7dece;
  min-height: 240px;
}

.map-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 840 / 560;
  object-fit: cover;
}

.map-credit {
  position: absolute;
  right: 0.55rem;
  bottom: 0.5rem;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: rgba(243, 236, 223, 0.92);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

.map-credit:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-foot a {
  text-decoration: none;
}

.dock {
  position: fixed;
  z-index: 20;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.4rem;
  background: rgba(243, 236, 223, 0.92);
  border: 1px solid rgba(29, 25, 20, 0.1);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(40, 24, 8, 0.14);
  backdrop-filter: blur(10px);
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.dock.is-shown {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.dock .btn {
  width: 100%;
}

@media (min-width: 720px) {
  .shelf li {
    grid-template-columns: 11rem 1fr;
    gap: 0.4rem 1.5rem;
    align-items: baseline;
  }

  .days li {
    grid-template-columns: 4rem 1fr auto;
    align-items: baseline;
  }

  .days .price {
    grid-column: auto;
    text-align: right;
  }
}

@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }

  .top nav {
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.82fr);
    gap: 3.5rem;
    padding-top: 1.15rem;
    padding-bottom: 4.2rem;
  }

  .steps ol {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .room-head {
    grid-template-columns: 0.7fr 1.1fr;
    gap: 2rem;
    max-width: none;
    align-items: end;
  }

  .quote-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem 2.5rem;
  }

  .quote-grid figure:first-child {
    grid-column: 1 / -1;
  }

  .visit-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 2.5rem;
  }

  .dock {
    display: none;
  }
}

@media (max-width: 859px) {
  .top-phone {
    display: none;
  }

  .top nav {
    width: 100%;
  }

  .receipt-shadow {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    transform: none;
  }
}

@media (max-width: 380px) {
  .sign h1 {
    letter-spacing: 0;
  }
}

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

  .dock {
    transition: none;
  }

  .bulb::after,
  .bulb:nth-child(3n)::after,
  .bulb:nth-child(4n)::after,
  .bulb:nth-child(5n)::after {
    animation: none;
  }

  .receipt-shadow {
    transform: none;
  }
}

@media print {
  .lights,
  .dock,
  nav,
  .top-phone,
  .actions,
  .map-shot {
    display: none;
  }

  body {
    padding: 0;
    background: #fff;
  }

  .week {
    background: #fff;
    color: #000;
  }

  .days .d,
  .days .price,
  .fine,
  .stop strong,
  .board-lead {
    color: #000;
  }

  .receipt-shadow {
    filter: none;
    transform: none;
  }
}
