/* ==========================================================================
   Formula Sound — стили сайта
   Минимализм: чёрный, костяной белый и один красный акцент.
   Главный выразительный элемент — 3D-знак, который живёт за всей страницей.
   ========================================================================== */

:root {
  --black: #000;
  --smoke: #110f0e;
  --red: #ff2b1c;
  --bone: #f3efe9;
  --ash: #8f8a84;
  --line: rgba(243, 239, 233, 0.12);
  --line-strong: rgba(243, 239, 233, 0.3);

  --display: 'Unbounded Variable', 'Arial Black', sans-serif;
  --text: 'Montserrat Variable', system-ui, -apple-system, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --radius: 20px;
  --radius-s: 12px;
  --radius-m: var(--radius); /* используются в админке */
  --radius-l: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --nav-h: 64px;
}

/* ---------- База ---------- */

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

html {
  background: var(--black);
  color: var(--bone);
  scroll-padding-top: calc(var(--nav-h) + 32px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 450 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Лёгкое плёночное зерно, как на фирменных постерах */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

option {
  background: #0a0808;
  color: var(--bone);
}

button {
  cursor: pointer;
}

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

::selection {
  background: var(--red);
  color: #000;
}

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bone);
  color: #000;
  font-weight: 700;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1360px, 100% - var(--pad) * 2);
  margin-inline: auto;
}

/* Lenis — плавная прокрутка */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---------- 3D-сцена за всей страницей ---------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.scene.is-ready {
  opacity: 1;
}

/* Если WebGL недоступен — спокойная красная волна только на первом экране */
.scene-fallback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -2;
  height: 100svh;
  background:
    radial-gradient(55% 22% at 35% 58%, rgba(255, 43, 28, 0.5), transparent 70%),
    #000;
}

/* ---------- Типографика ---------- */

.h2 {
  margin: 0;
  font: 800 clamp(30px, 4.4vw, 64px) / 1 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.h2--italic {
  font: italic 500 clamp(40px, 6vw, 96px) / 1 var(--text);
  letter-spacing: -0.03em;
  text-transform: none;
}

.h3 {
  margin: 0;
  font: 800 clamp(20px, 2vw, 26px) / 1.1 var(--display);
  text-transform: uppercase;
}

.section {
  padding-block: clamp(96px, 12vw, 180px);
}

.section__head {
  display: grid;
  justify-items: start;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__lead {
  max-width: 46ch;
  margin: 0;
  color: var(--ash);
  font-size: clamp(15px, 1.2vw, 17px);
  text-wrap: pretty;
}

/* ---------- Кнопки и ссылки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 14px / 1 var(--display);
  white-space: nowrap;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn--red {
  background: var(--red);
  color: #000;
}

.btn--red:hover {
  background: var(--bone);
}

.btn--red:disabled {
  opacity: 0.55;
  cursor: progress;
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--bone);
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 13px;
}

.btn--wide {
  width: 100%;
}

.link {
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 0.2s;
}

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

.pill {
  display: inline-flex;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  transition: border-color 0.2s;
}

.pill:hover {
  border-color: var(--bone);
}

.round {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.round:hover {
  border-color: var(--bone);
}

.round svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Знак-трилистник из логотипа, красится через currentColor */
.mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  flex: none;
  background: currentColor;
  -webkit-mask: url('/img/mark.png') center / contain no-repeat;
  mask: url('/img/mark.png') center / contain no-repeat;
}

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

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1360px, 100% - var(--pad) * 2);
  height: var(--nav-h);
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 8, 8, 0.5);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transform: translateX(-50%);
  transition: background-color 0.3s;
}

.nav.is-scrolled {
  background: rgba(10, 8, 8, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand .mark {
  color: var(--bone);
  transition: color 0.3s, transform 0.6s var(--ease);
}

.brand:hover .mark {
  color: var(--red);
  transform: rotate(120deg);
}

.brand__word {
  display: grid;
  font: 800 15px / 1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__word span {
  margin-top: 4px;
  font-weight: 300;
  font-size: 8.5px;
  letter-spacing: 1.02em;
}

.nav__links {
  display: flex;
  gap: 2px;
}

.nav__links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ash);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--bone);
}

.nav__phone {
  margin: 0 10px 0 14px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nav__burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
}

.nav__burger i {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.3s var(--ease);
}

.nav__burger i:first-of-type {
  top: 19px;
}

.nav__burger i:last-of-type {
  top: 25px;
}

.nav__burger[aria-expanded='true'] i:first-of-type {
  transform: translateY(3px) rotate(45deg);
}

.nav__burger[aria-expanded='true'] i:last-of-type {
  transform: translateY(-3px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  padding: 110px var(--pad) 40px;
  background: rgba(0, 0, 0, 0.96);
}

.menu[hidden] {
  display: none;
}

.menu nav {
  display: grid;
  gap: 4px;
}

.menu nav a {
  font: 800 clamp(28px, 8vw, 44px) / 1.2 var(--display);
  text-transform: uppercase;
}

.menu__phone {
  color: var(--ash);
  font-size: 20px;
  font-weight: 700;
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) var(--pad) clamp(40px, 6vh, 72px);
}

.hero__title {
  align-self: start;
  width: min(1360px, 100%);
  margin: 0 auto;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.82;
  pointer-events: none;
}

.hero__formula {
  display: block;
  padding-bottom: 0.04em;
  overflow: hidden;
  font-weight: 800;
  font-size: clamp(52px, 14.2vw, 238px);
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hero__formula .ch {
  display: inline-block;
}

.hero__sound {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.4em;
  margin-top: 0.12em;
  font-size: clamp(24px, 4.6vw, 80px);
}

.hero__sound-word {
  margin-right: -0.62em;
  font-weight: 300;
  letter-spacing: 0.62em;
}

.hero__year {
  margin-left: 0.9em;
  font: italic 400 0.42em / 1 var(--text);
  letter-spacing: 0;
  text-transform: none;
}

.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 40px;
  width: min(1360px, 100%);
  margin: 0 auto;
}

.hero__lead {
  max-width: 28ch;
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

/* ---------- Цены ---------- */

.price {
  max-width: 980px;
}

.price-tabs {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.price-tabs::-webkit-scrollbar {
  display: none;
}

.price-tab {
  position: relative;
  flex: none;
  padding: 14px 0 16px;
  border: 0;
  background: none;
  color: var(--ash);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s;
}

.price-tab:hover {
  color: var(--bone);
}

.price-tab[aria-selected='true'] {
  color: var(--bone);
}

.price-tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--red);
}

.price-panel {
  padding-top: 28px;
}

.price-panel[hidden] {
  display: none;
}

.price-panel__lead {
  max-width: 50ch;
  margin: 0 0 12px;
  color: var(--ash);
}

.price-panel__note {
  margin: 22px 0 0;
  color: var(--ash);
  font-size: 14px;
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
}

.row__name {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s;
}

.row__name small {
  display: block;
  margin-top: 4px;
  color: var(--ash);
  font-size: 14px;
  font-weight: 500;
}

.row__price {
  font: 700 clamp(16px, 1.5vw, 21px) / 1.2 var(--display);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.row__price small {
  margin-left: 6px;
  color: var(--ash);
  font: 500 13px var(--text);
}

.row:hover .row__name,
.row:focus-visible .row__name {
  color: var(--red);
}

.matrix {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  table-layout: fixed;
}

.matrix thead td {
  width: 22%;
}

.matrix th,
.matrix td {
  padding: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.matrix thead th {
  padding: 0 16px 18px 0;
  font: 700 clamp(12px, 1.1vw, 14px) / 1.25 var(--display);
  text-transform: uppercase;
  vertical-align: bottom;
}

.matrix thead small {
  display: block;
  margin-top: 6px;
  color: var(--ash);
  font: 500 13px / 1.4 var(--text);
  text-transform: none;
}

.matrix tbody th {
  padding: 22px 0;
  color: var(--ash);
  font-size: 15px;
  font-weight: 600;
}

.matrix__cell {
  width: 100%;
  padding: 22px 16px 22px 0;
  border: 0;
  background: none;
  font: 800 clamp(20px, 2.4vw, 34px) / 1 var(--display);
  letter-spacing: -0.03em;
  text-align: left;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}

.matrix__cell:hover,
.matrix__cell:focus-visible {
  color: var(--red);
}

.matrix__empty {
  padding: 22px 0;
  color: var(--ash);
}

/* ---------- Студия: 3D-карусель ---------- */

.studio {
  overflow: hidden;
}

.ring {
  position: relative;
  height: clamp(380px, 44vw, 620px);
  perspective: 1600px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.ring.is-dragging {
  cursor: grabbing;
}

.ring__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.ring__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(190px, 22vw, 320px);
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  translate: -50% -50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--smoke);
}

.ring__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.5);
  transition: filter 0.6s var(--ease);
  -webkit-user-drag: none;
}

.ring__item.is-front img {
  filter: none;
}

.ring__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Артисты ---------- */

.artists__names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  max-width: 1100px;
  margin: 0 0 clamp(40px, 6vw, 72px);
  padding: 0;
  list-style: none;
}

.artists__names li {
  font: 800 clamp(20px, 2.6vw, 38px) / 1.2 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.2s;
}

.artists__names li:hover {
  color: var(--bone);
}

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

.artists__photos figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--smoke);
}

.artists__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .artists__photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .artists__names {
    gap: 4px 18px;
  }
}

/* ---------- Бронь ---------- */

.bk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.bk__main {
  min-width: 0;
}

.bk__group {
  min-width: 0;
  margin: 0;
  padding: 28px 0 34px;
  border: 0;
  border-top: 1px solid var(--line);
}

.bk__group[hidden] {
  display: none;
}

.bk__group legend {
  float: left;
  width: 100%;
  margin-bottom: 20px;
  padding: 0;
  color: var(--ash);
  font-size: 14px;
  font-weight: 650;
}

.bk__group legend + * {
  clear: both;
}

.bk__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: var(--bone);
}

.chip[aria-checked='true'] {
  border-color: var(--bone);
  background: var(--bone);
  color: #000;
}

.bk__services {
  display: grid;
  margin-top: 16px;
}

.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 16px 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  position: relative;
  text-align: left;
}

.opt::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translateY(-50%);
}

.opt[aria-checked='true']::before {
  border-color: var(--red);
  background: radial-gradient(circle, var(--red) 0 40%, transparent 45%);
}

.opt__name {
  font-weight: 600;
  line-height: 1.35;
}

.opt__name small {
  display: block;
  color: var(--ash);
  font-size: 13px;
  font-weight: 500;
}

.opt__price {
  font: 700 14px var(--display);
  white-space: nowrap;
}

.bk__month {
  margin-bottom: 10px;
  color: var(--ash);
  font-size: 13px;
  font-weight: 600;
}

.bk__month:first-letter {
  text-transform: uppercase;
}

.bk__days {
  display: flex;
  gap: 8px;
  padding: 2px 0 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.day {
  display: grid;
  justify-items: center;
  gap: 2px;
  flex: 0 0 60px;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: none;
  scroll-snap-align: start;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.day small {
  color: var(--ash);
  font-size: 12px;
  font-weight: 600;
}

.day b {
  font: 700 18px / 1.2 var(--display);
}

.day:hover {
  border-color: var(--line-strong);
}

.day[aria-checked='true'] {
  border-color: var(--bone);
  background: var(--bone);
  color: #000;
}

.day[aria-checked='true'] small {
  color: rgba(0, 0, 0, 0.6);
}

.bk__hours {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.bk__hours:empty {
  display: none;
}

.hour {
  padding: 12px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: none;
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.hour:hover:not(:disabled) {
  border-color: var(--line-strong);
}

.hour:disabled {
  opacity: 0.25;
  text-decoration: line-through;
  cursor: not-allowed;
}

.hour[aria-checked='true'] {
  border-color: var(--bone);
  background: var(--bone);
  color: #000;
}

.hour.in-range {
  border-color: var(--line-strong);
  background: rgba(243, 239, 233, 0.12);
}

.bk__hint {
  margin: 12px 0 0;
  color: var(--ash);
  font-size: 14px;
}

.bk__hint:empty {
  display: none;
}

.bk__length {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  font-weight: 650;
}

.bk__length[hidden] {
  display: none;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.stepper button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 22px;
}

.stepper button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.stepper output {
  min-width: 44px;
  font: 800 18px var(--display);
  text-align: center;
}

.bk__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: block;
}

.field--wide {
  grid-column: 1 / -1;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ash);
  font-size: 13px;
  font-weight: 650;
}

.field > span small {
  font-weight: 500;
  opacity: 0.75;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: rgba(0, 0, 0, 0.55);
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.2s;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(243, 239, 233, 0.3);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--bone);
  outline: none;
}

.field [aria-invalid='true'] {
  border-color: var(--red);
}

.bk__error {
  display: block;
  margin: 8px 0 0;
  color: #ff7466;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.bk__error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  color: var(--ash);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--red);
}

.check a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bk__summary {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

/* Итог брони: спокойная карточка, красная только кнопка */
.ticket {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(10, 8, 8, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ticket[hidden] {
  display: none;
}

.ticket:focus {
  outline: none;
}

.ticket__label {
  margin: 0 0 12px;
  color: var(--ash);
  font-size: 13px;
  font-weight: 650;
}

.ticket__service {
  margin: 0 0 8px;
  font: 800 18px / 1.25 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}

.ticket__when {
  min-height: 1.6em;
  margin: 0 0 18px;
  color: var(--ash);
  font-weight: 600;
}

.ticket__money {
  margin: 0 0 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}

.ticket__money div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.ticket__money dt {
  color: var(--ash);
  font-weight: 600;
}

.ticket__money dd {
  margin: 0;
  font: 800 20px var(--display);
  white-space: nowrap;
}

.ticket__note {
  margin: 16px 0 0;
  color: var(--ash);
  font-size: 13px;
  line-height: 1.45;
}

.ticket--done .ticket__note {
  margin: 0 0 22px;
}

.ticket__number {
  margin: 0 0 16px;
  font: 800 60px / 0.9 var(--display);
  letter-spacing: -0.04em;
}

/* Запись через DIKIDI вместо своей формы */
.dikidi {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.dikidi__note {
  margin: 0;
  color: var(--ash);
  font-size: 14px;
}

.dikidi__note a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Отзывы ---------- */

.reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px 64px;
  align-items: start;
}

.score {
  display: block;
  margin: 32px 0 24px;
}

.score b {
  display: block;
  font: 800 clamp(88px, 10vw, 150px) / 0.85 var(--display);
  letter-spacing: -0.05em;
}

.score span {
  display: block;
  margin-top: 12px;
  color: var(--ash);
  font-weight: 600;
}

.reviews__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.reviews__list {
  display: grid;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review__stars {
  margin: 0 0 16px;
  color: var(--red);
  letter-spacing: 0.2em;
}

.review__stars span {
  color: var(--line-strong);
}

.review__text {
  margin: 0 0 18px;
  font: 700 clamp(22px, 2.6vw, 38px) / 1.2 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.review__meta {
  margin: 0;
  color: var(--ash);
  font-size: 14px;
}

.review--empty {
  color: var(--ash);
}

/* ---------- Вопросы ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px 64px;
  align-items: start;
}

.faq__list details {
  border-bottom: 1px solid var(--line);
}

.faq__list details:first-child {
  border-top: 1px solid var(--line);
}

.faq__list summary {
  position: relative;
  padding: 22px 56px 22px 0;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--ash);
  font: 300 30px / 1 var(--display);
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease), color 0.3s;
}

.faq__list details[open] summary::after {
  color: var(--red);
  transform: translateY(-50%) rotate(45deg);
}

.faq__list p {
  max-width: 60ch;
  margin: 0 0 24px;
  color: var(--ash);
}

.faq__list a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Контакты ---------- */

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px 64px;
}

.contacts__list {
  margin: 32px 0 0;
}

.contacts__list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contacts__list dt {
  color: var(--ash);
  font-weight: 600;
}

.contacts__list dd {
  margin: 0;
  font-weight: 650;
}

.contacts__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.contacts__socials:empty {
  display: none;
}

.map {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--smoke);
  overflow: hidden;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) grayscale(1) contrast(0.95);
}

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

.footer {
  padding: clamp(80px, 12vw, 160px) 0 32px;
}

.footer__cta {
  display: grid;
  justify-items: center;
  gap: 36px;
  margin-bottom: clamp(64px, 10vw, 120px);
}

.footer__word {
  margin: 0;
  color: transparent;
  font: 800 clamp(30px, 7.6vw, 150px) / 0.85 var(--display);
  letter-spacing: -0.04em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(243, 239, 233, 0.5);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-size: 14px;
}

.footer__row p {
  margin: 0;
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer__socials .round {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer__socials svg {
  fill: none;
}

.footer__note {
  margin: 16px 0 0;
  color: var(--ash);
  font-size: 12px;
  opacity: 0.7;
}

.footer__row a:hover {
  color: var(--bone);
}

/* ---------- Окно отзыва ---------- */

.dialog {
  width: min(520px, 100% - 32px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--smoke);
  color: var(--bone);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.dialog__form {
  display: grid;
  gap: 18px;
}

.dialog__lead {
  margin: -8px 0 0;
  color: var(--ash);
}

.dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}

.stars legend {
  float: left;
  width: 100%;
  margin-bottom: 4px;
  color: var(--ash);
  font-size: 13px;
  font-weight: 650;
}

.stars input {
  position: absolute;
  opacity: 0;
}

.stars label {
  color: var(--line-strong);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}

.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
  color: var(--red);
}

.stars input:focus-visible + label {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Нижняя панель разделов (только на телефоне) ---------- */

.tabbar,
.nav__call {
  display: none;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(8, 6, 6, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.tabbar a {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 0 5px;
  color: var(--ash);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.2;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tabbar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar a[aria-current='page'] {
  color: var(--bone);
}

.tabbar a[aria-current='page'] svg {
  stroke: var(--red);
}

.nav__call svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

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

@media (max-width: 1180px) {
  .nav__phone {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --nav-h: 60px;
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: block;
  }

  .reviews__grid,
  .faq__grid,
  .contacts__grid,
  .bk {
    grid-template-columns: minmax(0, 1fr);
  }

  .bk__summary {
    position: static;
  }

  .score {
    margin: 24px 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  /* длинные русские слова должны влезать в ширину телефона */
  .h2 {
    font-size: clamp(24px, 7.6vw, 40px);
    hyphens: auto;
  }

  .nav {
    top: 10px;
    padding-left: 14px;
  }

  .nav__cta {
    padding: 0 16px;
  }

  .brand__word {
    display: none;
  }

  .hero__lead {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
  }

  .hero__ctas .btn {
    flex: 1 1 auto;
  }

  /* вкладки листаются пальцем — справа лёгкое затухание подсказывает это */
  .price-tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }

  .row {
    gap: 16px;
    padding: 18px 0;
  }

  .matrix thead td {
    width: 26%;
  }

  .matrix thead small {
    display: none;
  }

  .matrix__cell {
    font-size: 18px;
  }

  .bk__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts__list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .map,
  .map iframe {
    min-height: 340px;
  }
}

/* Телефон: разделы-экраны вместо длинной ленты (класс .views ставит ui.js) */
@media (max-width: 760px) {
  html.views {
    --tabbar-h: 66px;
  }

  html.views body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  }

  html.views [data-view]:not(.is-shown) {
    display: none !important;
  }

  html.views .tabbar {
    display: grid;
  }

  html.views .nav__burger,
  html.views .nav__cta {
    display: none;
  }

  html.views .nav__call {
    display: grid;
    width: 46px;
    height: 46px;
  }

  html.views .brand__word {
    display: grid;
  }

  html.views .hero {
    min-height: calc(100svh - var(--tabbar-h) - env(safe-area-inset-bottom));
  }

  html.views .section {
    padding-block: 44px;
  }

  html.views .section.view-first {
    padding-top: calc(var(--nav-h) + 44px);
  }

  html.views .section__head {
    margin-bottom: 28px;
  }

  html.views .footer {
    padding-top: 24px;
  }

  html.views .footer__cta {
    margin-bottom: 40px;
  }
}

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