:root {
  --white: #ffffff;
  --mist: #f2f1f3;
  --ink: #22171f;
  --muted: #5f525b;
  --plum: #6e2552;
  --plum-dark: #511a3c;
  --pad: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(.65, 0, .25, 1);
  --time: .55s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.5 "Mona Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }

.btn {
  border: 0; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  background: var(--plum); color: var(--white);
  font-weight: 600; white-space: nowrap;
  transition: background-color .2s;
}
.btn:hover { background: var(--plum-dark); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--mist); }

.top {
  display: flex; align-items: center; gap: 14px;
  height: 80px; padding: 0 var(--pad);
}
.logo { font-size: 30px; font-weight: 700; font-stretch: 125%; letter-spacing: -.02em; line-height: 1; }
.demo { font-size: 12px; font-weight: 700; padding: 2px 8px; border: 1.5px solid currentColor; border-radius: 6px; color: var(--plum); }
.nav { display: flex; gap: 30px; margin: 0 auto; }
.nav a, .phone { padding: 10px 0; font-weight: 500; }
.nav a:hover, .phone:hover { color: var(--plum); }
.phone { margin-right: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hero {
  display: flex; flex-direction: column;
  height: calc(100svh - 80px); min-height: 600px;
  padding: 0 var(--pad) var(--pad);
}
.hero__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding: clamp(8px, 2.4vh, 28px) 0 clamp(18px, 3vh, 32px);
}
h1 {
  max-width: 17em;
  font-size: clamp(30px, min(4.1vw, 7.4vh), 68px);
  font-weight: 600; font-stretch: 118%;
  line-height: 1.04; letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__head p { max-width: 24em; color: var(--muted); font-size: 17px; text-wrap: pretty; }

.rooms { flex: 1; display: flex; gap: 10px; min-height: 0; list-style: none; }
.room {
  position: relative; overflow: hidden;
  flex: 1 1 0; min-width: 0;
  border-radius: 14px; background: #b9adb4;
  color: var(--white);
  transition: flex-grow var(--time) var(--ease);
}
.room.is-open { flex-grow: 2.6; }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room::after {
  content: ""; position: absolute; inset: 62% 0 0;
  background: linear-gradient(transparent, rgba(24, 10, 20, .7));
  pointer-events: none;
}
.room__toggle {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  width: 100%; padding: 28px; text-align: left; color: var(--white);
  text-shadow: 0 1px 14px rgba(24, 10, 20, .45);
}
.room__toggle:focus-visible { outline-color: var(--white); outline-offset: -8px; }
.room.is-open .room__toggle { cursor: default; }
.room__city {
  font-size: clamp(30px, 3.4vw, 54px); font-weight: 600; font-stretch: 122%;
  line-height: 1.05; letter-spacing: -.02em;
}
.room__street { font-size: 17px; font-weight: 500; }

.room__panel, .room__book {
  position: absolute; z-index: 2;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.room__panel { top: 20px; right: 18px; background: var(--white); color: var(--ink); white-space: nowrap; }
.room__book { right: 24px; bottom: 28px; }
.room.is-open .room__panel, .room.is-open .room__book {
  opacity: 1; visibility: visible;
  transition: opacity .35s .3s, visibility 0s .3s;
}

.room__menu {
  min-width: 250px; padding: 8px 20px; border-radius: 14px;
  list-style: none; font-size: 16px;
}
.room__menu li { display: flex; justify-content: space-between; gap: 24px; padding: 8px 0; }
.room__menu li + li { border-top: 1px solid #e4dfe2; }
.room__menu span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.room--mati img { object-position: 50% 30%; }

html { -webkit-tap-highlight-color: rgba(110, 37, 82, .15); scroll-padding-top: 80px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
h2 { font-size: clamp(34px, 4.6vw, 68px); font-weight: 600; font-stretch: 118%; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
ul { list-style: none; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px; }
.skip:focus { top: 12px; }
.top { position: sticky; top: 0; z-index: 10; background: var(--white); }
.menu { display: none; }

.prices { display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: 40px 56px; padding-top: 120px; padding-bottom: 130px; }
.prices__side { position: sticky; top: 120px; align-self: start; }
.filter { display: flex; flex-direction: column; align-items: flex-start; margin: 32px 0 24px; }
.filter button { padding: 6px 0; font-size: 22px; font-weight: 500; color: var(--muted); }
.filter button:hover { color: var(--ink); }
.filter button[aria-pressed="true"] { color: var(--plum); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.hint { max-width: 22em; color: var(--muted); }
.group + .group { margin-top: 56px; }
.group h3 { font-size: 26px; font-stretch: 118%; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.group li a {
  display: grid; grid-template-columns: minmax(0, 1fr) 90px 110px; grid-template-areas: "name time price" "note time price";
  align-items: center; column-gap: 20px; padding: 18px 12px; border-bottom: 1px solid #ded8dc;
  transition: background-color .2s;
}
.group li a:hover { background: var(--mist); }
.s-name { grid-area: name; font-size: 20px; font-weight: 600; }
.s-note { grid-area: note; color: var(--muted); font-size: 15px; }
.s-time { grid-area: time; color: var(--muted); font-variant-numeric: tabular-nums; }
.s-price { grid-area: price; justify-self: end; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.works { background: #2a1522; color: var(--white); padding: 110px 0 120px; }
.works__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.works__head p { max-width: 28em; color: #d6c6d0; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(54px, 6.2vw, 90px); gap: 12px; }
.g { position: relative; overflow: hidden; border-radius: 14px; background: #4a3040; }
.g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g a {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  background: linear-gradient(transparent 60%, rgba(24, 10, 20, .8));
}
.g a span:first-child { font-size: 21px; font-weight: 600; font-stretch: 112%; line-height: 1.2; }
.g a:focus-visible { outline-color: var(--white); outline-offset: -8px; }
.g--a { grid-column: 1 / 6; grid-row: 1 / span 8; }
.g--b { grid-column: 6 / 9; grid-row: 1 / span 5; }
.g--c { grid-column: 9 / 13; grid-row: 1 / span 6; }
.g--d { grid-column: 6 / 9; grid-row: 6 / span 6; }
.g--e { grid-column: 9 / 13; grid-row: 7 / span 5; }
.g--f { grid-column: 1 / 6; grid-row: 9 / span 3; }
.g--f img { object-position: 50% 22%; }
@media (max-width: 900px) { .g--f img { object-position: 50% 50%; } }

.team { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: center; padding-top: 120px; padding-bottom: 120px; }
.team__photos { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 560px; border-radius: 280px 280px 14px 14px; overflow: hidden; background: var(--mist); }
.team__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.team__photos img.is-on { opacity: 1; visibility: visible; }
.masters { margin-top: 32px; }
.masters li { border-bottom: 1px solid #ded8dc; }
.masters button { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; width: 100%; padding: 20px 0; text-align: left; }
.m-name { font-size: clamp(30px, 3.4vw, 50px); font-weight: 600; font-stretch: 122%; line-height: 1.1; color: var(--muted); transition: color .2s; }
.masters li.is-on .m-name, .masters button:hover .m-name { color: var(--plum); }
.m-role { color: var(--muted); }
.m-more { display: none; padding-bottom: 24px; }
.masters li.is-on .m-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

.book { background: var(--plum); color: var(--white); padding: 110px 0; }
.book__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 56px; }
.book__intro p { margin-top: 20px; max-width: 20em; color: #eed9e6; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: clamp(18px, 3vw, 40px); border-radius: 18px; background: var(--white); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; }
.field > span, .times legend { font-weight: 600; font-size: 15px; }
.field--wide { grid-column: 1 / -1; }
.form select, .form input:not([type="radio"]) {
  width: 100%; min-height: 52px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
  background-color: var(--white); border: 1.5px solid #bfb3bb; border-radius: 10px;
}
.form [aria-invalid="true"] { border-color: #b3261e; }
.times { display: flex; flex-direction: row; flex-wrap: wrap; }
.times legend { margin-bottom: 6px; }
.times label { position: relative; }
.times input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.times span { display: block; padding: 11px 20px; margin: 0 8px 8px 0; border: 1.5px solid #bfb3bb; border-radius: 999px; font-variant-numeric: tabular-nums; }
.times input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.times input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }
.times input[aria-invalid="true"] + span { border-color: #b3261e; }
.form__end { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form__error { color: #b3261e; font-weight: 600; font-size: 15px; }
.form__error:empty { display: none; }

.places { padding-top: 120px; padding-bottom: 100px; }
.places ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.places li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "photo hours" "city city" "address address" "link link"; column-gap: 10px; align-content: start; }
.place__photo { grid-area: photo; position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--mist); }
.place__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place__hours { grid-area: hours; writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; font-size: 14px; color: var(--muted); }
.places h3 { grid-area: city; margin-top: 20px; font-size: clamp(28px, 2.6vw, 38px); font-stretch: 120%; line-height: 1.15; }
.places address { grid-area: address; font-style: normal; margin-top: 6px; color: var(--muted); }
.link { grid-area: link; justify-self: start; margin-top: 14px; padding: 8px 0; font-weight: 600; color: var(--plum); text-decoration: underline; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 3px; }
.closed { margin-top: 36px; color: var(--muted); }

.foot { background: var(--ink); color: #cfc3ca; padding: 56px 0 40px; font-size: 15px; }
.foot p { max-width: 44em; margin-bottom: 10px; }
.foot .foot__logo { font-size: 34px; font-weight: 700; font-stretch: 125%; color: var(--white); }
.foot a { display: inline-block; padding: 10px 0; color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.foot a:focus-visible, .works a:focus-visible { outline-color: var(--white); }

.note {
  margin: auto; width: min(420px, calc(100% - 32px));
  padding: 28px; border: 0; border-radius: 18px; color: var(--ink);
  overscroll-behavior: contain;
}
.note::backdrop { background: rgba(34, 23, 31, .6); }
.note h2 { font-size: 24px; font-stretch: 115%; margin-bottom: 8px; }
.note p { margin-bottom: 20px; color: var(--muted); }
.note #note-text { margin-bottom: 8px; color: var(--ink); font-weight: 600; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .phone { margin-left: auto; }
  .menu { display: block; min-height: 44px; padding: 0 4px; font-weight: 600; }
  .top.is-menu .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    padding: 4px var(--pad) 16px; background: var(--white); box-shadow: 0 18px 30px rgba(34, 23, 31, .16);
  }
  .top.is-menu .nav a { padding: 13px 0; font-size: 19px; }
}

@media (max-width: 900px) {
  .prices, .book__inner, .team { grid-template-columns: minmax(0, 1fr); }
  .prices { padding-top: 72px; padding-bottom: 80px; }
  .prices__side { position: static; }
  .filter { flex-direction: row; flex-wrap: wrap; gap: 4px 26px; margin: 20px 0 16px; }
  .works { padding: 72px 0 80px; }
  .works__head { display: block; }
  .works__head p { margin-top: 12px; }
  .gallery { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 8px; scroll-padding: 0 var(--pad); }
  .g { flex: 0 0 min(78%, 380px); aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .team { padding-top: 72px; padding-bottom: 72px; gap: 28px; }
  .team__text { display: contents; }
  .team__text h2 { order: -1; }
  .team__photos { max-width: 420px; justify-self: center; border-radius: 210px 210px 14px 14px; }
  .masters { margin-top: -12px; }
  .book { padding: 72px 0; }
  .places { padding-top: 72px; padding-bottom: 64px; }
  .places ul { grid-template-columns: minmax(0, 520px); gap: 48px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 64px; }
  .top { height: 64px; gap: 10px; }
  .logo { font-size: 25px; }
  .phone { display: none; }
  .top__book { margin-left: auto; min-height: 44px; padding: 0 16px; }
  .menu { margin-left: 0; }

  .hero { height: calc(100svh - 64px); min-height: 580px; padding-bottom: 12px; }
  .hero__head { display: block; padding: 6px 0 16px; }
  h1 { font-size: clamp(27px, 8.2vw, 40px); font-stretch: 108%; }
  .hero__head p { margin-top: 8px; font-size: 15px; }

  .rooms { flex-direction: column; gap: 8px; }
  .room { min-height: 76px; }
  .room.is-open { flex-grow: 3.4; }
  .room:not(.is-open)::after { inset: 0; background: linear-gradient(90deg, rgba(24, 10, 20, .68), rgba(24, 10, 20, .12) 75%); }
  .room__toggle { padding: 14px 16px; }
  .room__city { font-size: 28px; }
  .room__street { font-size: 15px; }
  .room.is-open .room__toggle { padding-bottom: 76px; }
  .room__book { left: 16px; right: 16px; bottom: 14px; }
  .room__panel { top: 12px; right: auto; left: 12px; }
}

@media (max-width: 760px) {
  .room__menu { min-width: 0; width: min(250px, calc(100% - 24px)); padding: 3px 14px; font-size: 13px; }
  .room__menu li { padding: 4px 0; }
  .group li a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "note price" "time price"; padding: 14px 4px; column-gap: 14px; }
  .s-name { font-size: 18px; }
  .s-time { font-size: 14px; }
  .s-price { font-size: 19px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form__end .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 380px) {
  .top { gap: 7px; }
  .demo { padding: 1px 5px; font-size: 11px; }
  .top__book { padding: 0 12px; font-size: 14px; }
}

@media (max-width: 340px) {
  .top { gap: 5px; padding: 0 10px; }
  .logo { font-size: 21px; }
  .top__book { padding: 0 8px; font-size: 13px; }
  .menu { font-size: 14px; padding: 0 2px; }
}
