/* ==========================================================================
   Dynamic Projects, s.r.o. — style.css
   Design: "Precision Engineering" (dark industrial, cyan / teal / emerald)
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL licensed) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #0b192c;
  --bg-deep: #07121f;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --grid-line: rgba(51, 65, 85, 0.28);

  --primary: #00d2ff;
  --primary-soft: rgba(0, 210, 255, 0.12);
  --secondary: #00a3a6;
  --tertiary: #10b981;
  --warning: #f59e0b;

  --text: #f8fafc;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --r-sm: 4px;
  --r-lg: 8px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 7rem);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { color: var(--text); margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--primary); color: var(--bg); padding: .5rem 1rem; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.label {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--font);
  cursor: pointer; text-decoration: none !important;
  transition: box-shadow .2s, background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 0 20px rgba(0, 210, 255, .4); }
.btn-outline { background: rgba(15, 23, 42, .6); color: var(--text); border-color: rgba(0, 163, 166, .5); }
.btn-outline:hover { border-color: var(--secondary); background: rgba(0, 163, 166, .15); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-info a { color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.topbar-info a:hover { color: var(--primary); text-decoration: none; }
.topbar-info .icon { width: 14px; height: 14px; color: var(--secondary); }
.status-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tertiary); box-shadow: 0 0 8px var(--tertiary);
  margin-right: .5rem; vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.lang-switch { display: flex; gap: 2px; }
.lang-switch a {
  padding: .2rem .5rem; border-radius: 2px;
  color: var(--muted); font-weight: 600; letter-spacing: .08em;
}
.lang-switch a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.lang-switch a[aria-current="true"] { color: var(--bg); background: var(--primary); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 25, 44, .86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none !important; }
.brand img { width: 40px; height: 40px; }
.brand-name { display: block; font-weight: 800; letter-spacing: .04em; font-size: 1rem; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; color: var(--primary); text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 1.75rem; }
.nav-list a { color: var(--text-2); font-size: .9rem; font-weight: 500; position: relative; padding-block: .5rem; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--primary);
  transition: right .25s;
}
.nav-list a:hover { color: var(--text); text-decoration: none; }
.nav-list a:hover::after { right: 0; }

.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--text); cursor: pointer;
}
.nav-toggle-btn .icon { width: 22px; height: 22px; }
.nav-toggle-btn .icon-close { display: none; }

@media (max-width: 960px) {
  .nav-toggle-btn { display: inline-flex; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: rgba(11, 25, 44, .98);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--border); }
  .nav-list a::after { display: none; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-btn .icon-open { display: none; }
  .nav-toggle:checked ~ .nav-toggle-btn .icon-close { display: block; }
  .nav-toggle:focus-visible ~ .nav-toggle-btn { outline: 2px solid var(--primary); outline-offset: 3px; }
}

/* ---------- Tech grid backgrounds ---------- */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(0, 210, 255, .12), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(16, 185, 129, .08), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, var(--bg));
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.sysline { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.75rem; font-family: var(--mono); font-size: .72rem; color: var(--faint); letter-spacing: .06em; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .7rem; border: 1px solid var(--border-strong); border-radius: 2px;
  background: rgba(15, 23, 42, .7);
  font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tertiary); box-shadow: 0 0 8px var(--tertiary); }
.chip .dot.cyan { background: var(--primary); box-shadow: 0 0 8px var(--primary); }

.hero h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--primary); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 36rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.hero-badges li { display: flex; align-items: center; gap: .45rem; }
.hero-badges .icon { color: var(--tertiary); width: 16px; height: 16px; }

.hero-visual {
  position: relative;
  border: 1px solid rgba(0, 210, 255, .25); border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 40px rgba(0, 210, 255, .08);
  overflow: hidden;
}
.hero-visual-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .6rem 1rem; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--muted);
}
.hero-visual-bar .ok { color: var(--tertiary); }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 560 / 400; }
.hero-readouts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.hero-readouts div { padding: .8rem 1rem; }
.hero-readouts div + div { border-left: 1px solid var(--border); }
.hero-readouts dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.hero-readouts dd { margin: .2rem 0 0; font-family: var(--mono); font-size: .95rem; font-weight: 600; color: var(--text); }
.hero-readouts dd.cyan { color: var(--primary); }
.hero-readouts dd.green { color: var(--tertiary); }

/* ---------- Stats strip ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-deep); }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 1.75rem 1.5rem; }
.stats li + li { border-left: 1px solid var(--border); }
.stat-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.stat-value { display: block; margin: .35rem 0 .15rem; font-family: var(--mono); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat-text { font-size: .875rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-alt { background: var(--bg-deep); border-block: 1px solid var(--border); }
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head .label { display: block; margin-bottom: .9rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 40rem; }

/* ---------- Focus cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { background: var(--surface-2); border-color: rgba(0, 210, 255, .3); box-shadow: 0 0 16px rgba(0, 210, 255, .08); transform: translateY(-2px); }
.card.featured { border-color: rgba(0, 210, 255, .35); background: linear-gradient(180deg, rgba(0, 210, 255, .06), var(--surface) 40%); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--primary-soft); border: 1px solid rgba(0, 210, 255, .25); color: var(--primary);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-tag { font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .1em; color: var(--secondary); border: 1px solid rgba(0, 163, 166, .45); padding: .25rem .5rem; border-radius: 2px; text-transform: uppercase; white-space: nowrap; }
.card h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.card > p { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.checklist { display: grid; gap: .6rem; margin-top: auto; }
.checklist li { display: flex; gap: .6rem; font-size: .9rem; color: var(--text-2); line-height: 1.45; }
.checklist .icon { color: var(--tertiary); width: 18px; height: 18px; margin-top: 1px; }

/* ---------- Services grid ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.service { padding: 1.75rem; background: var(--surface); display: flex; flex-direction: column; gap: .7rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background-color .2s; }
.service:hover { background: var(--surface-2); }
.services .service:nth-child(4n) { border-right: 0; }
.services .service:nth-last-child(-n+4) { border-bottom: 0; }
.service .icon { width: 28px; height: 28px; color: var(--primary); }
.service h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.service p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.service .code { margin-top: auto; padding-top: .75rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; border-top: 1px dashed var(--border); }

/* ---------- Tech stack ---------- */
.stack-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.stack-wrap h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin: .9rem 0 1.25rem; }
.stack-wrap .intro p { color: var(--muted); margin-bottom: 1.5rem; }
.note-box { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid rgba(16, 185, 129, .3); background: rgba(16, 185, 129, .06); border-radius: var(--r-lg); }
.note-box .icon { color: var(--tertiary); width: 26px; height: 26px; }
.note-box strong { display: block; color: var(--text); font-size: .95rem; }
.note-box span { font-size: .875rem; color: var(--muted); }

.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stack-item { padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color .2s; }
.stack-item:hover { border-color: rgba(0, 210, 255, .3); }
.stack-item-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.stack-item h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.stack-item .tag { font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .1em; color: var(--primary); text-transform: uppercase; }
.langs { display: flex; flex-wrap: wrap; gap: .4rem; }
.langs li { font-family: var(--mono); font-size: .76rem; padding: .25rem .55rem; border-radius: 2px; background: var(--bg-deep); border: 1px solid var(--border-strong); color: var(--text-2); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 23px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, var(--secondary), var(--primary), var(--tertiary)); opacity: .6; }
.step { position: relative; padding: 0 1rem; text-align: center; }
.step-num {
  position: relative; z-index: 1; width: 46px; height: 46px; margin: 0 auto 1.25rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-deep); border: 1px solid var(--primary); color: var(--primary);
  font-family: var(--mono); font-weight: 600; font-size: .85rem;
  box-shadow: 0 0 12px rgba(0, 210, 255, .2);
}
.section:not(.section-alt) .step-num { background: var(--bg); }
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; letter-spacing: 0; }
.step p { font-size: .875rem; color: var(--muted); line-height: 1.55; }

/* ---------- About / team ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-text h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin: .9rem 0 1.25rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.about-text p strong { color: var(--text-2); font-weight: 600; }
.lang-flags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }

.team { display: grid; gap: 1rem; }
.member { display: flex; gap: 1.25rem; align-items: center; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.avatar {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(0, 210, 255, .18), rgba(0, 163, 166, .1));
  border: 1px solid rgba(0, 210, 255, .3);
  font-family: var(--mono); font-weight: 600; color: var(--primary); font-size: 1rem; letter-spacing: .05em;
}
.member h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.member .role { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); margin: .15rem 0 .3rem; }
.member p { font-size: .875rem; color: var(--muted); line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-info h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin: .9rem 0 1.25rem; }
.contact-info > p { color: var(--muted); margin-bottom: 2rem; }
.promises { display: grid; gap: .9rem; margin-bottom: 2rem; }
.promises li { display: flex; gap: .75rem; align-items: center; color: var(--text-2); font-size: .95rem; }
.promises .icon { color: var(--primary); width: 20px; height: 20px; }

.direct { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.direct-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; }
.direct-row + .direct-row { border-top: 1px solid var(--border); }
.direct-row .icon { color: var(--secondary); width: 20px; height: 20px; margin-top: 3px; }
.direct-row dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.direct-row dd { margin: .1rem 0 0; color: var(--text); font-size: .95rem; }
.direct-row dd a { color: var(--text); }
.direct-row dd a:hover { color: var(--primary); }

.map {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid rgba(0, 210, 255, .25); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: 0 0 30px rgba(0, 210, 255, .05);
  min-height: 100%;
}
.map iframe {
  display: block; width: 100%; flex: 1; min-height: 420px; border: 0;
  filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95) contrast(.9);
}
.map figcaption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .9rem 1rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text-2);
}
.map figcaption > span { display: inline-flex; align-items: center; gap: .5rem; }
.map figcaption .icon { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-grid h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; font-weight: 600; }
.footer-grid p { color: var(--muted); line-height: 1.6; }
.footer-grid ul { display: grid; gap: .55rem; }
.footer-grid ul a { color: var(--muted); }
.footer-grid ul a:hover { color: var(--primary); text-decoration: none; }
.footer-brand .brand { margin-bottom: 1rem; }
.legal { font-family: var(--mono); font-size: .75rem; color: var(--muted); line-height: 1.8; }
.legal b { color: var(--text-2); font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: var(--primary); }

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--primary); border: 1px solid rgba(0, 210, 255, .3); border-radius: var(--r-sm);
  opacity: .85;
}
.to-top:hover { opacity: 1; text-decoration: none; box-shadow: 0 0 14px rgba(0, 210, 255, .3); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services .service:nth-child(4n) { border-right: 1px solid var(--border); }
  .services .service:nth-child(2n) { border-right: 0; }
  .services .service:nth-last-child(-n+4) { border-bottom: 1px solid var(--border); }
  .services .service:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero .container, .stack-wrap, .about, .contact, .section-head { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .cards-3 { grid-template-columns: 1fr; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .process { grid-template-columns: 1fr; gap: 1.5rem; }
  .process::before { top: 0; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--secondary), var(--primary), var(--tertiary)); }
  .step { display: grid; grid-template-columns: 46px 1fr; gap: 0 1.25rem; text-align: left; padding: 0; }
  .step-num { margin: 0; grid-row: span 2; }
}

@media (max-width: 640px) {
  .topbar-info .hide-sm { display: none; }
  .brand-sub { display: none; }
  .services { grid-template-columns: 1fr; }
  .services .service { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .services .service:last-child { border-bottom: 0 !important; }
  .stack-grid { grid-template-columns: 1fr; }
  .map iframe { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-readouts dd { font-size: .8rem; }
  .card { padding: 1.5rem; }
  .stats li { padding: 1.25rem 1rem; }
}

/* ---------- Reference project (Mochovce 3 & 4) ---------- */
.ref-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ref-side { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.ref-panel { background: var(--surface); border: 1px solid rgba(0, 210, 255, .25); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 30px rgba(0, 210, 255, .05); }
.unit { padding: 1.25rem; border-bottom: 1px solid var(--border); }
.unit-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.unit-name { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; color: var(--text); letter-spacing: .06em; }
.unit p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.ref-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.ref-facts div { padding: 1rem 1.25rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .25rem; }
.ref-facts div + div { border-left: 1px solid var(--border); }
.ref-facts dd { margin: 0; font-family: var(--mono); font-size: 1.15rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.ref-facts dt { font-size: .75rem; color: var(--muted); line-height: 1.35; }
.ref-note { padding: 1.1rem 1.25rem; border: 1px solid rgba(16, 185, 129, .3); background: rgba(16, 185, 129, .06); border-radius: var(--r-lg); font-size: .9rem; color: var(--text-2); line-height: 1.6; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--secondary), var(--primary) 45%, var(--tertiary)); opacity: .6; }
.tl-item { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; gap: .25rem 1rem; padding: 0 0 1.5rem 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-deep); border: 2px solid var(--secondary); }
.tl-u::before { border-color: var(--primary); }
.tl-now::before { background: var(--tertiary); border-color: var(--tertiary); box-shadow: 0 0 10px var(--tertiary); animation: pulse 2.4s ease-in-out infinite; }
.tl-date { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--primary); letter-spacing: .02em; padding-top: 1px; }
.tl-dp .tl-date { color: var(--secondary); }
.tl-now .tl-date { color: var(--tertiary); }
.tl-item h3 { font-size: .98rem; font-weight: 600; letter-spacing: 0; margin-bottom: .2rem; }
.tl-item p { font-size: .875rem; color: var(--muted); line-height: 1.55; }

@media (max-width: 960px) {
  .ref-grid { grid-template-columns: 1fr; }
  .ref-side { position: static; }
}
@media (max-width: 640px) {
  .tl-item { grid-template-columns: 1fr; }
  .ref-facts { grid-template-columns: 1fr; }
  .ref-facts div + div { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- Legacy DCS (SPPA-T2000) panel ---------- */
.legacy {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem 3rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface); border: 1px solid rgba(245, 158, 11, .3); border-radius: var(--r-lg);
}
.legacy .label { color: var(--warning); }
.legacy h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin: .75rem 0 .9rem; }
.legacy-text > p { color: var(--muted); font-size: .95rem; }
.legacy-cta { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.25rem !important; color: var(--text-2) !important; font-weight: 500; }
.legacy-cta .icon { color: var(--primary); width: 20px; height: 20px; margin-top: 2px; }
.legacy-items { margin: 0; display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; align-self: start; }
.legacy-items div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1rem 1.25rem; }
.legacy-items div + div { border-top: 1px solid var(--border); }
.legacy-items dt { font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--warning); padding-top: 2px; }
.legacy-items dd { margin: 0; font-size: .9rem; color: var(--text-2); line-height: 1.55; }
@media (max-width: 960px) { .legacy { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .legacy-items div { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- Partners ---------- */
.partners { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.partners-head h3 { font-size: 1.4rem; margin: .6rem 0 .4rem; }
.partners-head p { color: var(--muted); font-size: .95rem; }
.partner-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.partner {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  color: var(--text-2); text-decoration: none !important;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.partner:hover { border-color: rgba(0, 210, 255, .35); background: var(--surface-2); box-shadow: 0 0 16px rgba(0, 210, 255, .08); }
.partner .avatar { width: 46px; height: 46px; font-size: .9rem; }
.partner-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.partner-name { color: var(--text); font-weight: 600; font-size: 1rem; }
.partner-meta { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .03em; margin-top: .15rem; }
.partner-arrow { color: var(--primary); transform: rotate(-45deg); opacity: .6; transition: opacity .2s; }
.partner:hover .partner-arrow { opacity: 1; }

@media (max-width: 760px) { .partner-list { grid-template-columns: 1fr; } }
