/* Maison Sauvage, презентация v3. Бетон, графит и красный: как сам магазин. */
:root {
  --paper: #f7f6f3;
  --panel: #ebe8e3;
  --concrete: #d6d1ca;
  --stone: #746e67;
  --ink: #26221f;
  --night: #1f1c1a;
  --night-text: #ede8e1;
  --night-muted: #a59d93;
  --rouge: #a3141e;
  --amber: #d8a45a;
  --line: rgba(38, 34, 31, .14);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }

/* страница = слайд */
.page { position: relative; padding: clamp(64px, 9vw, 128px) clamp(20px, 6vw, 96px) clamp(72px, 9vw, 128px); }
.page.panel { background: var(--panel); }
.page.night { background: var(--night); color: var(--night-text); }
.inner { max-width: 1120px; margin: 0 auto; }
.pno { position: absolute; right: clamp(20px, 6vw, 96px); bottom: 26px; font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; }
.night .pno { color: var(--night-muted); }

h1, h2, h3, .serif { font-family: "Prata", "Didot", "Bodoni 72", Georgia, serif; font-weight: 400; }
h2 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.08; letter-spacing: -.01em; margin: 0; max-width: 17ch; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin: 0 0 10px; }
.lede { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; color: var(--stone); max-width: 42ch; margin: 22px 0 0; }
.night .lede, .night .muted { color: var(--night-muted); }
.muted { color: var(--stone); }
.small { font-size: 14px; line-height: 1.5; }
p { margin: 0 0 14px; max-width: 62ch; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.night ul.plain li { border-color: rgba(237, 232, 225, .14); }
.rouge { color: var(--rouge); }
.amber { color: var(--amber); }

/* сетка */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 5vw, 56px); align-items: start; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: 1 / -1; }

/* обложка */
.cover { min-height: 100svh; display: flex; align-items: flex-end; color: #f4efe7; background: #1f1c1a url(img/fasad-vecher.jpg) center 40% / cover no-repeat; position: relative; }
.cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 16, .15) 0%, rgba(20, 18, 16, .25) 45%, rgba(20, 18, 16, .88) 100%); }
.cover .inner { position: relative; width: 100%; }
.wordmark { font-family: "Prata", Georgia, serif; font-size: clamp(64px, 15vw, 210px); line-height: .88; letter-spacing: -.02em; margin: 0; }
.cover .sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: clamp(24px, 4vw, 44px); padding-top: 18px; border-top: 1px solid rgba(244, 239, 231, .35); font-size: clamp(15px, 1.6vw, 18px); }
.cover .sub span:last-child { color: rgba(244, 239, 231, .75); }

/* большие цифры */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 5vw, 60px); }
.fig .n { font-family: "Prata", Georgia, serif; font-size: clamp(32px, 4.2vw, 54px); line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.fig .t { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--stone); max-width: 24ch; }
.night .fig .t { color: var(--night-muted); }

/* история */
.story { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.story li { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.story .when { font-family: "Prata", Georgia, serif; font-size: 20px; line-height: 1.3; }
.story li.turn .when { color: var(--rouge); }
.verdict { font-family: "Prata", Georgia, serif; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; margin: 0; max-width: 22ch; }

/* январь большими буквами */
.shout { font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.015em; margin: 0; }
.shout span { display: block; }
.after { font-family: "Prata", Georgia, serif; font-size: clamp(24px, 3vw, 36px); margin: clamp(36px, 5vw, 56px) 0 0; color: var(--amber); }

/* фото */
.ph { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; background: var(--concrete); }
.ph.land { aspect-ratio: 3 / 2; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cap { font-size: 13px; line-height: 1.45; color: var(--stone); margin-top: 10px; }
.night .cap { color: var(--night-muted); }

/* графики */
.chart { width: 100%; max-width: 680px; display: block; overflow: visible; }
.chart text { font-family: "Manrope", system-ui, sans-serif; font-size: 10px; fill: var(--stone); }
.chart .lbl { fill: var(--ink); font-weight: 700; }
.chart .lbl-hi { fill: var(--rouge); font-weight: 700; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--ink); }
.chart .bar-soft { fill: var(--concrete); }
.chart .bar-hi { fill: var(--rouge); }
.chart .bar-out { fill: none; stroke: var(--rouge); stroke-width: 1.2; stroke-dasharray: 2 2; }
.chart .came { fill: var(--concrete); }
.chart .buy { fill: var(--ink); }
.chart .gap { fill: var(--line); }
.chart .avg { stroke: var(--rouge); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .l-pes { stroke: var(--stone); } .chart .l-std { stroke: var(--ink); } .chart .l-opt { stroke: var(--rouge); }
.chart-h { font-weight: 700; font-size: 15px; margin: 34px 0 10px; }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--stone); margin-top: 8px; }
.key i { display: inline-block; width: 12px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.key i.l { height: 3px; vertical-align: 3px; }

/* пары «было и сейчас» */
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(32px, 5vw, 52px); border-top: 1px solid var(--line); }
.pair { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--line); }
.pair .t { font-size: 14px; color: var(--stone); }
.pair .v { margin-top: 6px; font-family: "Prata", Georgia, serif; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; white-space: nowrap; }
.pair .v .was { color: var(--stone); }
.pair .v .now { color: var(--rouge); }
.pair .v .arr { font-family: "Manrope", sans-serif; font-size: .6em; color: var(--stone); padding: 0 .25em; vertical-align: .15em; }

/* таблицы */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 18px; }
.tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: right; font-weight: 600; font-size: 13px; color: var(--stone); padding: 10px 12px; border-bottom: 1px solid var(--ink); }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td:first-child { white-space: normal; color: var(--stone); }
.tbl tr.sum td { font-weight: 700; color: var(--ink); border-bottom: 0; }
.tbl tr.due td { color: var(--rouge); }

/* аренда */
.track { position: relative; height: 18px; background: var(--concrete); margin: 34px 0 8px; }
.track .done { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.track .pay { position: absolute; top: -10px; height: 4px; background: var(--rouge); }
.track .now { position: absolute; top: -26px; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.track .now::after { content: ""; position: absolute; left: 50%; top: 18px; width: 1px; height: 26px; background: var(--ink); }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; }
.money { display: flex; height: 44px; margin-top: 14px; }
.money .paid { background: var(--ink); color: var(--paper); }
.money .left { background: var(--rouge); color: #fff; }
.money > div { display: flex; align-items: center; padding: 0 12px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.alarm { background: var(--night); color: var(--night-text); padding: clamp(22px, 3vw, 34px); margin-top: clamp(28px, 4vw, 44px); }
.alarm h3 { color: var(--amber); }
.alarm p { color: var(--night-text); margin: 0 0 8px; }

/* на что деньги */
.split { display: flex; height: clamp(64px, 8vw, 92px); margin-top: 36px; }
.split > div { display: flex; flex-direction: column; justify-content: center; padding: 0 16px; overflow: hidden; }
.split .a { background: var(--ink); color: var(--paper); }
.split .b { background: var(--rouge); color: #fff; min-width: 104px; }
.split b { font-family: "Prata", Georgia, serif; font-weight: 400; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.1; white-space: nowrap; }
.split span { font-size: 13px; opacity: .85; white-space: nowrap; }

/* сценарии */
.costs { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 26px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.costs b { font-weight: 700; }
.scen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 4vw, 48px); }
.sc { border-top: 3px solid var(--ink); padding-top: 18px; }
.sc.mid { border-color: var(--rouge); }
.sc .name { font-family: "Prata", Georgia, serif; font-size: 26px; line-height: 1.15; }
.sc .what { font-size: 14px; line-height: 1.5; color: var(--stone); margin: 8px 0 18px; min-height: 4.5em; }
.sc .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sc .row span:first-child { color: var(--stone); }
.sc .row span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.sc .row.key-row { padding: 14px 0; }
.sc .row.key-row span:last-child { font-family: "Prata", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1; color: var(--rouge); }
.sc .row.total span:last-child { font-size: 17px; }
.sc .row.gap-top { margin-top: 14px; border-top: 1px solid var(--ink); }

/* команда */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: clamp(36px, 5vw, 56px); }
.arch { aspect-ratio: 3 / 4; max-width: 340px; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--concrete); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.arch.mono { display: flex; align-items: center; justify-content: center; font-family: "Prata", Georgia, serif; font-size: 140px; color: var(--paper); background: var(--ink); }
.person h3 { margin-top: 24px; }
.person .role { font-size: 15px; color: var(--rouge); font-weight: 600; margin: -4px 0 12px; }
.bond { margin-top: clamp(40px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--line); }

/* план */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 4vw, 48px); }
.step h3 { padding-top: 14px; border-top: 3px solid var(--ink); }
.step:first-child h3 { border-color: var(--rouge); }
.step ul { padding-left: 18px; margin: 0; font-size: 15px; }
.step li { margin: 6px 0; }

/* риски */
.risks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vw, 44px); }
.risk { padding: 20px 0; border-top: 1px solid var(--line); }
.risk h3 { font-size: 22px; }
.risk p { font-size: 15px; color: var(--stone); margin: 0; }

.contact { margin-top: 40px; font-size: clamp(18px, 2vw, 22px); }
.contact a { color: var(--amber); }
footer.end { padding: 28px clamp(20px, 6vw, 96px); font-size: 12px; color: var(--stone); background: var(--paper); }

@media (max-width: 820px) {
  .grid > [class^="c"] { grid-column: 1 / -1; }
  .figs { grid-template-columns: 1fr 1fr; }
  .pairs { grid-template-columns: 1fr 1fr; }
  .scen, .steps, .risks { grid-template-columns: 1fr; }
  .sc .what { min-height: 0; }
  .people { grid-template-columns: 1fr; }
  .story li { grid-template-columns: 1fr; gap: 6px; }
  .arch { max-width: 280px; }
}
@media (max-width: 420px) {
  .duo { gap: 8px; }
  .pair { padding-right: 10px; }
  .split span { display: none; }
}
@media print {
  .page { break-after: page; }
}
