/* v2.0 — "Výkres zapojení": light technical page, one red wire runs through it and is drawn by the scroll. */
:root {
  --paper: #f3f3f0;
  --paper-2: #e7e8e3;
  --ink: #111214;
  --ink-2: #4a4d53;
  --red: #b3172c;
  --red-deep: #8e0f22;
  --graphite: #1b1d21;
  --on-graphite: #ecedea;
  --on-graphite-2: #a9acb2;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: max(20px, 4vw);
  --wire-x: max(20px, 4vw);
  --content-l: calc(var(--wire-x) + clamp(28px, 4vw, 72px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px;
  height: 68px; padding: 0 var(--gutter); background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  transition: box-shadow 300ms ease;
}
.bar.is-scrolled { box-shadow: 0 1px 0 rgb(17 18 20 / 0.08); }
.bar__logo img { width: 128px; }
.bar nav { display: flex; gap: 28px; margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
.bar nav a { text-decoration: none; position: relative; padding: 6px 0; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease); }
.bar nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.bar__tel { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px;
  font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  background: var(--red); color: #fff; transition: transform 160ms var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red-deep); transform: translateY(101%); transition: transform 380ms var(--ease); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn .arr { transition: transform 300ms var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- the wire ---------- */
.circuit { position: relative; }
.wire { position: absolute; left: var(--wire-x); top: 0; bottom: 0; width: 2px; background: var(--paper-2); pointer-events: none; z-index: 1; }
.wire__live { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(var(--p, 0)); }
.node { position: absolute; left: calc(var(--wire-x) - 6px); width: 14px; height: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--paper-2); z-index: 2; transition: background-color 300ms ease, box-shadow 300ms ease; }
.node.is-on { background: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.sec { position: relative; padding: clamp(96px, 12vw, 176px) var(--gutter) 0 var(--content-l); }
.sec > .node { top: calc(clamp(96px, 12vw, 176px) + 0.35em); }

.kicker { display: block; margin-bottom: 18px; font-size: 0.9375rem; font-weight: 600; color: var(--red); }
.h2 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem); line-height: 0.98; letter-spacing: -0.02em; font-variation-settings: "wdth" 112; max-width: 16ch; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 64px); min-height: calc(100svh - 68px); padding: clamp(32px, 6vw, 80px) var(--gutter) 0 var(--content-l); }
.hero > .node { top: clamp(40px, 6.6vw, 92px); }
.hero__text { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-bottom: clamp(32px, 5vw, 64px); }
.hero h1 { font-size: clamp(3rem, 1.2rem + 6.4vw, 7.5rem); line-height: 0.92; letter-spacing: -0.035em; font-variation-settings: "wdth" 118; font-weight: 750; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero h1 .ln > span { display: block; }
.hero__lead { max-width: 44ch; margin-top: 32px; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fact b { display: block; font-family: var(--display); font-size: clamp(1.125rem, 0.9rem + 0.6vw, 1.5rem); font-variation-settings: "wdth" 100; white-space: nowrap; line-height: 1.05; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 6px; font-size: 0.875rem; color: var(--ink-2); line-height: 1.35; }
.hero__photo { position: relative; overflow: hidden; align-self: stretch; min-height: 420px; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 6px 10px; background: var(--paper); font-size: 0.8125rem; font-weight: 500; }

/* ---------- services: sticky picture + list ---------- */
.svc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc__intro p { margin-top: 24px; max-width: 40ch; color: var(--ink-2); }
.svc__pic { position: sticky; top: 100px; margin-top: 48px; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--paper-2); }
.svc__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 600ms ease, transform 1200ms var(--ease); }
.svc__pic img.is-on { opacity: 1; transform: none; }
.svc__list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.svc__item { position: relative; padding: 30px 0 32px; border-top: 1.5px solid var(--paper-2); }
.svc__item:last-child { border-bottom: 1.5px solid var(--paper-2); }
.svc__item::before { content: ""; position: absolute; left: 0; top: -1.5px; height: 1.5px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
.svc__item.is-on::before { transform: none; }
.svc__item h3 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.05; letter-spacing: -0.015em; font-variation-settings: "wdth" 108; transition: color 300ms ease; }
.svc__item.is-on h3 { color: var(--red); }
.svc__item p { margin-top: 10px; max-width: 52ch; color: var(--ink-2); }
.svc__item .m-pic { display: none; }

/* ---------- RES: dark band ---------- */
.res { position: relative; z-index: 3; margin-top: clamp(96px, 12vw, 176px); background: var(--graphite); color: var(--on-graphite); display: grid; grid-template-columns: 1fr 1fr; }
.res__text { padding: clamp(56px, 7vw, 112px) var(--gutter) clamp(56px, 7vw, 112px) var(--content-l); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.res .kicker { color: #ff5a6e; }
.price { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 2rem + 10vw, 12rem); line-height: 0.85; letter-spacing: -0.045em; font-variation-settings: "wdth" 125; font-variant-numeric: tabular-nums; }
.price small { display: block; margin-top: 18px; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; letter-spacing: 0; font-variation-settings: "wdth" 100; color: var(--on-graphite); }
.res__text p { max-width: 46ch; color: var(--on-graphite-2); }
.res__text p + p { margin-top: 14px; }
.res__text .btn { align-self: flex-start; }
.res__photo { position: relative; min-height: 520px; overflow: hidden; }
.res__photo img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }

/* ---------- process ---------- */
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: st; }
.step { counter-increment: st; position: relative; padding-top: 28px; }
.step::before { content: counter(st); display: block; font-family: var(--display); font-weight: 700; font-size: 3.25rem; line-height: 1; color: var(--red); font-variation-settings: "wdth" 125; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.step::after { content: ""; position: absolute; top: 0; left: 0; right: -20px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease); transition-delay: calc(var(--i) * 120ms); }
.steps.is-in .step::after { transform: none; }
.step:last-child::after { right: 0; }
.step h3 { font-size: 1.25rem; line-height: 1.15; font-variation-settings: "wdth" 104; }
.step p { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.proc__pic { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.proc__pic figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.proc__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.proc__pic figure:hover img { transform: scale(1.04); }
.proc__pic figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--ink-2); }
.proc__pic figure { aspect-ratio: auto; }
.proc__pic .f { overflow: hidden; aspect-ratio: 4 / 3; }

/* ---------- about: statement ---------- */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.quote { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 1.2rem + 5.4vw, 6.5rem); line-height: 0.95; letter-spacing: -0.03em; font-variation-settings: "wdth" 118; }
.quote .w { display: inline-block; opacity: 0.16; transition: opacity 500ms ease; }
.quote .w.is-on { opacity: 1; }
.about__list { display: grid; gap: 28px; }
.about__list h3 { font-size: 1.25rem; font-variation-settings: "wdth" 104; }
.about__list p { margin-top: 6px; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.qa { border-top: 1.5px solid var(--paper-2); }
.qa:last-child { border-bottom: 1.5px solid var(--paper-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 18px; height: 18px; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--ink); transition: transform 300ms var(--ease), background-color 300ms; }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa[open] summary i::before, .qa[open] summary i::after { background: var(--red); }
.qa summary:hover { color: var(--red); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--ease); }
.qa[open] .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding-bottom: 26px; max-width: 60ch; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(96px, 12vw, 160px); }
.contact__info { display: grid; gap: 32px; align-content: start; }
.contact__info .tel { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1.05; font-variation-settings: "wdth" 112; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__info .tel:hover { color: var(--red); }
.contact__info p { color: var(--ink-2); }
.contact__info strong { color: var(--ink); font-weight: 600; }
.contact__map { margin-top: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
.contact__map img { width: 100%; height: 100%; object-fit: cover; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: start; }
.field { position: relative; display: grid; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid #c9cbc5; padding: 10px 0; border-radius: 0; resize: vertical; transition: border-color 200ms; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.topics { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; }
.topics legend { font-size: 0.875rem; font-weight: 600; margin-bottom: 12px; padding: 0; }
.topics div { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; box-shadow: inset 0 0 0 1.5px #c9cbc5; cursor: pointer; font-size: 0.9375rem; font-weight: 500; transition: background-color 200ms, color 200ms, box-shadow 200ms; }
.chip span::before { content: ""; width: 8px; height: 8px; background: #c9cbc5; transition: background-color 200ms; }
.chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip input:checked + span::before { background: var(--red); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.chip span:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.form__foot small { font-size: 0.8125rem; color: var(--ink-2); max-width: 44ch; }

/* ---------- footer ---------- */
.foot { background: var(--graphite); color: var(--on-graphite); padding: 72px var(--gutter) 28px var(--content-l); position: relative; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; font-size: 0.9375rem; }
.foot__grid h3 { font-size: 0.875rem; font-weight: 600; color: var(--on-graphite-2); margin-bottom: 12px; font-family: var(--text); }
.foot__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot__grid a { text-decoration: none; }
.foot__grid a:hover { color: #ff5a6e; }
.foot__logo img { width: 160px; }
.foot__logo p { margin-top: 16px; color: var(--on-graphite-2); max-width: 30ch; }
.foot__word { margin-top: 64px; font-family: var(--display); font-weight: 800; font-size: 14.8vw; line-height: 0.75; letter-spacing: -0.05em; font-variation-settings: "wdth" 125; color: #26292e; white-space: nowrap; margin-left: calc(-1 * (var(--content-l) - var(--gutter)) * 0.15); user-select: none; }
.foot__last { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: var(--on-graphite-2); }
.foot__last a { color: var(--on-graphite-2); }
.credits { max-width: 90ch; }

/* ---------- motion ---------- */
.js [data-rv] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 1000ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rv].is-in { opacity: 1; transform: none; }
.js .hero h1 .ln > span { transform: translateY(105%); animation: up 1100ms var(--ease) forwards; animation-delay: calc(150ms + var(--i) * 110ms); }
.js .hero__lead, .js .hero__cta, .js .facts { opacity: 0; animation: fade 900ms var(--ease) forwards; }
.js .hero__lead { animation-delay: 550ms; } .js .hero__cta { animation-delay: 680ms; } .js .facts { animation-delay: 820ms; }
.js .hero__photo { clip-path: inset(100% 0 0 0); animation: wipe 1400ms var(--ease-io) 200ms forwards; }
.js .hero__photo img { transform: scale(1.15); animation: settle 2000ms var(--ease) 200ms forwards; }
@keyframes up { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bar nav { display: none; }
  .bar__tel { margin-left: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step::after { right: 0; }
}
@media (max-width: 860px) {
  :root { --wire-x: 14px; --content-l: 36px; --gutter: 20px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { min-height: 0; aspect-ratio: 4 / 3.6; order: 2; }
  .hero__text { padding-bottom: 0; }
  .svc, .about, .faq, .contact { grid-template-columns: 1fr; }
  .svc__pic { display: none; }
  .svc__item .m-pic { display: block; margin-top: 18px; aspect-ratio: 16 / 10; overflow: hidden; }
  .svc__item .m-pic img { width: 100%; height: 100%; object-fit: cover; }
  .res { grid-template-columns: 1fr; }
  .res__photo { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .res__text { padding-left: var(--content-l); }
  .proc__pic { grid-template-columns: 1fr; }
  .proc__pic figure:nth-child(n+2) { display: none; }
  form { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__logo { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .bar__logo img { width: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv], .js .hero h1 .ln > span, .js .hero__lead, .js .hero__cta, .js .facts, .js .hero__photo, .js .hero__photo img { opacity: 1; transform: none; animation: none; clip-path: none; transition: none; }
  .wire__live { transform: none; }
  .quote .w { opacity: 1; }
  .res__photo img { height: 100%; transform: none !important; }
}

/* ---------- WordPress additions ---------- */
.hp { position: absolute; left: -9999px; }
.form__status { grid-column: 1 / -1; padding: 14px 18px; background: var(--ink); color: var(--paper); font-weight: 500; }
.form__status.is-error { background: var(--red); color: #fff; }
.sub { padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(96px, 12vw, 160px) var(--content-l); }
.sub article { max-width: 68ch; }
.sub h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem); line-height: 0.98; letter-spacing: -0.02em; font-variation-settings: "wdth" 112; margin-bottom: 40px; }
.sub__content > * + * { margin-top: 1em; }
.sub__content h2 { font-size: 1.5rem; margin-top: 1.6em; }
.sub__content a { color: var(--red); }
