/* Опора · шаблон сайта центра ментального здоровья.
   Цвета и размеры лежат в :root, тексты в index.html, телефоны в app.js (CONFIG).
   Идея: настоящая комната центра занимает весь первый экран, пять цветов её стен, диванов и плакатов
   становятся и меню, и цветом глав страницы. */

@font-face { font-family: 'Geologica'; font-weight: 100 900; font-display: swap; src: url(fonts/geologica-vf-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geologica'; font-weight: 100 900; font-display: swap; src: url(fonts/geologica-vf-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Geologica'; font-weight: 100 900; font-display: swap; src: url(fonts/geologica-vf-latin.woff2) format('woff2'); 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: 'Geologica'; font-weight: 100 900; font-display: swap; src: url(fonts/geologica-vf-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* пять цветов комнаты: стена, плакат, пол, диван, тёмный диван */
  --paper: #eae9e6;
  --frame-bg: #f6f5f3;
  --teal: #bfe0e4;
  --wood: #d6c8ae;
  --steel: #46659e;
  --deep: #16274e;
  --ink: #14213d;
  --muted: #465370;
  --on-dark: #ffffff;
  --on-dark-soft: #e6ecf8;
  --accent: #5ec2d9;

  --font: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --t-display: clamp(54px, 7.3vw, 112px);
  --t-h2: clamp(34px, 4vw, 60px);
  --t-h3: clamp(24px, 2vw, 28px);
  --t-lead: clamp(19px, 1.5vw, 22px);
  --t-body: 17px;
  --t-small: 15px;

  --r: 12px;
  --frame: 10px;
  --m: clamp(20px, 3.4vw, 52px);
  --gap: 24px;
  --pad-y: clamp(88px, 13vh, 150px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 340 var(--t-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: var(--r); transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- заголовки и кнопки ---------- */
h2 { font-weight: 300; font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.018em; text-wrap: balance; }
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--r); background: var(--accent); color: var(--ink); font: 420 var(--t-body)/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .28s var(--ease), background-color .28s; }
.btn:hover { transform: translateY(-3px); background: #78d0e4; }
.btn:active { transform: scale(.98); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #22345c; }
.link { display: inline-block; color: inherit; font-size: var(--t-body); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: transform .25s var(--ease); }
.link:hover { transform: translateX(4px); }

/* ---------- шапка: меняет цвет вместе с главой под ней ---------- */
html { --hdr: var(--ink); }
html[data-ink='light'] { --hdr: #fff; }
.top { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; padding: calc(var(--frame) + 22px) calc(var(--frame) + 28px); color: var(--hdr); transition: color .3s var(--ease); pointer-events: none; }
.top a { pointer-events: auto; text-decoration: none; }
.mark { font-weight: 420; font-size: var(--t-lead); letter-spacing: .005em; border-radius: var(--r); transition: background-color .3s, color .3s, padding .3s, margin .3s; }
html[data-chip] .mark { padding: 8px 14px; margin: -8px 0 -8px -14px; background: var(--paper); color: var(--ink); }
.top__tel { padding: 11px 18px; border-radius: var(--r); background: var(--accent); color: var(--ink); font-size: var(--t-small); font-weight: 440; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, transform .25s var(--ease); }
.past-hero .top__tel { opacity: 1; visibility: visible; }
.top__tel:hover { transform: translateY(-2px); }

/* ---------- первый экран ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 10fr) minmax(0, 2fr); gap: var(--frame); height: 100svh; min-height: 620px; padding: var(--frame); background: var(--frame-bg); }
.hero__panel { position: relative; overflow: hidden; border-radius: var(--r); isolation: isolate; background: #cfd0d3; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; transform-origin: 50% 35%; will-change: transform; }
.js .hero__img { animation: heroIn 2.6s var(--ease) both; }
.hero__fog { position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(to top, rgba(234, 233, 230, .94), rgba(234, 233, 230, 0)); /* taste-skill-ignore */ }
.hero__h1 { position: absolute; left: 0; right: 0; top: 7.5%; z-index: 2; padding: 0 20px; text-align: center; font-weight: 300; font-size: var(--t-display); line-height: 1.02; letter-spacing: -.025em; color: var(--ink); }
.hero__lead { position: absolute; left: calc(var(--frame) + 28px); bottom: calc(var(--frame) + 36px); z-index: 3; width: min(26vw, 380px); font-size: var(--t-lead); line-height: 1.4; font-weight: 380; color: var(--ink); }
.hero__btn { position: absolute; left: 50%; bottom: 36px; z-index: 2; translate: -50% 0; }
.hero__btn:hover { transform: translateY(-3px); }

.swatches { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); }
.swatches a { flex: 1 1 0; display: block; padding: 20px; background: var(--c); color: var(--ink); font-size: var(--t-body); line-height: 1.3; font-weight: 400; text-decoration: none; transition: flex-grow .5s var(--ease), padding-left .35s var(--ease); }
.swatches a[data-on='light'] { color: #fff; }
.swatches a:hover, .swatches a:focus-visible { flex-grow: 1.4; padding-left: 30px; }
.swatches a:focus-visible { outline-offset: -4px; }

@keyframes heroIn { from { transform: scale(1.1); } to { transform: scale(1); } }

/* ---------- сцена: фразы шагают, рядом всплывают кадры ---------- */
.scene { position: relative; height: 420vh; background: #0d1731; }
.scene__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; color: #fff; }
.scene__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.08); will-change: transform; }
.scene__scrim { position: absolute; inset: 0 0 auto 0; height: 64%; background: linear-gradient(to bottom, rgba(8, 9, 12, .94), rgba(8, 9, 12, .76) 48%, rgba(8, 9, 12, 0)); /* taste-skill-ignore */ }
.scene__stack { position: absolute; top: clamp(92px, 13vh, 130px); left: 50%; translate: -50% 0; width: min(92vw, 560px); display: grid; gap: 10px; text-align: center; }
.st { font-size: var(--t-lead); line-height: 1.3; font-weight: 340; color: var(--on-dark-soft); transition: color .5s var(--ease), transform .6s var(--ease), font-weight .4s; }
h2.st { font-size: var(--t-lead); letter-spacing: 0; text-wrap: initial; }
.st.is-on { color: #fff; font-weight: 520; transform: scale(1.06); }
.pair img { position: absolute; width: var(--w, clamp(130px, 14vw, 210px)); height: auto; opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.pair.is-on img { opacity: 1; transform: none; }
.pair .pl { right: calc(50% + clamp(120px, 15vw, 240px)); top: var(--yl); }
.pair .pr { left: calc(50% + clamp(120px, 15vw, 240px)); top: var(--yr); }
.pair:nth-child(1) { --yl: 44%; --yr: 56%; }
.pair:nth-child(2) { --yl: 58%; --yr: 38%; }
.pair:nth-child(3) { --yl: 40%; --yr: 62%; }
.pair:nth-child(4) { --yl: 54%; --yr: 42%; }
.pair:nth-child(5) { --yl: 42%; --yr: 54%; }
.pair:nth-child(6) { --yl: 60%; --yr: 40%; }
.pair:nth-child(odd) .pr { --w: clamp(150px, 16vw, 250px); }
.pair:nth-child(even) .pl { --w: clamp(150px, 17vw, 260px); }
.js .scene__img { transition: none; }

/* ---------- минута тишины ---------- */
.calm { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; min-height: 100svh; padding: var(--pad-y) var(--m); background: var(--deep); color: #fff; }
.calm__text { grid-column: 1 / 6; display: grid; gap: 28px; justify-items: start; }
.calm__text > p { font-size: var(--t-lead); line-height: 1.5; color: var(--on-dark-soft); max-width: 34ch; }
.calm__note { font-size: var(--t-body) !important; max-width: 38ch !important; }
.calm__stage { grid-column: 7 / 13; display: grid; justify-items: center; gap: 22px; }
.orb { position: relative; display: grid; place-items: center; width: min(44vw, 560px); aspect-ratio: 1; }
.orb__ring, .orb__core { position: absolute; border-radius: 50%; will-change: transform; }
.orb__ring { inset: 0; background: #223a72; transform: scale(.66); }
.orb__core { inset: 12%; background: #1b7f97; transform: scale(.52); }
.orb__word { position: relative; z-index: 2; font-size: var(--t-h3); font-weight: 360; color: #fff; }
.calm__count { min-height: 1.6em; font-size: var(--t-body); color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.orb.is-in .orb__ring { transform: scale(1); transition: transform 4s cubic-bezier(.45, 0, .35, 1); }
.orb.is-in .orb__core { transform: scale(.9); transition: transform 4s cubic-bezier(.45, 0, .35, 1); }
.orb.is-out .orb__ring { transform: scale(.66); transition: transform 6s cubic-bezier(.45, 0, .35, 1); }
.orb.is-out .orb__core { transform: scale(.52); transition: transform 6s cubic-bezier(.45, 0, .35, 1); }

/* ---------- как проходит приём ---------- */
.how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto clamp(170px, 18vw, 262px) auto clamp(110px, 13vw, 180px) auto; column-gap: var(--gap); align-items: start; padding: var(--pad-y) var(--m); background: var(--paper); }
.how__h { grid-column: 6 / 13; grid-row: 1; margin-bottom: clamp(36px, 5vw, 64px); }
.ph { overflow: hidden; background: #d9d6cf; }
.ph img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.ph--1 { grid-column: 1 / 5; grid-row: 2 / span 2; aspect-ratio: 3 / 4; }
.ph--2 { grid-column: 7 / 10; grid-row: 3; aspect-ratio: 1; }
.ph--3 { grid-column: 8 / 13; grid-row: 5; aspect-ratio: 16 / 10; }
.tx { max-width: 38ch; }
.tx p { font-size: var(--t-body); line-height: 1.6; }
.tx strong { font-weight: 560; }
.tx--1 { grid-column: 6 / 9; grid-row: 2; }
.tx--2 { grid-column: 10 / 13; grid-row: 3; }
.tx--3 { grid-column: 3 / 8; grid-row: 5; justify-self: end; }

/* ---------- специалисты ---------- */
.team { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding: var(--pad-y) var(--m); background: var(--teal); }
.team__h { grid-column: 1 / 5; }
.team__names { grid-column: 5 / 9; display: grid; gap: 4px; align-content: start; padding-top: .5em; }
.kind { margin-top: 28px; font-size: var(--t-lead); line-height: 1.5; color: var(--muted); }
.kind:first-child { margin-top: 0; }
.who { display: block; width: 100%; padding: 2px 0; border: 0; background: none; text-align: left; font-size: var(--t-lead); line-height: 1.5; font-weight: 340; color: var(--ink); cursor: pointer; transition: transform .35s var(--ease), font-weight .3s; }
.who:hover, .who:focus-visible, .who.is-on { transform: translateX(10px); font-weight: 520; }
.team__pic { grid-column: 9 / 13; position: sticky; top: 96px; align-self: start; }
.team__pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #aeb2b8; transition: opacity .35s var(--ease); }
.team__pic.is-swap img { opacity: 0; }
.team__pic figcaption { margin-top: 14px; font-size: var(--t-small); line-height: 1.4; color: var(--muted); }

/* ---------- цены ---------- */
.price { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding: var(--pad-y) var(--m); background: var(--wood); }
.price__h { grid-column: 1 / 5; }
.price__body { grid-column: 5 / 13; padding-top: .5em; }
.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { padding: 0 0 30px; vertical-align: top; text-align: left; font-size: var(--t-lead); line-height: 1.4; font-weight: 340; }
.rates th small { display: block; margin-top: 6px; max-width: 52ch; font-size: var(--t-body); line-height: 1.5; font-weight: 340; color: var(--muted); }
.rates td { padding-left: 28px; text-align: right; white-space: nowrap; font-weight: 480; font-variant-numeric: tabular-nums lining-nums; }
.price__note { max-width: 56ch; font-size: var(--t-body); color: var(--muted); }

/* ---------- вопросы ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: var(--pad-y) var(--m) 0; background: var(--steel); color: #fff; }
.faq__col { grid-column: 1 / 6; padding-bottom: var(--pad-y); }
.faq__col h2 { margin-bottom: 28px; }
.faq__facts { display: grid; gap: 6px; margin-bottom: 44px; font-size: var(--t-body); line-height: 1.5; color: var(--on-dark-soft); }
.faq__list { display: grid; gap: 28px; margin-bottom: 44px; }
.faq__list summary { position: relative; padding-right: 36px; font-size: var(--t-lead); line-height: 1.35; font-weight: 400; cursor: pointer; list-style: none; transition: transform .3s var(--ease); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { transform: translateX(6px); }
.faq__list summary::after { content: ''; position: absolute; right: 8px; top: .45em; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; transition: rotate .35s var(--ease), top .35s var(--ease); }
.faq__list details[open] summary::after { rotate: 225deg; top: .62em; }
.faq__list details p { margin-top: 12px; max-width: 46ch; font-size: var(--t-body); line-height: 1.6; color: var(--on-dark-soft); }
.faq__act { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.faq__pics { grid-column: 7 / 13; position: relative; align-self: stretch; margin-top: calc(-1 * var(--pad-y)); margin-bottom: 80px; }
.faq__tall { height: 100%; min-height: 560px; overflow: hidden; }
.faq__tall img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; will-change: transform; }
.faq__sq { position: absolute; left: clamp(-90px, -6vw, -40px); bottom: -40px; width: 34%; aspect-ratio: 1; overflow: hidden; background: var(--steel); }
.faq__sq img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- финальный кадр: фотография слева, текст рядом на ровном поле ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 640px; height: 90svh; background: var(--paper); color: var(--ink); }
.cta__img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 60%; }
.cta__text { align-self: end; display: grid; gap: 22px; justify-items: start; padding: 0 var(--m) 12svh clamp(28px, 4.4vw, 72px); }
.cta__text h2 { font-size: var(--t-h2); }
.cta__text p { max-width: 36ch; font-size: var(--t-body); line-height: 1.6; font-weight: 380; }

/* ---------- контакты: визитка на фотографии ---------- */
.visit { position: relative; height: 100svh; min-height: 680px; overflow: hidden; background: var(--deep); }
.visit__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.card { position: absolute; top: 92px; right: clamp(20px, 4.2vw, 60px); width: 380px; padding: 32px; border-radius: var(--r); background: var(--paper); color: var(--ink); overflow: hidden; }
.card h2 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -.01em; }
.card__addr { margin-top: 16px; font-size: var(--t-body); line-height: 1.5; }
.card__rows { margin-top: 20px; display: grid; gap: 6px; font-size: var(--t-small); }
.card__rows div { display: flex; justify-content: space-between; gap: 16px; }
.card__rows dd { text-align: right; font-variant-numeric: tabular-nums; }
.card__rows dt { color: var(--muted); }
.card__tel { margin-top: 20px; font-size: var(--t-lead); font-weight: 420; }
.card__tel a { text-decoration: none; }
.card__tel a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card__btn { display: flex; margin: 26px -32px -32px; min-height: 52px; border-radius: 0; }

/* ---------- подвал: контакт как заголовок ---------- */
.foot { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; min-height: 90svh; padding: 40px var(--m) 32px; background: var(--deep); color: #fff; }
.foot__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); font-size: var(--t-small); line-height: 1.5; color: var(--on-dark-soft); }
.foot__top p { grid-column: span 3; }
.foot__up { grid-column: 12; justify-self: end; color: #fff; text-underline-offset: 5px; }
.foot__big { display: block; width: fit-content; font-size: clamp(30px, 10.4vw, 190px); line-height: 1; font-weight: 250; letter-spacing: -.03em; white-space: nowrap; text-decoration: none; font-variant-numeric: lining-nums; transition: transform .5s var(--ease); }
.foot__big:hover { transform: translateX(10px); }
.foot__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); font-size: var(--t-small); color: var(--on-dark-soft); }
.foot__meta p:nth-child(2) { text-align: center; }
.foot__meta p:last-child { text-align: right; }
.foot__meta a { margin-right: 18px; }

/* ---------- плавный вход блоков ---------- */
.js [data-r] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-r].in { opacity: 1; transform: none; }

/* ---------- планшет ---------- */
@media (max-width: 1000px) {
  .cta { display: block; height: auto; min-height: 0; background: var(--deep); color: #fff; }
  .cta__img { height: 62svh; }
  .cta__text { padding: 44px var(--m) 64px; }
  .cta__text p { font-weight: 340; color: var(--on-dark-soft); }
  .cta__text .btn { background: var(--accent); color: var(--ink); }
}
@media (max-width: 1100px) {
  .team__h, .price__h { grid-column: 1 / -1; margin-bottom: 36px; }
  .team__names { grid-column: 1 / 7; }
  .team__pic { grid-column: 8 / 13; }
  .price__body { grid-column: 1 / -1; }
  .how__h { grid-column: 4 / 13; }
  .tx--1 { grid-column: 5 / 9; }
  .tx--3 { grid-column: 2 / 8; }
  .calm__text { grid-column: 1 / 7; }
  .calm__stage { grid-column: 7 / 13; }
  .faq__col { grid-column: 1 / 7; }
  .faq__pics { grid-column: 8 / 13; }
  .foot__top p { grid-column: span 4; }
}

/* ---------- планшет вертикально и телефон ---------- */
@media (max-width: 900px) {
  :root { --frame: 8px; --gap: 16px; --pad-y: 72px; }
  .top { padding: calc(var(--frame) + 16px) calc(var(--frame) + 18px); }
  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .hero__panel { order: 1; height: 64svh; min-height: 430px; }
  .hero__h1 { top: 11%; font-size: 11.4vw; }
  .hero__fog { height: 30%; }
  .hero__btn { bottom: 24px; }
  .swatches { order: 2; margin-top: var(--frame); }
  .swatches a { flex: none; height: 52px; padding: 0 20px; display: flex; align-items: center; font-size: var(--t-small); }
  .swatches a:hover, .swatches a:focus-visible { padding-left: 28px; }
  .hero__lead { position: static; order: 3; width: auto; max-width: 36ch; padding: 26px 8px 4px; }

  .scene { height: 360vh; }
  .scene__scrim { inset: 0; height: auto; background: linear-gradient(to bottom, rgba(8, 9, 12, .72), rgba(8, 9, 12, .18) 22%, rgba(8, 9, 12, .22) 42%, rgba(8, 9, 12, .9) 100%); /* taste-skill-ignore */ }
  .scene__stack { top: auto; bottom: 8svh; left: 20px; right: 20px; translate: 0 0; width: auto; text-align: left; }
  .st { font-size: var(--t-body); }
  .st.is-on { transform: none; }
  .pair .pl { display: none; }
  .pair .pr { left: auto; right: 16px; top: 84px; width: min(44vw, 300px); }

  .calm { grid-template-columns: 1fr; min-height: 0; gap: 48px; }
  .calm__text, .calm__stage { grid-column: 1; }
  .orb { width: min(78vw, 400px); }

  .how { display: block; }
  .how__h { margin-bottom: 36px; }
  .ph--1 { width: min(100%, 560px); }
  .ph--2 { width: min(70%, 400px); margin: 56px 0 0 auto; }
  .ph--3 { width: min(78%, 520px); margin-top: 56px; }
  .tx { margin-top: 18px; max-width: 560px; }
  .tx--2 { width: min(70%, 400px); margin-left: auto; }
  .tx--3 { width: min(78%, 520px); }

  .team { display: flex; flex-direction: column; }
  .team__h { order: -2; margin-bottom: 28px; }
  .team__pic { order: -1; position: static; width: min(62%, 320px); margin-bottom: 32px; }
  .team__names { padding-top: 0; }

  .rates th, .rates td { padding-bottom: 26px; }
  .rates td { padding-left: 16px; }

  .faq { display: flex; flex-direction: column; padding-top: 0; }
  .faq__pics { order: -1; margin: 0 calc(-1 * var(--m)) 0; padding-bottom: 36px; align-self: auto; }
  .faq__tall { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 80svh; }
  .faq__sq { left: auto; right: var(--m); bottom: -28px; width: min(38%, 240px); }
  .faq__col { padding-top: 64px; padding-bottom: var(--pad-y); }
  .faq__list { gap: 24px; }
  .faq__list summary { min-height: 44px; display: flex; align-items: center; }

  .cta__img { height: 62svh; }

  .visit { height: auto; min-height: 0; overflow: visible; padding-bottom: 0; background: var(--paper); }
  .visit__img { position: static; height: 70svh; }
  .card { position: relative; top: auto; right: auto; width: auto; max-width: 520px; margin: -80px 16px 0; z-index: 2; }
  .card__btn { min-height: 56px; }

  .foot { min-height: 0; gap: 56px; padding-top: 32px; }
  .foot__top { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .foot__top p, .foot__up { grid-column: 1; justify-self: start; }
  .foot__meta { grid-template-columns: 1fr; gap: 6px; }
  .foot__meta p:nth-child(2), .foot__meta p:last-child { text-align: left; }
}
@media (max-width: 560px) {
  :root { --t-body: 16.5px; }
  .faq__act .btn, .cta__text .btn { width: 100%; }
  .cta__img { height: 70svh; }
  .rates th, .rates td { font-size: 18px; }
  .rates th small { font-size: 15.5px; }
}

/* ---------- без анимации ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__img { animation: none; }
  .js [data-r] { opacity: 1; transform: none; transition: none; }
  .st, .who, .btn, .link, .swatches a, .foot__big, .faq__list summary { transition: none; }
  .pair img { transition: opacity .4s; transform: none; }
  .scene__img { transform: none; }
  .orb.is-in .orb__ring, .orb.is-in .orb__core, .orb.is-out .orb__ring, .orb.is-out .orb__core { transition: none; }
}
