/* =========================================================
   MALZED — Design System
   Malířské a natěračské práce, Hradec Králové, od 1990
   ========================================================= */

:root {
  /* Color */
  --ink: #17130f;
  --ink-soft: #2b241d;
  --ink-line: rgba(250, 246, 239, 0.12);
  --paper: #faf6ef;
  --paper-deep: #f0e9dc;
  --line: #e2d9c8;
  --stone: #6e6558;
  --stone-light: #948b7c;
  --red: #e01b22;
  --red-deep: #a81017;
  --red-tint: #fbe0de;
  --cream: #f5efe2;
  --white: #ffffff;
  --navy: #14143a; /* sampled from the source logo's wordmark */

  /* Type */
  --font-display: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --font-label: "Public Sans", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-s: 6px;
  --radius-m: 14px;

  /* Shadow (color-tinted, layered) */
  --shadow-card: 0 1px 2px rgba(23, 19, 15, 0.06), 0 8px 24px -12px rgba(23, 19, 15, 0.18);
  --shadow-card-hover: 0 2px 4px rgba(23, 19, 15, 0.08), 0 20px 40px -16px rgba(224, 27, 34, 0.22);
  --shadow-red: 0 10px 30px -10px rgba(224, 27, 34, 0.45);

  /* Motion */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.04;
  color: var(--ink);
}
h1, h2 { text-transform: uppercase; line-height: 0.98; }
h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 700; letter-spacing: -0.005em; }

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--stone);
  line-height: 1.7;
  max-width: 46ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 1.5em;
  height: 2px;
  background: var(--red);
  flex: none;
}
.eyebrow--on-dark { color: var(--cream); }
.eyebrow--on-dark::before { background: var(--red); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.section--deep { background: var(--paper-deep); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.section__head--center { margin-inline: auto; align-items: center; text-align: center; }
.section__head--row {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.section__head--row .lede { max-width: 38ch; text-align: left; }
@media (max-width: 720px) {
  .section__head--row { flex-direction: column; align-items: flex-start; }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-s);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn--primary:hover { background: var(--red-deep); box-shadow: 0 14px 34px -10px rgba(224, 27, 34, 0.55); transform: translateY(-2px); }

.btn--ghost-dark {
  border-color: var(--ink-line);
  color: var(--cream);
}
.btn--ghost-dark:hover { border-color: var(--cream); background: rgba(250, 246, 239, 0.06); transform: translateY(-2px); }

.btn--ghost-light {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost-light:hover { border-color: var(--ink); background: var(--ink); color: var(--white); transform: translateY(-2px); }

.btn--sm { padding: 0.75em 1.3em; font-size: 0.78rem; }

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}
.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 34px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding-block: 0.3rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease-out);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.3s var(--ease-spring);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { right: 0; }
.nav__links a[aria-current="page"] { color: var(--red); }

.nav__right { display: flex; align-items: center; gap: 1.4rem; flex: none; }
.nav__phone {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav__phone svg { width: 16px; height: 16px; color: var(--red); flex: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  flex: none;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease-spring), opacity 0.2s ease; }

.nav__links-cta { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem var(--gutter) 2rem;
  }
  .nav.is-open .nav__links-cta { display: block; margin-top: 0.5rem; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 380px) {
  .nav__phone span { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: heroBgIn 1.4s var(--ease-out) forwards;
}
.hero__bg-video,
.hero__bg-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__bg-poster { display: none; }
/* Skip the video on small screens (data/battery) and for reduced-motion
   users — the poster frame stands in as a static hero background. */
@media (max-width: 640px), (prefers-reduced-motion: reduce) {
  .hero__bg-video { display: none; }
  .hero__bg-poster { display: block; }
}
.hero__bg-tint {
  position: absolute; inset: 0;
  background: var(--red);
  opacity: 0.38;
  mix-blend-mode: multiply;
}
.hero__bg-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(23,19,15,0.94) 0%, rgba(23,19,15,0.62) 42%, rgba(23,19,15,0.22) 68%),
    linear-gradient(0deg, rgba(23,19,15,0.95) 0%, rgba(23,19,15,0.35) 45%, rgba(23,19,15,0.1) 72%);
}
@keyframes heroBgIn { from { transform: scale(1.06); opacity: 0.85; } to { transform: scale(1); opacity: 1; } }

/* Anchor the headline/CTA block to the true left edge of the viewport
   instead of centering it inside the standard 1240px container — on wide
   screens a centered box reads as "floating in the middle" against the
   full-bleed video backdrop. The trust bar below keeps the normal
   centered container so its four columns don't over-spread. */
.hero__inner.container { max-width: 1080px; margin-inline: 0; }

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.hero__eyebrow {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.9s forwards;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 8.4vw, 6.6rem);
  margin-top: 0.5rem;
  max-width: 15ch;
}
.hero h1 span {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: lineUp 0.85s var(--ease-out) forwards;
}
.hero h1 span:nth-child(1) { animation-delay: 1.0s; }
.hero h1 span:nth-child(2) { animation-delay: 1.12s; color: var(--red); }
.hero h1 span:nth-child(3) { animation-delay: 1.24s; }
@keyframes lineUp { to { opacity: 1; transform: none; } }
@keyframes fadeUp { to { opacity: 1; } }

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.25rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.5s forwards;
}
.hero__lede { max-width: 40ch; color: var(--stone-light); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; flex: none; max-width: 100%; }
@media (max-width: 560px) {
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
}

.hero__trust {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--ink-line);
  border-top-color: transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box;
}
.hero__trust::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--red);
}
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.trust-bar__item {
  padding-block: 1rem;
  border-left: 1px solid var(--ink-line);
  padding-left: 1.5rem;
}
.trust-bar__item:first-child { border-left: none; padding-left: 0; }
.trust-bar__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  line-height: 1;
  color: var(--red);
}
.trust-bar__label {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone-light);
}

@media (max-width: 900px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .trust-bar__item:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 560px) {
  .trust-bar { grid-template-columns: 1fr; }
  .trust-bar__item { border-left: none; padding-left: 0; border-top: 1px solid var(--ink-line); padding-top: 1.1rem; }
  .trust-bar__item:first-child { border-top: none; padding-top: 0; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: var(--paper-deep);
  color: var(--ink);
  padding-top: clamp(6.5rem, 14vw, 8.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero__stroke {
  position: absolute;
  right: -6%;
  top: 0;
  width: 36%;
  height: 100%;
  opacity: 0.22;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  gap: 0.5em;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--stone); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-current] { color: var(--red); }
.page-hero h1 { color: var(--ink); font-size: clamp(2.6rem, 6vw, 4.4rem); max-width: 18ch; }
.page-hero .lede { color: var(--stone); margin-top: 1rem; max-width: 56ch; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), border-color 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.service-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--red-tint);
  color: var(--red);
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease-spring);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card:hover .service-card__icon { background: var(--red); color: var(--white); transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-family: var(--font-display); }
.service-card p { color: var(--stone); font-size: 0.95rem; }
.service-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.service-card__link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-spring); }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Process (real sequence → numbered) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.process__step {
  background: var(--paper);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.process__num {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}
.process__step h3 { font-size: 1.15rem; }
.process__step p { color: var(--stone); font-size: 0.92rem; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Why-us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.why-card {
  background: var(--white);
  padding: 2rem;
  display: flex;
  gap: 1.1rem;
}
.why-card__mark {
  font-family: var(--font-label);
  font-weight: 700;
  color: var(--red);
  font-size: 0.95rem;
  flex: none;
}
.why-card h3 { color: var(--ink); font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.why-card p { color: var(--stone); font-size: 0.92rem; margin-top: 0.4rem; }
@media (max-width: 700px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Materials / partners ---------- */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.material-chip {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--white);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), border-color 0.25s ease;
}
.material-chip__logo {
  max-width: 100%;
  max-height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.35s var(--ease-spring);
}
.material-chip:hover,
.material-chip:focus-within {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: var(--shadow-card-hover);
}
.material-chip:hover .material-chip__logo,
.material-chip:focus-within .material-chip__logo { transform: scale(1.06); }

@media (max-width: 980px) { .materials-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .materials-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Portfolio ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}
.filter-tabs button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--stone);
  padding: 0.6em 1.2em;
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.filter-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  box-shadow: var(--shadow-card);
}
.portfolio-item__ph {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 15% 15%, rgba(224, 27, 34, 0.16), transparent 60%),
    linear-gradient(155deg, #241f19 0%, var(--ink) 65%);
  transition: transform 0.6s var(--ease-out);
}
.portfolio-item__ph svg {
  width: 34%;
  height: 34%;
  color: rgba(245, 239, 226, 0.16);
}
.portfolio-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,19,15,0.86) 0%, rgba(23,19,15,0.15) 55%, rgba(23,19,15,0) 75%);
}
.portfolio-item__tag {
  position: absolute;
  left: 1.1rem; bottom: 1.1rem; right: 1.1rem;
  z-index: 1;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.portfolio-item__tag .eyebrow { color: var(--red); margin-bottom: 0.35rem; }
.portfolio-item__tag .eyebrow::before { background: var(--red); }
.portfolio-item__tag strong { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; letter-spacing: 0; }
.portfolio-item:hover .portfolio-item__ph { transform: scale(1.06); }

@media (max-width: 980px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--ink);
}
.stat__num span { color: var(--red); }
.stat__label {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.5rem;
}
@media (max-width: 700px) { .stats-band { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

/* ---------- Certifications row ---------- */
.certs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.1rem 1.4rem;
  flex: 1 1 260px;
}
.cert-badge__icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red);
  display: grid; place-items: center;
  flex: none;
}
.cert-badge__icon svg { width: 22px; height: 22px; }
.cert-badge strong { display: block; font-size: 0.95rem; }
.cert-badge span:not(.cert-badge__icon) { display: block; color: var(--stone); font-size: 0.85rem; margin-top: 0.15rem; }

/* ---------- Timeline (o-nas) ---------- */
.timeline { display: flex; flex-direction: column; }
.timeline__row {
  display: grid;
  grid-template-columns: 120px 1px 1fr;
  gap: 1.75rem;
  padding-block: 1.75rem;
}
.timeline__row:not(:last-child) { border-bottom: 1px solid var(--line); }
.timeline__year { font-family: var(--font-label); font-weight: 700; color: var(--red); font-size: 1rem; letter-spacing: 0.02em; }
.timeline__line { background: var(--line); }
.timeline__row h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; }
.timeline__row p { color: var(--stone); margin-top: 0.4rem; font-size: 0.95rem; }
@media (max-width: 620px) {
  .timeline__row { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline__line { display: none; }
}

/* ---------- About page media + text ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.about-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-m);
  background: linear-gradient(155deg, #241f19 0%, var(--ink) 65%);
  display: grid;
  place-items: center;
  color: rgba(245, 239, 226, 0.16);
  box-shadow: var(--shadow-card);
}
.about-media svg { width: 32%; height: 32%; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16 / 9; order: -1; }
}

/* ---------- Client logos (text wordmarks) ---------- */
.clients-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  align-items: center;
}
.clients-row span {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--stone-light);
  letter-spacing: 0.01em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -8%; top: -45%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23,19,15,0.16) 0%, rgba(23,19,15,0.05) 55%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); max-width: 14ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.cta-band__divider { width: 1px; height: 30px; background: rgba(255, 255, 255, 0.3); flex: none; }
.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-label);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}
.cta-band__phone:hover { color: var(--white); }
.cta-band__phone svg { width: 18px; height: 18px; flex: none; }
.cta-band__phone strong { color: var(--white); font-size: 1.1em; white-space: nowrap; }
@media (max-width: 480px) { .cta-band__divider { display: none; } }

.btn--on-red { background: var(--white); color: var(--red); }
.btn--on-red:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info dl { display: grid; gap: 1.1rem; margin-bottom: 2rem; }
.contact-row { display: flex; align-items: center; gap: 1rem; }
.contact-row__icon {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red);
  display: grid;
  place-items: center;
}
.contact-row__icon svg { width: 19px; height: 19px; }
.contact-info dt {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.contact-info dd { margin: 0.3rem 0 0; font-size: 1.05rem; }
.contact-info dd a:hover { color: var(--red); }
.map-embed {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(0.35) contrast(1.05); }

.form { display: grid; gap: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--shadow-card); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form__field { display: flex; flex-direction: column; gap: 0.5rem; }
.form__field label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone);
}
.form__field input, .form__field textarea, .form__field select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.85em 1em;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form__field input:focus, .form__field textarea:focus, .form__field select:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px var(--red-tint);
}
.form__note { font-size: 0.82rem; color: var(--stone-light); }
.form__success {
  display: none;
  background: var(--red-tint);
  border: 1px solid var(--red);
  color: var(--red-deep);
  border-radius: var(--radius-s);
  padding: 1em 1.25em;
  font-size: 0.92rem;
}
.form.is-sent .form__success { display: block; }
.form.is-sent .form__fields { display: none; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Service detail blocks (sluzby) ---------- */
.service-detail {
  display: flex;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: flex-start;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  scroll-margin-top: 90px;
}
.service-detail:not(:last-child) { border-bottom: 1px solid var(--line); }
.service-detail__figure {
  flex: none;
  width: clamp(210px, 24vw, 300px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.service-detail__figure img { width: 100%; height: 100%; object-fit: cover; }
.service-detail__num { font-family: var(--font-label); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); font-size: 0.78rem; margin-bottom: 0.6rem; display: block; }
.service-detail__body { min-width: 0; }
.service-detail h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); text-transform: none; }
.service-detail > .service-detail__body > p { color: var(--stone); margin-top: 0.85rem; max-width: 62ch; }
.service-detail .btn { margin-top: 1.5rem; }

/* Sub-service breakdown — a lot of real, distinct services live under each
   main category; this keeps them scannable instead of one wall of text. */
.subservices {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.75rem;
  max-width: 68ch;
}
.subservice { border-left: 2px solid var(--red); padding-left: 0.85rem; }
.subservice strong { display: block; font-size: 0.92rem; color: var(--ink); }
.subservice span { display: block; font-size: 0.85rem; color: var(--stone); margin-top: 0.2rem; line-height: 1.55; }
.service-detail__refs { margin-top: 1.25rem; font-size: 0.87rem; color: var(--stone); max-width: 62ch; }
.service-detail__refs strong { color: var(--ink-soft); font-weight: 600; }

@media (max-width: 720px) {
  .service-detail { flex-direction: column; }
  .service-detail__figure { width: 100%; aspect-ratio: 16 / 9; }
  .subservices { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-deep);
  color: var(--stone);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.25rem, 4vw, 2.75rem) 1.1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { width: auto; height: 26px; margin-bottom: 0.9rem; }
.footer-brand p { max-width: 32ch; font-size: 0.88rem; }
.footer-col h4 {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col__row { display: flex; align-items: flex-start; gap: 0.6em; }
.footer-col__icon { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--red); }
.footer-col a { font-size: 0.88rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--red); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--stone);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { border-color: var(--red); background: var(--red); color: var(--white); }
.footer-social svg { width: 15px; height: 15px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.1rem;
  font-size: 0.78rem;
  color: var(--stone-light);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
