/* Сайт клуба С7 — стиль по брендбуку 07.10.2026 (проекты/c7/бренд/).
   Синий 60 % · бумага и камень 30 % · латунь 10 %. Углы прямые, тени не используем. */
:root {
  --ground: #0C1626; --surface: #13213A; --surface-deep: #08101C;
  --line: #2C3B4D; --line-gilt: #7A6440;
  --ink: #EFE8DC; --ink-muted: #9EA6B4; --gilt: #D9C29A;
  --accent: #C2A06A; --accent-strong: #D6B886; --on-accent: #0C1626; --focus: #EBD9B4;
  --danger: #E59A8B; --navy-900: #0C1626; --limestone-200: #CDBFA8; --ivory-50: #F1EBE0;
  --font-display: "Prata", "Bodoni MT", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px; --space-7: 104px;
  --gap-panel: 6px;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* старые имена из прежней вёрстки — на страницах форматов они вписаны в разметку */
  --gold: var(--accent); --gold-light: var(--gilt); --muted: var(--ink-muted); --bg: var(--ground); --card: var(--surface);
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--ground); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 28px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── типографика ───────────────────────────────────────── */
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.h-hero, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 400; color: var(--gilt); text-wrap: balance; }
.h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.1; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
.h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.25; color: var(--ink); }
.motto { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; }
.lead { font-family: var(--font-serif); font-weight: 500; font-size: clamp(19px, 1.9vw, 22px); line-height: 1.45; max-width: 36em; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.numeral { font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--gilt); line-height: 1; }
.star { display: inline-block; width: 14px; height: 14px; background: var(--accent); flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpolygon points='0,-10 1.82,-3.78 7.82,-6.23 4.09,-0.93 9.75,2.23 3.28,2.62 4.34,9.01 0,4.2 -4.34,9.01 -3.28,2.62 -9.75,2.23 -4.09,-0.93 -7.82,-6.23 -1.82,-3.78'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpolygon points='0,-10 1.82,-3.78 7.82,-6.23 4.09,-0.93 9.75,2.23 3.28,2.62 4.34,9.01 0,4.2 -4.34,9.01 -3.28,2.62 -9.75,2.23 -4.09,-0.93 -7.82,-6.23 -1.82,-3.78'/%3E%3C/svg%3E") center / contain no-repeat; }
.rule { display: flex; align-items: center; gap: var(--space-3); max-width: 240px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line-gilt); }
.rule--center { margin-inline: auto; }

/* ── кнопки ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-5);
  border: 1px solid var(--accent); background: transparent; color: var(--accent); font: 500 13px/16px var(--font-sans);
  letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.btn:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn--sm { min-height: 40px; padding: 0 var(--space-4); }
.link { display: inline-flex; gap: var(--space-2); align-items: center; font: 500 13px/16px var(--font-sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); padding-bottom: 6px; border-bottom: 1px solid var(--line-gilt); transition: color .3s, border-color .3s; }
.link:hover { color: var(--accent-strong); border-color: var(--accent); }
.link .arr { transition: transform .4s var(--ease); }
.link:hover .arr { transform: translateX(4px); }

/* ── фото: фокус приходит из data-focus → style="object-position" ── */
.ph { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04) sepia(.07); transition: filter .6s, transform 1.2s var(--ease); }
a:hover .ph, .tile:hover .ph { filter: saturate(.9) contrast(1.04) sepia(.07) brightness(1.07); }

/* ── шапка ────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(12, 22, 38, .94); border-bottom: 1px solid transparent; transition: border-color .4s, background-color .4s; }
@supports (backdrop-filter: blur(8px)) { .hdr { background: rgba(12, 22, 38, .82); backdrop-filter: blur(12px); } }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 84px; }
.hdr__logo img { height: 50px; width: auto; }
.hdr__logo .mono { display: none; height: 40px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.nav a:not(.btn) { font: 500 12.5px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding: 8px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.burger { display: none; background: none; border: 1px solid var(--line-gilt); color: var(--ink); font: 500 12px/16px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; height: 40px; padding: 0 16px; cursor: pointer; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; align-items: center; }
  .hdr__row { height: 68px; }
  .hdr__logo img.full { display: none; }
  .hdr__logo .mono { display: block; }
}
/* мобильное меню */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--ground); display: flex; flex-direction: column; padding: 20px var(--gutter) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.menu__top img { height: 40px; }
.menu nav { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; }
.menu nav a { font-family: var(--font-display); font-size: 30px; line-height: 1.35; color: var(--gilt); padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 32px; align-self: flex-start; }

/* ── разделы ──────────────────────────────────────────── */
.sec { padding-block: var(--space-7); }
.sec--tight { padding-block: var(--space-6); }
.sec--deep { background: var(--surface-deep); }
.sec-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); max-width: 760px; }
.sec-head .lead { margin-top: var(--space-3); }
.sec-head--row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
@media (max-width: 720px) { .sec { padding-block: var(--space-6); } .sec-head { margin-bottom: var(--space-5); } }

/* табличка с двойной рамкой */
.plaque { position: relative; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-3); padding: var(--space-5); }
.plaque::before, .plaque::after { content: ""; position: absolute; pointer-events: none; border: 1px solid var(--line-gilt); }
.plaque::before { inset: 10px; }
.plaque::after { inset: 14px; opacity: .45; }
.plaque > * { position: relative; z-index: 1; }

/* ── первый экран: панно ──────────────────────────────── */
.hero { padding-top: var(--space-5); padding-bottom: var(--space-7); }
.panno { display: grid; gap: var(--gap-panel); grid-template-columns: 1fr 1.3fr 1fr; grid-template-rows: clamp(170px, 19vw, 240px) clamp(300px, 30vw, 380px) clamp(170px, 19vw, 240px);
  grid-template-areas: "a b c" "d p e" "f g h"; }
.panno .tile { position: relative; overflow: hidden; margin: 0; background: var(--surface); }
.panno .tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 12px; font-size: 13px; line-height: 18px; color: #EFE8DC;
  background: linear-gradient(to top, rgba(12, 22, 38, .88), rgba(12, 22, 38, 0)); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.panno .tile:hover figcaption, .panno .tile:focus-within figcaption { opacity: 1; transform: none; }
.panno .t1 { grid-area: a; } .panno .t2 { grid-area: b; } .panno .t3 { grid-area: c; }
.panno .t4 { grid-area: d; } .panno .t5 { grid-area: e; } .panno .t6 { grid-area: g; }
.panno .plaque { grid-area: p; padding: var(--space-5) var(--space-4); }
.panno .plaque .lockup { width: min(200px, 70%); height: auto; }
.panno .dirs { grid-area: f; background: var(--limestone-200); color: var(--navy-900); display: flex; align-items: flex-end; padding: var(--space-4); font-family: var(--font-display); font-size: clamp(17px, 1.7vw, 22px); line-height: 1.3; }
.panno .next { grid-area: h; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-2); padding: var(--space-4); }
.panno .next .h3 { font-size: clamp(18px, 1.6vw, 22px); }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; margin-top: var(--space-2); }
@media (max-width: 860px) {
  .panno { grid-template-columns: 1fr 1fr; grid-template-rows: auto 220px 220px 180px; grid-template-areas: "p p" "a d" "b e" "f h"; }
  .panno .t3, .panno .t6 { display: none; }
  .panno .plaque { padding: var(--space-6) var(--space-4); }
}
@media (max-width: 480px) { .panno { grid-template-rows: auto 180px 180px auto; } .panno .dirs, .panno .next { min-height: 160px; } }

/* ── философия ────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-6); align-items: start; }
.split > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-5); } }

/* аудитории клуба */
.trio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-panel); }
.trio > div { background: var(--surface); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.trio p:last-child { color: var(--ink); opacity: .86; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* форматы — указатель с линиями */
.index { border-top: 1px solid var(--line); }
.index__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: var(--space-4); align-items: baseline; padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--line); transition: background-color .4s; }
.index__row:hover { background: var(--surface); }
.index__row .h3 { font-size: clamp(20px, 2vw, 24px); }
.index__row .arr { color: var(--accent); transition: transform .4s var(--ease); }
a.index__row:hover .arr { transform: translateX(6px); }
@media (max-width: 720px) { .index__row { grid-template-columns: 1fr auto; } .index__row p { grid-column: 1 / -1; grid-row: 2; } }

/* главный формат — особняк */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap-panel); }
.feature__ph { position: relative; min-height: 460px; overflow: hidden; }
.feature__ph img { position: absolute; inset: 0; }
.feature .plaque { align-items: flex-start; text-align: left; padding: var(--space-6) var(--space-5); gap: var(--space-4); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature__ph { min-height: 300px; } }

/* ── календарь ─────────────────────────────────────────── */
.cal { border-top: 1px solid var(--line); }
.cal__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--line); transition: background-color .4s; }
.cal__row:hover { background: var(--surface); }
.cal__date { display: flex; align-items: baseline; gap: 10px; }
.cal__date .numeral { font-size: 40px; }
.cal__date small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); line-height: 1.3; }
.cal__row .h3 { font-size: clamp(19px, 1.8vw, 23px); }
.cal__row.is-past .h3, .cal__row.is-past .numeral { color: var(--ink-muted); }
.cal__row.is-next { background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.chip--on { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) { .cal__row { grid-template-columns: 88px 1fr; } .cal__row .chip { grid-column: 2; justify-self: start; } .cal__date { flex-direction: column; gap: 4px; } .cal__date .numeral { font-size: 34px; } }

/* ── хроника на главной: плитки разного размера ─────────── */
.chron { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 210px); gap: var(--gap-panel); }
.chron .tile { position: relative; overflow: hidden; display: block; background: var(--surface); }
.chron .tile:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.chron .tile:nth-child(2) { grid-column: span 5; grid-row: span 2; }
.chron .tile:nth-child(3) { grid-column: span 4; grid-row: span 2; }
.chron .tile:nth-child(4) { grid-column: span 4; grid-row: span 2; }
.chron .tile:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(to top, rgba(8, 16, 28, .92) 10%, rgba(8, 16, 28, 0)); color: #EFE8DC; }
.cap .h3 { color: #EFE8DC; font-size: clamp(18px, 1.7vw, 24px); }
.cap .eyebrow { color: #D9C29A; }
.cap .small { color: #C9CDD4; }
@media (max-width: 860px) { .chron { grid-auto-rows: 160px; } .chron .tile:nth-child(n) { grid-column: span 6; grid-row: span 2; } .chron .tile:nth-child(1) { grid-column: span 12; } }
@media (max-width: 520px) { .chron .tile:nth-child(n) { grid-column: span 12; grid-row: span 2; } }

/* ── страница «Встречи»: архив-хроника ─────────────────── */
.page-head { padding-top: var(--space-6); padding-bottom: var(--space-5); display: grid; gap: var(--space-3); }
.filters { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.filters button { font-family: var(--font-sans); background: none; cursor: pointer; }
.filters button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.up { display: grid; gap: var(--gap-panel); }
.up__row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: var(--space-5); align-items: center; padding: var(--space-5); background: var(--surface); transition: background-color .4s; }
.up__row:hover { background: #172843; }
.up__row .numeral { font-size: 56px; }
@media (max-width: 720px) { .up__row { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-4); } }
.year { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-7) 0 var(--space-5); }
.year .numeral { font-size: clamp(56px, 9vw, 112px); color: transparent; -webkit-text-stroke: 1px var(--line-gilt); }
@supports not (-webkit-text-stroke: 1px red) { .year .numeral { color: var(--line-gilt); } }
.year::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.year small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
/* разворот: коллаж из трёх фото + текст */
.spread { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-panel); margin-bottom: var(--space-6); }
.spread.is-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.spread.is-flip .spread__ph { order: 2; }
.spread__ph { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--gap-panel); height: clamp(340px, 34vw, 460px); }
.spread__ph a { position: relative; overflow: hidden; background: var(--surface); }
.spread__ph a:first-child { grid-row: span 2; }
.spread__txt { background: var(--surface); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); justify-content: flex-end; }
.spread__txt .numeral { font-size: 64px; }
.more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 16, 28, .62); font: 500 13px/16px var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: #EFE8DC; }
@media (max-width: 860px) { .spread, .spread.is-flip { grid-template-columns: 1fr; } .spread.is-flip .spread__ph { order: 0; } .spread__ph { height: 340px; } }
/* «кирпичная кладка»: фото без обрезки по высоте, плашки без фото */
.masonry { columns: 3 300px; column-gap: var(--space-4); margin-bottom: var(--space-6); }
.masonry > * { break-inside: avoid; margin-bottom: var(--space-4); }
.ecard { display: block; background: var(--surface); }
.ecard__ph { position: relative; overflow: hidden; }
.ecard__ph.o-p { aspect-ratio: 4 / 5; } .ecard__ph.o-s { aspect-ratio: 1; } .ecard__ph.o-l { aspect-ratio: 3 / 2; }
.ecard__body { padding: var(--space-4); display: flex; flex-direction: column; gap: 6px; }
.ecard--text { position: relative; padding: var(--space-5) var(--space-4); }
.ecard--text::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line-gilt); opacity: .55; pointer-events: none; }
.ecard--text .numeral { font-size: 44px; margin-bottom: var(--space-2); }
.ecard:hover .h3 { color: var(--gilt); }
.ecard .h3 { transition: color .3s; }

/* ── страница встречи ──────────────────────────────────── */
.ev-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-6); align-items: center; padding-top: var(--space-6); padding-bottom: var(--space-6); }
.ev-hero__txt { display: flex; flex-direction: column; gap: var(--space-3); }
.ev-meta { display: grid; gap: 4px; padding: var(--space-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ev-hero__ph { position: relative; overflow: hidden; background: var(--surface); }
.ev-hero__ph.o-p { aspect-ratio: 4 / 5; } .ev-hero__ph.o-s { aspect-ratio: 1; } .ev-hero__ph.o-l { aspect-ratio: 4 / 3; }
.ev-hero__ph::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(217, 194, 154, .55); pointer-events: none; }
.ev-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }
@media (max-width: 860px) { .ev-hero { grid-template-columns: 1fr; gap: var(--space-5); } }
/* галерея встречи — ровная сетка: все кадры одного размера 3:2, обрезка по краям одинаковая,
   без растягивания; точка фокуса держит головы в кадре; афиша — целиком на поле фона.
   Целиком фото — в просмотре по клику (правило Антона 08.10.2026) */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-panel); }
.gallery button { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border: 0; padding: 0; background: var(--surface); cursor: zoom-in; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04) sepia(.07); transition: filter .5s; }
.gallery img.is-poster { object-fit: contain; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* чётное число фото, не кратное трём (2, 4, 8…) — без одинокой плитки в последнем ряду */
.gallery button:hover img { filter: saturate(.9) contrast(1.04) sepia(.07) brightness(1.08); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose { max-width: 720px; }
.prose p, .prose li { margin-bottom: 14px; }
.prose--pre { white-space: pre-line; }
.trio-ev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 860px) { .trio-ev { grid-template-columns: 1fr; } }
/* просмотр фото */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(8, 16, 28, .96); display: none; align-items: center; justify-content: center; padding: 56px 64px; }
.lb.is-open { display: flex; }
.lb img { width: 100%; height: 100%; object-fit: contain; }
.lb button { position: absolute; background: none; border: 1px solid var(--line-gilt); color: var(--ink); width: 48px; height: 48px; font: 400 22px/1 var(--font-sans); cursor: pointer; }
.lb .lb__x { top: 16px; right: 16px; } .lb .lb__p { left: 12px; top: 50%; translate: 0 -50%; } .lb .lb__n { right: 12px; top: 50%; translate: 0 -50%; }
.lb__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: .2em; color: var(--ink-muted); }
@media (max-width: 600px) { .lb { padding: 64px 8px; } .lb .lb__p, .lb .lb__n { top: auto; bottom: 8px; translate: none; } }

/* ── страницы с текстом (форматы, правила, код) ─────────── */
.page-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6); align-items: center; padding-top: var(--space-6); padding-bottom: var(--space-6); }
.page-hero__txt { display: flex; flex-direction: column; gap: var(--space-3); }
.page-hero__ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.page-hero__ph::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(217, 194, 154, .55); pointer-events: none; }
@media (max-width: 860px) { .page-hero { grid-template-columns: 1fr; } .page-hero__ph { aspect-ratio: 3 / 2; } }
.c7-prose { max-width: 760px; margin: 0 auto; }
/* длинное слово в заголовке юридической страницы («конфиденциальности») на 360 px вылезало за экран — переносим по слогам (карточка 2026-10-07-035) */
.c7-prose h1, .c7-prose .h1 { hyphens: auto; overflow-wrap: break-word; }
.c7-prose h2 { font-family: var(--font-display); font-weight: 400; color: var(--gilt); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin: 56px 0 16px; }
.c7-prose h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); font-size: 22px; margin: 32px 0 10px; }
.c7-prose p, .c7-prose li, .card p, .card li, .trio li { margin-bottom: 12px; }
.c7-prose b, .c7-prose strong, .card b, .card strong { font-weight: 500; color: var(--gilt); }
.c7-prose ul, .c7-prose ol, .card ul, .card ol, .trio ul { padding-left: 22px; margin-bottom: 0; }
.c7-prose li::marker, .card li::marker, .trio li::marker { color: var(--accent); }
.trio li:last-child { margin-bottom: 0; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.c7-prose a:not(.btn), .prose a:not(.btn) { color: var(--accent); border-bottom: 1px solid var(--line-gilt); }
.c7-prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; display: block; overflow-x: auto; }
.c7-prose td, .c7-prose th { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; font-size: 15px; line-height: 24px; }
.c7-prose th { color: var(--gilt); font-weight: 500; width: 32%; }
.card-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap-panel); }
@media (min-width: 760px) { .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.box { background: var(--surface); padding: var(--space-4); }
.quote { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; color: var(--gilt); text-align: center; max-width: 760px; margin: 0 auto; }
.quote cite { display: block; margin-top: var(--space-3); font: 400 14px/22px var(--font-sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }

/* ── формы ────────────────────────────────────────────── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
.form .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field textarea, .field select { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-gilt); border-radius: 0; padding: 8px 0; min-height: 44px; width: 100%; transition: border-color .3s; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.field ::placeholder { color: #6E7685; }
.chk { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.chk a { color: var(--accent); border-bottom: 1px solid var(--line-gilt); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ── подвал ───────────────────────────────────────────── */
.join { background: var(--surface-deep); border-top: 1px solid var(--line); padding-block: var(--space-7); }
.join__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-6); align-items: start; }
.join__intro { display: flex; flex-direction: column; gap: var(--space-3); position: relative; }
.tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-5); }
.tabs button { height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink-muted); font: 500 11.5px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: color .3s, border-color .3s; }
.tabs button.on { border-color: var(--accent); color: var(--accent); }
@media (max-width: 960px) { .join__grid { grid-template-columns: 1fr; } }
.ftr { background: var(--surface-deep); border-top: 1px solid var(--line); padding-top: var(--space-6); padding-bottom: var(--space-4); }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--space-5); }
.ftr__brand { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.ftr__brand img.lockup { width: 210px; height: auto; }
.ftr h4 { font: 500 12px/16px var(--font-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3); }
.ftr ul { list-style: none; display: grid; gap: 10px; }
.ftr ul a { color: var(--ink); opacity: .85; font-size: 15px; transition: color .3s, opacity .3s; }
.ftr ul a:hover { color: var(--accent); opacity: 1; }
.ftr__bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }

/* ── появление при прокрутке: проявиться и встать на место ── */
html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js .panno > * { opacity: 0; transition: opacity 1s var(--ease); transition-delay: var(--d, 0s); }
html.js .panno > .tile .ph { transform: scale(1.04); }
html.js .panno.in > * { opacity: 1; }
html.js .panno.in > .tile .ph { transform: none; }
html.js .panno .plaque::before { clip-path: inset(0 100% 100% 0); transition: clip-path 1.4s var(--ease) .5s; }
html.js .panno.in .plaque::before { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal], html.js .panno > *, html.js .panno .ph, html.js .panno .plaque::before { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .ph, .link .arr, .index__row .arr { transition: none; }
}

/* ── старая разметка страниц форматов и правил (container, section-head, card, c7-form) ── */
.container { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
main > section:not([class]) { padding-block: var(--space-6); }
section.alt { background: var(--surface-deep); padding-block: var(--space-6); }
.section-head { max-width: 760px; margin: 0 auto var(--space-5); text-align: center; display: flex; flex-direction: column; gap: var(--space-2); align-items: center; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; color: var(--gilt); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.section-head p { color: var(--ink-muted); }
.card { background: var(--surface); padding: var(--space-4); }
.card h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); margin: 0 0 10px; }
.card .h3 { margin: 0 0 10px; }
.serif { font-family: var(--font-serif); }
.c7-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
.c7-form .wide { grid-column: 1 / -1; }
.c7-form input:not([type=checkbox]), .c7-form textarea, .c7-form select { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-gilt); padding: 8px 0; min-height: 44px; width: 100%; }
.c7-form input:focus, .c7-form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.c7-form label.chk { grid-column: 1 / -1; }
@media (max-width: 640px) { .c7-form { grid-template-columns: 1fr; } }
.container.c7-prose { max-width: calc(760px + 2 * var(--gutter)); }

/* ── партнёры формата: три плашки под кнопкой + полноширинный модуль (карточка 2026-10-07-036) ── */
.c7-partner { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: var(--space-5); align-items: center;
  background: var(--surface); padding: var(--space-4); margin-bottom: var(--space-3); }
.c7-partner:last-child { margin-bottom: 0; }
.c7-partner .ag-logo { background: #fff; border-radius: 4px; padding: 14px; }
.c7-partner__name { font-family: var(--font-display); font-weight: 400; color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.c7-partner__desc { color: var(--ink-muted); margin-bottom: 14px; }
.c7-partner__desc:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .c7-partner { grid-template-columns: 1fr; }
  .c7-partner .ag-logo { width: 148px; }
}

/* ── страницы форматов «Особняк» и «Инвест Гостиная» (ТЗ Андрея 08.10.2026) ── */
.hero-support { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding-top: var(--space-2); }
.arcoo-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--gilt); transition: color .3s; }
.arcoo-mark:hover { color: var(--accent-strong); }
.arcoo-mark svg { width: 34px; height: 27px; flex: none; }
.arcoo-mark span { display: flex; flex-direction: column; line-height: 1.15; }
.arcoo-mark b { font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: .02em; }
.arcoo-mark small { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-muted); }
.keynote { border-left: 1px solid var(--line-gilt); padding: 4px 0 4px var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }

/* анонс ближайшей встречи */
.announce { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap-panel); }
.announce--noph { grid-template-columns: 1fr; }
.announce__ph { position: relative; min-height: 380px; overflow: hidden; display: block; background: var(--surface); }
.announce__ph img { position: absolute; inset: 0; }
.announce__body { align-items: flex-start; text-align: left; justify-content: center; padding: var(--space-6) var(--space-5); gap: var(--space-3); }
.announce__date { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.announce__date .numeral { font-size: clamp(56px, 6vw, 80px); }
.announce__month { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.announce__actions { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; margin-top: var(--space-2); }
@media (max-width: 860px) { .announce { grid-template-columns: 1fr; } .announce__ph { min-height: 240px; } .announce__body { padding: var(--space-5) var(--space-4); } }

/* цели: шесть плашек со звездой */
.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-panel); }
.goals__item { background: var(--surface); padding: var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.goals__item .star { margin-bottom: var(--space-2); }
@media (max-width: 860px) { .goals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .goals { grid-template-columns: 1fr; } }

/* список «кто»: строки с волосяными линиями */
.who { list-style: none; border-top: 1px solid var(--line); }
.who li { font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 23px); line-height: 1.3; color: var(--ink); padding: var(--space-3) 0 var(--space-3) 30px; border-bottom: 1px solid var(--line); position: relative; }
.who li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--accent); }

/* экосистема из трёх элементов */
.eco { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-panel); }
.eco__item { background: var(--surface); padding: var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.eco__item .numeral { font-size: 48px; color: var(--accent); }
.eco__item--link { transition: background-color .4s; }
.eco__item--link:hover { background: #172843; }
@media (max-width: 860px) { .eco { grid-template-columns: 1fr; } }

/* что вы получаете */
.gains { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-6); border-top: 1px solid var(--line); }
.gains li { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.gains b { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2vw, 24px); color: var(--gilt); }
.gains span { color: var(--ink-muted); }
@media (max-width: 720px) { .gains { grid-template-columns: 1fr; } }

/* принципы */
.rules-list { list-style: none; border-top: 1px solid var(--line); }
.rules-list li { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-4); align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.rules-list b { font-family: var(--font-display); font-weight: 400; font-size: 21px; color: var(--gilt); }
.rules-list span { color: var(--ink); opacity: .88; }
@media (max-width: 560px) { .rules-list li { grid-template-columns: 1fr; gap: 4px; } }

/* арт-среда */
.art-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-panel); }
.art-list__item { background: var(--surface); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
@media (max-width: 560px) { .art-list { grid-template-columns: 1fr; } }

/* результаты: строки «кто — что» */
.index__row--2 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.index__row--2 p { color: var(--ink); opacity: .88; }
@media (max-width: 720px) { .index__row--2 { grid-template-columns: 1fr; } .index__row--2 p { grid-row: auto; } }

/* владельцам зданий: ценность и три шага */
.owner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-6); align-items: start; padding: var(--space-6) var(--space-5); background: var(--surface); position: relative; }
.owner::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-gilt); pointer-events: none; }
.owner > * { position: relative; }
.owner__intro { display: flex; flex-direction: column; gap: var(--space-3); }
.owner__steps { list-style: none; display: flex; flex-direction: column; }
.owner__steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.owner__steps li:last-child { border-bottom: 0; }
.owner__steps .numeral { font-size: 36px; color: var(--accent); }
.owner__steps .h3 { margin-bottom: 6px; }
@media (max-width: 860px) { .owner { grid-template-columns: 1fr; gap: var(--space-5); padding: var(--space-5) var(--space-4); } }

/* формат участия: четыре роли */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-panel); }
.roles__item { background: var(--surface); padding: var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); border-top: 2px solid var(--accent); }
.roles__item .h3 { color: var(--gilt); }
.roles__note { margin-top: var(--space-4); max-width: 640px; }
@media (max-width: 960px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }

/* как устроен вечер: шаги по порядку — строками: номер, название, текст */
.steps { list-style: none; border-top: 1px solid var(--line); }
.steps__item { display: grid; grid-template-columns: 88px minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-4); align-items: baseline; padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--line); }
.steps__item .numeral { font-size: 40px; color: var(--accent); }
.steps__item > div { display: contents; }
.steps__item--key { background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); }
@media (max-width: 760px) { .steps__item { grid-template-columns: 56px minmax(0, 1fr); } .steps__item p { grid-column: 2; } .steps__item .numeral { font-size: 32px; } }

/* финальная табличка */
.final { padding: var(--space-6) var(--space-5); gap: var(--space-4); }
/* анонс без фото: дата отдельной колонкой слева */
.announce--noph .announce__body { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); column-gap: var(--space-6); align-items: start; }
.announce--noph .announce__date { grid-row: 1 / span 6; flex-direction: column; gap: 8px; padding-right: var(--space-5); border-right: 1px solid var(--line); align-self: stretch; }
.announce--noph .announce__date .numeral { font-size: clamp(72px, 8vw, 112px); }
@media (max-width: 720px) { .announce--noph .announce__body { grid-template-columns: 1fr; } .announce--noph .announce__date { grid-row: auto; border-right: 0; padding-right: 0; } }

/* манифест «Императорского кода»: первый абзац — вводный (текст из админки, imp.body) */
.imp-body p { margin-bottom: 20px; }
.imp-body p:first-child { font-family: var(--font-serif); font-weight: 500; font-size: clamp(19px, 1.9vw, 22px); line-height: 1.45; }
.imp-body h2 { font-family: var(--font-display); font-weight: 400; color: var(--gilt); font-size: 28px; margin: 40px 0 14px; }
