/* M-RECORDS v1 «Ночная смена»: dark cinematic studio.
   Theme: dark-only by brand decision (color-scheme: dark).
   Radius system: buttons are full-pill (--r-pill), photos and photo panels are 6px (--r-media), everything else is 0.
   Accent: one REC red-orange (#F0532E). Text on accent is near-black (5.4:1). Accent as text on --bg is 5.4:1.
   z-index scale: skip 100, header 50 (its menu lives inside it), callbar 40, content 0-3.
   Photo grade: the loud stage photos (electric blue, magenta, RGB console LEDs) get .grade so the REC accent stays the only saturated colour. */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --bg: #0E0F11;
  --bg-rgb: 14 15 17;
  --surface: #16181B;
  --surface-2: #1C1F23;
  --line: #2A2D32;
  --line-strong: #3B3F45;
  --text: #ECECE8;
  --text-2: #CFD0D0;
  --muted: #A6A9AC;
  --dim: #80848A;
  --accent: #F0532E;
  --accent-hi: #FF6A45;
  --on-accent: #0E0F11;

  --r-pill: 999px;
  --r-media: 6px;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --section-y: clamp(5rem, 9vw, 8.5rem);
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
.grade { filter: saturate(.52) brightness(.86) contrast(1.06); }
.grade--soft { filter: saturate(.78) brightness(.94); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:focus-visible, .icon-btn:focus-visible { outline-offset: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

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

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 120px; pointer-events: none; }

/* ---------- type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.3vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 20ch;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; gap: .65rem;
  min-height: var(--h);
  padding: 0 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; line-height: 1;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .25s ease, color .25s ease, border-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hi); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgb(var(--bg-rgb) / .35); }
.btn--ghost:hover { border-color: var(--text); }
.btn--lg { --h: 60px; padding: 0 1.75rem; font-size: 1.05rem; }

.btn--xl {
  --h: 72px;
  padding: 0 2rem 0 .625rem;
  gap: 1rem;
  font-size: 1.0625rem;
}
.btn--xl .btn__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: var(--r-pill);
  background: var(--on-accent); color: var(--accent);
  transition: transform .35s var(--ease-out);
}
.btn--xl .btn__icon .ic { width: 22px; height: 22px; }
.btn--xl:hover .btn__icon { transform: rotate(-12deg); }
.btn--xl .btn__num {
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em;
  padding-left: 1rem; border-left: 1px solid rgb(14 15 17 / .28);
}

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--text);
  transition: transform .2s var(--ease-out), background-color .2s ease;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px;
  font-weight: 600; color: var(--text);
  border-bottom: 1px solid rgb(236 236 232 / .35);
  transition: border-color .25s ease, color .25s ease;
}
.link-arrow .ic { transition: transform .35s var(--ease-out); }
.link-arrow:hover { color: var(--accent-hi); border-color: var(--accent); }
.link-arrow:hover .ic { transform: translate(3px, 3px); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgb(var(--bg-rgb) / .88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s ease, border-color .4s ease;
}
.js .header:not(.is-scrolled):not(.is-open) {
  background: rgb(var(--bg-rgb) / 0);
  border-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.header__row {
  height: var(--header-h);
  display: flex; align-items: center; gap: 2rem;
}
.logo {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.1rem; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; min-height: 44px;
  white-space: nowrap;
}
.logo__dash { color: var(--accent); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: .25rem; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; white-space: nowrap;
  color: var(--muted); font-size: .95rem; font-weight: 500;
  transition: color .2s ease;
}
.nav__list a:hover { color: var(--text); }
.header__phone {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; padding: 0 1.1rem 0 .9rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 500; font-size: .9rem; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.header__phone .ic { color: var(--accent); width: 18px; height: 18px; }
.header__phone:hover { border-color: var(--accent); }
/* Once the hero call button has scrolled away, the header number takes over as the lit «REC» button. */
.header.is-live .header__phone { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.header.is-live .header__phone .ic { color: var(--on-accent); }
.header.is-live .header__phone:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.header__mobile { display: none; margin-left: auto; gap: .5rem; }
.menu-btn { display: none; }
.menu-btn .ic--close { display: none; }
.header.is-open .menu-btn .ic--open { display: none; }
.header.is-open .menu-btn .ic--close { display: block; }

.mobile-menu { display: none; }

@media (max-width: 1179px) {
  .nav { display: none; }
  .header__phone { margin-left: auto; }
  .header__mobile { display: flex; margin-left: 0; }
  .header__mobile .icon-btn--accent { display: none; }
  .js .menu-btn { display: grid; }
  .js .mobile-menu {
    display: block;
    position: absolute; inset: 100% 0 auto 0;
    background: rgb(var(--bg-rgb) / .97);
    border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s linear .4s;
  }
  .js .header.is-open .mobile-menu {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s;
  }
  .mobile-menu__list { padding-block: .75rem 1.5rem; }
  .mobile-menu__list a {
    display: flex; align-items: center; min-height: 56px;
    font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.01em;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu__list li:last-child a { border-bottom: 0; }
}

@media (max-width: 767px) {
  .header__phone { display: none; }
  .header__mobile { margin-left: auto; }
  .header__mobile .icon-btn--accent { display: grid; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
  padding: calc(var(--header-h) + 1rem) 0 clamp(3.5rem, 9vh, 6.5rem);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
/* Desktop: slide the photo right so the pop filter clears the headline instead of sitting under «звукозаписи». */
@media (min-width: 1024px) {
  .hero__media { inset: 0 -18% 0 12%; }
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% 55%;
  animation: hero-img 2.2s var(--ease-out) both;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / 1) 0%, rgb(var(--bg-rgb) / .9) 12%, rgb(var(--bg-rgb) / .8) 28%, rgb(var(--bg-rgb) / .42) 50%, rgb(var(--bg-rgb) / 0) 70%),
    linear-gradient(0deg, rgb(var(--bg-rgb) / 1) 0%, rgb(var(--bg-rgb) / 0) 28%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / .6) 0%, rgb(var(--bg-rgb) / 0) 22%);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.05rem, 4.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: block; animation: line-up 1.1s var(--ease-out) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; color: var(--muted); }
.hero__sub {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-2);
  animation: fade-up 1s var(--ease-out) .35s both;
}
.hero__cta {
  margin-top: 2.5rem;
  display: inline-grid; gap: 14px;
  animation: fade-up 1s var(--ease-out) .5s both;
}

/* «В эфире»: a level meter under the call button, the line is live. */
.meter {
  display: block; position: relative; height: 5px; overflow: hidden;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 10px);
  mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 10px);
}
.meter::before { content: ""; position: absolute; inset: 0; background: rgb(236 236 232 / .14); }
.meter__fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(236 236 232 / .5) 0%, var(--text) 62%, var(--accent) 88%);
  transform-origin: 0 50%;
  transform: scaleX(.6);
  animation: level 3.2s var(--ease-io) infinite;
}

@keyframes hero-img { from { transform: scale(1.07); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes level {
  0%   { transform: scaleX(.38); }
  9%   { transform: scaleX(.71); }
  17%  { transform: scaleX(.52); }
  28%  { transform: scaleX(.83); }
  37%  { transform: scaleX(.6); }
  49%  { transform: scaleX(.74); }
  58%  { transform: scaleX(.44); }
  70%  { transform: scaleX(.79); }
  81%  { transform: scaleX(.57); }
  91%  { transform: scaleX(.67); }
  100% { transform: scaleX(.38); }
}

/* ---------- directions: sticky stack ---------- */
.stack { padding-top: clamp(1.5rem, 4vw, 3rem); }
.stack__list { display: grid; }
.stack__panel {
  position: sticky;
  top: calc(var(--header-h) + 16px + var(--i) * 18px);
  height: clamp(460px, 74vh, 740px);
  height: clamp(460px, 74dvh, 740px);
  margin-bottom: 16vh;
}
.stack__panel:last-child { margin-bottom: 0; }
.stack__inner {
  position: relative; height: 100%;
  border-radius: var(--r-media); overflow: hidden;
  background: var(--surface);
  box-shadow: 0 -18px 40px -12px rgb(0 0 0 / .55);
  transform-origin: 50% 0;
  transition: transform .8s var(--ease-out);
}
.stack__inner::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, rgb(var(--bg-rgb) / .94) 0%, rgb(var(--bg-rgb) / .74) 34%, rgb(var(--bg-rgb) / 0) 66%),
    linear-gradient(90deg, rgb(var(--bg-rgb) / .35) 0%, rgb(var(--bg-rgb) / 0) 50%);
}
.stack__inner::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--bg); opacity: 0;
  transition: opacity .8s var(--ease-out);
}
.stack__panel.is-under .stack__inner { transform: scale(.965); }
.stack__panel.is-under .stack__inner::after { opacity: .5; }
.stack__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack__img--studio { object-position: 50% 45%; }
.stack__img--events { object-position: 50% 52%; }
.stack__img--rental { object-position: 50% 35%; }
.stack__content {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: clamp(1.25rem, 3.4vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  align-items: end; gap: 1.5rem 3rem;
}
.stack__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 6.25rem);
  line-height: .92; letter-spacing: -0.045em;
}
.stack__aside p { color: var(--text); margin-bottom: 1rem; }

@media (max-width: 1099px) {
  .stack__content { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .stack__aside { max-width: 34rem; }
}

/* ---------- studio: index list + preview ---------- */
.studio__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
}
.studio__title { grid-column: 1 / 8; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.svc-list { grid-column: 1 / 7; grid-row: 2; }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr);
  padding: 1.6rem 0 1.7rem;
  border-top: 1px solid var(--line);
  cursor: default;
  position: relative;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .6s var(--ease-out);
}
.svc.is-active::before { transform: scaleX(1); }
.svc__thumb { display: none; }
.svc__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.1; letter-spacing: -0.03em;
  transition: color .35s ease;
}
.svc__text { transition: transform .5s var(--ease-out); }
.svc__desc { margin-top: .6rem; color: var(--muted); max-width: 46ch; transition: color .35s ease; }
.svc-list:has(.svc.is-active) .svc:not(.is-active) .svc__name { color: var(--dim); }
/* The active row steps in as one block (name + copy), so the indent reads as a state, not a misalignment. */
.svc.is-active .svc__text { transform: translateX(12px); }

.svc-preview {
  grid-column: 8 / 13; grid-row: 1 / 3;
  position: sticky; top: calc(var(--header-h) + 2rem); align-self: start;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-media); overflow: hidden;
  background: var(--surface);
}
.svc-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out);
}
.svc-preview img.is-active { opacity: 1; transform: none; }
.svc-preview img[data-pos="vocal"] { object-position: 30% 50%; }
.svc-preview img[data-pos="amp"] { object-position: 45% 55%; }
.svc-preview img[data-pos="mix"] { object-position: 66% 50%; }
.svc-preview img[data-pos="vu"] { object-position: 40% 50%; }
.svc-preview img[data-pos="sheet"] { object-position: 50% 60%; }

/* ---------- statement ---------- */
.statement {
  position: relative; isolation: isolate;
  padding-block: clamp(6rem, 12vw, 11rem);
  min-height: min(92vh, 860px);
  display: grid; align-items: center;
}
.statement__media {
  position: absolute; z-index: -1;
  top: 0; bottom: 0; right: 0; width: 62%;
}
.statement__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.statement__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgb(var(--bg-rgb) / .75) 22%, rgb(var(--bg-rgb) / 0) 55%),
    linear-gradient(0deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 25%),
    linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 22%);
}
.statement__big {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 5.6vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.04em;
  max-width: 11ch;
}
.statement__big .w { display: inline-block; }
.statement__text {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 38ch;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.55;
  color: var(--text-2);
}

/* ---------- events ---------- */
.events__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}
.events__head { grid-column: 1 / 9; grid-row: 1; display: grid; gap: 1.5rem; }
.events__head .h2 { max-width: 18ch; }
.events__types {
  grid-column: 1 / 9; grid-row: 2; align-self: end;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.25rem, 2.5vw, 2.35rem);
  line-height: 1.28; letter-spacing: -0.02em;
  color: var(--muted);
  max-width: 30ch;
  text-wrap: balance;
}
.events__photo { border-radius: var(--r-media); overflow: hidden; background: var(--surface); }
.events__photo img { width: 100%; height: 100%; object-fit: cover; }
.events__photo--b { grid-column: 9 / 13; grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.events__photo--b img { object-position: 40% 45%; }
.events__photo--a { grid-column: 1 / 9; grid-row: 3; aspect-ratio: 16 / 10; margin-top: clamp(3rem, 6vw, 5rem); }
.events__photo--a img { object-position: 50% 66%; }
.events__included { grid-column: 9 / 13; grid-row: 3; margin-top: clamp(3rem, 6vw, 5rem); padding-top: .5rem; }
.checklist { margin-top: 1.5rem; display: grid; gap: 1rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.checklist .ic { color: var(--accent); margin-top: .2em; width: 1.15em; height: 1.15em; }

/* ---------- rental: patch-panel grid ---------- */
.rental__title { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.patch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, auto);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  overflow: hidden;
}
.patch > li { background: var(--bg); }
.patch__photo { grid-column: 1; grid-row: 1 / 3; position: relative; min-height: 420px; }
.patch__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.patch__cell {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.3; letter-spacing: -0.01em;
  hyphens: none; /* ignores the soft hyphen in «радиосистемы» where the cells are wide enough; mobile opts in below */
}
.patch__cell .ic { width: 34px; height: 34px; color: var(--muted); }
.patch__help {
  grid-column: 2 / 5;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: clamp(1.25rem, 2.4vw, 2.25rem);
  background: var(--surface-2) !important;
}
.patch__help p { margin-top: .6rem; color: var(--muted); max-width: 40ch; }
.patch__help .btn { flex: none; }

/* ---------- how it works: staircase ---------- */
.how__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
}
.how__grid .h2 { grid-column: 1 / 5; max-width: 9ch; }
.steps {
  grid-column: 5 / 13;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
}
.step { position: relative; padding-top: 1.75rem; }
.step:nth-child(2) { margin-top: clamp(2.5rem, 4.5vw, 4rem); }
.step:nth-child(3) { margin-top: clamp(5rem, 9vw, 8rem); }
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--line-strong);
}
.step:first-child::before { background: var(--accent); }
.step__verb {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.3rem, 1.75vw, 1.65rem);
  line-height: 1.15; letter-spacing: -0.03em;
  margin-bottom: .9rem;
  max-width: 12ch;
}
.step p { color: var(--muted); max-width: 32ch; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
}
.faq__title { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.faq__list { grid-column: 6 / 13; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 72px; padding: 1.25rem 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500; line-height: 1.35;
  transition: color .2s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-hi); }
.qa summary .ic { width: 22px; height: 22px; color: var(--accent); transition: transform .45s var(--ease-out); }
.qa[open] summary .ic { transform: rotate(45deg); }
.qa__a { padding: 0 3rem 1.6rem 0; color: var(--muted); max-width: 60ch; }
.qa[open] .qa__a { animation: fade-up .5s var(--ease-out) both; }

/* ---------- contact ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(6rem, 12vw, 10rem) clamp(5rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}
.contact__media { position: absolute; inset: 0; z-index: -1; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
/* Tablet and desktop: move the red-lit mic out from behind the digits, down and right of the buttons. */
@media (min-width: 768px) {
  .contact__media { inset: 14% -22% -14% 22%; }
  .contact__media img { object-position: 50% 0%; }
}
@media (min-width: 1100px) {
  .contact__media { inset: 0 -13% 0 13%; }
}
.contact__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / .94) 0%, rgb(var(--bg-rgb) / .8) 45%, rgb(var(--bg-rgb) / .45) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 30%),
    linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 22%);
}
.contact__lead {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted);
  max-width: 46ch;
  text-wrap: balance;
}
.contact__number {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.5rem, 7.4vw, 7.4rem);
  line-height: 1; letter-spacing: -0.045em;
  white-space: nowrap;
  transition: color .3s ease;
}
.contact__number:hover { color: var(--accent-hi); }
.contact__actions { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: .75rem; }
.copy-btn { display: none; }
.js .copy-btn { display: inline-flex; }
.copy-btn .ic--done { display: none; color: var(--accent); }
.copy-btn.is-done { border-color: var(--accent); }
.copy-btn.is-done .ic--copy { display: none; }
.copy-btn.is-done .ic--done { display: block; animation: pop .4s var(--ease-out); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.contact__more {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem;
  color: var(--muted); font-size: .98rem;
}
.soft-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  color: var(--muted); transition: color .2s ease;
}
.soft-link:hover { color: var(--text); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding-block: 2rem;
}
.logo--sm { font-size: .95rem; }
.footer__copy { color: var(--dim); font-size: .92rem; }
.footer__phone { color: var(--muted); font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.footer__phone:hover { color: var(--text); }

/* ---------- mobile call bar ---------- */
.callbar { display: none; }

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .patch[data-reveal] { transform: translateY(40px); }
.js .statement__big .w { opacity: .16; transition: opacity .7s ease; transition-delay: calc(var(--wi) * 120ms); }
.js .statement__big.is-in .w { opacity: 1; }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .hero__media::after {
    background:
      linear-gradient(0deg, rgb(var(--bg-rgb) / 1) 0%, rgb(var(--bg-rgb) / .86) 38%, rgb(var(--bg-rgb) / .2) 66%, rgb(var(--bg-rgb) / .35) 100%);
  }
  .studio__title, .svc-list { grid-column: 1 / 8; }
  .svc-preview { grid-column: 8 / 13; }
  .events__head, .events__types { grid-column: 1 / 8; }
  .events__photo--b { grid-column: 8 / 13; }
  .events__photo--a { grid-column: 1 / 8; }
  .events__included { grid-column: 8 / 13; }
  .how__grid .h2 { grid-column: 1 / -1; margin-bottom: 3rem; max-width: none; }
  .steps { grid-column: 1 / -1; }
  .patch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .patch__photo { grid-column: 1 / 4; grid-row: auto; min-height: 320px; }
  .patch__help { grid-column: 2 / 4; }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  :root { --section-y: 4.75rem; }
  body { font-size: 1rem; }

  .hero { padding-bottom: 2.25rem; }
  .hero__media img { object-position: 64% 50%; }
  .hero__title { font-size: clamp(2rem, 9.4vw, 2.6rem); }
  .hero__sub { margin-top: 1.1rem; }
  .hero__cta { margin-top: 1.75rem; display: grid; width: 100%; }
  .btn--xl { --h: 64px; width: 100%; padding: 0 1.1rem 0 .5rem; gap: .65rem; font-size: 1rem; }
  .btn--xl .btn__icon { width: 46px; height: 46px; }
  .btn--xl .btn__num { margin-left: auto; font-size: .86rem; padding-left: .7rem; }

  .stack__panel { height: clamp(420px, 66vh, 600px); height: clamp(420px, 66svh, 600px); margin-bottom: 18vh; margin-bottom: 18svh; top: calc(var(--header-h) + 10px + var(--i) * 12px); }
  .stack__content { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.25rem 1.25rem 1rem; }
  .stack__title { font-size: clamp(1.75rem, 9.2vw, 2.4rem); }
  .stack__aside p { font-size: .98rem; }
  .stack__inner::before {
    background: linear-gradient(0deg, rgb(var(--bg-rgb) / .95) 0%, rgb(var(--bg-rgb) / .7) 42%, rgb(var(--bg-rgb) / 0) 72%);
  }
  .stack__img--studio { object-position: 46% 40%; }
  .stack__img--events { object-position: 50% 55%; }
  .stack__img--rental { object-position: 40% 40%; }

  .studio__grid { display: block; }
  .svc-preview { display: none; }
  .svc { grid-template-columns: 92px minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; }
  .svc::before { display: none; }
  .svc__thumb { display: block; width: 92px; height: 112px; object-fit: cover; border-radius: var(--r-media); }
  .svc__thumb--amp { object-position: 45% 60%; }
  .svc__thumb--mix { object-position: 68% 50%; }
  .svc__name { font-size: 1.25rem; }
  .svc__desc { font-size: .95rem; margin-top: .4rem; }
  .svc.is-active .svc__text { transform: none; }
  .svc-list:has(.svc.is-active) .svc:not(.is-active) .svc__name { color: var(--text); }

  .statement { min-height: 0; padding-top: 0; padding-bottom: var(--section-y); align-items: start; }
  .statement__media { position: relative; width: auto; height: 62vw; max-height: 420px; margin-bottom: -18vw; }
  .statement__media img { object-position: 64% 40%; }
  .statement__media::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgb(var(--bg-rgb) / .3) 45%, rgb(var(--bg-rgb) / 0) 70%),
                linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 20%);
  }
  .statement__big { font-size: clamp(2.1rem, 10vw, 2.7rem); }

  .events__grid { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .events__head, .events__types { grid-column: 1 / -1; }
  .events__types { grid-row: 2; margin-top: 2rem; font-size: 1.2rem; }
  .events__photo--a { grid-column: 1 / 2; grid-row: 3; aspect-ratio: 3 / 4; margin-top: 2.5rem; }
  .events__photo--a img { object-position: 50% 62%; }
  .events__photo--b { grid-column: 2 / 3; grid-row: 3; aspect-ratio: 3 / 4; margin-top: 4.5rem; }
  .events__included { grid-column: 1 / -1; grid-row: 4; margin-top: 2.5rem; padding-top: 0; }

  .patch { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .patch__photo { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 11; }
    /* Unbounded is wide: two columns of 12-letter words need a fluid size; «радиосистемы» carries a soft hyphen. */
  .patch__cell { gap: 1.5rem; padding: 1.1rem .85rem 1.2rem; font-size: clamp(.8rem, 3.7vw, .95rem); hyphens: manual; }
  .patch__cell .ic { width: 28px; height: 28px; }
  .patch__cell--last { grid-column: 1 / -1; }
  .patch__help { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; }

  .how__grid .h2 { margin-bottom: 2.5rem; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  .step__verb { max-width: none; }
  .step:nth-child(2), .step:nth-child(3) { margin-top: 0; }
  .step { padding-top: 0; padding-left: 1.5rem; }
  .step::before { right: auto; top: 0; bottom: 0; width: 2px; height: auto; }

  .faq__grid { display: block; }
  .faq__title { position: static; margin-bottom: 2rem; }
  .qa__a { padding-right: 0; }

  .contact__media img { object-position: 58% 50%; }
  .contact__media::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgb(var(--bg-rgb) / .82) 40%, rgb(var(--bg-rgb) / .7) 100%);
  }
  /* The number stays one text node (so the placeholder can be replaced with sed). It breaks only at the space
     after «(900)»: 6.2em sits between «123-45-67» (5.63em) and «+7 (900) 123-» (7.10em). */
  .contact__number { display: block; max-width: 6.2em; font-size: clamp(2.6rem, 13.4vw, 3.6rem); line-height: 1.02; white-space: normal; }
  .contact__actions .btn { width: 100%; justify-content: center; }

  .footer__row { flex-direction: column; align-items: flex-start; padding-bottom: calc(2rem + 24px + env(safe-area-inset-bottom)); }

  .callbar {
    display: block;
    position: fixed; left: 12px; right: 12px; z-index: 40;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transition: transform .5s var(--ease-out), opacity .4s ease;
  }
  .js .callbar:not(.is-visible) { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
  /* Without JS the bar is always shown: keep the hero CTA and the footer clear of it. */
  html:not(.js) .hero { padding-bottom: calc(2.25rem + 76px); }
  html:not(.js) .footer__row { padding-bottom: calc(2rem + 84px + env(safe-area-inset-bottom)); }
  .callbar__btn {
    width: 100%; --h: 58px; justify-content: flex-start; padding: 0 1.4rem;
    box-shadow: 0 10px 30px -8px rgb(0 0 0 / .7);
  }
  .callbar__num { margin-left: auto; font-family: var(--font-display); font-weight: 500; font-size: .92rem; }
}

/* ---------- small phones (320-374): the call buttons must fit without clipping the number ---------- */
@media (max-width: 374px) {
  .btn--xl {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center;
    column-gap: .75rem; row-gap: .3rem; padding-right: 1rem;
  }
  .btn--xl .btn__icon { grid-row: 1 / 3; }
  .btn--xl .btn__label { align-self: end; font-size: .9rem; }
  .btn--xl .btn__num { align-self: start; margin-left: 0; padding-left: 0; border-left: 0; font-size: .9rem; }
  .callbar__btn { padding: 0 1rem; gap: .5rem; }
  .callbar__num { font-size: .8rem; }
}

/* ---------- desktop-only: stack sticky needs room; short screens get a flat list ---------- */
@media (max-height: 560px) {
  .stack__panel { position: relative; top: 0; height: 460px; margin-bottom: 1.5rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .meter__fill { animation: none; transform: scaleX(.62); }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .statement__big .w { opacity: 1; }
  .stack__panel.is-under .stack__inner { transform: none; }
}
