/* ==========================================================
   MARK REAL - hlavný štýl webu
   ========================================================== */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111418;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.1);
  --glass: rgba(10, 12, 15, 0.55);
  --text: #ffffff;
  --text-dim: #c7cdd3;
  --text-faint: #8a9099;
  --accent: #1ca9e0;
  --accent-dark: #0f7fac;
  --accent-soft: rgba(28, 169, 224, 0.15);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  --maxw: 1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

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

a { color: inherit; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

h1, h2, h3 { font-weight: 700; margin: 0 0 16px; letter-spacing: 0.5px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); text-transform: uppercase; }
p { color: var(--text-dim); margin: 0 0 16px; }

.section { padding: 100px 0; scroll-margin-top: 80px; position: relative; overflow: hidden; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }

/* ---------- Ambientné pozadie (jemné pohyblivé svetlá) ---------- */
.ambient-glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0; opacity: 0.35;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation: floatGlow 16s ease-in-out infinite;
}
.ambient-glow.g1 { width: 420px; height: 420px; top: -120px; left: -80px; animation-delay: 0s; }
.ambient-glow.g2 { width: 360px; height: 360px; bottom: -100px; right: -60px; animation-delay: -6s;
  background: radial-gradient(circle, #ffffff 0%, transparent 70%); opacity: 0.06; }
.section > .wrap { position: relative; z-index: 1; }
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.15); }
}

/* ---------- Scroll reveal anim ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: translateY(18px) scale(0.94); }
.reveal-scale.in-view { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ambient-glow { animation: none !important; }
  html { scroll-behavior: auto; }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn:hover::before { left: 130%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 0 0 rgba(28,169,224,0.5); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.hero-actions .btn-primary { animation: btnPulse 2.6s ease-in-out 1.6s infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(28,169,224,0.45); }
  50% { box-shadow: 0 0 0 12px rgba(28,169,224,0); }
}
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn-primary { animation: none; }
}

/* ---------- Header ---------- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
header.site-header.scrolled {
  background: rgba(10, 10, 10, 0.88);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  transition: padding 0.35s ease;
}
header.site-header.scrolled .nav { padding: 8px 24px; }
.nav .logo img { height: 42px; transition: height 0.35s ease; }
header.site-header.scrolled .nav .logo img { height: 34px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  transition: color 0.2s;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width 0.25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; background: rgba(10,10,10,0.97);
    flex-direction: column; padding: 24px; gap: 20px; transform: translateY(-130%); transition: transform 0.3s; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero video.is-playing { opacity: 1; }
/* statický obrázok pod videom (na mobile namiesto videa) */
.hero-poster, .hero-poster img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -3;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,0.55) 0%, rgba(8,9,11,0.75) 60%, rgba(8,9,11,0.95) 100%);
  z-index: -1;
}
.hero-inner {
  max-width: 1040px; padding: 0 24px;
  will-change: transform;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.8rem; letter-spacing: 4px; text-transform: uppercase; font-weight: 600; color: var(--text-dim);
  margin-bottom: 22px;
  opacity: 0; animation: heroFadeUp 0.8s ease 0.1s forwards;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ""; width: 34px; height: 1px; background: var(--accent);
  transform: scaleX(0); animation: lineGrow 0.8s ease 0.5s forwards;
}
.hero-eyebrow::before { transform-origin: right; }
.hero-eyebrow::after { transform-origin: left; }
@keyframes lineGrow { to { transform: scaleX(1); } }

.hero-title {
  font-size: clamp(1.85rem, 4.6vw, 3.7rem); line-height: 1.08; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 26px; font-weight: 800;
}
.hero-title .line { display: block; }
.js .hero-title:not(.ready) { visibility: hidden; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char {
  display: inline-block; opacity: 0;
  transform: translateY(0.55em) rotate(8deg); filter: blur(10px);
  animation: charIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(0.25s + var(--i) * 0.04s);
}
@keyframes charIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* zvýraznená časť - modrá so svetelným odleskom a podčiarknutím */
.hero-title .accent { position: relative; display: inline-block; color: var(--accent); }
.hero-title .accent.shine {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 40%, #bfeeff 50%, var(--accent) 60%, var(--accent) 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s ease-in-out 0.2s infinite;
}
@keyframes shine { 0% { background-position: 100% 0; } 35%, 100% { background-position: -50% 0; } }
.hero-title .accent::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -0.12em; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-title .accent.shine::after { transform: scaleX(1); }

.hero-inner p {
  font-size: 1.15rem; color: var(--text-dim); margin: 0 auto 34px; max-width: 640px;
  opacity: 0; transform: translateY(18px);
  animation: heroFadeUp 0.8s ease 1.2s forwards;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(18px);
  animation: heroFadeUp 0.8s ease 1.4s forwards;
}
@keyframes heroPopIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--text-faint); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  opacity: 0; animation: heroFadeUp 0.8s ease 1.8s forwards, bob 2.4s ease-in-out 2.6s infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-eyebrow::before, .hero-eyebrow::after, .hero-title .char, .hero-title .accent,
  .hero-inner p, .hero-actions, .scroll-hint {
    animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important;
  }
  .scroll-hint { transform: translateX(-50%) !important; }
}

/* ---------- O mne ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 44px; } }

/* --- Zakladateľ s podpisom --- */
.founder { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--panel-border); }
.founder-card { position: relative; margin: 0; width: 250px; }
.founder-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08);
  opacity: 0; transform: translateY(20px) scale(0.97);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.founder-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,8,12,0.55) 72%, rgba(5,8,12,0.9) 100%);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder.signed .founder-photo { opacity: 1; transform: none; }
.founder-sign {
  position: absolute; right: 5%; bottom: 14px; width: 80%; z-index: 2;
  transform: rotate(-4deg); transform-origin: right center; pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55));
}
.signature { display: block; width: 100%; height: auto; color: #e6c068; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.6)); }
.signature .ink { stroke: currentColor; stroke-width: 0.7; stroke-linejoin: round; }
.founder-caption {
  margin-top: 16px; opacity: 0; transform: translateY(6px); transition: all 0.6s ease;
}
.founder-caption b { display: block; font-size: 1rem; }
.founder-caption span { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); }
.founder.done .founder-caption { opacity: 1; transform: none; }
@media (max-width: 480px) {
  .founder-card { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .founder-photo, .founder-caption { opacity: 1 !important; transform: none !important; }
}

/* --- Karta „Prečo MARK REAL“ --- */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.why-card {
  position: relative; padding: 38px 36px 32px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(28,169,224,0.10), rgba(255,255,255,0.02) 45%), #0e1115;
  box-shadow: var(--shadow); isolation: isolate;
}
.why-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--spin), transparent 0deg, var(--accent) 60deg, transparent 130deg, transparent 360deg), var(--panel-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 6s linear infinite;
}
@keyframes spinBorder { to { --spin: 360deg; } }
.why-card .eyebrow { margin-bottom: 8px; }
.why-card h3 { font-size: 1.5rem; margin-bottom: 22px; }
.why-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 6px; }
.why-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 12px; margin: 0 -12px; border-radius: 14px;
  transition: background 0.25s;
  opacity: 0; transform: translateX(-14px);
}
.why-card.in-view .why-list li { opacity: 1; transform: none; transition: opacity 0.6s ease var(--d), transform 0.6s ease var(--d), background 0.25s; }
.why-list li:hover { background: rgba(255,255,255,0.04); }
.why-list i {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.05rem; transition: all 0.3s;
}
.why-list li:hover i { background: var(--accent); color: #fff; transform: rotate(-8deg) scale(1.06); }
.why-list b { display: block; font-size: 1rem; margin-bottom: 2px; }
.why-list span { display: block; font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; }
.why-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 22px; border-top: 1px solid var(--panel-border); }
.why-stats div { text-align: center; }
.why-stats a { display: block; color: inherit; text-decoration: none; }
.why-stats a:hover span, .why-stats a:focus-visible span { color: var(--accent); }
.why-stats b { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.why-stats span { display: block; font-size: 0.72rem; line-height: 1.4; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 480px) { .why-card { padding: 30px 22px 26px; } }
@media (prefers-reduced-motion: reduce) {
  .why-card::before { animation: none; }
  .why-list li, .founder-photo, .founder-caption { opacity: 1 !important; transform: none !important; }
}

/* ---------- Služby ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 32px 26px; text-align: left;
  transition: transform 0.2s ease, border-color 0.25s, box-shadow 0.25s;
  transform: perspective(700px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--ty, 0px));
  will-change: transform;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px -18px rgba(28,169,224,0.35);
  --ty: -6px;
}
.service-card .icon {
  width: 68px; height: 68px; border-radius: 18px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
}
.service-card .icon img {
  width: 44px; height: 44px; object-fit: contain;
  transition: filter 0.25s ease;
}
.service-card:hover .icon { transform: scale(1.1) rotate(-6deg); background: var(--accent); }
.service-card:hover .icon img { filter: brightness(0) invert(1); }
.service-card h3 { font-size: 1.05rem; text-transform: none; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }
.service-wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 26px 30px;
  background: linear-gradient(120deg, rgba(28,169,224,0.14), rgba(28,169,224,0.03) 60%), var(--panel); }
.service-wide .icon { margin-bottom: 0; }
.service-wide p { max-width: 640px; }
.service-wide .btn { white-space: nowrap; }
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .service-wide { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; } .service-wide .btn { justify-self: start; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Náš tím ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  overflow: hidden; text-align: center; transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 40px -18px rgba(28,169,224,0.35); }
.team-photo { aspect-ratio: 1/1; overflow: hidden; background: #1a1d22; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-body { padding: 22px 20px 26px; }
.team-body h3 { font-size: 1.05rem; text-transform: none; margin-bottom: 4px; }
.team-role { display: block; font-size: 0.78rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 12px; }
.team-bio { font-size: 0.88rem; margin-bottom: 16px; min-height: 40px; }
.team-contact { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.team-contact a { font-size: 0.86rem; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; justify-content: center; transition: color 0.2s; }
.team-contact a i { color: var(--accent); }
.team-contact a:hover, .team-contact a:hover i { color: #fff; }
/* kontakty zarovnané na spodok karty, aj keď majú makléri rôzne dlhé bio */
.team-card { display: flex; flex-direction: column; }
.team-body { flex: 1; display: flex; flex-direction: column; }
.team-bio { flex: 1; }
.team-social { min-height: 34px; }
.team-social.empty { visibility: hidden; }
.team-social { display: flex; gap: 10px; justify-content: center; }
.team-social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--panel-border);
  display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 0.85rem;
  transition: all 0.2s;
}
.team-social a:hover { background: var(--accent); border-color: var(--accent); }

.placeholder { color: var(--text-faint) !important; font-style: italic; }
.team-contact.placeholder span { font-size: 0.82rem; }
.team-social-pending { display: block; font-size: 0.78rem; }

.team-grid.few { grid-template-columns: repeat(var(--n), minmax(0, 270px)); justify-content: center; }
@media (max-width: 980px) { .team-grid, .team-grid.few { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid, .team-grid.few { grid-template-columns: 1fr; } }

/* ---------- Ponuky ---------- */
.filters { display: flex; gap: 10px; justify-content: center; margin-bottom: 44px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--panel-border);
  background: transparent; color: var(--text-dim); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .listings-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .listings-grid { grid-template-columns: 1fr; } }

.listing-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; text-decoration: none; color: inherit;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.listing-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 24px 45px -20px rgba(28,169,224,0.4);
}
.listing-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #1a1d22 url('assets/placeholder.jpg') center/cover; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.listing-card:hover .listing-photo img { transform: scale(1.08); }
.listing-badge {
  position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }
.listing-badge.sold { background: #666; }
.listing-badge.reserved { background: #b8860b; }
.listing-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.demo-ribbon {
  position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.9); color: #111;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 9px; border-radius: 6px;
}
.listing-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.listing-type { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.listing-title { font-size: 1.02rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.listing-meta { font-size: 0.83rem; color: var(--text-faint); display: flex; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 16px; }
.listing-meta span { display: inline-flex; align-items: center; gap: 6px; }
.listing-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--panel-border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.listing-price { color: #fff; font-weight: 700; font-size: 1.18rem; }
.listing-more { font-size: 0.82rem; font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; transition: gap 0.2s; }
.listing-card:hover .listing-more { gap: 10px; }
.listings-more { display: flex; justify-content: center; margin-top: 34px; }
.listings-more[hidden] { display: none; }
.empty-state { text-align: center; color: var(--text-faint); padding: 40px 0; grid-column: 1/-1; }

/* ---------- Modal (detail ponuky) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg-soft); border: 1px solid var(--panel-border); border-radius: var(--radius);
  max-width: 760px; width: 100%; max-height: 88vh; overflow-y: auto; position: relative;
  transform: translateY(24px) scale(0.96); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-box { transition: none; }
}
.modal-close {
  position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.5); border: none;
  color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 2;
}
.modal-gallery { display: flex; gap: 8px; overflow-x: auto; padding: 20px 20px 0; }
.modal-gallery img { width: 220px; height: 160px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.modal-content { padding: 26px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-info-item .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.social-row { display: flex; gap: 14px; margin-top: 20px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--panel-border);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: all 0.2s;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); }

form.contact-form { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 32px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm); color: #fff; font-family: inherit; font-size: 0.95rem;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--accent); }
.form-msg { font-size: 0.9rem; margin-top: 12px; display: none; }
.form-msg.ok { color: #4ade80; display: block; }
.form-msg.err { color: #f87171; display: block; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}
footer .logo img { height: 34px; margin: 0 auto 16px; }
footer a { color: var(--text-faint); text-decoration: none; }
footer a:hover { color: #fff; }

/* ---------- Utility ---------- */
.loading-spinner {
  border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--accent); border-radius: 50%;
  width: 30px; height: 30px; animation: spin 0.8s linear infinite; margin: 30px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   Pozadie sekcie Služby - varianty
   ========================================================== */

/* A) Foto (duotón v farbách značky) + sklenené karty */
#services.bgv-photo {
  background:
    linear-gradient(180deg, rgba(8,10,13,0.96) 0%, rgba(8,10,13,0.72) 45%, rgba(8,10,13,0.96) 100%),
    url('assets/bg-services.jpg') center / cover fixed;
}

/* B) Blueprint - panoráma mesta + technická mriežka */
#services.bgv-blueprint {
  background:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(28,169,224,0.22), transparent 70%),
    url('assets/bg-blueprint.svg') bottom center / 1600px auto repeat-x,
    linear-gradient(rgba(28,169,224,0.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(28,169,224,0.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #0a0d11 0%, #0d1620 100%);
}

/* C) Gradient - hlboká modrá so svetlom a bodkovým rastrom */
#services.bgv-gradient {
  background:
    radial-gradient(circle at 15% 20%, rgba(28,169,224,0.28), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(28,169,224,0.18), transparent 45%),
    radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(160deg, #0c1d2c 0%, #0a0a0a 70%);
}

/* sklenené karty pre všetky varianty pozadia */
#services[class*="bgv-"] .service-card {
  background: rgba(14, 18, 24, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255,255,255,0.12);
}

@media (max-width: 860px) {
  #services.bgv-photo { background-attachment: scroll, scroll; }
}

/* ==========================================================
   DETAIL PONUKY (ponuka.html)
   ========================================================== */
.detail-main { padding: 96px 0 80px; min-height: 70vh; }
.detail-state { text-align: center; padding: 100px 0; }
.detail-state > i { font-size: 3rem; color: var(--accent); margin-bottom: 18px; }
.detail-state h2 { text-transform: none; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-faint); margin: 8px 0 18px; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .bc-current { color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }

/* --- Galéria --- */
.gallery { display: grid; gap: 10px; border-radius: var(--radius); overflow: hidden; height: min(62vh, 560px); }
.gallery.g-1 { grid-template-columns: 1fr; }
.gallery.g-2 { grid-template-columns: 2fr 1fr; }
.gallery.g-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.g-3 .g-main { grid-row: 1 / 3; }
.g-tile { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: #15181d; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.3s; }
.g-tile:hover img { transform: scale(1.04); filter: brightness(1.08); }
.g-counter {
  position: absolute; left: 14px; bottom: 14px; display: none;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}
.g-more {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,0.92); color: #111; font-size: 0.82rem; font-weight: 700; padding: 9px 14px; border-radius: 10px;
}

/* --- Rozloženie obsahu --- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; margin-top: 34px; align-items: start; }
.detail-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--panel-border); color: var(--text-dim); }
.tag-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag-reserved { background: #b8860b; border-color: #b8860b; color: #fff; }
.tag-sold { background: #555; border-color: #555; color: #fff; }
.tag-demo { background: #fff; color: #111; border-color: #fff; }

.detail-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; margin-bottom: 10px; }
.detail-location { color: var(--text-dim); display: flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.detail-location i { color: var(--accent); }
.detail-price-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.detail-price { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--accent); letter-spacing: 0.5px; }
.detail-ppm { color: var(--text-faint); font-size: 0.95rem; }

.key-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 8px; }
.fact {
  display: flex; gap: 12px; align-items: center; padding: 16px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px;
}
.fact > i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.fact span { display: block; font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }
.fact b { font-size: 0.98rem; }

.detail-section { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--panel-border); }
.detail-section h2 { font-size: 1.25rem; text-transform: none; margin-bottom: 18px; letter-spacing: 0.3px; }
.detail-description p { color: var(--text-dim); line-height: 1.8; }

.params-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin: 0; }
.param { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.param dt { color: var(--text-faint); font-size: 0.9rem; }
.param dd { margin: 0; font-weight: 600; font-size: 0.92rem; text-align: right; }

.feature-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; gap: 9px; align-items: center; padding: 9px 15px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-border); font-size: 0.88rem; }
.chip i { color: var(--accent); }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--panel-border); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.as-link { aspect-ratio: auto; background: none; border: 0; }

.map-box { height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--panel-border); background: #15181d; z-index: 0; }
.map-box .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9) saturate(0.6); }
.map-note { color: var(--text-faint); font-size: 0.85rem; margin-top: 10px; }
.map-pin { color: #fff; background: var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex !important; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.map-pin i { transform: rotate(45deg); font-size: 16px; }
.leaflet-container a { color: var(--accent); }

/* --- Bočný panel --- */
.side-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 22px; }
.btn-block { width: 100%; justify-content: center; }
.agent-card { display: flex; flex-direction: column; gap: 10px; }
.agent-top { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.agent-top img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex-shrink: 0; }
.agent-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }
.agent-top strong { display: block; font-size: 1.05rem; }
.agent-role { font-size: 0.82rem; color: var(--accent); }
.agent-card .btn { padding: 11px 16px; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.inquiry-form h3 { font-size: 1.02rem; margin-bottom: 16px; }
.inquiry-form .form-row { margin-bottom: 12px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-note { font-size: 0.72rem; color: var(--text-faint); margin: 10px 0 0; line-height: 1.5; }

.share-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; padding: 16px 22px; }
.share-card > span { font-size: 0.88rem; color: var(--text-dim); }
.share-buttons { display: flex; gap: 8px; }
.share-buttons a, .share-buttons button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--panel-border); background: transparent;
  color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.share-buttons a:hover, .share-buttons button:hover { background: var(--accent); border-color: var(--accent); }
.copy-toast {
  position: absolute; right: 16px; top: -34px; background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 600;
  padding: 5px 11px; border-radius: 8px; opacity: 0; transform: translateY(6px); transition: all 0.25s; pointer-events: none;
}
.copy-toast.show { opacity: 1; transform: translateY(0); }

.similar { margin-top: 90px; }

/* --- Mobilná lišta --- */
.mobile-cta { display: none; }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(5,6,8,0.96);
  display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { display: flex; align-items: center; justify-content: center; padding: 60px 80px 10px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; opacity: 0; transform: scale(0.98); transition: opacity 0.3s, transform 0.3s; user-select: none; }
.lb-stage img.show { opacity: 1; transform: scale(1); }
.lb-close, .lb-nav {
  position: absolute; z-index: 2; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: background 0.2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--accent); }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-counter { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); color: var(--text-dim); font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; }
.lb-thumbs { display: flex; gap: 8px; padding: 14px 16px 18px; overflow-x: auto; justify-content: center; }
.lb-thumbs button { flex-shrink: 0; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: 0.5; background: none; transition: all 0.2s; }
.lb-thumbs button.active, .lb-thumbs button:hover { opacity: 1; border-color: var(--accent); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox.single .lb-nav, .lightbox.single .lb-thumbs { display: none; }

/* --- Responzívne --- */
@media (max-width: 1000px) {
  .detail-grid { grid-template-columns: 1fr; gap: 10px; }
  .detail-side { position: static; margin-top: 30px; }
  .key-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .detail-main { padding-top: 76px; }
  .breadcrumb .bc-current, .breadcrumb #bcType + .sep { display: none; }
  .gallery { height: 300px; margin: 0 -24px; border-radius: 0; }
  .gallery.g-2, .gallery.g-3 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gallery .g-side { display: none; }
  .g-counter { display: inline-flex; gap: 8px; align-items: center; }
  .params-table { grid-template-columns: 1fr; }
  .fact { padding: 12px; }
  .fact > i { width: 34px; height: 34px; }
  .lb-stage { padding: 60px 0 10px; }
  .lb-nav { display: none; }
  .mobile-cta:not([hidden]) {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(10,10,10,0.92); backdrop-filter: blur(10px);
    border-top: 1px solid var(--panel-border);
  }
  .mobile-cta .btn { justify-content: center; padding: 12px; }
  body.detail-page footer { padding-bottom: 90px; }
}

@media (max-width: 560px) {
  .hero-eyebrow { font-size: 0.72rem; letter-spacing: 2.5px; }
  .hero-eyebrow::before, .hero-eyebrow::after { display: none; }
}


/* ==========================================================
   RECENZIE - slider
   ========================================================== */
.reviews-section { background: linear-gradient(180deg, var(--bg) 0%, #0c1116 100%); }
.reviews { position: relative; }
.reviews-track { display: grid; position: relative; min-height: 300px; }
.rv-card {
  grid-area: 1 / 1; justify-self: center; align-self: center;
  width: min(680px, 86%); margin: 0; padding: 40px 44px 32px; border-radius: 22px; position: relative;
  background: linear-gradient(160deg, rgba(28,169,224,0.10), rgba(255,255,255,0.03) 50%), #10151b;
  border: 1px solid var(--panel-border); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
  --abs: max(var(--off), calc(var(--off) * -1));
  transform: translateX(calc(var(--off) * 78%)) scale(calc(1 - var(--abs) * 0.12));
  opacity: calc(1 - var(--abs) * 0.62);
  filter: blur(calc(var(--abs) * 2px));
  z-index: calc(10 - var(--abs));
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease, filter 0.8s ease, border-color 0.4s;
  cursor: pointer;
}
.rv-card.active { cursor: default; border-color: rgba(28,169,224,0.45); }
.rv-card:not(.active):not(.side) { opacity: 0; pointer-events: none; }
.rv-quote { position: absolute; top: -18px; left: 36px; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 10px 24px -8px rgba(28,169,224,0.7); }
.rv-stars { color: #f5b301; font-size: 0.95rem; display: flex; gap: 4px; margin-bottom: 16px; }
.rv-card.active .rv-stars i { animation: starPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.rv-card.active .rv-stars i:nth-child(2) { animation-delay: 0.08s; }
.rv-card.active .rv-stars i:nth-child(3) { animation-delay: 0.16s; }
.rv-card.active .rv-stars i:nth-child(4) { animation-delay: 0.24s; }
.rv-card.active .rv-stars i:nth-child(5) { animation-delay: 0.32s; }
@keyframes starPop { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rv-card blockquote { margin: 0 0 24px; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.7; color: #e6ebef; font-style: italic; }
.rv-card figcaption { display: flex; align-items: center; gap: 14px; }
.rv-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(28,169,224,0.4); }
.rv-card figcaption b { display: block; }
.rv-card figcaption small { color: var(--text-faint); font-size: 0.82rem; }

.reviews-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.rv-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--panel-border); background: transparent; color: #fff; cursor: pointer; transition: all 0.2s; }
.rv-nav:hover { background: var(--accent); border-color: var(--accent); }
.rv-dots { display: flex; gap: 8px; }
.rv-dots button { width: 28px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: rgba(255,255,255,0.15); cursor: pointer; overflow: hidden; transition: width 0.3s; }
.rv-dots button.active { width: 48px; }
.rv-dots button span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; }
.rv-dots button.active span { animation: rvProgress var(--auto, 6000ms) linear forwards; }
.reviews.paused .rv-dots button.active span { animation-play-state: paused; }
@keyframes rvProgress { to { width: 100%; } }
.rv-note { text-align: center; font-size: 0.8rem; color: var(--text-faint); margin: 16px 0 0; }

@media (max-width: 700px) {
  .rv-card { width: 90%; padding: 36px 24px 26px; transform: translateX(calc(var(--off) * 104%)); }
  .rv-card.side { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-card, .rv-card.active .rv-stars i { transition: none; animation: none; }
}

/* ==========================================================
   GDPR - súhlas vo formulároch
   ========================================================== */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 0.8rem; line-height: 1.5; color: var(--text-dim); cursor: pointer; text-align: left; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent b { color: var(--text); font-weight: 600; }
.form-note a, .estimate-foot a { color: var(--accent); }

/* ==========================================================
   Cenový odhad - sekcia na hlavnej stránke
   ========================================================== */
.estimate-section { position: relative; overflow: hidden; background:
  radial-gradient(ellipse 60% 70% at 85% 50%, rgba(28,169,224,0.13), transparent 70%), var(--bg); }
.estimate-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.estimate-copy h2 { margin-top: 6px; }
.estimate-copy > p { color: var(--text-dim); max-width: 520px; }
.estimate-steps { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.estimate-steps li { display: flex; gap: 14px; align-items: center; }
.estimate-steps li > span { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(28,169,224,0.35); }
.estimate-steps b { display: block; font-size: 0.98rem; }
.estimate-steps small { color: var(--text-faint); font-size: 0.82rem; }

.estimate-visual { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 420px; justify-self: center; padding: 0 20px 22px; border-radius: 22px; position: relative;
  background: linear-gradient(160deg, rgba(23,26,33,0.95), rgba(15,17,21,0.95)); border: 1px solid var(--panel-border);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(28,169,224,0.08);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; font-size: 0.86rem; }
.estimate-visual:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 40px 80px -20px rgba(0,0,0,0.75), 0 0 0 1px rgba(28,169,224,0.35); }
.estimate-visual:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ev-head { display: flex; gap: 8px; align-items: center; margin: 0 -20px 6px; padding: 14px 20px; border-bottom: 1px solid var(--panel-border);
  font-weight: 700; font-size: 0.88rem; background: rgba(255,255,255,0.02); border-radius: 22px 22px 0 0; }
.ev-head i { color: var(--accent); }
.ev-head em { margin-left: auto; font-style: normal; font-size: 0.66rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint);
  border: 1px solid var(--panel-border); padding: 2px 8px; border-radius: 999px; }
.ev-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; line-height: 1.4; }
.ev-msg.bot { align-self: flex-start; background: #23283a; border-bottom-left-radius: 4px; }
.ev-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; font-weight: 600; }
.ev-msg.result { max-width: 100%; align-self: stretch; background: rgba(230,192,104,0.1); border: 1px solid rgba(230,192,104,0.45); color: #f3d998; }
.ev-msg.result small { display: block; font-size: 0.72rem; color: var(--text-faint); }
.ev-msg.result b { font-size: 1.15rem; letter-spacing: 0.3px; }
.ev-chips { display: flex; gap: 6px; }
.ev-chips i { font-style: normal; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--panel-border); color: var(--text-dim); font-size: 0.8rem; }
.ev-chips i:first-child { border-color: var(--accent); color: #fff; background: rgba(28,169,224,0.18); }
.ev-cta { align-self: flex-end; margin-top: 4px; color: var(--accent); font-weight: 700; font-size: 0.85rem; display: inline-flex; gap: 8px; align-items: center; }
.ev-cta i { transition: transform .25s; }
.estimate-visual:hover .ev-cta i { transform: translateX(4px); }
/* bubliny nabiehajú postupne, keď sa karta objaví */
.js .estimate-visual .ev-msg, .js .estimate-visual .ev-chips { opacity: 0; transform: translateY(8px) scale(0.98); }
.js .estimate-visual.in-view .ev-msg, .js .estimate-visual.in-view .ev-chips {
  animation: evIn .45s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(0.5s + var(--d) * 0.55s); }
@keyframes evIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .estimate-visual .ev-msg, .js .estimate-visual .ev-chips { opacity: 1; transform: none; animation: none !important; }
}
@media (max-width: 900px) {
  .estimate-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Okno s odhadovým asistentom ---------- */
body.modal-lock { overflow: hidden; }
.estimate-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5,6,8,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.estimate-modal.open { opacity: 1; visibility: visible; }
.estimate-dialog { position: relative; width: 100%; max-width: 440px; height: min(680px, calc(100vh - 40px)); display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden; background: #171a21; border: 1px solid var(--panel-border); box-shadow: 0 40px 90px -20px rgba(0,0,0,0.8);
  transform: translateY(24px) scale(0.97); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.estimate-modal.open .estimate-dialog { transform: none; }
.estimate-close { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.4); color: #fff; cursor: pointer; font-size: 1rem; }
.estimate-close:hover { background: var(--accent); border-color: var(--accent); }
.estimate-dialog { overflow: visible; }
.estimate-body { position: relative; flex: 1; border-radius: 20px 20px 0 0; overflow: hidden; }
.estimate-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #171a21; }
.estimate-loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 30px; background: #171a21; }
.estimate-loading[hidden] { display: none; }
.estimate-loading p { margin: 14px 0 0; font-weight: 600; }
.estimate-loading small { color: var(--text-faint); max-width: 260px; }
.estimate-foot { margin: 0; padding: 10px 16px 12px; font-size: 0.7rem; line-height: 1.45; color: var(--text-faint); border-top: 1px solid var(--panel-border);
  background: #12141a; border-radius: 0 0 20px 20px; }
@media (max-width: 520px) {
  .estimate-modal { padding: 0; }
  .estimate-dialog { max-width: none; height: 100%; border-radius: 0; }
  .estimate-body, .estimate-foot { border-radius: 0; }
  .estimate-close { top: 8px; right: 50px; width: 32px; height: 32px; z-index: 3; font-size: 0.85rem; }
}

/* ==========================================================
   Ochrana osobných údajov + odhlásenie z odberu
   ========================================================== */
.legal { max-width: 860px; padding-top: 30px; padding-bottom: 60px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); text-transform: none; margin: 8px 0 16px; }
.legal-lead { font-size: 1.05rem; color: var(--text-dim); }
.legal h2 { text-transform: none; font-size: 1.4rem; margin: 48px 0 16px; padding-top: 10px; scroll-margin-top: 100px; }
.legal section { scroll-margin-top: 90px; }
.legal p { color: var(--text-dim); }
.legal p b, .legal li b { color: var(--text); }
.legal a { color: var(--accent); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.legal-toc a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--panel-border); color: var(--text-dim); text-decoration: none; font-size: 0.85rem; }
.legal-toc a:hover { border-color: var(--accent); color: #fff; }
.legal-card, .legal-item { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 14px; }
.legal-card p, .legal-item p { margin: 4px 0; }
.legal-item h3 { text-transform: none; font-size: 1.05rem; margin: 0 0 10px; display: flex; gap: 10px; align-items: center; }
.legal-item h3 i { color: var(--accent); width: 20px; text-align: center; }
.legal-list { color: var(--text-dim); padding-left: 20px; }
.legal-list li { margin-bottom: 6px; }
.rights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.rights-grid > div { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.rights-grid i { color: var(--accent); margin-bottom: 4px; }
.rights-grid span { font-size: 0.8rem; color: var(--text-faint); line-height: 1.4; }
.legal-date { font-size: 0.85rem; color: var(--text-faint) !important; margin-top: 40px; }
@media (max-width: 760px) { .rights-grid { grid-template-columns: 1fr 1fr; } }

.unsub-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(28,169,224,0.14), transparent 70%), var(--bg); }
.unsub-card { max-width: 460px; width: 100%; text-align: center; background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 40px 34px 26px; box-shadow: var(--shadow); }
.unsub-logo { height: 52px; margin: 0 auto 26px; display: block; }
.unsub-icon { font-size: 2.6rem; color: var(--accent); margin-bottom: 12px; }
.unsub-icon.ok { color: #4ade80; } .unsub-icon.err { color: #f59e0b; }
.unsub-card h1 { font-size: 1.45rem; text-transform: none; margin: 0 0 10px; }
.unsub-card p { color: var(--text-dim); font-size: 0.93rem; }
.unsub-card a:not(.btn) { color: var(--accent); }
.unsub-card .btn { margin-top: 10px; }
.unsub-foot { margin-top: 26px; font-size: 0.78rem !important; }
@media (max-width: 480px) {
  .why-stats { gap: 6px; }
  .why-stats span { font-size: 0.62rem; letter-spacing: 0.3px; }
}

/* ---------- Predané / prenajaté ponuky ---------- */
.listing-card.is-closed .listing-photo img { filter: grayscale(0.55) brightness(0.7); }
.listing-card.is-closed:hover .listing-photo img { filter: grayscale(0.2) brightness(0.8); }
.sold-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); display: flex; flex-direction: column; align-items: center;
  padding: 10px 22px 9px; border: 2px solid #e6c068; border-radius: 10px; color: #f3d998; background: rgba(10,10,10,0.55); backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px); text-transform: uppercase; box-shadow: 0 10px 30px rgba(0,0,0,0.45); animation: stampIn .5s cubic-bezier(.34,1.56,.64,1) both; }
.sold-stamp b { font-size: 1.15rem; letter-spacing: 3px; font-weight: 800; }
.sold-stamp small { font-size: 0.72rem; letter-spacing: 1.5px; font-weight: 600; margin-top: 2px; color: #fff; }
@keyframes stampIn { from { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(1.6); } to { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); } }
.closed-price { font-size: 0.95rem; color: #e6c068; font-weight: 700; }
.closed-note { display: block; font-size: 0.74rem; color: #f3d998; font-weight: 600; margin-top: 2px; }
.closed-note i { font-size: 0.7rem; margin-right: 3px; }
.sold-stamp small.stamp-note { font-size: 0.62rem; letter-spacing: 1px; text-transform: uppercase; color: #f3d998; margin-top: 3px; }
.detail-ppm.closed-note-lg { color: #f3d998; font-weight: 600; }
.filter-btn i { margin-right: 4px; font-size: 0.85em; }
.detail-price.is-closed { color: #e6c068; }
.tag-sold { background: rgba(230,192,104,0.14); border-color: rgba(230,192,104,0.5); color: #f3d998; }
.tag-sold i { margin-right: 4px; }

/* rozbaľovacie zoznamy - tmavé pozadie aj na Windows */
select { color-scheme: dark; }
select option, select optgroup { background-color: #15181d; color: #ffffff; }

/* off-market ponuka */
.tag-offmarket { background: rgba(167,139,250,0.14); border-color: rgba(167,139,250,0.5); color: #c4b5fd; }
.tag-offmarket i { margin-right: 4px; }
.offmarket-note { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 26px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(167,139,250,0.08); border: 1px solid rgba(167,139,250,0.35); }
.offmarket-note[hidden] { display: none; }
.offmarket-note > i { color: #c4b5fd; font-size: 1.1rem; margin-top: 3px; }
.offmarket-note b { display: block; color: #fff; } .offmarket-note span { font-size: 0.88rem; color: var(--text-dim); }

/* ---------- Podrobné vyhľadávanie v ponukách (rozbaľovacie) ---------- */
.filters { margin-bottom: 18px; }
.search-panel { margin: 0 auto 40px; max-width: 1060px; }
.search-panel[hidden] { display: none; }
.sp-bar { display: flex; justify-content: center; }
.sp-toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 999px;
  background: transparent; border: 1px solid var(--panel-border); color: var(--text-dim); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: color .25s, border-color .25s, background .25s, box-shadow .25s; overflow: hidden; }
.sp-toggle::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(28,169,224,0.25) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .7s ease; }
.sp-toggle:hover::before { transform: translateX(100%); }
.sp-toggle:hover, .search-panel.open .sp-toggle { color: #fff; border-color: var(--accent); }
.search-panel.open .sp-toggle { background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(28,169,224,0.08); }
.sp-toggle > .fa-sliders { color: var(--accent); transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.search-panel.open .sp-toggle > .fa-sliders { transform: rotate(90deg); }
.sp-chev { font-size: 0.75rem; transition: transform .35s ease; }
.search-panel.open .sp-chev { transform: rotate(180deg); }
.sp-count { background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; animation: badgePop .35s cubic-bezier(.34,1.56,.64,1) both; }

/* plynulé rozbalenie - výška z 0 na obsah */
.sp-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.8,.2,1); }
.search-panel.open .sp-collapse { grid-template-rows: 1fr; }
.sp-inner { overflow: hidden; min-height: 0; }
.sp-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; margin-top: 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-border);
  opacity: 0; transform: translateY(-14px) scale(0.985); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.search-panel.open .sp-fields { opacity: 1; transform: none; transition-delay: .08s; }
.sp-field, .sp-reset { opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.search-panel.open .sp-field, .search-panel.open .sp-reset { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i, 0) * 0.045s); }
.sp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-field > span { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); }
.sp-field select, .sp-field input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border); color: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 0.9rem; min-width: 0; }
.sp-field select:focus, .sp-field input:focus { outline: none; border-color: var(--accent); }
.sp-field input::placeholder { color: var(--text-faint); }
.sp-reset { align-self: end; height: 42px; border-radius: 10px; border: 1px dashed var(--panel-border); background: none; color: var(--text-dim); cursor: pointer; font: inherit; font-size: 0.86rem; }
.sp-reset:hover { border-color: var(--accent); color: #fff; }
.sp-reset[hidden] { display: block; visibility: hidden; }
.sp-result { text-align: center; font-size: 0.86rem; color: var(--text-faint); margin-top: 12px; min-height: 1.2em; }
@media (max-width: 900px) { .sp-fields { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sp-toggle { width: 100%; justify-content: center; } .sp-chev { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) {
  .sp-collapse, .sp-fields, .sp-field, .sp-reset { transition: none !important; }
}
.sp-field select, .sp-field input { height: 42px; box-sizing: border-box; }

/* sociálne siete v hlavičke */
.nav-social { display: flex; gap: 8px; }
.nav-social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-dim); border: 1px solid var(--panel-border);
  font-size: 0.95rem; text-decoration: none; transition: color .2s, border-color .2s, background .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.nav-social a:hover { color: #fff; border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px) scale(1.06); }
.site-header.scrolled .nav-social a { width: 32px; height: 32px; font-size: 0.85rem; }
@media (max-width: 1180px) and (min-width: 861px) { .nav-links { gap: 20px; } .nav-cta { gap: 10px; } }
@media (max-width: 860px) { .nav-social a { width: 34px; height: 34px; } .nav-cta { gap: 12px; } }

/* ---------- O nás - zvýraznenie kľúčových informácií ---------- */
.about-text p.about-lead { font-size: 1.18rem; line-height: 1.65; color: #fff; }
.about-text strong { color: #fff; font-weight: 700; }
.about-text mark.hl { color: #fff; font-weight: 700; padding: 0 3px; border-radius: 3px;
  background: linear-gradient(transparent 58%, rgba(28,169,224,0.45) 58%, rgba(28,169,224,0.45) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  transition: background-size 0.9s cubic-bezier(.2,.8,.2,1); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.about-text.in-view mark.hl { background-size: 100% 100%; }
.about-text.in-view mark.hl:nth-of-type(1) { transition-delay: 0.5s; }
.about-text.in-view mark.hl:nth-of-type(2) { transition-delay: 0.9s; }
.about-text.in-view p:last-of-type mark.hl { transition-delay: 1.3s; }
html:not(.js) .about-text mark.hl { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .about-text mark.hl { transition: none; background-size: 100% 100%; } }

/* zdroj recenzie (Google, Facebook …) */
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rv-top .rv-stars { margin-bottom: 0; }
.rv-source { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 600;
  color: var(--text-dim); background: rgba(255,255,255,0.05); border: 1px solid var(--panel-border); text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s; }
.rv-source i:first-child { font-size: 0.9rem; }
a.rv-source:hover { color: #fff; border-color: var(--accent); }
.rv-source .rv-ext { font-size: 0.62rem; opacity: 0.7; }

/* inžinierske siete a prístupová cesta (detail ponuky) */
.util-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.util { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--panel-border); }
.util > i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.util small { display: block; font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }
.util b { font-size: 0.93rem; }
.util.no > i { background: rgba(255,255,255,0.05); color: var(--text-faint); } .util.no b { color: var(--text-faint); font-weight: 600; }

/* ---------- Hypotéka - formulár ---------- */
.mg-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5,6,8,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mg-modal.open { opacity: 1; visibility: visible; }
.mg-dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 20px;
  background: #171a21; border: 1px solid var(--panel-border); box-shadow: 0 40px 90px -20px rgba(0,0,0,0.8); padding: 28px 26px 22px;
  transform: translateY(24px) scale(0.97); transition: transform .35s cubic-bezier(.2,.8,.2,1); text-align: left; }
.mg-modal.open .mg-dialog { transform: none; }
.mg-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.04); color: #fff; cursor: pointer; }
.mg-close:hover { background: var(--accent); border-color: var(--accent); }
.mg-head { margin-bottom: 18px; padding-right: 36px; }
.mg-head h3 { font-size: 1.35rem; text-transform: none; margin: 6px 0 8px; }
.mg-head p { font-size: 0.9rem; margin: 0; color: var(--text-dim); }
.mg-listing { margin-top: 12px; font-size: 0.85rem; color: #fff; background: var(--accent-soft); border: 1px solid rgba(28,169,224,0.35); border-radius: 10px; padding: 8px 12px; }
.mg-listing i { color: var(--accent); margin-right: 6px; }
.mg-calc { font-size: 0.86rem; color: var(--text-dim); background: rgba(255,255,255,0.04); border-radius: 10px; padding: 10px 12px; margin: -4px 0 16px; }
.mg-calc b { color: #fff; }
.mg-calc span { color: var(--text-faint); }
.mg-dialog select { color-scheme: dark; }
.mg-done { text-align: center; padding: 30px 10px 14px; }
.mg-done i { font-size: 3rem; color: #4ade80; }
.mg-done h3 { text-transform: none; margin: 14px 0 8px; }
.mg-done p { color: var(--text-dim); }
.mortgage-card .mc-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; text-align: left; }
.mortgage-card .mc-top img { width: 42px; height: 42px; flex: none; padding: 6px; border-radius: 12px; background: var(--accent-soft); }
.mortgage-card b { display: block; font-size: 0.98rem; margin-bottom: 3px; }
.mortgage-card span { display: block; font-size: 0.84rem; color: var(--text-dim); line-height: 1.45; }
@media (max-width: 520px) {
  .mg-modal { padding: 0; align-items: stretch; }
  .mg-dialog { max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 24px 18px; }
}

/* ---------- Hypotekárna kalkulačka ---------- */
.calc-box { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 24px; }
.calc-inputs { display: flex; flex-direction: column; gap: 18px; }
.calc-field label { display: flex; justify-content: space-between; gap: 8px; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 7px; }
.calc-field label em { font-style: normal; color: var(--text-faint); }
.calc-field label b { color: #fff; }
.calc-num { display: flex; align-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border); border-radius: 10px; transition: border-color .2s; }
.calc-num:focus-within { border-color: var(--accent); }
.calc-num input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font: inherit; font-size: 1rem; font-weight: 600; padding: 11px 12px; outline: none; }
.calc-num span { padding: 0 12px; color: var(--text-faint); font-size: 0.85rem; white-space: nowrap; }
.calc-field input[type=range] { width: 100%; margin: 10px 0 0; accent-color: var(--accent); cursor: pointer; }
.calc-scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-faint); margin-top: 2px; }
.calc-result { background: linear-gradient(160deg, rgba(28,169,224,0.16), rgba(28,169,224,0.04)); border: 1px solid rgba(28,169,224,0.3); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; }
.calc-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.calc-pay { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.15; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.calc-pay small { font-size: 0.95rem; font-weight: 500; color: var(--text-dim); }
.calc-rows { margin: 0 0 14px; }
.calc-rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.88rem; }
.calc-rows dt { color: var(--text-dim); }
.calc-rows dd { margin: 0; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-warn { font-size: 0.8rem; color: #f1d9a6; background: rgba(224,160,28,0.1); border: 1px solid rgba(224,160,28,0.35); border-radius: 10px; padding: 9px 11px; margin-bottom: 14px; line-height: 1.45; }
.calc-note { font-size: 0.72rem; color: var(--text-faint); margin: 12px 0 0; line-height: 1.5; }
@media (max-width: 760px) { .calc-box { grid-template-columns: 1fr; padding: 18px; } .calc-pay { font-size: 1.9rem; } }
.legal-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.legal-cards .legal-card { margin-bottom: 0; }
.legal-cards + .legal-card { margin-top: 14px; }
.legal-sub { font-size: 1.02rem; text-transform: none; margin: 22px 0 8px; }
@media (max-width: 640px) { .legal-cards { grid-template-columns: 1fr; } }


/* ==========================================================
   SEO úpravy (október 2026)
   ========================================================== */

/* Ponuky, ktoré poslal server: prehliadač ukáže prvé 3, ostatné po kliknutí na „Zobraziť všetky“ */
/* (platí vždy, aj keď sa JavaScript nenačíta: na úvode sú len 3 ponuky) */
.listing-card.ssr-more { display: none; }

/* Posledné predaje hneď pod úvodom */
.proof-strip {
  position: relative; z-index: 1;
  padding: 28px 0 8px;
}
.proof-title {
  font-size: 0.95rem; font-weight: 600; color: var(--text-dim);
  margin: 0 0 12px; letter-spacing: 0.2px;
}
.proof-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
}
.proof-list a {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text); text-decoration: none;
  transition: border-color 0.2s ease;
}
.proof-list a:hover, .proof-list a:focus-visible { border-color: var(--accent); }
.proof-list b { font-size: 1.15rem; color: var(--accent); }
.proof-list span { font-size: 0.92rem; color: var(--text-dim); }
.proof-list small { font-size: 0.8rem; color: var(--text-faint); }
@media (max-width: 640px) {
  .proof-list { grid-template-columns: 1fr 1fr; }
  .proof-list a { padding: 12px 14px; }
  .proof-list b { font-size: 1rem; }
}

/* Pätička - adresa a firmy */
footer .footer-legal { max-width: 720px; margin: 0 auto 10px; line-height: 1.6; }

/* Lišta so súhlasom s cookies */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000;
  display: flex; justify-content: center; pointer-events: none;
  opacity: 0; transform: translateY(16px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.cookie-banner.show { opacity: 1; transform: none; }
.cookie-banner[hidden], .cookie-banner [hidden] { display: none !important; }
.cc-box {
  pointer-events: auto; width: 100%; max-width: 640px;
  padding: 20px 22px; border-radius: var(--radius-sm);
  background: rgba(17, 20, 24, 0.97); border: 1px solid var(--panel-border);
  box-shadow: var(--shadow); color: var(--text);
}
.cc-title { font-weight: 700; margin: 0 0 6px; }
.cc-text { font-size: 0.88rem; line-height: 1.55; color: var(--text-dim); margin: 0 0 14px; }
.cc-text a { color: var(--accent); }
.cc-options { display: grid; gap: 8px; margin: 0 0 14px; }
.cc-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--text-dim); cursor: pointer; }
.cc-opt input { margin-top: 3px; accent-color: var(--accent); }
.cc-opt b { color: var(--text); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cc-link { background: none; border: 0; color: var(--text-dim); text-decoration: underline; font: inherit; font-size: 0.88rem; cursor: pointer; padding: 6px 4px; }
.cc-link:hover, .cc-link:focus-visible { color: #fff; }
@media (max-width: 700px) { body.detail-page .cookie-banner { bottom: 86px; } }
@media (max-width: 480px) { .cc-actions .btn { flex: 1 1 auto; justify-content: center; } }
/* na mobile kompaktná lišta, aby neprekrývala hlavné tlačidlo na úvode */
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cc-box { padding: 12px 14px; }
  .cc-title { display: none; }
  .cc-text { font-size: 0.78rem; line-height: 1.4; margin: 0 0 10px; }
  .cc-actions { gap: 6px; }
  .cc-actions .btn { padding: 8px 12px; font-size: 0.82rem; }
  .cc-link { padding: 4px; font-size: 0.8rem; }
}

/* ==========================================================
   Podstránky (predaj, odhad, hypotéka, predané …)
   ========================================================== */
.subpage-main { padding-top: 72px; }
.wrap.narrow { max-width: 820px; }
.page-hero { padding: 48px 0 24px; border-bottom: 1px solid var(--panel-border); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; margin: 4px 0 16px; letter-spacing: -0.3px; }
.page-lead { font-size: 1.1rem; line-height: 1.65; color: var(--text-dim); margin: 0 0 24px; max-width: 70ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 8px; }
.subpage .section { padding: 56px 0; }
.prose { line-height: 1.7; color: var(--text-dim); }
.prose h2 { color: var(--text); font-size: 1.5rem; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--accent); }
.prose b { color: var(--text); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 0 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.95rem;
}
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 0.9rem; }
.proof-strip.inline { padding: 40px 0 0; }

/* Časté otázky */
.faq-section h2 { font-size: 1.5rem; margin: 0 0 18px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--panel-border); border-radius: var(--radius-sm); background: var(--panel); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--text); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--accent); font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-a { padding: 0 18px 16px; color: var(--text-dim); line-height: 1.65; }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin: 0; }
.faq-a a { color: var(--accent); }

/* Výzva na konci stránky */
.cta-band { background: var(--bg-soft); border-top: 1px solid var(--panel-border); }
.cta-band h2 { font-size: 1.6rem; margin: 0 0 10px; }
.cta-band p { color: var(--text-dim); margin: 0 0 18px; }

/* Štatistiky predajov */
.stats-band { padding: 32px 0 !important; border-bottom: 1px solid var(--panel-border); }
.sale-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 0; }
.sale-stats div { padding: 4px 0; }
.sale-stats dt { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 4px; }
.sale-stats dd { margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--accent); }

/* Odkazy na služby v pätičke */
footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 auto 14px; padding: 0; list-style: none; }
footer .footer-links a { color: var(--text-dim); }
.service-card .svc-more { display: inline-block; margin-top: 12px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.service-card .svc-more:hover { text-decoration: underline; }
.subpage h2, .proof-title, .faq-section h2 { text-transform: none; letter-spacing: 0; }

/* Lokality, tím, kontakt, recenzie */
.list-title { font-size: 1.5rem; margin: 0 0 20px; }
.empty-note { color: var(--text-dim); padding: 8px 0; }
.empty-note a { color: var(--accent); }
footer .footer-places a { font-size: 0.85rem; color: var(--text-faint); }
.agent-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.agent-hero img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.agent-role-lg { color: var(--accent); font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.team-contacts { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.team-contacts li { display: flex; gap: 14px; align-items: center; }
.team-contacts img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel); }
.team-contacts li > div { display: grid; gap: 2px; font-size: 0.92rem; }
.team-contacts span { color: var(--text-faint); font-size: 0.85rem; }
.team-contacts a { color: var(--accent); text-decoration: none; }
.team-contacts a:hover { text-decoration: underline; }
.team-contacts a b { color: var(--text); }
.firm-info { line-height: 1.7; color: var(--text-dim); }
.contact-form { padding: 24px; border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--panel); }
.contact-form select { width: 100%; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.review-more { margin-top: 22px; text-align: center; color: var(--text-dim); font-size: 0.95rem; }
.review { margin: 0; padding: 22px; border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.review-stars { color: #f5b82e; letter-spacing: 2px; }
.review blockquote { margin: 0; color: var(--text-dim); line-height: 1.65; flex: 1; }
.review figcaption { display: grid; gap: 2px; font-size: 0.9rem; }
.review figcaption span, .review figcaption small { color: var(--text-faint); }
.review figcaption a { color: var(--accent); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.team-name-link { color: inherit; text-decoration: none; }
.team-name-link:hover, .team-name-link:focus-visible { color: var(--accent); }

/* Blog */
.blog-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.blog-cats .chip, .article-meta .chip {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 0.88rem; text-decoration: none;
  border: 1px solid var(--panel-border); color: var(--text-dim); background: var(--panel);
}
.blog-cats .chip:hover, .article-meta .chip:hover, .blog-cats .chip.active { border-color: var(--accent); color: #fff; }
.blog-cats .chip.active { background: var(--accent-soft); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--panel); overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.2s ease, transform 0.2s ease; }
.blog-card:hover, .blog-card:focus-visible { border-color: var(--accent); transform: translateY(-3px); }
.blog-card-img { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-ph { height: 100%; display: grid; place-items: center; color: var(--text-faint); font-size: 2.4rem; }
.blog-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card h3 { font-size: 1.15rem; line-height: 1.35; margin: 0; letter-spacing: 0; }
.blog-card p { margin: 0; font-size: 0.93rem; line-height: 1.55; flex: 1; }
.blog-cat { color: var(--accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.blog-meta { color: var(--text-faint); font-size: 0.82rem; }
.blog-more { text-align: center; margin: 32px 0 0; }

/* Článok */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--text-faint); font-size: 0.9rem; margin: 4px 0 8px; }
.article-meta a { color: var(--accent); text-decoration: none; }
.article-meta i { margin-right: 4px; }
.article { padding-top: 40px !important; }
.article-cover { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-toc { margin: 0 0 32px; padding: 18px 22px; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); background: var(--panel); }
.article-toc b { display: block; margin-bottom: 8px; color: var(--text); }
.article-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.article-toc a { color: var(--accent); text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body h2 { font-size: 1.55rem; margin: 44px 0 14px; scroll-margin-top: 90px; }
.article-body h3 { font-size: 1.2rem; color: var(--text); margin: 30px 0 10px; scroll-margin-top: 90px; }
.article-body p { color: var(--text-dim); margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; display: grid; gap: 8px; color: var(--text-dim); }
.article-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.article-body blockquote p { color: var(--text); margin: 0; font-style: italic; }
.article-body hr { border: 0; border-top: 1px solid var(--panel-border); margin: 36px 0; }
.article-body a { color: var(--accent); }
.md-img { margin: 28px 0; }
.md-img img { width: 100%; border-radius: var(--radius-sm); }
.md-img figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--text-faint); text-align: center; }
.md-stat { padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.md-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 32px 0; padding: 20px 24px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.md-cta b { color: var(--text); flex: 1 1 260px; }
.md-cta span { flex: 1 1 100%; color: var(--text-dim); font-size: 0.93rem; margin-top: -4px; }
.author-box { display: flex; gap: 18px; align-items: center; margin: 40px 0 0; padding: 20px 24px; border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--panel); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box > div { display: grid; gap: 2px; }
.author-label { color: var(--text-faint); font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; }
.author-role { color: var(--text-dim); font-size: 0.9rem; }
.author-box a { color: var(--accent); font-size: 0.9rem; }
.related-articles { border-top: 1px solid var(--panel-border); }
.article-body h2, .article-body h3 { text-transform: none; letter-spacing: 0; }
.article-body a.btn, .prose a.btn, .md-cta a.btn { color: #fff; text-decoration: none; }
.article-body a.btn:hover, .prose a.btn:hover { text-decoration: none; }

/* Zhrnutie "V skratke" na začiatku článku */
.article-summary { margin: 0 0 32px; padding: 22px 26px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.summary-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); margin-bottom: 12px; }
.summary-head i { color: var(--accent); }
.article-summary ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--text); line-height: 1.6; }
.article-summary li::marker { color: var(--accent); }
.article-summary a { color: var(--accent); }

/* Tabuľky v článkoch */
.md-table { margin: 26px 0; overflow-x: auto; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); }
.md-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.md-table th { text-align: left; padding: 12px 16px; color: var(--text); font-weight: 600; background: var(--panel); border-bottom: 2px solid var(--accent); white-space: nowrap; }
.md-table td { padding: 11px 16px; color: var(--text-dim); border-bottom: 1px solid var(--panel-border); }
.md-table tr:last-child td { border-bottom: 0; }
.md-table td:first-child { color: var(--text); }
.md-table .ta-r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.md-table .ta-c { text-align: center; }

/* Stránka Ponuky */
.listing-card[hidden] { display: none !important; }
#pFilters { margin-bottom: 28px; justify-content: flex-start; }

/* Stránka Služby: karty s nadpisom H2 */
.service-card h2 { font-size: 1.05rem; text-transform: none; letter-spacing: 0; margin: 0 0 8px; }
.subpage .services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.subpage .service-card { transform: none; }

/* ==========================================================
   Pozadie podstránok: rovnaký jemný modrý prechod do čiernej ako na úvodnej stránke
   ========================================================== */
.subpage .page-hero {
  background:
    radial-gradient(ellipse 55% 140% at 12% 0%, rgba(28, 169, 224, 0.13), transparent 70%),
    radial-gradient(ellipse 40% 100% at 92% 100%, rgba(28, 169, 224, 0.04), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}
/* modrá žiara v rohu každej sekcie (ľavý a pravý roh sa striedajú) a slabá biela v protiľahlom rohu */
.subpage .section::before, .subpage .section::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
.subpage .section::before {
  width: 520px; height: 520px; top: -160px; left: -140px; filter: blur(90px); opacity: 0.15;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}
.subpage .section::after {
  width: 420px; height: 420px; bottom: -140px; right: -100px; filter: blur(90px); opacity: 0.05;
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}
.subpage .section:nth-of-type(even)::before { left: auto; right: -140px; }
.subpage .section:nth-of-type(even)::after { right: auto; left: -100px; }
.subpage .section.cta-band::before { opacity: 0.20; }
@media (max-width: 700px) {
  .subpage .section::before { width: 340px; height: 340px; top: -120px; left: -120px; opacity: 0.13; }
  .subpage .section:nth-of-type(even)::before { right: -120px; }
}
/* detail ponuky: jemná žiara pod menu */
.detail-main { background: radial-gradient(ellipse 60% 360px at 12% 0%, rgba(28, 169, 224, 0.08), transparent 70%); }

/* ==========================================================
   SVETLÝ / TMAVÝ REŽIM (október 2026)
   Tmavý režim je pôvodný vzhľad (vyššie). Svetlý režim nižšie len prepisuje farby,
   keď má <html> atribút data-theme="light" (nastavuje ho skript v hlavičke).
   ========================================================== */
:root { color-scheme: dark; }
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* tlačidlo slnko / mesiac v hlavičke */
.nav-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: transparent; color: var(--text-dim); border: 1px solid var(--panel-border); font-size: 0.95rem;
  transition: color .2s, border-color .2s, background .2s, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); transform: rotate(-20deg) scale(1.06); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle i { grid-area: 1 / 1; }
.theme-toggle .fa-moon { display: none; }
.site-header.scrolled .theme-toggle { width: 32px; height: 32px; font-size: 0.85rem; }
@media (max-width: 860px) { .theme-toggle { width: 34px; height: 34px; } }

/* logo: biele na tmavom, čierne na svetlom */
.logo-on-light { display: none; }

/* ---------- Farby svetlého režimu ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --panel: rgba(15, 40, 65, 0.035);
  --panel-border: rgba(15, 30, 45, 0.13);
  --glass: rgba(255, 255, 255, 0.82);
  --text: #0f1419;
  --text-dim: #3d4752;
  --text-faint: #66707b;
  --accent: #0878b0;
  --accent-dark: #065d89;
  --accent-soft: rgba(8, 120, 176, 0.10);
  --shadow: 0 25px 50px -12px rgba(15, 30, 45, 0.18);
}
[data-theme="light"] .logo-on-dark { display: none; }
[data-theme="light"] .logo-on-light { display: block; }
[data-theme="light"] .theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-moon { display: inline-block; }

/* časti, ktoré ostávajú tmavé aj vo svetlom režime: úvodné video, prehliadač fotiek, odhadový asistent */
[data-theme="light"] .hero,
[data-theme="light"] .lightbox,
[data-theme="light"] .estimate-modal {
  color-scheme: dark;
  --bg: #0a0a0a; --bg-soft: #111418;
  --panel: rgba(255, 255, 255, 0.04); --panel-border: rgba(255, 255, 255, 0.1);
  --text: #ffffff; --text-dim: #c7cdd3; --text-faint: #8a9099;
  --accent: #1ca9e0; --accent-dark: #0f7fac; --accent-soft: rgba(28, 169, 224, 0.15);
  color: var(--text);
}
[data-theme="light"] .hero::after {
  background: linear-gradient(180deg, rgba(8,9,11,0.5) 0%, rgba(8,9,11,0.62) 60%, rgba(8,9,11,0.7) 100%);
}
[data-theme="light"] .hero .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
[data-theme="light"] .hero .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* tlačidlá */
[data-theme="light"] .btn-outline { border-color: rgba(15,20,25,0.28); color: var(--text); }
[data-theme="light"] .btn-outline:hover { border-color: var(--text); background: rgba(15,20,25,0.04); }
[data-theme="light"] .article-body a.btn-outline,
[data-theme="light"] .prose a.btn-outline,
[data-theme="light"] .md-cta a.btn-outline { color: var(--text); }

/* hlavička a menu */
[data-theme="light"] header.site-header { background: rgba(255,255,255,0.85); border-bottom-color: rgba(15,30,45,0.08); }
[data-theme="light"] header.site-header.scrolled { background: rgba(255,255,255,0.95); box-shadow: 0 10px 30px -14px rgba(15,30,45,0.25); }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active { color: var(--text); }
[data-theme="light"] .nav-toggle { color: var(--text); }
[data-theme="light"] .nav-social a:hover { color: var(--accent); }
@media (max-width: 860px) {
  [data-theme="light"] .nav-links { background: #fff; border-bottom: 1px solid var(--panel-border); box-shadow: 0 20px 30px -20px rgba(15,30,45,0.25); }
}

/* pozadia sekcií */
[data-theme="light"] .ambient-glow { opacity: 0.16; }
[data-theme="light"] .subpage .section::before { opacity: 0.09; }
[data-theme="light"] .subpage .section.cta-band::before { opacity: 0.12; }
[data-theme="light"] #services.bgv-photo {
  background-image:
    linear-gradient(180deg, rgba(243,246,249,0.96) 0%, rgba(243,246,249,0.86) 45%, rgba(243,246,249,0.96) 100%),
    url('assets/bg-services.jpg');
}
[data-theme="light"] #services[class*="bgv-"] .service-card { background: rgba(255,255,255,0.78); border-color: var(--panel-border); }
[data-theme="light"] .reviews-section { background: linear-gradient(180deg, var(--bg) 0%, #eef3f7 100%); }

/* karty */
[data-theme="light"] .service-card,
[data-theme="light"] .team-card,
[data-theme="light"] .listing-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .review { background: #fff; box-shadow: 0 1px 2px rgba(15,30,45,0.05); }
[data-theme="light"] .founder-photo { box-shadow: 0 30px 60px -25px rgba(15,30,45,0.45), 0 0 0 1px rgba(15,30,45,0.08); }
[data-theme="light"] .why-card { background: linear-gradient(160deg, rgba(8,120,176,0.08), rgba(255,255,255,0) 45%), #ffffff; }
[data-theme="light"] .why-list li:hover { background: rgba(15,30,45,0.04); }
[data-theme="light"] .team-photo,
[data-theme="light"] .listing-photo,
[data-theme="light"] .g-tile,
[data-theme="light"] .map-box { background-color: #e8edf2; }
[data-theme="light"] .team-contact a:hover,
[data-theme="light"] .team-contact a:hover i { color: var(--text); }
[data-theme="light"] .listing-price { color: var(--text); }
[data-theme="light"] .param { border-bottom-color: rgba(15,30,45,0.12); }
[data-theme="light"] .tag-demo { background: var(--text); border-color: var(--text); color: #fff; }

/* okrúhle ikonky: biela ikona na modrom pozadí pri prejdení myšou */
[data-theme="light"] .team-social a:hover,
[data-theme="light"] .social-row a:hover,
[data-theme="light"] .share-buttons a:hover,
[data-theme="light"] .share-buttons button:hover,
[data-theme="light"] .rv-nav:hover { color: #fff; }
[data-theme="light"] .share-buttons a,
[data-theme="light"] .share-buttons button,
[data-theme="light"] .rv-nav { color: var(--text); }

/* formuláre */
[data-theme="light"] .form-row input,
[data-theme="light"] .form-row textarea,
[data-theme="light"] .form-row select,
[data-theme="light"] .sp-field select,
[data-theme="light"] .sp-field input,
[data-theme="light"] .calc-num { background: #fff; color: var(--text); }
[data-theme="light"] .calc-num input { color: var(--text); }
[data-theme="light"] select option,
[data-theme="light"] select optgroup { background-color: #fff; color: var(--text); }
[data-theme="light"] select,
[data-theme="light"] .mg-dialog select { color-scheme: light; }
[data-theme="light"] .form-msg.ok { color: #15803d; }
[data-theme="light"] .form-msg.err { color: #b91c1c; }
[data-theme="light"] .sp-toggle:hover,
[data-theme="light"] .search-panel.open .sp-toggle,
[data-theme="light"] .sp-reset:hover { color: var(--text); }

/* detail ponuky */
[data-theme="light"] .map-box .leaflet-tile-pane { filter: none; }
[data-theme="light"] .mobile-cta:not([hidden]) { background: rgba(255,255,255,0.95); }
[data-theme="light"] .modal-overlay { background: rgba(15,20,25,0.6); }

/* recenzie */
[data-theme="light"] .rv-card { background: linear-gradient(160deg, rgba(8,120,176,0.07), rgba(255,255,255,0) 50%), #ffffff; box-shadow: 0 30px 60px -30px rgba(15,30,45,0.3); }
[data-theme="light"] .rv-card blockquote { color: var(--text); }
[data-theme="light"] .rv-dots button { background: rgba(15,30,45,0.15); }
[data-theme="light"] .rv-source { background: rgba(15,30,45,0.04); }
[data-theme="light"] a.rv-source:hover { color: var(--text); }

/* ukážka odhadu na úvode */
[data-theme="light"] .estimate-visual { background: linear-gradient(160deg, #ffffff, #f5f8fb); box-shadow: 0 30px 70px -24px rgba(15,30,45,0.3), 0 0 0 1px rgba(8,120,176,0.08); }
[data-theme="light"] .estimate-visual:hover { box-shadow: 0 40px 80px -24px rgba(15,30,45,0.35), 0 0 0 1px rgba(8,120,176,0.35); }
[data-theme="light"] .ev-head { background: rgba(15,30,45,0.03); }
[data-theme="light"] .ev-msg.bot { background: #eef2f6; }
[data-theme="light"] .ev-msg.result { background: rgba(184,134,11,0.08); border-color: rgba(184,134,11,0.4); color: #7a5600; }
[data-theme="light"] .ev-chips i:first-child { color: var(--text); background: var(--accent-soft); }

/* predané, rezervované, off-market (zlatá a fialová tmavšie, aby boli čitateľné na bielom) */
[data-theme="light"] .closed-price,
[data-theme="light"] .closed-note,
[data-theme="light"] .detail-ppm.closed-note-lg,
[data-theme="light"] .detail-price.is-closed { color: #8a6100; }
[data-theme="light"] .tag-sold { background: rgba(184,134,11,0.12); border-color: rgba(184,134,11,0.45); color: #7a5600; }
[data-theme="light"] .tag-offmarket { background: rgba(109,40,217,0.08); border-color: rgba(109,40,217,0.35); color: #6d28d9; }
[data-theme="light"] .offmarket-note { background: rgba(109,40,217,0.05); border-color: rgba(109,40,217,0.3); }
[data-theme="light"] .offmarket-note > i { color: #6d28d9; }
[data-theme="light"] .offmarket-note b { color: var(--text); }
[data-theme="light"] .util.no > i { background: rgba(15,30,45,0.05); }

/* texty, ktoré boli natvrdo biele */
[data-theme="light"] .about-text p.about-lead,
[data-theme="light"] .about-text strong,
[data-theme="light"] .about-text mark.hl,
[data-theme="light"] .legal-toc a:hover,
[data-theme="light"] .blog-cats .chip:hover,
[data-theme="light"] .article-meta .chip:hover,
[data-theme="light"] .blog-cats .chip.active,
[data-theme="light"] .cc-link:hover,
[data-theme="light"] .cc-link:focus-visible,
[data-theme="light"] footer a:hover { color: var(--text); }
[data-theme="light"] .about-text mark.hl { background-image: linear-gradient(transparent 58%, rgba(28,169,224,0.3) 58%, rgba(28,169,224,0.3) 92%, transparent 92%); }

/* hypotéka: okno s formulárom a kalkulačka */
[data-theme="light"] .mg-modal { background: rgba(15,20,25,0.5); }
[data-theme="light"] .mg-dialog { background: #fff; box-shadow: 0 40px 90px -20px rgba(15,30,45,0.45); }
[data-theme="light"] .mg-close { background: rgba(15,30,45,0.04); color: var(--text); }
[data-theme="light"] .mg-close:hover { color: #fff; }
[data-theme="light"] .mg-listing,
[data-theme="light"] .mg-calc b,
[data-theme="light"] .calc-field label b,
[data-theme="light"] .calc-pay,
[data-theme="light"] .calc-rows dd { color: var(--text); }
[data-theme="light"] .mg-calc { background: rgba(15,30,45,0.04); }
[data-theme="light"] .mg-done i { color: #15803d; }
[data-theme="light"] .calc-box { background: #fff; }
[data-theme="light"] .calc-rows > div { border-top-color: rgba(15,30,45,0.1); }
[data-theme="light"] .calc-warn { color: #7a5600; }

/* pätička, lišta cookies, drobnosti */
[data-theme="light"] footer { border-top-color: var(--panel-border); background: var(--bg-soft); }
[data-theme="light"] .cc-box { background: rgba(255,255,255,0.98); }
[data-theme="light"] .loading-spinner { border-color: rgba(15,30,45,0.15); border-top-color: var(--accent); }
[data-theme="light"] .estimate-modal .loading-spinner { border-color: rgba(255,255,255,0.15); border-top-color: var(--accent); }
[data-theme="light"] .unsub-icon.ok { color: #15803d; }
[data-theme="light"] .unsub-icon.err { color: #b45309; }

/* hlavička s tlačidlom režimu: menu sa nesmie zalomiť do dvoch riadkov */
.nav-links a { white-space: nowrap; }
@media (max-width: 1400px) and (min-width: 861px) { .nav-links { gap: 22px; } .nav-cta { gap: 10px; } }
@media (max-width: 1180px) and (min-width: 861px) { .nav-links { gap: 16px; } .nav-links a { font-size: 0.86rem; } }
@media (max-width: 1060px) and (min-width: 861px) { .nav-social { display: none; } }
@media (max-width: 960px) and (min-width: 861px) { .nav-cta .btn-outline { display: none; } }

/* úvodná stránka, svetlý režim: hlavička nad videom ostáva tmavá ako v tmavom režime,
   po posunutí nadol sa zmení na bielu */
[data-theme="light"] .home header.site-header:not(.scrolled) {
  color-scheme: dark;
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #ffffff; --text-dim: #c7cdd3; --text-faint: #8a9099;
  --accent: #1ca9e0; --accent-soft: rgba(28, 169, 224, 0.15);
  background: rgba(10, 10, 10, 0.55); border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="light"] .home header.site-header:not(.scrolled) .logo-on-light { display: none; }
[data-theme="light"] .home header.site-header:not(.scrolled) .logo-on-dark { display: block; }
[data-theme="light"] .home header.site-header:not(.scrolled) .theme-toggle .fa-moon { display: inline-block; }
[data-theme="light"] .home header.site-header:not(.scrolled) .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
[data-theme="light"] .home header.site-header:not(.scrolled) .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
@media (max-width: 860px) {
  [data-theme="light"] .home header.site-header:not(.scrolled) .nav-links { background: rgba(10,10,10,0.97); border-bottom: 0; }
}
