/* POLYGONWARE s. r. o. — polygonware.com
   Statický web bez externých závislostí (žiadne fonty/analytika tretích strán). */

:root {
  --bg: #0c0d10;
  --bg-elev: #14161b;
  --border: #262a33;
  --text: #eceef2;
  --text-soft: #cfd3da;
  --muted: #a3a9b5;
  --accent: #ea1c1c;          /* červená z loga */
  --accent-strong: #ff3030;
  --link: #ff6b63;            /* svetlejšia červená pre text (kontrast ≥ 4.5:1) */
  --radius: 14px;
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; border-radius: 6px; }

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(12, 13, 16, .85);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { height: 22px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .lang { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 13px; letter-spacing: .04em; }
.nav .lang:hover { border-color: var(--muted); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- Úvod ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px;
  padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 9vw, 112px);
}
.hero-copy { position: relative; z-index: 1; }
.hero-art { justify-self: end; width: 100%; max-width: 420px; height: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow::before, .hex {
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.eyebrow::before { content: ""; width: 12px; height: 10.4px; background: var(--accent); }

h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 750; text-wrap: balance; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 32px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); color: #fff; }

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { position: absolute; right: -150px; top: -60px; width: 320px; opacity: .16; pointer-events: none; }
}

/* ---------- Sekcie ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--border); scroll-margin-top: var(--header-h); }
.section-head { margin-bottom: 40px; max-width: 40em; }
h2 { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 12px; font-weight: 700; }
.section-head p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.card, .panel { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card .hex {
  display: grid; place-items: center; width: 46px; height: 40px; margin-bottom: 20px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
}
.card h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Kontakt / údaje o firme ---------- */

.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; align-items: start; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

.panel h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 600; }
.panel .sub { margin-top: 28px; }
.mail { font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; overflow-wrap: anywhere; }
address { font-style: normal; color: var(--text-soft); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text-soft); overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 12px; }
}

/* ---------- Pätička ---------- */

.site-footer { padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Dokument (Privacy Policy) ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter); }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; }
.doc .meta { color: var(--muted); margin: 0 0 40px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--text-soft); }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 4px; }
.doc .panel { margin: 16px 0 0; }

/* ---------- 404 ---------- */

.notfound { min-height: calc(100vh - var(--header-h) - 100px); display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.notfound .hex { width: 58px; height: 50px; margin: 0 auto 24px; background: var(--accent); }
.notfound p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
