/* DK WELD — styl webu
   Barvy: ink (tmavé pozadí), paper (světlé pozadí), signal (červená značky) */

:root {
  --ink: #161616;
  --ink-2: #1e1f22;
  --ink-3: #26272b;
  --paper: #f5f4f0;
  --paper-2: #ebe9e3;
  --signal: #d9382c;
  --signal-dark: #b82c22;
  --signal-tint: rgba(217, 56, 44, 0.12);
  --steel: #86837d;
  --steel-light: #b5b2ab;
  --line-dark: rgba(245, 244, 240, 0.12);
  --line-light: rgba(22, 22, 22, 0.12);
  --text-dark-muted: rgba(245, 244, 240, 0.68);
  --text-light-muted: #5d5a54;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 500;
}
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.005em;
}
.text-signal { color: var(--signal); }
.lead { font-size: 1.125rem; line-height: 1.7; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--signal); color: #fff; padding: 8px 16px; }
.skip-link:focus { left: 8px; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; min-height: 46px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 30px; min-height: 56px; font-size: 1.02rem; }
.btn-signal { background: var(--signal); color: #fff; border-color: var(--signal); }
.btn-signal:hover { background: var(--signal-dark); border-color: var(--signal-dark); }
.btn-outline { background: transparent; color: var(--paper); border-color: rgba(245, 244, 240, 0.4); }
.btn-outline:hover { border-color: var(--paper); background: rgba(245, 244, 240, 0.06); }
.text-link { color: var(--signal); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Hlavička ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(22, 22, 22, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.4s;
}
.site-header.is-scrolled { background: rgba(22, 22, 22, 0.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { width: 128px; height: auto; }
@media (min-width: 640px) { .brand img { width: 150px; } }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em; text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-phone { display: none; padding: 10px 18px; min-height: 42px; }
@media (min-width: 480px) { .btn-phone { display: inline-flex; } }
@media (min-width: 1100px) {
  .main-nav { display: block; }
  .nav-toggle { display: none !important; }
}
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid var(--line-dark); border-radius: 2px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--paper); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line-dark); background: var(--ink); padding: 12px var(--gutter) 24px; }
.mobile-menu ul li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; font-weight: 700; text-decoration: none; }
.mobile-menu-contact { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
.mobile-menu-contact a:not(.btn) { color: var(--text-dark-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-media img { animation: hero-zoom 14s var(--ease-out) forwards; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 22, 22, 0.92) 0%, rgba(22, 22, 22, 0.72) 42%, rgba(22, 22, 22, 0.25) 100%),
    linear-gradient(0deg, rgba(22, 22, 22, 1) 0%, rgba(22, 22, 22, 0.2) 45%, rgba(22, 22, 22, 0.45) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 64px); padding-bottom: 56px; max-width: var(--container); }
.hero-title { font-size: clamp(3.2rem, 9.5vw, 8.4rem); max-width: 14ch; animation: fade-up 0.9s var(--ease-out) 0.1s both; }
.hero-lead { margin-top: 26px; max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-dark-muted); animation: fade-up 0.9s var(--ease-out) 0.2s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; animation: fade-up 0.9s var(--ease-out) 0.3s both; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); animation: fade-up 0.9s var(--ease-out) 0.4s both; }
.hero-trust li { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; color: var(--text-dark-muted); }
.hero-trust svg { width: 20px; height: 20px; fill: var(--signal); flex: none; }
.hero-bar { position: relative; z-index: 1; background: var(--signal); color: #fff; }
.hero-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; font-size: 0.9rem; font-weight: 600; }
.hero-bar a { font-family: var(--font-mono); font-weight: 500; text-decoration: none; letter-spacing: 0.04em; }
.hero-bar a:hover { text-decoration: underline; }
.hero-bar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 12px; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sekce ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-light { background: var(--ink-2); color: var(--paper); }
.section-light .eyebrow { color: var(--signal); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 920px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head .display { font-size: clamp(2.6rem, 6vw, 5rem); }
.section-lead { margin-top: 18px; font-size: 1.1rem; max-width: 60ch; color: var(--text-dark-muted); }
.section-light .section-lead { color: var(--text-dark-muted); }
.section-lead a { color: var(--signal); font-weight: 700; text-decoration: none; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.notice { padding: 16px; border: 1px solid var(--line-dark); }

/* ---------- Služby ---------- */
.services { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 720px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(3, 1fr); } }
.gallery-more { display: flex; justify-content: center; margin-top: 36px; }
.service {
  position: relative; display: block; min-height: 380px; overflow: hidden; background: var(--ink-2); text-decoration: none; color: var(--paper);
}
@media (min-width: 1100px) { .service { min-height: 460px; } }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; transition: transform 0.9s var(--ease-out), opacity 0.5s; }
.service:hover img { transform: scale(1.05); opacity: 0.55; }
.service::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 22, 22, 0.98) 15%, rgba(22, 22, 22, 0.3) 65%, rgba(22, 22, 22, 0.1)); }
.service-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); }
.service-body .eyebrow { display: block; margin-bottom: 10px; }
.service-body h3 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.service-body p { margin-top: 12px; max-width: 42ch; color: var(--text-dark-muted); }
.service-link { display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 700; color: var(--paper); border-bottom: 2px solid var(--signal); padding-bottom: 2px; transition: gap 0.3s var(--ease-out); }
.service:hover .service-link { gap: 14px; }

/* ---------- Realizace ---------- */
.view-switch { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 2px; overflow: hidden; }
.view-switch button { padding: 10px 18px; background: transparent; border: 0; font-weight: 700; font-size: 0.9rem; cursor: pointer; color: var(--text-dark-muted); }
.view-switch button.is-active { background: var(--paper); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: transparent; border: 1px solid var(--line-dark); border-radius: 999px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: var(--paper); }
.chip.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip .count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--signal); }
.filters-status { margin: 18px 0 28px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dark-muted); }

/* Karty zakázek – stejný styl jako karty služeb: fotka přes celou kartu, text přes přechod */
.projects { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 720px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project {
  position: relative; display: block; width: 100%; min-height: 420px; aspect-ratio: 4 / 5; padding: 0; overflow: hidden;
  text-align: left; color: var(--paper); background: var(--ink-2); border: 0; cursor: pointer;
  animation: fade-up 0.6s var(--ease-out) both;
}
@media (min-width: 1200px) { .project { aspect-ratio: 4 / 4.6; } }
.project img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; transition: transform 0.9s var(--ease-out), opacity 0.5s; }
.project:hover img, .project:focus-visible img { transform: scale(1.05); opacity: 0.78; }
.project::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(22, 22, 22, 0.98) 12%, rgba(22, 22, 22, 0.35) 58%, rgba(22, 22, 22, 0.05)); }
.project-count {
  position: absolute; top: 18px; right: 18px; z-index: 2; padding: 6px 10px; background: rgba(22, 22, 22, 0.72);
  border: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.project-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(22px, 2.6vw, 34px); }
.project-body .eyebrow { display: block; margin-bottom: 10px; }
.project-body h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.project-body p {
  margin-top: 10px; max-width: 46ch; color: var(--text-dark-muted); font-size: 0.95rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-body .service-link { margin-top: 16px; }
.project:hover .service-link { gap: 14px; }

.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo { position: relative; display: block; padding: 0; border: 0; background: var(--ink-3); aspect-ratio: 1; overflow: hidden; cursor: pointer; border-radius: 2px; animation: fade-up 0.6s var(--ease-out) both; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.photo:hover img { transform: scale(1.05); }
.photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: 0.8rem; font-weight: 600; color: #fff; text-align: left; background: linear-gradient(0deg, rgba(22, 22, 22, 0.85), transparent); opacity: 0; transition: opacity 0.3s; }
.photo:hover span, .photo:focus-visible span { opacity: 1; }
.photo:focus-visible, .project:focus-visible, .chip:focus-visible, .btn:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* ---------- O nás ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 980px) { .about { grid-template-columns: 1.05fr 1fr; gap: 72px; } }
.about-text .eyebrow { display: block; margin-bottom: 14px; }
.about-text .display { font-size: clamp(2.5rem, 5.4vw, 4.4rem); max-width: 14ch; }
.about-text .lead { margin-top: 24px; color: var(--text-dark-muted); max-width: 56ch; }
.checklist { margin-top: 28px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border: 2px solid var(--signal); border-radius: 2px; background: linear-gradient(135deg, var(--signal) 50%, transparent 50%); }
.about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.about-media { position: relative; margin: 0; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border: 1px solid var(--line-dark); }
@media (min-width: 980px) { .about-media img { max-height: 680px; } }
.about-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 20px;
  display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 1.05rem;
  background: linear-gradient(0deg, rgba(22, 22, 22, 0.92), transparent);
}

/* ---------- Při práci ---------- */
.work-lead { margin-top: 0; max-width: 42ch; }
.work-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .work-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 640px; }
  .work-main { grid-row: span 2; }
}
.work-item { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line-dark); background: var(--ink-3); min-height: 280px; }
@media (min-width: 720px) { .work-main { grid-column: span 2; } }
@media (min-width: 1100px) { .work-main { grid-column: auto; } }
.work-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.work-item:hover img { transform: scale(1.04); }
.work-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-weight: 700; font-size: 0.95rem;
  background: linear-gradient(0deg, rgba(22, 22, 22, 0.9), transparent);
}
.work-main { min-height: 360px; }

/* ---------- Postup ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--line-dark); border: 1px solid var(--line-dark); counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 32px 28px 36px; background: var(--ink-2); }
.step-num { display: block; font-family: var(--font-display); font-size: 3.2rem; font-weight: 800; color: var(--signal); line-height: 1; margin-bottom: 20px; }
.steps h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.steps p { margin-top: 12px; color: var(--text-dark-muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 980px) { .faq-layout { grid-template-columns: 2fr 3fr; gap: 72px; } .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; } }
.faq details { border-top: 1px solid var(--line-dark); }
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; font-weight: 700; line-height: 1.1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-mono); color: var(--signal); font-size: 1.4rem; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-dark-muted); max-width: 64ch; }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 980px) { .contact-layout { grid-template-columns: 2fr 3fr; gap: 48px; align-items: start; } }
.contact-info { display: grid; gap: 2px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.contact-call { display: flex; flex-direction: column; gap: 6px; padding: 26px 28px; background: var(--signal); color: #fff; text-decoration: none; }
.contact-call .eyebrow { color: rgba(255, 255, 255, 0.8); }
.contact-call strong { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.contact-block { display: flex; flex-direction: column; gap: 4px; padding: 22px 28px; background: var(--ink-3); }
.contact-block .eyebrow { margin-bottom: 6px; }
.contact-block strong { font-size: 1.15rem; }
.contact-block a { color: var(--paper); }
.contact-block small { color: var(--text-dark-muted); }
.contact-block .text-link { margin-top: 8px; color: var(--signal); }

.inquiry { background: var(--ink-3); border: 1px solid var(--line-dark); padding: clamp(24px, 3vw, 40px); }
.inquiry h3 { font-size: 2rem; }
.form-note { margin: 10px 0 24px; color: var(--text-dark-muted); font-size: 0.95rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-light); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--paper); background: var(--ink); border: 1px solid var(--line-dark); border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s; color-scheme: dark;
}
.field input::placeholder, .field textarea::placeholder { color: var(--steel); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-tint); }
.field textarea { resize: vertical; min-height: 130px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--signal); }
.honeypot { position: absolute; left: -9999px; }
.form-error { color: var(--signal); font-weight: 600; margin-bottom: 12px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.form-alt { color: var(--text-dark-muted); font-size: 0.92rem; }
.form-alt a { color: var(--paper); font-weight: 700; }
.form-success { margin-top: 18px; padding: 14px 16px; background: rgba(76, 175, 80, 0.14); color: #a5e0a8; border-left: 3px solid #4caf50; font-weight: 600; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Patička ---------- */
.site-footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-brand img { width: 150px; }
.footer-brand p { margin-top: 16px; color: var(--text-dark-muted); font-size: 0.92rem; }
.site-footer nav ul { display: grid; gap: 8px; }
.site-footer nav a { text-decoration: none; font-weight: 600; color: var(--text-dark-muted); }
.site-footer nav a:hover { color: var(--paper); }
.site-footer address { display: grid; gap: 8px; font-size: 0.95rem; color: var(--text-dark-muted); }
.site-footer address a { color: var(--paper); text-decoration: none; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.footer-bottom a { color: var(--steel); text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 0; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.92); backdrop-filter: blur(6px); }
.lightbox-panel {
  position: relative; width: 100%; height: 100%; max-width: 1400px; display: flex; flex-direction: column; color: var(--paper);
  animation: fade-up 0.4s var(--ease-out) both;
}
@media (min-width: 980px) { .lightbox { padding: 24px; } .lightbox-panel { height: calc(100vh - 48px); } }
.lightbox-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px var(--gutter) 10px; }
.lightbox-head .display { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.lightbox-head-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.lightbox-counter { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--steel-light); }
.lightbox-close { width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-dark); border-radius: 2px; cursor: pointer; font-size: 1.1rem; }
.lightbox-close:hover { background: var(--signal); border-color: var(--signal); }
.lightbox-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); }
.lightbox-stage figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; object-fit: contain; border: 1px solid var(--line-dark); background: var(--ink-2); animation: lb-in 0.35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.lightbox-stage figcaption { font-size: 0.95rem; font-weight: 600; text-align: center; color: var(--paper); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px;
  background: rgba(22, 22, 22, 0.75); border: 1px solid var(--line-dark); border-radius: 50%; cursor: pointer; font-size: 1.2rem;
  transition: background-color 0.25s;
}
.lightbox-arrow:hover { background: var(--signal); border-color: var(--signal); }
.lightbox-arrow.prev { left: calc(var(--gutter) + 8px); }
.lightbox-arrow.next { right: calc(var(--gutter) + 8px); }
.lightbox-desc { padding: 8px var(--gutter) 0; text-align: center; font-size: 0.9rem; color: var(--text-dark-muted); }
.lightbox-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--gutter) 18px; scrollbar-width: thin; }
.lightbox-thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; background: var(--ink-2); cursor: pointer; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s; }
.lightbox-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumbs button.is-active, .lightbox-thumbs button:hover { opacity: 1; border-color: var(--signal); }
body.lightbox-open { overflow: hidden; }

/* ---------- Jemnější typografie a jasná hierarchie ---------- */
.btn-lg { padding: 13px 24px; min-height: 50px; font-size: 0.95rem; }
.lead { font-size: 1.05rem; }

.hero-inner { padding-top: calc(var(--header-h) + 56px); padding-bottom: 44px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 0.95; max-width: 19ch; }
.hero-lead { margin-top: 20px; max-width: 50ch; font-size: clamp(1rem, 1.2vw, 1.12rem); }
.hero-actions { margin-top: 28px; gap: 12px; }
.hero-trust { margin-top: 36px; padding-top: 20px; gap: 10px 28px; }
.hero-trust li { gap: 8px; font-size: 0.84rem; }
.hero-trust svg { width: 17px; height: 17px; }
.hero-bar-inner { padding-top: 9px; padding-bottom: 9px; font-size: 0.82rem; font-weight: 500; }
.hero-bar a { font-size: 0.82rem; }
.hero-bar .dot { width: 6px; height: 6px; margin-right: 10px; }

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-head .display { font-size: clamp(2rem, 4vw, 3.3rem); }
.section-lead { margin-top: 14px; font-size: 1rem; }

.service { min-height: 340px; }
@media (min-width: 1100px) { .service { min-height: 400px; } }
.service-body h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
.service-body p { margin-top: 8px; font-size: 0.92rem; }
.service-link { margin-top: 14px; font-size: 0.9rem; }

.project-body .eyebrow { margin-bottom: 8px; }
.project-body h3 { font-size: clamp(1.35rem, 1.9vw, 1.75rem); }
.project-body p { font-size: 0.9rem; }
.project-body .service-link { margin-top: 14px; }

.about-text .display { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 18ch; }
.about-text .lead { margin-top: 18px; }
.checklist { margin-top: 22px; }
.checklist li { font-size: 0.95rem; }
.about-actions { margin-top: 28px; gap: 12px; }
.about-media figcaption { font-size: 0.95rem; }

@media (min-width: 1100px) { .work-grid { height: 560px; } }
.work-item figcaption { font-size: 0.88rem; }

.steps li { padding: 26px 24px 28px; }
.step-num { font-size: 2.2rem; margin-bottom: 14px; }
.steps h3 { font-size: 1.3rem; }
.steps p { font-size: 0.92rem; }

.faq summary { padding: 18px 0; font-size: 1.2rem; }
.faq summary::after { font-size: 1.2rem; }
.faq details p { font-size: 0.95rem; }

.contact-call strong { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.contact-block strong { font-size: 1.05rem; }
.inquiry h3 { font-size: 1.6rem; }

/* ---------- Telefon ---------- */
@media (max-width: 479px) {
  .btn-phone { display: inline-flex; width: 44px; min-height: 44px; padding: 0; }
  .btn-phone span { display: none; }
}
@media (max-width: 719px) {
  :root { --header-h: 64px; }
  .hero { min-height: 92svh; }
  .hero-inner { padding-top: calc(var(--header-h) + 36px); padding-bottom: 28px; }
  .hero-title { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .hero-lead { font-size: 0.98rem; }
  .hero-actions .btn { flex: 1 1 0; padding-left: 14px; padding-right: 14px; }
  .hero-trust { flex-direction: column; gap: 8px; margin-top: 26px; padding-top: 16px; }
  .hero-bar-inner { justify-content: flex-start; gap: 2px 16px; font-size: 0.78rem; }

  .section { padding: 52px 0; }
  .section-head .display { font-size: 2rem; }
  .section-head-row { align-items: flex-start; }

  .service { min-height: 290px; }
  .service-body { padding: 22px; }

  .view-switch { width: 100%; }
  .view-switch button { flex: 1; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 8px 14px; font-size: 0.85rem; }
  .filters-status { margin: 14px 0 18px; }
  .project { aspect-ratio: 4 / 4.3; min-height: 0; }
  .project-body { padding: 20px; }
  .project-count { top: 14px; right: 14px; }
  .gallery-more .btn { width: 100%; }

  .work-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .work-item { min-height: 0; aspect-ratio: 1; }
  .work-main { grid-column: span 2; aspect-ratio: 4 / 3; }
  .work-item figcaption { padding: 26px 10px 10px; font-size: 0.76rem; }

  .about { gap: 32px; }
  .about-media img { aspect-ratio: 1; }
  .about-actions .btn { flex: 1 1 0; }

  .steps li { padding: 22px 20px; }
  .faq summary { font-size: 1.1rem; }
  .contact-call { padding: 22px 20px; }
  .contact-block { padding: 18px 20px; }
  .inquiry { padding: 22px 18px; }
  .form-actions .btn { width: 100%; }
  .footer-grid { padding-top: 44px; gap: 28px; }
  .lightbox-arrow { width: 42px; height: 42px; }
}

/* ---------- Větší logo v hlavičce ---------- */
:root { --header-h: 88px; }
.brand img { width: 200px; }
@media (max-width: 1099px) { :root { --header-h: 80px; } .brand img { width: 176px; } }
@media (max-width: 719px) { :root { --header-h: 70px; } .brand img { width: 156px; } }

/* ---------- Úvod s fotkou svářeče ---------- */
.hero-media { display: block; }
@media (min-width: 980px) {
  /* fotka přes celou šířku, text vpravo přes tmavou mikinu, oblouk a kukla zůstávají vidět */
  .hero-media { inset: 0; width: 100%; }
  .hero-media img { object-position: 50% 50%; }
  .hero-shade {
    background:
      linear-gradient(270deg, rgba(22, 22, 22, 0.9) 0%, rgba(22, 22, 22, 0.72) 30%, rgba(22, 22, 22, 0.18) 52%, rgba(22, 22, 22, 0) 66%),
      linear-gradient(0deg, rgba(22, 22, 22, 0.92) 0%, rgba(22, 22, 22, 0) 30%),
      linear-gradient(180deg, rgba(22, 22, 22, 0.55) 0%, rgba(22, 22, 22, 0) 18%);
  }
  .hero-copy { margin-left: auto; max-width: 470px; }
  .hero-title { font-size: clamp(2.4rem, 3.4vw, 3.6rem); max-width: none; }
  .hero-lead { font-size: 1rem; }
  .hero-lead { max-width: none; }
  .hero-trust { flex-direction: column; gap: 8px; }
}
@media (min-width: 980px) and (max-width: 1359px) {
  .hero-media { left: -16%; width: 116%; }
  .hero-copy { max-width: 400px; }
  .hero-title { font-size: 2.6rem; }
}
@media (max-width: 979px) {
  .hero { min-height: 0; justify-content: flex-start; }
  .hero-media { position: relative; inset: auto; width: 100%; height: 64svh; max-height: 620px; min-height: 380px; }
  .hero-media img { object-position: 38% 50%; }
  .hero-media::after { content: ""; position: absolute; inset: -1px 0; z-index: 1;
    background: linear-gradient(0deg, var(--ink) 0%, rgba(22, 22, 22, 0.55) 30%, rgba(22, 22, 22, 0.2) 60%, rgba(22, 22, 22, 0.35) 100%); }
  .hero-shade { display: none; }
  .hero-inner { margin-top: -72px; padding-top: 0; padding-bottom: 32px; }
}

/* ---------- Při práci: čtyři výškové fotky ---------- */
.work-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; gap: 8px; height: auto; }
@media (min-width: 720px) { .work-grid { gap: 12px; } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; height: auto; } }
.work-item { aspect-ratio: 3 / 4; min-height: 0; }

/* ---------- O nás ---------- */
.story { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 980px) { .story { grid-template-columns: 0.9fr 1.1fr; gap: 28px 64px; align-items: center; } }
.story-media { margin: 0; }
.story-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 58%; border: 1px solid var(--line-dark); }
@media (min-width: 980px) { .story-media img { aspect-ratio: 4 / 4.4; max-height: 600px; } }
.story-text .display { font-size: clamp(2rem, 4vw, 3.3rem); }
.story-lead { margin-top: 12px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 700; color: var(--paper); }
.story-text p:not(.story-lead) { margin-top: 16px; max-width: 60ch; color: var(--text-dark-muted); }
.values { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 2px; margin-top: 12px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 720px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { position: relative; padding: 26px 24px 28px; background: var(--ink-2); }
.values li::before { content: ""; position: absolute; left: 24px; top: 0; width: 36px; height: 3px; background: var(--signal); }
.values h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.values p { margin-top: 10px; color: var(--text-dark-muted); font-size: 0.92rem; }
@media (max-width: 719px) { .values li { padding: 22px 20px; } .values li::before { left: 20px; } }

/* ---------- Pohotovostní výjezdy 24/7 ---------- */
.sos { position: relative; overflow: hidden; background: var(--ink); isolation: isolate; }
.sos-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.sos-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 22, 22, 0.94) 0%, rgba(22, 22, 22, 0.82) 38%, rgba(22, 22, 22, 0.35) 70%, rgba(22, 22, 22, 0.2) 100%),
    linear-gradient(0deg, rgba(22, 22, 22, 0.6) 0%, rgba(22, 22, 22, 0) 40%); }
.sos-inner { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.sos-copy { max-width: 600px; }
.sos-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--signal); color: #fff; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em; border-radius: 2px; }
.sos-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.sos .display { margin-top: 18px; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.sos-lead { margin-top: 16px; font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(245, 244, 240, 0.85); max-width: 52ch; }
.sos-points { margin-top: 22px; display: grid; gap: 10px; }
.sos-points li { position: relative; padding-left: 28px; font-weight: 600; font-size: 0.95rem; }
.sos-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--signal); border-bottom: 3px solid var(--signal); transform: rotate(-45deg); }
.sos-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 719px) {
  .sos-bg { object-position: 72% 50%; }
  .sos-shade { background: linear-gradient(0deg, rgba(22, 22, 22, 0.95) 0%, rgba(22, 22, 22, 0.86) 55%, rgba(22, 22, 22, 0.55) 100%); }
  .sos-actions .btn { width: 100%; }
}

/* Výjezdy: fotka dodávky na výšku — na monitoru v pravé polovině, na telefonu nahoře */
@media (min-width: 980px) {
  .sos-bg { left: auto; right: 0; width: 50%; object-position: 50% 74%; }
  .sos-shade {
    background:
      linear-gradient(90deg, var(--ink) 0%, var(--ink) 48%, rgba(22, 22, 22, 0.55) 56%, rgba(22, 22, 22, 0.05) 74%),
      linear-gradient(0deg, rgba(22, 22, 22, 0.55) 0%, rgba(22, 22, 22, 0) 30%);
  }
  .sos-inner { min-height: 640px; display: flex; align-items: center; }
}
@media (max-width: 979px) {
  .sos { display: flex; flex-direction: column; }
  .sos-bg { position: relative; inset: auto; z-index: 0; height: 62vw; max-height: 520px; min-height: 300px; object-position: 50% 78%; }
  .sos-shade { inset: 0 0 auto 0; height: 62vw; max-height: 520px; min-height: 300px; z-index: 1;
    background: linear-gradient(0deg, var(--ink) 0%, rgba(22, 22, 22, 0.25) 45%, rgba(22, 22, 22, 0) 100%); }
  .sos-inner { position: relative; z-index: 2; margin-top: -56px; padding-top: 0; }
}

/* ---------- Příběh v O nás (odstavce z administrace) ---------- */
.story-body p { margin-top: 16px; max-width: 60ch; color: var(--text-dark-muted); }

/* ---------- Instagram ---------- */
.insta-follow { gap: 10px; }
.insta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 720px) { .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1100px) { .insta-grid { grid-template-columns: repeat(6, 1fr); } }
.insta-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line-dark); }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), opacity 0.3s; }
.insta-item::after { content: ""; position: absolute; inset: 0; background: rgba(22, 22, 22, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 7.1a4.9 4.9 0 1 0 0 9.8 4.9 4.9 0 0 0 0-9.8zm0 8.1a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4zM17 2H7a5 5 0 0 0-5 5v10a5 5 0 0 0 5 5h10a5 5 0 0 0 5-5V7a5 5 0 0 0-5-5zm3.2 15A3.2 3.2 0 0 1 17 20.2H7A3.2 3.2 0 0 1 3.8 17V7A3.2 3.2 0 0 1 7 3.8h10A3.2 3.2 0 0 1 20.2 7zm-2-11.3a1.1 1.1 0 1 1-2.3 0 1.1 1.1 0 0 1 2.3 0z'/%3E%3C/svg%3E") center / 34px no-repeat; opacity: 0; transition: opacity 0.3s; }
.insta-item:hover::after, .insta-item:focus-visible::after { opacity: 1; }
.insta-item:hover img { transform: scale(1.05); }
.insta-item.is-broken img { opacity: 0; }
.insta-item.is-broken::after { opacity: 1; background-color: var(--ink-3); }

/* ---------- Reveal při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Znak DK WELD (svářeč ve štítu) ---------- */
.hero-znak { position: absolute; z-index: 1; width: 52px; height: auto; opacity: 0.82; pointer-events: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55)); animation: fade-up 0.9s var(--ease-out) 0.5s both; }
@media (min-width: 980px) {
  .hero-znak { left: max(24px, calc((100vw - var(--container)) / 2 + 24px)); bottom: 72px; width: 58px; }
}
@media (max-width: 979px) {
  .hero-znak { right: 18px; top: calc(clamp(380px, 64svh, 620px) - 150px); width: 40px; }
}
#o-nas { position: relative; overflow: hidden; }
#o-nas > .container { position: relative; z-index: 1; }
.story-znak { position: absolute; z-index: 0; right: -60px; top: 50%; transform: translateY(-50%); width: 460px; height: auto; opacity: 0.035; pointer-events: none; }
@media (max-width: 979px) { .story-znak { width: 300px; right: -70px; top: auto; bottom: 40px; transform: none; } }
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo .footer-znak { width: 40px; height: auto; opacity: 0.9; }
.footer-copy { display: inline-flex; align-items: center; gap: 10px; }
.footer-copy img { width: 14px; height: auto; opacity: 0.5; }

/* ---------- Spolupráce: A-BETON (v grafice a-beton.cz) ---------- */
.partner-ab {
  --ab-bg: #1c1f24; --ab-bg: oklch(20% .011 264);
  --ab-yellow: #f3bd3d; --ab-yellow: oklch(83.4% .161 84.2);
  position: relative; display: flex; overflow: hidden; background: var(--ab-bg); color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12); font-family: "Barlow Condensed", var(--font-display);
  transition: border-color .3s ease;
}
.partner-ab:hover { border-color: var(--ab-yellow); }
.partner-ab-photo { object-fit: cover; transition: transform .8s var(--ease-out); }
.partner-ab:hover .partner-ab-photo { transform: scale(1.03); }
.partner-ab-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.partner-ab-logo { width: 92px; height: auto; margin-bottom: 26px; }
.partner-ab-kicker { display: inline-flex; align-items: center; gap: 14px; color: var(--ab-yellow); font-size: .82rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.partner-ab-kicker::before { content: ""; width: 40px; height: 1px; background: var(--ab-yellow); }
.partner-ab-title { margin-top: 14px; font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 700; line-height: .98; text-transform: uppercase; }
.partner-ab-title em { font-style: normal; color: var(--ab-yellow); }
.partner-ab-text { margin-top: 18px; max-width: 46ch; font-family: var(--font-sans); font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.partner-ab-stats { display: flex; gap: 32px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.partner-ab-stats b { display: block; margin-bottom: 2px; font-size: 1.7rem; font-weight: 700; letter-spacing: 0; color: var(--ab-yellow); }
.partner-ab-btn { margin-top: 28px; padding: 14px 26px; background: var(--ab-yellow); color: var(--ab-bg); font-size: .95rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; transition: filter .2s ease; }
.partner-ab:hover .partner-ab-btn { filter: brightness(1.08); }
@media (min-width: 980px) {
  .partner-ab { min-height: 460px; align-items: center; }
  .partner-ab-photo { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-position: 40% 60%; }
  .partner-ab-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ab-bg) 0%, var(--ab-bg) 38%, rgba(28, 31, 36, .55) 52%, rgba(28, 31, 36, 0) 70%); }
  .partner-ab-body { padding: 56px 60px; max-width: 600px; }
}
@media (max-width: 979px) {
  .partner-ab { flex-direction: column; }
  .partner-ab-photo { width: 100%; height: 56vw; max-height: 380px; min-height: 220px; object-position: 50% 60%; }
  .partner-ab-shade { position: absolute; top: 0; left: 0; right: 0; height: 56vw; max-height: 380px; min-height: 220px; z-index: 1; background: linear-gradient(0deg, var(--ab-bg) 0%, rgba(28, 31, 36, 0) 55%); }
  .partner-ab-body { padding: 0 22px 30px; margin-top: -44px; }
  .partner-ab-logo { width: 78px; margin-bottom: 20px; }
  .partner-ab-kicker { font-size: .72rem; letter-spacing: .2em; }
  .partner-ab-kicker::before { width: 28px; }
  .partner-ab-btn { align-self: stretch; text-align: center; }
}

/* ---------- Znak před nadpisem v úvodu (výška = dva řádky nadpisu) ---------- */
.hero-title { display: flex; align-items: center; gap: 0.22em; }
.hero-title-znak { flex: none; height: 1.9em; width: auto; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45)); }
.hero-title-text { display: block; min-width: 0; }
.hero-title { max-width: none; }
@media (max-width: 719px) { .hero-title { font-size: min(clamp(2.2rem, 10.5vw, 3rem), calc((100vw - 36px) / 9.5)); } }
@media (min-width: 1360px) { .hero-copy { max-width: 560px; } }
@media (min-width: 980px) and (max-width: 1359px) { .hero-copy { max-width: 420px; } }

/* =====================================================================
   ANIMACE A INTERAKCE (listopad 2026)
   ===================================================================== */
:root { --ease-io: cubic-bezier(0.76, 0, 0.24, 1); --spark: #ffb347; }

/* ---------- Úvodní načítací obrazovka ---------- */
.intro-screen { display: none; }
html.intro .intro-screen {
  display: flex; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, #232427 0%, var(--ink) 62%); clip-path: inset(0 0 0 0);
}
html.intro:not(.intro-done) body { overflow: hidden; }
html.intro-out .intro-screen { animation: intro-leave 0.9s var(--ease-io) forwards; pointer-events: none; }
@keyframes intro-leave { to { clip-path: inset(0 0 100% 0); } }
.intro-mark { display: flex; flex-direction: column; align-items: center; gap: 22px; }
html.intro-out .intro-mark { animation: intro-mark-out 0.6s var(--ease-io) forwards; }
@keyframes intro-mark-out { to { opacity: 0; transform: translateY(-40px) scale(0.96); } }
.intro-znak { width: 92px; height: auto; animation: intro-znak 1.1s var(--ease-out) both; }
@keyframes intro-znak {
  0% { opacity: 0; transform: scale(0.55) rotate(-14deg); filter: brightness(3) drop-shadow(0 0 0 rgba(255, 150, 60, 0)); }
  55% { opacity: 1; transform: scale(1.06) rotate(2deg); filter: brightness(1.5) drop-shadow(0 0 28px rgba(255, 140, 50, 0.85)); }
  100% { opacity: 1; transform: none; filter: brightness(1) drop-shadow(0 0 0 rgba(255, 140, 50, 0)); }
}
.intro-logo { width: 168px; height: auto; opacity: 0; animation: fade-up 0.8s var(--ease-out) 0.35s both; }
.intro-seam { position: relative; display: block; width: 200px; height: 2px; background: rgba(255, 255, 255, 0.08); overflow: visible; }
.intro-seam-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #7a1e16, var(--signal) 70%, var(--spark)); animation: seam 1.2s var(--ease-io) 0.45s forwards; }
.intro-seam-tip { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px var(--spark), 0 0 26px 8px rgba(217, 56, 44, 0.65); opacity: 0; animation: seam-tip 1.2s var(--ease-io) 0.45s forwards; }
@keyframes seam { to { transform: scaleX(1); } }
@keyframes seam-tip { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ---------- Ukazatel posunu stránky (svar nahoře) ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--signal), var(--spark)); box-shadow: 0 0 8px rgba(255, 140, 60, 0.6); pointer-events: none; }

/* ---------- Nástup úvodu ---------- */
html.intro:not(.intro-done) .hero *, html.intro:not(.intro-done) .hero::before { animation-play-state: paused !important; }
html.intro:not(.intro-done) .site-header { opacity: 0; transform: translateY(-16px); }
.site-header { transition: opacity 0.8s var(--ease-out) 0.15s, transform 0.8s var(--ease-out) 0.15s, background-color 0.3s, border-color 0.3s; }
.hero-title { animation: none; }
.hero-title .ln { display: block; overflow: hidden; padding: 0.04em 0 0.06em; margin: -0.04em 0 -0.06em; }
.hero-title .ln > span { display: inline-block; animation: ln-up 1.05s var(--ease-out) 0.25s both; }
.hero-title .ln + .ln > span { animation-delay: 0.38s; }
@keyframes ln-up { from { transform: translateY(110%); } to { transform: none; } }
.hero-title-znak { animation: hero-znak 1.2s var(--ease-out) 0.1s both; }
@keyframes hero-znak {
  0% { opacity: 0; transform: scale(0.6) rotate(-16deg); filter: brightness(2.6) drop-shadow(0 0 0 rgba(255, 150, 60, 0)); }
  50% { opacity: 1; transform: scale(1.07) rotate(3deg); filter: brightness(1.4) drop-shadow(0 0 26px rgba(255, 140, 50, 0.8)); }
  100% { opacity: 1; transform: none; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45)); }
}
.hero-lead { animation-delay: 0.55s; }
.hero-actions { animation-delay: 0.68s; }
.hero-trust { animation-delay: 0.8s; }
.hero-bar { animation: fade-up 0.9s var(--ease-out) 0.9s both; }
.hero-media img { animation: hero-zoom 2.4s var(--ease-out) both; }
@keyframes hero-zoom { from { transform: scale(1.12); filter: brightness(0.6); } to { transform: scale(1); filter: none; } }

/* ---------- Postupné odhalování při scrollu ---------- */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-img { clip-path: inset(14% 0 0 0); opacity: 0; transform: translateY(30px); transition: clip-path 1.3s var(--ease-io), opacity 0.8s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv-img img { transform: scale(1.14); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv-img.in { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
.js .rv-img.in img { transform: none; }
.js .section-head .display.rv { transform: translateY(46px); }
.js .section-head .display.rv.in { transform: none; }
.js .project.rv, .js .photo.rv { animation: none; }
/* starý reveal nahrazen novým */
.reveal { opacity: 1; transform: none; }

/* ---------- Před a po ---------- */
.ba-row { display: flex; gap: 20px; align-items: flex-start; }
.ba-item { flex: calc(var(--ar)) 1 0; min-width: 0; margin: 0; }
.ba { position: relative; aspect-ratio: var(--ar); overflow: hidden; background: var(--ink-3); border: 1px solid var(--line-dark); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(255, 160, 80, 0.7); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.18); transition: transform 0.25s var(--ease-out); }
.ba-knob svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ba.is-dragging .ba-knob, .ba:hover .ba-knob { transform: scale(1.1); }
.ba-tag { position: absolute; top: 14px; padding: 6px 12px; font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(22, 22, 22, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; pointer-events: none; transition: opacity 0.3s; }
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; background: var(--signal); }
.ba[style*="--pos:0%"] .ba-tag-before, .ba[style*="--pos: 0%"] .ba-tag-before { opacity: 0; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; pointer-events: none; }
.ba-range:focus-visible + * , .ba:focus-within { outline: 2px solid var(--signal); outline-offset: 3px; }
.ba-item figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.ba-cap { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.01em; }
.ba-open { flex: none; padding: 0; border: 0; background: none; color: var(--text-dark-muted); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; border-bottom: 2px solid var(--signal); transition: color 0.2s; }
.ba-open:hover { color: var(--paper); }
@media (max-width: 899px) {
  .ba-row { flex-direction: column; gap: 34px; }
  .ba-item { width: 100%; flex: none; }
  .ba-knob { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
}

/* ---------- Jemné detaily ---------- */
.btn { position: relative; overflow: hidden; }
.btn-signal::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg); transition: left 0.7s var(--ease-out); }
.btn-signal:hover::after { left: 120%; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .intro-screen { display: none !important; }
  .js .rv, .js .rv-img, .js .rv-img img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .hero-title .ln > span, .hero-title-znak { animation: none !important; }
  .scroll-progress { display: none; }
}

/* ---------- Upoutávky na podstránky (úvodní stránka) ---------- */
.hooks { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.hooks-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 820px) { .hooks-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
.hook { position: relative; display: block; min-height: 340px; overflow: hidden; border: 1px solid var(--line-dark); background: var(--ink-2); color: var(--paper); text-decoration: none; isolation: isolate; }
@media (min-width: 980px) { .hook { min-height: 420px; } }
.hook-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: transform 1s var(--ease-out), opacity 0.5s; z-index: -1; }
.hook::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(22, 22, 22, 0.96) 0%, rgba(22, 22, 22, 0.55) 45%, rgba(22, 22, 22, 0.1) 100%); }
.hook:hover .hook-img { transform: scale(1.05); opacity: 0.62; }
.hook-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; }
.hook-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 0.95; }
.hook-text { margin-top: 12px; max-width: 44ch; color: var(--text-dark-muted); }
.hook-link { display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 700; border-bottom: 2px solid var(--signal); padding-bottom: 2px; transition: gap 0.3s var(--ease-out); }
.hook:hover .hook-link { gap: 14px; }

/* ---------- Podstránky ---------- */
.page-hero { position: relative; min-height: clamp(380px, 62vh, 620px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: hero-zoom 2s var(--ease-out) both; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(22, 22, 22, 0.75) 35%, rgba(22, 22, 22, 0.25) 75%, rgba(22, 22, 22, 0.55) 100%); }
.page-hero-inner { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(36px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--text-dark-muted); animation: fade-up 0.8s var(--ease-out) 0.1s both; }
.crumbs a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--signal); }
.page-title { margin-top: 14px; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.92; animation: fade-up 0.9s var(--ease-out) 0.2s both; }
.page-lead { margin-top: 16px; max-width: 52ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text-dark-muted); animation: fade-up 0.9s var(--ease-out) 0.32s both; }
.subpage > .section:first-of-type { padding-top: clamp(40px, 5vw, 72px); }
.page-cta { border-top: 1px solid var(--line-dark); }
.page-cta-inner { display: grid; gap: 28px; align-items: stretch; }
@media (min-width: 900px) { .page-cta-inner { grid-template-columns: 1.4fr 1fr; gap: 40px; } }
.page-cta-text .display { font-size: clamp(2rem, 4vw, 3.2rem); }
.page-cta-text p { margin-top: 12px; color: var(--text-dark-muted); max-width: 48ch; }
.page-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.page-next { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 28px; border: 1px solid var(--line-dark); background: var(--ink-2); color: var(--paper); text-decoration: none; transition: border-color 0.3s, background-color 0.3s; }
.page-next:hover { border-color: var(--signal); background: var(--ink-3); }
.page-next-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dark-muted); }
.page-next-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.page-next-text { color: var(--text-dark-muted); font-size: 0.95rem; }
.main-nav a.is-active[aria-current="page"], .mobile-menu a[aria-current="page"] { color: var(--paper); }

/* ---------- Plynulé přecházení mezi stránkami ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.42s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.65s var(--ease-out) 0.08s both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-28px) scale(0.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(42px); } }
::view-transition-group(hero-jak-pracujeme), ::view-transition-group(hero-caste-dotazy) { animation-duration: 0.75s; animation-timing-function: var(--ease-io); }
::view-transition-image-pair(hero-jak-pracujeme), ::view-transition-image-pair(hero-caste-dotazy) { isolation: auto; }
::view-transition-old(hero-jak-pracujeme), ::view-transition-new(hero-jak-pracujeme), ::view-transition-old(hero-caste-dotazy), ::view-transition-new(hero-caste-dotazy) { animation-duration: 0.75s; object-fit: cover; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .page-hero-bg, .crumbs, .page-title, .page-lead { animation: none !important; }
}
