/* =========================================================
   OPALUBKA.KM — Industrial Editorial design system
   ========================================================= */

/* --- TOKENS ---------------------------------------------- */

:root {
  /* palette */
  --bg-deep:    #0B0C0A;
  --bg-surface: #14161A;
  --bg-card:    #1B1F1E;
  --ink:        #F1ECE0;
  --ink-dim:    #8A8C86;
  --ink-faint:  #4A4D49;
  --rule:       #262927;
  --rule-soft:  #1F2220;
  --brand:      #84A493;
  --brand-deep: #4F6E5F;
  --signal:     #F1C40F;
  --signal-deep:#C19F0A;
  --danger:     #E54B2C;
  --ok:         #84A493;

  /* type */
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;
  --f-body:    "Onest", system-ui, sans-serif;

  /* spacing */
  --gutter: clamp(1rem, 4vw, 2rem);
  --pad-x:  clamp(1.25rem, 5vw, 4rem);
  --pad-y:  clamp(4rem, 9vw, 8rem);

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* Screenshot/diagnostic mode: ?nofx=1 disables entrance animations */
html[data-nofx] .reveal,
html[data-nofx] [data-observe] {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* --- RESET ----------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--brand); }

::selection { background: var(--signal); color: var(--bg-deep); }

.mono { font-family: var(--f-mono); font-feature-settings: "ss01", "tnum"; }

.skip {
  position: absolute; left: -9999px; top: auto;
  background: var(--signal); color: var(--bg-deep);
  padding: .5rem 1rem; font-family: var(--f-mono);
}
.skip:focus { left: 1rem; top: 1rem; z-index: 999; }

/* --- TOP BAR --------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg-deep) 88%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.top__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .75rem var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: -.01em;
  font-size: 1.05rem;
}
.brand__mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--brand);
  color: var(--brand);
}
.brand__mark svg { width: 16px; height: 16px; }
.brand__dot { color: var(--signal); }
.top__nav {
  display: flex; gap: 1.6rem;
  font-size: .92rem;
  justify-content: center;
}
.top__nav a {
  color: var(--ink-dim);
  position: relative;
  padding: .35rem 0;
}
.top__nav a:hover { color: var(--ink); }
.top__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--brand);
  transition: right .35s var(--ease);
}
.top__nav a:hover::after { right: 0; }

.top__phone {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-mono);
  font-size: .9rem;
  padding: .55rem .9rem;
  border: 1px solid var(--rule);
  background: var(--bg-card);
}
.top__phone:hover { border-color: var(--signal); color: var(--signal); }
.top__phone-num { letter-spacing: .02em; }

@media (max-width: 900px) {
  .top__nav { display: none; }
  .top__inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 520px) {
  .top__phone-num { display: none; }
  .top__phone span[aria-hidden] { font-size: 1.1rem; line-height: 1; }
  .top__phone::after {
    content: "Дзвонити";
    font-family: var(--f-display);
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .02em;
    margin-left: .35rem;
    text-transform: uppercase;
  }
  .brand__name { font-size: .92rem; }
  .top__phone { padding: .5rem .75rem; }
}

/* --- HERO ------------------------------------------------ */

.hero {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem) var(--pad-x) clamp(2.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, color-mix(in oklab, var(--brand) 22%, transparent) 0%, transparent 60%),
    radial-gradient(50% 80% at 0% 100%, color-mix(in oklab, var(--signal) 8%, transparent) 0%, transparent 60%);
  pointer-events: none;
  opacity: .9;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* HERO LEAD ----------- */

.hero__lead { position: relative; }

.marker {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--ink-dim);
  margin-bottom: 1.6rem;
  letter-spacing: .04em;
  flex-wrap: wrap;
}
.marker__num { color: var(--signal); white-space: nowrap; }
.marker__lbl { text-transform: uppercase; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5.2vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.025em;
  margin: 0 0 1.5rem;
}
.hero__title-l1, .hero__title-l2, .hero__title-l3 {
  display: block;
}
.hero__title-l2 {
  padding-left: clamp(1rem, 4vw, 3rem);
  color: var(--ink);
}
.hero__title-l3 {
  font-weight: 700;
}
@media (min-width: 1100px) {
  .hero__title-l3 { white-space: nowrap; }
}
.hero__title em { color: var(--brand); }

.hero__sub {
  max-width: 38ch;
  font-size: clamp(.98rem, 1.6vw, 1.25rem);
  color: var(--ink-dim);
  margin: 0 0 2rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}
.hero__sub .mono { color: var(--ink); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero__stats li {
  display: flex; flex-direction: column;
  gap: .15rem;
}
.stat__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.stat__num .mono { font-size: .85em; }
.stat__unit {
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--brand);
  letter-spacing: .04em;
  margin-top: .35rem;
}
.stat__lbl {
  font-size: .78rem;
  color: var(--ink-dim);
  text-transform: lowercase;
  letter-spacing: .02em;
}
@media (max-width: 600px) {
  .hero__stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: .6rem;
    padding: 1rem 0;
  }
  .hero__stats li {
    display: flex; flex-direction: column; gap: .15rem;
    min-width: 0;
  }
  .stat__num { font-size: 1.5rem; }
  .stat__unit { margin-top: .1rem; font-size: .7rem; }
  .stat__lbl { font-size: .66rem; line-height: 1.15; }
}

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center;
}

/* HERO PHOTO ----------- */

.hero__photo {
  position: relative;
  margin: 0;
  width: 100%;
  min-width: 0;
  background: var(--bg-card);
  aspect-ratio: 4/5;
  overflow: hidden;
  align-self: stretch;
}
.hero__photo picture { display: block; width: 100%; height: 100%; }
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
  transition: transform 1.2s var(--ease);
}
.hero__photo:hover img { transform: scale(1.025); }
.hero__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .9rem 1.1rem;
  background: linear-gradient(to top, rgba(11,12,10,.95), rgba(11,12,10,0));
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--ink);
  display: flex; gap: .8rem; align-items: baseline;
}
.hero__photo figcaption .mono {
  color: var(--signal);
  border: 1px solid var(--signal);
  padding: .15rem .4rem;
  font-size: .7rem;
}

.hero__photo-corners span {
  position: absolute; width: 18px; height: 18px;
  border: 1px solid var(--signal);
  pointer-events: none;
}
.hero__photo-corners span:nth-child(1) { top: 8px;    left: 8px;    border-right: 0; border-bottom: 0; }
.hero__photo-corners span:nth-child(2) { top: 8px;    right: 8px;   border-left:  0; border-bottom: 0; }
.hero__photo-corners span:nth-child(3) { bottom: 8px; left: 8px;    border-right: 0; border-top:    0; }
.hero__photo-corners span:nth-child(4) { bottom: 8px; right: 8px;   border-left:  0; border-top:    0; }

@media (max-width: 1000px) {
  .hero__photo { aspect-ratio: 4/3; max-width: 600px; }
}

/* HERO RAIL ----------- */

.hero__rail {
  position: relative;
  margin-top: 3rem;
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--ink-faint);
  letter-spacing: .05em;
  border-top: 1px dashed var(--rule);
  padding-top: 1rem;
  max-width: 1600px;
  margin-left: auto; margin-right: auto;
}
.rail__tick { text-transform: uppercase; }

/* --- BUTTONS --------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border: 1px solid currentColor;
  position: relative;
  isolation: isolate;
  transition: color .3s var(--ease), background .3s var(--ease), transform .15s var(--ease);
}
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--signal);
  color: var(--bg-deep);
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal-deep) inset;
}
.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-deep);
}
.btn--primary svg path { stroke-width: 2.5; }

.btn--ghost {
  border-color: var(--rule);
  color: var(--ink-dim);
  background: transparent;
  flex-direction: column; gap: .15rem;
  align-items: flex-start;
  padding: .8rem 1.2rem;
  text-transform: none;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .85rem;
}
.btn--ghost .mono {
  font-family: var(--f-mono);
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: .03em;
}
.btn--ghost:hover { border-color: var(--brand); color: var(--ink); }

/* --- SECTION SCAFFOLDING --------------------------------- */

.sect {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  border-bottom: 1px solid var(--rule);
  max-width: 1600px;
  margin: 0 auto;
}
.sect__head {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  max-width: 60ch;
}
.sect__head .marker__num {
  display: inline-block;
  font-family: var(--f-mono);
  color: var(--signal);
  margin-bottom: .8rem;
  letter-spacing: .05em;
}
.sect__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.6vw, 3.6rem);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 0 .8rem;
  hyphens: auto;
}
.sect__title em { color: var(--brand); font-weight: 800; }
.sect__lede {
  color: var(--ink-dim);
  max-width: 50ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin: 0;
}

/* --- SECTION 02: KOMPLEKT -------------------------------- */

.komplekt__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .komplekt__grid { grid-template-columns: 1fr; } }

.komplekt__photo {
  margin: 0;
  width: 100%;
  background: var(--bg-card);
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.komplekt__photo picture { display: block; width: 100%; height: 100%; }
.komplekt__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.04);
  transition: transform 1.2s var(--ease);
}
.komplekt__photo:hover img { transform: scale(1.03); }
.komplekt__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .8rem 1rem;
  background: linear-gradient(to top, rgba(11,12,10,.92), transparent);
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--ink);
}

.komplekt__list { display: flex; flex-direction: column; gap: 0; }
.komplekt__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.5rem;
  row-gap: .35rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.komplekt__list li:first-child { padding-top: 0; }
.komplekt__list li:last-child  { border-bottom: 0; }
.komplekt__list li h3 { grid-column: 2; }
.komplekt__list li p  { grid-column: 2; }
.komplekt__no {
  color: var(--signal);
  font-size: .9rem;
  padding-top: .35rem;
  grid-row: 1;
}
.komplekt__list h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin: 0 0 .35rem;
  letter-spacing: -.01em;
}
.komplekt__list h3 .mono {
  color: var(--brand);
  font-size: .85em;
  font-weight: 500;
}
.komplekt__list p {
  margin: 0;
  color: var(--ink-dim);
  font-size: .98rem;
}

/* --- SECTION 03: CARDS ----------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}
.card--accent { border-color: var(--brand-deep); background: color-mix(in oklab, var(--bg-card) 90%, var(--brand) 10%); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  color: var(--brand);
}
.card__icon svg { width: 32px; height: 32px; }
.card h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: -.01em;
}
.card p { margin: 0; color: var(--ink-dim); font-size: .96rem; }

/* --- SECTION 04: CALCULATOR ------------------------------ */

.sect--calc { background: linear-gradient(180deg, transparent 0%, color-mix(in oklab, var(--bg-deep) 85%, var(--brand) 6%) 100%); }

.calc {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 3rem);
  position: relative;
}
.calc::before, .calc::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--brand);
  pointer-events: none;
}
.calc::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.calc::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } }

.calc__controls { display: flex; flex-direction: column; gap: 2.5rem; }
.calc__row label {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1rem; gap: 1rem;
}
.calc__label {
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--ink-dim);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.calc__out {
  font-family: var(--f-mono);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: .02em;
}
.calc__out span { color: var(--signal); font-weight: 500; }
.calc__scale {
  display: flex; justify-content: space-between;
  margin-top: .5rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--ink-faint);
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--rule);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right, var(--brand) var(--p, 50%), var(--rule) var(--p, 50%));
}
input[type="range"]::-moz-range-track {
  height: 4px;
  background: linear-gradient(to right, var(--brand) var(--p, 50%), var(--rule) var(--p, 50%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--signal);
  border: 2px solid var(--bg-deep);
  margin-top: -9px;
  cursor: grab;
  transition: transform .15s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--signal);
  border: 2px solid var(--bg-deep);
  cursor: grab;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; }

.calc__result {
  border-left: 1px dashed var(--rule);
  padding-left: clamp(1rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem;
}
@media (max-width: 800px) { .calc__result { border-left: 0; border-top: 1px dashed var(--rule); padding-left: 0; padding-top: 1.5rem; } }
.calc__formula {
  font-family: var(--f-mono);
  color: var(--ink-dim);
  font-size: .92rem;
  letter-spacing: .02em;
}
.calc__formula span { color: var(--brand); font-weight: 500; }

.calc__total {
  display: flex; align-items: baseline; gap: .6rem;
  flex-wrap: wrap;
}
.calc__total-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}
.calc__total-cur {
  font-family: var(--f-mono);
  font-size: 1.4rem;
  color: var(--signal);
  letter-spacing: .02em;
}
.calc__note {
  font-size: .9rem;
  color: var(--ink-dim);
  margin: 0;
}
.calc__cta { align-self: flex-start; }

/* --- SECTION 05: STEPS ----------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--bg-deep);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1rem;
  position: relative;
  transition: background .3s var(--ease);
}
.step:hover { background: var(--bg-card); }
.step__no {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: .9;
  color: var(--brand);
  letter-spacing: -.02em;
}
.step h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
}
.step p { margin: 0; color: var(--ink-dim); font-size: .96rem; }

/* --- SECTION 06: WHY ------------------------------------- */

.sect--why { background: var(--bg-surface); }
.why__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } }

.why__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 700px) { .why__list { grid-template-columns: 1fr; } }
.why__list li {
  padding: 2rem;
  border: 1px solid var(--rule);
  margin: -1px 0 0 -1px; /* collapse borders */
  background: var(--bg-deep);
  display: flex; flex-direction: column; gap: .8rem;
  transition: background .3s var(--ease);
}
.why__list li:hover { background: var(--bg-card); }
.why__list .mono { color: var(--signal); font-size: .85rem; letter-spacing: .04em; }
.why__list h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -.01em;
}
.why__list p { margin: 0; color: var(--ink-dim); font-size: .94rem; }

/* --- SECTION 07: GALLERY --------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery__item {
  margin: 0; position: relative; overflow: hidden;
  background: var(--bg-card);
  grid-column: span 2;
}
.gallery__item--wide { grid-column: span 4; grid-row: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter .5s var(--ease);
  filter: contrast(1.04) saturate(.95);
}
.gallery__item:hover img { transform: scale(1.06); filter: contrast(1.1) saturate(1.1); }

.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .8rem 1rem;
  background: linear-gradient(to top, rgba(11,12,10,.92), transparent 80%);
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .03em;
  color: var(--ink);
  transform: translateY(20%);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.gallery__item figcaption .mono {
  color: var(--signal);
  margin-right: .5rem;
}
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery__item, .gallery__item--wide, .gallery__item--tall { grid-column: span 1; grid-row: span 1; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item figcaption { transform: none; opacity: 1; }
}

/* --- SECTION 08: FAQ ------------------------------------- */

.faq {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.faq__item {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -.01em;
  transition: color .25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 1.6rem;
  color: var(--brand);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  flex-shrink: 0;
  line-height: 1;
}
.faq__item[open] summary::after {
  content: "−";
  background: var(--brand);
  color: var(--bg-deep);
  border-color: var(--brand);
}
.faq__item summary:hover { color: var(--brand); }
.faq__item p {
  padding: 0 0 1.5rem;
  margin: 0;
  color: var(--ink-dim);
  max-width: 70ch;
  font-size: 1rem;
}

/* --- SECTION 09: FORM ------------------------------------ */

.sect--form { background: var(--bg-surface); }
.form-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

.form-grid__lead .marker__num {
  font-family: var(--f-mono);
  color: var(--signal);
  margin-bottom: .8rem;
  display: inline-block;
}
.contacts {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.contacts li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.contacts li:last-child { border-bottom: 0; }
.contacts .mono {
  color: var(--brand);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.contacts__big {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  display: block;
}
a.contacts__big:hover { color: var(--signal); }
.contacts__small {
  display: block;
  margin-top: .35rem;
  font-family: var(--f-body);
  font-size: .88rem;
  font-weight: 400;
  color: var(--ink-dim);
  letter-spacing: 0;
}

/* form */
.form {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}
.form::before, .form::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--signal);
  pointer-events: none;
}
.form::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.form::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.form__row { margin-bottom: 1.4rem; }
.form__row label {
  display: block;
  font-family: var(--f-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-dim);
  margin-bottom: .55rem;
}
.form__row label span[aria-hidden] { color: var(--signal); margin-left: .2rem; }
.form__hint { color: var(--ink-faint); text-transform: lowercase; font-weight: 400; }

.form__row input,
.form__row textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: .65rem 0;
  font-family: var(--f-body);
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  transition: border-color .25s var(--ease);
}
.form__row textarea { resize: vertical; min-height: 60px; }
.form__row input::placeholder,
.form__row textarea::placeholder {
  color: var(--ink-faint);
}
.form__row input:focus,
.form__row textarea:focus {
  border-bottom-color: var(--brand);
}
.form__row input:invalid:not(:placeholder-shown) {
  border-bottom-color: var(--danger);
}
.form__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__row--two > div { margin: 0; }
@media (max-width: 480px) {
  .form__row--two { grid-template-columns: 1fr; }
}

.form__hp { position: absolute; left: -10000px; top: -10000px; opacity: 0; pointer-events: none; }

.form__submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 1rem;
}
.form__submit[disabled] { opacity: .55; cursor: progress; }

.form__legal {
  margin: 1rem 0 0;
  font-size: .8rem;
  color: var(--ink-faint);
  font-family: var(--f-body);
}

.form__status {
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: .9rem;
  padding: .8rem 1rem;
  display: none;
}
.form__status.is-ok {
  display: block;
  background: color-mix(in oklab, var(--ok) 15%, transparent);
  border-left: 3px solid var(--ok);
  color: var(--ink);
}
.form__status.is-err {
  display: block;
  background: color-mix(in oklab, var(--danger) 15%, transparent);
  border-left: 3px solid var(--danger);
  color: var(--ink);
}

/* --- FOOTER ---------------------------------------------- */

.foot {
  border-top: 1px solid var(--rule);
  background: var(--bg-deep);
}
.foot__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2.5rem var(--pad-x) 6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.foot__brand {
  display: flex; flex-direction: column; gap: .25rem;
}
.foot__brand .brand__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.1rem;
}
.foot__tag {
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--ink-dim);
  letter-spacing: .04em;
}
.foot__contacts {
  display: flex; gap: 1rem; align-items: center;
  font-family: var(--f-mono);
  font-size: .9rem;
}
.foot__contacts a:hover { color: var(--signal); }
.foot__sep { color: var(--ink-faint); }
.foot__meta { color: var(--ink-faint); font-size: .78rem; text-align: right; }
@media (max-width: 800px) {
  .foot__inner { grid-template-columns: 1fr; text-align: left; gap: 1.2rem; }
  .foot__meta { text-align: left; }
}

/* --- STICKY MOBILE BAR ----------------------------------- */

.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: none;
  background: color-mix(in oklab, var(--bg-deep) 95%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  padding: .65rem;
  gap: .65rem;
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar__call,
.sticky-bar__form {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .9rem 1rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.sticky-bar__call {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.sticky-bar__call svg { width: 18px; height: 18px; }
.sticky-bar__form {
  background: var(--signal);
  color: var(--bg-deep);
}
@media (max-width: 700px) {
  .sticky-bar { display: flex; }
  .foot__inner { padding-bottom: 7rem; }
  body { padding-bottom: 0; }
}

/* --- REVEAL ANIMATIONS ----------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal .9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal {
  to { opacity: 1; transform: none; }
}

.in-view {
  animation: reveal .9s var(--ease) forwards;
}
[data-observe] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-observe].is-in { opacity: 1; transform: none; }

/* --- Print / minimal print ------------------------------- */
@media print {
  .top, .sticky-bar, .hero__photo-corners, .form { display: none !important; }
}
