/* P17 · Južná strecha — Bauhaus primary shapes
   White ground, black type, three primaries only in shapes and blocks. */

:root {
  --bg: oklch(0.98 0 0);
  --fg: oklch(0.15 0 0);
  --muted: oklch(0.4 0 0);
  --line: oklch(0.15 0 0);
  --red: oklch(0.58 0.22 28);
  --cobalt: oklch(0.5 0.17 250);
  --yellow: oklch(0.88 0.17 92);
  --accent: var(--fg);
  --accent-fg: oklch(0.98 0 0);
  --on-color: oklch(1 0 0);

  --section-y: clamp(3.5rem, 2.5rem + 3vw, 6rem);
  --lw: 4px;
  --gut: clamp(16px, 3vw, 40px);
  --rail: 0px;
  --dock: 56px;

  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --display-1: clamp(2.25rem, 1.4rem + 3.4vw, 4.75rem);
  --display-2: clamp(1.625rem, 1.25rem + 1.6vw, 2.75rem);
  --display-3: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);

  --sans: "Jost", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, monospace;
}

@media (min-width: 900px) {
  :root { --rail: 76px; --dock: 0px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.motion { scroll-behavior: auto !important; }
body {
  margin: 0;
  padding-left: var(--rail);
  padding-bottom: var(--dock);
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.5 var(--sans);
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.bg-cobalt :focus-visible, .bg-red :focus-visible, .btn:focus-visible { outline-color: var(--fg); }
[id] { scroll-margin-top: 16px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: calc(var(--rail) + 16px); top: 12px; z-index: 100;
  background: var(--fg); color: var(--bg); padding: 12px 16px; font-weight: 500;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.9375rem; }

.display-1 { font-size: var(--display-1); line-height: 1.02; letter-spacing: -0.01em; font-weight: 700; }
.display-2 { font-size: var(--display-2); line-height: 1.06; letter-spacing: -0.01em; font-weight: 700; }
.display-3 { font-size: var(--display-3); line-height: 1.12; font-weight: 700; }
.label, legend, .out dt, .f label, .foot__h, .tbl thead th {
  font-family: var(--sans); font-weight: 500; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* shape fills */
.f-yellow { fill: var(--yellow); }
.f-cobalt { fill: var(--cobalt); }
.f-red { fill: var(--red); }
.f-ink, .ground { fill: var(--fg); }
.house-body { fill: var(--bg); }
.house-edge { fill: none; stroke: var(--fg); stroke-width: 4px; vector-effect: non-scaling-stroke; }
.pv { fill: url(#pv-cells) var(--fg); }
.pv-grid { fill: oklch(0.55 0 0); }
.level-t { font-family: var(--mono); font-size: 24px; font-weight: 500; fill: var(--fg); }
.ic-yellow { fill: var(--yellow); }
.ic-red { fill: var(--red); }
.ic-cobalt { fill: var(--cobalt); }
.bg-yellow { background: var(--yellow); color: var(--fg); }
.bg-cobalt { background: var(--cobalt); color: var(--on-color); }
.bg-red { background: var(--red); color: var(--on-color); }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: square; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  background: var(--accent); color: var(--accent-fg);
  border: 3px solid var(--accent); border-radius: 0;
  font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--bg); color: var(--fg); }
.btn--wide { width: 100%; }
.tlink {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.tlink:hover { text-decoration-thickness: 4px; }

/* ---------- masthead + nav ---------- */
.mast { max-width: 1280px; margin-inline: auto; padding: 20px var(--gut) 0; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
}

.nav { position: fixed; z-index: 50; background: var(--bg); }
.nav__btn { position: relative; display: grid; place-items: center; text-decoration: none; }
.nav__ic { width: 40px; height: 40px; transition: transform 150ms ease-out; }
.nav__btn:hover .nav__ic { transform: translateX(4px); }
.nav__menu {
  width: 100%; height: 100%; border: 0; border-radius: 0; cursor: pointer;
  background: var(--fg); color: var(--bg);
  font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.nav__label { display: none; }
.menu[hidden] { display: none; }

@media (min-width: 900px) {
  .nav {
    left: 0; top: 0; bottom: 0; width: var(--rail);
    border-right: var(--lw) solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  }
  .nav__shapes { display: flex; flex-direction: column; gap: 14px; }
  .nav__btn { width: 56px; height: 56px; }
  .nav__btn[aria-current="true"]::before {
    content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 4px; background: var(--fg);
  }
  .nav__tip {
    position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%);
    background: var(--fg); color: var(--bg); padding: 6px 10px; white-space: nowrap;
    font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
    visibility: hidden;
  }
  .nav__btn:hover .nav__tip, .nav__btn:focus-visible .nav__tip { visibility: visible; }
  .nav__more, .menu { display: none !important; }
  .nav__label {
    display: block; writing-mode: vertical-rl; transform: rotate(180deg);
    background: var(--fg); color: var(--bg); padding: 14px 7px;
    font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
    white-space: nowrap;
  }
}

@media (max-width: 899.98px) {
  .nav {
    left: 0; right: 0; bottom: 0; height: calc(var(--dock) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: var(--lw) solid var(--line);
  }
  .nav__shapes { display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; }
  .nav__shapes li + li { border-left: 2px solid var(--line); }
  .nav__btn { height: 100%; }
  .nav__ic { width: 28px; height: 28px; }
  .nav__btn[aria-current="true"] { background: var(--fg); }
  .nav__tip {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .menu {
    position: fixed; left: 0; right: 0; bottom: calc(var(--dock) + env(safe-area-inset-bottom));
    background: var(--bg); border-top: var(--lw) solid var(--line);
    max-height: calc(100vh - var(--dock) - 40px); overflow-y: auto;
  }
  .menu ul { list-style: none; margin: 0; padding: 8px var(--gut) 16px; }
  .menu a {
    display: flex; align-items: center; min-height: 52px;
    font-weight: 700; font-size: 1.375rem; text-decoration: none;
    border-bottom: 2px solid var(--line);
  }
}

/* ---------- hero ---------- */
.hero { border-bottom: var(--lw) solid var(--line); padding-block: clamp(20px, 3vw, 40px) clamp(32px, 4vw, 64px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.5vw, 40px); align-items: center; }
.hero__copy { grid-column: 1 / span 5; container-type: inline-size; }
.hero__stage { grid-column: 6 / -1; justify-self: end; width: 100%; max-width: 700px; }
/* sized by its 5/12 column so "Slnko je kruh." stays one line at 1280–1920 */
.hero__h1 { font-size: min(var(--display-1), 12.2cqi); }
.h1-line { display: block; }
.h1-tail {
  display: block; margin-top: 0.5em; max-width: 22ch;
  font-size: max(0.46em, 1.375rem); line-height: 1.14; letter-spacing: 0;
}
.h1-shape { display: inline-block; width: 0.56em; height: 0.56em; margin-right: 0.24em; vertical-align: 0.04em; }
.h1-tail .h1-shape { width: 0.72em; height: 0.72em; vertical-align: -0.06em; }
@media (min-width: 900px) {
  /* shapes hang in the gutter, the text keeps its left edge */
  .h1-line, .h1-tail { position: relative; }
  .h1-line .h1-shape { position: absolute; right: 100%; top: 0.3em; width: 0.4em; height: 0.4em; margin-right: 0.16em; }
  .h1-tail .h1-shape { position: absolute; right: 100%; top: 0.22em; width: 0.62em; height: 0.62em; margin-right: 0.3em; }
}
.lead { margin-top: clamp(20px, 2vw, 28px); max-width: 40ch; font-size: var(--step-1); }
.hero__cta { margin-top: clamp(24px, 2.5vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.scene { width: 100%; height: auto; aspect-ratio: 7 / 5; overflow: hidden; }
.scene-cap { margin-top: 10px; text-align: center; color: var(--fg); }

@media (max-width: 899.98px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy, .hero__stage { grid-column: 1; }
  .hero__stage { order: -1; justify-self: stretch; max-width: none; margin-bottom: 20px; }
  .scene--hero { height: 56vw; max-height: 420px; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); border-bottom: var(--lw) solid var(--line); }
.sec-head { display: grid; gap: 12px 40px; margin-bottom: clamp(24px, 3.5vw, 48px); }
.sec-head h2 { max-width: 22ch; }
.sec-head p { max-width: 52ch; color: var(--muted); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 7fr 5fr; align-items: end; }
}

/* ---------- calculator ---------- */
.calc__grid {
  display: grid; gap: var(--lw); background: var(--line); border: var(--lw) solid var(--line);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "in stage" "act out";
}
.calc__grid > * { background: var(--bg); min-width: 0; }
.calc__stage { grid-area: stage; padding: clamp(12px, 2vw, 28px); display: flex; flex-direction: column; justify-content: center; }
.calc__stage .scene { max-height: min(500px, 58vh); }
.calc__inputs { grid-area: in; padding: clamp(20px, 2.5vw, 36px); display: flex; flex-direction: column; gap: 28px; }
.calc__out { grid-area: out; }
.calc__act { grid-area: act; padding: clamp(20px, 2.5vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.scene-extra { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; font-weight: 500; }
.scene-extra[hidden] { display: none; }
.scene-extra .ic { width: 16px; height: 16px; }
.grid-line { fill: var(--yellow); stroke: var(--fg); stroke-width: 3; }

.range-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.range-top label { font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.range-val { font-size: 2rem; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.range-scale { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--muted); }
.hint { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; height: 44px; margin: 8px 0 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--fg); }
input[type="range"]::-moz-range-track { height: 4px; background: var(--fg); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: -14px;
  border-radius: 50%; background: var(--yellow); border: 4px solid var(--fg);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--fg);
}

.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.chip { position: relative; display: block; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 3px solid var(--fg); font-weight: 500;
}
.chip input:checked + span { background: var(--fg); color: var(--bg); }
.chip:hover input:not(:checked) + span { box-shadow: inset 0 -4px 0 var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track { position: relative; width: 66px; height: 36px; border: 3px solid var(--fg); flex: none; }
.switch__knob { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; background: var(--fg); transition: transform 150ms ease-out; }
.switch input:checked + .switch__track .switch__knob { transform: translateX(30px); background: var(--cobalt); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--fg); outline-offset: 3px; }

.outs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lw); background: var(--line); height: 100%; }
.out { background: var(--bg); padding: clamp(14px, 1.6vw, 22px) clamp(14px, 1.8vw, 24px); display: flex; flex-direction: column; gap: 4px; }
.out dt { color: var(--muted); }
.out__v { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem); font-weight: 500; line-height: 1.15; white-space: nowrap; }
.out__s { font-size: 0.9375rem; color: var(--muted); }
.out--key { background: var(--fg); color: var(--bg); }
.out--key dt, .out--key .out__s { color: var(--bg); }

.calc__note { font-size: 0.9375rem; }
.how summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer;
  font-weight: 500; list-style: none; border-top: 2px solid var(--line);
}
.how summary::-webkit-details-marker { display: none; }
.how summary::after, .qa summary::after {
  content: ""; width: 14px; height: 14px; flex: none; margin-left: 16px;
  background: linear-gradient(var(--fg) 0 0) center / 100% 3px no-repeat, linear-gradient(var(--fg) 0 0) center / 3px 100% no-repeat;
}
.how[open] summary::after, .qa[open] summary::after { background: linear-gradient(var(--fg) 0 0) center / 100% 3px no-repeat; }
.how__list { list-style: none; padding: 4px 0 0; font-size: 0.8125rem; }
.how__list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.how__p { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }

@media (max-width: 899.98px) {
  .calc__grid { display: flex; flex-direction: column; }
  .calc__stage {
    position: sticky; top: 0; z-index: 5; height: 40vh; height: 40svh; min-height: 220px;
    padding: 8px 12px; border-bottom: var(--lw) solid var(--line); margin-bottom: calc(var(--lw) * -1);
  }
  .calc__stage .scene { flex: 1 1 auto; min-height: 0; height: 100%; max-height: none; }
  .calc__stage .scene-cap { margin-top: 2px; font-size: 0.8125rem; }
  .scene-extra { font-size: 0.8125rem; margin-top: 0; }
}

/* ---------- services: primary blocks ---------- */
.blocks { display: grid; gap: var(--lw); background: var(--line); border: var(--lw) solid var(--line); }
.svc { display: grid; gap: var(--lw); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.svc--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cell { background: var(--bg); overflow: clip; min-width: 0; }
.svc__fill { height: 100%; padding: clamp(24px, 3.2vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.svc__in { display: flex; flex-direction: column; gap: 14px; max-width: 46ch; }
.svc__lead { font-size: var(--step-1); }
.svc__lead strong { font-weight: 700; white-space: nowrap; }
.mask-edge { fill: none; stroke: var(--fg); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-width: 4px; }
.price { font-size: 0.9375rem; }
.price li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 2px solid currentColor; }
.price li:last-child { border-bottom: 2px solid currentColor; }
.price li span:last-child { white-space: nowrap; font-weight: 500; }
.svc__small { font-size: 0.875rem; }
.svc__media { display: grid; place-items: center; padding: clamp(20px, 3vw, 44px); }
.mask { width: 100%; max-width: 400px; height: auto; aspect-ratio: 1; }
@media (max-width: 899.98px) {
  .svc, .svc--flip { grid-template-columns: minmax(0, 1fr); }
  .svc__media { order: -1; }
  .mask { max-width: 320px; }
  .price { font-size: 0.8125rem; }
}

/* ---------- steps ---------- */
.steps__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--lw); background: var(--line); border: var(--lw) solid var(--line); }
.step { background: var(--bg); padding: clamp(20px, 2vw, 28px) clamp(16px, 1.6vw, 24px); display: flex; flex-direction: column; gap: 8px; }
.step__clip { width: 72px; height: 72px; overflow: clip; margin-bottom: 12px; }
.step__sq {
  display: grid; place-items: center; width: 72px; height: 72px;
  background: var(--fg); color: var(--bg); font-weight: 700; font-size: 2.25rem; line-height: 1;
}
.step__h { font-size: 1.25rem; font-weight: 700; line-height: 1.15; }
.step p { font-size: 0.9375rem; }
.step__t { margin-top: auto; padding-top: 10px; font-weight: 500; }
@media (max-width: 1099.98px) and (min-width: 900px) {
  .step__h { font-size: 1.125rem; }
}
@media (max-width: 899.98px) {
  .steps__list { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 20px; row-gap: 6px; align-items: start; }
  .step__clip { grid-row: 1 / span 3; margin: 0; }
  .step__t { margin: 0; padding: 0; }
}

/* ---------- references table ---------- */
.tbl { width: 100%; border-collapse: collapse; border: var(--lw) solid var(--line); font-size: 0.9375rem; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 2px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--fg); color: var(--bg); }
.tbl tbody th { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; }
.tbl .num { text-align: right; white-space: nowrap; }
@media (max-width: 639.98px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl tr { border-bottom: var(--lw) solid var(--line); padding: 8px 0; }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl th, .tbl td { border: 0; padding: 4px 16px; }
  .tbl tbody th { font-size: 1.25rem; padding-top: 8px; }
  .tbl td { display: flex; justify-content: space-between; gap: 16px; }
  .tbl td::before { content: attr(data-l); font-family: var(--sans); color: var(--muted); }
  .tbl .num { text-align: right; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--lw); background: var(--line); border: var(--lw) solid var(--line); }
.qa { background: var(--bg); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 72px;
  padding: 18px clamp(16px, 2vw, 28px); cursor: pointer; list-style: none;
  font-weight: 500; font-size: var(--step-1); line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { box-shadow: inset 4px 0 0 var(--fg); }
.qa p { padding: 0 clamp(16px, 2vw, 28px) 22px; max-width: 60ch; }
@media (max-width: 767.98px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__side { display: flex; flex-direction: column; gap: 20px; }
.contact__side > p:first-of-type { max-width: 40ch; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lw); background: var(--line); border: var(--lw) solid var(--line); max-width: 360px; }
.trio__c { background: var(--bg); aspect-ratio: 1; display: grid; place-items: center; overflow: clip; }
.trio__s { width: 62%; height: 62%; }
.contact__line { line-height: 1.7; overflow-wrap: anywhere; }

.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.f--wide { grid-column: 1 / -1; }
.f .opt { text-transform: none; letter-spacing: 0; color: var(--muted); }
.f input, .f select {
  width: 100%; min-height: 52px; padding: 0 14px;
  border: 3px solid var(--fg); border-radius: 0; background: var(--bg);
  font-size: var(--step-0);
}
.f select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background: linear-gradient(135deg, transparent 50%, var(--fg) 50%) right 18px center / 10px 10px no-repeat;
}
.f input::placeholder { color: var(--muted); opacity: 1; }
.f input[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 6px 0 0 var(--red); }
.err { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; }
.err::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--red); }
.err[hidden] { display: none; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; min-height: 44px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--fg); cursor: pointer; }
.consent + .err { margin-top: 6px; }
.form__foot { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form__free { font-weight: 500; }
.ok { display: flex; align-items: center; gap: 24px; border: var(--lw) solid var(--line); padding: clamp(24px, 3vw, 40px); }
.ok[hidden] { display: none; }
.ok__s { width: 72px; height: 72px; flex: none; }
@media (max-width: 899.98px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .trio { max-width: 240px; }
}
@media (max-width: 559.98px) {
  .form__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- footer ---------- */
.foot { padding-block: clamp(40px, 5vw, 64px) 28px; }
.foot__grid { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 32px; }
.foot__grid p { line-height: 1.7; }
.wordmark--foot { margin-bottom: 8px; }
.foot__h { margin-bottom: 10px; }
.foot__links a, .foot__grid .mono a { display: inline-flex; min-height: 44px; align-items: center; }
.foot__grid .mono { line-height: 1.2; }
.foot__grid .mono { overflow-wrap: anywhere; }
.foot__base { margin-top: 36px; padding-top: 18px; border-top: var(--lw) solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.9375rem; }
@media (max-width: 767.98px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- motion contract ----------
   Hidden start states only under html.motion and only until main.js takes over
   (.gs-ready). If main.js never runs, the safety animation shows everything at 3 s. */
@keyframes p17-safety { to { visibility: visible; } }
html.motion:not(.gs-ready) .hero .sh,
html.motion:not(.gs-ready) .hero .sh-cap,
html.motion:not(.gs-ready) [data-slide] {
  visibility: hidden;
  animation: p17-safety 0s 3s forwards;
}
.is-in { visibility: visible !important; transform: none !important; }

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