/* ══════════════════════════════════════════════
   TELEHOME SIP — Main Stylesheet
   ══════════════════════════════════════════════ */

:root {
  --primary:    #0b1f3a;
  --primary-mid:#1e3a5f;
  --accent:     #e8902b;
  --accent-lt:  #f5a63c;
  --logo-tele:  #ffffff;   /* TELE wordmark colour on dark backgrounds */
  --light:      #f6f5f2;
  --white:      #ffffff;
  --gray-100:   #f3f4f6;
  --gray-300:   #d1d5db;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --green:      #22c55e;

  --nav-h:      72px;
  --radius:     12px;
  --radius-lg:  20px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--primary);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; }
[hidden] { display: none !important; }   /* ensure the hidden attribute always hides, even on flex/grid elements */

/* ══════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 2rem;
  z-index: 1000;
  /* Solid navy bar at all times so the menu is always clearly visible */
  background: rgba(11, 31, 58, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.18);
  transition: background 0.4s, box-shadow 0.4s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  white-space: nowrap;
}
.nav-logo em { color: var(--accent); font-style: normal; }
.logo-icon {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
/* ── SIP TELEHOME wordmark logo ──
   SIP + HOME orange, TELE swaps colour with the theme
   (white on dark backgrounds, navy on light) */
.brandmark {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #E8902B;
  white-space: nowrap;
}
.bm-tele { font-weight: 500; color: var(--logo-tele, #fff); }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent);
  color: var(--primary) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-lt); transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--primary);
  padding: 1.5rem 5%;
  z-index: 999;
  transform: translateY(-110%);
  visibility: hidden;            /* truly hidden when closed — can't peek during overscroll */
  transition: transform 0.4s var(--ease-out), visibility 0.4s;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
/* The mobile menu only exists for the hamburger nav — never render it on desktop */
@media (min-width: 769px) { .mobile-menu { display: none; } }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.4rem 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.22s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,144,43,0.35); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════
   SECTION COMMONS
   ══════════════════════════════════════════════ */
section { padding: 100px 0; }
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  background: rgba(232,144,43,0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
  will-change: transform, opacity;
}
/* End-state — high specificity so it always wins over modifiers below */
.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ── Directional / effect modifiers (initial states) ── */
.reveal-left   { transform: translateX(-55px); }
.reveal-right  { transform: translateX(55px); }
.reveal-scale  { transform: scale(0.88) translateY(30px); }
.reveal-blur   { transform: translateY(24px); filter: blur(12px); }
.reveal-rotate { transform: perspective(1400px) rotateX(14deg) translateY(50px); transform-origin: 50% 0; }
.reveal-clip   { clip-path: inset(0 0 100% 0); transform: translateY(20px); }
.reveal-clip.visible { clip-path: inset(0 0 0 0); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  background: var(--primary);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  padding: var(--nav-h) 5% 60px;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.orb1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb2 {
  width: 400px; height: 400px;
  background: #1a6bb5;
  bottom: -150px; left: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb3 {
  width: 300px; height: 300px;
  background: var(--accent);
  top: 50%; left: 50%;
  animation: orbFloat 6s ease-in-out infinite 2s;
  opacity: 0.08;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232,144,43,0.15);
  border: 1px solid rgba(232,144,43,0.3);
  color: #f5b45c;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.1;
}
.hero-title em {
  font-style: normal;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}
.title-accent {
  color: var(--accent);
  display: block;
}

.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-unit { color: var(--accent); font-weight: 700; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.house-diagram {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-right: auto;
}
.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  background: #0b1f3a;
  animation: houseFloat 6s ease-in-out infinite;
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Corner scrim: darkens the four corners so the glass chips stay legible, keeps the house clear */
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 75% at 0% 0%,   rgba(8,22,40,0.62), transparent 44%),
    radial-gradient(115% 75% at 100% 0%, rgba(8,22,40,0.62), transparent 44%),
    radial-gradient(115% 75% at 0% 100%, rgba(8,22,40,0.58), transparent 44%),
    radial-gradient(115% 75% at 100% 100%, rgba(8,22,40,0.58), transparent 44%);
}
[data-theme="light"] .hero-video { border-color: rgba(11,31,58,0.12); box-shadow: 0 30px 70px rgba(11,31,58,0.18); }
.house-svg {
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
  animation: houseFloat 6s ease-in-out infinite;
}
@keyframes houseFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video, .house-svg { animation: none; }
}

.float-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  color: white;
  font-size: 0.8rem;
  white-space: nowrap;
}
.float-label strong { display: block; font-size: 0.9rem; line-height: 1.25; white-space: normal; }
.float-label span { color: rgba(255,255,255,0.6); font-size: 0.72rem; }
.fl-icon {
  width: 34px; height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(232,144,43,0.14);
  color: var(--accent);
}
.fl-icon svg { width: 18px; height: 18px; }
.float-label { max-width: 210px; }
.label-1 { bottom: 7%; left: -34px; transition-delay: 0.2s; }
.label-2 { top: 5%; right: -30px; transition-delay: 0.4s; }
.label-3 { top: 5%; left: -30px; transition-delay: 0.6s; }
.label-4 { bottom: 7%; right: -34px; transition-delay: 0.8s; }

/* Scroll hint */
/* ══════════════════════════════════════════════
   TECHNOLOGY
   ══════════════════════════════════════════════ */
#technology {
  background: var(--light);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 60px;
}

/* SIP Panel diagram */
.panel-diagram {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 32px rgba(11,31,58,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.panel-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
}
.panel-layer:hover { transform: scaleX(1.02); z-index: 1; }
.layer-osb {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c507d 100%);
  color: white;
  height: 80px;
}
.layer-eps {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  height: 160px;
  border: 2px dashed #93c5fd;
  position: relative;
}
.layer-eps::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(147,197,253,0.3) 8px,
    rgba(147,197,253,0.3) 9px
  );
}
.layer-eps span { position: relative; z-index: 1; }
.panel-total {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--gray-100);
  margin-top: 0.5rem;
}

/* ── Brochure / PDF download card (replaces the panel diagram) ── */
.download-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
}
.download-card::after {           /* soft accent glow, top-right */
  content: '';
  position: absolute; top: -45%; right: -35%;
  width: 75%; height: 75%; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,144,43,0.16), transparent 70%);
  pointer-events: none;
}
.dl-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,144,43,0.12); color: var(--accent);
  margin-bottom: 0.2rem;
}
.dl-icon svg { width: 26px; height: 26px; }
.dl-tag {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: rgba(232,144,43,0.1);
  padding: 0.3rem 0.7rem; border-radius: 100px;
}
.dl-title { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0; line-height: 1.25; }
.dl-desc { color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.65; margin: 0; }
.dl-file {
  display: flex; align-items: center; gap: 0.8rem; width: 100%;
  padding: 0.75rem 0.9rem; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.1rem;
}
.dl-filetype {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; color: #fff;
  background: var(--accent); padding: 0.3rem 0.5rem; border-radius: 6px; flex: none;
}
.dl-file-meta { display: flex; flex-direction: column; line-height: 1.35; }
.dl-file-name { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.dl-file-size { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; margin-top: 0.4rem;
  padding: 0.95rem 1.4rem; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(232,144,43,0.28);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.dl-btn svg { width: 18px; height: 18px; }
.dl-btn:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(232,144,43,0.36);
}
[data-theme="light"] .download-card {
  background: #fff; border-color: #e4e8ef; box-shadow: 0 4px 32px rgba(11,31,58,0.08);
}
[data-theme="light"] .dl-title { color: var(--primary); }
[data-theme="light"] .dl-desc { color: #5a6678; }
[data-theme="light"] .dl-file { background: #f6f8fb; border-color: #e8ebf1; }
[data-theme="light"] .dl-file-name { color: #2a3647; }
[data-theme="light"] .dl-file-size { color: #8a94a3; }

.tech-features { display: flex; flex-direction: column; gap: 2rem; }

.tech-feature {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.tf-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 4px;
  min-width: 24px;
}
.tf-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.tf-content p { color: var(--gray-500); font-size: 0.92rem; line-height: 1.65; }

/* Comparison table */
.tech-comparison h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--primary);
}
.comparison-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(11,31,58,0.08);
}
.ct-head, .ct-row {
  display: grid;
  /* minmax(0,…) pins each column to its ratio so every row lines up,
     regardless of how wide the cell text is (it wraps instead of stretching) */
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}
.ct-head {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ct-head > div, .ct-row > div {
  padding: 0.9rem 1.2rem;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.ct-head .ct-sip {
  background: rgba(232,144,43,0.15);
  color: #f5b45c;
}
.ct-row {
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
}
.ct-row:last-child { border-bottom: none; }
.ct-row:hover { background: var(--gray-100); }
.ct-row > div:nth-child(1) { color: var(--gray-700); font-weight: 500; }
.ct-row > div:nth-child(3), .ct-row > div:nth-child(4) { color: var(--gray-500); }
.ct-sip { background: rgba(34, 197, 94, 0.06); }
.ct-sip.green { color: #15803d; font-weight: 700; }
.recommended-tag {
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════
   MODELS
   ══════════════════════════════════════════════ */
#models {
  background: var(--white);
}

.models-filter {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: var(--gray-100);
  border: 2px solid transparent;
  color: var(--gray-500);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.model-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.models-grid .model-card.visible:hover,
.models-grid .model-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 60px rgba(11,31,58,0.12);
  border-color: var(--accent);
}
.model-card.featured,
.model-card.discounted {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(232,144,43,0.15);
}
.model-card.hidden { display: none; }

.model-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.model-img-custom {
  background: linear-gradient(135deg, #1a1a2e 0%, var(--primary) 100%);
}
.custom-icon {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.6;
}
.model-house {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0.5;
}
.model-house::before {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
.model-house::after {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-color: transparent transparent rgba(255,255,255,0.25) transparent;
}
.model-house-s::before { width: 100px; height: 55px; }
.model-house-s::after { border-width: 0 65px 45px 65px; margin-bottom: 55px; }
.model-house-m::before { width: 130px; height: 65px; }
.model-house-m::after { border-width: 0 80px 55px 80px; margin-bottom: 65px; }
.model-house-l::before { width: 150px; height: 75px; }
.model-house-l::after { border-width: 0 90px 60px 90px; margin-bottom: 75px; }
.model-house-xl::before { width: 160px; height: 80px; }
.model-house-xl::after { border-width: 0 95px 65px 95px; margin-bottom: 80px; }
.model-house-xxl::before { width: 175px; height: 90px; }
.model-house-xxl::after { border-width: 0 105px 72px 105px; margin-bottom: 90px; }

.model-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.badge-featured {
  background: var(--accent) !important;
  color: white;
}

.model-body { padding: 1.4rem; }
.model-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.model-size {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(232,144,43,0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.model-class {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(34,197,94,0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.model-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.model-body > p {
  color: var(--gray-500);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.model-specs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.model-specs li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.model-specs li:last-child { border-bottom: none; }
.model-specs span { color: var(--gray-500); }
.model-specs strong { color: var(--primary); font-weight: 600; }

.model-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.price-from {
  font-size: 0.78rem;
  color: var(--gray-500);
}
.price-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.price-unit { font-size: 0.9rem; color: var(--gray-500); }

/* ══════════════════════════════════════════════
   PROCESS
   ══════════════════════════════════════════════ */
/* Animated background canvas (hero + process) */
.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

#process {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
#process .section-container {
  position: relative;
  z-index: 1;
}
#process .section-header h2 { color: var(--white); }
#process .section-header p { color: rgba(255,255,255,0.55); }
#process .section-tag { background: rgba(232,144,43,0.2); color: var(--accent-lt); }

/* Vertical timeline with scroll-fill */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 12px;
}
.timeline-track {
  position: absolute;
  left: 38px; top: 12px; bottom: 12px;
  width: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.timeline-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--accent-lt), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.timeline-step {
  position: relative;
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  padding-bottom: 2.2rem;
}
.timeline-step:last-child { padding-bottom: 0; }
.ts-marker {
  position: relative;
  z-index: 1;
  width: 54px; height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.ts-marker span {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  transition: color 0.4s;
}
.timeline-step.visible .ts-marker {
  background: var(--accent);
  border-color: rgba(232,144,43,0.35);
  box-shadow: 0 0 0 6px rgba(232,144,43,0.12);
}
.timeline-step.visible .ts-marker span { color: #fff; }

.ts-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  flex: 1;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.ts-card:hover {
  transform: translateX(6px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(232,144,43,0.3);
}
.ts-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.ts-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.65;
}
.step-time {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-lt);
  background: rgba(232,144,43,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}

/* ══════════════════════════════════════════════
   CALCULATOR
   ══════════════════════════════════════════════ */
#calculator {
  background: var(--light);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-form { display: flex; flex-direction: column; gap: 2rem; }

.calc-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 2px 20px rgba(11,31,58,0.06);
}
.step-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.step-badge {
  width: 28px; height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Size selector */
.size-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.size-opt { cursor: pointer; }
.size-opt input { display: none; }
.size-card {
  border: 2px solid var(--gray-100);
  border-radius: 10px;
  padding: 0.8rem 0.6rem;
  text-align: center;
  transition: all 0.2s;
  background: var(--white);
}
.size-card strong { display: block; font-size: 0.95rem; color: var(--primary); }
.size-card span { font-size: 0.72rem; color: var(--gray-500); }
.size-opt input:checked + .size-card {
  border-color: var(--accent);
  background: rgba(232,144,43,0.05);
}
.size-opt:hover .size-card { border-color: var(--gray-300); }

/* Extras */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.extra-opt { cursor: pointer; }
.extra-opt input { display: none; }
.extra-card {
  border: 2px solid var(--gray-100);
  border-radius: 10px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.2s;
  background: var(--white);
}
.extra-icon { font-size: 1.1rem; }
.extra-card strong { display: block; font-size: 0.85rem; color: var(--primary); }
.extra-card span { font-size: 0.75rem; color: var(--gray-500); }
.extra-opt input:checked + .extra-card {
  border-color: var(--accent);
  background: rgba(232,144,43,0.05);
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 0.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group[hidden] { display: none; }   /* egyedi módban a típusház-lista elrejthető */
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  color: var(--primary);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,144,43,0.12);
}

/* Result card */
.calc-result { position: sticky; top: calc(var(--nav-h) + 24px); }

.result-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: white;
  box-shadow: 0 20px 60px rgba(11,31,58,0.25);
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.result-tag {
  background: rgba(34,197,94,0.2);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}

.result-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
#resultPrice {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
  display: inline-block;
}
#resultPrice.rolling {
  color: var(--accent-lt);
  transform: scale(1.04);
}
.result-unit { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.result-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.result-breakdown {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.rb-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}
.rb-row span:last-child { font-weight: 600; color: white; }

.result-monthly {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
}
.rm-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.rm-value { font-size: 1rem; font-weight: 700; color: #86efac; }

.result-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 0.8rem;
  line-height: 1.5;
}

/* ── Adatvédelmi hozzájárulás jelölőnégyzet ── */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  margin: 0.4rem 0 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
  user-select: none;
}
.consent-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.consent-box {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  transition: border-color .15s, background .15s;
  position: relative;
}
.consent-check:hover .consent-box { border-color: var(--accent); }
.consent-check input:focus-visible ~ .consent-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.consent-check input:checked ~ .consent-box {
  background: var(--accent);
  border-color: var(--accent);
}
.consent-check input:checked ~ .consent-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}
.consent-text a:hover { color: var(--accent-lt); }
.consent-check.invalid .consent-box { border-color: #ef4444; }
.consent-error {
  display: none;
  color: #ef4444;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: -0.4rem 0 0.7rem;
}
.consent-error.show { display: block; }

[data-theme="light"] .consent-check { color: #5a6678; }
[data-theme="light"] .consent-box { border-color: rgba(11,31,58,0.25); background: rgba(11,31,58,0.03); }

.result-success {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  box-shadow: 0 20px 60px rgba(11,31,58,0.25);
}
.success-icon {
  width: 60px; height: 60px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.result-success h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.result-success p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; }

/* ══════════════════════════════════════════════
   HÍRLEVÉL (newsletter band)
   ══════════════════════════════════════════════ */
.newsletter {
  padding: 80px 6% 90px;
}
.newsletter-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--radius-lg, 20px);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(232,144,43,0.14) 0%, rgba(232,144,43,0) 55%),
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  position: relative;
  overflow: hidden;
}
.newsletter-band::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(232,144,43,0.18), transparent 70%);
  pointer-events: none;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.newsletter-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0.8rem 0 1rem;
  color: #fff;
}
.newsletter-copy p {
  color: rgba(255,255,255,0.66);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}
.newsletter-form { display: flex; flex-direction: column; }
.nl-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.newsletter-form .form-group { display: flex; flex-direction: column; }
.newsletter-form label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}
.newsletter-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.16);
  background: rgba(9,20,38,0.55);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.32); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(9,20,38,0.8);
}
.nl-submit { width: 100%; justify-content: center; }
.nl-error {
  display: none;
  color: #ef4444;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 0.7rem;
}
.nl-error.show { display: block; }
.nl-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.55;
  margin: 0.9rem 0 0;
}
.nl-note a { color: var(--accent); text-decoration: underline; }
.nl-note a:hover { color: var(--accent-lt); }
.newsletter-success {
  text-align: center;
  padding: 1.5rem 1rem;
}
.newsletter-success h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.5rem; }
.newsletter-success p { color: rgba(255,255,255,0.66); font-size: 0.92rem; line-height: 1.65; margin: 0; }

[data-theme="light"] .newsletter-band {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(232,144,43,0.12) 0%, rgba(232,144,43,0) 55%),
    linear-gradient(135deg, rgba(11,31,58,0.04), rgba(11,31,58,0.01));
  border-color: #e6e9ef;
  box-shadow: 0 24px 60px rgba(11,31,58,0.08);
}
[data-theme="light"] .newsletter-copy h2 { color: var(--primary); }
[data-theme="light"] .newsletter-copy p { color: #5a6678; }
[data-theme="light"] .newsletter-form label { color: #5a6678; }
[data-theme="light"] .newsletter-form input {
  background: #fff;
  border-color: rgba(11,31,58,0.15);
  color: var(--primary);
}
[data-theme="light"] .newsletter-form input::placeholder { color: #9aa4b2; }
[data-theme="light"] .nl-note { color: #5a6678; }
[data-theme="light"] .newsletter-success h3 { color: var(--primary); }
[data-theme="light"] .newsletter-success p { color: #5a6678; }

@media (max-width: 860px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .nl-fields { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
#footer {
  background: #060f1e;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; color: white; }
.footer-brand > p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.footer-links h4, .footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1rem;
}
.footer-links ul, .footer-contact ul {
  display: flex; flex-direction: column; gap: 0.55rem;
}
.footer-links a {
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.footer-contact svg { flex-shrink: 0; opacity: 0.5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a { transition: color 0.2s; }
.footer-bottom-links a:hover { color: white; }

/* ══════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════ */
#testimonials { background: var(--light); }

.testi-carousel {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 2.6rem 2.6rem 2rem;
}
.testi-track {
  position: relative;
  min-height: 300px;
}
.testi-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.testi-slide.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.testi-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.4rem;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: 1.1rem;
  height: 1.4rem;
}
.testi-quote {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--primary);
  font-weight: 400;
  max-width: 640px;
  margin-bottom: 1.9rem;
  text-align: center;
}
.testi-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.testi-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  margin-bottom: 0.35rem;
  box-shadow: 0 0 0 4px rgba(240,168,70,0.14);
}
.testi-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.testi-meta { font-size: 0.82rem; color: var(--gray-500); }
.testi-stars { display: inline-flex; gap: 3px; color: var(--accent); }
.testi-pills { margin-top: 0.15rem; }

/* ══════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════ */
#faq { background: var(--white); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.faq-item {
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item:not([open]):hover {
  border-color: rgba(232,144,43,0.45);
  box-shadow: 0 4px 16px rgba(11,31,58,0.10);
}
.faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(11,31,58,0.07);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Circular toggle chip — matches the technology cards */
.faq-item summary::after {
  content: '+';
  flex: none;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(232,144,43,0.12);
  color: var(--accent);
  font-size: 1.4rem; font-weight: 400; line-height: 1;
  transition: transform 0.3s var(--ease-out), background 0.25s, color 0.25s;
}
.faq-item:hover summary::after { background: rgba(232,144,43,0.22); }
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
.faq-answer {
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}
.faq-item[open] .faq-answer {
  max-height: 600px;
  padding: 0 1.4rem 1.2rem;
}
.faq-answer p { color: var(--gray-500); font-size: 0.92rem; line-height: 1.7; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .panel-diagram { max-width: 400px; margin: 0 auto; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  #hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 32px);
    text-align: center;
    min-height: auto;
    padding-bottom: 80px;
  }
  /* Hero house: show it below the copy, cards reflow to a 2×2 grid under the house */
  .hero-visual { display: flex; margin-top: 2.5rem; }
  .house-diagram {
    max-width: 460px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .hero-video { grid-column: 1 / -1; animation: none; }   /* full width, no float on mobile */
  .float-label {
    position: static;
    max-width: none;
    white-space: normal;
    text-align: left;
    padding: 0.6rem 0.7rem;
  }
  .float-label strong { font-size: 0.82rem; }
  .fl-icon { width: 30px; height: 30px; border-radius: 8px; }
  .fl-icon svg { width: 16px; height: 16px; }

  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-sub { margin: 0 auto; }
  .hero-badge { margin: 0 auto; }

  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }

  section { padding: 64px 0; }

  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .size-selector { grid-template-columns: repeat(2, 1fr); }
  .extras-grid { grid-template-columns: 1fr; }

  .models-grid { grid-template-columns: 1fr; }
  .comparison-table { overflow-x: auto; }
  .ct-head, .ct-row { min-width: 520px; }

  .footer-container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .testi-quote { font-size: 1.1rem; }
  .timeline { padding-left: 0; }
  .timeline-track { left: 26px; }
  .ts-marker { width: 44px; height: 44px; }
  .ts-marker span { font-size: 0.95rem; }
  .timeline-step { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1rem; }
  .stat-divider { display: none; }
  .size-selector { grid-template-columns: repeat(2, 1fr); }
  .testi-author { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════
   FULL DARK THEME — unified hero-style background
   One continuous backdrop; all sections transparent;
   light surfaces become frosted glass with light text.
   ══════════════════════════════════════════════ */
body { background: var(--primary); color: #e8eef5; }

/* Continuous fixed backdrop */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #123257 0%, #0b1f3a 52%, #081628 100%);
}
.site-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 100%);
}
.site-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.16;
  display: block;
}
.site-orb1 { width: 620px; height: 620px; background: var(--accent); top: -180px; right: -120px; animation: orbFloat 9s ease-in-out infinite; }
.site-orb2 { width: 500px; height: 500px; background: #1a6bb5; top: 42%; left: -150px; animation: orbFloat 11s ease-in-out infinite reverse; }
.site-orb3 { width: 460px; height: 460px; background: var(--accent); bottom: -160px; right: 16%; opacity: 0.10; animation: orbFloat 8s ease-in-out infinite 1.5s; }

/* Sections transparent so the backdrop shows through everywhere */
#hero, #technology, #models, #process, #testimonials, #faq, #calculator { background: transparent; }

/* Headings + copy → light */
.section-header h2 { color: #ffffff; }
.section-header p  { color: rgba(255,255,255,0.62); }
.section-tag { background: rgba(232,144,43,0.15); }

/* ── Technology ── */
.panel-diagram { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09); box-shadow: none; }
.panel-total { color: rgba(255,255,255,0.55); border-top-color: rgba(255,255,255,0.1); }
.tf-content h3 { color: #fff; }
.tf-content p  { color: rgba(255,255,255,0.6); }
.tech-comparison h3 { color: #fff; }
.comparison-table { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09); box-shadow: none; }
.ct-row { border-bottom-color: rgba(255,255,255,0.08); }
.ct-row:hover { background: rgba(255,255,255,0.045); }
.ct-row > div:nth-child(1) { color: rgba(255,255,255,0.85); }
.ct-row > div:nth-child(3), .ct-row > div:nth-child(4) { color: rgba(255,255,255,0.5); }
.ct-sip { background: rgba(34,197,94,0.1); }
.ct-sip.green { color: #4ade80; }

/* ── Models ── */
.model-card { background: rgba(255,255,255,0.045); border: 1.5px solid rgba(255,255,255,0.09); }
.model-body h3 { color: #fff; }
.model-body > p { color: rgba(255,255,255,0.6); }
.model-specs li { border-bottom-color: rgba(255,255,255,0.08); }
.model-specs span { color: rgba(255,255,255,0.5); }
.model-specs strong { color: #fff; }
.price-num { color: #fff; }
.price-from, .price-unit { color: rgba(255,255,255,0.5); }
.filter-btn { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.filter-btn:hover { color: #fff; }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }

/* ── Calculator ── */
.calc-step { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09); box-shadow: none; }
.step-title { color: #fff; }
.size-card, .extra-card { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.12); }
.size-card strong, .extra-card strong { color: #fff; }
.size-card span, .extra-card span { color: rgba(255,255,255,0.55); }
.size-opt input:checked + .size-card,
.extra-opt input:checked + .extra-card { background: rgba(232,144,43,0.16); border-color: var(--accent); }
.size-opt:hover .size-card { border-color: rgba(255,255,255,0.3); }
.form-group label { color: rgba(255,255,255,0.75); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group select option { color: #111; }
.result-card, .result-success { background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.1); }

/* ── Testimonials ── */
.testi-quote { color: #fff; }
.testi-name { color: #fff; }
.testi-meta { color: rgba(255,255,255,0.55); }
.testi-avatar {
  background: linear-gradient(135deg, rgba(240,168,70,0.9), rgba(240,168,70,0.55));
  color: #fff;
}

/* ── FAQ ── */
.faq-item { background: rgba(255,255,255,0.045); border: 1.5px solid rgba(255,255,255,0.09); }
.faq-item[open] { border-color: var(--accent); box-shadow: none; }
.faq-item summary { color: #fff; }
.faq-answer p { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════════════════
   MODEL CARD — uniform layout across all cards
   Equal-height bodies, aligned specs/price, and a
   consistent full-width CTA anchored to the bottom.
   ══════════════════════════════════════════════ */
.model-card { display: flex; flex-direction: column; }
.model-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.model-body > p { min-height: 5.2rem; }      /* reserve up to ~4 lines so specs align */
.model-specs { margin-bottom: 1.2rem; }
.model-price {
  min-height: 2.4rem;
  display: flex;
  align-items: baseline;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}
.model-body .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;            /* pin CTA to the bottom of every card */
}

@media (max-width: 768px) {
  .model-body > p { min-height: 0; }   /* single column — no need to reserve */
}

/* ── Uniform house thumbnails (override per-model sizing) ── */
.model-house-s::before, .model-house-m::before, .model-house-l::before,
.model-house-xl::before, .model-house-xxl::before {
  width: 124px; height: 62px;
}
.model-house-s::after, .model-house-m::after, .model-house-l::after,
.model-house-xl::after, .model-house-xxl::after {
  border-width: 0 78px 54px 78px;
  margin-bottom: 62px;
}

/* ── Top nav scrim — clean surface behind the menu before scroll ── */
/* Nav keeps its solid background at all times (defined on #nav above), so the
   menu is always readable — no text shadow or transparent-at-top handling needed. */

/* ══════════════════════════════════════════════
   FOOTER — aligned to the dark design language
   Translucent glass panel, accent hairline, and the
   same orange underline-on-hover used in the top nav.
   ══════════════════════════════════════════════ */
#footer {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  position: relative;
  backdrop-filter: blur(6px);
}
#footer::before {                      /* accent hairline, echoes the nav scrim */
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(232,144,43,0.5) 50%, transparent 92%);
}

.footer-brand > p { color: rgba(255,255,255,0.55); }

/* Section-style heading treatment (matches .section-tag chips) */
.footer-links h4, .footer-contact h4 { color: #fff; }

/* Links — orange underline-on-hover, same motif as nav links */
.footer-links a {
  position: relative;
  width: fit-content;
  color: rgba(255,255,255,0.6);
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.footer-links a:hover { color: var(--accent-lt); }
.footer-links a:hover::after { transform: scaleX(1); }

/* Social — glass tiles consistent with cards */
.footer-social a {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.footer-social a:hover {
  background: rgba(232,144,43,0.12);
  border-color: var(--accent);
  color: var(--accent-lt);
  transform: translateY(-2px);
}

/* Contact — accent-tinted icons */
.footer-contact li { color: rgba(255,255,255,0.6); }
.footer-contact svg { color: var(--accent); opacity: 0.85; }

/* Bottom bar */
.footer-bottom { border-top-color: rgba(255,255,255,0.07); color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--accent-lt); }

/* ── Custom-styled select to match the glass inputs ── */
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 2.6rem;
  color: rgba(255,255,255,0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.55'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}
.form-group select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23e8902b' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}
.form-group select option { background: #102a4d; color: #fff; }

/* Select placeholder ("Válasszon...") matches the muted input placeholders;
   becomes full white once a real option is selected. */
.form-group select { color: #fff; }
.form-group select:has(option[value=""]:checked) { color: rgba(255,255,255,0.4); }
.form-group select option[value=""] { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════════════
   BACK-TO-TOP — glass button + scroll-progress ring
   ══════════════════════════════════════════════ */
.to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(13,32,58,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  z-index: 950;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.2s, border-color 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(232,144,43,0.45);
}
.tt-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.tt-track { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 2.5; }
.tt-prog {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transition: stroke-dashoffset 0.1s linear;
}
.tt-arrow { position: relative; transition: color 0.2s; }
.to-top:hover .tt-arrow { color: var(--accent-lt); }

@media (max-width: 768px) {
  .to-top { bottom: 18px; right: 18px; width: 46px; height: 46px; }
}

/* ══════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ══════════════════════════════════════════════ */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.12); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ══════════════════════════════════════════════
   LIGHT THEME  (activated by html[data-theme="light"])
   ══════════════════════════════════════════════ */
[data-theme="light"] body { background: #eef2f7; color: #26303f; }

[data-theme="light"] .site-bg {
  background: radial-gradient(120% 80% at 50% -10%, #ffffff 0%, #eef2f7 52%, #e2e8f1 100%);
}
[data-theme="light"] .site-bg-grid {
  background-image:
    linear-gradient(rgba(11,31,58,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,58,0.05) 1px, transparent 1px);
}
[data-theme="light"] .site-orb { opacity: 0.10; }
[data-theme="light"] .site-orb2 { background: #3b82f6; }

/* TELE wordmark turns navy on light backgrounds */
[data-theme="light"] { --logo-tele: #234A63; }

/* Nav */
[data-theme="light"] #nav,
[data-theme="light"] #nav.scrolled { background: rgba(255,255,255,0.9); box-shadow: 0 1px 20px rgba(11,31,58,0.08); }
[data-theme="light"] .nav-logo { color: var(--primary); }
[data-theme="light"] .nav-links a { color: rgba(11,31,58,0.7); }
[data-theme="light"] .nav-links a:hover { color: var(--primary); }
[data-theme="light"] .burger span { background: var(--primary); }
[data-theme="light"] .mobile-menu { background: #fff; }
[data-theme="light"] .mobile-menu a { color: rgba(11,31,58,0.8); border-bottom-color: rgba(11,31,58,0.08); }
[data-theme="light"] .theme-toggle { background: rgba(11,31,58,0.05); border-color: rgba(11,31,58,0.14); color: var(--primary); }
[data-theme="light"] .theme-toggle:hover { background: rgba(11,31,58,0.1); }

/* Hero */
[data-theme="light"] .hero-title { color: var(--primary); }
[data-theme="light"] .hero-title em { color: rgba(11,31,58,0.55); }
[data-theme="light"] .hero-sub { color: #5a6678; }
[data-theme="light"] .hero-badge { color: var(--accent); background: rgba(232,144,43,0.1); border-color: rgba(232,144,43,0.3); }
[data-theme="light"] .stat-num { color: var(--primary); }
[data-theme="light"] .stat-label { color: #5a6678; }
[data-theme="light"] .stat-divider { background: rgba(11,31,58,0.12); }
[data-theme="light"] .float-label { background: rgba(255,255,255,0.85); border-color: rgba(11,31,58,0.1); color: var(--primary); }
[data-theme="light"] .float-label span { color: #5a6678; }

/* Section headers */
[data-theme="light"] .section-header h2 { color: var(--primary); }
[data-theme="light"] .section-header p { color: #5a6678; }

/* Buttons */
[data-theme="light"] .btn-ghost { background: rgba(11,31,58,0.06); color: var(--primary); border-color: rgba(11,31,58,0.15); }
[data-theme="light"] .btn-ghost:hover { background: rgba(11,31,58,0.1); }
[data-theme="light"] .btn-outline { color: var(--primary); border-color: var(--primary); }
[data-theme="light"] .btn-outline:hover { background: var(--primary); color: #fff; }

/* Technology */
[data-theme="light"] .panel-diagram { background: #fff; border-color: #e4e8ef; box-shadow: 0 4px 32px rgba(11,31,58,0.08); }
[data-theme="light"] .panel-total { color: #5a6678; border-top-color: #eef0f4; }
[data-theme="light"] .tf-content h3 { color: var(--primary); }
[data-theme="light"] .tf-content p { color: #5a6678; }
[data-theme="light"] .tech-comparison h3 { color: var(--primary); }
[data-theme="light"] .comparison-table { background: #fff; border-color: #e4e8ef; box-shadow: 0 4px 32px rgba(11,31,58,0.08); }
[data-theme="light"] .ct-row { border-bottom-color: #eef0f4; }
[data-theme="light"] .ct-row:hover { background: #f6f8fb; }
[data-theme="light"] .ct-row > div:nth-child(1) { color: var(--gray-700); }
[data-theme="light"] .ct-row > div:nth-child(3),
[data-theme="light"] .ct-row > div:nth-child(4) { color: var(--gray-500); }
[data-theme="light"] .ct-sip { background: rgba(34,197,94,0.06); }
[data-theme="light"] .ct-sip.green { color: #15803d; }

/* Models */
[data-theme="light"] .model-card { background: #fff; border-color: #e6e9ef; }
[data-theme="light"] .model-body h3 { color: var(--primary); }
[data-theme="light"] .model-body > p { color: #5a6678; }
[data-theme="light"] .model-specs li { border-bottom-color: #eef0f4; }
[data-theme="light"] .model-specs span { color: #5a6678; }
[data-theme="light"] .model-specs strong { color: var(--primary); }
[data-theme="light"] .price-num { color: var(--primary); }
[data-theme="light"] .price-from, [data-theme="light"] .price-unit { color: #5a6678; }
[data-theme="light"] .filter-btn { background: #eef1f5; color: #5a6678; }
[data-theme="light"] .filter-btn:hover { color: var(--primary); }
[data-theme="light"] .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Process timeline */
[data-theme="light"] #process .section-header h2 { color: var(--primary); }
[data-theme="light"] #process .section-header p { color: #5a6678; }
[data-theme="light"] .timeline-track { background: rgba(11,31,58,0.1); }
[data-theme="light"] .ts-marker { background: #fff; border-color: rgba(11,31,58,0.15); }
[data-theme="light"] .ts-marker span { color: #5a6678; }
[data-theme="light"] .timeline-step.visible .ts-marker { background: var(--accent); border-color: rgba(232,144,43,0.35); }
[data-theme="light"] .timeline-step.visible .ts-marker span { color: #fff; }
[data-theme="light"] .ts-card { background: #fff; border-color: #e6e9ef; }
[data-theme="light"] .ts-card:hover { background: #f6f8fb; border-color: rgba(232,144,43,0.3); }
[data-theme="light"] .ts-card h3 { color: var(--primary); }
[data-theme="light"] .ts-card p { color: #5a6678; }

/* Calculator */
[data-theme="light"] .calc-step { background: #fff; border-color: #e6e9ef; box-shadow: 0 2px 20px rgba(11,31,58,0.06); }
[data-theme="light"] .step-title { color: var(--primary); }
[data-theme="light"] .size-card, [data-theme="light"] .extra-card { background: #fff; border-color: #e6e9ef; }
[data-theme="light"] .size-card strong, [data-theme="light"] .extra-card strong { color: var(--primary); }
[data-theme="light"] .size-card span, [data-theme="light"] .extra-card span { color: #5a6678; }
[data-theme="light"] .size-opt input:checked + .size-card,
[data-theme="light"] .extra-opt input:checked + .extra-card { background: rgba(232,144,43,0.05); border-color: var(--accent); }
[data-theme="light"] .size-opt:hover .size-card { border-color: #cdd3dc; }
[data-theme="light"] .form-group label { color: var(--gray-700); }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea { background: #fff; border-color: #d1d5db; color: var(--primary); }
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: #9aa4b2; }
[data-theme="light"] .form-group select { color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-opacity='0.55'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); }
[data-theme="light"] .form-group select:has(option[value=""]:checked) { color: #9aa4b2; }
[data-theme="light"] .form-group select option { background: #fff; color: #111; }
[data-theme="light"] .result-card, [data-theme="light"] .result-success { background: var(--primary); border: none; }

/* Testimonials */
[data-theme="light"] .testi-quote { color: var(--primary); }
[data-theme="light"] .testi-name { color: var(--primary); }
[data-theme="light"] .testi-meta { color: #5a6678; }
[data-theme="light"] .testi-carousel { background: rgba(255,255,255,0.6); border-color: rgba(11,31,58,0.1); }

/* FAQ */
[data-theme="light"] .faq-item { background: #fff; border-color: #e6e9ef; }
[data-theme="light"] .faq-item[open] { border-color: var(--accent); box-shadow: 0 8px 30px rgba(11,31,58,0.07); }
[data-theme="light"] .faq-item summary { color: var(--primary); }
[data-theme="light"] .faq-answer p { color: #5a6678; }

/* Footer */
[data-theme="light"] #footer { background: rgba(11,31,58,0.02); border-top-color: #e6e9ef; color: #5a6678; }
[data-theme="light"] #footer::before { background: linear-gradient(90deg, transparent 8%, rgba(232,144,43,0.45) 50%, transparent 92%); }
[data-theme="light"] .footer-brand .nav-logo { color: var(--primary); }
[data-theme="light"] .footer-brand > p { color: #5a6678; }
[data-theme="light"] .footer-links h4, [data-theme="light"] .footer-contact h4 { color: var(--primary); }
[data-theme="light"] .footer-links a { color: #5a6678; }
[data-theme="light"] .footer-links a:hover { color: var(--accent); }
[data-theme="light"] .footer-social a { background: rgba(11,31,58,0.04); border-color: rgba(11,31,58,0.12); color: #5a6678; }
[data-theme="light"] .footer-social a:hover { color: var(--accent); border-color: var(--accent); background: rgba(232,144,43,0.1); }
[data-theme="light"] .footer-contact li { color: #5a6678; }
[data-theme="light"] .footer-contact svg { color: var(--accent); }
[data-theme="light"] .footer-bottom { border-top-color: #e6e9ef; color: #5a6678; }
[data-theme="light"] .footer-bottom-links a:hover { color: var(--accent); }

/* Back-to-top */
[data-theme="light"] .to-top { background: #fff; border-color: #e0e4ea; color: var(--primary); box-shadow: 0 10px 30px rgba(11,31,58,0.15); }
[data-theme="light"] .to-top:hover { background: var(--accent); border-color: var(--accent); }
[data-theme="light"] .tt-track { stroke: rgba(11,31,58,0.12); }
[data-theme="light"] .to-top .tt-arrow { color: var(--primary); }
[data-theme="light"] .to-top:hover .tt-arrow { color: #fff; }

@media (max-width: 768px) {
  .theme-toggle { margin-left: auto; }
}

/* ══════════════════════════════════════════════
   HERO HOUSE — "build from blocks" assembly animation
   Walls rise → windows/door pop in → roof drops on top
   → SIP panel lines fade in. Replays when hero re-enters.
   (transform-only where possible to preserve SVG fills)
   ══════════════════════════════════════════════ */
@keyframes hFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hPop  { 0% { transform: scale(0); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes hRoof { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hLine { from { opacity: 0; } to { opacity: 0.35; } }

.house-svg.build .h-shadow { animation: hFade 0.4s ease both 0.1s; }
.house-svg.build .h-body {
  transform-box: fill-box; transform-origin: center bottom;
  animation: hRise 0.6s var(--ease-out) both 0.2s;
}
.house-svg.build .h-panel {
  transform-box: fill-box; transform-origin: center bottom;
  animation: hRise 0.5s var(--ease-out) both;   /* per-panel delay set inline */
}
.house-svg.build .h-win {
  transform-box: fill-box; transform-origin: center;
  animation: hPop 0.45s var(--ease-spring) both;   /* per-window delay set inline */
}
.house-svg.build .h-door {
  transform-box: fill-box; transform-origin: center bottom;
  animation: hPop 0.45s var(--ease-spring) both 1.50s;
}
.house-svg.build .h-knob {
  transform-box: fill-box; transform-origin: center;
  animation: hPop 0.4s var(--ease-spring) both 1.62s;
}
.house-svg.build .h-roof {
  transform-box: fill-box; transform-origin: center top;
  animation: hRoof 0.6s var(--ease-out) both 1.55s;
}
.house-svg.build .h-line { animation: hLine 0.5s ease both; }  /* per-line delay set inline */

@media (prefers-reduced-motion: reduce) {
  .house-svg.build .h-shadow,
  .house-svg.build .h-body,
  .house-svg.build .h-panel,
  .house-svg.build .h-win,
  .house-svg.build .h-door,
  .house-svg.build .h-knob,
  .house-svg.build .h-roof,
  .house-svg.build .h-line { animation: none !important; }
}

/* ── Light theme: frosted (translucent white) surfaces ── */
[data-theme="light"] .panel-diagram,
[data-theme="light"] .comparison-table,
[data-theme="light"] .model-card,
[data-theme="light"] .calc-step,
[data-theme="light"] .ts-card,
[data-theme="light"] .faq-item {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 4px 24px rgba(11,31,58,0.06);
}
[data-theme="light"] .size-card,
[data-theme="light"] .extra-card {
  background: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.65);
}
/* Kedvezményes / bestseller kártya: állandó narancs keret világos témában is */
[data-theme="light"] .model-card.featured,
[data-theme="light"] .model-card.discounted {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(232,144,43,0.18);
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.7);
}
[data-theme="light"] .float-label {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-theme="light"] .ct-row:hover { background: rgba(255,255,255,0.45); }
[data-theme="light"] .ts-card:hover { background: rgba(255,255,255,0.75); }

/* ── Light theme: frosted result card (calculator) ── */
[data-theme="light"] .result-card,
[data-theme="light"] .result-success {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 8px 30px rgba(11,31,58,0.08);
}
[data-theme="light"] .result-header { color: #5a6678; }
[data-theme="light"] .result-tag { background: rgba(34,197,94,0.14); color: #15803d; }
[data-theme="light"] #resultPrice { color: var(--primary); }
[data-theme="light"] .result-unit { color: #5a6678; }
[data-theme="light"] .result-note { color: #5a6678; }
[data-theme="light"] .result-breakdown { background: rgba(11,31,58,0.04); }
[data-theme="light"] .rb-row { color: #5a6678; }
[data-theme="light"] .rb-row span:last-child { color: var(--primary); }
[data-theme="light"] .result-monthly { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); }
[data-theme="light"] .rm-label { color: #5a6678; }
[data-theme="light"] .rm-value { color: #15803d; }
[data-theme="light"] .result-disclaimer { color: #5a6678; }
[data-theme="light"] .result-success h3 { color: var(--primary); }
[data-theme="light"] .result-success p { color: #5a6678; }

/* ── Light theme: comparison table header ── */
[data-theme="light"] .ct-head {
  background: rgba(11,31,58,0.05);
  color: #5a6678;
  border-bottom: 1px solid rgba(11,31,58,0.08);
}
[data-theme="light"] .ct-head > div { border-right-color: rgba(11,31,58,0.06); }
[data-theme="light"] .ct-head .ct-sip { background: rgba(232,144,43,0.1); color: var(--accent); }

/* ── Extra option cards: uniform height + aligned prices ── */
.extra-card { min-height: 66px; }
.extra-card strong { line-height: 1.25; }
.extra-card span {
  white-space: nowrap;
  margin-left: auto;
  padding-left: 0.6rem;
  text-align: right;
}

/* ══════════════════════════════════════════════
   FOOTER CERTIFICATE BADGE + PDF MODAL
   ══════════════════════════════════════════════ */
.footer-cert {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cert-logo {
  width: 84px; height: 84px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  object-fit: contain;
}
.cert-links { display: flex; flex-direction: column; gap: 0.25rem; }
.cert-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.15rem;
}
.cert-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.cert-ico {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.2s;
}
.cert-link em {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid rgba(232,144,43,0.4);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  margin-left: 0.25rem;
}
.cert-link:hover { color: var(--accent-lt); }
.cert-link:hover .cert-ico { transform: translateY(-1px) scale(1.08); }
[data-theme="light"] .footer-cert { border-top-color: rgba(11,31,58,0.1); }
[data-theme="light"] .cert-title { color: var(--primary); }
[data-theme="light"] .cert-link { color: #5a6678; }
[data-theme="light"] .cert-link:hover { color: var(--accent); }

/* PDF modal */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.pdf-modal.open { display: flex; }
.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,12,24,0.75);
  backdrop-filter: blur(4px);
}
.pdf-modal-card {
  position: relative;
  width: min(900px, 100%);
  height: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #0b1f3a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: pdfPop 0.3s var(--ease-out);
}
@keyframes pdfPop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.pdf-modal-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pdf-modal-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-modal-open {
  font-size: 0.82rem;
  color: var(--accent-lt);
  white-space: nowrap;
}
.pdf-modal-open:hover { text-decoration: underline; }
.pdf-modal-close {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.pdf-modal-close:hover { background: rgba(232,144,43,0.3); }
.pdf-modal-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}

/* ══════════════════════════════════════════════
   TECHNOLOGY — extended content blocks
   ══════════════════════════════════════════════ */
.tech-elements { margin-top: 3.5rem; }
.tech-elements h3 {
  font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 1.2rem;
}
.elements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
}
.elements-grid li {
  position: relative;
  padding: 0.75rem 0.95rem 0.75rem 2.4rem;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  transition: border-color 0.2s, background 0.2s;
}
.elements-grid li:hover { border-color: rgba(232,144,43,0.4); background: rgba(255,255,255,0.06); }
.elements-grid li::before {
  content: '';
  position: absolute;
  left: 0.95rem; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 2px;
  background: var(--accent);
}

/* Guarantee callout */
.tg-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(232,144,43,0.15);
  color: var(--accent-lt);
}
.tg-body h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.tg-body p { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.65; }
.tg-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.tg-badges span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent-lt);
  background: rgba(232,144,43,0.12);
  border: 1px solid rgba(232,144,43,0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}

/* Detail cards */
.tech-detail-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;   /* collapsed cards keep their own height, don't stretch to an open neighbour */
}
/* Uniform closed-card height so cards line up regardless of title length.
   Open cards grow past this; on mobile (single column) natural height is fine. */
@media (min-width: 769px) {
  .tech-detail-grid > .tech-detail { min-height: 160px; }
}
.tech-detail {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
/* Hover affordance — whole card reads as clickable */
.tech-detail:not([open]):hover {
  border-color: rgba(232,144,43,0.45);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 6px 24px rgba(0,0,0,0.16);
}
.tech-detail[open] {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.tech-detail > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.8rem;
  display: flex;
  align-items: flex-start;          /* toggle pinned to top, aligned across 1- and 2-line titles */
  justify-content: space-between;
  gap: 1.2rem;
}
.tech-detail > summary::-webkit-details-marker { display: none; }
.detail-summary-main { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
/* Circular toggle chip */
.tech-detail > summary::after {
  content: '+';
  flex: none;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(232,144,43,0.12);
  color: var(--accent);
  font-size: 1.5rem; font-weight: 400; line-height: 1;
  transition: transform 0.3s var(--ease-out), background 0.25s, color 0.25s;
}
.tech-detail:hover > summary::after { background: rgba(232,144,43,0.22); }
.tech-detail[open] > summary::after {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
.detail-body {
  padding: 0 1.8rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out), padding 0.45s var(--ease-out);
}
.tech-detail[open] .detail-body {
  max-height: 1200px;
  padding: 0 1.8rem 1.8rem;
}
.detail-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(232,144,43,0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}
.tech-detail h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0; }
.tech-detail p { color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.65; margin-bottom: 0.8rem; }
.detail-list { display: flex; flex-direction: column; gap: 0.55rem; margin: 0.4rem 0 0.9rem; }
.detail-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.detail-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 16px; height: 16px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e8902b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.detail-foot {
  font-size: 0.88rem !important;
  color: var(--accent-lt) !important;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.9rem;
  margin-bottom: 0 !important;
}

/* ── Light theme overrides for the new blocks ── */
[data-theme="light"] .tech-elements h3,
[data-theme="light"] .tg-body h3,
[data-theme="light"] .tech-detail h3 { color: var(--primary); }
[data-theme="light"] .elements-grid li {
  background: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.7);
  color: #2a3647;
  backdrop-filter: blur(10px);
}
[data-theme="light"] .tg-body p { color: #5a6678; }
[data-theme="light"] .tech-detail {
  background: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(11,31,58,0.06);
}
[data-theme="light"] .tech-detail p { color: #5a6678; }
[data-theme="light"] .detail-list li { color: #2a3647; }
[data-theme="light"] .detail-foot { border-top-color: rgba(11,31,58,0.1); }

/* A trailing odd card spans the full width so it never sits alone in a half column */
@media (min-width: 769px) {
  .tech-detail-grid > .tech-detail:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tech-detail-grid > .tech-detail:last-child:nth-child(odd) .detail-list { columns: 2; column-gap: 2.5rem; }
  .tech-detail-grid > .tech-detail:last-child:nth-child(odd) .detail-list li { break-inside: avoid; }
}

@media (max-width: 768px) {
  .tech-detail-grid { grid-template-columns: 1fr; }
  .tech-guarantee { flex-direction: column; gap: 1rem; }
}

/* More breathing room above the comparison table */
.tech-comparison { margin-top: 4rem; }

/* ══════════════════════════════════════════════
   REFERENCIA GALLERY + LIGHTBOX
   ══════════════════════════════════════════════ */
/* Paginated slider — 8 photos per page */
.gallery-slider {
  position: relative;
  margin-bottom: 3.5rem;
}
.gallery-viewport { overflow: hidden; border-radius: 12px; }
.gallery-track {
  display: flex;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.gallery-page {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 0.8rem;
  align-content: start;
}
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out), filter 0.3s;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,58,0.35), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ref-subhead {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 1.6rem;
}
[data-theme="light"] .ref-subhead { color: var(--primary); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,12,24,0.92);
  backdrop-filter: blur(6px);
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lb-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.lb-figure img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: lbPop 0.3s var(--ease-out);
}
@keyframes lbPop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.lb-counter { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.lb-close, .lb-nav {
  position: absolute;
  z-index: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.lb-close {
  top: 3vh; right: 3vw;
  width: 44px; height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2rem;
  line-height: 1;
}
.lb-prev { left: 2vw; }
.lb-next { right: 2vw; }
.lb-close:hover, .lb-nav:hover { background: var(--accent); border-color: var(--accent); }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }

/* Slider arrows + dots */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(13,32,58,0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.gallery-prev { left: -10px; }
.gallery-next { right: -10px; }
.gallery-arrow:hover { background: var(--accent); border-color: var(--accent); }
.gallery-prev:hover { transform: translateY(-50%) scale(1.08); }
.gallery-next:hover { transform: translateY(-50%) scale(1.08); }
[data-theme="light"] .gallery-arrow { background: rgba(255,255,255,0.92); border-color: rgba(11,31,58,0.12); color: var(--primary); }
[data-theme="light"] .gallery-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.gallery-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.2rem;
}
.gallery-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.25);
  transition: all 0.3s var(--ease-out);
}
.gallery-dot.active { background: var(--accent); width: 26px; border-radius: 100px; }
[data-theme="light"] .gallery-dot { background: rgba(11,31,58,0.2); }
[data-theme="light"] .gallery-dot.active { background: var(--accent); }

@media (max-width: 1024px) { .gallery-page { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  {
  .gallery-page { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .gallery-prev { left: 2px; } .gallery-next { right: 2px; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lb-prev { left: 1vw; } .lb-next { right: 1vw; }
}

/* ══════════════════════════════════════════════
   HÁZTÍPUSOK — controls, card gallery, catalog
   ══════════════════════════════════════════════ */
.models-controls { margin-bottom: 2.5rem; }
.mc-dropdowns { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: flex-end; }
.mc-field { display: flex; flex-direction: column; gap: 0.4rem; }
.mc-field label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
[data-theme="light"] .mc-field label { color: #8893a4; }
.mc-field-sort { margin-left: auto; }

.mc-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  min-width: 168px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 0.88rem; font-weight: 500;
  padding: 0.6rem 2.2rem 0.6rem 0.9rem;
  border-radius: 9px; cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.55'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center;
  transition: border-color 0.2s;
}
.mc-select:hover { border-color: rgba(255,255,255,0.3); }
.mc-select:focus { border-color: var(--accent); }
.mc-select option { background: #102a4d; color: #fff; }
[data-theme="light"] .mc-select {
  background-color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.7); color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-opacity='0.55'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); backdrop-filter: blur(10px);
}
[data-theme="light"] .mc-select option { background: #fff; color: #111; }

.mc-bar {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
  margin-top: 1.3rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
[data-theme="light"] .mc-bar { border-top-color: rgba(11,31,58,0.1); }
.mc-result { font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 600; }
[data-theme="light"] .mc-result { color: #5a6678; }
.mc-result #modelsCount { color: var(--accent-lt); }
[data-theme="light"] .mc-result #modelsCount { color: var(--accent); }
.mc-clear {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.5); font-size: 0.88rem; font-weight: 500; padding: 0 0 0 0.2rem;
  transition: color 0.2s;
}
.mc-clear:hover { color: var(--accent-lt); }
[data-theme="light"] .mc-clear { color: #5a6678; }
[data-theme="light"] .mc-clear:hover { color: var(--accent); }
.mc-sort label { font-size: 0.82rem; color: rgba(255,255,255,0.6); font-weight: 600; }
[data-theme="light"] .mc-sort label { color: #5a6678; }
.mc-sort select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.85rem; font-weight: 500;
  padding: 0.5rem 2.2rem 0.5rem 0.9rem;
  border-radius: 8px; cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.55'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center;
}
.mc-sort select:focus { border-color: var(--accent); }
.mc-sort select option { background: #102a4d; color: #fff; }
[data-theme="light"] .mc-sort select {
  background: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.7); color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-opacity='0.55'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  backdrop-filter: blur(10px);
}
[data-theme="light"] .mc-sort select option { background: #fff; color: #111; }

.models-empty { text-align: center; color: rgba(255,255,255,0.6); padding: 2rem 0; }
[data-theme="light"] .models-empty { color: #5a6678; }

/* Card image gallery */
.mcard-gallery {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
}
.mcard-track { display: flex; height: 100%; transition: transform 0.5s var(--ease-out); }
.mcard-slide { min-width: 100%; height: 100%; }
.mcard-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcard-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; color: rgba(255,255,255,0.45);
}
.mcard-ph-ico { width: 56px; color: rgba(255,255,255,0.35); }
.mcard-ph-ico svg { width: 100%; }
.mcard-ph span { font-size: 0.82rem; letter-spacing: 0.02em; }
.mcard-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(13,32,58,0.7); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; z-index: 2; opacity: 0; transition: opacity 0.2s, background 0.2s;
}
.mcard-gallery:hover .mcard-arrow { opacity: 1; }
.mcard-arrow:hover { background: var(--accent); border-color: var(--accent); }
.mcard-prev { left: 8px; } .mcard-next { right: 8px; }
.mcard-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; gap: 5px; justify-content: center; z-index: 2; }
.mcard-dot { width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,0.4); transition: all 0.3s; }
.mcard-dot.active { background: var(--accent); width: 18px; border-radius: 100px; }

.badge-discount { background: #16a34a !important; color: #fff; }

.model-storeys {
  font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08); padding: 0.2rem 0.55rem; border-radius: 6px;
}
[data-theme="light"] .model-storeys { color: var(--primary); background: rgba(11,31,58,0.06); }

/* Card footer (price + CTA pinned to bottom) */
.mcard-fp { width: 100%; justify-content: center; margin-bottom: 1rem; }
.mcard-foot { margin-top: auto; }
#modelsGrid .model-body .btn { margin-top: 0; }
#modelsGrid .mcard-foot .mcard-cta { width: 100%; justify-content: center; margin-top: 0.2rem; }
.model-price .price-num-wrap { font-size: 1.05rem; color: rgba(255,255,255,0.7); }
.model-price .price-num-wrap strong { font-size: 1.35rem; font-weight: 800; color: #fff; }
.price-note { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 0.15rem; }
[data-theme="light"] .model-price .price-num-wrap { color: #5a6678; }
[data-theme="light"] .model-price .price-num-wrap strong { color: var(--primary); }
[data-theme="light"] .price-note { color: #5a6678; }

/* Kedvezményes ár – áthúzott eredeti + kedvezményes érték */
.model-price .price-orig {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
  margin-bottom: 0.1rem;
}
[data-theme="light"] .model-price .price-orig { color: #8791a0; }
/* Zöld −% címke az áthúzott ár mellett */
.model-price .price-orig .price-badge {
  display: inline-block;
  text-decoration: none;
  background: #16a34a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
/* A kedvezményes kártyán a csökkentett ár narancssárgával kiemelve */
.model-card.discounted .model-price .price-num-wrap strong { color: var(--accent); }
/* Kedvezmény sor a kalkulátor bontásában */
.rb-row.rb-discount span { color: #16a34a; font-weight: 600; }

/* Floor plan modal body */
.fp-body { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; background: #0b1f3a; }
.fp-body img { max-width: 100%; max-height: 100%; display: block; }
.fp-placeholder { text-align: center; color: rgba(255,255,255,0.5); padding: 3rem 1.5rem; }
.fp-placeholder .mcard-ph-ico { width: 64px; margin: 0 auto 1rem; }
.fp-placeholder p { font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 768px) {
  .mc-dropdowns { flex-direction: column; align-items: stretch; }
  .mc-field-sort { margin-left: 0; }
  .mc-select { width: 100%; }
}

/* ── Filter bar refinement: cohesive frosted panel, even alignment ── */
.mc-dropdowns {
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
}
[data-theme="light"] .mc-dropdowns {
  background: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(11,31,58,0.05);
}
.mc-field { flex: 0.85 1 0; min-width: 0; }
.mc-select { width: 100%; min-width: 0; }
.mc-field-sort {
  flex: 0 0 265px;
  margin-left: 0;
  position: relative;
  padding-left: 1.35rem;
}
.mc-field-sort::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 4px;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
[data-theme="light"] .mc-field-sort::before { background: rgba(11,31,58,0.12); }
.mc-bar { margin-top: 1rem; padding-top: 0; border-top: none; }

@media (max-width: 900px) {
  /* switch to grid so rows size to content (no flex-basis-as-height) */
  .mc-dropdowns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1rem;
    align-items: end;
    padding: 1rem 1.1rem;
  }
  .mc-field-sort { grid-column: 1 / -1; padding-left: 0; }
  .mc-field-sort::before { display: none; }
}
@media (max-width: 560px) {
  .mc-dropdowns { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   CALCULATOR (reshuffled) — house select, level,
   options, AC slider, turnkey note
   ══════════════════════════════════════════════ */
/* ── Egyedi méret kapcsoló a típusház-legördülő alatt ── */
.calc-custom-toggle {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.calc-custom-toggle:hover { border-color: rgba(232,144,43,0.45); }
.calc-custom-toggle:has(input:checked) {
  border-color: var(--accent);
  background: rgba(232,144,43,0.08);
}
.calc-custom-toggle input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; margin: 0;
}
.calc-custom-toggle .cct-name { font-size: 0.92rem; font-weight: 600; color: #fff; }
.calc-custom-toggle .cct-hint {
  grid-column: 2;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  margin-top: 0.15rem;
}
[data-theme="light"] .calc-custom-toggle { border-color: #e6e9ef; background: #fbfcfe; }
[data-theme="light"] .calc-custom-toggle .cct-name { color: var(--primary); }
[data-theme="light"] .calc-custom-toggle .cct-hint { color: #5a6678; }
[data-theme="light"] .calc-custom-toggle:has(input:checked) { border-color: var(--accent); background: rgba(232,144,43,0.07); }

.calc-custom {
  margin-top: 0.9rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(232,144,43,0.06);
  border: 1px solid rgba(232,144,43,0.25);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.calc-custom label { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.75); }
[data-theme="light"] .calc-custom label { color: var(--gray-700); }
.calc-custom input {
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: #fff; border-radius: 8px; padding: 0.6rem 0.85rem; font-size: 0.9rem; outline: none;
}
.calc-custom input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,144,43,0.12); }
[data-theme="light"] .calc-custom input { background: #fff; border-color: #d1d5db; color: var(--primary); }

/* Level selector */
.level-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.level-opt { cursor: pointer; }
.level-opt input { display: none; }
.level-card {
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 0.9rem 1rem; background: rgba(255,255,255,0.03);
  transition: all 0.2s;
}
.level-card strong { display: block; font-size: 0.98rem; color: #fff; }
.level-card span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.level-opt input:checked + .level-card { border-color: var(--accent); background: rgba(232,144,43,0.1); }
.level-opt:hover .level-card { border-color: rgba(255,255,255,0.3); }
[data-theme="light"] .level-card { background: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.65); }
[data-theme="light"] .level-card strong { color: var(--primary); }
[data-theme="light"] .level-card span { color: #5a6678; }
[data-theme="light"] .level-opt input:checked + .level-card { background: rgba(232,144,43,0.06); border-color: var(--accent); }

/* Option rows */
.opt-list { display: flex; flex-direction: column; gap: 0.6rem; }
.opt-row {
  display: flex; align-items: center; gap: 0.8rem;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 0.8rem 1rem; background: rgba(255,255,255,0.03);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.opt-row:hover { border-color: rgba(255,255,255,0.25); }
.opt-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.opt-name { font-weight: 600; font-size: 0.92rem; color: #fff; }
.opt-price { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--accent-lt); white-space: nowrap; }
.opt-sub { display: block; font-weight: 500; font-size: 0.76rem; color: rgba(255,255,255,0.45); margin-top: 0.15rem; }
[data-theme="light"] .opt-sub { color: #5a6678; }
.opt-row.opt-disabled { opacity: 0.5; cursor: default; }
.opt-row.opt-disabled input[type="checkbox"] { cursor: default; }
.opt-row:has(input:checked) { border-color: var(--accent); background: rgba(232,144,43,0.08); }
[data-theme="light"] .opt-row { background: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.65); }
[data-theme="light"] .opt-name { color: var(--primary); }
[data-theme="light"] .opt-price { color: var(--accent); }
[data-theme="light"] .opt-row:has(input:checked) { background: rgba(232,144,43,0.06); border-color: var(--accent); }

/* AC slider row */
.opt-klima { flex-direction: column; align-items: stretch; gap: 0.7rem; cursor: default; }
.opt-klima-head { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.opt-klima-body { display: flex; flex-direction: column; gap: 0.7rem; }
.opt-klima-head .opt-name { }
.opt-klima-head .opt-price { color: var(--accent-lt); }
[data-theme="light"] .opt-klima-head .opt-price { color: var(--accent); }
.opt-klima input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px;
  background: rgba(255,255,255,0.15); outline: none; cursor: pointer;
}
[data-theme="light"] .opt-klima input[type="range"] { background: rgba(11,31,58,0.12); }
.opt-klima input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.opt-klima input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid #fff;
}
.opt-klima-scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: rgba(255,255,255,0.4); }
[data-theme="light"] .opt-klima-scale { color: #5a6678; }
.opt-note { font-size: 0.74rem; line-height: 1.4; color: rgba(255,255,255,0.45); margin: 0.15rem 0 0; }
[data-theme="light"] .opt-note { color: #5a6678; }

.opt-empty { font-size: 0.85rem; color: rgba(255,255,255,0.55); padding: 0.4rem 0; }
[data-theme="light"] .opt-empty { color: #5a6678; }

/* Turnkey note in the result card */
.result-turnkey {
  font-size: 0.78rem; line-height: 1.5;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  border-radius: 8px; padding: 0.7rem 0.9rem; margin-bottom: 1.2rem;
}
[data-theme="light"] .result-turnkey { color: #5a6678; background: rgba(11,31,58,0.04); }
.rb-total { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.45rem; margin-top: 0.25rem; }
[data-theme="light"] .rb-total { border-top-color: rgba(11,31,58,0.1); }

/* Load-more (Háztípusok progressive reveal) */
.models-more { display: flex; justify-content: center; margin-top: 2.2rem; }
.models-more #modelsMoreLeft { font-weight: 500; opacity: 0.7; }

/* Egyéb helyiségek → chips */
.model-extras { margin-bottom: 1.2rem; }
.me-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}
[data-theme="light"] .me-label { color: #5a6678; }
.me-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.me-chips span {
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.8);
}
[data-theme="light"] .me-chips span {
  background: rgba(11,31,58,0.05);
  border-color: rgba(11,31,58,0.09);
  color: #45536a;
}

/* Card renderings are clickable → open in lightbox */
.mcard-slide img { cursor: zoom-in; }

/* Model card price: amount on one line, note below */
.model-price {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.model-price .price-num-wrap { white-space: nowrap; }
.model-price .price-note { margin-top: 0; }

/* Align "Alaprajz megtekintése" across cards: pin the whole bottom group */
#modelsGrid .mcard-foot { margin-top: 0; }
#modelsGrid .model-body .mcard-fp { margin-top: auto; }


/* Hero stat headline (number or short phrase) */
.stat-head { font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.2; }
.stat-head .stat-num { font-size: inherit; font-weight: inherit; }
[data-theme="light"] .stat-head { color: var(--primary); }

/* Comparison table — secondary sub-labels + top-aligned multi-line cells */
.ct-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,0.45);
  margin-top: 0.15rem;
}
[data-theme="light"] .ct-sub { color: #8893a4; }
.ct-row > div, .ct-head > div { align-content: start; }

/* ── Testimonials: header, pills, controls (20 reviews) ── */
.ref-testi-head { text-align: center; margin-bottom: 1.8rem; }
.ref-testi-head .section-tag { margin-bottom: 0.8rem; }
.ref-testi-head .ref-subhead { margin-bottom: 0.4rem; }
.ref-testi-sub {
  max-width: 560px; margin: 0 auto;
  color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.6;
}
[data-theme="light"] .ref-testi-sub { color: #5a6678; }

.testi-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; margin-top: 0.15rem; }
.testi-pill {
  font-size: 0.68rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 100px;
  border: 1px solid transparent;
}
.testi-pill.turnkey { background: rgba(34,197,94,0.14); color: #4ade80; border-color: rgba(34,197,94,0.3); }
.testi-pill.shell   { background: rgba(91,155,240,0.14); color: #8fbcf7; border-color: rgba(91,155,240,0.3); }
.testi-pill.custom  { background: rgba(232,144,43,0.14); color: var(--accent-lt); border-color: rgba(232,144,43,0.3); }
[data-theme="light"] .testi-pill.turnkey { color: #15803d; }
[data-theme="light"] .testi-pill.shell   { color: #2563eb; }
[data-theme="light"] .testi-pill.custom  { color: var(--accent); }

.testi-stars .s-on { color: var(--accent); }
.testi-stars .s-off { color: rgba(255,255,255,0.2); }
[data-theme="light"] .testi-stars .s-off { color: rgba(11,31,58,0.18); }

.testi-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1.4rem;
}
.testi-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s, border-color 0.2s;
}
.testi-arrow:hover { background: var(--accent); border-color: var(--accent); }
.testi-counter { font-size: 0.85rem; color: rgba(255,255,255,0.55); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.testi-counter b { color: #fff; }
[data-theme="light"] .testi-arrow { background: rgba(255,255,255,0.6); border-color: rgba(11,31,58,0.12); color: var(--primary); }
[data-theme="light"] .testi-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="light"] .testi-counter { color: #5a6678; }
[data-theme="light"] .testi-counter b { color: var(--primary); }

/* ══════════════════════════════════════════════
   LEGAL PAGES (Adatvédelmi tájékoztató, stb.)
   ══════════════════════════════════════════════ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 5% 5rem;
}
.legal-wrap .section-tag { margin-bottom: 1rem; }
.legal h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.8rem;
}
.legal h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 2.6rem 0 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.legal h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-lt);
  margin: 1.6rem 0 0.7rem;
}
.legal p {
  color: rgba(255,255,255,0.78);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal ul {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
}
.legal li {
  position: relative;
  color: rgba(255,255,255,0.78);
  font-size: 0.97rem;
  line-height: 1.7;
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.legal li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal li strong { color: #fff; font-weight: 600; }
.legal a { color: var(--accent-lt); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: #fff; }
.legal-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 0 0 1.6rem;
}
.legal-card p { margin-bottom: 0.35rem; color: rgba(255,255,255,0.9); }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card strong { color: #fff; font-size: 1.05rem; }
.legal-back { margin-top: 3rem; }

/* Light theme */
[data-theme="light"] .legal h1,
[data-theme="light"] .legal h2 { color: var(--primary); }
[data-theme="light"] .legal h2 { border-top-color: rgba(11,31,58,0.1); }
[data-theme="light"] .legal h3 { color: var(--accent); }
[data-theme="light"] .legal p,
[data-theme="light"] .legal li { color: #3a4657; }
[data-theme="light"] .legal li { border-bottom-color: rgba(11,31,58,0.07); }
[data-theme="light"] .legal li strong,
[data-theme="light"] .legal-card strong,
[data-theme="light"] .legal-card p { color: var(--primary); }
[data-theme="light"] .legal-card { background: rgba(255,255,255,0.6); border-color: rgba(11,31,58,0.1); }
[data-theme="light"] .legal a { color: var(--accent); }
[data-theme="light"] .legal a:hover { color: var(--primary); }

/* ══════════════════════════════════════════════
   HERO HOUSE — phased structural build (thsip)
   ══════════════════════════════════════════════ */
.thsip-stage {
  position: relative;
  width: 100%;
  --th-navy: #0b1f3a;
  --th-navy-2: #102a4d;
  --th-line: #e8902b;
  --th-line-2: #ffb35c;
  --th-panel: #16345e;
  --th-panel-edge: #2c5691;
  --th-truss: #d8e6f8;
  --th-shadow: rgba(0,0,0,.5);
}
.thsip-svg { overflow: visible; }

.thsip-found { fill: var(--th-navy-2); stroke: var(--th-panel-edge); stroke-width: 1; }
.thsip-panel { fill: var(--th-panel); stroke: var(--th-panel-edge); stroke-width: 1.5; }
.thsip-plate { fill: var(--th-panel-edge); }
.thsip-chord { stroke: var(--th-truss); stroke-width: 5; stroke-linecap: round; fill: none; }
.thsip-web   { stroke: var(--th-truss); stroke-width: 3; stroke-linecap: round; fill: none; opacity: .85; }
.thsip-nailplate { fill: var(--th-line); }
.thsip-roofcover { fill: var(--th-navy); fill-opacity: .66; stroke: var(--th-line); stroke-width: 3.5; stroke-linejoin: round; }
.thsip-energy { stroke: url(#thsipGradE); stroke-width: 5; fill: none; stroke-linejoin: round; stroke-linecap: round; filter: url(#thsipGlow); }
.thsip-edot  { fill: var(--th-line-2); filter: url(#thsipGlow); }
.thsip-ground { stroke: var(--th-panel-edge); stroke-width: 1.5; opacity: .5; }
.thsip-shadow { fill: var(--th-shadow); opacity: .35; }

/* base: everything hidden until its phase */
.thsip-panel, .thsip-plate { opacity: 0; transform: translateY(48px); }
.thsip-found { opacity: 0; transform: translateY(20px); }
.thsip-truss-g line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.thsip-nailplate { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: center; }
.thsip-roofcover { opacity: 0; }
.thsip-energy { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.thsip-edot { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: center; }

/* phase 1 — MgO SIP panel walls */
.thsip-s1 .thsip-found { opacity: 1; transform: none; transition: .6s ease; }
.thsip-s1 .thsip-panel, .thsip-s1 .thsip-plate { opacity: 1; transform: none; transition: opacity .55s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.thsip-s1 .thsip-p1 { transition-delay: .05s } .thsip-s1 .thsip-p2 { transition-delay: .15s }
.thsip-s1 .thsip-p3 { transition-delay: .25s } .thsip-s1 .thsip-p4 { transition-delay: .35s }
.thsip-s1 .thsip-p5 { transition-delay: .45s } .thsip-s1 .thsip-plate { transition-delay: .55s }

/* phase 2 — nail-plate roof truss */
.thsip-s2 .thsip-truss-g line { stroke-dashoffset: 0; transition: stroke-dashoffset .8s ease; }
.thsip-s2 .thsip-tw1 { transition-delay: .15s } .thsip-s2 .thsip-tw2 { transition-delay: .3s }
.thsip-s2 .thsip-tw3 { transition-delay: .45s } .thsip-s2 .thsip-tw4 { transition-delay: .55s }
.thsip-s2 .thsip-tw5 { transition-delay: .65s }
.thsip-s2 .thsip-nailplate { opacity: 1; transform: scale(1); transition: .45s cubic-bezier(.34,1.56,.64,1) .8s; }
.thsip-s2 .thsip-np2 { transition-delay: .9s } .thsip-s2 .thsip-np3 { transition-delay: 1s }
.thsip-s2 .thsip-np4 { transition-delay: 1.1s } .thsip-s2 .thsip-np5 { transition-delay: 1.2s }
.thsip-s2 .thsip-np6 { transition-delay: 1.3s }

/* phase 3 — roof cover + energy envelope */
.thsip-s3 .thsip-roofcover { opacity: 1; transition: opacity .8s ease; }
.thsip-s3 .thsip-energy { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s ease .5s, opacity .4s ease .5s; }
.thsip-s3 .thsip-edot { opacity: 1; transform: scale(1); transition: .5s cubic-bezier(.34,1.56,.64,1) 1.6s; animation: thsipPulse 2.4s ease 2.4s infinite; }
.thsip-s3 .thsip-ed2 { transition-delay: 1.75s; animation-delay: 2.6s; }
.thsip-s3 .thsip-ed3 { transition-delay: 1.9s; animation-delay: 2.8s; }
@keyframes thsipPulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }

/* light theme */
[data-theme="light"] .thsip-stage { --th-navy: #0b1f3a; --th-navy-2: #12305a; --th-panel: #e8eff9; --th-panel-edge: #b9cde8; --th-truss: #0b1f3a; --th-shadow: rgba(11,31,58,.18); }
[data-theme="light"] .thsip-roofcover { fill-opacity: .14; }

@media (prefers-reduced-motion: reduce) {
  .thsip-stage * { transition: none !important; animation: none !important; }
}

/* ══════════════════════════════════════════════
   FULL-BLEED HERO (video background) — opt-in via .hero-fb
   Inert for the standard #hero (no .hero-fb class).
   ══════════════════════════════════════════════ */
#hero.hero-fb {
  display: flex;
  align-items: center;
  gap: 0;
  padding: calc(var(--nav-h) + 2rem) 6% 72px;
}
.hero-fb .hero-fb-bg { position: absolute; inset: 0; z-index: 0; }
.hero-fb .hero-fb-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Video fades to transparent toward the BOTTOM so the shared site-wide backdrop
   shows through — the next section sits on that same backdrop, dissolving the
   hero into the page. Top stays fully visible (video runs edge-to-edge). */
.hero-fb .hero-fb-bg {
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0,0,0,0.35) 84%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 58%, rgba(0,0,0,0.35) 84%, transparent 100%);
}
.hero-fb .hero-fb-scrim {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 14%, #000 30%, #000 58%, rgba(0,0,0,0.35) 84%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, transparent 14%, #000 30%, #000 58%, rgba(0,0,0,0.35) 84%, transparent 100%);
}
.hero-fb .hero-fb-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,18,34,0.95) 0%, rgba(7,18,34,0.86) 30%, rgba(7,18,34,0.55) 52%, rgba(7,18,34,0.18) 74%, rgba(7,18,34,0.30) 100%),
    linear-gradient(0deg, rgba(7,18,34,0.55) 0%, rgba(7,18,34,0) 30%);
}
.hero-fb .hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-fb-features { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.hero-fb-feature {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.85rem; border-radius: 100px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px); color: #fff; font-size: 0.85rem; font-weight: 500; white-space: nowrap;
}
.hero-fb-feature svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
[data-theme="light"] .hero-fb .hero-fb-scrim {
  background:
    linear-gradient(90deg, rgba(238,242,247,0.96) 0%, rgba(238,242,247,0.86) 30%, rgba(238,242,247,0.5) 54%, rgba(238,242,247,0.12) 76%, rgba(238,242,247,0.28) 100%),
    linear-gradient(0deg, rgba(238,242,247,0.6) 0%, rgba(238,242,247,0) 34%);
}
[data-theme="light"] .hero-fb-feature { background: rgba(255,255,255,0.7); border-color: rgba(11,31,58,0.12); color: var(--primary); }
@media (max-width: 768px) {
  /* Top-aligned, LEFT-aligned copy — mirrors the desktop layout */
  #hero.hero-fb {
    align-items: flex-start;
    text-align: left;
    padding-top: calc(var(--nav-h) + 2.5rem);
    padding-bottom: 120px;
    min-height: 100svh;
  }
  #hero.hero-fb .hero-sub { margin-left: 0; margin-right: 0; }
  #hero.hero-fb .hero-actions { justify-content: flex-start; }
  #hero.hero-fb .hero-stats { justify-content: flex-start; }
  #hero.hero-fb .hero-fb-features { justify-content: flex-start; }
  /* Scrim darkest at the TOP now, where the copy sits */
  .hero-fb .hero-fb-scrim { background: linear-gradient(180deg, rgba(7,18,34,0.92) 0%, rgba(7,18,34,0.72) 38%, rgba(7,18,34,0.42) 62%, rgba(7,18,34,0.18) 100%); }
  [data-theme="light"] .hero-fb .hero-fb-scrim { background: linear-gradient(180deg, rgba(238,242,247,0.94) 0%, rgba(238,242,247,0.74) 38%, rgba(238,242,247,0.42) 62%, rgba(238,242,247,0.16) 100%); }
  /* Bottom fade so the video dissolves into the next section, just like desktop */
  .hero-fb .hero-fb-bg {
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, rgba(0,0,0,0.4) 88%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 70%, rgba(0,0,0,0.4) 88%, transparent 100%);
  }
  .hero-fb .hero-fb-scrim {
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, rgba(0,0,0,0.4) 88%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 70%, rgba(0,0,0,0.4) 88%, transparent 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fb .hero-fb-bg video { display: none; }
  .hero-fb .hero-fb-bg { background: center/cover no-repeat url("hero-house-poster.jpg?v=131"); }
}
.proto-flag {
  position: fixed; z-index: 999; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: rgba(232,144,43,0.92); color: #fff; font: 600 12px/1 'Inter', sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 14px; border-radius: 100px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ── Cookie consent (középre helyezett kártya, telehome.hu-stílus) ── */
.cookie-overlay {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 26px;
  background: rgba(6,14,26,0.45);
  backdrop-filter: blur(2px);
  animation: cookieFade 0.35s var(--ease-out);
}
.cookie-overlay[hidden] { display: none; }
@keyframes cookieFade { from { opacity: 0; } to { opacity: 1; } }
.cookie-card {
  background: #ffffff;
  color: #1c2733;
  border-radius: 18px;
  padding: 30px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  animation: cookieRise 0.4s var(--ease-out);
}
@keyframes cookieRise { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-title {
  font-size: 1.5rem; font-weight: 700; line-height: 1.2;
  color: #12203a; margin: 0 0 0.85rem;
}
.cookie-desc {
  font-size: 0.98rem; line-height: 1.6; color: #3a4756; margin: 0 0 1.5rem;
}
.cookie-desc a { color: var(--accent); font-weight: 600; text-decoration: none; }
.cookie-desc a:hover { text-decoration: underline; }
.cookie-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.cookie-actions .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; }
.cookie-actions .btn-outline {
  color: var(--accent); border-color: var(--accent); background: transparent;
}
.cookie-actions .btn-outline:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
@media (max-width: 560px) {
  .cookie-overlay { padding: 14px; }
  .cookie-card { padding: 24px 22px; }
  .cookie-title { font-size: 1.3rem; }
  .cookie-actions .btn { flex: 1 1 100%; }
}

/* ══════════════════════════════════════════════
   BLOG — négyes lapozós bejegyzés-rács
   ══════════════════════════════════════════════ */
.blog-slider {
  position: relative;
  padding: 0 56px;              /* a nyilaknak fenntartott sáv, hogy ne lógjanak a boxokra */
}
.blog-viewport { overflow: hidden; border-radius: 12px; }
.blog-track {
  display: flex;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.blog-page {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: max-content;  /* a részben töltött lapon se nyúljanak szét a boxok */
  gap: 1rem;
  align-content: start;
  padding: 0.25rem;             /* hogy a hover-árnyék ne vágódjon le */
}
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.blog-media {
  aspect-ratio: 16 / 10;        /* azonos képarány minden boxban */
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  overflow: hidden;
  display: block;
}
.blog-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.blog-card:hover .blog-media img { transform: scale(1.06); }
.blog-body {
  display: flex;
  flex-direction: column;
  flex: 1;                      /* a maradék helyet kitölti → egyforma magasság */
  padding: 1rem 1.1rem 1.15rem;
  gap: 0.5rem;
}
.blog-meta {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  flex-wrap: nowrap;            /* soha ne törjön két sorba → egyforma boxmagasság */
  white-space: nowrap;
  overflow: hidden;
}
.blog-cat {
  color: var(--accent); text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis;   /* hosszú kategórianév levágva, nem tördel */
}
.blog-date { flex: none; }
.blog-date { color: rgba(255,255,255,0.4); font-weight: 500; }
.blog-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 600; line-height: 1.35; color: #fff;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;            /* pontosan 2 sor magas minden boxban */
}
.blog-excerpt {
  font-size: 0.85rem; line-height: 1.55; color: rgba(255,255,255,0.55);
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.65em;           /* pontosan 3 sor magas minden boxban */
}
.blog-more {
  margin-top: auto;             /* mindig a box aljára kerül */
  padding-top: 0.6rem;
  font-size: 0.83rem; font-weight: 600; color: var(--accent);
  transition: gap 0.2s;
}
.blog-card:hover .blog-more { text-decoration: underline; }
.blog-empty {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
}
.blog-prev { left: 0; }
.blog-next { right: 0; }

/* világos téma */
[data-theme="light"] .blog-card { background: #fff; border-color: #e6e9ef; }
[data-theme="light"] .blog-card:hover { border-color: var(--accent); box-shadow: 0 20px 60px rgba(11,31,58,0.12); }
[data-theme="light"] .blog-title { color: var(--primary); }
[data-theme="light"] .blog-excerpt { color: #5a6678; }
[data-theme="light"] .blog-date { color: #8a94a6; }
[data-theme="light"] .blog-empty { color: #5a6678; }

@media (max-width: 1024px) {
  .blog-page { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .blog-slider { padding: 0 48px; }
}
@media (max-width: 680px) {
  .blog-page { grid-template-columns: 1fr; gap: 0.9rem; }
  .blog-slider { padding: 0 40px; }
  .blog-prev, .blog-next { width: 36px; height: 36px; font-size: 1.4rem; }
}

/* ══════════════════════════════════════════════
   BLOGCIKK OLDAL
   ══════════════════════════════════════════════ */
.blog-post-page main { padding-top: calc(var(--nav-h) + 2.2rem); }
.post { max-width: 780px; margin: 0 auto; padding: 0 1.5rem 4rem; }

.post-crumbs { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 1.2rem; }
.post-crumbs a { color: rgba(255,255,255,0.55); }
.post-crumbs a:hover { color: var(--accent); }
.post-crumbs span { margin: 0 0.35rem; }

.post-cat {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(232,144,43,0.35); border-radius: 999px; padding: 0.3rem 0.7rem;
}
.post-head h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.18; font-weight: 700;
  color: #fff; margin: 0.9rem 0 0.8rem;
}
.post-lead { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.62); margin: 0 0 1.1rem; }
.post-meta { font-size: 0.8rem; color: rgba(255,255,255,0.4); display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.post-dot { opacity: 0.5; }

.post-cover { margin: 2rem 0 2.4rem; border-radius: var(--radius-lg); overflow: hidden; }
.post-cover img { width: 100%; height: auto; display: block; }

.post-body { font-size: 1rem; line-height: 1.78; color: rgba(255,255,255,0.78); }
.post-body h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 600; line-height: 1.3;
  color: #fff; margin: 2.4rem 0 0.9rem; padding-top: 0.4rem;
}
.post-body h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.08rem; font-weight: 600;
  color: #fff; margin: 1.8rem 0 0.6rem;
}
.post-body p { margin: 0 0 1.1rem; }
.post-body ul { margin: 0 0 1.3rem; padding-left: 1.15rem; list-style: none; }
.post-body li { position: relative; margin-bottom: 0.6rem; padding-left: 0.9rem; }
.post-body li::before {
  content: ''; position: absolute; left: 0; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.post-body blockquote {
  margin: 1.5rem 0; padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
  background: rgba(232,144,43,0.07); color: rgba(255,255,255,0.82);
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body a { color: var(--accent); text-decoration: underline; }

.post-table { overflow-x: auto; margin: 1.5rem 0 1.8rem; -webkit-overflow-scrolling: touch; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 520px; }
.post-table th, .post-table td {
  text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.09);
  vertical-align: top;
}
.post-table thead th {
  color: #fff; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em;
  background: rgba(255,255,255,0.05); border-bottom-color: rgba(255,255,255,0.16);
}
.post-table tbody tr:hover { background: rgba(255,255,255,0.025); }

.post-cta {
  margin: 3rem 0 0; padding: 1.9rem;
  border: 1.5px solid rgba(232,144,43,0.3); border-radius: var(--radius-lg);
  background: rgba(232,144,43,0.06);
}
.post-cta h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; color: #fff; margin: 0 0 0.6rem; }
.post-cta p { color: rgba(255,255,255,0.65); font-size: 0.94rem; line-height: 1.65; margin: 0 0 1.2rem; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.post-more { margin-top: 3rem; }
.post-more h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; color: #fff; margin: 0 0 1rem; }
.post-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.pm-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1rem; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, transform 0.2s;
}
.pm-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.pm-cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.pm-title { font-size: 0.88rem; font-weight: 600; line-height: 1.4; color: #fff; }

/* világos téma */
[data-theme="light"] .post-crumbs { color: #8a94a6; }
[data-theme="light"] .post-crumbs a { color: #5a6678; }
[data-theme="light"] .post-head h1,
[data-theme="light"] .post-body h2,
[data-theme="light"] .post-body h3,
[data-theme="light"] .post-cta h2,
[data-theme="light"] .post-more h2,
[data-theme="light"] .pm-title { color: var(--primary); }
[data-theme="light"] .post-lead { color: #4a5568; }
[data-theme="light"] .post-meta { color: #8a94a6; }
[data-theme="light"] .post-body { color: #3f4a5a; }
[data-theme="light"] .post-body blockquote { background: rgba(232,144,43,0.08); color: #3f4a5a; }
[data-theme="light"] .post-table th, [data-theme="light"] .post-table td { border-bottom-color: #e6e9ef; }
[data-theme="light"] .post-table thead th { background: #f4f6fa; color: var(--primary); border-bottom-color: #d8dde6; }
[data-theme="light"] .post-table tbody tr:hover { background: #fafbfd; }
[data-theme="light"] .post-cta p { color: #4a5568; }
[data-theme="light"] .pm-card { background: #fff; border-color: #e6e9ef; }

@media (max-width: 680px) {
  .post { padding: 0 1.1rem 3rem; }
  .post-more-grid { grid-template-columns: 1fr; }
  .post-cta { padding: 1.4rem; }
}
