/* =====================================================================
   KOVOPAP, s.r.o. – web
   Vychádza z návrhu Claude Design (variant A „Tmavá modrá")
   a dizajnového systému Stellarbase.
   ===================================================================== */

/* ---------- Písmo ---------- */
@font-face {
  font-family: "Google Sans";
  src: url("../fonts/google-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokeny ---------- */
:root {
  --navy-1000: #010509;
  --navy-950: #020812;
  --navy-900: #050D1B;
  --navy-850: #0A1322;
  --navy-800: #0E1B30;
  --navy-700: #16243A;
  --navy-600: #1D2A3D;
  --navy-500: #2A3B52;

  --star-100: #EAF1FB;
  --star-300: #C4D2E5;
  --star-400: #9FB0C4;
  --star-500: #758499;

  --blue-300: #93B8FF;
  --blue-400: #6B9EFF;
  --blue-500: #4A85FF;
  --blue-600: #3066DB;
  --blue-glow-12: rgba(74, 133, 255, 0.12);
  --blue-glow-24: rgba(74, 133, 255, 0.24);
  --blue-glow-40: rgba(74, 133, 255, 0.40);

  --success-500: #34D399;
  --danger-500: #F2555A;

  --bg-page: var(--navy-950);
  --bg-page-deep: var(--navy-1000);
  --surface-raised: var(--navy-850);
  --surface-card: var(--navy-800);
  --surface-hover: var(--navy-700);
  --surface-inset: var(--navy-900);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-default: var(--navy-600);
  --border-strong: var(--navy-500);
  --border-accent: var(--blue-600);

  --text-strong: var(--star-100);
  --text-body: var(--star-300);
  --text-muted: var(--star-400);
  --text-faint: var(--star-500);

  --accent: var(--blue-500);
  --accent-hover: var(--blue-400);
  --accent-press: var(--blue-600);
  --accent-soft: var(--blue-glow-12);
  --accent-ring: var(--blue-glow-40);

  --font-sans: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius-xs: 6px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --glow-accent-sm: 0 0 0 1px var(--blue-glow-24), 0 0 24px -4px var(--blue-glow-40);
  --glow-accent-md: 0 0 40px -6px var(--blue-glow-40);
  --inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --focus-ring: 0 0 0 3px var(--accent-ring);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1280px;
  --gutter: 24px;
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 120px);

  color-scheme: dark;
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 64px; }
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; color: var(--text-strong); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--blue-glow-40); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
button { font: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Typografia sekcií ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px;
  align-items: end;
}
.section-head__title { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 640px) {
  .section-head { gap: 20px; }
  .lead { font-size: 17px; }
}

/* ---------- Tlačidlá ---------- */
.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--h);
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out),
              color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:focus-visible { box-shadow: var(--focus-ring); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

.btn--sm { --h: 36px; padding: 0 16px; font-size: 13px; }
.btn--lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--glow-accent-sm); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--glow-accent-md); }
.btn--primary:active { background: var(--accent-press); }

.btn--secondary { background: var(--surface-card); color: var(--text-strong); border-color: var(--border-default); }
.btn--secondary:hover { background: var(--surface-hover); color: var(--text-strong); border-color: var(--border-strong); }

.btn--ghost { background: transparent; color: var(--text-body); }
.btn--ghost:hover { background: var(--surface-hover); color: var(--text-strong); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-strong);
}
.logo:hover { color: var(--text-strong); }
.logo__mark { width: 32px; height: 32px; filter: drop-shadow(0 0 12px rgba(74, 133, 255, 0.45)); }
.logo__text { font-weight: 700; font-size: 16px; letter-spacing: 0.3em; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 8, 18, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { color: var(--text-muted); transition: color 200ms; }
.site-nav a:hover { color: var(--text-strong); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--surface-raised);
  color: var(--text-strong);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--border-subtle);
  padding: 8px var(--gutter) 20px;
  display: flex;
  flex-direction: column;
  font-size: 18px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  padding: 14px 0;
  color: var(--text-strong);
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu a:not(.btn):last-of-type { border-bottom: 0; margin-bottom: 6px; }
.mobile-menu .btn { margin-top: 8px; }

@media (max-width: 859px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 860px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Úvod (hero) ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero__media {
  position: absolute;
  inset: 0;
  background: var(--surface-inset) url("../img/hero-poster.webp") center / cover no-repeat;
}
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 8, 18, 0.55) 0%, rgba(2, 8, 18, 0.35) 35%, rgba(2, 8, 18, 0.92) 82%, var(--bg-page) 100%);
}
.hero__glow {
  position: absolute;
  left: -10%; bottom: -30%;
  width: 70%; height: 80%;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--blue-glow-24), transparent);
}

.hero__content {
  position: relative;
  padding-top: clamp(96px, 16vw, 160px);
  padding-bottom: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__heading {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: inherit;
}

/* Nadpis vždy v dvoch riadkoch: každá veta na jeden riadok, veľkosť písma sa prispôsobí šírke.
   --hero-em = šírka dlhšej vety vo veľkostiach písma (+ rezerva), podľa jazyka. */
.hero__title {
  --hero-em: 8.75;
  display: block;
  font-size: min(clamp(38px, 7.2vw, 104px), calc((min(100vw, var(--container)) - 2 * var(--gutter) - 8px) / var(--hero-em)));
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
}
html[lang="en"] .hero__title { --hero-em: 10.2; }
html[lang="de"] .hero__title { --hero-em: 11.45; }
.hero__line { display: block; white-space: nowrap; }

.hero__text {
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-body);
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 859px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero__media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 8, 18, 0.15) 0%, rgba(2, 8, 18, 0) 45%, var(--bg-page) 100%);
  }
  .hero__shade { display: none; }
  .hero__glow { left: -30%; bottom: -10%; width: 110%; height: 70%; }
  .hero__content { padding-top: 20px; padding-bottom: 48px; gap: 22px; }
}

@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Kľúčové čísla ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-subtle);
}
.stat {
  padding: clamp(20px, 4vw, 36px) 16px clamp(20px, 4vw, 36px) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__value {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-strong);
}
.stat__label { font-size: 15px; color: var(--text-muted); }

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

/* ---------- Služby ---------- */
.services {
  padding-top: var(--section-y);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--inset-highlight);
  transition: transform 240ms var(--ease-out), border-color 240ms;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card__num { font-family: var(--font-mono); font-size: 13px; color: var(--blue-300); }
.card__title { font-size: 24px; letter-spacing: -0.015em; font-weight: 700; }
.card__text { font-size: 16px; line-height: 1.55; color: var(--text-muted); }

@media (max-width: 640px) {
  .services { gap: 36px; }
  .card { padding: 24px; gap: 10px; border-radius: var(--radius-lg); }
  .card__title { font-size: 21px; }
}

/* ---------- Pohyblivé pásy (marquee) ---------- */
@keyframes kp-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.marquee {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }

.marquee__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: max-content;
}

.marquee.is-animated { overflow: hidden; }
.marquee.is-animated .marquee__track {
  animation: kp-marquee var(--duration, 60s) linear infinite;
  animation-direction: var(--direction, normal);
}
.marquee.is-animated:hover .marquee__track,
.marquee.is-animated:focus-within .marquee__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .marquee.is-animated { overflow-x: auto; }
  .marquee.is-animated .marquee__track { animation: none; }
}

/* Výrobky */
.products {
  padding-bottom: var(--section-y);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.products__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.products__head .lead { font-size: 16px; max-width: 420px; }

.product { flex: 0 0 auto; padding: 0 8px; }
.product__btn {
  all: unset;
  box-sizing: border-box;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 300px;
}
.product__btn:focus-visible { box-shadow: none; }
.product__btn:focus-visible .product__img { box-shadow: var(--focus-ring); }
.product__img {
  display: block;
  height: 225px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--surface-inset);
  transition: border-color 240ms;
}
.product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.product__img { position: relative; }
/* 3D náhľad (hĺbková mapa) – plátno sa vkladá len počas prechodu myšou */
.product__img canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.product__btn:hover .product__img { border-color: var(--border-accent); }
.product__btn:hover .product__img img { transform: scale(1.06); }

/* Výrobok v troch krokoch (zostava): fotky sa v karte postupne prelínajú, bodky ukazujú krok */
@keyframes kp-seq {
  0%, 27% { opacity: 1; }
  33%, 94% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes kp-seq-dot {
  0%, 27% { opacity: 1; }
  33%, 94% { opacity: 0.3; }
  100% { opacity: 1; }
}
.product__img--seq img {
  position: absolute;
  inset: 0;
  animation: kp-seq 9s linear infinite;
}
.product__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.product__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-strong);
  animation: kp-seq-dot 9s linear infinite;
}
.product__img--seq img:nth-of-type(2), .product__dots i:nth-child(2) { animation-delay: -6s; }
.product__img--seq img:nth-of-type(3), .product__dots i:nth-child(3) { animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) {
  .product__img--seq img { animation: none; opacity: 0; }
  .product__img--seq img:last-of-type { opacity: 1; }
  .product__dots { display: none; }
}

@media (max-width: 640px) {
  .product__btn { width: 240px; }
  .product__img { height: 180px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(16px, 4vw, 56px);
  border: 0;
  background: transparent;
  color: var(--text-strong);
  cursor: zoom-out;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop {
  background: rgba(1, 5, 9, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: min(1200px, 100%);
  max-height: 100%;
}
.lightbox figure { align-items: center; }
.lightbox__stage {
  position: relative;
  display: block;
  line-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 80px var(--blue-glow-24);
  touch-action: pinch-zoom;
}
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1200px, calc(100vw - 2 * clamp(16px, 4vw, 56px) - 2px));
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
}
/* 3D náhľad: plátno prekryje fotku, až keď je hĺbková mapa načítaná */
.lightbox__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms;
}
.lightbox__stage.is-3d canvas { opacity: 1; }
/* Kroky zostavy: predchádzajúca fotka leží navrchu a plynulo zmizne */
.lightbox .lightbox__prev {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms;
}
.lightbox .lightbox__prev.is-on { opacity: 1; transition: none; }
.lightbox.has-steps .lightbox__stage > img:first-child {
  max-height: calc(100vh - 220px);
  max-height: calc(100dvh - 220px);
}
.lightbox__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  cursor: default;
}
.lightbox__steps[hidden] { display: none; }
.lightbox__step {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-muted);
  transition: border-color 240ms, color 240ms, background-color 240ms;
}
.lightbox__step b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-inset);
  font-size: 12px;
  font-weight: 500;
}
.lightbox__step:hover { color: var(--text-strong); }
.lightbox__step:focus-visible { box-shadow: var(--focus-ring); }
.lightbox__step[aria-current="step"] {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  color: var(--text-strong);
}
.lightbox__step[aria-current="step"] b { background: var(--accent); color: #fff; }
.lightbox__hint3d { display: none; color: var(--blue-300); }
.lightbox.is-3d .lightbox__hint3d { display: inline; }
.lightbox figcaption {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 16px;
}
.lightbox__hint { font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* ---------- Strojový park ---------- */
.park {
  background: var(--bg-page-deep);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.park__inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs[hidden] { display: none; }
.tab {
  cursor: pointer;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-body);
  font-size: 15px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  transition: background 200ms, border-color 200ms, color 200ms;
}
.tab:hover { border-color: var(--border-strong); color: var(--text-strong); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab__count { font-family: var(--font-mono); font-size: 12px; opacity: 0.7; }

.machines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.machine {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--inset-highlight);
  transition: border-color 240ms, transform 240ms var(--ease-out);
}
.machine[hidden] { display: none; }
.machine:hover { border-color: var(--border-accent); transform: translateY(-2px); }

.machine__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
}
.machine__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.machine__type {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(2, 8, 18, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--star-100);
}

.machine__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.machine__brand { font-size: 13px; color: var(--text-faint); }
.machine__name { font-size: 22px; letter-spacing: -0.015em; font-weight: 700; margin-top: 4px; }

.specs { margin: 0; display: flex; flex-direction: column; }
.specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
}
.specs dt { color: var(--text-muted); }
.specs dd {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
}

.swipe-hint { display: none; }

/* Mobil: karty strojov ako posúvateľný pás */
@media (max-width: 640px) {
  .park__inner { gap: 28px; }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
    scroll-padding: 0 var(--gutter);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 9px 16px; font-size: 14px; }

  .machines {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    scroll-padding: 0 var(--gutter);
  }
  .machines::-webkit-scrollbar { display: none; }
  .machine {
    flex: 0 0 84%;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
  }
  .machine:hover { transform: none; }
  .machine__body { padding: 20px 20px 22px; gap: 12px; }
  .machine__name { font-size: 20px; }

  .swipe-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -12px;
    font-size: 13px;
    color: var(--text-faint);
    white-space: nowrap;
  }
  .swipe-hint__dots { display: flex; gap: 6px; }
  .swipe-hint__dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: background 200ms, width 200ms;
  }
  .swipe-hint__dots span.is-active { width: 18px; border-radius: 3px; background: var(--accent); }
}

/* ---------- Referencie ---------- */
.partners-head {
  padding-top: var(--section-y);
  padding-bottom: 48px;
}

.partners {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-page-deep), var(--bg-page));
  padding: 24px 0;
}
.partners::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 60%; height: 140%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(closest-side, var(--blue-glow-12), transparent);
}

.partner {
  flex: 0 0 auto;
  height: 96px;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner img {
  height: var(--h, 34px);
  width: auto;
  max-width: 190px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 240ms;
}
.partner img:hover { opacity: 1; }
.partner__name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--star-300);
  opacity: 0.85;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .partners-head { padding-bottom: 32px; }
  .partner { height: 80px; padding: 0 32px; }
  .partner img { height: calc(var(--h, 34px) * 0.8); }
  .partner__name { font-size: 22px; }
}

/* ---------- Kontakt ---------- */
.contact {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  right: -15%; top: -20%;
  width: 60%; height: 90%;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--blue-glow-24), transparent);
}

.contact__inner {
  position: relative;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
}

.contact__info { display: flex; flex-direction: column; gap: 32px; min-width: 0; }

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.contacts__item { display: flex; flex-direction: column; gap: 6px; font-style: normal; }
.contacts__label { font-size: 13px; color: var(--text-faint); }
.contacts__value { font-size: 20px; font-weight: 500; color: var(--text-strong); overflow-wrap: anywhere; }
a.contacts__value:hover { color: var(--accent-hover); }
.contacts__value--accent { color: var(--accent); }
.contacts__address { font-size: 18px; line-height: 1.4; color: var(--text-strong); }

.map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 260px;
  background: var(--surface-inset);
}
.map__link {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--text-strong);
}
.map__link:hover { color: var(--text-strong); }
.map__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.map__link:hover img { transform: scale(1.03); }
.map__link:focus-visible { box-shadow: inset var(--focus-ring); border-radius: var(--radius-lg); }
.map__pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(18px, -50%);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  background: rgba(2, 8, 18, 0.8);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.map__cta {
  position: absolute;
  left: 12px; top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(2, 8, 18, 0.85);
  border: 1px solid var(--border-default);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-300);
}
.map__cta svg { width: 14px; height: 14px; }
.map__credit {
  position: absolute;
  right: 0; bottom: 0;
  padding: 3px 8px;
  border-top-left-radius: 8px;
  background: rgba(2, 8, 18, 0.75);
  font-size: 11px;
  color: var(--text-faint);
}
.map__credit:hover { color: var(--text-body); }

@media (max-width: 640px) {
  .contact__inner { gap: 40px; }
  .contacts { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .contacts__value { font-size: 17px; }
  .contacts__address { font-size: 16px; }
  .contacts__item--wide { grid-column: 1 / -1; }
  .map { height: 220px; }
}
@media (max-width: 380px) {
  .contacts { grid-template-columns: 1fr; }
}

/* Formulár */
.form-card {
  align-self: start;
  background: var(--surface-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--glow-accent-md);
  min-width: 0;
}

.form { display: flex; flex-direction: column; gap: 18px; }
.form[hidden] { display: none; }
.form__title { font-size: 24px; font-weight: 700; }
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 14px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 14px; font-weight: 500; color: var(--text-strong); }
.field__req { color: var(--accent); margin-left: 2px; }

.input, .textarea {
  width: 100%;
  padding: 0 14px;
  background: var(--surface-inset);
  color: var(--text-strong);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 16px; /* 16px = iOS nezoomuje pri písaní */
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms var(--ease-out);
}
.input { height: 44px; line-height: 1; }
.textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 112px; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: var(--focus-ring);
  background: var(--surface-card);
}
.field.is-invalid .input, .field.is-invalid .textarea { border-color: var(--danger-500); }

.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  transition: border-color 200ms, color 200ms, background 200ms;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); color: var(--text-body); }
.dropzone.is-dragover { background: var(--accent-soft); }
.dropzone input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
}
.dropzone:focus-within { border-color: var(--accent); box-shadow: var(--focus-ring); }
.dropzone__btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--blue-300);
  font-weight: 500;
  white-space: nowrap;
}
.dropzone__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.check input {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.check a { text-decoration: underline; text-underline-offset: 2px; }

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__error {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(242, 85, 90, 0.12);
  border: 1px solid rgba(242, 85, 90, 0.3);
  color: #FF8A8E;
  font-size: 14px;
}
.form__error[hidden] { display: none; }

.form__note { font-size: 13px; color: var(--text-faint); }

.btn .spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 0;
  text-align: center;
  align-items: center;
}
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 28px; font-weight: 700; }
.form-success p { color: var(--text-muted); font-size: 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
}
.badge--success { background: rgba(52, 211, 153, 0.12); color: #6EE7B7; border-color: rgba(52, 211, 153, 0.24); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

@media (max-width: 640px) {
  .form-card { border-radius: var(--radius-lg); }
  .form__row { grid-template-columns: 1fr; }
  .form__title { font-size: 22px; }
  .dropzone { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dropzone__label { white-space: normal; }
}

/* ---------- Pätička ---------- */
.site-footer { border-top: 1px solid var(--border-subtle); }
.site-footer__inner {
  padding-top: 48px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
  font-size: 14px;
  color: var(--text-faint);
}
.site-footer__brand { display: flex; align-items: flex-start; gap: 12px; }
.site-footer__brand svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.site-footer__legal { display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
.site-footer__legal strong { color: var(--text-muted); font-weight: 500; }
.site-footer__title { margin-bottom: 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__col a { color: var(--text-muted); }
.site-footer__col a:hover { color: var(--text-strong); }

@media (max-width: 859px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Podstránky (ochrana údajov, poďakovanie) ---------- */
.page {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: var(--section-y);
}
.prose {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
}
.prose h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 8px;
}
.prose h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-top: 20px;
}
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .muted { color: var(--text-faint); font-size: 15px; }

.thanks {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}
.thanks h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
.thanks p { font-size: 18px; color: var(--text-muted); max-width: 560px; }

/* ---------- Menej pohybu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Výšky log partnerov (podľa návrhu) */
.partner img.h22 { --h: 22px; }
.partner img.h26 { --h: 26px; }
.partner img.h34 { --h: 34px; }
.partner img.h38 { --h: 38px; }
.partner img.h40 { --h: 40px; }
.partner img.h52 { --h: 52px; }
.partner img.h54 { --h: 54px; }

/* =====================================================================
   Jazykové verzie a podstránky služieb
   ===================================================================== */

/* ---------- Prepínač jazykov ---------- */
.site-header__end { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
}
.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 7px;
  border-radius: var(--radius-pill);
  transition: background 200ms;
}
.lang-switch img {
  width: 21px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  opacity: 0.72;
  filter: saturate(0.85);
  transition: opacity 200ms, filter 200ms;
}
.lang-switch a:hover img { opacity: 1; filter: none; }
.lang-switch a[aria-current] { background: var(--surface-hover); }
.lang-switch a[aria-current] img { opacity: 1; filter: none; }

@media (max-width: 640px) {
  .site-header__bar { gap: 12px; }
  .site-header__end { gap: 8px; }
}
@media (max-width: 400px) {
  .logo { gap: 10px; }
  .logo__text { font-size: 15px; letter-spacing: 0.2em; }
  .lang-switch a { padding: 6px 5px; }
}

/* ---------- Karty služieb s odkazom ---------- */
.card { position: relative; }
.card--link .card__title a { color: inherit; }
.card--link .card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link .card__title a:focus-visible { box-shadow: none; }
.card--link:focus-within { box-shadow: var(--focus-ring), var(--inset-highlight); }
.card--link:hover { border-color: var(--border-accent); }
.card__more {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-300);
}
.card__more span { transition: transform 200ms var(--ease-out); }
.card--link:hover .card__more span { transform: translateX(3px); }

/* ---------- Úvod podstránky ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero__glow {
  position: absolute;
  left: -15%; top: -30%;
  width: 70%; height: 120%;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--blue-glow-24), transparent);
}
.page-hero__inner {
  position: relative;
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.page-hero__text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.page-hero__title {
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.page-hero__media {
  aspect-ratio: 4 / 3;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-accent);
  box-shadow: var(--glow-accent-md);
  overflow: hidden;
}
.page-hero__media img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 859px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__media { width: 100%; max-width: 520px; }
}
@media (max-width: 640px) {
  .page-hero__inner { padding-top: 24px; gap: 28px; }
  .page-hero__media { border-radius: var(--radius-lg); }
}

.back-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 200ms, border-color 200ms, background 200ms;
}
.back-link svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.back-link:hover { color: var(--text-strong); border-color: var(--border-strong); background: var(--surface-hover); }
.back-link:hover svg { transform: translateX(-3px); }

/* ---------- Obsah služby ---------- */
.svc { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.svc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.svc__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-body);
}

.facts {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--inset-highlight);
}
.facts__title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.facts .specs dd { font-family: var(--font-sans); font-size: 14px; font-weight: 500; }

@media (max-width: 859px) {
  .svc__grid { grid-template-columns: 1fr; }
  .facts { position: static; }
}
@media (max-width: 640px) {
  .svc__body { font-size: 17px; }
  .facts { padding: 22px; border-radius: var(--radius-lg); }
}

/* Stroje na podstránke */
.park--compact .park__inner { gap: 32px; }
.machines--single { grid-template-columns: minmax(0, 420px); }
@media (max-width: 640px) {
  .machines--single .machine { flex-basis: 100%; }
}


.nw { white-space: nowrap; }
