/* ============================================================
   Duo alarm, s.r.o. — Design system v2
   Dark navy + bold brand gold (#F5B700). Inspired references:
   electrician/security dark-yellow. Hand-crafted, no framework.
   Type: Archivo (display) + Hanken Grotesk (body).
   ============================================================ */

:root {
  /* Brand */
  --gold: #f5b700;
  --gold-bright: #ffc933;
  --gold-deep: #cf9b00;
  --on-gold: #15130b;
  --gold-glow: rgba(245, 183, 0, 0.18);

  /* Surfaces — cool near-black navy */
  --bg: #0a0e14;
  --bg-2: #0d121a;
  --surface: #121823;
  --surface-2: #18202d;
  --surface-3: #202a39;
  --border: #28323f;
  --border-soft: #1c2531;

  /* Text */
  --text: #f4f6f9;
  --text-2: #c5cdd8;
  --muted: #8794a3;

  /* Type */
  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms;
  --t: 260ms;

  --shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.78);
  --shadow-gold: 0 16px 44px -16px rgba(245, 183, 0, 0.4);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* prevents horizontal scroll without breaking position: sticky */
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--on-gold); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.16; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.22; }
h4 { line-height: 1.3; }
p { color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }
.gold { color: var(--gold); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.section { padding-block: clamp(4.2rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bg-2 { background: var(--bg-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--center { justify-content: center; }

.section-head { max-width: 680px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.1rem; font-size: 1.08rem; }
.section-head--center p { margin-inline: auto; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em;
  padding: 0.95rem 1.6rem; border-radius: 999px; min-height: 50px; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-fast) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t), color var(--t);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease); flex-shrink: 0; }
.btn-gold, .btn-gold:link, .btn-gold:visited { background: var(--gold); color: var(--on-gold); box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: var(--gold-bright); color: var(--on-gold); transform: translateY(-2px); }
.btn-gold:active, .btn-gold:focus { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-dark { background: var(--on-gold); color: var(--gold); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
/* secondary button used on the gold band — outlined dark so it stays visible on gold */
.btn-on-gold { background: transparent; color: var(--on-gold); border: 1.6px solid rgba(21,19,11,0.45); }
.btn-on-gold:hover { background: var(--on-gold); color: var(--gold); border-color: var(--on-gold); transform: translateY(-2px); }
.btn-block { width: 100%; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: 0.96rem;
}
.arrow-link svg { width: 17px; height: 17px; transition: transform var(--t) var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ---------- Gold circle icon (signature) ---------- */
.ic-gold {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--gold); color: var(--on-gold);
  box-shadow: 0 8px 22px -10px rgba(245,183,0,.6);
  transition: transform var(--t) var(--spring);
}
.ic-gold svg { width: 27px; height: 27px; }
.ic-ring {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--surface-2); color: var(--gold);
  border: 1px solid var(--border);
}
.ic-ring svg { width: 24px; height: 24px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background var(--t), border-color var(--t), backdrop-filter var(--t); border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(10, 14, 20, 0.85); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--border-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 78px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand .logo-svg { height: 46px; width: auto; display: block; transform-origin: left center; transition: transform var(--t) var(--ease); }
.brand:hover .logo-svg { transform: scale(1.06); }

.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links > li > a, .nav-trigger { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.9rem; border-radius: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.94rem; color: var(--text-2); transition: color var(--t), background var(--t); white-space: nowrap; }
.nav-links > li > a:hover, .nav-trigger:hover, .nav-links > li > a.active { color: var(--text); background: var(--surface-2); }
.nav-links > li > a.active { color: var(--gold); }
.nav-trigger svg { width: 14px; height: 14px; transition: transform var(--t); }

.has-menu { position: relative; }
.dropdown { position: absolute; top: calc(100% + 10px); left: 0; min-width: 270px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t); }
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-menu:hover .nav-trigger svg { transform: rotate(180deg); }
.dropdown a { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.8rem; border-radius: 10px; color: var(--text-2); font-size: 0.93rem; font-weight: 500; transition: background var(--t), color var(--t); }
.dropdown a:hover { background: var(--surface-2); color: var(--text); }
.dropdown a .di { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; color: var(--gold); flex-shrink: 0; }
.dropdown a .di svg { width: 18px; height: 18px; }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.nav-phone { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-weight: 600; font-size: 0.93rem; color: var(--text); transition: color var(--t); }
.nav-phone:hover { color: var(--gold); }
.nav-phone svg { width: 17px; height: 17px; color: var(--gold); }

.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border); align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: background var(--t); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t) var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 78px 0 0 0; z-index: 90; background: var(--bg); padding: 1.5rem clamp(1.1rem, 4vw, 2rem) 2.5rem; overflow-y: auto; transform: translateX(100%); transition: transform var(--t) var(--ease); visibility: hidden; }
body.menu-open .mobile-menu { transform: translateX(0); visibility: visible; }
.mobile-menu a:not(.btn) { display: block; padding: 0.9rem 0.4rem; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; border-bottom: 1px solid var(--border-soft); color: var(--text-2); }
.mobile-menu a:not(.btn):hover, .mobile-menu a:not(.btn).active { color: var(--gold); }
.mobile-menu .mm-group { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 1.4rem 0.4rem 0.3rem; font-family: var(--font-head); font-weight: 700; }
.mobile-menu .mm-sub { padding-left: 1.2rem; font-size: 1.02rem; }
.mobile-menu .btn { margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(8.5rem, 16vw, 12rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-glow { position: absolute; z-index: 0; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; top: -22%; right: -12%; background: radial-gradient(circle, var(--gold-glow) 0%, transparent 64%); filter: blur(8px); animation: float 16s var(--ease) infinite alternate; pointer-events: none; }
@keyframes float { to { transform: translate3d(-34px, 34px, 0) scale(1.08); } }
.hero-content { position: relative; z-index: 2; }
.hero h1 { max-width: 13ch; }
.hero .lead { max-width: 46ch; margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero-tagline { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.3rem; display: inline-flex; align-items: center; gap: 0.6rem; }
.hero-tagline .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--gold); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245,183,0,0.5); } 70% { box-shadow: 0 0 0 11px rgba(245,183,0,0); } 100% { box-shadow: 0 0 0 0 rgba(245,183,0,0); } }

/* Hero media (photo + floating quote card, ref idea-1) */
.hero-media { position: relative; z-index: 1; }
.hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 4.4; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 40%, rgba(10,14,20,0.5) 100%); }
.hero-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent, var(--gold-glow) 50%, transparent); height: 38%; animation: scan 5.5s var(--ease) infinite; opacity: 0.7; }
@keyframes scan { 0% { transform: translateY(-110%); } 100% { transform: translateY(280%); } }
.hero-badge { position: absolute; left: -22px; bottom: 26px; z-index: 2; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.95rem 1.3rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.22rem; box-shadow: var(--shadow); transition: border-color var(--t), transform var(--t) var(--ease); }
.hero-badge:hover { border-color: var(--gold); transform: translateY(-2px); }
.hero-badge-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 0.15rem; }
.hero-badge-stars svg { width: 19px; height: 19px; }
.hero-badge b { font-family: var(--font-head); font-size: 1.02rem; color: var(--text); }
.hero-badge span { font-size: 0.82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.32rem; }
.hero-badge span svg { width: 13px; height: 13px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; margin-top: clamp(2.6rem, 5vw, 4rem); }
.stat { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.3rem); }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.1rem, 4vw, 3rem); color: var(--gold); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.stat-num .unit { font-size: 0.46em; color: var(--text); margin-left: 0.18em; font-weight: 700; white-space: nowrap; }
.stat-label { margin-top: 0.55rem; font-size: 0.92rem; line-height: 1.3; color: var(--muted); }
/* 2×2 stats when placed in a half-width split (avoids cramped 4-up on desktop) */
@media (min-width: 1025px) { .stats--2col { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Feature / service cards ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature { position: relative; padding: 1.7rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); transition: border-color var(--t), transform var(--t) var(--ease); }
.feature:hover { border-color: var(--border); transform: translateY(-5px); }
.feature:hover .ic-gold { transform: scale(1.08) rotate(-4deg); }
.feature .ic-gold { margin-bottom: 1.2rem; }
.feature h3 { font-size: 1.14rem; margin-bottom: 0.5rem; }
.feature p { font-size: 0.95rem; }
.feature-step {
  position: absolute; top: 1.2rem; right: 1.5rem; font-family: var(--font-head); font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: var(--gold); opacity: .22; transition: opacity var(--t);
}
.feature:hover .feature-step { opacity: .9; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { position: relative; display: flex; flex-direction: column; padding: 1.9rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t), transform var(--t) var(--ease), box-shadow var(--t); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(135deg, var(--gold), transparent 42%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity var(--t); pointer-events: none; }
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { opacity: 1; }
.card:hover .ic-gold { transform: scale(1.08) rotate(-4deg); }
.card .ic-gold { margin-bottom: 1.3rem; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.96rem; flex: 1; }
.card .arrow-link { margin-top: 1.5rem; }

/* ---------- Split / media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
/* sticky split: one column stays fixed while the other scrolls past (desktop only) */
.sticky-split { align-items: start; }
@media (min-width: 861px) { .sticky-split .sticky-col { position: sticky; top: 100px; align-self: start; } }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.split-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.split-media .scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent, var(--gold-glow) 50%, transparent); height: 40%; animation: scan 5s var(--ease) infinite; opacity: 0.6; }
.split-body h2 { margin-bottom: 1.2rem; }
.split-body p + p { margin-top: 1rem; }
.check-list { margin-top: 1.7rem; display: grid; gap: 0.95rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--text-2); }
.check-list .ci { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-glow); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.check-list .ci svg { width: 16px; height: 16px; }

/* aside info card (service detail) */
.aside-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.6rem); }

.map-card { display: flex; align-items: center; }
.cz-map { width: 100%; height: auto; display: block; overflow: visible; }
.cz-map .kraj { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.2; transition: fill var(--t); }
.cz-map .kraj--active { fill: var(--gold); filter: drop-shadow(0 0 16px rgba(245, 183, 0, .4)); }
.cz-map .kraj-line { fill: none; stroke: var(--border); stroke-width: 1; pointer-events: none; }
.aside-card .ic-gold { margin-bottom: 1.4rem; }
.aside-card h3 { margin-bottom: 0.8rem; }

/* ---------- Tabs (chytrá domácnost) ---------- */
.tabs { margin-top: 1rem; }
.tab-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.tab-btn { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; padding: 0.7rem 1.2rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); display: inline-flex; align-items: center; gap: 0.5rem; transition: all var(--t) var(--ease); }
.tab-btn svg { width: 18px; height: 18px; }
.tab-btn:hover { color: var(--text); border-color: var(--gold); }
.tab-btn[aria-selected="true"] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.5s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tab-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }

/* segmented chips (property type) */
.segmented { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 22px; margin: 1.8rem 0 1.4rem; }
.segmented button { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; padding: 0.6rem 1.15rem; border-radius: 999px; color: var(--text-2); transition: all var(--t); white-space: nowrap; }
.segmented button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }
.seg-note { color: var(--text-2); font-size: 1.05rem; min-height: 3em; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { position: relative; padding: 1.9rem 1.6rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; color: var(--on-gold); background: var(--gold); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.3rem; }
.step h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.93rem; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.review { padding: 2rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); display: flex; flex-direction: column; }
.review .quote { width: 32px; opacity: 0.45; margin-bottom: 1rem; }
.review .stars { display: flex; gap: 3px; margin-bottom: 1rem; color: var(--gold); }
.review .stars svg { width: 18px; height: 18px; }
.review p { color: var(--text-2); font-size: 0.98rem; flex: 1; }
.review .who { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.8rem; }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--on-gold); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.review .who b { display: block; color: var(--text); font-size: 0.97rem; }
.review .who span { font-size: 0.82rem; color: var(--muted); }
.review-src { display: inline-flex; align-items: center; gap: 0.32rem; font-size: 0.82rem; color: var(--muted); transition: color var(--t); }
.review-src:hover { color: var(--gold); }
.review-src svg { width: 13px; height: 13px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); margin-bottom: 0.9rem; background: var(--surface); overflow: hidden; transition: border-color var(--t); }
.faq details[open] { border-color: var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem; font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; transition: transform var(--t) var(--ease); }
.faq summary .plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq summary .plus::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq details[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq .faq-body { padding: 0 1.5rem 1.4rem; }
.faq .faq-body p { color: var(--text-2); }

/* ---------- Partners marquee ---------- */
.partners-wrap { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners { display: flex; gap: 3.5rem; width: max-content; animation: marquee 26s linear infinite; }
.partners:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--muted); letter-spacing: 0.01em; white-space: nowrap; transition: color var(--t); }
.partner:hover { color: var(--gold); }

/* ---------- Gold band (signature, ref idea-1) ---------- */
.band-gold { position: relative; overflow: hidden; background: var(--gold); color: var(--on-gold); border-radius: var(--radius-lg); padding: clamp(2.6rem, 6vw, 4.5rem); }
.band-gold::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% -10%, rgba(255,255,255,0.35), transparent 50%); pointer-events: none; }
/* dark circuit-trace decoration on the gold band (subtle texture, behind content) */
.band-gold::after { content: ""; position: absolute; inset: 0; z-index: 0; background: url(../assets/img/spoje-dark.svg) no-repeat center / cover, url(../assets/img/spoje-dark-flip.svg) no-repeat center / cover; opacity: 0.07; pointer-events: none; }
.band-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.band-gold .eyebrow { color: var(--on-gold); }
.band-gold .eyebrow::before { background: var(--on-gold); }
.band-gold h2 { color: var(--on-gold); max-width: 16ch; }
.band-gold p { color: rgba(21,19,11,0.78); margin-top: 1rem; max-width: 44ch; font-weight: 500; }
.band-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* quote card inside band */
.quote-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.2rem); box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); }
.quote-card h3 { color: var(--text); margin-bottom: 0.4rem; }
.quote-card > p { color: var(--text-2); font-size: 0.92rem; margin-bottom: 1.3rem; }

/* ---------- CTA band (dark) ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.6rem, 6vw, 4.5rem); background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% -20%, var(--gold-glow), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { max-width: 50ch; margin: 1rem auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.05rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-2); font-family: var(--font-head); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea { width: 100%; padding: 0.85rem 1rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: 0.97rem; transition: border-color var(--t), box-shadow var(--t); min-height: 50px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.consent a { color: var(--gold); text-decoration: underline; }
.form-note { font-size: 0.84rem; color: var(--muted); }
.form-success { color: var(--gold); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { display: grid; gap: 1.3rem; margin-top: 2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .ic-ring { width: 48px; height: 48px; }
.info-item .ic-ring svg { width: 22px; height: 22px; }
.info-item b { display: block; font-family: var(--font-head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.25rem; }
.info-item a, .info-item span { color: var(--text); }
.info-item a:hover { color: var(--gold); }
.info-item span a { text-decoration: underline; text-underline-offset: 2px; }
.map-embed { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* ---------- Realizace ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.proj { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); background: var(--surface); aspect-ratio: 4 / 3.6; display: flex; flex-direction: column; justify-content: flex-end; transition: transform var(--t) var(--ease), border-color var(--t); }
.proj:hover { transform: translateY(-6px); border-color: var(--border); }
.proj-media { position: absolute; inset: 0; z-index: 0; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.proj:hover .proj-media img { transform: scale(1.07); }
.proj-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,0) 30%, rgba(10,14,20,0.94) 100%); }
.proj-body { position: relative; z-index: 1; padding: 1.6rem; }
.proj-tags { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.proj-tag { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 6px; }
.proj-tag.year { background: var(--gold); color: var(--on-gold); }
.proj-tag.cat { background: rgba(255,255,255,0.1); color: var(--text); backdrop-filter: blur(4px); }
.proj-body h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.proj-loc { font-size: 0.9rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 0.4rem; }
.proj-loc svg { width: 15px; height: 15px; color: var(--gold); }
.proj-link { position: absolute; inset: 0; z-index: 2; }

/* gallery (detail page) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery button { padding: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-soft); aspect-ratio: 4/3; cursor: pointer; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t) var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* image shown whole (transparent product line-up floats on the card) */
.split-media.media-contain { background: var(--surface-2); }
.split-media.media-contain img { object-fit: contain; aspect-ratio: 16 / 9; padding: 1.4rem; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,8,12,0.95); display: none; place-items: center; padding: 2rem; }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; display: grid; place-items: center; gap: 0.9rem; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius-sm); }
.lightbox-count { font-family: var(--font-head); font-size: 0.85rem; color: var(--text-2); letter-spacing: 0.05em; }
.lightbox-close { position: absolute; top: 1.4rem; right: 1.6rem; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background var(--t), color var(--t); }
.lightbox-nav:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.lightbox-nav.prev { left: 1.6rem; }
.lightbox-nav.next { right: 1.6rem; }
.lightbox-nav svg, .lightbox-close svg { width: 24px; height: 24px; }
.lightbox-nav[hidden] { display: none; }
@media (max-width: 580px) { .lightbox-nav.prev { left: 0.6rem; } .lightbox-nav.next { right: 0.6rem; } .lightbox-close { top: 0.8rem; right: 0.8rem; } }

/* detail meta */
.detail-meta { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 1.8rem; }
.detail-meta .m b { font-family: var(--font-head); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); display: block; margin-bottom: 0.2rem; }
.detail-meta .m span { font-size: 1.05rem; color: var(--text); font-weight: 600; }

/* owner contact card */
.owner-card { display: flex; align-items: center; gap: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; }
.owner-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.owner-card b { font-family: var(--font-head); font-size: 1.1rem; }
.owner-card .owner-role { font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; color: var(--muted); }
.owner-card .owner-role::before { content: "·"; margin: 0 0.45rem; }
.owner-card .role { font-size: 0.88rem; color: var(--muted); margin: 0.25rem 0 0.6rem; }
.owner-card a:not(.btn) { display: block; color: var(--text); font-weight: 600; }
.owner-card a:not(.btn):hover { color: var(--gold); }

/* ---------- Certifikace ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.cert { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; transition: transform var(--t) var(--ease), border-color var(--t); }
.cert:hover { transform: translateY(-5px); border-color: var(--border); }
.cert-img { background: var(--bg-2); padding: 1.4rem; cursor: pointer; }
.cert-img img { width: 100%; height: 280px; object-fit: contain; border-radius: var(--radius-sm); }
.cert-body { padding: 1.5rem 1.7rem 1.8rem; display: flex; gap: 1rem; align-items: flex-start; }
.cert-body .ic-gold { width: 46px; height: 46px; }
.cert-body .ic-gold svg { width: 22px; height: 22px; }
.cert-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.cert-body p { font-size: 0.94rem; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding-top: clamp(8.5rem, 14vw, 11rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%); width: 80vw; max-width: 950px; height: 520px; background: radial-gradient(ellipse, var(--gold-glow), transparent 64%); z-index: -1; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 60ch; margin-top: 1.4rem; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.86rem; color: var(--muted); margin-bottom: 1.5rem; font-family: var(--font-head); font-weight: 500; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb svg { width: 14px; height: 14px; }

/* ---------- Notice (thank-you / 404) ---------- */
.notice { position: relative; min-height: 76vh; min-height: 76dvh; display: grid; place-items: center; text-align: center; padding-block: clamp(6rem, 13vw, 9rem) clamp(3rem, 7vw, 5rem); overflow: hidden; }
.notice::before { content: ""; position: absolute; top: 32%; left: 50%; transform: translate(-50%, -50%); width: 72vw; max-width: 720px; height: 520px; background: radial-gradient(ellipse, var(--gold-glow), transparent 66%); z-index: -1; }
.notice-inner { max-width: 660px; position: relative; }
.notice .graphic { width: clamp(150px, 28vw, 232px); height: auto; margin: 0 auto clamp(1.6rem, 4vw, 2.6rem); display: block; }
.notice .eyebrow { justify-content: center; }
.notice h1 { margin-bottom: 1.2rem; }
.notice p { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--text-2); max-width: 54ch; margin: 0 auto 2.2rem; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.notice .graphic .filament { animation: flicker 4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 0.5; } 48% { opacity: 0.5; } 50% { opacity: 0.12; } 52% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .notice .graphic .filament { animation: none; } }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 2.4rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 0.7rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { display: grid; gap: 0.7rem; margin: 1rem 0; }
.prose ul li { display: flex; gap: 0.7rem; color: var(--text-2); }
.prose ul li::before { content: ""; width: 7px; height: 7px; margin-top: 0.6rem; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.prose a { color: var(--gold); text-decoration: underline; }

/* ---------- Calculator callout (on service page) ---------- */
.calc-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 1.9rem); }
.calc-callout h3 { font-size: 1.18rem; margin-bottom: 0.35rem; }
.calc-callout p { font-size: 0.94rem; max-width: 48ch; }
.calc-callout .btn { flex-shrink: 0; }

/* ---------- Storage calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: start; }
.calc-form, .calc-result { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3.5vw, 2.2rem); }
.calc-field { margin-bottom: 1.7rem; }
.calc-field:last-child { margin-bottom: 0; }
.calc-label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; margin-bottom: 0.7rem; }
.calc-out { font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: 1.05rem; }
.calc-hint { font-size: 0.84rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.45; }
.calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--surface-3); outline: none; margin: 0.3rem 0; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); cursor: pointer; border: 3px solid var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.calc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); cursor: pointer; border: 3px solid var(--surface); }
.calc-range:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.calc-seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.calc-seg--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.calc-seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; padding: 0.6rem 0.85rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t); text-align: left; }
.calc-seg button small { font-weight: 500; font-size: 0.72rem; color: var(--muted); }
.calc-seg button:hover { border-color: var(--gold); color: var(--text); }
.calc-seg button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.calc-seg button[aria-pressed="true"] small { color: rgba(21,19,11,0.72); }
.calc-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.calc-quick button { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; padding: 0.55rem 1rem; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t); }
.calc-quick button:hover { border-color: var(--gold); color: var(--text); }
.calc-quick button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.calc-num { width: 84px; padding: 0.55rem 0.7rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: 0.95rem; }
.calc-num:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.calc-unit { color: var(--muted); font-size: 0.9rem; }
.calc-adv { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--bg-2); }
.calc-adv summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; }
.calc-adv summary::-webkit-details-marker { display: none; }
.calc-adv summary svg { width: 16px; height: 16px; color: var(--gold); transition: transform var(--t); }
.calc-adv[open] summary svg { transform: rotate(180deg); }
.calc-adv-body { padding: 0.2rem 1.1rem 1.2rem; }
.calc-check { margin-top: 0.6rem; }
.calc-result .eyebrow { margin-bottom: 0.4rem; }
.calc-big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.18; margin-bottom: 0.5rem; color: var(--text); }
.calc-big strong { color: var(--gold); }
.calc-disk { font-family: var(--font-head); font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.calc-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.calc-tips { display: grid; gap: 0.6rem; margin-bottom: 1.6rem; }
.calc-tips li { display: flex; gap: 0.6rem; font-size: 0.9rem; color: var(--text-2); }
.calc-tips li::before { content: ""; width: 6px; height: 6px; margin-top: 0.5rem; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.calc-note { font-size: 0.8rem; color: var(--muted); margin-top: 1.1rem; line-height: 1.5; }
@media (min-width: 861px) { .calc-result { position: sticky; top: 100px; } }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } .calc-result { order: -1; position: static; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); background: var(--bg-2); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand .brand { margin-bottom: 1.3rem; width: fit-content; }
.footer-brand p { font-size: 0.94rem; max-width: 34ch; }
.footer-contact { margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); font-weight: 500; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); }
.footer-col h4 { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { color: var(--text-2); font-size: 0.94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-legal { font-size: 0.88rem; color: var(--muted); font-style: normal; line-height: 1.8; }
.footer-legal b { color: var(--text-2); font-weight: 600; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border-soft); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.86rem; color: var(--muted); }
.footer-bottom a { color: var(--text-2); display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom a svg { width: 15px; height: 15px; }

/* ---------- Back-to-top button ---------- */
.to-top { position: fixed; right: clamp(1rem, 3vw, 1.7rem); bottom: clamp(1rem, 3vw, 1.7rem); z-index: 70; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; box-shadow: var(--shadow-gold); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity var(--t), transform var(--t) var(--ease), background var(--t), visibility var(--t); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-bright); transform: translateY(-3px); }
.to-top.on-gold { background: var(--on-gold); color: var(--gold); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.5); }
.to-top.on-gold:hover { background: #000; }
.to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity var(--t), visibility var(--t); } .to-top:hover { transform: none; } }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px) scale(0.985); transition: opacity 760ms var(--ease-out), transform 760ms var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-glow, .hero-scan, .split-media .scan, .hero-tagline .dot, .partners { animation: none !important; }
  .partners { transform: none; }
  .proj-media img, .gallery img { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats, .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .cards, .proj-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin-top: 1rem; }
  .band-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
}
/* collapse nav to hamburger before the links get cramped/wrap */
@media (max-width: 1040px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 860px) {
  .nav-actions .btn-gold { display: none; } /* CTA dostupné v hamburger menu */
  .split, .tab-split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .reviews { grid-template-columns: 1fr; }
  .gallery button:first-child { grid-column: span 2; }
}
@media (max-width: 580px) {
  .cards, .proj-grid, .stats, .features, .steps, .gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { margin-top: 2rem; }
  .gallery button:first-child { grid-column: span 1; }
  .hero-badge { left: 0; }
  .owner-card { flex-direction: column; text-align: center; }
  .band-gold { padding: 1.2rem; }
  .quote-card { padding: 1rem; }
}
