:root {
  --blue: #0051fb;
  --blue-press: #0043d6;
  --night: #00174d;
  --orange: #ff4410;
  --orange-press: #e8390a;
  --orange-hot: #ff6a1f;
  --mist: #eef3ff;
  --ink: #0b1640;
  --ink-2: #3a4a7a;
  --on-blue-2: #dde7ff;
  --line-light: rgb(0 81 251 / 0.14);
  --line-dark: rgb(255 255 255 / 0.2);
  --r-photo: 16px;
  --display: 'Nunito', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: max(clamp(16px, 4.2vw, 64px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --top-h: 84px;
  --wrap: 1312px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  font: 400 17px/1.5 var(--text);
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a,
button,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(0 81 251 / 0.14);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1.5px;
}

ul {
  list-style: none;
}

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

p,
blockquote,
figcaption {
  text-wrap: pretty;
}

::selection {
  background: var(--orange);
  color: #fff;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.pt {
  color: var(--orange);
}

.from {
  margin-right: 0.16em;
  font-size: 0.62em;
  font-weight: 800;
  letter-spacing: 0;
}

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

/* Шапка */

.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--top-h);
  padding: 0 var(--pad);
}

.top__logo {
  flex: none;
  padding: 5px 0;
  border-radius: 6px;
}

.top__logo img {
  height: 40px;
  width: auto;
}

.top__place {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  padding-left: 28px;
  border-left: 1px solid currentColor;
  border-image: linear-gradient(transparent 10%, currentColor 10% 90%, transparent 90%) 1;
}

.top__place .hrs {
  font-weight: 400;
}

.top__nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}

.top__nav a {
  padding: 12px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.top__nav a:hover {
  background: rgb(255 255 255 / 0.12);
}

.top__phone {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-radius: 999px;
  font: 800 19px/1 var(--display);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.top__phone .icon {
  width: 20px;
  height: 20px;
}

.top__phone:hover {
  text-decoration: underline;
}

.top__nav + .top__phone {
  margin-left: 0;
}

@media (min-width: 1200px) {
  .top__logo img {
    height: 34px;
  }

  .top__nav {
    display: flex;
  }
}

@media (min-width: 1200px) and (max-width: 1499px) {
  .top__phone .num {
    display: none;
  }

  .top__phone {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
    border: 2px solid currentColor;
  }
}

/* Кнопка-капсула: на конце белая точка — как в логотипе и на ресепшене */

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 8px 8px 8px 30px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: 800 19.5px/1.1 var(--display);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.25s var(--ease);
}

/* Наклейка «−20%» на кнопке записи, пока идёт акция */
.cta__deal {
  position: absolute;
  top: -13px;
  right: 46px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--night);
  font: 900 15px/1 var(--display);
  box-shadow: 0 0 0 2px var(--orange);
  rotate: -6deg;
}

.cta__dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
}

.cta__dot .icon {
  stroke-width: 2.4;
  transition: transform 0.35s var(--ease);
}

.cta:hover {
  background: var(--orange-press);
}

.cta:hover .cta__dot .icon {
  transform: translateX(3px);
}

.cta:active {
  transform: scale(0.98);
}

.cta:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px var(--orange);
}

/* На синем и оранжевом, где вокруг оранжевые формы, капсула белая — главное действие остаётся самым контрастным */
.cta--white {
  background: #fff;
  color: var(--blue);
}

.cta--white .cta__dot {
  background: var(--orange);
  color: #fff;
}

.cta--white:hover {
  background: #e6edff;
}

.cta--white:focus-visible {
  outline-color: var(--night);
  box-shadow: 0 0 0 6px #fff;
}

.cta--sm {
  min-height: 48px;
  justify-content: center;
  padding: 0 24px;
  background: #fff;
  color: var(--blue);
  font-size: 17px;
}

.cta--sm:hover {
  background: #e6edff;
}

.cta--sm:focus-visible {
  outline-color: var(--orange);
  box-shadow: none;
}

/* Вторые кнопки: звонок, маршрут, Telegram */

.call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 26px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font: 800 18px/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.call:hover {
  background: #fff;
  color: var(--blue);
}

.on-light .call {
  color: var(--blue);
}

.on-light .call:hover {
  background: var(--blue);
  color: #fff;
}

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

.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
}

.rating__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--orange);
}

.rating__stars .icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.rating b {
  font: 900 18px/1 var(--display);
}

.rating:hover span {
  text-decoration: underline;
}

.promo {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.promo::before {
  content: '';
  width: 10px;
  height: 10px;
  margin-top: calc(0.5lh - 5px);
  flex: none;
  border-radius: 50%;
  background: var(--orange);
}

/* Листы секций: каждая следующая заходит на предыдущую скруглённым краем */

.sheet {
  position: relative;
  margin-top: -28px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}

.sec {
  padding-block: 88px 112px;
}

.sec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: 44px;
}

.sec h2,
.run h2 {
  font: 900 clamp(36px, 4.6vw, 64px)/1 var(--display);
  letter-spacing: -0.02em;
}

.sec__lead {
  max-width: 40ch;
  font-size: 18px;
}

.sec__cta {
  margin-top: 48px;
}

/* Оранжевые формы франшизы: капсула с белой точкой и круг */

.shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.capsule {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-hot), var(--orange) 55%, #f2320c);
}

.capsule::after {
  content: '';
  position: absolute;
  top: 9%;
  bottom: 9%;
  right: 3%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}

.capsule--plain::after {
  display: none;
}

.disc {
  border-radius: 50%;
  background: var(--orange);
}

/* Узор франшизы с баннеров на Яндекс Картах: диагональные контуры таблеток. Плитка бесшовная: таблетка под 45° на квадратной сетке */
.pattern {
  position: absolute;
  inset: -140px 0;
  z-index: 0;
  pointer-events: none;
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.3'%3E%3Crect x='-59' y='-19' width='118' height='38' rx='19' transform='translate(-50 -50) rotate(-45)'/%3E%3Crect x='-59' y='-19' width='118' height='38' rx='19' transform='translate(-50 50) rotate(-45)'/%3E%3Crect x='-59' y='-19' width='118' height='38' rx='19' transform='translate(-50 150) rotate(-45)'/%3E%3Crect x='-59' y='-19' width='118' height='38' rx='19' transform='translate(50 -50) rotate(-45)'/%3E%3Crect x='-59' y='-19' width='118' height='38' rx='19' transform='translate(50 50) rotate(-45)'/%3E%3Crect x='-59' y='-19' width='118' height='38' rx='19' transform='translate(50 150) rotate(-45)'/%3E%3Crect x='-59' y='-19' width='118' height='38' rx='19' transform='translate(150 -50) rotate(-45)'/%3E%3Crect x='-59' y='-19' width='118' height='38' rx='19' transform='translate(150 50) rotate(-45)'/%3E%3Crect x='-59' y='-19' width='118' height='38' rx='19' transform='translate(150 150) rotate(-45)'/%3E%3C/g%3E%3C/svg%3E");
  background: var(--pat) 0 0 / 104px 104px;
  opacity: 0.15;
}

/* Параллакс: скрипт ставит каждой .px число --p (0 — фигура в центре экрана, −1 — на экран выше), скорость — в CSS */
.pattern.px {
  translate: 0 calc(var(--p, 0) * -70px);
}

.shape.px {
  translate: 0 calc(var(--p, 0) * var(--d, 0) * 1px);
}

/* Оранжевый полумесяц вокруг белой точки — как на баннере «Детская стрижка». При прокрутке дуга обходит точку по кругу */
.moon {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.moon svg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 64% 40%;
  rotate: calc(var(--p, 0) * 70deg);
}

.moon__dot {
  position: absolute;
  top: 16%;
  left: 40%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  translate: 0 calc(var(--p, 0) * -14px);
}

@media (min-width: 761px) and (pointer: fine) {
  .px {
    will-change: translate;
  }

  .moon.px svg {
    will-change: rotate;
  }
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: min(calc(100svh - 40px), 940px);
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

/* picture сам на весь экран: у него сдвиг параллакса, а сдвинутый элемент становится опорой для абсолютной картинки внутри */
.hero__photo {
  position: absolute;
  inset: 0;
}

.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
  translate: 0 max(0px, calc(var(--p, 0) * -35vh));
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(0 23 77 / 0.95) 0%, rgb(0 23 77 / 0.86) 30%, rgb(0 23 77 / 0.4) 53%, rgb(0 23 77 / 0) 70%),
    linear-gradient(180deg, rgb(0 23 77 / 0.72) 0, rgb(0 23 77 / 0.45) 90px, rgb(0 23 77 / 0) 190px);
}

.hero .top,
.hero__body {
  position: relative;
  z-index: 2;
}

.hero__body {
  align-self: center;
  max-width: 800px;
  padding: 8px var(--pad) 96px;
}

.hero h1 {
  font: 900 clamp(52px, 6.7vw, 96px)/0.93 var(--display);
  letter-spacing: -0.025em;
}

.hero h1 > span {
  display: block;
}

.hero h1 .h1-sub {
  margin-top: 22px;
  font: 600 22px/1.3 var(--text);
  letter-spacing: 0;
  color: #fff;
}

.hero__line {
  max-width: 36ch;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.45;
  color: #e2e9ff;
}

.loc {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 10px 26px 10px 10px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  background: rgb(0 23 77 / 0.55);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.loc__pin {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
}

.loc__pin::after {
  content: '';
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: #fff;
}

.loc__pin::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  animation: ping 2.6s var(--ease) infinite;
}

@keyframes ping {
  from { transform: scale(0.85); opacity: 0.9; }
  to { transform: scale(1.55); opacity: 0; }
}

.loc b {
  display: block;
  font: 800 21px/1.15 var(--display);
}

.loc__addr {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  color: #e2e9ff;
}

.loc:hover {
  background: rgb(0 23 77 / 0.8);
  border-color: var(--orange);
}

.loc:hover .loc__addr {
  text-decoration: underline;
}

.hero .actions {
  margin-top: 30px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  margin-top: 16px;
  color: #e2e9ff;
}

/* Лента работ */

.run {
  padding-top: 56px;
  background: var(--mist);
  color: var(--ink);
}

.run .sec__head {
  margin-bottom: 0;
}

.run h2 {
  color: var(--blue);
}

.run .sec__lead {
  color: var(--ink-2);
  font-size: 17px;
}

.ribbon-wrap {
  position: relative;
}

.ribbon {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 64px 0 112px;
}

.ribbon::-webkit-scrollbar {
  display: none;
}

.ribbon__track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 var(--pad);
}

.work {
  display: block;
  width: 260px;
  border-radius: var(--r-photo);
  text-decoration: none;
}

.work img {
  width: 260px;
  height: 347px;
  object-fit: cover;
  border-radius: var(--r-photo);
  transition: transform 0.5s var(--ease);
}

.work__name {
  display: block;
  margin-top: 12px;
  font: 600 16px/1.25 var(--text);
}

.work__price {
  display: block;
  margin-top: 5px;
  font: 900 22px/1 var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}

.work:hover img {
  transform: translateY(-6px);
}

.work:hover .work__name {
  text-decoration: underline;
}

.ribbon__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 1.5px solid var(--line-light);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font: 600 14px/1 var(--text);
  cursor: pointer;
}

.ribbon__toggle[hidden] {
  display: none;
}

.ribbon__toggle .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.ribbon__toggle:hover {
  border-color: var(--blue);
}

/* Цены — синий лист с оранжевой капсулой */

.prices {
  background: var(--blue);
  color: #fff;
}

.prices .capsule--a {
  --d: 90;
  width: 560px;
  height: 140px;
  top: 64px;
  right: -60px;
  transform: rotate(-18deg);
}

.prices .disc--a {
  --d: -70;
  width: 220px;
  height: 220px;
  right: -80px;
  bottom: -70px;
}

.prices .sec__head {
  flex-direction: column;
  align-items: flex-start;
  max-width: 820px;
}

.prices .sec__lead {
  max-width: 46ch;
  color: var(--on-blue-2);
}

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

.menu a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
  text-decoration: none;
}

.menu li:nth-last-child(-n + 2) a {
  border-bottom: 1px solid var(--line-dark);
}

.menu__ic {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-right: -6px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
}

.menu__ic .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.8;
}

.menu h3 {
  align-self: end;
  font: 800 23px/1.15 var(--display);
}

.menu p {
  grid-column: 2;
  align-self: start;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--on-blue-2);
}

.menu .price {
  grid-column: 3;
  grid-row: 1 / span 2;
  font: 900 28px/1 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.menu a:hover h3 {
  text-decoration: underline;
}

.prices__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* Скидки — оранжевый лист */

.deals {
  background: var(--orange);
  color: var(--night);
}

.deals .disc--b {
  --d: -60;
  width: 300px;
  height: 300px;
  right: -120px;
  top: -140px;
  background: #fff;
}

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

.deal {
  padding: 30px 30px 34px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgb(0 23 77 / 0.16);
}

.deal__val {
  display: block;
  font: 900 72px/0.9 var(--display);
  letter-spacing: -0.03em;
  color: var(--blue);
}

.deal h3 {
  margin-top: 18px;
  font: 800 24px/1.15 var(--display);
}

.deal p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* До и после — светлый лист между синими ценами и оранжевыми скидками: большой кадр «после»,
   кадр «до» в оранжевой точке на его краю, как точка на капсуле логотипа */

.ba {
  background: var(--mist);
  color: var(--ink);
}

.ba h2 {
  color: var(--blue);
}

/* Узор на светлом — синими линиями: тот же svg как маска */
/* Точка полумесяца на светлом — синяя, как таблетка в круге логотипа */
.ba .moon__dot {
  background: var(--blue);
}

.ba .pattern {
  background: var(--blue);
  -webkit-mask: var(--pat) 0 0 / 104px 104px;
  mask: var(--pat) 0 0 / 104px 104px;
  opacity: 0.09;
}

.ba .moon {
  width: 360px;
  right: -64px;
  bottom: -64px;
}

.ba__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 64px 40px;
}

.ba__list--solo {
  display: block;
}

.ba__list--solo .ba__item {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: 40px 80px;
  align-items: center;
}

.ba__fig {
  position: relative;
}

.ba__after {
  position: relative;
  width: 76%;
}

.ba__after img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-photo);
}

.ba__dot {
  position: absolute;
  right: 0;
  bottom: 9%;
  width: 46%;
}

.ba__dot img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: clamp(6px, 0.75vw, 10px) solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 clamp(6px, 0.7vw, 9px) var(--mist);
}

.ba__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font: 800 15px/1 var(--display);
  white-space: nowrap;
}

.ba__tag--before {
  top: auto;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--night);
}

.ba__txt {
  margin-top: 28px;
}

.ba__list--solo .ba__txt {
  margin-top: 0;
}

.ba__txt h3 {
  font: 900 clamp(30px, 3.2vw, 46px)/1.05 var(--display);
  letter-spacing: -0.01em;
}

.ba__steps {
  max-width: 460px;
  margin-top: 28px;
}

.ba__steps div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-light);
}

.ba__steps div:last-child {
  border-bottom: 1px solid var(--line-light);
}

.ba__steps dt {
  padding-top: 2px;
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 500;
}

.ba__steps dd {
  font-size: 18px;
}

.ba__price {
  margin-top: 28px;
  color: var(--blue);
  font: 900 34px/1 var(--display);
  font-variant-numeric: tabular-nums;
}

.ba__note {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.ba__txt .cta {
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .ba__list--solo .ba__item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px 48px;
  }
}

@media (max-width: 760px) {
  .ba__list--solo .ba__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .ba__fig {
    max-width: 480px;
  }

  .ba__tag {
    top: 12px;
    left: 12px;
    padding: 8px 13px;
    font-size: 14px;
  }

  .ba__tag--before {
    top: auto;
    left: 50%;
  }

  .ba__steps div {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .ba__steps dd {
    font-size: 16.5px;
  }

  .ba__price {
    font-size: 30px;
  }

  .ba .moon {
    width: 150px;
    top: 24px;
    right: -44px;
    bottom: auto;
  }
}

/* Отзывы */

.reviews {
  background: #fff;
}

.reviews h2 {
  color: var(--blue);
}

.reviews .sec__lead {
  color: var(--ink-2);
}

.aspects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.aspects li {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 22px 7px 7px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 16px;
  font-weight: 500;
}

.aspects b {
  display: grid;
  place-items: center;
  min-width: 112px;
  height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: 900 21px/1 var(--display);
  white-space: nowrap;
}

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

.rev {
  display: flex;
  flex-direction: column;
  padding: 30px 32px;
  border-radius: 16px;
  background: var(--mist);
}

.rev blockquote {
  font: 800 21px/1.35 var(--display);
}

.rev blockquote::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--orange);
}

.rev figcaption {
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink-2);
  font-size: 15px;
}

.rev figcaption b {
  color: var(--ink);
  font-weight: 600;
}

.more {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  margin-top: 32px;
  padding: 0 26px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font: 800 17px/1 var(--display);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.more:hover {
  background: var(--blue);
  color: #fff;
}

/* Как добраться */

.place {
  background: var(--mist);
}

.place__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}

.place h2 {
  color: var(--blue);
}

.place__addr {
  margin-top: 16px;
  font: 800 22px/1.3 var(--display);
}

.facts {
  margin-top: 26px;
  border-top: 1px solid var(--line-light);
}

.facts li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}

.facts li::before {
  content: '';
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-1px);
}

.facts b {
  font-weight: 600;
}

.place .actions {
  margin-top: 30px;
}

.place .call {
  min-height: 56px;
  padding: 0 22px;
  font-size: 17px;
}

.map {
  position: relative;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border-radius: 24px;
  background: var(--night);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #e2e9ff;
  font-size: 15px;
}

.map__ph .loc__pin::before {
  animation: none;
}

.floor {
  position: absolute;
  z-index: 2;
  left: -26px;
  top: -26px;
  display: grid;
  place-items: center;
  align-content: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 14px 30px rgb(255 68 16 / 0.35);
}

.floor b {
  font: 900 52px/0.9 var(--display);
}

.floor span {
  font: 800 19px/1 var(--display);
}

.place__map {
  position: relative;
}

/* Вопросы */

.faq {
  background: #fff;
}

.faq h2 {
  color: var(--blue);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px 72px;
}

/* Стенка таблеток, как у ресепшена салона: синие — услуги, светлые — слоганы, оранжевая — цена */
.wall {
  position: sticky;
  top: 18vh;
  align-self: start;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 118px;
}

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

.wall__row.px {
  translate: calc(var(--p, 0) * var(--dx, 0) * var(--k, 1) * 1px) 0;
}

.wall__row:nth-child(1) { --dx: 40; }
.wall__row:nth-child(2) { --dx: -56; }
.wall__row:nth-child(3) { --dx: 70; }
.wall__row:nth-child(4) { --dx: -44; }
.wall__row:nth-child(5) { --dx: 60; }
.wall__row:nth-child(6) { --dx: -30; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: 500 18px/1 var(--text);
  white-space: nowrap;
  transition: opacity 0.5s var(--ease) calc(var(--i, 0) * 45ms), scale 0.7s var(--ease) calc(var(--i, 0) * 45ms);
}

.pill--blue {
  background: var(--blue);
  color: #fff;
}

.pill--mist {
  background: #e3eafb;
  color: var(--ink);
}

.pill--price {
  background: var(--orange);
  color: var(--night);
  font-weight: 700;
}

/* Появление при прокрутке: скрипт ставит .rv и номер в группе --rv-i, .rv--in — когда блок на экране */
.rv {
  --rv-d: calc(var(--rv-i, 0) * 80ms);
  opacity: 0;
  translate: 0 22px;
  /* свои переходы кнопок (цвет при наведении, нажатие) сохраняются, задержка — только у появления */
  transition: opacity 0.6s var(--ease) var(--rv-d), translate 0.8s var(--ease) var(--rv-d),
    rotate 0.8s var(--ease) var(--rv-d), scale 0.8s var(--ease) var(--rv-d),
    background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}

.rv--in {
  opacity: 1;
  translate: none;
}

/* Карточки скидок ложатся веером и выпрямляются */
.deal.rv {
  rotate: -4deg;
  translate: 0 36px;
}

.deal.rv:nth-child(2) {
  rotate: 3deg;
}

.deal.rv:nth-child(3) {
  rotate: -2deg;
}

.deal.rv.rv--in {
  rotate: none;
  translate: none;
}

/* Кадр «до» выкатывается из-за кадра «после», как точка на конце капсулы */
.ba__dot.rv {
  translate: -30% 0;
  scale: 0.6;
  rotate: -40deg;
  --rv-d: 0.25s;
}

.ba__dot.rv--in {
  translate: none;
  scale: none;
  rotate: none;
}

/* Таблетки встают на место по очереди, когда стенка появляется на экране */
.wall--wait .pill {
  opacity: 0;
  scale: 0.6;
}

@media (max-width: 1100px) {
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wall {
    position: static;
    margin-top: 16px;
  }
}

@media (max-width: 760px) {
  .wall {
    --k: 0;
    gap: 8px;
  }

  .wall__row {
    gap: 8px;
  }

  .pill {
    height: 42px;
    padding: 0 16px;
    font-size: 15px;
  }

  .pattern {
    background-size: 84px 84px;
  }

  .ba .pattern {
    -webkit-mask-size: 84px 84px;
    mask-size: 84px 84px;
  }

  .pattern.px {
    translate: none;
  }
}

.faq__list {
  max-width: 920px;
  border-top: 1px solid var(--line-light);
}

.qa {
  border-bottom: 1px solid var(--line-light);
}

.qa summary {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}

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

.qa summary h3 {
  font: 800 22px/1.25 var(--display);
}

.qa summary:hover h3 {
  color: var(--blue);
}

.qa .plus {
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: auto;
  flex: none;
  border-radius: 50%;
  background: var(--mist);
  transition: background-color 0.2s, transform 0.35s var(--ease);
}

.qa .plus::before,
.qa .plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--blue);
  transform: translate(-50%, -50%);
}

.qa .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.qa[open] .plus {
  background: var(--orange);
  transform: rotate(45deg);
}

.qa[open] .plus::before,
.qa[open] .plus::after {
  background: #fff;
}

.qa__a {
  max-width: 68ch;
  padding: 0 60px 24px 0;
  color: var(--ink-2);
}

.qa__a b {
  color: var(--ink);
  font-weight: 600;
}

/* Финальный призыв — синий с перекрещёнными капсулами */

.final {
  background: var(--blue);
  color: #fff;
}

.final .capsule--c {
  --d: 70;
  width: 640px;
  height: 160px;
  right: -40px;
  top: 90px;
  transform: rotate(-22deg);
}

.final .capsule--d {
  --d: -40;
  width: 560px;
  height: 130px;
  right: 60px;
  bottom: -40px;
  transform: rotate(14deg);
}

.final .disc--c {
  width: 120px;
  height: 120px;
  left: 46%;
  top: -40px;
  background: #fff;
}

.final .wrap {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.final h2 {
  max-width: 13ch;
}

.final p {
  max-width: 40ch;
  margin-top: 18px;
  font-size: 19px;
  color: var(--on-blue-2);
}

.final .actions {
  margin-top: 34px;
}

.final__hours {
  margin-top: 18px;
  font-size: 15px;
  color: var(--on-blue-2);
}

/* Подвал */

.foot {
  padding: 72px 0 48px;
  background: var(--night);
  color: #e2e9ff;
  font-size: 15.5px;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot__logo img {
  height: 34px;
  width: auto;
}

.foot h3 {
  margin-bottom: 10px;
  color: #fff;
  font: 800 17px/1.2 var(--display);
}

.foot li + li {
  margin-top: 6px;
}

.foot a {
  color: #fff;
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: 14px;
  color: #b9c6ec;
}

/* Плашка cookie */

.cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(calc(100% - 24px), 620px);
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: var(--night);
  color: #e2e9ff;
  font-size: 14px;
  box-shadow: 0 12px 30px rgb(0 23 77 / 0.3);
  transform: translateX(-50%);
}

.cookie[hidden] {
  display: none;
}

.cookie a {
  color: #fff;
}

.cookie button {
  margin-left: auto;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font: 800 15px/1 var(--display);
  cursor: pointer;
}

/* Нижняя панель записи на телефоне */

.dock {
  display: none;
}

@media (max-width: 1024px) {
  .menu {
    grid-template-columns: 1fr;
  }

  .menu li:nth-last-child(2) a {
    border-bottom: 0;
  }

  .top__phone .num {
    display: none;
  }

  .top__phone {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
    border: 2px solid currentColor;
  }

  .deals__list,
  .revs {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  :root {
    --top-h: 64px;
  }

  body {
    font-size: 16px;
  }

  html {
    scroll-padding-bottom: 96px;
  }

  .top {
    gap: 12px;
  }

  .top__logo {
    padding: 6px 0;
  }

  .top__logo img {
    height: 32px;
  }

  .top__place {
    font-size: 14px;
    line-height: 1.3;
    padding-left: 12px;
  }

  .top__place .wide,
  .top__place .hrs,
  .top__place br,
  .top .cta--sm {
    display: none;
  }

  .cta {
    min-height: 60px;
    padding-left: 26px;
    font-size: 19px;
  }

  .call {
    min-height: 60px;
  }

  .sheet {
    margin-top: -22px;
    border-radius: 22px 22px 0 0;
  }

  .sec {
    padding-block: 56px 80px;
  }

  .sec__head {
    margin-bottom: 28px;
  }

  .sec__lead {
    font-size: 16px;
  }

  .hero {
    min-height: calc(100svh - 8px);
  }

  .hero__photo img {
    object-position: 100% 30%;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgb(0 23 77 / 0.97) 0%, rgb(0 23 77 / 0.9) 50%, rgb(0 23 77 / 0.35) 70%, rgb(0 23 77 / 0) 82%),
      linear-gradient(180deg, rgb(0 23 77 / 0.88) 0, rgb(0 23 77 / 0.7) 72px, rgb(0 23 77 / 0) 190px);
  }

  .hero__body {
    align-self: end;
    padding: 0 var(--pad) 52px;
  }

  .hero h1 {
    font-size: clamp(38px, calc((100vw - 2 * var(--pad)) / 7.45), 62px);
  }

  .hero h1 .h1-sub {
    margin-top: 14px;
    font-size: 18px;
  }

  .hero__line {
    margin-top: 4px;
    font-size: 15.5px;
  }

  .loc {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 8px 16px 8px 8px;
  }

  .loc__pin {
    width: 40px;
    height: 40px;
  }

  .loc__pin::after {
    inset: 13px;
  }

  .loc b {
    font-size: 18px;
  }

  .loc__addr {
    font-size: 14px;
  }

  .hero .actions {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 16px;
  }

  .hero .actions .cta {
    flex: 1;
    justify-content: space-between;
  }

  .hero .actions .call {
    width: 56px;
    padding: 0;
  }

  .hero .actions .call .label {
    display: none;
  }

  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 6px;
    font-size: 14px;
  }

  .hero__meta .promo {
    font-size: 14px;
  }

  .run {
    padding-top: 38px;
  }

  .ribbon {
    padding: 36px 0 76px;
  }

  .ribbon__track {
    gap: 12px;
  }

  .work {
    width: 60vw;
  }

  .work img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .work__name {
    font-size: 15px;
  }

  .work__price {
    font-size: 20px;
  }

  .prices {
    padding-top: 120px;
  }

  .prices .capsule--a {
    width: 260px;
    height: 64px;
    top: 34px;
    right: -50px;
  }

  .prices .disc--a {
    width: 120px;
    height: 120px;
    right: -50px;
    bottom: -30px;
  }

  .menu a {
    gap: 2px 14px;
    padding: 16px 0;
  }

  .menu h3 {
    font-size: 18px;
  }

  .menu p {
    font-size: 14px;
  }

  .menu .price {
    font-size: 21px;
  }

  .menu__ic {
    width: 40px;
    height: 40px;
    margin-right: -4px;
  }

  .menu__ic .icon {
    width: 21px;
    height: 21px;
  }

  .prices__cta .call {
    min-height: 56px;
    font-size: 17px;
  }

  .deals .disc--b {
    width: 150px;
    height: 150px;
    right: -76px;
    top: -84px;
  }

  .deal {
    padding: 24px 24px 26px;
  }

  .deal__val {
    font-size: 58px;
  }

  .deal h3 {
    font-size: 21px;
  }

  .aspects li {
    width: 100%;
    font-size: 15px;
  }

  .aspects b {
    min-width: 100px;
    height: 46px;
    font-size: 19px;
  }

  .rev {
    padding: 24px 22px;
  }

  .rev blockquote {
    font-size: 18px;
  }

  .floor {
    left: auto;
    right: -6px;
    top: -30px;
    width: 96px;
    height: 96px;
  }

  .floor b {
    font-size: 40px;
  }

  .floor span {
    font-size: 14px;
  }

  .map {
    aspect-ratio: 4 / 5;
  }

  .place .actions {
    display: grid;
    gap: 10px;
  }

  .qa summary h3 {
    font-size: 18px;
  }

  .qa__a {
    padding-right: 0;
  }

  .final .capsule--c {
    width: 260px;
    height: 64px;
    right: -50px;
    top: 26px;
    transform: rotate(-12deg);
  }

  .final .capsule--d {
    width: 260px;
    height: 60px;
    right: -70px;
    bottom: -18px;
  }

  .final .disc--c {
    width: 70px;
    height: 70px;
    left: auto;
    right: 30%;
    top: -26px;
  }

  .final .wrap {
    min-height: 0;
    padding-top: 120px;
    padding-bottom: 96px;
  }

  .final p {
    font-size: 16px;
  }

  .final .actions .cta {
    flex: 1;
    justify-content: space-between;
  }

  .foot {
    padding-bottom: 120px;
  }

  .foot__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cookie {
    bottom: calc(86px + env(safe-area-inset-bottom));
    border-radius: 20px;
    padding: 12px 12px 12px 18px;
    font-size: 13px;
  }

  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 0.96);
    box-shadow: 0 -6px 24px rgb(0 23 77 / 0.12);
    transform: translateY(110%);
    transition: transform 0.45s var(--ease);
  }

  .dock .cta {
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding-left: 22px;
  }

  .dock .cta__deal {
    right: 38px;
  }

  .dock .cta__dot {
    width: 42px;
    height: 42px;
  }

  .dock .call {
    flex: none;
    width: 56px;
    min-height: 56px;
    padding: 0;
    color: var(--blue);
  }

  .dock-on .dock {
    transform: none;
  }
}

@media (max-width: 380px) {
  .hero .actions .call {
    display: none;
  }
}

/* В нижней панели рядом две круглые кнопки — на узких экранах кнопка записи короче */
@media (max-width: 430px) {
  .dock__more {
    display: none;
  }
}

@media (max-width: 350px) {
  .dock .call + .call {
    display: none;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

.still *,
.still *::before,
.still *::after {
  animation: none !important;
  transition: none !important;
}
