/* ===== Base tokens (mirrors design system) ===== */
:root {
  --background: #ffffff;
  --foreground: #111111;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #fa464b;
  --primary-foreground: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul { list-style: none; }

.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
  background: transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}
.nav-inner {
  max-width: 1152px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.nav-logo img { height: 32px; }
.nav-links { display: none; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted-foreground);
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 2px 4px; font-size: 12px; font-weight: 500;
}
.lang-switch a {
  border-radius: 999px; padding: 4px 10px;
  color: var(--muted-foreground); transition: all .2s;
}
.lang-switch a.active { background: var(--primary); color: var(--primary-foreground); }
.lang-switch a:not(.active):hover { color: var(--foreground); }
.nav-mobile { display: flex; align-items: center; gap: 12px; }
.nav-toggle { padding: 8px; display: inline-flex; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; display: block; }
.nav-mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--background); padding: 16px 24px; }
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu ul { display: flex; flex-direction: column; gap: 12px; }
.nav-mobile-menu a { font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.nav-mobile-menu a:hover { color: var(--primary); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-mobile { display: none; }
  .nav-mobile-menu { display: none !important; }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Hero content reveals immediately on first paint to avoid blank hero on slow JS */
.hero .reveal { opacity: 1; transform: translateY(0); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 90vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 64px 24px 24px;
  background: var(--background);
}
.hero canvas { position: absolute; inset: 0; pointer-events: none; }
.hero h1 {
  position: relative; max-width: 768px;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.025em;
}
.hero p {
  position: relative; max-width: 576px; margin-top: 24px;
  font-size: 1.125rem; color: var(--muted-foreground);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 32px;
  font-size: 1rem; font-weight: 500;
  background: var(--primary); color: var(--primary-foreground);
  transition: background .2s, transform .2s;
}
.btn:hover { background: #e63a3f; }
.hero .btn { position: relative; margin-top: 40px; height: 44px; }

/* ===== Sections ===== */
section { padding: 80px 24px; }
.section-gray { background: var(--muted); }
.section-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.section-eyebrow .bar {
  display: block; height: 3px; width: 40px;
  background: var(--primary); border-radius: 999px;
}
.section-eyebrow span {
  font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .15em; color: var(--primary);
}
h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; }
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.text-justify { text-align: justify; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-12 { margin-bottom: 48px; }
.mb-14 { margin-bottom: 56px; }
.max-2xl { max-width: 672px; margin-left: auto; margin-right: auto; }

/* ===== About ===== */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-grid h2 { margin-bottom: 24px; }
.about-grid .body p { color: var(--muted-foreground); margin-bottom: 16px; text-align: justify; }
.about-highlights {
  margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 8px; font-size: 14px; font-weight: 500;
}
.about-highlights span { display: inline-flex; align-items: center; gap: 8px; }
.about-highlights .dot { color: var(--primary); }
.about-img { aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 25px -5px rgba(0,0,0,.1); width: 100%; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* ===== Services ===== */
.services-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  border: 1px solid var(--border); border-radius: 8px; padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.service-card img { object-fit: contain; margin-bottom: 16px; }
.service-card .icon-md { width: 64px; height: 64px; }
.service-card .icon-lg { width: 77px; height: 77px; }
.service-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--muted-foreground); text-align: justify; }

/* ===== Process ===== */
.process-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { text-align: center; }
.process-step .circle {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.process-step .circle svg { width: 24px; height: 24px; }
.process-step .step-label {
  display: block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .15em; color: var(--primary); margin-bottom: 4px;
}
.process-step h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 12px; }
.process-step p { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); text-align: justify; }

/* ===== Servis / Doplnky ===== */
.split-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 768px) { .split-grid { grid-template-columns: 1fr 1fr; } }
.split-grid h2 { margin-bottom: 16px; }
.split-grid .lead { margin-bottom: 24px; color: var(--muted-foreground); line-height: 1.6; text-align: justify; }
.split-grid .check-list { display: flex; flex-direction: column; gap: 12px; }
.split-grid .check-list li { display: flex; align-items: flex-start; gap: 12px; }
.split-grid .check-list svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.split-grid img { width: 100%; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); object-fit: cover; }
.order-1 { order: 1; }
.order-2 { order: 2; }
@media (min-width: 768px) {
  .md-order-1 { order: 1; }
  .md-order-2 { order: 2; }
}

/* ===== References ===== */
.ref-grid-desktop {
  display: none;
  grid-template-columns: repeat(5, 1fr); gap: 20px;
}
@media (min-width: 1024px) { .ref-grid-desktop { display: grid; } }
.ref-card {
  position: relative; overflow: hidden; border-radius: 8px;
  aspect-ratio: 3/4; min-height: 280px;
}
.ref-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ref-card:hover img { transform: scale(1.05); }
.ref-card .gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.1) 50%, transparent);
  transition: background .3s;
}
.ref-card:hover .gradient { background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.1) 50%, transparent); }
.ref-card h3 {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px;
  font-size: 14px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.5); line-height: 1.2;
  transition: transform .3s;
}
.ref-card:hover h3 { transform: translateY(-2px); }

.ref-marquee-mobile { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .ref-marquee-mobile { display: none; } }
.marquee { overflow: hidden; }
.marquee-track {
  display: flex; gap: 12px; width: max-content;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.marquee-track.left { animation-name: marquee-left; animation-duration: 45s; }
.marquee-track.right { animation-name: marquee-right; animation-duration: 50s; }
.marquee:hover .marquee-track,
.marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-card {
  position: relative; width: 240px; aspect-ratio: 3/4; flex-shrink: 0;
  overflow: hidden; border-radius: 8px;
}
.marquee-card img { width: 100%; height: 100%; object-fit: cover; }
.marquee-card .gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.1) 50%, transparent);
}
.marquee-card h3 {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px;
  font-size: 12px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.5); line-height: 1.2;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ===== Partners ===== */
.partners-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 32px;
}
@media (min-width: 768px) { .partners-row { gap: 48px; } }
.partners-row img {
  height: 40px; width: auto; object-fit: contain;
  opacity: .8; transition: opacity .2s;
}
.partners-row img:hover { opacity: 1; }
@media (min-width: 768px) { .partners-row img { height: 48px; } }

/* ===== Contact ===== */
.contact-buttons {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
@media (min-width: 640px) { .contact-buttons { flex-direction: row; justify-content: center; gap: 24px; } }
.contact-btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--primary); border-radius: 999px;
  padding: 12px 32px; font-weight: 600; color: var(--primary);
  transition: background .2s, color .2s;
}
.contact-btn:hover { background: var(--primary); color: var(--primary-foreground); }
.contact-btn svg { width: 20px; height: 20px; }
.contact-address {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 24px;
}
.contact-address svg { width: 20px; height: 20px; color: var(--primary); }
.contact-address p { color: var(--muted-foreground); }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  background: var(--foreground); color: var(--background);
}
.footer-grid {
  display: grid; gap: 40px; padding: 48px 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid img { height: 32px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-grid p { font-size: 14px; color: rgba(255,255,255,.6); }
.footer-grid h4 {
  font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 16px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid ul li, .footer-grid ul a {
  font-size: 14px; color: rgba(255,255,255,.6); transition: color .2s;
}
.footer-grid ul a:hover { color: var(--background); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 12px; color: rgba(255,255,255,.4);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: var(--background); }
.footer-bottom .links { display: flex; align-items: center; gap: 16px; }
.footer-bottom .briefer { font-weight: 500; color: rgba(255,255,255,.6); }
.footer-bottom .briefer:hover { color: var(--background); }

/* ===== Privacy page ===== */
.privacy {
  max-width: 768px; margin: 0 auto; padding: 64px 24px;
}
@media (min-width: 768px) { .privacy { padding: 96px 24px; } }
.privacy .back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 40px;
  font-size: 14px; color: var(--muted-foreground); transition: color .2s;
}
.privacy .back:hover { color: var(--foreground); }
.privacy .back svg { width: 16px; height: 16px; }
.privacy h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 40px; }
@media (min-width: 768px) { .privacy h1 { font-size: 2.25rem; } }
.privacy h2 { font-size: 1.25rem; font-weight: 600; margin: 40px 0 16px; }
.privacy p { color: var(--muted-foreground); line-height: 1.6; margin-bottom: 16px; }
.privacy ul { list-style: disc; padding-left: 24px; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 16px; }
.privacy ul li { margin-bottom: 4px; }
.privacy a { color: var(--primary); }
.privacy a:hover { text-decoration: underline; }
.privacy .org p { margin-bottom: 4px; }
