/* 9 Вал. Чёрный фон, заголовочный шрифт подобран под логотип «9ВАЛ», цвет на странице даёт закат на первом экране. */

@font-face { font-family: 'Val Display'; src: url('fonts/val-display-900.woff2?v=787873') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Val Display'; src: url('fonts/val-display-800.woff2?v=787873') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Geologica'; src: url('fonts/geologica.woff2?v=787873') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --wall: #0a0a0a;      /* чёрный фон страницы, поверх него зерно и пыль */
  --wall-2: #1c1a18;    /* подложки под фото, карту, ролик */
  --ink: #ede7db;       /* основной текст */
  --ink-2: #bdb6aa;     /* вторичный текст на чёрном */
  --paper: #1a1816;     /* лист: прайс и способы записи */
  --paper-2: #36322d;   /* линейки на листе */
  --mute: #a39c90;      /* вторичный текст на листе */
  --signal: #f0643f;    /* только действие «Записаться» */
  --signal-2: #ff7c58;
  --on-signal: #0a0a0a;

  --display: 'Val Display', Impact, 'Arial Narrow', sans-serif;
  --text: 'Geologica', 'Segoe UI', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --z-bar: 10;
  --z-skip: 20;
}

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

html {
  overflow-x: clip;
  /* фактура стены: пыль и царапины (tools/wear.py) плюс редкие косые волоски в двух направлениях */
  background-color: var(--wall);
  background-image: url('img/dust.webp'),
    repeating-linear-gradient(97deg, transparent 0 37px, rgb(232 232 226 / 0.035) 37px 38px),
    repeating-linear-gradient(13deg, transparent 0 91px, rgb(232 232 226 / 0.03) 91px 92px);
  background-size: 860px 860px, auto, auto;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--text);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; }
::selection { background: var(--ink); color: var(--wall); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--go:focus-visible, .plank:focus-visible { outline-color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nb { white-space: nowrap; }

.skip { position: absolute; left: var(--gutter); top: 0; z-index: var(--z-skip); padding: 12px 16px; background: var(--ink); color: var(--wall); transform: translateY(-110%); }
.skip:focus { transform: none; }

/* Заголовки */
.h1, .h2 { font-family: var(--display); font-weight: 900; line-height: 0.98; letter-spacing: 0.005em; text-wrap: balance; }
.h1 { font-size: clamp(2.125rem, 6.2vw, 5.5rem); overflow-wrap: anywhere; }
.h2 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); }
.h3 { font: 600 1.25rem/1.25 var(--text); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.45; max-width: 34em; }
.note { font-size: 0.9375rem; color: var(--ink-2); max-width: 46em; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  font: 600 1.0625rem/1 var(--text); text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 0; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--go { background: var(--signal); color: var(--on-signal); }
.btn--ink { background: var(--ink); color: var(--wall); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.link { font-weight: 500; }

/* Шапка */
.top { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); padding-block: 16px; }
.top__logo { flex: none; }
.top__logo img { height: 46px; width: auto; filter: invert(1); mix-blend-mode: screen; }
.top__nav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.top__nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; touch-action: manipulation; }
.top__nav a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.top__side { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.top__tel { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Первый экран: закат по мотивам «Девятого вала» на всю ширину, заголовок во всю строку */
/* Прайс и ролик рядом: ролик стоит узкой колонкой у правого края и по высоте равен листу */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 24vw, 320px); gap: clamp(12px, 2vw, 24px); align-items: stretch; }
.clip { position: relative; margin: 0; min-height: 420px; background: var(--wall-2); overflow: hidden; }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.clip__sound { position: absolute; left: 0; right: 0; bottom: 0; min-height: 48px; padding: 0 16px; background: var(--paper); color: var(--ink); border: 0; font: 500 0.9375rem/1 var(--text); text-align: left; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.clip__sound[aria-pressed='true'] { background: var(--ink); color: var(--wall); }

/* Первый экран: афиша. Название во всю ширину, вокруг мелкий служебный набор */
.poster { container-type: inline-size; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: space-between; gap: clamp(12px, 1.4vw, 16px); min-height: calc(100svh - 78px); padding-block: clamp(12px, 1.6vw, 22px) clamp(18px, 2.4vw, 30px); isolation: isolate; }
.poster::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; border-top: 1px solid rgb(237 231 219 / 0.14); background: linear-gradient(90deg, rgb(237 231 219 / 0.07) 1px, transparent 1px) 0 0 / clamp(120px, 16.6vw, 240px) 100%; pointer-events: none; }
.poster__top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.poster__tag, .poster__list, .poster__lead, .poster__strip { font: 500 0.8125rem/1.35 var(--text); letter-spacing: 0.14em; text-transform: uppercase; }
.poster__tag { display: flex; align-items: center; gap: 14px; color: var(--signal); }
.poster__tag::after { content: ''; width: clamp(24px, 6vw, 96px); height: 1px; background: currentColor; opacity: 0.6; }
.poster__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 22px; margin: 0; padding: 0; list-style: none; text-align: right; color: var(--ink-2); }
.poster__h { display: contents; }
.poster__mark { grid-column: 1 / -1; display: block; margin-left: -0.02em; font: 900 calc(100cqi / var(--fit, 2.1))/0.77 var(--display); white-space: nowrap; }
/* потёртость нарисована под сами буквы (tools/wear.py); класс ставит скрипт, когда картинка маски загрузилась */
.poster__mark.is-worn { -webkit-mask: url('img/wear-wide.webp') 0 0 / 100% 100% no-repeat; mask: url('img/wear-wide.webp') 0 0 / 100% 100% no-repeat; }
.poster::after { content: ''; position: absolute; right: 0; bottom: clamp(96px, 11vw, 150px); width: 44px; height: 44px; background: linear-gradient(rgb(237 231 219 / 0.4), rgb(237 231 219 / 0.4)) 50% 0 / 1px 100% no-repeat, linear-gradient(rgb(237 231 219 / 0.4), rgb(237 231 219 / 0.4)) 0 50% / 100% 1px no-repeat; pointer-events: none; }
.poster__sub { grid-column: 1; align-self: end; display: block; font: 800 clamp(1.75rem, 4cqi, 3.5rem)/0.98 var(--display); text-transform: uppercase; letter-spacing: 0.012em; text-wrap: balance; }
.poster__lead { font-size: 0.9375rem; font-weight: 300; line-height: 1.6; letter-spacing: 0.16em; }
.poster__go { justify-self: start; width: min(100%, 460px); justify-content: space-between; min-height: 64px; padding-inline: 28px; text-transform: uppercase; letter-spacing: 0.08em; }
.poster__arrow { position: relative; width: 34px; height: 2px; background: currentColor; transition: width 300ms var(--ease-out); }
.poster__arrow::after { content: ''; position: absolute; right: 0; top: -4px; width: 10px; height: 10px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.poster__strip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; padding-top: 16px; border-top: 1px solid rgb(237 231 219 / 0.18); color: var(--ink-2); font-size: 0.75rem; }
.poster__strip .link { margin-left: auto; color: var(--ink); }
.poster__strip span + span::before { content: '/'; margin-inline: 14px; opacity: 0.5; }
.poster__strip [data-hours] { color: var(--ink); }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }

/* Разделы */
.section { padding-block: clamp(48px, 8vw, 120px); }
.section--tight { padding-top: 0; }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3.5vw, 44px); }
.page-head { padding-block: clamp(28px, 5vw, 72px) clamp(24px, 3.5vw, 44px); display: grid; gap: 16px; }

/* Лист: белая плоскость, как прайс на стене */
.sheet { background: var(--paper); padding: clamp(18px, 4vw, 56px); }
.sheet__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(20px, 3vw, 36px); }
.sheet .note { color: var(--mute); }

/* Прайс */
.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { padding: 14px 0; text-align: left; vertical-align: baseline; }
.prices thead th { padding: 0 0 14px; vertical-align: bottom; font: 400 0.875rem/1.35 var(--text); color: var(--mute); border-bottom: 3px solid var(--ink); }
.prices thead strong { display: block; margin-bottom: 4px; font: 800 clamp(1.25rem, 2.2vw, 1.75rem)/1 var(--display); color: var(--ink); }
.prices .prices__price { width: clamp(6.2rem, 17vw, 12.5rem); padding-left: 12px; }
.prices tbody th { padding-right: 12px; font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.1875rem); line-height: 1.3; }
.prices tbody th small { display: block; margin-top: 3px; font-size: 0.875rem; font-weight: 400; color: var(--mute); }
.prices tbody tr + tr > * { border-top: 1px solid var(--paper-2); }
.prices tbody + tbody > tr:first-child > * { border-top: 3px solid var(--ink); }
.prices .grp th { padding: 28px 0 6px; font: 600 0.9375rem/1.3 var(--text); color: var(--mute); border-top: 0; }
.prices tbody:first-of-type .grp th { padding-top: 18px; }
.prices .grp + tr > * { border-top: 0; }
.p { display: block; font: 800 clamp(1.5rem, 2.9vw, 2.25rem)/1 var(--display); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.t { display: block; margin-top: 5px; font-size: 0.875rem; line-height: 1.2; color: var(--mute); white-space: nowrap; }
.none { font-size: 0.875rem; color: var(--mute); }

/* Мастера: портреты сняты на той же стене, что и фон страницы */
.crew { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.crew__group { grid-row: 1; padding: 12px 12px 14px 0; border-top: 3px solid var(--ink); font-weight: 600; }
.crew__group span { display: block; font-weight: 400; color: var(--ink-2); }
.crew__group--top { grid-column: 1 / span var(--top, 3); }
.crew__group--barber { grid-column: calc(var(--top, 3) + 1) / -1; margin-left: 12px; }
.crew__one { grid-row: 2; }
/* портреты приглушены и с плёночным зерном: без этого они выглядят слишком гладкими */
.crew__pic { position: relative; display: block; overflow: hidden; }
.crew__pic::after { content: ''; position: absolute; inset: 0; background: 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='.85' numOctaves='2' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px; mix-blend-mode: overlay; opacity: 0.55; pointer-events: none; }
.crew__one img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--wall-2); filter: grayscale(0.4) sepia(0.1) contrast(1.08) brightness(0.95); }
.crew__one figcaption { padding: 12px 12px 0 0; font-weight: 600; font-size: 1.125rem; line-height: 1.25; }
.crew__one figcaption span { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--ink-2); }

/* Адрес */
.place { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.place__addr { font-size: clamp(2.25rem, 4.2vw, 3.75rem); overflow-wrap: anywhere; }
.place__list { display: grid; gap: 10px; margin-top: 22px; font-size: 1.0625rem; }
.place__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.place__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; padding-top: 20px; border-top: 3px solid var(--ink); }
.map { position: relative; aspect-ratio: 16 / 11; background: var(--wall-2); }
.map__ask { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 200ms ease; }
.map.is-ready iframe { opacity: 1; }

/* Широкая кнопка записи в конце страницы */
.plank { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding: clamp(18px, 3vw, 34px) clamp(18px, 4vw, 56px); background: var(--signal); color: var(--on-signal); text-decoration: none; touch-action: manipulation; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.plank strong { font: 900 clamp(2.75rem, 8vw, 6rem)/0.9 var(--display); }
.plank span { font-weight: 500; max-width: 22em; }
.plank:active { transform: scale(0.99); }

/* Страница записи */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.way .h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.way p { color: var(--ink-2); max-width: 28em; }
.way .btn { margin-top: auto; }
.way__gap { flex: 1; min-height: 10px; }
.call { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 36px; margin-top: clamp(32px, 5vw, 64px); padding-top: 22px; border-top: 3px solid var(--ink); }
.call a { font: 900 clamp(2.25rem, 7vw, 4.75rem)/1 var(--display); text-decoration: none; }

/* Документы */
.doc { max-width: 46rem; }
.doc h2 { margin: 32px 0 10px; font: 600 1.25rem/1.3 var(--text); }
.doc p, .doc li { margin-bottom: 12px; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc .todo { background: #ffe3a6; color: #100f0e; padding: 0 4px; }

/* Подвал */
.foot { margin-top: clamp(48px, 8vw, 120px); padding-block: clamp(36px, 5vw, 64px); background: #000; color: var(--ink); border-top: 1px solid var(--paper-2); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 32px; align-items: start; }
.foot__logo img { height: 64px; width: auto; filter: invert(1); mix-blend-mode: screen; }
.foot a { text-decoration: none; }
.foot__list { display: grid; gap: 8px; }
.foot__tel + .foot__list { margin-top: 14px; }
.foot__list a { display: inline-flex; min-height: 32px; align-items: center; }
.foot__tel { font: 800 1.75rem/1.1 var(--display); }
.foot__small { margin-top: 36px; font-size: 0.875rem; color: var(--mute); }

/* Нижняя панель на телефоне: запись под большим пальцем */
.bar { display: none; }

/* Наведение только там, где есть мышь */
@media (hover: hover) and (pointer: fine) {
  .btn--go:hover, .plank:hover { background: var(--signal-2); }
  .btn--ink:hover { background: #fff; }
  .btn--line:hover { background: var(--ink); color: var(--wall); }
}

/* Движение. Всё на transform и opacity, при «уменьшить движение» отключается. */
.btn, .plank, .bar a, .clip__sound { position: relative; overflow: hidden; }
.plank::before { content: ''; position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: var(--wall); opacity: 0.16; transform: scale(0); transition: transform 500ms var(--ease-out); pointer-events: none; }
.plank > * { position: relative; }
.ripple { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: currentColor; opacity: 0.28; pointer-events: none; animation: ripple 520ms var(--ease-out) forwards; }
@keyframes ripple { to { transform: scale(46); opacity: 0; } }
.top__nav a, .foot__list a, .link { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; transition: background-size 240ms var(--ease-out); }
.top__nav a { background-position: 0 calc(100% - 8px); }
.crew__one { overflow: hidden; }
.crew__one img { transition: transform 600ms var(--ease-out); }
.prices tbody tr:not(.grp) { transition: background-color 160ms ease; }

@media (hover: hover) and (pointer: fine) {
  .top__nav a:hover, .foot__list a:hover, .link:hover { background-size: 100% 2px; text-decoration: none; }
  .crew__one:hover img { transform: scale(1.04); }
  .prices tbody tr:not(.grp):hover { background-color: rgba(237, 231, 219, 0.05); }
  .btn:hover { transform: translateY(-2px); }
  .poster__go:hover .poster__arrow { width: 52px; }
  .plank:hover::before { transform: scale(1); }
  .plank strong { display: inline-block; transition: transform 500ms var(--ease-out); }
  .plank:hover strong { transform: translateX(14px); }
  .btn:active { transform: scale(0.96); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 180ms ease both vt-out; }
  ::view-transition-new(root) { animation: 320ms var(--ease-out) both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

  /* первый экран: солнце поднимается из-за горизонта, заголовок выезжает, остальное проявляется следом */
  .sun { animation: sun-rise 1600ms var(--ease-out) backwards; }
  @keyframes sun-rise { from { transform: translateY(190px); } }
  .glint { animation: glint 5s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -700ms); }
  @keyframes glint { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }


  /* афиша: название поднимается из-под обреза, остальное подтягивается следом */
  .poster__mark { animation: mark-up 1200ms var(--ease-out) backwards; }
  @keyframes mark-up { from { clip-path: inset(100% 0 0 0); transform: translateY(18%); } to { clip-path: inset(0); } }
  .poster__top, .poster__sub, .poster__lead, .poster__go, .poster__strip { animation: rise 800ms var(--ease-out) backwards; }
  .poster__sub { animation-delay: 420ms; }
  .poster__lead { animation-delay: 480ms; }
  .poster__go { animation-delay: 540ms; }
  .poster__strip { animation-delay: 620ms; }
  .poster::before { animation: grid-in 1400ms var(--ease-out) backwards; }
  @keyframes grid-in { from { opacity: 0; } }

  /* заголовки: слова выезжают из-под строки по одному */
  .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .w > span { display: inline-block; transform: translateY(105%); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--w) * 70ms); }
  .split.in .w > span { transform: none; }

  /* портреты открываются шторкой снизу вверх */
  .crew.reveal .crew__one img { clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--j, 0) * 90ms), 0ms; }
  .crew.reveal.in .crew__one img { clip-path: inset(0); }
  /* лист прайса и ролик раскрываются шторкой слева направо */
  .sheet.reveal, .clip.reveal { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1000ms var(--ease-out); }
  .sheet.reveal.in, .clip.reveal.in { clip-path: inset(0); }
  /* строки прайса подтягиваются следом */
  .sheet.reveal .prices tbody tr { opacity: 0; transform: translateX(-18px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(350ms + var(--r, 0) * 45ms); }
  .sheet.reveal.in .prices tbody tr { opacity: 1; transform: none; }

  /* блоки ниже первого экрана появляются при прокрутке (класс ставит скрипт, без него всё видно сразу) */
  .reveal { opacity: 0; transform: translateY(36px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  .crew.reveal .crew__one { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--j, 0) * 70ms); }
  .crew.reveal.in .crew__one { opacity: 1; transform: none; }

  .map.is-loading { animation: wait 900ms ease-in-out infinite alternate; }
  @keyframes wait { to { background-color: #2a2724; } }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .plank, .map iframe, .crew__one img, .top__nav a, .foot__list a, .link { transition: none; }
  .ripple { display: none; }
}

/* Планшет и телефон */
@media (max-width: 960px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .clip { aspect-ratio: 9 / 16; width: min(100%, 420px); }
  .place { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__logo { grid-column: 1 / -1; }
}

@media (max-width: 759px) {
  html { scroll-padding-bottom: 88px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .top { padding-block: 10px; }
  .top { gap: 22px; }
  .top__logo { margin-left: 8px; }
  .top__logo img { height: 40px; }
  .top__nav { gap: 18px; }
  .top__side { display: none; }
  .poster { min-height: calc(100svh - 64px - 72px); }
  /* на узком экране название вытянуто вверх, как на афише: иначе оно теряется на высоком экране */
  .poster__mark { scale: 1 1.5; transform-origin: 0 0; margin-bottom: calc(100cqi / var(--fit, 2.1) * 0.385); }
  .poster__mark.is-worn { -webkit-mask-image: url('img/wear-tall.webp'); mask-image: url('img/wear-tall.webp'); }
  .poster::after { content: none; }
  .poster__sub { font-size: 10.4cqi; }
  .poster__strip { gap: 6px 20px; }
  .poster__strip span + span::before { content: none; }
  .poster__strip .link { margin-left: 0; }
  .poster__list { display: block; font-size: 0.6875rem; }
  .poster .poster__go { width: 84%; min-height: 68px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .btn { min-height: 56px; }

  /* Мастера листаются вбок, как на телефоне принято */
  .crew { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .crew::-webkit-scrollbar { display: none; }
  .crew__group { display: none; }
  .crew__one { flex: 0 0 64%; scroll-snap-align: start; }

  /* нижняя панель: небольшая, приподнята над краем и просвечивает, чтобы не закрывать страницу глухой полосой */
  .bar { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom, 0px)) 12px; z-index: var(--z-bar); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; font: 600 0.9375rem/1 var(--text); text-decoration: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
  .bar__call { background: rgb(10 10 10 / 0.62); color: var(--ink); }
  .bar__go { background: rgb(240 100 63 / 0.82); color: var(--on-signal); }
  .bar a:active { opacity: 0.86; }
  .no-bar { padding-bottom: 0; }
  .no-bar .bar { display: none; }
}

@media print {
  .top__side, .bar, .plank, .map, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}
