/* ============================================================
   BROSSKA — студия дизайна интерьера
   Стилистика: editorial ч/б (реф. balcon.studio) + бордовые
   тёмные секции. Display: Cormorant, текст: Manrope.
   ============================================================ */

:root {
  --ink: #101010;
  --paper: #ffffff;
  --grey: #6e6e6e;
  --grey-2: #9a9a9a;
  --line: #e4e1dc;
  --wine: #401318;
  --wine-deep: #1a0a0c;
  --wine-soft: #5a2026;
  --sand: #cfc6ba;
  --ff-display: "Cormorant", "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-text: "Manrope", -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 88px;
  --pad-x: clamp(20px, 5vw, 96px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--ff-text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.br-container { padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- типографика ---------- */
.br-display {
  font-family: var(--ff-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
}
.br-h1 { font-size: clamp(52px, 9.5vw, 168px); }
.br-h2 { font-size: clamp(40px, 6.5vw, 104px); }
.br-h3 { font-size: clamp(28px, 3.2vw, 48px); text-transform: none; letter-spacing: 0; line-height: 1.1; }

.br-label {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 26px;
}
.br-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
}
.br-lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }

/* ---------- кнопки ---------- */
.br-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 44px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
  border: 1px solid var(--ink);
  text-align: center;
}
.br-btn:hover { background: var(--paper); color: var(--ink); }
.br-btn--ghost { background: transparent; color: var(--ink); }
.br-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.br-btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.br-btn--light:hover { background: transparent; color: var(--paper); }

/* ---------- фокус ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.br-section--dark a:focus-visible, .br-section--dark button:focus-visible,
.br-section--dark input:focus-visible, .br-section--dark select:focus-visible {
  outline-color: var(--paper);
}

/* ============================================================
   ШАПКА
   ============================================================ */
.br-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.br-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
}
.br-logo { display: flex; align-items: center; }
.br-logo img { height: 30px; width: auto; display: block; }
.br-nav { display: flex; gap: clamp(16px, 2.2vw, 40px); margin-right: auto; }
.br-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
}
.br-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.25s ease;
}
.br-nav a:hover::after { right: 0; }
.br-header__phone {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--grey);
}
.br-header .br-btn { min-height: 52px; padding: 0 34px; }

.br-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.br-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.br-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.br-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.br-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.br-section { padding: clamp(72px, 9vw, 150px) 0; }
.br-section--dark {
  background:
    radial-gradient(120% 90% at 85% 10%, var(--wine-soft) 0%, transparent 55%),
    radial-gradient(110% 100% at 10% 100%, var(--wine) 0%, transparent 60%),
    var(--wine-deep);
  color: var(--paper);
}
.br-section--dark .br-eyebrow { color: rgba(255, 255, 255, 0.55); }
.br-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(40px, 5vw, 80px);
}

/* ============================================================
   ГЕРОЙ — сплит: текст слева, интерьер справа
   ============================================================ */
.br-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  color: var(--paper);
  background:
    radial-gradient(130% 100% at 80% 20%, var(--wine-soft) 0%, transparent 55%),
    linear-gradient(160deg, #241417 0%, #170d0f 55%, var(--wine-deep) 100%);
  padding-top: var(--header-h);
  overflow: hidden;
}
.br-hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 44px;
  padding-top: clamp(32px, 5vh, 64px);
  padding-bottom: clamp(40px, 6vh, 84px);
}
.br-hero__title { max-width: 15ch; }
.br-hero__media { position: relative; min-height: 60vh; }
.br-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.br-hero__sub {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255, 255, 255, 0.82);
}

/* карточка эксперта (как у референса) */
.br-expert {
  background: var(--paper);
  color: var(--ink);
  padding: 28px;
  width: min(400px, 100%);
  flex-shrink: 0;
}
.br-expert__top { display: flex; gap: 20px; align-items: center; }
.br-expert__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1efec;
}
.br-expert__photo img { width: 100%; height: 100%; object-fit: cover; }
.br-expert__eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.br-expert__name {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.br-expert__text { font-size: 14px; color: var(--grey); margin-top: 6px; }
.br-expert .br-btn { width: 100%; margin-top: 22px; }

/* ============================================================
   ОБО МНЕ
   ============================================================ */
.br-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 96px); align-items: start; }
.br-about__photo { position: relative; }
.br-about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.br-about__body .br-h2 { margin: 26px 0 34px; }
.br-about__text p + p { margin-top: 18px; }
.br-quote {
  margin-top: 38px;
  padding-left: 28px;
  border-left: 2px solid var(--ink);
  font-family: var(--ff-display);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
}
.br-sign { margin-top: 26px; }
.br-sign b { display: block; font-size: 17px; }
.br-sign span { font-size: 14px; color: var(--grey); }

/* ---------- тёмная полоса-манифест ---------- */
.br-manifest { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 96px); align-items: end; }
.br-manifest__text { font-size: clamp(19px, 1.9vw, 26px); line-height: 1.45; max-width: 46ch; }
.br-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.18); margin-top: clamp(48px, 6vw, 96px); }
.br-stat { background: var(--paper); color: var(--ink); padding: clamp(24px, 3vw, 48px) clamp(20px, 2.4vw, 40px) clamp(20px, 2.4vw, 36px); }
.br-stat__num { font-family: var(--ff-display); font-weight: 600; font-size: clamp(56px, 7vw, 120px); line-height: 1; }
.br-stat__num sup { font-size: 0.45em; }
.br-stat__cap { margin-top: 14px; font-size: 14px; color: var(--grey); max-width: 26ch; }

/* ============================================================
   УСЛУГИ
   ============================================================ */
.br-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.br-service { background: var(--paper); padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; gap: 16px; min-height: 320px; }
.br-service__num { font-size: 12px; letter-spacing: 0.2em; color: var(--grey-2); }
.br-service__title { font-family: var(--ff-display); font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.05; }
.br-service__text { color: var(--grey); font-size: 15.5px; max-width: 40ch; }
.br-service__price { margin-top: auto; font-weight: 700; font-size: 15px; letter-spacing: 0.06em; }
.br-service__price span { font-weight: 500; color: var(--grey); }

/* ============================================================
   КЕЙСЫ
   ============================================================ */
.br-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.br-case { position: relative; display: block; }
.br-case__img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: saturate(0.9); transition: filter 0.3s ease, opacity 0.3s ease; }
.br-case:hover .br-case__img { opacity: 0.88; }
.br-case__meta { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.br-case__name { font-family: var(--ff-display); font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.br-case__area { font-size: 13px; color: var(--grey); letter-spacing: 0.08em; white-space: nowrap; }
.br-note {
  margin-top: 34px;
  border: 1px dashed var(--grey-2);
  padding: 16px 20px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

/* лента мини-работ */
.br-strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 340px); gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.br-strip::-webkit-scrollbar { height: 6px; }
.br-strip::-webkit-scrollbar-thumb { background: var(--line); }
.br-strip .br-case { scroll-snap-align: start; }
.br-strip .br-case__img { aspect-ratio: 3 / 4; }

/* ============================================================
   ПОЧЕМУ + ЭТАПЫ
   ============================================================ */
.br-why { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.br-acc { border-top: 1px solid var(--line); }
.br-acc__item { border-bottom: 1px solid var(--line); }
.br-acc__btn {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 24px 0;
  text-align: left;
}
.br-acc__num { font-size: 13px; color: var(--grey-2); letter-spacing: 0.1em; width: 30px; flex-shrink: 0; }
.br-acc__title { font-weight: 700; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.br-acc__mark { margin-left: auto; font-family: var(--ff-display); font-size: 22px; line-height: 1; transition: transform 0.25s ease; }
.br-acc__item.is-open .br-acc__mark { transform: rotate(180deg); }
.br-acc__panel { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.br-acc__body { padding: 0 0 26px 52px; color: var(--grey); max-width: 52ch; }

.br-steps { counter-reset: step; }
.br-step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.br-step:first-child { border-top: 1px solid var(--line); }
.br-step__num { font-family: var(--ff-display); font-size: 40px; font-weight: 600; line-height: 1; color: var(--ink); }
.br-step__title { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 15px; }
.br-step__text { margin-top: 8px; color: var(--grey); font-size: 15px; max-width: 46ch; }

/* ============================================================
   КАЛЬКУЛЯТОР
   ============================================================ */
.br-calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 90px); align-items: start; }
.br-field { margin-top: 34px; }
.br-field__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 16px; }
.br-tariffs { display: grid; gap: 10px; }
.br-tariff { position: relative; }
.br-tariff input { position: absolute; opacity: 0; pointer-events: none; }
.br-tariff label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 18px 22px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.br-tariff label b { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.br-tariff label span { font-size: 14px; color: rgba(255, 255, 255, 0.65); white-space: nowrap; }
.br-tariff input:checked + label { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.br-tariff input:checked + label span { color: var(--grey); }
.br-tariff input:focus-visible + label { outline: 2px solid var(--paper); outline-offset: 3px; }

.br-area { display: flex; align-items: center; gap: 22px; }
.br-area input[type="range"] { flex: 1; accent-color: var(--paper); height: 2px; }
.br-area__val { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 6px; }
.br-area__val input {
  width: 76px;
  background: transparent;
  border: none;
  color: var(--paper);
  font-family: var(--ff-display);
  font-size: 40px;
  font-weight: 600;
  text-align: right;
}
.br-area__val input::-webkit-outer-spin-button, .br-area__val input::-webkit-inner-spin-button { -webkit-appearance: none; }
.br-area__val input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.br-area__val span { font-size: 14px; color: rgba(255, 255, 255, 0.65); }

.br-extra { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); flex-wrap: wrap; }
.br-extra:first-of-type { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.br-extra input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--paper); flex-shrink: 0; }
.br-extra label { cursor: pointer; font-size: 15px; }
.br-extra__price { margin-left: auto; font-size: 14px; color: rgba(255, 255, 255, 0.65); white-space: nowrap; }
.br-extra select {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--paper);
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
}
.br-extra select option { color: var(--ink); }

.br-total { background: var(--paper); color: var(--ink); padding: clamp(28px, 3vw, 44px); position: sticky; top: calc(var(--header-h) + 24px); }
.br-total__cap { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.br-total__sum { font-family: var(--ff-display); font-weight: 600; font-size: clamp(48px, 4.6vw, 76px); line-height: 1.05; margin-top: 14px; white-space: nowrap; }
.br-total__sum small { font-size: 0.42em; font-family: var(--ff-text); font-weight: 600; }
.br-total__rows { margin-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.br-total__row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--grey); }
.br-total__row b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.br-total__note { margin-top: 18px; font-size: 13px; color: var(--grey); }
.br-total .br-btn { width: 100%; margin-top: 24px; }
.br-bonus { margin-top: 14px; font-size: 13px; border: 1px dashed var(--grey-2); padding: 12px 14px; color: var(--grey); display: none; }
.br-bonus.is-on { display: block; }

/* ============================================================
   FAQ
   ============================================================ */
.br-faq { max-width: 900px; }

/* ============================================================
   ФОРМА
   ============================================================ */
.br-contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.br-form { margin-top: 40px; }
.br-input { position: relative; margin-bottom: 40px; }
.br-input label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.br-input input, .br-input textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font: inherit;
  font-size: 18px;
  padding: 10px 0 12px;
  border-radius: 0;
}
.br-input textarea { resize: vertical; min-height: 90px; }
.br-input input:focus, .br-input textarea:focus { outline: none; border-bottom-width: 2px; }
.br-agree { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--grey); margin: 34px 0 30px; }
.br-agree input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; margin-top: 2px; }
.br-agree a { text-decoration: underline; text-underline-offset: 3px; }
.br-form .br-btn { min-width: 320px; }
.br-form__ok { display: none; border: 1px solid var(--ink); padding: 22px 26px; margin-top: 28px; font-size: 15px; }
.br-form__ok.is-on { display: block; }

.br-contact__side { border: 1px solid var(--line); padding: clamp(26px, 3vw, 44px); }
.br-contact__side h3 { font-family: var(--ff-display); font-size: 30px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 22px; }
.br-contact__row { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.br-contact__row span { color: var(--grey); }
.br-todo { font-size: 12px; color: var(--grey-2); border: 1px dashed var(--grey-2); padding: 2px 8px; letter-spacing: 0.08em; white-space: nowrap; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.br-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 90px); }
.br-footer__logo {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(64px, 14.5vw, 268px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}
.br-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: clamp(48px, 6vw, 90px); }
.br-footer__col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; }
.br-footer__col a, .br-footer__col p { display: block; font-size: 15px; color: var(--grey); padding: 6px 0; }
.br-footer__col a:hover { color: var(--ink); }
.br-footer__bottom {
  margin-top: clamp(40px, 5vw, 70px);
  border-top: 1px solid var(--line);
  padding: 26px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--grey);
}
.br-footer__legal { margin: 0; }
.br-footer__dot { display: inline-block; margin: 0 6px; color: var(--grey-2); }
.br-footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.br-footnote { font-size: 12px; color: var(--grey-2); margin-top: 10px; max-width: 60ch; }

/* ============================================================
   СТРАНИЦА ПОРТФОЛИО
   ============================================================ */
.br-page-head { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 110px)); padding-bottom: clamp(36px, 4vw, 64px); }
.br-filters { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; }
.br-filter { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.br-filter.is-active { color: var(--ink); border-color: var(--ink); }
.br-pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }

/* ============================================================
   СТРАНИЦА ПОЛИТИКИ
   ============================================================ */
.br-policy { max-width: 860px; }
.br-policy h1 { font-size: clamp(36px, 5vw, 72px); margin-bottom: 40px; }
.br-policy h2 { font-family: var(--ff-text); font-size: 20px; font-weight: 700; margin: 36px 0 14px; }
.br-policy p, .br-policy li { color: #333; font-size: 16px; }
.br-policy ul { padding-left: 22px; margin: 12px 0; }
.br-policy .br-todo { display: inline-block; margin: 0 4px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .br-header__phone { display: none; }
  .br-stats { grid-template-columns: 1fr; }
  .br-manifest, .br-why, .br-calc, .br-contact { grid-template-columns: 1fr; }
  .br-total { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .br-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px var(--pad-x) 24px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 90;
  }
  .br-nav.is-open { transform: translateY(0); }
  .br-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .br-burger { display: flex; }
  .br-header .br-btn { min-height: 44px; padding: 0 18px; font-size: 11px; letter-spacing: 0.14em; }
  .br-header__inner { gap: 14px; }
  .br-logo { font-size: 24px; margin-right: auto; }

  .br-hero { grid-template-columns: 1fr; }
  .br-hero__media { order: -1; min-height: 44vh; }
  .br-hero__media img { position: static; height: 44vh; }
  .br-hero__inner { gap: 32px; padding-top: 36px; }
  .br-hero__title { max-width: none; }
  .br-expert { width: 100%; }
  .br-logo img { height: 24px; }

  .br-about, .br-services, .br-cases, .br-pf-grid { grid-template-columns: 1fr; }
  .br-service { min-height: 0; }
  .br-acc__body { padding-left: 0; }
  .br-step { grid-template-columns: 48px 1fr; }
  .br-footer__grid { grid-template-columns: 1fr 1fr; }
  .br-footer__logo { letter-spacing: 0; }
  .br-form .br-btn { width: 100%; min-width: 0; }
  .br-area { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .br-footer__grid { grid-template-columns: 1fr; }
  .br-label { padding: 12px 18px; font-size: 11px; }
}

/* ============================================================
   V3 — премиальный слой: фиксы героя, этапов, формы, футера
   ============================================================ */

/* тёплый белый вместо стерильного */
:root { --paper: #fdfcfa; }

/* ---------- герой: размер и композиция ---------- */
.br-hero { grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); }
.br-hero .br-hero__inner { padding-right: clamp(20px, 3vw, 56px); }
.br-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.br-hero__eyebrow::before { content: ""; width: 44px; height: 1px; background: rgba(255, 255, 255, 0.4); }
.br-hero__title { font-size: clamp(42px, 5.7vw, 106px); line-height: 1.0; max-width: none; }
.br-hero__title em {
  font-style: italic;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}
.br-expert { padding: 32px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }

/* ---------- почему выбирают: сетка вместо аккордеона ---------- */
.br-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.br-why-card { background: var(--paper); padding: clamp(28px, 2.8vw, 48px); }
.br-why-card__num { font-size: 12px; letter-spacing: 0.22em; color: var(--grey-2); }
.br-why-card__title {
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.08;
  margin: 16px 0 14px;
}
.br-why-card__text { color: var(--grey); font-size: 15.5px; max-width: 46ch; }

/* ---------- этапы: горизонтальная сетка 3×2 ---------- */
.br-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) clamp(28px, 3vw, 56px);
}
.br-step2 { border-top: 1px solid var(--ink); padding-top: 24px; }
.br-step2__num {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(44px, 4vw, 68px);
  line-height: 1;
}
.br-step2__title {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 15px;
  margin: 16px 0 10px;
}
.br-step2__text { color: var(--grey); font-size: 15px; }

/* ---------- форма: плотнее + тёмная панель контактов ---------- */
.br-contact { align-items: stretch; }
.br-form { margin-top: 36px; }
.br-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.br-input { margin-bottom: 30px; }
.br-contact__side {
  border: none;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--wine-soft) 0%, transparent 55%),
    radial-gradient(110% 100% at 0% 100%, var(--wine) 0%, transparent 60%),
    var(--wine-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.br-contact__side::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 280px;
  height: 330px;
  background: url("../img/mark-white.png") no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}
.br-contact__side h3 { color: var(--paper); }
.br-contact__side .br-contact__row { border-color: rgba(255, 255, 255, 0.18); position: relative; z-index: 1; }
.br-contact__side .br-contact__row span { color: rgba(255, 255, 255, 0.55); }
.br-contact__side .br-contact__row b a { color: var(--paper); }
.br-contact__side .br-total__note { color: rgba(255, 255, 255, 0.65); position: relative; z-index: 1; margin-top: auto; padding-top: 22px; }

/* ---------- футер: логотип-картинка и починенная кнопка ---------- */
.br-footer__logo { text-align: center; }
.br-footer__logo img { width: min(100%, 1180px); height: auto; display: inline-block; }
.br-footer__col a.br-btn {
  display: inline-flex;
  color: var(--paper);
  padding: 0 44px;
  font-size: 13px;
}
.br-footer__col a.br-btn:hover { color: var(--ink); }

/* ---------- премиальные мелочи ---------- */
.br-case__media { display: block; overflow: hidden; }
.br-case__img { transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.3s ease; }
.br-case:hover .br-case__img { transform: scale(1.035); }

.br-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.br-reveal.is-in { opacity: 1; transform: none; }

/* ---------- адаптив новых блоков ---------- */
@media (max-width: 1100px) {
  .br-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .br-why-grid { grid-template-columns: 1fr; }
  .br-steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .br-form__row { grid-template-columns: 1fr; gap: 0; }
  .br-hero__title { font-size: clamp(40px, 11vw, 64px); }
  .br-contact__side { min-height: 420px; }
}

/* ============================================================
   V4 — интро-лоадер и каскадное появление героя
   ============================================================ */
.br-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  background:
    radial-gradient(120% 90% at 80% 10%, var(--wine-soft) 0%, transparent 55%),
    var(--wine-deep);
  transition: transform 0.85s cubic-bezier(0.7, 0, 0.2, 1);
}
.js .br-loader { display: flex; }
.br-loader img {
  width: min(320px, 62vw);
  height: auto;
  opacity: 0;
  animation: brLoaderIn 0.9s ease 0.15s forwards;
}
.br-loader__bar {
  width: min(320px, 62vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
}
.br-loader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  right: 100%;
  background: rgba(255, 255, 255, 0.85);
  animation: brLoaderBar 1.15s ease 0.25s forwards;
}
@keyframes brLoaderIn { to { opacity: 1; } }
@keyframes brLoaderBar { to { right: 0; } }
.br-loader.is-done { transform: translateY(-101%); }
.br-loader.is-gone { display: none !important; }
body.is-loading { overflow: hidden; }

/* каскад героя после лоадера */
.js .br-hero__eyebrow,
.js .br-hero__title,
.js .br-hero__sub,
.js .br-hero .br-expert {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .br-hero__media { opacity: 0; transition: opacity 0.9s ease; }
.js .br-hero__media img { transform: scale(1.05); transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
body.is-loaded .br-hero__eyebrow { opacity: 1; transform: none; transition-delay: 0.15s; }
body.is-loaded .br-hero__title { opacity: 1; transform: none; transition-delay: 0.28s; }
body.is-loaded .br-hero__sub { opacity: 1; transform: none; transition-delay: 0.42s; }
body.is-loaded .br-hero .br-expert { opacity: 1; transform: none; transition-delay: 0.56s; }
body.is-loaded .br-hero__media { opacity: 1; transition-delay: 0.1s; }
body.is-loaded .br-hero__media img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .br-loader { display: none; }
  .js .br-hero__eyebrow, .js .br-hero__title, .js .br-hero__sub,
  .js .br-hero .br-expert, .js .br-hero__media { opacity: 1; transform: none; }
  .js .br-hero__media img { transform: none; }
}

/* мобильный размер заголовка под три строки */
@media (max-width: 860px) {
  .br-hero__title { font-size: clamp(34px, 9.6vw, 56px); }
}

/* ============================================================
   V5 — широкая карточка эксперта + счётчики
   ============================================================ */
.br-hero .br-expert {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  flex-wrap: wrap;
  padding: 30px 36px;
}
.br-hero .br-expert__top { flex: 1 1 320px; min-width: 260px; }
.br-hero .br-expert .br-btn {
  width: auto;
  min-width: 300px;
  margin-top: 0;
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .br-hero .br-expert { padding: 24px; }
  .br-hero .br-expert .br-btn { width: 100%; min-width: 0; }
}

/* ============================================================
   V6 — кнопка карточки на всю ширину, FAQ по центру
   ============================================================ */
.br-hero .br-expert .br-btn {
  width: 100%;
  min-width: 0;
  flex: 1 1 100%;
  margin-top: 4px;
}
.br-faq { max-width: 980px; margin-left: auto; margin-right: auto; }
.br-faq-section .br-section-head { justify-content: center; }
.br-faq-section .br-h2 { text-align: center; }

/* ============================================================
   V7 — новый логотип, мягкий переход фон/фото в герое,
   плашка-консультация с фотографией на всю ширину
   ============================================================ */

/* ---------- логотип ---------- */
.br-logo img { height: 26px; }
@media (max-width: 860px) { .br-logo img { height: 21px; } }
.br-footer__logo img { width: min(100%, 1080px); }

/* ---------- герой: фото уходит под бордовый фон плавным переходом ---------- */
.br-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 34%;
  min-height: 0;
  z-index: 0;
  pointer-events: none;
}
.br-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 55%;
}
.br-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      var(--wine-deep) 0%,
      rgba(26, 10, 12, 0.98) 12%,
      rgba(32, 15, 18, 0.9) 24%,
      rgba(36, 20, 23, 0.62) 36%,
      rgba(36, 20, 23, 0.3) 48%,
      rgba(36, 20, 23, 0.1) 60%,
      rgba(36, 20, 23, 0) 72%),
    linear-gradient(180deg, rgba(23, 13, 15, 0.34) 0%, rgba(23, 13, 15, 0) 32%);
}
.br-hero__inner { position: relative; z-index: 2; }

/* ---------- плашка: фото на всю плашку, кнопка сверху, текст снизу ---------- */
.br-hero .br-expert {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  gap: 0;
  min-height: clamp(240px, 23vw, 322px);
  background: var(--paper);
}
.br-expert__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 24% 28%;
  z-index: 0;
}
.br-hero .br-expert::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(253, 252, 250, 0) 0%,
    rgba(253, 252, 250, 0.12) 24%,
    rgba(253, 252, 250, 0.62) 38%,
    rgba(253, 252, 250, 0.92) 50%,
    rgba(253, 252, 250, 0.99) 62%,
    var(--paper) 100%);
}
.br-expert__body {
  position: relative;
  z-index: 2;
  width: min(58%, 520px);
  flex: 0 0 auto;
  padding: clamp(20px, 2.1vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.br-hero .br-expert .br-expert__cta {
  width: 100%;
  flex: 0 0 auto;
  margin-top: 0;
  min-height: 56px;
  padding: 0 26px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-align: center;
}
.br-expert__note {
  font-size: 14px;
  line-height: 1.5;
  color: #4a4441;
  margin: 0;
}

@media (max-width: 1100px) {
  .br-hero__media { left: 28%; }
}

@media (max-width: 860px) {
  /* фото сверху, снизу плавно уходит в бордовый фон */
  .br-hero__media {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    order: -1;
    min-height: 42vh;
  }
  .br-hero__media img { position: absolute; height: 100%; object-position: 52% 50%; }
  .br-hero__media::after {
    background: linear-gradient(180deg,
      rgba(23, 13, 15, 0.28) 0%,
      rgba(23, 13, 15, 0) 34%,
      rgba(23, 13, 15, 0.55) 76%,
      var(--wine-deep) 100%);
  }
  /* плашка: фото фоном, текст поверх светлой заливки */
  .br-hero .br-expert { min-height: 0; display: block; }
  .br-expert__bg { object-position: 30% 32%; height: 46%; }
  .br-hero .br-expert::after {
    background: linear-gradient(180deg,
      rgba(253, 252, 250, 0) 0%,
      rgba(253, 252, 250, 0.3) 26%,
      rgba(253, 252, 250, 0.96) 42%,
      var(--paper) 52%);
  }
  .br-expert__body {
    width: 100%;
    padding: 44% 20px 22px;
    gap: 16px;
  }
  .br-hero .br-expert .br-expert__cta { min-height: 52px; font-size: 11px; }
}

/* ============================================================
   V8 — винная палитра, герой в один экран без шва,
   объединённые блоки «Обо мне + цифры» и «Почему выбирают»
   ============================================================ */

:root {
  --wine: #7b1520;
  --wine-soft: #94202d;
  --wine-deep: #4a0c14;
}

/* ---------- герой: фон и бесшовное растворение фото ---------- */
.br-hero {
  background:
    radial-gradient(120% 95% at 10% 16%, rgba(150, 36, 50, 0.5) 0%, rgba(150, 36, 50, 0) 58%),
    linear-gradient(150deg, #7b1520 0%, #6d1219 42%, #4a0c14 100%);
}
.br-hero__media {
  left: 30%;
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.06) 16%,
    rgba(0, 0, 0, 0.22) 30%,
    rgba(0, 0, 0, 0.48) 44%,
    rgba(0, 0, 0, 0.74) 58%,
    rgba(0, 0, 0, 0.92) 70%,
    #000 82%);
  mask-image: linear-gradient(90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.06) 16%,
    rgba(0, 0, 0, 0.22) 30%,
    rgba(0, 0, 0, 0.48) 44%,
    rgba(0, 0, 0, 0.74) 58%,
    rgba(0, 0, 0, 0.92) 70%,
    #000 82%);
}
.br-hero__media::after {
  background: linear-gradient(180deg, rgba(60, 10, 16, 0.3) 0%, rgba(60, 10, 16, 0) 30%);
}

/* ---------- герой: помещается ровно в экран ---------- */
.br-hero__inner {
  gap: clamp(18px, 3.2vh, 44px);
  padding-top: clamp(24px, 3.4vh, 56px);
  padding-bottom: clamp(28px, 4.4vh, 72px);
}
.br-hero__eyebrow { margin-bottom: clamp(12px, 2.4vh, 26px); }
.br-hero__title { font-size: clamp(38px, min(5.7vw, 9.4vh), 106px); }
.br-hero__sub {
  margin-top: clamp(12px, 2.2vh, 28px);
  font-size: clamp(15px, min(1.4vw, 2.2vh), 19px);
}
.br-hero .br-expert { min-height: clamp(176px, 26vh, 300px); }
.br-expert__body { padding: clamp(16px, 2.4vh, 30px) clamp(18px, 2vw, 30px); gap: clamp(10px, 1.6vh, 18px); }
.br-hero .br-expert .br-expert__cta {
  min-height: clamp(46px, 6.4vh, 58px);
  font-size: clamp(10.5px, 1.5vh, 12px);
  letter-spacing: 0.12em;
  line-height: 1.35;
  padding: 8px 20px;
}
.br-expert__note { font-size: clamp(12.5px, 1.8vh, 14.5px); }

/* ---------- обо мне + цифры ---------- */
.br-founder {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4.5vw, 84px);
  align-items: start;
}
.br-founder__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.br-founder__body { padding-top: clamp(8px, 2vw, 34px); }
.br-founder__name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 20px;
}
.br-founder__role {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.br-founder__body .br-quote { margin-top: clamp(28px, 3vw, 44px); }
.br-founder__text {
  margin-top: clamp(24px, 2.6vw, 40px);
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--grey);
  max-width: 52ch;
}
.br-stats--light {
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: calc(-1 * clamp(40px, 6vw, 118px));
  margin-left: clamp(0px, 13vw, 240px);
  position: relative;
  z-index: 2;
}
.br-stats--light .br-stat__num { font-size: clamp(46px, 5vw, 88px); }
.br-stats--light .br-stat__cap { color: var(--grey); }

/* ---------- наше портфолио ---------- */
.br-cases__cta { margin: clamp(24px, 2.6vw, 38px) 0 clamp(40px, 4.5vw, 72px); }
.br-case__cap {
  font-size: 15px;
  color: var(--grey);
  letter-spacing: 0.02em;
}
.br-cases .br-case__meta { margin-top: 18px; }

@media (max-width: 1000px) {
  .br-founder { grid-template-columns: 1fr; }
  .br-founder__photo img { aspect-ratio: 4 / 3; }
  .br-stats--light { margin-left: 0; margin-top: clamp(28px, 4vw, 48px); }
}

@media (max-width: 860px) {
  .br-hero__media { left: auto; -webkit-mask-image: none; mask-image: none; }
  .br-hero__media::after {
    background: linear-gradient(180deg,
      rgba(60, 10, 16, 0.26) 0%,
      rgba(60, 10, 16, 0) 32%,
      rgba(74, 12, 20, 0.6) 74%,
      var(--wine-deep) 100%);
  }
  .br-hero .br-expert { min-height: 0; }
  .br-founder__name { font-size: clamp(30px, 8vw, 44px); }
}

/* ============================================================
   V9 — тарифы, команда, выравнивание калькулятора,
   спокойные заголовки секций, компактные цифры
   ============================================================ */

/* ---------- заголовки и ритм секций ---------- */
.br-h2 { font-size: clamp(32px, 4.4vw, 68px); }
.br-section { padding: clamp(64px, 7vw, 118px) 0; }
.br-section-head { margin-bottom: clamp(34px, 3.8vw, 62px); }

/* ---------- герой: плашка — лицо крупнее, переход резче ---------- */
.br-expert__bg { object-position: 50% 22%; }
.br-hero .br-expert::after {
  background: linear-gradient(90deg,
    rgba(253, 252, 250, 0) 0%,
    rgba(253, 252, 250, 0) 44%,
    rgba(253, 252, 250, 0.45) 49%,
    rgba(253, 252, 250, 0.9) 53%,
    var(--paper) 57%,
    var(--paper) 100%);
}
.br-expert__body { width: min(46%, 420px); }

/* ---------- цифры под фото: компактнее и строго в сетке ---------- */
.br-stats--light {
  margin-top: calc(-1 * clamp(28px, 3.6vw, 68px));
  margin-left: clamp(0px, 22vw, 400px);
}
.br-stats--light .br-stat { padding: clamp(20px, 1.9vw, 30px) clamp(18px, 1.6vw, 26px); }
.br-stats--light .br-stat__num { font-size: clamp(34px, 3.1vw, 54px); }
.br-stats--light .br-stat__cap { margin-top: 10px; font-size: 13px; max-width: 24ch; }

/* ---------- форматы работы (тарифы) ---------- */
.br-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 32px);
  align-items: stretch;
}
.br-plan {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(28px, 2.6vw, 46px);
}
.br-plan--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.br-plan__num { font-size: 12px; letter-spacing: 0.22em; color: var(--grey-2); }
.br-plan--dark .br-plan__num { color: rgba(255, 255, 255, 0.45); }
.br-plan__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(24px, 1.9vw, 32px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 16px;
}
.br-plan__lead {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.br-plan__intro {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey);
}
.br-plan--dark .br-plan__intro { color: rgba(255, 255, 255, 0.7); }
.br-plan__box {
  margin-top: clamp(24px, 2.2vw, 34px);
  padding: clamp(20px, 1.8vw, 28px);
  background: #f4f1ec;
}
.br-plan--dark .br-plan__box { background: rgba(255, 255, 255, 0.07); }
.br-plan__box-title {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.br-plan__list { list-style: none; margin: 18px 0 0; padding: 0; }
.br-plan__item {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--grey);
}
.br-plan__item + .br-plan__item { margin-top: 11px; }
.br-plan__item::before {
  content: "+";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 15px;
  color: var(--wine);
}
.br-plan__item--base { color: var(--ink); font-weight: 600; }
.br-plan__item--base::before { content: "\2713"; font-size: 13px; }
.br-plan--dark .br-plan__item { color: rgba(255, 255, 255, 0.75); }
.br-plan--dark .br-plan__item--base { color: var(--paper); }
.br-plan--dark .br-plan__item::before { color: #d38b95; }
.br-plan__block { margin-top: clamp(24px, 2.2vw, 34px); }
.br-plan__sub {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.br-plan__text { font-size: 14.5px; line-height: 1.6; color: var(--grey); }
.br-plan--dark .br-plan__text { color: rgba(255, 255, 255, 0.7); }
.br-plan__fits { margin: 0; padding-left: 18px; }
.br-plan__fits li { font-size: 14.5px; line-height: 1.5; color: var(--grey); }
.br-plan__fits li + li { margin-top: 9px; }
.br-plan--dark .br-plan__fits li { color: rgba(255, 255, 255, 0.7); }
.br-plan__foot { margin-top: auto; padding-top: clamp(28px, 2.6vw, 42px); }
.br-plan__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
}
.br-plan__price span { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.br-plan--dark .br-plan__price span { color: rgba(255, 255, 255, 0.55); }
.br-plan__price b {
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 600;
  white-space: nowrap;
}
.br-plan__cta { width: 100%; min-height: 58px; font-size: 11.5px; letter-spacing: 0.12em; text-align: center; line-height: 1.4; padding: 10px 18px; }
.br-plan--dark .br-plan__cta { background: var(--paper); color: var(--ink); }
.br-plan--dark .br-plan__cta:hover { background: #e8e3dc; }

/* ---------- калькулятор: единая левая линия текста ---------- */
.br-calc { --calc-inset: 23px; }
.br-field__label { padding-left: var(--calc-inset); }
.br-area { padding-left: var(--calc-inset); }
.br-extra { position: relative; padding-left: var(--calc-inset); gap: 12px; }
.br-extra input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}
.br-extra label { padding-left: 0; }

/* ---------- команда ---------- */
.br-team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 44px);
}
.br-member { margin: 0; }
.br-member__photo {
  border-radius: 50%;
  overflow: hidden;
  background: #eceae6;
}
.br-member__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.br-member figcaption { margin-top: 22px; display: flex; flex-direction: column; gap: 7px; }
.br-member__role { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-2); }
.br-member__name { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 1000px) {
  .br-plans { grid-template-columns: 1fr; max-width: 560px; }
  .br-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-stats--light { margin-left: 0; }
}

@media (max-width: 560px) {
  .br-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .br-plan__cta { min-height: 54px; }
}

/* ---------- мобильные переопределения для V9 ---------- */
@media (max-width: 860px) {
  .br-expert__bg { object-position: 30% 30%; height: 46%; }
  .br-hero .br-expert::after {
    background: linear-gradient(180deg,
      rgba(253, 252, 250, 0) 0%,
      rgba(253, 252, 250, 0.28) 30%,
      rgba(253, 252, 250, 0.95) 41%,
      var(--paper) 50%);
  }
  .br-expert__body { width: 100%; padding: 44% 20px 22px; }
}

/* ============================================================
   V10 — меню по центру, ровные строки заголовка,
   плотнее ритм секций, цифры на фото, портфолио в экран
   ============================================================ */

/* ---------- меню равноудалено от логотипа и телефона ---------- */
.br-nav { margin-left: auto; margin-right: auto; }

/* ---------- заголовок героя: равные оптические просветы ---------- */
.br-hero__title { line-height: 1; }
.br-hero__line { display: block; line-height: 1; }
.br-hero__line--em {
  font-size: 1em;
  line-height: 1;
  margin-top: -0.18em;
  margin-bottom: 0.18em;
}

/* ---------- ритм: меньше пустоты между блоками ---------- */
.br-section { padding: clamp(42px, 4.4vw, 78px) 0; }
.br-section-head { margin-bottom: clamp(28px, 3vw, 48px); }

/* ---------- цифры: заходят на фото, как в макете ---------- */
.br-stats--light {
  margin-left: clamp(0px, 14vw, 250px);
  margin-top: calc(-1 * clamp(84px, 11vw, 178px));
}

/* ---------- портфолио: блок помещается в экран ---------- */
.br-cases__cta { margin: clamp(18px, 1.8vw, 26px) 0 clamp(26px, 2.8vw, 44px); }
.br-cases .br-case__media { aspect-ratio: 4 / 5; max-height: 52vh; }
.br-cases .br-case__img { height: 100%; aspect-ratio: auto; }
.br-cases .br-case__meta { margin-top: 14px; }

@media (max-width: 1000px) {
  .br-stats--light { margin-left: 0; margin-top: clamp(24px, 3.4vw, 40px); }
  .br-cases .br-case__media { max-height: none; }
}

@media (max-width: 860px) {
  .br-nav { margin-left: 0; margin-right: 0; }
}

/* страховка от вылезания длинных слов в крупных заголовках */
.br-display, .br-policy h1 { overflow-wrap: break-word; }
.br-policy h1 { font-size: clamp(27px, 5vw, 72px); }

/* ============================================================
   V11 — команда: шесть человек, две строки по три
   ============================================================ */
.br-team {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 56px);
  row-gap: clamp(32px, 3.6vw, 54px);
  /* сетка уже контейнера: круги не раздуваются, блок остаётся в экране */
  max-width: 900px;
}

@media (max-width: 760px) {
  .br-team { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
}

@media (max-width: 560px) {
  .br-team { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 26px; max-width: none; }
  .br-member figcaption { margin-top: 16px; }
  .br-member__name { font-size: 13px; letter-spacing: 0.04em; }
  .br-member__role { font-size: 10.5px; letter-spacing: 0.14em; }
}

/* ============================================================
   V12 — команда по центру, ровные просветы в заголовке героя
   ============================================================ */

/* ---------- команда: портрет и подпись по центру колонки ---------- */
.br-team { max-width: none; }
.br-member { display: flex; flex-direction: column; align-items: center; }
.br-member__photo { width: 100%; max-width: clamp(200px, 19vw, 320px); }
.br-member figcaption { align-items: center; text-align: center; }

@media (max-width: 760px) {
  .br-member__photo { max-width: clamp(180px, 40vw, 300px); }
}
@media (max-width: 560px) {
  .br-member__photo { max-width: 100%; }
}

/* ---------- герой: строка «жить» подтянута к курсивной ---------- */
.br-hero__line--em { margin-bottom: 0.075em; }

/* ============================================================
   V13 — вводный абзац в блоке заявки
   ============================================================ */
.br-contact__lead {
  margin-top: clamp(14px, 1.5vw, 22px);
  max-width: 56ch;
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.62;
  color: var(--grey);
}
.br-contact__lead + .br-form { margin-top: clamp(26px, 2.6vw, 38px); }

@media (max-width: 860px) {
  .br-contact__lead { max-width: none; }
}

/* ============================================================
   V14 — заголовок и вводный абзац блока заявки на всю ширину формы
   ============================================================ */
.br-contact__lead { max-width: none; }

@media (min-width: 1101px) {
  /* кегль подобран так, чтобы строка «о своей идее» занимала ширину формы */
  .br-contact__title { font-size: clamp(56px, 5.7vw, 100px); }
  .br-contact__title span { display: block; }
}

/* ============================================================
   V15 — команда бесконечной каруселью в одну строку
   ============================================================ */
.br-team--marquee {
  display: block;
  max-width: none;
  /* лента идёт от края до края экрана, минуя отступы контейнера */
  margin-left: calc(-1 * var(--pad-x));
  margin-right: calc(-1 * var(--pad-x));
  overflow: hidden;
  /* края растворяются, чтобы портреты не обрубались на границе экрана */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.br-team__line {
  display: flex;
  width: max-content;
  animation: br-team-scroll 64s linear infinite;
}
.br-team__track {
  display: flex;
  flex-shrink: 0;
  gap: clamp(28px, 3.4vw, 64px);
  padding-right: clamp(28px, 3.4vw, 64px);
}
.br-team--marquee .br-member {
  flex: 0 0 auto;
  width: clamp(210px, 20vw, 320px);
}
.br-team--marquee .br-member__photo { max-width: none; }

@keyframes br-team-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* пауза при наведении — чтобы можно было прочитать подпись */
.br-team--marquee:hover .br-team__line { animation-play-state: paused; }

@media (max-width: 860px) {
  .br-team__line { animation-duration: 44s; }
  .br-team--marquee .br-member { width: clamp(170px, 46vw, 230px); }
}

/* без анимации — обычная лента с прокруткой пальцем/трекпадом */
@media (prefers-reduced-motion: reduce) {
  .br-team--marquee { overflow-x: auto; }
  .br-team__line { animation: none; }
  .br-team__track[aria-hidden="true"] { display: none; }
}

/* ============================================================
   V16 — герой: возврат к композиции v6 (ровная граница фон/фото,
   компактная плашка с круглым фото), винный градиент вместо чёрного
   ============================================================ */

/* ---------- фон: тот же характер, что в первой версии, но винный ---------- */
.br-hero {
  background:
    radial-gradient(115% 90% at 14% 16%, #94202d 0%, rgba(148, 32, 45, 0) 60%),
    linear-gradient(158deg, #6f111a 0%, #5a0e16 46%, #420a11 100%);
}

/* ---------- фото интерьера справа, граница ровная (без растворения) ---------- */
.br-hero__media {
  left: 58%;
  -webkit-mask-image: none;
  mask-image: none;
}
.br-hero__media img { object-position: 50% 50%; }
.br-hero__media::after { background: none; }

/* ---------- плашка: белая, компактнее прежней ---------- */
.br-hero .br-expert {
  position: static;
  display: block;
  overflow: visible;
  min-height: 0;
  width: min(600px, 100%);
  padding: clamp(16px, 1.9vh, 24px) clamp(20px, 1.8vw, 28px);
  background: var(--paper);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}
.br-hero .br-expert::after { content: none; }
.br-hero .br-expert__top {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.3vw, 20px);
  min-width: 0;
  flex: initial;
}
.br-expert__photo {
  width: clamp(64px, 6vh, 86px);
  height: clamp(64px, 6vh, 86px);
}
.br-expert__eyebrow { font-size: 10.5px; letter-spacing: 0.2em; }
.br-expert__name { font-size: clamp(22px, 2.4vh, 28px); margin-top: 2px; }

.br-hero .br-expert .br-expert__cta {
  width: 100%;
  min-width: 0;
  margin-top: clamp(13px, 1.5vh, 18px);
  min-height: clamp(44px, 5vh, 52px);
  padding: 0 22px;
  font-size: clamp(10.5px, 1.4vh, 12px);
  letter-spacing: 0.16em;
  text-align: center;
}
.br-expert__note {
  margin-top: clamp(10px, 1.3vh, 14px);
  font-size: clamp(12.5px, 1.6vh, 14px);
  line-height: 1.5;
  color: var(--grey);
}

@media (max-width: 860px) {
  /* герой одной колонкой: фото сверху, текст под ним */
  .br-hero { grid-template-columns: 1fr; }
  .br-hero__media { left: 0; }
  .br-hero__media::after {
    background: linear-gradient(180deg,
      rgba(66, 10, 17, 0.3) 0%,
      rgba(66, 10, 17, 0) 30%,
      rgba(90, 14, 22, 0.7) 72%,
      #4b0c14 100%);
  }
  .br-hero .br-expert { width: 100%; }
}

/* воздух под плашкой: контент должен помещаться в экран целиком */
.br-hero__inner { gap: clamp(18px, 2.6vh, 34px); }

/* ---------- остальные тёмные блоки: тот же винный, без черноты ---------- */
.br-section--dark,
.br-contact__side {
  background:
    radial-gradient(120% 90% at 85% 0%, #94202d 0%, transparent 55%),
    radial-gradient(110% 100% at 0% 100%, #7b1520 0%, transparent 60%),
    #55101a;
}

/* ============================================================
   V17 — в герое вертикальное фото спальни (928×1152)
   ============================================================ */
.br-hero__media img { object-position: 50% 50%; }

@media (max-width: 860px) {
  /* полоса поперёк вертикального кадра — держим в ней кровать, а не голую стену */
  .br-hero__media img { object-position: 50% 62%; }
}

/* ============================================================
   V18 — темнее градиенты, шире фото и плашка в герое
   ============================================================ */

/* ---------- цвет: середина между чёрным v6 и ярким v16 ---------- */
.br-hero {
  background:
    radial-gradient(115% 90% at 14% 16%, #6d1622 0%, rgba(109, 22, 34, 0) 60%),
    linear-gradient(158deg, #4e0d16 0%, #3d0a11 46%, #2b070c 100%);
}
.br-section--dark,
.br-contact__side {
  background:
    radial-gradient(120% 90% at 85% 0%, #6d1622 0%, transparent 55%),
    radial-gradient(110% 100% at 0% 100%, #55101a 0%, transparent 60%),
    #380910;
}

/* ---------- фото интерьера шире: кадр почти не режется (только десктоп — на мобильном фото уже подогнано отдельным блоком выше) ---------- */
@media (min-width: 861px) {
  .br-hero__media { left: 54%; }
  /* кадр сдвинут влево — иначе срезается тумбочка с лампой */
  .br-hero__media img { object-position: 30% 50%; }
}

/* ---------- плашка во всю ширину текстовой колонки ---------- */
.br-hero .br-expert { width: 100%; }

/* ============================================================
   V19 — «Обо мне» и «Студия полного цикла» снова две секции
   ============================================================ */

/* ---------- Обо мне: узкая полоса, портрет слева ---------- */
.br-founder-section { padding-bottom: clamp(48px, 5vw, 88px); }
.br-founder {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
}
.br-founder__photo { max-width: 430px; }
.br-founder__photo img {
  aspect-ratio: 4 / 5;
  /* блок держим невысоким — портрет не должен растягивать секцию */
  max-height: clamp(340px, 58vh, 560px);
  object-position: 50% 22%;
}
.br-founder__body { padding-top: 0; }
.br-founder__name { margin-top: 14px; font-size: clamp(30px, 3.4vw, 52px); }
.br-founder__body .br-quote { margin-top: clamp(20px, 2.2vw, 32px); }

/* ---------- Студия полного цикла: тёмная полоса с цифрами ---------- */
.br-cycle-section { padding: clamp(52px, 5.6vw, 96px) 0; }
.br-cycle__title { font-size: clamp(28px, 3.4vw, 52px); margin-top: 16px; }
.br-cycle-section .br-manifest { align-items: end; }
.br-cycle-section .br-manifest__text {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.br-cycle-section .br-stats { margin-top: clamp(34px, 3.6vw, 62px); }
.br-cycle-section .br-stat { padding: clamp(22px, 2vw, 34px) clamp(20px, 1.8vw, 30px); }
.br-cycle-section .br-stat__num { font-size: clamp(40px, 3.6vw, 64px); }
.br-cycle-section .br-stat__cap { margin-top: 10px; font-size: 13.5px; max-width: 26ch; }

@media (max-width: 860px) {
  .br-founder { grid-template-columns: 1fr; }
  /* кадр остаётся вертикальным: в горизонтальную полосу фигура не помещается */
  .br-founder__photo { max-width: 100%; margin: 0 auto; }
  .br-founder__photo img { aspect-ratio: 4 / 5; max-height: 60vh; }
}

/* ============================================================
   V20 — плашка героя компактнее, заголовок «Студия полного цикла»
   ============================================================ */

/* ---------- плашка: короче, просвет до фото заметнее ---------- */
.br-hero .br-expert { width: calc(100% - clamp(18px, 2.3vw, 44px)); }

/* имя и роль одной строкой — вертикальной пустоты меньше */
.br-hero .br-expert__top { gap: clamp(16px, 1.5vw, 22px); }
.br-expert__name {
  font-size: clamp(23px, 2.7vh, 31px);
  margin-top: 0;
  line-height: 1.15;
}
.br-expert__name span {
  font-family: var(--ff-text);
  font-weight: 400;
  font-size: 0.52em;
  letter-spacing: 0.16em;
  color: var(--grey);
  white-space: nowrap;
}
.br-hero .br-expert .br-expert__cta {
  min-height: clamp(46px, 5.4vh, 56px);
  font-size: clamp(11px, 1.5vh, 12.5px);
}
.br-expert__note { font-size: clamp(13px, 1.75vh, 15px); }

/* ---------- «Студия полного цикла»: один заголовок ---------- */
.br-cycle__title { margin-top: 0; }

/* ============================================================
   V21 — портфолио каруселью, кнопка по центру под лентой
   ============================================================ */
.br-cases--marquee {
  display: block;
  overflow: hidden;
  margin-top: clamp(24px, 2.6vw, 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.br-cases__line {
  display: flex;
  width: max-content;
  animation: br-cases-scroll 78s linear infinite;
}
.br-cases__track {
  display: flex;
  flex-shrink: 0;
  gap: clamp(16px, 1.8vw, 30px);
  padding-right: clamp(16px, 1.8vw, 30px);
}
.br-cases--marquee .br-case { flex: 0 0 auto; width: clamp(230px, 24vw, 380px); }
.br-cases--marquee .br-case__media { aspect-ratio: 4 / 5; max-height: none; }

@keyframes br-cases-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.br-cases--marquee:hover .br-cases__line { animation-play-state: paused; }

/* кнопка — по центру под лентой */
#cases .br-cases__cta {
  display: block;
  width: max-content;
  margin: clamp(28px, 3vw, 48px) auto 0;
}

@media (max-width: 860px) {
  .br-cases__line { animation-duration: 52s; }
  .br-cases--marquee .br-case { width: clamp(200px, 58vw, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  .br-cases--marquee { overflow-x: auto; }
  .br-cases__line { animation: none; }
  .br-cases__track[aria-hidden="true"] { display: none; }
}

/* ---------- страница проекта ---------- */
.br-project { padding-top: clamp(28px, 3vw, 52px); }
.br-project__back {
  display: inline-block;
  margin-bottom: clamp(22px, 2.4vw, 38px);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.br-project__back:hover { color: var(--ink); }
.br-project__title { margin-top: 12px; }
.br-project__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 34px);
  margin: clamp(28px, 3vw, 48px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 2vw, 30px) 0;
}
.br-project__fact span {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 8px;
}
.br-project__fact b { font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; }
.br-project__cover img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  display: block;
}
.br-project__cta {
  margin-top: clamp(32px, 3.4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.br-project__cta p { max-width: 46ch; color: var(--grey); }

@media (max-width: 640px) {
  .br-project__facts { grid-template-columns: 1fr; gap: 18px; }
  .br-project__cta .br-btn { width: 100%; }
}

/* ============================================================
   V22 — центровка подписи кнопки, порядок тарифов в калькуляторе
   ============================================================ */
/* display:block из V21 гасил флекс кнопки и подпись прилипала к верху */
#cases .br-cases__cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   V23 — реальное портфолио (6 проектов), выровненные портреты
   ============================================================ */
/* Кейсов стало 6, но в каждой половине ленты они продублированы,
   чтобы на широких мониторах в стыке не появлялся просвет.
   Половина ленты выросла с 3280 до 4920 px — время подобрано так,
   чтобы скорость осталась прежней (~42 px/с). */
.br-cases__line { animation-duration: 117s; }

@media (max-width: 860px) {
  .br-cases__line { animation-duration: 78s; }
}

/* ============================================================
   V24 — страница проекта: описание и галерея кадров
   ============================================================ */
.br-project__about {
  margin-top: clamp(30px, 3.2vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3.4vw, 64px);
  align-items: start;
}
.br-project__lead {
  font-family: var(--ff-display);
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.25;
  margin: 0;
}
.br-project__text p { margin: 0 0 16px; color: var(--grey); }
.br-project__text p:last-child { margin-bottom: 0; }

/* Кадры разной пропорции — поэтому колонки, а не сетка:
   так ничего не обрезается и не остаётся дыр в рядах. */
.br-project__gallery {
  margin-top: clamp(34px, 3.6vw, 62px);
  column-count: 3;
  column-gap: clamp(12px, 1.4vw, 24px);
}
.br-shot {
  margin: 0 0 clamp(12px, 1.4vw, 24px);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.br-shot img { width: 100%; height: auto; display: block; }

.br-project__cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

@media (max-width: 1100px) {
  .br-project__gallery { column-count: 2; }
}
@media (max-width: 700px) {
  .br-project__about { grid-template-columns: 1fr; }
  .br-project__gallery { column-count: 1; }
  .br-project__cta-btns { width: 100%; }
  .br-project__cta-btns .br-btn { width: 100%; }
}

/* ============================================================
   V25 — перекомпоновка страницы проекта: обложка не растягивается
   ============================================================ */
/* Обложки клиента идут от 446 до 1024 px по ширине. В V21 обложка
   занимала всю ширину контейнера (на 1440 это 1296 px), и файл на
   446 px растягивался почти втрое. Теперь колонка с обложкой равна
   ширине самого файла (--cover-w выставляется из DATA скриптом)
   и не больше 48% ширины — рядом становится текстовая колонка. */
.br-project__top {
  display: grid;
  grid-template-columns: minmax(0, min(var(--cover-w, 640px), 48%)) minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 66px);
  align-items: start;
  margin-top: clamp(26px, 2.8vw, 46px);
}
.br-project__cover { margin: 0; }
/* object-fit: cover из V21 отменяем — кадр показываем целиком */
.br-project__cover img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: fill;
  display: block;
}
.br-project__info { min-width: 0; }
.br-project__top .br-project__facts {
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 clamp(20px, 2.2vw, 32px);
  padding: 0 0 clamp(18px, 2vw, 26px);
  border-top: 0;
}
.br-project__top .br-project__fact span { margin-bottom: 5px; }
.br-project__top .br-project__lead { margin-bottom: clamp(16px, 1.6vw, 22px); }

/* Галерея: кадр тоже не растягиваем выше натуральной ширины.
   В «Неоклассике» и «Минимализме» исходники по 300–370 px, при
   растяжении на всю колонку они мылят сильнее всего. */
.br-shot img {
  max-width: var(--shot-w, none);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1100px) {
  .br-project__top {
    grid-template-columns: minmax(0, min(var(--cover-w, 640px), 54%)) minmax(0, 1fr);
  }
}
@media (max-width: 860px) {
  .br-project__top { grid-template-columns: 1fr; }
  .br-project__cover img { max-width: var(--cover-w, 100%); margin: 0 auto; }
}
/* Текстовая колонка становится широкой, когда обложка узкая, —
   ограничиваем длину строки, иначе читать неудобно */
.br-project__top .br-project__lead { max-width: 24ch; }
.br-project__top .br-project__text { max-width: 62ch; }

/* ============================================================
   V21 — мобильный герой: фото фоном на весь экран, текст поверх
   (раньше на телефонах фото и текст шли отдельными блоками друг
   под другом — первый экран не помещался целиком, а добрая
   половина страницы была просто фотографией без текста. Теперь
   так же, как на десктопе: фото — подложка на всю высоту блока,
   текст и плашка поверх неё, всё умещается в один экран)
   ============================================================ */
@media (max-width: 860px) {
  .br-hero__media {
    position: absolute;
    inset: 0;
    order: 0;
    min-height: 0;
    z-index: 0;
  }
  .br-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 28%;
  }
  .br-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
      rgba(43, 7, 12, 0.05) 0%,
      rgba(43, 7, 12, 0.2) 28%,
      rgba(43, 7, 12, 0.6) 50%,
      rgba(43, 7, 12, 0.92) 70%,
      #2b070c 88%);
  }
  .br-hero__inner {
    position: relative;
    z-index: 2;
    min-height: calc(100svh - var(--header-h));
  }
}
