@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(assets/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(assets/manrope-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;
}

/* Brand: graphite wordmark + orange from the PROLUMA avatar */
:root {
  --bg: #f6f5f2; --tint: #eeece7; --card: #fff;
  --ink: #1e1d1e; --muted: #67625d; --line: #e0dcd5;
  --accent: #ef7a35; --accent-hover: #f48d50; --accent-soft: #fde8da; --accent-text: #b4521a;
  --dark: #1e1d1e; --dark-muted: #b9b3ac;
  --radius: 22px;
  --container: 1320px; --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 Manrope, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 3px solid #d9621f; outline-offset: 3px; }
.svg-defs { position: absolute; width: 0; height: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--accent); padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 16px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons & small UI */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn svg { font-size: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a3839; }
.btn-line { background: transparent; border: 1.5px solid #1e1d1e33; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-lg { height: 62px; padding: 0 32px; font-size: 17px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.badge svg { color: var(--accent); font-size: 18px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #f6f5f2e6; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 36px; height: 78px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--accent-text); }
.header-phone { margin-left: auto; font-size: 16px; font-weight: 800; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded=true] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: 40px 0 clamp(72px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.hero h1 { margin: 22px 0 22px; font-size: clamp(42px, 5.3vw, 80px); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.lead { font-size: 19px; color: var(--muted); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 44px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 26px 0 0; list-style: none; border-top: 1px solid var(--line); }
.hero-facts b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.hero-facts span { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); }
.hero-media { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(480px, 44vw, 650px); }
.hero-media figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.hero-main { grid-row: span 2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-main img { object-position: 50% 40%; }
.hero-media figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: #1e1d1e99; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 700; }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #f4f2ee; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(32px, 4vw, 52px); }
h2 { font-size: clamp(34px, 4.2vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.section-head h2 { max-width: 11em; }
.section-head p { max-width: 27em; color: var(--muted); }
.section-dark .section-head p { color: var(--dark-muted); }

/* Systems */
.systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.system { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.system:hover { transform: translateY(-4px); box-shadow: 0 22px 44px #1e1d1e14; }
.system-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.system-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.system:hover .system-img img { transform: scale(1.04); }
.system-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.tag { align-self: flex-start; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.tag-cold { background: #e3edf3; color: #2b5470; }
.tag-warm { background: var(--accent-soft); color: #9a4313; }
.tag-glass { background: var(--tint); color: #4b4743; }
.system h3 { margin: 14px 0 8px; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.system p { flex: 1; margin-bottom: 20px; font-size: 15.5px; color: var(--muted); }
.system-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 0 0 4px; border: 0; border-bottom: 2px solid var(--accent); background: none; font-size: 15px; font-weight: 800; transition: gap .2s; }
.system-link:hover { gap: 12px; }

/* Videos: flex-grow = aspect ratio, so every clip gets the same height */
.videos { display: flex; gap: 20px; align-items: flex-start; }
.video { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.video video { width: 100%; aspect-ratio: var(--ar); border-radius: 18px; background: #000; object-fit: cover; }
.video figcaption { margin-top: 14px; }
.video b { display: block; font-size: 17px; font-weight: 800; }
.video span { display: block; font-size: 14px; color: var(--dark-muted); }

/* Works */
.works-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.works-filter button { height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.works-filter button:hover { border-color: var(--ink); }
.works-filter button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.works-grid { columns: 4 260px; column-gap: 14px; }
.works-grid figure { break-inside: avoid; margin: 0 0 18px; }
.works-grid.collapsed figure:nth-of-type(n+13) { display: none; }
.works-grid a { display: block; border-radius: 16px; overflow: hidden; background: var(--tint); }
.works-grid img { width: 100%; height: auto; transition: transform .6s; }
.works-grid a:hover img { transform: scale(1.04); }
.works-grid figcaption { padding: 8px 2px 0; font-size: 13.5px; color: var(--muted); }
.works-more { display: flex; margin: 20px auto 0; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 30px 28px 32px; border-radius: var(--radius); background: var(--card); }
.step-num { display: block; margin-bottom: 36px; font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--accent); }
.steps h3 { margin-bottom: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.steps p { font-size: 15.5px; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-aside { position: sticky; top: 110px; }
.faq-aside p { margin: 16px 0 26px; color: var(--muted); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 56px 24px 0; list-style: none; cursor: pointer; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); font-size: 22px; font-weight: 500; transition: background .2s; }
.faq-list details[open] summary::after { content: '−'; background: var(--accent); }
.faq-list details p { max-width: 42em; padding-bottom: 24px; color: var(--muted); }

/* CTA */
.cta { padding: clamp(72px, 8vw, 116px) 0; background: var(--dark); color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: end; }
.cta h2 { max-width: 13em; font-size: clamp(34px, 4.3vw, 62px); }
.cta p { max-width: 34em; margin-top: 20px; font-size: 18px; color: var(--dark-muted); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-phone { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.cta-mail { font-size: 18px; color: var(--dark-muted); text-decoration: underline; text-underline-offset: 4px; }
.cta-mail:hover, .cta-phone:hover { color: var(--accent); }

/* Footer */
.footer { padding: 36px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; font-size: 14px; color: var(--muted); }
.footer .brand img { height: 26px; }
.footer-inner > span:nth-of-type(1) { margin-right: auto; }
.footer-inner > a:last-child { text-decoration: underline; text-underline-offset: 3px; }

/* Quote dialog */
dialog { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 40px; border: 0; border-radius: 26px; background: var(--bg); color: var(--ink); overscroll-behavior: contain; }
dialog::backdrop { background: #141314b3; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialog-close { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--card); font-size: 26px; line-height: 1; }
.quote-heading h2 { margin: 14px 0 22px; font-size: 32px; }
.form-progress { display: flex; gap: 8px; margin-bottom: 26px; }
.form-progress span { flex: 1; padding-top: 10px; border-top: 3px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.form-progress span.active { border-color: var(--accent); color: var(--ink); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 16px; padding: 0; font-size: 20px; font-weight: 800; }
.object-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.object-options label { position: relative; }
.object-options input { position: absolute; opacity: 0; }
.object-options span { display: block; height: 100%; padding: 14px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font-size: 15px; font-weight: 700; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.object-options input:checked + span { border-color: var(--accent); background: #fff4ec; }
.object-options input:focus-visible + span { outline: 3px solid #d9621f; outline-offset: 2px; }
.field-label, .field-row label { display: block; font-size: 15px; font-weight: 700; }
.field-label { margin-top: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
select, input:not([type=radio]), textarea { width: 100%; margin-top: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; }
textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.form-note a { text-decoration: underline; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
#step-count { margin-right: auto; font-size: 14px; color: var(--muted); }
.back-button { order: -1; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 700; text-decoration: underline; }
#quote-result h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
#quote-result p { color: var(--muted); }
#quote-result p a { color: var(--ink); text-decoration: underline; }
#message-preview { margin-top: 16px; font-size: 14px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Photo lightbox */
.photo-dialog { width: fit-content; max-width: calc(100% - 24px); padding: 12px; border-radius: 20px; background: #111; }
.photo-dialog img { max-height: calc(100dvh - 110px); margin: auto; border-radius: 12px; }
.photo-dialog p { margin: 10px 6px 2px; font-size: 14px; color: #ddd; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Privacy page */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { margin: 36px 0 24px; font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.035em; }
.legal h2 { margin: 32px 0 12px; font-size: 24px; letter-spacing: -.02em; }
.legal p { margin: 12px 0; line-height: 1.8; }
.legal a { text-decoration: underline; }

@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .header-inner { gap: 24px; }
}
@media (max-width: 1000px) {
  .menu-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 800; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { height: clamp(420px, 70vw, 600px); }
  .section-head { display: block; }
  .section-head p { margin-top: 16px; }
  .systems { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { height: 66px; gap: 12px; }
  .brand img { height: 24px; }
  .header-phone { display: none; }
  .header-cta { margin-left: auto; }
  .hero { padding-top: 24px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-media { grid-template-columns: 1fr 1fr; grid-template-rows: 1.5fr 1fr; height: 460px; gap: 10px; }
  .hero-main { grid-row: auto; grid-column: span 2; }
  .systems, .steps { grid-template-columns: 1fr; }
  .step-num { margin-bottom: 20px; font-size: 44px; }
  .videos { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; }
  .video { flex: none; scroll-snap-align: start; }
  .video video { width: auto; height: 420px; }
  .video figcaption { max-width: 240px; }
  .works-grid { columns: 2; column-gap: 10px; }
  .works-grid figure { margin-bottom: 12px; }
  .works-grid figcaption { font-size: 12.5px; }
  .faq-list summary { font-size: 17px; }
  .cta-actions .btn { width: 100%; }
  dialog { padding: 28px 18px 22px; }
  .quote-heading h2 { font-size: 26px; padding-right: 40px; }
  .object-options { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-actions .btn { height: 48px; padding: 0 18px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
