/* Zabor demo v2 — the user's reference (2026-11-22): slate field, dark rounded panels,
   huge wide headline over a dark photo, numbered tiles, plan-and-table block. */
:root {
  --field-top: #5f6e77;
  --field-bottom: #262d31;
  --panel: #1d2326;
  --panel-2: #262d31;
  --ink: #f1f2ef;
  --muted: #9da7ab;
  --line: rgba(241, 242, 239, 0.16);
  --warm: #e6b877;          /* lit-window amber: total and focus only */
  --ground-draw: #3a4246;
  --person: #7d878b;
  --wide: 'Unbounded', 'Arial Black', sans-serif;
  --text: 'Onest', system-ui, sans-serif;
  --r: 12px;
  --gap: clamp(14px, 2vw, 24px);
  --pad: clamp(20px, 3.4vw, 48px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--field-bottom); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 400 1.0625rem/1.55 var(--text);
  background: linear-gradient(180deg, var(--field-top) 0, #3b474e 900px, var(--field-bottom) 2400px) var(--field-bottom);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, p, figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }
::selection { background: var(--warm); color: #111; }

.page { width: min(1760px, 100%); margin: 0 auto; padding: clamp(8px, 1.2vw, 20px) clamp(8px, 1.2vw, 20px) 32px; display: grid; gap: clamp(8px, 1vw, 16px); }
.panel { position: relative; background: var(--panel); border-radius: var(--r); padding: var(--pad); overflow: hidden; scroll-margin-top: 16px; }
.h2 { font: 500 clamp(1.75rem, 1rem + 3vw, 3.25rem)/1 var(--wide); text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: clamp(24px, 3vw, 40px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 0.95rem/1 var(--text); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.btn--light { background: var(--ink); color: #15191b; }
.btn--light:hover { background: var(--warm); transform: translateY(-2px); }
.btn--light:active { transform: translateY(1px); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }

.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 12px 14px 12px 22px; border-radius: 999px; background: rgba(29, 35, 38, .7); font-size: 0.9rem; }

/* hero */
.hero { min-height: clamp(520px, 78vh, 760px); padding: 0; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; z-index: -2; filter: brightness(.62) contrast(1.1) saturate(.55); transform: translateY(var(--py, 0)) scale(var(--hs, 1)); will-change: transform; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,19,21,.55) 0%, rgba(15,19,21,.05) 38%, rgba(15,19,21,.15) 60%, rgba(15,19,21,.85) 100%); }
.hero__nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px var(--pad) 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; }
.hero__brand { font: 700 0.875rem/1 var(--wide); letter-spacing: .02em; text-decoration: none; }
.hero__links { display: flex; gap: 26px; }
.hero__links a { text-decoration: none; opacity: .85; transition: opacity .2s; }
.hero__links a:hover { opacity: 1; }
.hero__title { padding: 0 var(--pad); margin-top: clamp(10px, 3vh, 40px); }
.word { display: flex; justify-content: space-between; font: 700 clamp(3rem, 12.5vw, 15rem)/0.86 var(--wide); letter-spacing: -0.02em; }
.ch { display: inline-block; }
.hero__tag { display: block; margin-top: clamp(150px, 28vh, 300px); font: 500 clamp(1rem, .8rem + .9vw, 1.5rem)/1.2 var(--wide); text-transform: uppercase; max-width: 22ch; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 var(--pad) var(--pad); }
.hero__place { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em; max-width: 30ch; }
.hero__title + .hero__foot { margin-top: 24px; }

/* type tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { all: unset; cursor: pointer; display: grid; align-content: start; gap: 8px; color: var(--ink); }
.tile__pic { display: block; aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 6px; background: var(--panel-2); margin-bottom: 14px; }
.tile__pic img, .tile__pic .art { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) contrast(1.08) saturate(.3); transition: transform .7s var(--ease), filter .5s; }
.tile:hover .tile__pic img, .tile:hover .tile__pic .art, .tile:focus-visible .tile__pic img { transform: scale(1.06); filter: brightness(.9) contrast(1.05) saturate(.75); }
.tile:focus-visible { outline: 2px solid var(--warm); outline-offset: 6px; border-radius: 6px; }
.tile__num { font: 500 clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem)/1 var(--wide); }
.tile__name { font: 500 0.8rem/1.2 var(--wide); text-transform: uppercase; letter-spacing: .02em; }
.tile__about { font-size: 0.875rem; color: var(--muted); line-height: 1.45; }
.tile__price { font-size: 0.9rem; font-weight: 600; }

/* calculator = the plan block */
.calc { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.calc__sum { font: 500 clamp(1.05rem, .9rem + .7vw, 1.5rem)/1.2 var(--wide); text-transform: uppercase; margin: -12px 0 28px; }
.calc__sum output { color: var(--warm); white-space: nowrap; display: inline-block; }
.calc__form { display: grid; gap: 18px; }
.calc fieldset { border: 0; margin: 0; padding: 0 0 18px; min-width: 0; border-bottom: 1px solid var(--line); }
.calc fieldset:last-child { border-bottom: 0; }
.calc legend { padding: 0; margin-bottom: 10px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
#color-name { text-transform: none; letter-spacing: 0; color: var(--ink); margin-left: 6px; }
.segs, .checks, .sws { display: flex; flex-wrap: wrap; gap: 6px; }
.seg, .sw, .check { position: relative; cursor: pointer; }
.seg input, .sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 14px; border-radius: 999px; background: var(--panel-2); font-size: 0.875rem; transition: background-color .2s, color .2s; }
.seg:hover span { background: #313a3f; }
.seg input:checked + span { background: var(--ink); color: #15191b; }
.seg input:focus-visible + span, .sw input:focus-visible + span { outline: 2px solid var(--warm); outline-offset: 2px; }
.seg.is-off { opacity: .3; pointer-events: none; }
.sw span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.sw input:checked + span { transform: scale(1.12); box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink); }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; font-size: 0.9rem; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.check.is-off { opacity: .3; }
.calc fieldset > .check { margin-top: 8px; }
.len__row { display: grid; grid-template-columns: 1fr 84px; gap: 14px; align-items: center; }
.len input[type=range] { width: 100%; accent-color: var(--ink); }
.len input[type=number] { height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--panel-2); color: var(--ink); font: 500 1rem var(--wide); }

.calc__right { display: grid; gap: 22px; position: sticky; top: 16px; }
.plan { background: var(--panel-2); border-radius: 8px; padding: 18px 18px 12px; }
.plan svg { width: 100%; height: auto; display: block; }
.plan figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 8px; text-align: right; }
.lines td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; font-variant-numeric: tabular-nums; }
.lines tr.is-new td { animation: line-in .45s var(--ease); }
@keyframes line-in { from { opacity: 0; transform: translateX(-8px); } }
.note { font-size: 0.8125rem; color: var(--muted); }
.calc__right .btn { justify-self: start; }

/* prices */
.prices__grid { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: 18px; }
.matrix th, .matrix td, .extras th, .extras td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; font-size: 0.9375rem; }
.matrix thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.matrix td, .matrix thead th, .extras td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.matrix tbody th { font-weight: 500; }
.matrix tbody tr, .extras tr { transition: background-color .2s; }
.matrix tbody tr:hover, .extras tr:hover { background: rgba(255, 255, 255, .03); }
.extras small { display: block; font-size: 0.8rem; color: var(--muted); }

/* work */
.shots { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.shot__pic { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; }
.shot:first-child .shot__pic { aspect-ratio: auto; height: 100%; max-height: 420px; }
.shot:first-child { grid-row: span 1; }
.shot__pic img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) contrast(1.08) saturate(.3); transform: scale(1.08); transition: transform 1.6s var(--ease), filter .5s; }
.shot.in .shot__pic img { transform: scale(1); }
.shot:hover .shot__pic img { filter: brightness(.9) contrast(1.05) saturate(.75); }
.shot figcaption { display: grid; gap: 4px; margin-top: 14px; }
.shot b { font: 500 0.85rem/1.2 var(--wide); text-transform: uppercase; }
.shot span { font-size: 0.8rem; color: var(--muted); }
.shot p { font-size: 0.9rem; color: var(--muted); }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; cursor: pointer; font-size: 1.05rem; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa p { padding: 0 0 20px; color: var(--muted); max-width: 58ch; }
.qa[open] p { animation: line-in .4s var(--ease); }
.plus { position: relative; width: 14px; height: 14px; flex: none; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.plus::after { transform: rotate(90deg); }
.qa[open] .plus::after { transform: rotate(0); }

/* order */
.order { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.order__left { display: grid; gap: 16px; align-content: start; }
.order__left p { color: var(--muted); max-width: 42ch; }
.order__est { color: var(--warm) !important; }
.order__phone { font: 500 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1 var(--wide); text-decoration: none; margin-top: 12px; }
.order__form { display: grid; gap: 14px; }
.order__form label { display: grid; gap: 6px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.order__form input { height: 50px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: 400 1.0625rem var(--text); transition: border-color .2s; }
.order__form input:focus { outline: none; border-bottom-color: var(--warm); }
.order__form .btn { justify-self: start; margin-top: 10px; }
.form-msg { min-height: 1.4em; font-size: 0.875rem; }

/* footer */
.foot { padding: 28px clamp(4px, 1vw, 12px) 8px; display: grid; gap: 18px; }
.foot__mark { font: 700 clamp(2.4rem, 1rem + 7vw, 7rem)/.9 var(--wide); text-transform: uppercase; letter-spacing: -0.02em; opacity: .92; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.875rem; color: var(--muted); }
.foot__row a { color: var(--ink); text-decoration: none; }
.foot__credits { font-size: 0.75rem; color: var(--muted); max-width: 90ch; }
.foot__credits a { color: var(--muted); }

/* motion: hidden states exist only once the script has started */
.js .ch { transform: translateY(105%); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease); transition-delay: calc(var(--d) * 70ms + 150ms); }
.js .word { clip-path: inset(-0.2em -0.5em 0 -0.5em); padding-bottom: .04em; }
.js.loaded .ch { transform: none; opacity: 1; }
.js .hero__tag, .js .hero__foot, .js .hero__nav { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) .75s, transform .8s var(--ease) .75s; }
.js.loaded .hero__tag, .js.loaded .hero__foot, .js.loaded .hero__nav { opacity: 1; transform: none; }
.js.loaded .hero__img { animation: hero-zoom 2.6s var(--ease) both; }
@keyframes hero-zoom { from { scale: 1.14; } to { scale: 1; } }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .panel:not(.hero) { opacity: .0; transform: translateY(30px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .panel.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .ch, .js .reveal, .js .panel:not(.hero), .js .hero__tag, .js .hero__foot, .js .hero__nav { opacity: 1; transform: none; transition: none; }
  .js.loaded .hero__img { animation: none; }
  .tile__pic img, .shot__pic img { transition: none; transform: none; }
}

/* tablet */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .calc, .prices__grid, .faq, .order { grid-template-columns: 1fr; }
  .calc__right { position: static; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shot:first-child { grid-column: 1 / -1; }
  .shot:first-child .shot__pic { aspect-ratio: 16 / 9; height: auto; }
  .hero__links { gap: 16px; }
}

/* phone */
@media (max-width: 640px) {
  .hero { min-height: 560px; }
  .hero__links { display: none; }
  .word { font-size: 14vw; }
  .hero__tag { margin-top: 170px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .tile__about { display: none; }
  .tile__num { font-size: 1.5rem; }
  .shots { grid-template-columns: 1fr; }
  .matrix th, .matrix td { font-size: 0.8125rem; padding: 11px 0; }
  .matrix td, .matrix thead th { padding-left: 6px; }
  .demo-bar { border-radius: var(--r); }
  .calc__right .btn, .order__form .btn { justify-self: stretch; }
}
