/* Медвайо-Урал — основной стиль
   Размеры ограничены контейнером и clamp(), поэтому на больших экранах
   сайт не раздувается, а на маленьких аккуратно сжимается. */

:root {
  --red: #e5200d;
  --red-hover: #c91b0a;
  --red-deep: #ae272c;
  --ink: #2e2d28;
  --text: #575549;
  --muted: #86847a;
  --sand: #c4c3b4;
  --line: #e2e1da;
  --line-strong: #bebfb9;
  --bg: #fff;
  --bg-soft: #f6f5f1;
  --bg-grey: #ededed;
  --dark: #0d0d0e;

  --container: 1320px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(56px, 7vw, 104px);
  --radius: 2px;

  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-h1: clamp(1.75rem, 1.2rem + 2.1vw, 2.875rem);
  --fs-h2: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);
  --fs-h3: clamp(1.1875rem, 1.08rem + 0.45vw, 1.4375rem);

  --shadow: 0 1px 2px rgb(46 45 40 / 6%), 0 8px 28px -12px rgb(46 45 40 / 18%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

/* На очень широких мониторах — чуть крупнее, но без раздувания */
@media (min-width: 1800px) { html { font-size: 106.25%; } :root { --container: 1400px; } }

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

body {
  margin: 0;
  font-family: Ubuntu, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 400; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }
em { font-style: italic; }
strong, b { font-weight: 500; color: var(--ink); }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: .2em;
  transition: color .2s, text-decoration-color .2s;
}
a:hover { color: var(--red); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--red); color: #fff;
}
.skip:focus { top: 12px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .72em 1.25em;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn::after {
  content: "";
  width: .45em; height: .45em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.btn:hover { background: var(--red-hover); color: #fff; }
.btn:hover::after { transform: translateX(3px) rotate(45deg); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.btn--lg { font-size: .875rem; padding: .95em 1.5em; }

/* ---------- Шапка ----------
   Всё выровнено по надписи «medvio» в логотипе: пункты меню и телефон
   стоят на её базовой линии (нижний край logo.svg), высота цифр телефона
   равна высоте строчных букв надписи (30% высоты логотипа).
   Ubuntu: подъём .932, спуск .189, заглавные .693 → базовая линия
   при line-height 1.6 на 1.1715em от верха строки, при line-height 1 — на .8715em. */

.site-header {
  --logo-w: clamp(132px, 11vw, 176px);
  --logo-h: calc(var(--logo-w) * 5080 / 12418);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
/* Размытие — на псевдоэлементе: backdrop-filter на самой шапке
   ломает position: fixed у мобильного меню */
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.nav-open .site-header::before { background: #fff; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(0 0 0 / 35%); }

.site-header__inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(14px, 1.6vw, 24px) clamp(12px, 1.3vw, 20px);
}

.brand { flex: none; display: block; line-height: 0; transition: opacity .2s; }
.brand:hover { opacity: .85; }
.brand img { width: var(--logo-w); }

.site-nav { flex: 1; display: flex; }
.site-nav__list {
  display: flex;
  gap: clamp(14px, 1.8vw, 30px);
  list-style: none;
  padding-top: calc(var(--logo-h) - 1.1715em);
  font-size: .9375rem;
  line-height: 1.6;
}
.site-nav__list + .site-nav__list {
  margin-left: clamp(18px, 2.4vw, 46px);
  padding-left: clamp(18px, 2.4vw, 46px);
  background: linear-gradient(var(--line-strong), var(--line-strong)) left calc(100% - .3em) / 1px 1.1em no-repeat;
}
.site-nav__list a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.3em;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav__list a:hover { color: var(--ink); }
.site-nav__list a:hover::after, .site-nav__list a[aria-current]::after { transform: scaleX(1); }
.site-nav__list a[aria-current] { color: var(--red); }
.site-nav__contacts { display: none; }

.header-contacts { flex: none; text-align: right; }
.header-contacts__phone {
  display: block;
  padding-top: calc(var(--logo-h) - .8715em);
  color: var(--red);
  font-size: calc(var(--logo-h) * .30 / .693);
  line-height: 1;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.header-contacts__phone:hover { color: var(--red-hover); }
.header-contacts__sub { display: inline-flex; gap: .5em; margin-top: .45em; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.header-contacts__sub a { color: var(--text); }

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

.header-call, .burger { display: none; }

@media (max-width: 1023px) {
  .site-header { --logo-w: clamp(118px, 30vw, 140px); }
  .site-nav__list + .site-nav__list { margin: 0; padding: 0; background: none; }
  .site-header__inner { align-items: center; gap: 8px; padding-block: 12px; }
  .header-contacts { display: none; }
  .brand { margin-right: auto; }
  .header-call, .burger {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: transparent; color: var(--red);
    cursor: pointer;
  }
  .header-call:hover { background: var(--bg-soft); }
  .burger__lines, .burger__lines::before, .burger__lines::after {
    display: block; width: 22px; height: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease), opacity .2s;
  }
  .burger__lines { position: relative; }
  .burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
  .burger__lines::before { top: -7px; }
  .burger__lines::after { top: 7px; }
  .burger[aria-expanded="true"] .burger__lines { background: transparent; }
  .burger[aria-expanded="true"] .burger__lines::before { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: var(--header-h, 72px) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: #fff;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .site-nav__list { flex-direction: column; gap: 0; padding: 0; font-size: 1.25rem; }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__list a { display: block; padding-block: 14px; color: var(--ink); }
  .site-nav__list a::after { display: none; }
  .site-nav__contacts { display: grid; gap: 6px; margin-top: auto; padding-top: 32px; }
  .site-nav__phone { color: var(--red); font-size: 1.625rem; text-decoration: none; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Хлебные крошки ---------- */

.crumbs {
  display: flex; flex-wrap: wrap; gap: .5em;
  padding-top: clamp(12px, 1.5vw, 20px);
  font-size: var(--fs-small);
  color: var(--muted);
}
.crumbs a { color: var(--text); }
.crumbs span[aria-hidden] { color: var(--sand); }

/* ---------- Общие секции ---------- */

.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--line); }
.section--grey { background: var(--bg-grey); }
.section--tight { padding-block: calc(var(--section) * .6); }

.section-title {
  margin-bottom: clamp(28px, 3.5vw, 48px);
  font-size: var(--fs-h2);
  font-weight: 300;
  letter-spacing: -.01em;
}
.section-title--red { color: var(--red); font-weight: 400; }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); font-weight: 300; }

.prose { max-width: 70ch; }
.prose h3, .h3 {
  margin: 0 0 .7em;
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--ink);
}
.prose * + h3 { margin-top: 2em; }

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.cols--wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.cols--center { align-items: center; }
@media (max-width: 860px) {
  .cols, .cols--wide-left { grid-template-columns: 1fr; }
}

/* Фирменная красная вертикаль слева */
.accent {
  padding-left: clamp(18px, 2.4vw, 36px);
  border-left: 6px solid var(--red);
}

/* Список с красными маркерами */
.list { list-style: none; display: grid; gap: .65em; }
.list li { position: relative; padding-left: 1.5em; }
.list li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: .5em; height: .5em;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* Цитата: красная плашка со срезанным углом снизу, как в исходном дизайне */
.quote {
  position: relative;
  margin: 0;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) clamp(48px, 5vw, 68px);
  background: var(--red);
  color: #fff;
  font-weight: 300;
  line-height: 1.6;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 64px 100%, 0 calc(100% - 28px));
}
.quote p { margin-bottom: 1em; }
.quote footer { font-size: var(--fs-small); font-style: normal; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.quote footer span { display: block; text-transform: none; letter-spacing: 0; opacity: .85; }

/* Рисунок с подписью */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { margin-top: 12px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.figure--frame img { box-shadow: var(--shadow); }

/* ---------- Главная: первый экран ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 112px) clamp(48px, 7vw, 104px);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.hero h1 {
  max-width: 21em;
  color: var(--red);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -.012em;
}
.hero__lead { max-width: 40em; margin-top: clamp(20px, 2.4vw, 32px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
.hero__mark { width: clamp(180px, 22vw, 320px); }
.hero__mark svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { display: none; }
}

/* ---------- Карточки продуктов ---------- */

.products { background: var(--bg-soft); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 2.6vw, 40px);
  background: #fff;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product-card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.product-card:hover { color: var(--text); box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card:hover::before { transform: scaleX(1); }
.product-card__logo { display: flex; align-items: center; height: clamp(80px, 8vw, 112px); }
.product-card__logo .logo-svg { height: 100%; width: auto; max-width: 78%; overflow: visible; }

/* Анимация логотипов при наведении на карточку */
.m-stripe { transform-box: fill-box; transform-origin: 50% 100%; }
.product-card:is(:hover, :focus-visible) .m-stripe { animation: m-sweep .95s var(--ease) calc(var(--i) * 90ms) both; }
@keyframes m-sweep {
  0% { transform: none; }
  38% { transform: translateY(-16%) scaleY(1.05); }
  72% { transform: translateY(3%); }
  100% { transform: none; }
}
.s-dot { transform-box: fill-box; transform-origin: center; }
.product-card:is(:hover, :focus-visible) .s-dot { animation: s-wave 1.5s ease-in-out calc(var(--i) * 95ms) infinite; }
@keyframes s-wave {
  0%, 55%, 100% { transform: none; }
  22% { transform: scale(1.38); }
}
.e-swirl { transform-box: view-box; transform-origin: 12% 50%; transition: transform 1.1s var(--ease); }
.product-card:is(:hover, :focus-visible) .e-swirl { transform: rotate(180deg); }
.product-card__desc { flex: 1; line-height: 1.55; }
.product-card .btn { align-self: flex-start; }
@media (max-width: 960px) {
  .products__grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; column-gap: 32px; align-items: center; }
  .product-card__logo { grid-row: span 2; }
}
@media (max-width: 560px) {
  .product-card { display: flex; }
  .product-card__logo { height: 84px; }
}

/* ---------- О компании: цифры ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.stat { padding: 28px 24px 4px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__value { display: block; color: var(--red); font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
.stat__label { display: block; margin-top: 10px; font-size: .9375rem; line-height: 1.45; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

.about-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .about-teaser { grid-template-columns: 1fr; } }

.signature {
  display: grid; gap: 4px;
  padding: 28px 32px;
  background: var(--bg-soft);
  border-left: 3px solid var(--red);
  font-style: normal;
}
.signature__name { color: var(--ink); font-size: 1.125rem; font-weight: 500; }

/* ---------- Страницы продуктов ---------- */

.page-head { padding-block: clamp(20px, 3vw, 40px) clamp(28px, 4vw, 56px); }
.page-head h1 { font-size: var(--fs-h1); font-weight: 300; letter-spacing: -.012em; }
.page-head h1 + * { margin-top: 20px; }

.product-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(16px, 2vw, 24px);
  background: var(--dark);
  color: #fff;
}
.product-hero::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; z-index: -1;
  width: clamp(56px, 22%, 320px);
  background: url("../../images/mimaestr1.jpg") left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent);
  mask-image: linear-gradient(90deg, #000 40%, transparent);
}
.product-hero::after {
  content: "";
  position: absolute; right: -10%; top: -40%; z-index: -1;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgb(229 32 13 / 22%), transparent 65%);
}
.product-hero__inner {
  display: grid;
  justify-items: center;
  gap: clamp(20px, 2.4vw, 32px);
  padding-block: clamp(48px, 6vw, 96px);
  text-align: center;
}
.product-hero__logo { width: auto; height: clamp(72px, 9vw, 150px); }
.product-hero p { max-width: 32em; font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; color: rgb(255 255 255 / 86%); }

/* Серая полоса-врезка с логотипом технологии (PETEdge, Assistant, MIMcloud) */
.feature {
  padding-block: clamp(40px, 5vw, 72px);
  background: var(--bg-grey);
}
.feature__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 320px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.feature__logo { order: 2; display: grid; gap: 28px; justify-items: end; }
.feature__logo img { width: 100%; max-width: 300px; }
.feature h2 { margin-bottom: .6em; font-size: var(--fs-h2); font-weight: 500; }
.feature .prose { max-width: 76ch; }
@media (max-width: 860px) {
  .feature__inner { grid-template-columns: 1fr; }
  .feature__logo { order: 0; justify-items: start; }
  .feature__logo img { max-width: 200px; }
  .feature__logo .figure { display: none; }
}

.media-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: center; }
@media (max-width: 640px) { .media-row { grid-template-columns: 1fr; } }

/* Ряд картинок, ширина пропорциональна их соотношению сторон */
.strip { display: flex; gap: clamp(8px, 1vw, 16px); }
.strip img { min-width: 0; width: 100%; height: auto; }
@media (max-width: 640px) { .strip { flex-direction: column; } }

/* Красная плашка со скошенным краем (MIM Encore) */
.slant {
  display: inline-block;
  padding: clamp(18px, 2vw, 28px) clamp(64px, 7vw, 120px) clamp(18px, 2vw, 28px) clamp(20px, 2.4vw, 36px);
  background: var(--red);
  color: #fff;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  font-weight: 300;
  line-height: 1.4;
  clip-path: polygon(0 0, 100% 0, calc(100% - clamp(40px, 5vw, 80px)) 100%, 0 100%);
}

/* Шаги клинического процесса */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 120px 1fr;
  align-content: start;
  gap: 16px;
  padding: clamp(24px, 2.4vw, 36px) clamp(20px, 2vw, 28px);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute; z-index: 1;
  right: calc(clamp(12px, 1.5vw, 20px) / -2 - 9px); top: 50%;
  width: 18px; height: 18px;
  background: #fff;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  transform: translateY(-50%) rotate(45deg);
}
.step__num { color: var(--sand); font-size: 3.25rem; font-weight: 300; line-height: 1; }
.step h3 { font-size: 1.125rem; font-weight: 500; }
.step img { justify-self: center; width: auto; height: 100%; max-height: 120px; object-fit: contain; }
.step ul { display: grid; gap: .8em; list-style: none; font-size: .9375rem; line-height: 1.5; text-align: left; }
.step li { padding-top: .8em; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Раздвоенная полоса: серая слева, белая справа */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > * { padding: var(--section) var(--gutter); }
.split__a { background: #e8e8e8; }
.split__a > *, .split__b > * { max-width: calc(var(--container) / 2 - 24px); }
.split__a > * { margin-left: auto; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split > * { padding-block: 48px; }
  .split__a > *, .split__b > * { max-width: none; margin: 0; }
}
.modules { display: grid; gap: 22px; margin-top: 28px; }
.modules h3 { margin-bottom: 6px; font-size: 1.0625rem; font-weight: 500; color: var(--red); }
.modules .list { font-size: .9375rem; gap: .35em; }

/* Отзыв на фоне ПЭТ-изображения */
.testimonial {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section);
  background: #1b1b2b url("../../images/rpe42.jpg") center / cover no-repeat;
}
.testimonial__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.testimonial .quote { font-style: italic; }
.testimonial .quote footer { font-style: normal; }
@media (max-width: 860px) { .testimonial__inner { grid-template-columns: 1fr; } }

/* Видео */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--dark); border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 48px) clamp(20px, 3vw, 40px); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

.subhead { margin-bottom: 20px; color: var(--red); font-size: var(--fs-h3); font-weight: 500; }

/* Xoft: раздел с иллюстрацией сбоку */
.aside-row { display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.aside-row__media { display: grid; gap: 24px; position: sticky; top: 120px; }
@media (max-width: 760px) {
  .aside-row { grid-template-columns: 1fr; }
  .aside-row__media { position: static; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
.dash-list { list-style: none; display: grid; gap: .5em; margin-bottom: 1.4em; }
.dash-list li { position: relative; padding-left: 1.4em; }
.dash-list li::before { content: "—"; position: absolute; left: 0; color: var(--red); }

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

.contact-cards { display: grid; align-content: start; gap: 28px; margin: 0; }
.contact-card dt { margin-bottom: 4px; color: var(--muted); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-card dd { margin: 0; color: var(--ink); font-size: var(--fs-lead); line-height: 1.45; }
.contact-card dd a { text-decoration: none; }
.contact-card dd a:hover { color: var(--red); }
.contact-card .big { color: var(--red); font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); }

.map {
  position: relative;
  min-height: 420px;
  height: 100%;
  background: var(--bg-grey);
  border-radius: var(--radius);
  overflow: hidden;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.form { display: grid; gap: 20px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { color: var(--ink); font-size: .9375rem; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(229 32 13 / 14%); }
.form__note { font-size: var(--fs-small); color: var(--muted); }
.form__status { font-size: .9375rem; color: var(--ink); }
.form__status:empty { display: none; }

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

.site-footer {
  padding-block: clamp(48px, 6vw, 88px) 32px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 96px);
}
.site-footer__lead p { max-width: 36em; }
.site-footer__phone {
  display: inline-block;
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-decoration: none;
}
.site-footer__phone:hover { color: var(--red); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .5em .8em; }
.site-footer__side { display: grid; align-content: start; justify-items: end; gap: 20px; text-align: right; }
.site-footer__logo { width: 132px; }
.site-footer__nav {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.site-footer__nav a { text-decoration: none; }
.site-footer__copy { grid-column: 1 / -1; margin-top: -24px; color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 861px) {
  .site-footer__nav { grid-column: 1; }
  .site-footer__copy { grid-column: 2; grid-row: 2; margin-top: 0; padding-top: 28px; border-top: 1px solid var(--line); text-align: right; }
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__side { justify-items: start; text-align: left; }
  .site-footer__copy { margin-top: -16px; }
}

/* ---------- Появление при прокрутке ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer__nav, .burger, .header-call { display: none; }
  .section { padding-block: 24px; }
}

.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
@media (max-width: 560px) {
  .stats--3 { grid-template-columns: 1fr; }
  .stats--3 .stat { padding: 20px 0 0; border-left: 0; }
  .stats--3 .stat + .stat { margin-top: 20px; padding-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .site-footer__links { flex-direction: column; gap: 4px; }
  .site-footer__links span[aria-hidden] { display: none; }
}

.section--flush { padding-top: 0; }
.form__title { margin-bottom: 0; }
.signature__gap { margin-top: 12px; }
.about-side { display: grid; gap: 32px; position: sticky; top: 120px; }
.stats--stack { grid-template-columns: 1fr; border-top: 0; }
.stats--stack .stat { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
.stats--stack .stat + .stat { padding-left: 0; border-left: 0; }
@media (max-width: 860px) { .about-side { position: static; } }
.contacts-grid { align-items: stretch; }
#write .form { margin-inline: auto; max-width: 760px; }

/* ---------- Детали страниц ---------- */

.also-illustration { width: 100%; max-width: 420px; margin-top: 28px; }
.prose > .figure { margin-top: 28px; }
.prose > .quote { margin-top: 36px; }

.encore-intro { margin-top: clamp(24px, 3vw, 40px); font-size: 1.125rem; }
.encore-list-title { margin-bottom: 1.2em; font-weight: 400; font-size: var(--fs-h3); }
.steps { margin: 0; padding: 0; list-style: none; }
.split__img { margin-top: 32px; width: 100%; }
.split__img--top { margin: 0 0 32px; max-width: 420px; }

.testimonial img { width: 100%; max-width: 560px; justify-self: center; filter: drop-shadow(0 20px 40px rgb(0 0 0 / 35%)); }

.symphony-hero { padding-top: clamp(28px, 4vw, 56px); }
.symphony-hero__logo { width: clamp(180px, 18vw, 260px); margin-bottom: clamp(20px, 2.4vw, 32px); }
.symphony-hero__title { margin-bottom: 24px; font-size: clamp(1.375rem, 1.05rem + 1.1vw, 2rem); font-weight: 300; line-height: 1.35; }
.symphony-hero img:not(.symphony-hero__logo) { width: 100%; max-width: 560px; justify-self: center; }
.videos-gap { margin-top: clamp(32px, 4vw, 56px); }
.symphony-circle { width: 100%; max-width: 420px; justify-self: center; }

.xoft-hero { padding-top: clamp(28px, 4vw, 56px); }
.xoft-hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.xoft-hero__text { display: grid; gap: clamp(24px, 3vw, 40px); }
.xoft-hero h1 { color: var(--red); font-size: var(--fs-h1); line-height: 1.3; }
.xoft-hero__logo { width: clamp(220px, 26vw, 400px); }
.xoft-hero__device { width: 100%; max-width: 420px; justify-self: center; }
@media (max-width: 760px) { .xoft-hero__grid { grid-template-columns: 1fr; } }

.specs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.specs img:first-child { flex: 1 1 320px; max-width: 520px; }
.specs img:last-child { flex: 0 1 220px; max-width: 260px; }

/* Видео: обложка, плеер YouTube загружается по клику */
button.video {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 24px;
  border: 0;
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(120% 90% at 85% 10%, rgb(229 32 13 / 35%), transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgb(196 195 180 / 18%), transparent 60%),
    var(--dark);
}
.video__play {
  display: grid; place-items: center;
  width: clamp(56px, 6vw, 76px); aspect-ratio: 1;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgb(229 32 13 / 45%);
  transition: transform .3s var(--ease), box-shadow .4s;
}
.video__play::before {
  content: "";
  margin-left: 12%;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
button.video:hover .video__play { transform: scale(1.06); box-shadow: 0 0 0 12px rgb(229 32 13 / 18%); }
.video__title { font-size: var(--fs-h3); font-weight: 300; line-height: 1.3; }
.video__note { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / 55%); }

/* Шаги: пункты не растягиваются, заголовки выровнены */
.step ul { align-content: start; }
.step h3 { min-height: 2.6em; display: grid; place-items: center; }
