/* =====================================================================
   MONTIG WELD s.r.o. – hlavní styly
   ===================================================================== */
:root {
  --red: #e10600;
  --red-600: #c00500;
  --red-50: #fff1f0;
  --ink: #0d0f12;
  --ink-2: #2a2e35;
  --muted: #5f6672;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --bg-3: #eef0f3;
  --spark: #ff8a1f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13, 15, 18, .04), 0 8px 24px rgba(13, 15, 18, .06);
  --shadow-lg: 0 2px 6px rgba(13, 15, 18, .05), 0 24px 60px rgba(13, 15, 18, .10);
  --container: 1200px;
  --head: "Saira", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 700; font-size: .8rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 640px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head > div { max-width: 680px; }
.section-head p { margin: 0; }
.text-red { color: var(--red); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: #fff; font-weight: 600; font-size: .98rem;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  font-family: var(--body); line-height: 1.2; white-space: nowrap;
}
.btn:hover { color: #fff; background: var(--red-600); border-color: var(--red-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(225, 6, 0, .25); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn--dark { --b: var(--ink); }
.btn--dark:hover { background: #000; border-color: #000; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #c9ced6; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--spark); }
.topbar__items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__items span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; color: var(--red); }
@media (max-width: 760px) { .topbar__hide-m { display: none !important; } }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(13, 15, 18, .05); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: 8px 13px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a.is-active { color: var(--red); }
.nav .btn { margin-left: 10px; color: #fff; padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 16px 16px 24px; gap: 2px; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0,0,0,.08);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
    max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .nav a { padding: 13px 14px; font-size: 1.05rem; border-radius: 10px; }
  .nav .btn { margin: 10px 0 0; }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--bg-3) 1px, transparent 1px), linear-gradient(90deg, var(--bg-3) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__badges { display: flex; gap: 22px; margin-top: 38px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero__badges span { display: inline-flex; gap: 8px; align-items: center; }
.hero__badges svg { width: 18px; height: 18px; color: var(--red); }
.hero__visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; width: 100%; }
.hero__photo { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: absolute; left: -28px; bottom: 36px; background: #fff; border-radius: 16px; padding: 16px 20px;
  box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; max-width: 280px;
  animation: float 6s ease-in-out infinite;
}
.hero__card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red-50); color: var(--red); display: grid; place-items: center; flex: none; }
.hero__card .ic svg { width: 24px; height: 24px; }
.hero__card strong { display: block; font-family: var(--head); color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.hero__card small { color: var(--muted); font-size: .82rem; }
.hero__card--2 { left: auto; right: -18px; top: 34px; bottom: auto; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 460px; }
  .hero__card { left: 8px; }
  .hero__card--2 { right: 8px; }
}
@media (max-width: 480px) { .hero__card--2 { display: none; } .hero__actions .btn { flex: 1 1 100%; } }

/* ---------- Klienti – jezdící lišta ---------- */
.clients-bar { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 22px 0; }
.clients-bar__label { text-align: center; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.marquee__item { display: flex; align-items: center; height: 44px; flex: none; }
.marquee__item img { max-height: 42px; max-width: 160px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .3s; }
.marquee__item:hover img { filter: none; opacity: 1; }
.marquee__item .client-name { font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: #9aa1ab; letter-spacing: .02em; white-space: nowrap; transition: color .3s; text-transform: uppercase; }
.marquee__item:hover .client-name { color: var(--ink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .hero__card { animation: none; } }

/* ---------- Služby ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
  color: inherit;
}
.service::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.service:hover::after { transform: scaleX(1); }
.service__num { position: absolute; right: 20px; top: 14px; font-family: var(--head); font-weight: 800; font-size: 3.2rem; color: var(--bg-3); line-height: 1; }
.service__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--red-50); color: var(--red); display: grid; place-items: center; margin-bottom: 22px; transition: .3s; position: relative; }
.service:hover .service__icon { background: var(--red); color: #fff; }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .95rem; flex: 1; }
.service .link-arrow { color: var(--red); font-size: .92rem; }

/* detail služby */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.service-detail:last-child { border-bottom: 0; }
.service-detail:nth-child(even) .service-detail__media { order: -1; }
.service-detail__media { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--ink); position: relative; box-shadow: var(--shadow); }
.service-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail__media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); background: radial-gradient(circle at 30% 30%, #2a2f37, #0d0f12); }
.service-detail__media .ph svg { width: 34%; height: auto; color: var(--red); opacity: .95; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e10600' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.check-list--cols { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .service-detail { grid-template-columns: 1fr; gap: 28px; } .service-detail:nth-child(even) .service-detail__media { order: 0; } .check-list--cols { grid-template-columns: 1fr; } }

/* ---------- O nás / statistiky ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.stat strong { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--ink); line-height: 1; margin-bottom: 8px; }
.stat strong span { color: var(--red); }
.stat small { color: var(--muted); font-size: .92rem; }
.stat:first-child { background: var(--ink); border-color: var(--ink); }
.stat:first-child strong { color: #fff; }
.stat:first-child small { color: #aab0ba; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Postup ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px; border-top: 3px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--head); font-weight: 800; color: var(--red); font-size: 1rem; letter-spacing: .1em; display: block; margin-bottom: 10px; }
.step:hover { border-top-color: var(--red); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Reference ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 9px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }
.project { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; cursor: pointer; display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; color: inherit; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project__img { aspect-ratio: 4 / 3; background: var(--bg-3); position: relative; overflow: hidden; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover .project__img img { transform: scale(1.06); }
.project__tag { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.95); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.project__body { padding: 20px 22px 22px; }
.project__body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.project__meta { display: flex; gap: 14px; color: var(--muted); font-size: .86rem; flex-wrap: wrap; }
.project__meta span { display: inline-flex; gap: 5px; align-items: center; }
.project__meta svg { width: 14px; height: 14px; }
.ph-img { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #1b1e24, #0d0f12); }
.ph-img svg { width: 30%; color: var(--red); opacity: .9; }

/* ---------- Galerie ---------- */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin-bottom: 16px; border-radius: 12px; overflow: hidden; cursor: zoom-in; position: relative; background: var(--bg-3); border: 0; padding: 0; width: 100%; display: block; }
.gallery__item img { width: 100%; height: auto; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: .3s; text-align: left; }
.gallery__item:hover figcaption { opacity: 1; }

/* ---------- Lightbox / modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(9, 10, 12, .88); display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(6px); }
.modal.is-open { display: flex; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { background: #fff; border-radius: 20px; max-width: 980px; width: 100%; max-height: calc(100vh - 48px); overflow: auto; position: relative; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); cursor: pointer; z-index: 3; display: grid; place-items: center; box-shadow: var(--shadow); }
.modal__close svg { width: 20px; height: 20px; }
.modal__body { padding: 28px 32px 32px; }
.lightbox-img { max-width: min(1200px, 100%); max-height: calc(100vh - 80px); border-radius: 12px; }
.lightbox-cap { color: #fff; text-align: center; margin-top: 12px; }
.lb-wrap { display: flex; flex-direction: column; align-items: center; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: var(--red); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close { position: absolute; right: 16px; top: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-close svg { width: 22px; height: 22px; }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 20px; }
.project-gallery button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--bg-3); }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; }
.modal__hero { aspect-ratio: 16 / 8; background: var(--ink); position: relative; }
.modal__hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Recenze ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }
.review { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.review::before { content: "\201C"; position: absolute; right: 22px; top: 6px; font-family: Georgia, serif; font-size: 5rem; color: var(--red-50); line-height: 1; }
.review__stars { display: flex; gap: 2px; color: #f5a400; margin-bottom: 14px; }
.review__stars svg { width: 18px; height: 18px; }
.review__stars .off { color: var(--line); }
.review blockquote { margin: 0 0 22px; color: var(--ink-2); flex: 1; position: relative; }
.review__author { display: flex; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__author strong { display: block; color: var(--ink); line-height: 1.25; }
.review__author small { color: var(--muted); }

/* ---------- Tým ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 420px) { .team { grid-template-columns: 1fr; } }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.member__photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--bg-3), #dfe3e8); position: relative; overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 3.4rem; color: #b9c0c9; }
.member__body { padding: 18px 20px 20px; }
.member__body h3 { font-size: 1.1rem; margin-bottom: 2px; }
.member__pos { color: var(--red); font-weight: 600; font-size: .9rem; }
.member__bio { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.member__contact { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; font-size: .88rem; }
.member__contact a { color: var(--ink-2); }
.member__contact a:hover { color: var(--red); }

/* ---------- Certifikace ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert__img { aspect-ratio: 1 / 1.3; background: var(--bg-2); display: grid; place-items: center; padding: 18px; cursor: zoom-in; border: 0; width: 100%; }
.cert__img img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.cert__img .ph { color: var(--red); width: 70px; }
.cert__body { padding: 18px 20px 22px; }
.cert__body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.cert__body p { font-size: .92rem; color: var(--muted); margin: 0 0 8px; }
.cert__meta { font-size: .84rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.cert--imgonly .cert__body { display: none; }

/* ---------- Kariéra ---------- */
.jobs { display: grid; gap: 16px; }
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.job:hover { box-shadow: var(--shadow); }
.job[open] { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.job summary { list-style: none; cursor: pointer; padding: 24px 28px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.job summary::-webkit-details-marker { display: none; }
.job summary h3 { margin: 0 0 6px; font-size: 1.25rem; }
.job__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; padding: 4px 11px; background: var(--bg-2); border-radius: 999px; color: var(--ink-2); font-weight: 500; }
.tag svg { width: 13px; height: 13px; color: var(--red); }
.tag--red { background: var(--red-50); color: var(--red); }
.job__toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .3s; }
.job__toggle svg { width: 20px; height: 20px; transition: transform .3s; }
.job[open] .job__toggle { background: var(--red); border-color: var(--red); color: #fff; }
.job[open] .job__toggle svg { transform: rotate(45deg); }
.job__content { padding: 0 28px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.job__content h4 { font-size: 1rem; margin: 16px 0 6px; }
.job__content .full { grid-column: 1 / -1; }
@media (max-width: 760px) { .job__content { grid-template-columns: 1fr; gap: 0; padding: 0 20px 24px; } .job summary { padding: 20px; } }
.empty { text-align: center; padding: 48px 24px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: #fff; }
.empty svg { width: 42px; height: 42px; color: var(--red); margin: 0 auto 12px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 6, 0, .55), transparent 65%); }
.cta::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #b8bec8; margin: 0; max-width: 560px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.cta .btn--ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Kontakt + formulář ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; transition: .2s; }
a.contact-card:hover { border-color: var(--red); color: inherit; transform: translateX(4px); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--red-50); color: var(--red); display: grid; place-items: center; flex: none; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--muted); font-size: .82rem; }
.contact-card strong { color: var(--ink); font-weight: 600; word-break: break-word; }
.form-card { background: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-2);
  border: 1.5px solid transparent; border-radius: 10px; padding: 13px 15px; transition: .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6672' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(225, 6, 0, .08); }
.service-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.service-picker label { margin: 0; position: relative; }
.service-picker input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.service-picker span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 500; font-size: .92rem; transition: .2s; color: var(--ink-2); }
.service-picker input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.service-picker input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.field .consent input { width: 20px; height: 20px; padding: 0; accent-color: var(--red); flex: none; margin-top: 2px; appearance: auto; -webkit-appearance: checkbox; background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; display: none; }
.form-status.ok { display: block; background: #ecfdf3; color: #067647; }
.form-status.err { display: block; background: var(--red-50); color: var(--red-600); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- 3D mapa ---------- */
.map-wrap { position: relative; border-radius: 22px; overflow: hidden; height: clamp(380px, 52vw, 560px); background: var(--bg-3); box-shadow: var(--shadow); border: 1px solid var(--line); }
#map { position: absolute; inset: 0; }
.map-overlay { position: absolute; left: 20px; top: 20px; z-index: 2; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-lg); max-width: 300px; }
.map-overlay img { height: 26px; width: auto; margin-bottom: 10px; }
.map-overlay p { margin: 0 0 10px; font-size: .92rem; }
.map-controls { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.map-controls button { background: #fff; border: 0; border-radius: 10px; padding: 9px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); color: var(--ink); }
.map-controls button:hover, .map-controls button.is-active { background: var(--ink); color: #fff; }
.map-pin { width: 54px; height: 54px; position: relative; cursor: pointer; }
.map-pin__dot { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--red); border: 4px solid #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.map-pin__pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(225, 6, 0, .35); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
@media (max-width: 600px) { .map-overlay { left: 12px; right: 12px; top: 12px; max-width: none; padding: 14px 16px; } .map-overlay img { display: none; } }

/* ---------- Page hero (podstránky) ---------- */
.page-hero { position: relative; background: var(--bg-2); padding: clamp(56px, 8vw, 104px) 0 clamp(44px, 6vw, 72px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--bg-3) 1px, transparent 1px), linear-gradient(90deg, var(--bg-3) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero::after { content: ""; position: absolute; right: 0; bottom: 0; width: 38%; height: 6px; background: var(--red); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 14px; }
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }

/* ---------- Právní texty ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-2); font-weight: 600; color: var(--ink); }
.info-box { background: var(--bg-2); border-left: 4px solid var(--red); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 1.5em 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #a8afb9; padding: 72px 0 0; font-size: .94rem; position: relative; }
.footer::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--red) 0 30%, transparent 30%); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.footer__logo { height: 36px; width: auto; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: #a8afb9; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; line-height: 1.8; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer__bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__bottom button { background: none; border: 0; color: #a8afb9; font: inherit; cursor: pointer; padding: 0; }
.footer__bottom button:hover { color: #fff; }
.company-data { font-size: .86rem; line-height: 1.75; }

/* ---------- Cookie lišta ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 560px; background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.22); padding: 22px 24px; border: 1px solid var(--line); display: none; }
.cookie.is-visible { display: block; animation: up .4s ease; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
.cookie h4 { font-size: 1.05rem; margin-bottom: 6px; }
.cookie p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.cookie__opts { display: none; gap: 10px; margin-bottom: 14px; }
.cookie.show-opts .cookie__opts { display: grid; }
.cookie__opt { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; background: var(--bg-2); padding: 12px 14px; border-radius: 10px; }
.cookie__opt input { width: 18px; height: 18px; accent-color: var(--red); margin-top: 3px; flex: none; }
.cookie__opt small { display: block; color: var(--muted); }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie__actions .btn { flex: 1 1 auto; }

/* ---------- Reveal animace ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; color: #fff; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: .3s; z-index: 80; box-shadow: var(--shadow-lg); }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 20px; height: 20px; }
.loading { min-height: 120px; display: grid; place-items: center; color: var(--muted); }

/* ---------- Tmavá sekce: Proč zvolit ---------- */
.section--dark { background: var(--ink); color: #b8bec8; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; }
.section--dark::after { content: ""; position: absolute; left: -160px; bottom: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 6, 0, .28), transparent 65%); pointer-events: none; }
.section--dark .container { position: relative; z-index: 1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: #aab0ba; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 960px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why { grid-template-columns: 1fr; } }
.why__item { background: var(--ink); padding: 30px 28px; display: flex; gap: 18px; transition: background .3s; }
.why__item:hover { background: #15181d; }
.why__num { font-family: var(--head); font-weight: 800; color: var(--red); font-size: 1.05rem; letter-spacing: .08em; padding-top: 3px; }
.why__item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.why__item p { margin: 0; font-size: .95rem; }

/* ---------- Vybavení – loga značek ---------- */
.brands { margin-top: 48px; display: flex; align-items: center; gap: 28px 40px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.brands__label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brands__logos { display: flex; align-items: center; gap: 28px 44px; flex-wrap: wrap; flex: 1; justify-content: space-around; }
.brands__logos img { height: 34px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .3s; }
.brands__logos img:hover { filter: none; opacity: 1; }

/* ---------- O nás – foto ---------- */
.about-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); max-height: 620px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Kontaktní osoby ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }
.person { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.person strong { display: block; color: var(--ink); font-family: var(--head); font-size: 1.08rem; line-height: 1.2; }
.person small { color: var(--red); font-weight: 600; display: block; margin-bottom: 4px; }
.person a { color: var(--ink-2); font-size: .92rem; display: block; }
.person a:hover { color: var(--red); }
