/* FitOut Studio landing — brand from the FitOut Studio Drive folder (Printing materials: Logo_front.svg, A3_back.svg):
   monochrome charcoal/white, serif wordmark, bold condensed display type, line-drawing motif.
   Display type: Barlow Condensed 700 (Latin only) on EN; Roboto Condensed 700 (Latin + Cyrillic) on RU. */
@font-face { font-family: "Montserrat"; src: url("montserrat-latin-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url("montserrat-cyrillic-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Barlow Condensed"; src: url("barlow-condensed-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("roboto-condensed-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; src: url("roboto-condensed-700-cyrillic.woff2") format("woff2"); font-weight: 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
:root {
  --char: #1f1f1f;
  --paper: #f6f4f0;
  --sand: #ebe6de;
  --ink: #1f1f1f;
  --muted: #5f5b55;
  --line: #d9d3ca;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
:lang(ru) { --display: "Roboto Condensed", "Arial Narrow", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .98; letter-spacing: .005em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); max-width: 18ch; }
:lang(ru) h1 { font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1.02; max-width: 20ch; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
:lang(ru) h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.04; }
h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.3; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 50; background: #fff; color: var(--char); padding: .6rem 1rem; }
.skip:focus { left: .5rem; }

/* Header: language switch is always visible (owner rule 05.11), desktop and mobile */
.top { position: sticky; top: 0; z-index: 10; background: rgba(31, 31, 31, .94); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand img { width: 152px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-size: .76rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; }
.nav a { text-decoration: none; opacity: .8; }
.nav a:hover { opacity: 1; }
.top-act { display: flex; align-items: center; gap: .7rem; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 2px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; }
.lang a { text-decoration: none; padding: .32rem .7rem; border-radius: 999px; line-height: 1; opacity: .85; }
.lang a:hover { opacity: 1; }
.lang a[aria-current] { background: #fff; color: var(--char); opacity: 1; }

.btn { display: inline-block; padding: .9rem 1.5rem; background: #fff; color: var(--char); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; text-decoration: none; border: 1px solid #fff; transition: background .15s, color .15s; }
.btn:hover { background: transparent; color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .72rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--char); }

.eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; font-weight: 500; margin-bottom: 1.1rem; color: var(--muted); }
.story .eyebrow, .contact .eyebrow { color: rgba(255,255,255,.82); }
.rule { width: 72px; height: 5px; background: currentColor; margin: 1.6rem 0; }

/* Renovation hero: sticky stage; frames crossfaded by assets/site.js. Portrait screens get 9:16 frames via <source media>.
   Without JS the stage is one screen (stage 1 + headline). Only opacity/transform change while scrolling. */
.story { position: relative; background: var(--char); color: #fff; height: calc(100svh - 72px); min-height: 520px; }
.story.js { height: 740svh; }
.story-stage { position: sticky; top: 72px; height: calc(100svh - 72px); min-height: 520px; overflow: hidden; }
.frames, .frame { position: absolute; inset: 0; }
.frames picture { display: contents; }
.frame { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.story.js .frame { will-change: opacity; }
.story.js .frame + .frame, .story.js picture + picture .frame { opacity: 0; }
.frame:not([src]) { visibility: hidden; }
.story:not(.js) .frames picture + picture { display: none; }
/* headline scrim fades with the headline so the room stays clear afterwards */
.story-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: calc(1 - var(--p, 0) * 14);
  background: linear-gradient(90deg, rgba(18,18,18,.85) 0%, rgba(18,18,18,.55) 42%, rgba(18,18,18,0) 68%); }
.story-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(9rem, 22vh, 12rem); opacity: calc(1 - var(--p, 0) * 16); transform: translateY(calc(var(--p, 0) * -300px)); }
.lead { font-size: clamp(1rem, 1.4vw, 1.1rem); max-width: 50ch; opacity: .92; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hint { margin: 1.4rem 0 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; opacity: .7; }
.story:not(.js) .hint { display: none; }

/* progress panel */
.prog { position: absolute; z-index: 3; right: max(1.25rem, calc((100vw - 1180px) / 2)); bottom: 2.6rem; width: 360px; padding: 1rem 1.2rem 1.1rem; background: rgba(20,20,20,.72); }
.prog-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; opacity: .85; }
.prog-pct { font-family: var(--display); font-size: 1.9rem; letter-spacing: 0; line-height: 1; opacity: 1; }
.prog-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; margin: .25rem 0 .3rem; }
.prog-desc { font-size: .86rem; line-height: 1.45; opacity: .88; margin: 0 0 .8rem; min-height: 2.9em; }
.prog-bar { height: 4px; background: rgba(255,255,255,.2); }
.prog-bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.prog-ticks { list-style: none; margin: .45rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.prog-ticks li { height: 3px; background: rgba(255,255,255,.2); }
.prog-ticks li.done, .prog-ticks li.on { background: rgba(255,255,255,.75); }
.prog-ticks span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.story:not(.js) .prog { display: none; }
.story-note { position: absolute; z-index: 3; left: max(1.25rem, calc((100vw - 1180px) / 2)); bottom: .9rem; margin: 0; font-size: .66rem; letter-spacing: .06em; opacity: .7; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

.sec { padding: clamp(4rem, 9vw, 7rem) 0; }
.sec-sand { background: var(--sand); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; }
.sec-head p, .intro { max-width: 52ch; color: var(--muted); }
.note { font-size: .74rem; color: var(--muted); margin: .8rem 0 0; }

/* before/after slider: after image clipped from the left edge to --x */
.ba { position: relative; margin-top: 2.2rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--char); user-select: none; --x: 50%; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba picture { display: block; height: 100%; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--char); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:not(.js) .ba-range { display: none; }
.ba-range:focus-visible + * , .ba:focus-within .ba-handle { outline: 2px solid #fff; outline-offset: 2px; }
.ba-tag { position: absolute; top: 1rem; padding: .35rem .7rem; background: rgba(20,20,20,.75); color: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; pointer-events: none; }
.ba-l { left: 1rem; } .ba-r { right: 1rem; }

.work { display: grid; gap: 1.1rem; grid-template-columns: repeat(12, 1fr); margin-top: 2.5rem; }
.work figure { margin: 0; grid-column: span 4; background: var(--char); display: flex; flex-direction: column; }
.work figure.wide { grid-column: span 8; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work figure.wide img { aspect-ratio: auto; height: 520px; }
.work figure.tall img { aspect-ratio: auto; flex: 1; min-height: 0; height: 0; }
.work figcaption { padding: .8rem 1rem; color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; display: flex; justify-content: space-between; gap: 1rem; }
.work figcaption span { opacity: .7; }

.cards { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 2.5rem; border-top: 1px solid var(--char); }
.card { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.card p, .principle p, .steps p, .faq p { color: var(--muted); margin: 0; font-size: .95rem; }
.num { font-family: var(--display); font-size: 2.6rem; line-height: 1; margin-bottom: 1rem; }

.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 0 3rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.steps li { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.steps li > span { flex: none; font-family: var(--display); font-size: 1.9rem; line-height: 1; width: 2.2rem; }

.principles { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2.5rem; }
.principle { padding-top: 1.4rem; border-top: 5px solid var(--char); }

.faq-in { display: grid; gap: 2rem 4rem; grid-template-columns: 1fr 1.6fr; align-items: start; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq details p { margin-top: .7rem; }

.contact { position: relative; background: var(--char); color: #fff; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-35deg, transparent 0 46px, rgba(255,255,255,.06) 46px 47px); }
.contact-in { position: relative; display: grid; gap: 3rem; grid-template-columns: 1.2fr 1fr; align-items: center; }
.phone { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; text-decoration: none; display: inline-block; }
.phone:hover { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 3px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.contact-list li { display: grid; gap: .15rem; padding: 1rem 1.2rem; border: 1px solid rgba(255,255,255,.2); background: rgba(31,31,31,.6); }
.contact-list small { text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; opacity: .7; }
/* placeholders for content Vlad must confirm — remove .ph when filled */
.ph { color: #e6c27a; border-bottom: 1px dashed currentColor; }

.foot { background: #161616; color: rgba(255,255,255,.72); font-size: .8rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.8rem 0; }
.foot img { width: 120px; opacity: .85; }

@media (max-width: 980px) { .nav { display: none; } }
@media (max-width: 860px) {
  .work figure, .work figure.wide { grid-column: span 12; }
  .work figure.wide img, .work figure.tall img { height: auto; flex: none; aspect-ratio: 4 / 3; }
  .contact-in, .faq-in { grid-template-columns: 1fr; }
}
/* Mobile: headline on the first screen only (top, over the ceiling), compact progress strip at the bottom so the room stays visible */
@media (max-width: 760px) {
  html { scroll-padding-top: 60px; }
  .top-in { height: 60px; gap: .5rem; }
  .brand img { width: 104px; }
  .top-act { gap: .45rem; }
  .lang { font-size: .7rem; }
  .lang a { padding: .34rem .55rem; }
  .btn-sm { padding: .45rem .7rem; font-size: .66rem; letter-spacing: .1em; }
  .story, .story-stage { height: calc(100svh - 60px); min-height: 480px; }
  .story.js { height: 740svh; }
  .story-stage { top: 60px; }
  .story-stage::before { background: linear-gradient(180deg, rgba(18,18,18,.85) 0%, rgba(18,18,18,.6) 42%, rgba(18,18,18,0) 70%); }
  .story-copy { top: 1.4rem; bottom: auto; }
  h1 { font-size: clamp(2rem, 9.6vw, 2.6rem); max-width: none; }
  :lang(ru) h1 { font-size: clamp(1.8rem, 8.6vw, 2.35rem); }
  .sec h1, .sec h2 { max-width: none; }
  .eyebrow { margin-bottom: .7rem; font-size: .66rem; letter-spacing: .2em; }
  /* the lead stays in the page for the no-JS/desktop layout; on phones the first screen keeps the room visible */
  .story .lead { display: none; }
  .cta { margin-top: .9rem; gap: .5rem; flex-wrap: nowrap; }
  .cta .btn { padding: .7rem .8rem; font-size: .64rem; letter-spacing: .1em; white-space: nowrap; }
  .cta .btn-ghost { display: none; }
  .hint { display: none; }
  .prog { left: .75rem; right: .75rem; width: auto; bottom: 1.9rem; padding: .55rem .8rem .65rem; background: rgba(20,20,20,.7); }
  .prog-row { font-size: .62rem; letter-spacing: .14em; }
  .prog-pct { font-size: 1.35rem; }
  .prog-name { font-size: 1.2rem; margin: .1rem 0 .15rem; }
  .prog-desc { font-size: .74rem; line-height: 1.35; min-height: 2.7em; margin-bottom: .45rem; }
  .story-note { left: .75rem; bottom: .45rem; font-size: .6rem; }
  .ba { aspect-ratio: auto; height: min(78svh, 640px); }
  .ba-tag { top: .7rem; font-size: .62rem; }
  .ba-l { left: .7rem; } .ba-r { right: .7rem; }
}
@media (max-width: 370px) {
  .brand img { width: 92px; }
  .btn-sm { padding: .42rem .55rem; letter-spacing: .06em; }
  .lang a { padding: .32rem .45rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* v5: real before/after pairs (side by side, our photos) */
.pairs { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
.pair { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--char); }
.pair > div { position: relative; }
.pair img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pair b { position: absolute; left: .7rem; top: .7rem; background: rgba(20,20,20,.72); color: #fff; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding: .3rem .6rem; font-weight: 600; }
.pair figcaption { grid-column: 1 / -1; padding: .8rem 1rem; color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; display: flex; justify-content: space-between; gap: 1rem; }
.pair figcaption span { opacity: .7; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
