:root {
  --bg: #0d0d0c;
  --bg-2: #161614;
  --bg-3: #1f1e1b;
  --line: #2e2c28;
  --text: #ece8e1;
  --muted: #9a958c;
  --accent: #d2541e;
  --accent-2: #ff6a2b;
  --ok: #8fae6b;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

/* фоновое «зерно» */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
em { font-style: normal; color: var(--accent); }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.kicker {
  display: inline-block;
  font: 600 12px/1 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== Кнопки ===== */
.btn {
  --h: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 28px;
  border: 2px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font: 600 15px/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--accent); }
.btn:active { transform: none; box-shadow: none; }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 13px; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 3px 3px 0 var(--text); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--line { background: transparent; color: var(--text); border-color: var(--line); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Навигация ===== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.is-scrolled { background: rgba(13, 13, 12, .92); backdrop-filter: blur(8px); border-color: var(--line); }
.nav__inner {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 12px; font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.logo small { display: block; font: 500 10px/1.4 var(--body); letter-spacing: .2em; color: var(--muted); }
.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
}
.nav__links { display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a {
  font: 500 13px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: flex-end;
  padding: 140px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__photo {
  position: absolute;
  inset: 0 0 0 38%;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: grayscale(1) contrast(1.15) brightness(.8);
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(13, 13, 12, .75) 30%, rgba(13, 13, 12, 0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 13, 12, 0) 45%);
}
.hero__inner { position: relative; }
.hero__title {
  margin: 22px 0 28px;
  font-size: clamp(56px, 11vw, 168px);
  line-height: .96;
}
.hero__title .line { display: block; opacity: 0; transform: translateY(40px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero__title .line:nth-child(2) { animation-delay: .12s; }
.hero__title .line:nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__lead { max-width: 520px; margin: 0 0 36px; font-size: 18px; color: #c9c4bb; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  max-width: 620px;
}
.hero__stats li { flex: 1 1 160px; padding: 20px 20px 0 0; }
.hero__stats strong { display: block; font: 700 30px/1 var(--display); text-transform: uppercase; }
.hero__stats span { font-size: 13px; color: var(--muted); }

/* ===== Бегущая строка ===== */
.ticker {
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  transform: rotate(-1.2deg) scale(1.02);
  margin: -14px 0 0;
  position: relative;
  z-index: 2;
}
.ticker__track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker span {
  padding: 16px 28px;
  font: 700 26px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.ticker span::after { content: "✕"; margin-left: 56px; font-size: 16px; vertical-align: middle; opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===== Секции ===== */
.section { padding: 120px 0; }
.section--dark { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head {
  display: grid;
  grid-template-columns: auto 1fr minmax(0, 380px);
  align-items: end;
  gap: 28px;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--text);
}
.section__num {
  font: 700 clamp(64px, 9vw, 120px)/.8 var(--display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.section__title { font-size: clamp(44px, 7vw, 96px); margin-top: 10px; }
.section__sub { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== Прайс массажа ===== */
.price-list { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 1fr auto 180px auto;
  align-items: center;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .25s;
}
.row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 0;
  background: var(--accent);
  transition: width .25s;
}
.row:hover { padding-left: 24px; }
.row:hover::before { width: 6px; }
.row h3 { font-size: clamp(24px, 3vw, 36px); display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.row p { margin: 10px 0 0; max-width: 560px; color: var(--muted); font-size: 15px; }
.tag {
  font: 600 11px/1 var(--body);
  letter-spacing: .14em;
  padding: 6px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.durations { display: flex; border: 1px solid var(--line); }
.durations button {
  width: 52px;
  height: 42px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 600 15px/1 var(--display);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.durations button:first-child { border-left: 0; }
.durations button:hover { color: var(--text); }
.durations button.is-active { background: var(--text); color: var(--bg); }

.row__price { font: 700 34px/1 var(--display); text-align: right; white-space: nowrap; }
.row__price small { display: block; margin-top: 6px; font: 500 12px/1 var(--body); color: var(--muted); letter-spacing: .04em; }
.row__price.is-text { font-size: 18px; color: var(--muted); }
.note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* ===== Процедуры ===== */
.procs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
}
.proc {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  background: var(--bg-2);
  transition: background .25s;
  position: relative;
}
.proc:hover { background: var(--bg-3); }
.proc__num { font: 700 14px/1 var(--display); color: var(--accent); letter-spacing: .1em; }
.proc h3 { font-size: 28px; line-height: 1.05; margin: 18px 0 14px; }
.proc p { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.proc__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.proc__price { font: 700 36px/1 var(--display); }
.proc__price small { margin-left: 6px; font: 500 13px/1 var(--body); color: var(--muted); }

.proc--photo { grid-column: span 3; padding: 0; display: grid; grid-template-columns: 45% 1fr; }
.proc--photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: filter .4s;
}
.proc--photo:hover img { filter: grayscale(0) contrast(1.05); }
.proc__body { display: flex; flex-direction: column; padding: 36px 32px 32px; }

/* ===== Галерея ===== */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.gallery figure { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-2); }
.gallery figure:first-child { aspect-ratio: auto; position: relative; }
.gallery figure:first-child img { position: absolute; inset: 0; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  transition: filter .5s, transform .8s;
}
.gallery figure:hover img { filter: grayscale(0); transform: scale(1.04); }

/* ===== Показания ===== */
.health { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.acc { border: 2px solid var(--line); background: var(--bg-2); }
.acc summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  font: 700 26px/1 var(--display);
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "↓"; margin-left: auto; color: var(--muted); transition: transform .25s; }
.acc[open] summary::after { transform: rotate(180deg); }
.acc__mark { display: grid; place-items: center; width: 40px; height: 40px; font-size: 22px; color: var(--bg); }
.acc--yes .acc__mark { background: var(--ok); }
.acc--no .acc__mark { background: var(--accent); color: #fff; }
.acc ul { margin: 0; padding: 0 28px 28px; list-style: none; columns: 1; }
.acc li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line); position: relative; font-size: 15px; color: #c9c4bb; }
.acc li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }

/* ===== CTA ===== */
.cta {
  padding: 140px 0;
  background:
    linear-gradient(rgba(13, 13, 12, .82), rgba(13, 13, 12, .92)),
    url("./media/photo_5_2026-12-04_19-01-12.jpg") center 30% / cover;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta h2 { font-size: clamp(52px, 9vw, 130px); }
.cta p { margin: 24px auto 40px; color: #c9c4bb; font-size: 18px; }
.cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.footer { padding: 28px 0 100px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; }
.footer__inner > span { margin-right: auto; }
.footer a:hover { color: var(--text); }

/* ===== Отзывы ===== */
.link-arrow { display: inline-block; margin-top: 8px; color: var(--text); font: 600 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.link-arrow:hover { color: var(--accent); }
.rv-inline-score { display: block; margin-bottom: 10px; color: var(--text); font: 700 22px/1 var(--display); }

.rv-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding: 160px 0 72px;
}
.rv-hero h1 { margin: 18px 0 24px; font-size: clamp(52px, 9vw, 128px); }
.rv-hero .hero__lead { margin-bottom: 32px; }
.rv-score {
  min-width: 240px;
  padding: 32px;
  border: 2px solid var(--text);
  box-shadow: 10px 10px 0 var(--accent);
  text-align: center;
  background: var(--bg-2);
}
.rv-score__num { font: 700 88px/1 var(--display); }
.rv-score__count { margin-top: 8px; color: var(--muted); font-size: 14px; }
.rv-stars { color: var(--accent); letter-spacing: .12em; white-space: nowrap; }
.rv-stars--lg { font-size: 26px; margin-top: 6px; }

.rv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.rv-card { padding: 28px; background: var(--bg-2); border: 2px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.rv-card.is-fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: rgba(210, 84, 30, .35); } }
.rv-card__head { display: flex; align-items: center; gap: 14px; }
.rv-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--text);
  color: var(--bg);
  font: 700 20px/1 var(--display);
}
.rv-card__who { display: flex; flex-direction: column; min-width: 0; }
.rv-card__who b { font: 600 18px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.rv-card__who span { font-size: 12px; color: var(--muted); }
.rv-card__head .rv-stars { margin-left: auto; font-size: 15px; }
.rv-card__text { margin: 0; color: #c9c4bb; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.rv-empty { grid-column: 1 / -1; margin: 0; padding: 48px 28px; background: var(--bg-2); border: 2px solid var(--line); color: var(--muted); text-align: center; }

.rv-form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.rv-form-wrap .section__sub { margin-top: 20px; }
.rv-form, .rv-done { display: grid; gap: 22px; padding: 36px; border: 2px solid var(--line); background: var(--bg); }
.rv-form[hidden], .rv-done[hidden] { display: none; }
.rv-field { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.rv-field legend, .rv-field > span:not(.star-hint) {
  padding: 0;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  font: 600 13px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.rv-field > span { margin: 0; }
.rv-counter { font: 500 12px/1 var(--body); letter-spacing: 0; }
.rv-field input, .rv-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  border-radius: 0;
  resize: vertical;
  transition: border-color .2s;
}
.rv-field input:focus, .rv-field textarea:focus { outline: none; border-color: var(--accent); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 38px; line-height: 1; color: var(--line); cursor: pointer; transition: color .15s, transform .15s; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--accent); }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--text); outline-offset: 2px; }
.star-hint { font-size: 13px; color: var(--muted); }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rv-error { margin: 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: rgba(210, 84, 30, .12); font-size: 14px; }
.rv-done { justify-items: start; }
.rv-done__icon { display: grid; place-items: center; width: 56px; height: 56px; background: var(--ok); color: var(--bg); font: 700 28px/1 var(--display); }
.rv-done__title { font-size: 32px; }
.rv-done__text { margin: 0; color: var(--muted); }

/* ===== Админка отзывов ===== */
.admin { padding: 120px 0 80px; }
.admin__tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 36px 0 24px; border: 2px solid var(--line); width: fit-content; }
.admin__tab {
  padding: 14px 20px;
  border: 0;
  border-left: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 600 14px/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.admin__tab:first-child { border-left: 0; }
.admin__tab[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.admin__tab b { margin-left: 6px; color: var(--accent); }
.admin__list { display: grid; gap: 16px; }
.admin__meta { font-size: 12px; color: var(--muted); }
.admin__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Мастер (главная) ===== */
.master {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2px;
  margin-bottom: 16px;
  background: var(--line);
  border: 2px solid var(--line);
}
.master__intro { padding: 40px; background: var(--bg-2); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.master__intro h3 { font-size: clamp(32px, 4vw, 52px); }
.master__intro p { margin: 0; color: #c9c4bb; }
.master__intro .master__role { color: var(--muted); font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.master__intro .btn { margin-top: 8px; }
.master__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0; padding: 0; list-style: none; }
.master__facts li { padding: 32px; background: var(--bg-2); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.master__facts strong { font: 700 clamp(40px, 5vw, 64px)/.9 var(--display); color: var(--accent); }
.master__facts span { font-size: 13px; color: var(--muted); }

/* ===== Страница «О специалисте» ===== */
.ab-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 56px;
  padding: 150px 0 64px;
}
.ab-hero h1 { margin: 18px 0 16px; font-size: clamp(60px, 10vw, 150px); line-height: .9; }
.ab-hero h1 em { display: block; }
.ab-hero__role { margin: 0 0 24px; font: 600 16px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ab-hero .hero__lead { margin-bottom: 32px; }
.ab-hero__photo {
  margin: 0;
  border: 2px solid var(--text);
  box-shadow: 14px 14px 0 var(--accent);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.ab-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.15); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--line);
}
.facts li { padding: 32px 24px 32px 0; display: flex; flex-direction: column; gap: 10px; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { font: 700 clamp(56px, 7vw, 96px)/.85 var(--display); color: var(--accent); }
.facts span { font-size: 14px; color: var(--muted); max-width: 220px; }

.cond { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cond__group { padding: 32px; border: 2px solid var(--line); background: var(--bg-2); }
.cond__group h3 { font-size: 26px; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  transition: border-color .2s, color .2s;
}
.tags li:hover { border-color: var(--accent); color: var(--accent); }
.tags--light li { background: var(--text); color: var(--bg); border-color: var(--text); font: 600 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.tags--light li:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.tech__col { padding: 32px; background: var(--bg-2); }
.tech__col h3 { display: flex; align-items: baseline; gap: 12px; font-size: 26px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 2px solid var(--text); }
.tech__col h3 span { font-size: 14px; color: var(--accent); }
.tech__col ul { margin: 0; padding: 0; list-style: none; }
.tech__col li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.tech__col li:last-child { border-bottom: 0; }
.tech__col small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--muted); }

.merit { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; margin-bottom: 16px; }
.merit__award {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px;
  background: var(--accent);
  color: #fff;
}
.merit__place { font: 700 160px/.8 var(--display); }
.merit__award h3 { font-size: 40px; }
.merit__award p { margin: 10px 0 0; font-size: 15px; }
.merit__teach { padding: 36px; border: 2px solid var(--line); background: var(--bg-2); }
.merit__teach h3 { font-size: 30px; margin-bottom: 22px; }

.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery--4 figure:first-child { aspect-ratio: 3 / 4; }
.gallery--4 figure:first-child img { position: static; }

/* ===== Всплывающее сообщение ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 95;
  padding: 14px 22px;
  background: var(--text);
  color: var(--bg);
  font: 600 14px/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translate(-50%, 160%);
  opacity: 0;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ===== Плавающая кнопка (мобилки) ===== */
.fab {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  transform: translateY(140%);
  transition: transform .3s;
}
.fab .btn { width: 100%; }
.fab.is-visible { transform: none; }

/* ===== Модалка ===== */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); opacity: 0; transition: opacity .25s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box {
  position: relative;
  width: min(460px, 100%);
  padding: 40px 32px 32px;
  background: var(--bg-2);
  border: 2px solid var(--text);
  box-shadow: 10px 10px 0 var(--accent);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .25s, transform .25s;
}
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { color: var(--text); }
.modal h3 { margin: 14px 0 8px; font-size: 32px; }
.modal__meta { margin: 0 0 26px; color: var(--muted); }
.modal__btns { display: grid; gap: 10px; }
.modal__note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* ===== Появление ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__inner > .btn { margin-left: auto; }
  .row { grid-template-columns: 1fr auto; gap: 18px 24px; }
  .row__info { grid-column: 1 / -1; }
  .row__price { text-align: left; order: 3; }
  .row .durations { order: 2; }
  .row .btn { order: 4; justify-self: end; }
  .procs { grid-template-columns: 1fr 1fr; }
  .proc, .proc--photo { grid-column: span 1; }
  .proc--photo { grid-template-columns: 1fr; }
  .proc--photo img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .master { grid-template-columns: 1fr; }
  .ab-hero { grid-template-columns: 1fr 320px; gap: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tech { grid-template-columns: 1fr 1fr; }
  .merit { grid-template-columns: 1fr; }
  .gallery--4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .section__head { grid-template-columns: auto 1fr; gap: 16px 20px; }
  .section__sub { grid-column: 1 / -1; }
  .hero { padding-top: 110px; }
  .hero__photo { inset: 0; }
  .hero__photo img { object-position: 60% 10%; }
  .hero__photo::after {
    background: linear-gradient(0deg, var(--bg) 25%, rgba(13, 13, 12, .55) 60%, rgba(13, 13, 12, .3) 100%);
  }
  .hero__lead { font-size: 16px; }
  .hero__stats strong { font-size: 24px; }
  .row { grid-template-columns: 1fr; }
  .row:hover { padding-left: 0; }
  .row .btn { justify-self: stretch; }
  .row__price { order: 2; }
  .row .durations { order: 3; justify-self: start; }
  .procs { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .health { grid-template-columns: 1fr; }
  .fab { display: block; }
  .rv-hero { grid-template-columns: 1fr; padding-top: 120px; }
  .rv-score { justify-self: start; }
  .rv-grid { grid-template-columns: 1fr; }
  .rv-form-wrap { grid-template-columns: 1fr; gap: 32px; }
  .rv-form, .rv-done { padding: 24px; }
  .master__intro { padding: 28px 24px; }
  .master__facts li { padding: 24px; }
  .ab-hero { grid-template-columns: 1fr; padding-top: 110px; }
  .ab-hero__photo { order: -1; aspect-ratio: 1; box-shadow: 8px 8px 0 var(--accent); }
  .facts li { padding: 24px 12px 24px 0; }
  .facts li + li { padding-left: 12px; }
  .cond, .tech { grid-template-columns: 1fr; }
  .cond__group, .tech__col, .merit__teach { padding: 24px; }
  .merit__award { padding: 24px; gap: 18px; }
  .merit__place { font-size: 110px; }
  .logo small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__title .line, .reveal { opacity: 1; transform: none; }
}
