/* Котельная · boilerspace.ru
   Documentary look: paper background, black-and-white photos, Oswald headings,
   PT Serif body, Golos Text for labels and buttons. One breakpoint at 860px
   (plus 560px for the final block). */

/* Self-hosted fonts (OFL, see fonts/OFL.txt): Cyrillic and Latin subsets from Google Fonts. */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/golos-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/golos-latin.woff2") format("woff2"); 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: "Oswald"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/oswald-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/oswald-latin.woff2") format("woff2"); 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: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ptserif-400i-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ptserif-400i-latin.woff2") format("woff2"); 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: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ptserif-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ptserif-400-latin.woff2") format("woff2"); 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: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ptserif-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ptserif-700-latin.woff2") format("woff2"); 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; }

:root {
  --paper: #F5F0E6; --ink: #151412; --muted: #5E584E; --dark: #141311; --on-dark: #EDE7DB;
  --accent: #D2661C; --cream: #FFF8E9;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --serif: "PT Serif", Georgia, serif;
  --ui: "Golos Text", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 20px/1.7 var(--serif); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; line-height: 1.04; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
img { display: block; max-width: 100%; height: auto; }
.label { font: 500 14px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; text-decoration: none;
       font: 500 17px/1 var(--ui); padding: 17px 28px; border-radius: 6px; transition: background .15s; }
.btn:hover { background: #b9561a; }
.btn svg { width: 19px; height: 19px; fill: currentColor; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--cream); color: var(--ink);
        font: 500 15px/1 var(--ui); padding: 12px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

header { position: absolute; inset: 0 0 auto; z-index: 3; color: #fff; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font: 700 20px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; }
.brand .disc { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; }
.brand .disc img { width: 38px; }
header a.tg { color: inherit; font: 500 15px/1 var(--ui); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 3px; }

.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #222; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
                background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.1) 25%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.85) 100%), linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 72px; }
.hero .label { color: #F0C9A6; text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 0 14px rgba(0,0,0,.65); }
.hero h1 { font-size: clamp(52px, 11vw, 150px); }
.hero .lead { font-size: 22px; max-width: 32ch; margin: 16px 0 30px; color: #EDE7DB; }

section { padding: 110px 0; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 28px; }
.about .intro { font-size: 25px; line-height: 1.5; }
.about figure { margin: 0; position: sticky; top: 32px; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.points { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid #CFC6B6; }
.points li { padding: 26px 0 26px 56px; border-bottom: 1px solid #CFC6B6; position: relative; }
.points li::before { content: attr(data-n); position: absolute; left: 0; top: 31px; font: 500 15px/1 var(--ui); color: var(--accent); letter-spacing: .1em; }
.points h3 { font-size: 22px; letter-spacing: .03em; margin-bottom: 8px; }
.points p { margin: 0; font-size: 18px; color: var(--muted); }

.meet { background: var(--dark); color: var(--on-dark); }
.meet .wrap { max-width: 980px; }
.meet h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 32px; }
.meet .text::after { content: ""; display: block; clear: both; }
.meet .portrait { float: right; width: 300px; margin: 6px 0 24px 48px; aspect-ratio: 4 / 5; object-fit: cover; }
.meet p { color: #C3BCAE; font-size: 19px; }
.meet p.first { color: var(--on-dark); font-size: 23px; }

.why .narrow { max-width: 760px; margin: 0 auto; }
.why blockquote { margin: 0 0 48px; font: italic 400 clamp(28px, 3.6vw, 40px)/1.35 var(--serif); }
.why blockquote::before { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin-bottom: 28px; }
.why p { color: var(--muted); }
.wide { margin: 72px 0 0; }
.wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.cta { position: relative; color: #fff; min-height: min(42vw, 72vh); display: flex; align-items: flex-end; overflow: hidden; background: #222; }
.cta img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1;
               background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.75) 100%); }
.cta .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 14em; }

footer { background: var(--dark); color: #8E8779; font: 12px/1.4 var(--ui); padding: 14px 0; border-top: 1px solid rgba(255,255,255,.06); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: inherit; }

@media (max-width: 860px) {
  body { font-size: 18px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about figure { position: static; }
  .about .intro { font-size: 21px; }
  section { padding: 72px 0; }
  .hero { min-height: 88vh; }
  .hero .wrap { padding-bottom: 48px; }
  .wide img { aspect-ratio: 4 / 3; }
  .meet h2 { font-size: clamp(28px, 8vw, 40px); margin-bottom: 24px; }
  .meet .portrait { width: 42%; max-width: 260px; margin: 4px 0 14px 18px; }
  .meet p.first { font-size: 20px; }
  .cta { min-height: 0; aspect-ratio: 4 / 3; align-items: flex-start; }
  .cta::before { background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,0) 50%); }
  .cta img.bg { object-position: 50% 70%; }
  .cta .wrap { padding-top: 28px; padding-bottom: 0; flex-direction: column; align-items: flex-start; gap: 18px; }
  .brand span:not(.disc) { display: none; }
}
@media (max-width: 560px) {
  .cta { aspect-ratio: 4 / 5; }
  .cta img.bg { object-position: 50% 75%; }
}

/* 404 page: dark, header over it, content vertically centred. */
.nf { background: var(--dark); color: var(--on-dark); min-height: 100vh; display: flex; flex-direction: column; }
.nf-main { flex: 1; display: flex; align-items: center; padding: 120px 0 72px; }
.nf-main h1 { font-size: clamp(40px, 7vw, 88px); margin-bottom: 24px; }
.nf-main p { max-width: 34ch; color: #C3BCAE; }
.nf-main a { color: var(--on-dark); }
