/* ============================================================
   Glass Service Petrović — 2030 redesign
   Dark glassmorphism · brand cyan #2fc1ec · brand red #ed1b2f
   ============================================================ */

:root {
  --bg: #070b12;
  --bg-2: #0b1019;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf1f8;
  --muted: #97a5b5;
  --cyan: #2fc1ec;
  --cyan-soft: rgba(47, 193, 236, 0.14);
  --red: #ed3b50;
  --red-soft: rgba(237, 59, 80, 0.12);
  --grad: linear-gradient(100deg, #2fc1ec 0%, #6ee0ff 45%, #ed3b50 130%);
  --radius: 20px;
  --radius-sm: 12px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --header-h: 76px;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #6ee0ff; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }

.container { width: min(1160px, 92%); margin-inline: auto; }

section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.section-band {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- background FX ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 800px at 75% -10%, #0e1826 0%, var(--bg) 55%); }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.blob-cyan { width: 560px; height: 560px; background: rgba(47, 193, 236, 0.16); top: -180px; right: -120px; animation: drift 22s ease-in-out infinite alternate; }
.blob-red { width: 480px; height: 480px; background: rgba(237, 27, 47, 0.10); bottom: -160px; left: -140px; animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width 80ms linear; }

/* ---------- header ---------- */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(7, 11, 18, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
#header.scrolled { background: rgba(7, 11, 18, 0.82); border-bottom-color: var(--border); }

.nav-wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand-logo { height: 44px; width: auto; }

#nav { margin-left: auto; }
#nav ul { display: flex; gap: 6px; list-style: none; }
#nav a {
  display: block; padding: 9px 16px; border-radius: 999px;
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
#nav a:hover { color: var(--text); background: var(--surface-2); }
#nav a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }

.nav-cta {
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  color: #04222e; background: var(--cyan);
  box-shadow: 0 0 24px rgba(47, 193, 236, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(47, 193, 236, 0.55); color: #04222e; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  color: #04222e; background: var(--grad); background-size: 150% 100%;
  box-shadow: 0 8px 30px rgba(47, 193, 236, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(47, 193, 236, 0.5); color: #04222e; background-position: 40% 0; }
.btn-ghost {
  color: var(--text); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); min-height: 92vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

.est-badge {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 28px; position: relative;
}
.est-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-head); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted); line-height: 1;
}
.est-year {
  font-family: var(--font-head); font-weight: 700;
  font-size: 2.1rem; line-height: 0.95; letter-spacing: 0.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(47, 193, 236, 0.35));
}
.est-sep {
  width: 1px; height: 38px;
  background: linear-gradient(180deg, transparent, var(--cyan) 30%, var(--red) 75%, transparent);
  opacity: 0.75;
}
.est-place {
  display: grid; gap: 3px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  color: var(--text); line-height: 1.15;
}
.est-place em {
  font-style: normal; font-family: var(--font-body); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}

.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; margin-bottom: 22px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 54ch; margin-bottom: 34px; }
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: clamp(24px, 4vw, 56px); }
.hero-stats dt { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats dd { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

.hero-visual { position: relative; }
.hero-glow {
  position: absolute; inset: 8% 4%;
  background: radial-gradient(closest-side, rgba(47, 193, 236, 0.28), transparent 70%);
  filter: blur(30px); z-index: 0;
  animation: heroGlow 6s ease-in-out infinite alternate;
}
@keyframes heroGlow { to { transform: scale(1.08); opacity: 0.75; } }
.hero-img { position: relative; z-index: 1; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- section head ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
.section-sub { color: var(--muted); margin-top: 16px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.about-grid.alt { grid-template-columns: 0.9fr 1.1fr; margin-bottom: 0; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text p strong { color: var(--text); }
.about-sub { font-size: 1.5rem; margin-bottom: 18px; }

.feature-list { list-style: none; margin-top: 30px; display: grid; gap: 18px; }
.feature-list li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-list li:hover { border-color: rgba(47, 193, 236, 0.4); transform: translateX(6px); }
.feature-ico {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 10px; font-size: 1.1rem;
  background: var(--cyan-soft); color: var(--cyan); border: 1px solid rgba(47, 193, 236, 0.3);
}
.feature-list h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature-list p { font-size: 0.94rem; margin: 0; }

.glass-frame {
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
  background: var(--surface);
}
img.glass-frame { padding: 10px; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 193, 236, 0.10), transparent 45%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(47, 193, 236, 0.45); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.card:hover::before { opacity: 1; }
.card-ico { height: 62px; width: auto; margin-bottom: 20px; filter: drop-shadow(0 6px 16px rgba(47, 193, 236, 0.3)); }
.card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card p strong { color: var(--text); }

/* ---------- logo marquee ---------- */
.logo-marquee {
  overflow: hidden; position: relative; padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track { display: flex; gap: 24px; width: max-content; animation: marquee 36s linear infinite; }
.logo-marquee.reverse .marquee-track { animation-direction: reverse; }
.logo-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track img {
  height: 84px; width: 190px; object-fit: contain;
  background: #fff; border-radius: var(--radius-sm);
  padding: 14px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s, border-color 0.3s;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(237, 59, 80, 0.45); }
.why-card > img {
  width: 100%; height: 170px; object-fit: contain;
  padding: 30px 60px;
  background: radial-gradient(closest-side, rgba(47, 193, 236, 0.14), transparent 85%);
  opacity: 0.9;
}
.why-body { padding: 22px 24px 26px; }
.why-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-body p { color: var(--muted); font-size: 0.94rem; }
.why-body strong { color: var(--text); }

/* ---------- gallery ---------- */
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-head); font-weight: 500; font-size: 0.92rem;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  transition: all 0.25s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { color: #04222e; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 22px rgba(47, 193, 236, 0.4); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-item {
  border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--border); position: relative;
  transition: opacity 0.35s, transform 0.35s, border-color 0.3s;
}
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s; }
.g-item:hover img { transform: scale(1.06); }
.g-item:hover { border-color: rgba(47, 193, 236, 0.5); }
.g-item.hidden { display: none; }
.g-item.fade { opacity: 0; transform: scale(0.96); }

/* lightbox */
#lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px);
  margin: auto;
}
#lightbox::backdrop { background: rgba(4, 7, 12, 0.88); backdrop-filter: blur(8px); }
#lightbox img { max-height: 84vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lb-close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: rgba(10, 16, 25, 0.9); color: var(--text); font-size: 1.5rem; cursor: pointer;
  transition: background 0.2s;
}
.lb-close:hover { background: var(--red); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px;
}
.info-ico { font-size: 1.3rem; line-height: 1.4; }
.info-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.info-card p { color: var(--muted); font-size: 0.9rem; }
.map-wrap { grid-column: 1 / -1; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  backdrop-filter: blur(10px);
  display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--text);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(151, 165, 181, 0.6); }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47, 193, 236, 0.18);
}
.form-status { min-height: 1.4em; font-size: 0.92rem; text-align: center; }
.form-status.ok { color: #5ee6a8; }
.form-status.err { color: var(--red); }

/* ---------- footer ---------- */
#footer { border-top: 1px solid var(--border); background: rgba(5, 8, 13, 0.7); backdrop-filter: blur(10px); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 36px;
  padding: clamp(48px, 6vw, 72px) 0 36px;
}
.f-logo { height: 52px; width: auto; margin-bottom: 16px; }
.f-brand p { color: var(--muted); font-size: 0.92rem; max-width: 32ch; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border-strong);
  color: var(--text); font-weight: 700;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.social a:hover { background: var(--cyan); color: #04222e; border-color: var(--cyan); transform: translateY(-2px); }
#footer h4 { font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.04em; }
.f-links ul { list-style: none; display: grid; gap: 8px; }
.f-links a, .f-contact p, .f-hours p { color: var(--muted); font-size: 0.92rem; }
.f-links a:hover { color: var(--cyan); }
.f-contact a { color: var(--muted); } .f-contact a:hover { color: var(--cyan); }
.copyright { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; color: var(--muted); font-size: 0.88rem; }

/* ---------- back to top ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1100;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--cyan); color: #04222e; font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 8px 26px rgba(47, 193, 236, 0.4);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { color: #04222e; }

/* ---------- SVG ikonice ---------- */
.ico {
  width: 24px; height: 24px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-16 { width: 17px; height: 17px; vertical-align: -3px; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }
.info-ico { color: var(--cyan); }
.info-ico .ico { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(47, 193, 236, 0.5)); }
.feature-ico .ico { width: 22px; height: 22px; }
.back-top .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.social .ico { width: 19px; height: 19px; }
.social a:hover .ico { stroke: #04222e; }

/* ---------- brojevi usluga ---------- */
.card-num {
  display: inline-block; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 3.2rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 18px rgba(47, 193, 236, 0.35));
}
.card-num::after {
  content: ""; position: absolute; left: 2px; right: auto; bottom: -8px;
  width: 44px; height: 3px; border-radius: 2px;
  background: var(--grad); opacity: 0.6;
}

/* ---------- why-art ilustracije ---------- */
.why-art {
  height: 190px; padding: 12px 10px 0;
  display: grid; place-items: center;
  background: radial-gradient(closest-side at 50% 60%, rgba(47, 193, 236, 0.13), transparent 90%);
}
.why-art svg { width: 100%; height: 100%; }
.why-art .orbit {
  transform-origin: 160px 95px;
  animation: orbitSpin 32s linear infinite;
}
.why-card:hover .orbit { animation-duration: 9s; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.why-art .twinkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 1; }
}

/* ---------- konfigurator ---------- */
.cfg {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  backdrop-filter: blur(10px);
  max-width: 880px; margin: 0 auto clamp(40px, 6vw, 64px);
}
.cfg fieldset { border: 0; }

.cfg-steps {
  display: flex; justify-content: center; gap: clamp(18px, 6vw, 64px);
  list-style: none; margin-bottom: clamp(28px, 4vw, 40px);
  position: relative;
}
.cfg-steps .step { display: grid; justify-items: center; gap: 8px; position: relative; }
.step-dot {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; font-family: var(--font-head); font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--muted);
  transition: all 0.3s;
}
.step-label { font-size: 0.82rem; color: var(--muted); font-weight: 600; transition: color 0.3s; }
.step.active .step-dot {
  background: var(--cyan); color: #04222e; border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(47, 193, 236, 0.5);
}
.step.active .step-label { color: var(--text); }
.step.done .step-dot { background: rgba(94, 230, 168, 0.15); color: #5ee6a8; border-color: rgba(94, 230, 168, 0.4); }

.cfg-legend {
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem;
  margin-bottom: 18px; color: var(--text);
  display: block; width: 100%;
}
.cfg-panel > .cfg-legend:not(:first-child), .cfg-panel > p.cfg-legend { margin-top: 28px; }

.opt-grid { display: grid; gap: 12px; margin-bottom: 24px; }
.opt-4 { grid-template-columns: repeat(4, 1fr); }
.opt-6 { grid-template-columns: repeat(3, 1fr); }
.opt-card {
  position: relative; display: grid; justify-items: center; gap: 10px;
  padding: 18px 10px 14px; text-align: center; cursor: pointer;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 0.86rem; font-weight: 600;
  transition: all 0.22s;
}
.opt-card:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-2px); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-ico {
  width: 44px; height: 44px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: all 0.22s;
}
.opt-card:has(input:checked) {
  border-color: var(--cyan); color: var(--text);
  background: var(--cyan-soft);
  box-shadow: 0 0 0 1px var(--cyan), 0 8px 26px rgba(47, 193, 236, 0.22);
}
.opt-card:has(input:checked) .opt-ico { color: var(--cyan); filter: drop-shadow(0 0 10px rgba(47, 193, 236, 0.6)); }
.opt-card:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }

.cfg .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cfg .form-row-3 { grid-template-columns: 1.2fr 1.2fr 0.8fr; }
.cfg label { display: grid; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 18px; }
.cfg input, .cfg textarea, .cfg select {
  font: inherit; color: var(--text);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical; width: 100%;
}
.cfg select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232fc1ec' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
.cfg select option { background: #0b1019; color: var(--text); }
.cfg select:disabled { opacity: 0.45; cursor: not-allowed; }
.cfg input::placeholder, .cfg textarea::placeholder { color: rgba(151, 165, 181, 0.6); }
.cfg input:focus, .cfg textarea:focus, .cfg select:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47, 193, 236, 0.18);
}
.cfg input.invalid, .cfg select.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(237, 59, 80, 0.15); }

.upload-zone {
  display: grid !important; justify-items: center; gap: 6px;
  padding: 28px 20px !important; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--border-strong) !important; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18); transition: all 0.22s;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--cyan) !important; background: var(--cyan-soft); }
.ico-up { width: 34px; height: 34px; color: var(--cyan); stroke-width: 1.6; }
.up-title { font-weight: 600; } .up-title em { color: var(--muted); font-style: normal; font-weight: 400; }
.up-hint { font-size: 0.8rem; color: var(--muted); font-weight: 400; }

.photo-preview {
  display: flex; align-items: center; gap: 14px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; margin-bottom: 18px;
}
.photo-preview img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.pp-meta { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pp-meta span { font-size: 0.86rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-remove {
  background: none; border: 1px solid var(--border-strong); color: var(--red);
  border-radius: 999px; padding: 5px 14px; font-size: 0.8rem; cursor: pointer; font-weight: 600;
  transition: all 0.2s;
}
.pp-remove:hover { background: var(--red-soft); border-color: var(--red); }

.cfg-summary {
  border: 1px solid rgba(47, 193, 236, 0.3); border-radius: var(--radius-sm);
  background: var(--cyan-soft); padding: 14px 18px;
  font-size: 0.88rem; color: var(--text); line-height: 1.8;
}
.cfg-summary:empty { display: none; }
.cfg-summary b { color: var(--cyan); }

.cfg-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 26px; }
.cfg-nav #cfgNext, .cfg-nav #cfgSubmit { margin-left: auto; }
.btn-nav { display: inline-flex; align-items: center; gap: 9px; }

/* kontakt info red ispod konfiguratora */
#kontakt .contact-info {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 28px;
}
.info-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px;
}
.info-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.info-card p { color: var(--muted); font-size: 0.9rem; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

.form-status { min-height: 1.4em; font-size: 0.92rem; text-align: center; margin-top: 14px; }
.form-status.ok { color: #5ee6a8; }
.form-status.err { color: var(--red); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img, .blob, .pulse-dot, .marquee-track, .hero-glow, .orbit, .twinkle { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #kontakt .contact-info { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .about-grid, .about-grid.alt { grid-template-columns: 1fr; }
  .about-grid.alt .about-media { order: -1; }
  .why-grid { grid-template-columns: 1fr; }
  .opt-4 { grid-template-columns: repeat(2, 1fr); }
  .opt-6 { grid-template-columns: repeat(2, 1fr); }
  .cfg .form-row-3 { grid-template-columns: 1fr; }
  .step-label { font-size: 0.72rem; }

  .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  #nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    background: rgba(7, 11, 18, 0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  #nav.open { max-height: 340px; }
  #nav ul { flex-direction: column; gap: 2px; padding: 14px 6%; }
  #nav a { padding: 13px 16px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-item img { aspect-ratio: 1 / 1; }
  .back-top {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 46px; height: 46px;
  }
  .form-row, .cfg .form-row { grid-template-columns: 1fr; }
  #kontakt .contact-info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .marquee-track img { height: 68px; width: 150px; }
  .cfg-nav { flex-direction: column-reverse; }
  .cfg-nav .btn-nav { width: 100%; justify-content: center; }
  .cfg-nav #cfgNext:first-child { margin-left: 0; }
}
