@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/opensans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/opensans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

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

:root {
  --dark:     #1A1F2E;
  --dark2:    #2C3548;
  --yellow:   #F5A623;
  --gold:     #D4860F;
  --light:    #F0F2F5;
  --muted:    #C8D3E8;
  --green:    #3DAA6E;
  --white:    #FFFFFF;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.18);
  --accent-text: var(--yellow);
  --on-yellow: #1A1F2E;
  --border: rgba(107,122,153,0.3);
  --hero-a: #1A1F2E;
  --hero-b: #2C3548;
  --modal-bg: #232A3B;
  --chart-muted: #9AA8C4;
  --chart-text: #C8D3E8;
  --chart-grid: rgba(107,122,153,0.15);
  --chart-axis: rgba(107,122,153,0.3);
  --chart-tip-bg: rgba(26,31,46,0.96);
  --chart-tip-text: #C8D3E8;
  --chart-red: #f87171;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  padding: 0;
}

.calc-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* HEADER */
.calc-header {
  text-align: center;
  margin-bottom: 28px;
}
.calc-header h1 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.calc-header h1 span { color: var(--accent-text); }
.calc-header p {
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 480px;
  margin: 0 auto;
}

/* PROGRESS */
.progress-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}
.progress-step {
  flex: 1;
  height: 4px;
  background: var(--dark2);
  border-radius: 2px;
  transition: background 0.25s;
}
.progress-step.done { background: var(--yellow); }
.progress-step.active { background: var(--yellow); opacity: 0.6; }
.progress-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
  margin-top: -18px;
}

/* CARD */
.card {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}
.card h2 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.card .sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* TILES */
.tile-grid { display: grid; gap: 12px; }
.tile-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 500px) {
  .tile-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .tile-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

.tile {
  background: var(--dark);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 18px 14px;
  cursor: pointer;
  transition: all 0.22s;
  text-align: center;
  position: relative;
}
.tile:hover { border-color: var(--yellow); transform: translateY(-2px); }
.tile.selected { border-color: var(--yellow); background: rgba(245,166,35,0.1); }
.tile.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 10px;
  font-size: 0.75rem;
  color: var(--accent-text);
  font-weight: 700;
}
.tile .tile-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.tile .tile-name {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}
.tile .tile-sub {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
.tile .tile-badge {
  display: inline-block;
  background: rgba(245,166,35,0.2);
  color: var(--accent-text);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  margin-top: 4px;
}

/* DEVICE TILES */
.section-label {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 20px 0 10px;
}
.section-label.large {
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.04em;
  border-left: 3px solid var(--yellow);
  padding-left: 10px;
  margin-top: 24px;
}
.section-label:first-child { margin-top: 0; }

/* USAGE LEVEL BUTTONS */
.usage-levels {
  display: flex;
  gap: 3px;
  margin-top: 5px;
}
.usage-btn {
  flex: 1;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 2px;
  border-radius: 4px;
  border: 1px solid rgba(107,122,153,0.4);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.usage-btn.active-less  { border-color: #60a5fa; background: rgba(96,165,250,0.15); color: #60a5fa; }
.usage-btn.active-avg   { border-color: var(--yellow); background: rgba(245,166,35,0.15); color: var(--accent-text); }
.usage-btn.active-more  { border-color: #f87171; background: rgba(248,113,113,0.15); color: #f87171; }

.device-tile {
  background: var(--dark);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
}
.device-tile:hover { border-color: rgba(245,166,35,0.4); }
.device-tile.active { border-color: var(--yellow); background: rgba(245,166,35,0.08); }
.device-tile .d-icon { font-size: 1.6rem; }
.device-tile .d-name { font-size: 0.72rem; font-weight: 500; text-align: center; color: var(--white); line-height: 1.3; }
.device-tile .d-watt { font-size: 0.68rem; color: var(--muted); }
.device-tile .d-counter {
  display: flex; align-items: center; gap: 5px;
  margin-top: 4px;
}
.device-tile .d-counter button {
  width: 22px; height: 22px;
  background: var(--dark2);
  border: 1px solid var(--muted);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.device-tile.active .d-counter button { border-color: var(--yellow); color: var(--accent-text); }
.device-tile .d-count { font-size: 0.85rem; font-weight: 600; min-width: 14px; text-align: center; }

/* LIVE COUNTER */
.live-counter {
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(245,166,35,0.05));
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.live-counter .lc-item { text-align: center; }
.live-counter .lc-val {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-text);
}
.live-counter .lc-label { font-size: 0.72rem; color: var(--muted); }

/* INPUTS */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--light);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  background: var(--dark);
  border: 1.5px solid var(--dark2);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border 0.2s;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--yellow); }
.field input::placeholder { color: var(--muted); }
.field select option { background: var(--dark2); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.price-input-wrap {
  display: flex; align-items: center; gap: 10px;
}
.price-input-wrap input { flex: 1; }
.price-input-wrap .unit {
  font-size: 0.82rem; color: var(--muted); white-space: nowrap;
}

/* NAVIGATION BUTTONS */
.nav-btns {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--yellow);
  color: var(--on-yellow);
  flex: 1;
  justify-content: center;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }
.btn-secondary {
  background: var(--dark2);
  color: var(--muted);
  border: 1.5px solid var(--dark2);
}
.btn-secondary:hover { border-color: var(--muted); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; width: 100%; justify-content: center; margin-top: 6px; }

/* NOTICE */
.notice {
  background: rgba(61,170,110,0.1);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 0.83rem;
  color: var(--light);
  line-height: 1.5;
  margin-top: 12px;
}
.notice.yellow {
  background: rgba(245,166,35,0.1);
  border-color: var(--yellow);
}

/* INFO BADGE (step 3) */
.info-box {
  background: var(--dark);
  border-radius: 8px;
  padding: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}
.info-box strong { color: var(--white); }

/* RESULT PAGE */
.result-hero {
  background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 100%);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
  text-align: center;
  border: 1px solid rgba(245,166,35,0.2);
}
.result-hero .rh-badge {
  display: inline-block;
  background: rgba(61,170,110,0.2);
  color: #8BE3B3;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.result-hero h2 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.result-hero h2 span { color: var(--accent-text); }
.result-hero p { color: var(--muted); font-size: 0.9rem; }

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 500px) { .result-stats { grid-template-columns: 1fr 1fr; } }
.stat-card {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}
.stat-card .sv {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-text);
  display: block;
}
.stat-card .sl { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }

/* CHART */
.chart-wrap {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.chart-wrap h2 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.52rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}
canvas#chart { width: 100%; height: 160px; display: block; }
.chart-legend {
  display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap;
}
.chart-legend span { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.chart-legend .dot { width: 10px; height: 10px; border-radius: 2px; }

/* PRODUCT CARD */
.product-card {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(245,166,35,0.25);
}
.product-card .pc-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.product-card .pc-name {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.product-card .pc-price {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-text);
  margin: 8px 0;
}
.product-card .pc-price small { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.product-card .pc-features {
  list-style: none;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-card .pc-features li {
  font-size: 0.85rem;
  color: var(--light);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.product-card .pc-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* TIPS */
.tips-wrap {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.tips-wrap h3 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.52rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.tip { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.tip .ti { font-size: 1.4rem; flex-shrink: 0; }
.tip .tt { font-size: 0.83rem; color: var(--light); line-height: 1.5; }
.tip .tt strong { color: var(--accent-text); }

/* FLOAT BUTTON */
.float-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  background: var(--yellow);
  color: var(--on-yellow);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(245,166,35,0.45);
  transition: all 0.2s;
  z-index: 999;
}
.float-btn:hover { transform: scale(1.1); background: var(--gold); }
.float-btn .fb-label {
  position: absolute;
  right: 64px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s;
  pointer-events: none;
  font-family: 'Open Sans', sans-serif;
}
.float-btn:hover .fb-label { opacity: 1; transform: translateX(0); }

/* STEPS VISIBILITY */
.step { display: none; animation: fadeUp 0.25s cubic-bezier(0.23, 1, 0.32, 1); }
.step.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CONDITIONAL */
.conditional { display: none; }
.conditional.visible { display: block; }

/* TOGGLE TABS */
.tab-row { display: flex; gap: 8px; margin-bottom: 14px; }
.tab-btn {
  flex: 1; padding: 10px; border-radius: 8px; border: 1.5px solid var(--dark2);
  background: var(--dark); color: var(--muted); font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s; text-align: center;
}
.tab-btn.active { border-color: var(--yellow); color: var(--accent-text); background: rgba(245,166,35,0.08); }

/* RANGE */
input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none; height: 44px; background: transparent; outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--dark); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--dark); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px;
  border-radius: 50%; background: var(--yellow); cursor: pointer;
}
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--yellow); cursor: pointer; }
.range-wrap { margin: 16px 0; }
.range-wrap label {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; margin-bottom: 8px; color: var(--light);
}
.range-wrap label span { color: var(--accent-text); font-weight: 600; }

/* HIGHLIGHT */
.hl { color: var(--accent-text); font-weight: 600; }

/* STEP ERROR */
.step-error {
  display: none;
  background: rgba(255, 80, 80, 0.1);
  border-left: 3px solid #ff5050;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: #ff8080;
  margin-top: 12px;
  animation: fadeUp 0.2s ease;
}
.step-error.visible { display: block; }

/* SUCCESS STATE */
.success-icon {
  width: 60px; height: 60px; background: rgba(61,170,110,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 16px;
}

/* SUMMARY BLOCK */
.summary-block {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.summary-block h3 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.52rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) { .summary-grid { grid-template-columns: 1fr; } }
.summary-item {
  background: var(--dark);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.summary-item .si-icon { font-size: 1.1rem; flex-shrink: 0; }
.summary-item .si-label { font-size: 0.72rem; color: var(--muted); }
.summary-item .si-val { font-size: 0.88rem; font-weight: 600; color: var(--white); }

/* GUARANTEE BLOCK */
.guarantee-block {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.guarantee-block h3 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.52rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.guarantee-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(107,122,153,0.15);
}
.guarantee-row:last-child { border-bottom: none; padding-bottom: 0; }
.guarantee-row .gr-icon { font-size: 1.5rem; flex-shrink: 0; }
.guarantee-row .gr-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.guarantee-row .gr-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* CUSTOM / SCALABLE BLOCK */
.custom-block {
  background: linear-gradient(135deg, rgba(245,166,35,0.07), var(--dark2));
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.custom-block h3 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.custom-block p { font-size: 0.87rem; color: var(--light); line-height: 1.6; margin-bottom: 12px; }
.custom-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
@media (max-width: 480px) { .custom-specs { grid-template-columns: 1fr 1fr; } }
.cs-item {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.cs-item .cs-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.cs-item .cs-label { font-size: 0.72rem; color: var(--muted); }
.cs-item .cs-val { font-size: 0.82rem; font-weight: 600; color: var(--accent-text); }

/* PAYBACK LINE CHART */
.payback-chart-wrap {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.payback-chart-wrap h2 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.52rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.payback-chart-wrap .pc-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; }
canvas#payback-chart { width: 100%; height: 200px; display: block; }
canvas#hourly-chart { width: 100% !important; max-width: 100%; display: block; height: 160px; }
.pc-legend { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.pc-legend span { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.pc-legend .dot { width: 10px; height: 3px; border-radius: 1px; }

/* DUAL PRODUCT CARDS */
.dual-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 520px) { .dual-products { grid-template-columns: 1fr; } }

/* COLLAPSIBLE CATEGORY SECTIONS */
.cat-section { margin-bottom: 4px; }
.cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  border-left: 3px solid var(--yellow);
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  background: rgba(245,166,35,0.05);
  transition: background 0.18s;
  margin: 16px 0 10px;
  user-select: none;
}
.cat-header:hover { background: rgba(245,166,35,0.1); }
.cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-text);
  background: rgba(245,166,35,0.15);
  border-radius: 12px;
  padding: 2px 8px;
  margin-left: 4px;
}
.cat-arrow { margin-left: auto; font-size: 0.7rem; color: var(--muted); transition: transform 0.2s; }
.cat-body-collapsed { display: none; }
.device-chart-block {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}
.device-chart-block h3 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.52rem; font-weight: 700; margin-bottom: 4px;
}
.device-chart-block .dc-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; }
.device-bars { display: flex; flex-direction: column; gap: 8px; }
.device-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 58px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.18s;
  position: relative;
}
@media (max-width: 480px) { .device-bar-row { grid-template-columns: 90px 1fr 46px; } }
.device-bar-row:hover { background: rgba(245,166,35,0.07); }
.device-bar-row .dbr-name { font-size: 0.8rem; color: var(--light); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-bar-row .dbr-name .dbr-icon { font-size: 1rem; flex-shrink: 0; }
.device-bar-track { height: 8px; background: rgba(107,122,153,0.2); border-radius: 4px; overflow: hidden; }
.device-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
.device-bar-row .dbr-val { font-size: 0.78rem; color: var(--accent-text); font-weight: 600; text-align: right; }
/* Tooltip */
.dev-tooltip {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  background: var(--dark);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.79rem;
  color: var(--light);
  line-height: 1.5;
  z-index: 10;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.dev-tooltip strong { color: var(--accent-text); }
.dev-tooltip .tt-arrow {
  position: absolute;
  top: -6px; left: 20px;
  width: 10px; height: 10px;
  background: var(--dark);
  border-left: 1px solid rgba(245,166,35,0.3);
  border-top: 1px solid rgba(245,166,35,0.3);
  transform: rotate(45deg);
}
.device-bar-row.open .dev-tooltip { display: block; }
/* Optimization summary */
.optim-summary {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(107,122,153,0.2);
}
.optim-summary h4 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; color: var(--accent-text);
}
.optim-items { display: flex; flex-direction: column; gap: 8px; }
.optim-item { display: flex; gap: 10px; align-items: flex-start; }
.optim-item .oi-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 6px; }
.optim-item p { font-size: 0.8rem; color: var(--light); line-height: 1.5; margin: 0; }
.optim-item p strong { color: var(--white); }

/* EXPANSION BLOCK */
.expand-block {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.expand-block h3 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 1.52rem; font-weight: 700; margin-bottom: 14px;
}
.expand-scenario {
  background: var(--dark);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-left: 3px solid var(--muted);
  transition: border-color 0.2s;
}
.expand-scenario:hover { border-color: var(--yellow); }
.expand-scenario.trigger { border-color: var(--yellow); }
.expand-scenario.warning { border-color: #ff7043; }
.expand-scenario.green   { border-color: var(--green); }
.expand-scenario .es-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.expand-scenario .es-icon { font-size: 1.25rem; flex-shrink: 0; }
.expand-scenario .es-title { font-size: 0.88rem; font-weight: 600; }
.expand-scenario .es-body { font-size: 0.79rem; color: var(--muted); line-height: 1.55; }
.expand-scenario .es-body strong { color: var(--light); }
.expand-checklist { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(107,122,153,0.2); }
.expand-checklist h4 {
  font-family: 'Open Sans', sans-serif; font-weight: 700;
  font-size: 0.82rem; font-weight: 700; color: var(--accent-text); margin-bottom: 8px;
}
.ecl-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.ecl-item .ecl-num {
  min-width: 20px; height: 20px; background: rgba(245,166,35,0.15);
  border-radius: 50%; font-size: 0.7rem; font-weight: 700; color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.ecl-item p { font-size: 0.79rem; color: var(--light); line-height: 1.5; margin: 0; }

/* =====================================================================
   v5 kiegészítések: hozzáférhetőség, új elemek
   ===================================================================== */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--on-yellow); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 2000; text-decoration: none; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
button { font-family: inherit; }
a { color: var(--accent-text); }
.btn { min-height: 44px; }
.btn:focus-visible, .tile:focus-visible { outline-offset: 3px; }

/* Csempék gombként */
button.tile { width: 100%; font: inherit; color: inherit; display: block; text-align: center; }
.tile .tile-icon, .tile .tile-name, .tile .tile-sub, .tile .tile-badge { display: block; }
.tile .tile-sub { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.tile .tile-badge { font-size: 0.75rem; }
.tile.tile-sm { padding: 14px 12px; text-align: left; }
.tile.tile-sm .tile-name { font-size: 0.92rem; }
.profile-info { display: none; margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--yellow); background: rgba(245,166,35,0.07); border-radius: 0 8px 8px 0; font-size: 0.86rem; line-height: 1.55; color: var(--light); }
.profile-info.visible { display: block; }
.hint { font-size: 0.8rem; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.hint a { color: var(--accent-text); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; cursor: pointer; font-size: 0.88rem; line-height: 1.5; color: var(--light); }
.check input { width: 26px; height: 26px; margin-top: 1px; flex-shrink: 0; accent-color: var(--yellow); cursor: pointer; }
.check small { color: var(--muted); }
.check.consent { margin-top: 16px; }
.field label small { color: var(--muted); font-weight: 400; }
details.adv { margin-top: 16px; border: 1px solid rgba(107,122,153,0.3); border-radius: 10px; padding: 0 14px; }
details.adv > summary { cursor: pointer; padding: 14px 0; font-size: 0.88rem; font-weight: 600; color: var(--light); min-height: 44px; }
details.adv[open] { padding-bottom: 12px; }
details.adv > summary span { color: var(--accent-text); }

/* Fülek, kategóriafejlécek gombként */
.tab-btn { min-height: 44px; font-family: inherit; }
button.cat-header { width: 100%; text-align: left; border-top: 0; border-right: 0; border-bottom: 0; font-family: inherit; min-height: 44px; }
.cat-body-collapsed { display: none; }

/* Készüléklap */
.device-tile { cursor: default; }
.device-tile .d-toggle { background: none; border: 0; color: inherit; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; width: 100%; padding: 2px 0 4px; border-radius: 8px; }
.device-tile .d-watt { font-size: 0.75rem; }
.device-tile .d-kwh { color: var(--accent-text); font-weight: 600; }
.device-tile .d-counter { gap: 4px; }
.device-tile .d-counter button { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 50%; }
.device-tile .d-count { font-size: 1rem; min-width: 24px; }
.usage-levels { gap: 4px; flex-wrap: wrap; justify-content: center; }
.usage-levels[hidden] { display: none !important; }
.usage-btn { font-size: 0.78rem; min-height: 44px; padding: 6px 10px; }
.live-counter .lc-label { font-size: 0.78rem; }

/* Eredmény */
.res-desc { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }
.res-params { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
.chip { background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.35); border-radius: 20px; padding: 6px 16px; font-size: 0.9rem; font-weight: 700; color: var(--accent-text); }
.res-banner { border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 0.88rem; line-height: 1.55; background: rgba(61,170,110,0.1); border: 1px solid rgba(61,170,110,0.35); }
.res-banner.warn { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.4); }
.notice.winter { margin-top: 14px; border-left-color: var(--yellow); background: rgba(245,166,35,0.08); }
.cap { font-size: 0.8rem; color: var(--muted); margin: 8px 0 10px; line-height: 1.5; }
.dual-products.single { grid-template-columns: 1fr; }
.dual-products { align-items: start; }
.product-card.alt { border-color: rgba(107,122,153,0.4); }
.product-card .pc-shop { font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.product-card .pc-plus { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--green); background: rgba(61,170,110,0.12); border-radius: 12px; padding: 2px 10px; vertical-align: middle; }
.product-card .pc-name { font-size: 1.15rem; line-height: 1.3; }
.pc-cov { margin: 12px 0 6px; display: flex; flex-direction: column; gap: 10px; }
.cov-row { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--light); margin-bottom: 4px; }
.cov-row strong { color: var(--white); }
.cov-track { height: 8px; background: rgba(107,122,153,0.25); border-radius: 4px; overflow: hidden; }
.cov-fill { height: 100%; border-radius: 4px; }
.cov-fill.good { background: var(--green); }
.cov-fill.mid { background: var(--yellow); }
.cov-fill.low { background: #f87171; }
.cov-hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.pc-warn { margin: 10px 0 0; padding: 10px 12px 10px 28px; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.35); border-radius: 8px; font-size: 0.82rem; line-height: 1.5; color: var(--light); }
.pc-pricebox { margin-top: 14px; padding: 12px 14px; background: var(--dark); border-radius: 10px; }
.pc-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; color: var(--light); padding: 3px 0; }
.pc-row strong { color: var(--white); }
.pc-row.total { border-top: 1px solid rgba(107,122,153,0.3); margin-top: 6px; padding-top: 8px; font-size: 1.05rem; }
.pc-row.total strong { color: var(--accent-text); font-size: 1.3rem; }
.pc-vat { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.product-card .pc-features li { font-size: 0.84rem; line-height: 1.45; }
.product-card .pc-features a, .pc-other a { color: var(--accent-text); }
.pc-notes { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.pc-notes summary { cursor: pointer; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.pc-notes p { line-height: 1.5; padding-bottom: 6px; }
.pc-other { font-size: 0.82rem; color: var(--light); margin-top: 8px; line-height: 1.5; }
.pc-link { text-decoration: none; width: 100%; justify-content: center; margin-top: 12px; }

/* Ajánlatkérés */
.lead-card { border: 1px solid rgba(245,166,35,0.35); }
.form-error { color: #ff9b9b; font-size: 0.88rem; margin: 12px 0 0; line-height: 1.5; }
.lead-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lead-actions .btn { flex: 1; justify-content: center; min-width: 150px; }
#lead-success { text-align: center; }
#lead-success .success-icon { font-size: 2.2rem; margin-bottom: 6px; }
.contact-card { text-align: center; }
.contact-card .phone-icon { font-size: 1.8rem; margin-bottom: 8px; }
.btn-restart { width: 100%; justify-content: center; margin-top: 12px; }

/* Készülék-sávok */
button.device-bar-row { width: 100%; font: inherit; color: inherit; text-align: left; border: 0; background: transparent; cursor: pointer; position: relative; flex-wrap: wrap; }
.dev-tip { grid-column: 1 / -1; display: block; margin-top: 8px; padding: 10px 12px; background: var(--dark); border-left: 3px solid var(--yellow); border-radius: 6px; font-size: 0.8rem; line-height: 1.5; color: var(--light); }
.dev-tip[hidden] { display: none !important; }
.dev-tip strong { color: var(--accent-text); }
.pie-legend { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pie-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; min-height: 44px; border: 1px solid var(--chip, #6B7A99); background: rgba(0,0,0,0.2); color: var(--white); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.pie-chip .sw { width: 10px; height: 10px; border-radius: 2px; background: var(--chip, #6B7A99); display: inline-block; }
.pie-chip strong { color: var(--chip, #fff); margin-left: 4px; }
.pie-chip.off { border-color: rgba(107,122,153,0.4); color: var(--muted); background: rgba(107,122,153,0.06); }
.pie-chip.off .sw { opacity: 0.35; background: #6B7A99; }
.pie-note { width: 100%; text-align: center; font-size: 0.8rem; color: var(--green); margin-top: 6px; font-weight: 600; }

/* E-mail ablak */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; overflow-y: auto; padding: 20px; }
.modal-box { max-width: 640px; margin: 0 auto; background: var(--modal-bg); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.modal-head { background: var(--dark); padding: 18px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-title { font-weight: 700; font-size: 1rem; }
.modal-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 1.6rem; width: 44px; height: 44px; cursor: pointer; line-height: 1; }
.modal-body { padding: 18px 22px 0; }
.modal-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--accent-text); margin-bottom: 6px; }
.modal-body textarea { width: 100%; background: var(--dark); border: 1.5px solid var(--dark2); border-radius: 8px; padding: 12px; color: var(--white); font-family: inherit; font-size: 0.88rem; resize: vertical; min-height: 80px; }
.email-preview { background: var(--dark); border-radius: 8px; padding: 14px 16px; font-family: 'Courier New', monospace; font-size: 0.78rem; color: #c5cfe0; line-height: 1.65; max-height: 320px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.modal-actions { padding: 18px 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; justify-content: center; min-width: 170px; }
.copy-confirm { text-align: center; padding: 0 22px 14px; font-size: 0.82rem; color: var(--green); }

/* Mozgás: csökkentett mozgásnál nincs áttűnés/animáció */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 520px) {
  .calc-wrap { padding: 16px 14px 80px; }
  .card { padding: 20px 16px; }
  .live-counter { gap: 8px; }
  .live-counter .lc-item { flex: 1 1 40%; }
}

/* Minőségkapu javítások */
.field input, .field select { min-height: 44px; }
.skip-link { min-height: 44px; display: inline-flex; align-items: center; }
.product-card .pc-plus { color: #8be3b3; background: rgba(61,170,110,0.18); }
.device-tile { min-width: 0; }
.device-tile .d-counter { flex-wrap: wrap; justify-content: center; }
.usage-levels { max-width: 100%; }
@media (max-width: 380px) { .tile-grid.cols-3 { grid-template-columns: 1fr; } }
/* Mondatba ágyazott linkek: nagyobb érinthető terület, a sortörés változatlan */
.hint a, .check a, .pc-other a, .pc-features a { display: inline-block; padding: 13px 3px; margin: -13px 0; }
/* Fókuszkezelés: a lépés címe programozottan kap fókuszt, ehhez nem kell keret */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.cat-badge:empty { display: none; }
#preset-tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* v5.1: rendszertípus, tervezett bővítés, tarifa, telepítés */
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pick { min-height: 44px; padding: 8px 14px; border-radius: 22px; border: 2px solid transparent; background: var(--dark); color: var(--white); font: inherit; font-size: 0.86rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pick:hover { border-color: rgba(245,166,35,0.5); }
.pick.on, .pick[aria-pressed="true"] { border-color: var(--yellow); background: rgba(245,166,35,0.12); color: var(--accent-text); }
.plan-note { margin: 0 auto 14px; max-width: 560px; font-size: 0.86rem; line-height: 1.55; color: var(--light); background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.3); border-radius: 10px; padding: 10px 14px; }
.link-btn { background: none; border: 0; padding: 12px 2px; margin: -12px 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
.pc-info { background: rgba(245,166,35,0.08); border-color: rgba(245,166,35,0.3); }
#system-tiles .tile-sub, #install-tiles .tile-sub { font-size: 0.8rem; }
.lc-label small, #lc-note { font-size: 0.72rem; color: var(--muted); }
@media (max-width: 500px) {
  #system-tiles .tile:last-child:nth-child(odd), #install-tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
#system-wrap .section-label, #install-fields .section-label { margin-top: 26px; }

/* =====================================================================
   v6: kattintható választógombok, KPI-sor, összecsukható szakaszok, témák
   ===================================================================== */
/* A „Mikor használod?” két gombja: egyértelműen kattintható, a kiválasztott kiemelt */
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .choice-row { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; min-height: 68px; padding: 14px 16px; border-radius: 12px; font: inherit; color: var(--white); background: var(--dark); border: 2px solid var(--border); cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,0.18); transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s; }
.choice:hover { border-color: var(--yellow); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,166,35,0.18); }
.choice:active { transform: translateY(0); box-shadow: none; }
.choice-dot { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); display: inline-block; position: relative; }
.choice-text { display: flex; flex-direction: column; gap: 2px; }
.choice-name { font-weight: 700; font-size: 1rem; }
.choice-sub { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.choice.selected { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); box-shadow: 0 4px 14px rgba(245,166,35,0.35); }
.choice.selected .choice-sub { color: #3a3000; }
.choice.selected .choice-dot { border-color: var(--on-yellow); background: var(--on-yellow); }
.choice.selected .choice-dot::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--yellow); font-size: 0.8rem; font-weight: 800; }

/* Eredmény: KPI-sor */
.result-hero .rh-badge { margin-bottom: 10px; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 4px; text-align: left; }
.kpi { background: var(--dark); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 12px; }
.kpi-label { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.kpi-val { font-size: 1.45rem; font-weight: 800; color: var(--accent-text); line-height: 1.2; margin: 4px 0; }
.kpi-sub { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.price-note { font-size: 0.82rem; color: var(--muted); line-height: 1.55; max-width: 620px; margin: 12px auto 0; text-align: left; }
.result-hero .res-desc { margin-bottom: 12px; }

/* Összecsukható szakaszok */
details.fold { background: var(--dark2); border-radius: var(--radius); margin-bottom: 12px; border: 1px solid var(--border); }
details.fold > summary { list-style: none; cursor: pointer; padding: 16px 20px; font-size: 1.02rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: '▾'; font-size: 1.1rem; color: var(--accent-text); transition: transform 0.2s; flex-shrink: 0; }
details.fold[open] > summary::after { transform: rotate(180deg); }
details.fold > summary:hover { color: var(--accent-text); }
.fold-body { padding: 0 20px 18px; }
.fold-p { font-size: 0.88rem; line-height: 1.65; color: var(--light); margin: 0 0 12px; }
.fold-p strong { color: var(--accent-text); }
.fold-list { margin: 0 0 12px 18px; font-size: 0.86rem; line-height: 1.6; color: var(--light); }
.fold-list li { margin-bottom: 6px; }
.fold-list strong { color: var(--white); }
.fold-refs-title { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 6px; }
details.fold[hidden] { display: none !important; }
.fold .dc-sub { margin-bottom: 10px; }

/* Termékkártya: az alternatíva tömör */
.product-card.compact .pc-changes-title { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 10px; }
.product-card.compact .pc-features { margin: 8px 0 4px; }
.product-card.compact .pc-features li::before { content: '→'; color: var(--accent-text); }
.dual-products { grid-template-columns: 1.35fr 1fr; }
@media (max-width: 760px) { .dual-products { grid-template-columns: 1fr; } }
.pc-info { list-style: none; padding-left: 14px; }
.pc-info li { margin: 4px 0; }

/* ---- Világos téma (webshopba ágyazáshoz): ?theme=light ---- */
:root[data-theme="light"] {
  --dark: #F2F4F8; --dark2: #FFFFFF; --white: #1A1F2E; --light: #2C3548; --muted: #4C5875;
  --green: #1E8A52; --accent-text: #8A5300; --on-yellow: #1A1F2E; --border: rgba(60,70,100,0.28);
  --hero-a: #FFF6E3; --hero-b: #FFFFFF; --modal-bg: #FFFFFF; --shadow: 0 4px 18px rgba(30,40,70,0.12);
  --chart-muted: #5A6785; --chart-text: #2C3548; --chart-grid: rgba(60,70,100,0.15); --chart-axis: rgba(60,70,100,0.38);
  --chart-tip-bg: rgba(255,255,255,0.98); --chart-tip-text: #1A1F2E; --chart-red: #C0392B;
}
:root[data-theme="light"] body { color: var(--white); }
:root[data-theme="light"] .card, :root[data-theme="light"] .product-card, :root[data-theme="light"] details.fold { box-shadow: var(--shadow); }
:root[data-theme="light"] .btn-secondary { border-color: var(--border); background: #fff; color: var(--light); }
:root[data-theme="light"] .btn-secondary:hover { border-color: var(--muted); color: var(--white); }
:root[data-theme="light"] .tile, :root[data-theme="light"] .device-tile { border-color: var(--border); }
:root[data-theme="light"] .tile.selected, :root[data-theme="light"] .tile.selected .tile-name { background: rgba(245,166,35,0.16); border-color: var(--yellow); }
:root[data-theme="light"] .choice { box-shadow: 0 2px 0 rgba(30,40,70,0.12); }
:root[data-theme="light"] .choice.selected .choice-sub { color: #3a3000; }
:root[data-theme="light"] .pc-plus { color: #176b3f; background: rgba(30,138,82,0.12); }
:root[data-theme="light"] .form-error { color: #B3261E; }
:root[data-theme="light"] .res-banner { background: rgba(30,138,82,0.1); }
:root[data-theme="light"] .res-banner.warn { background: rgba(192,57,43,0.08); }
:root[data-theme="light"] .pc-warn { color: var(--light); }
:root[data-theme="light"] .cov-fill.low { background: #C0392B; }
:root[data-theme="light"] .cov-fill.mid { background: #D4860F; }
:root[data-theme="light"] .email-preview, :root[data-theme="light"] .modal-body textarea { background: var(--dark); color: var(--white); }
:root[data-theme="light"] .modal-title { color: var(--white); }
:root[data-theme="light"] .modal-close { color: var(--muted); }
:root[data-theme="light"] .modal-head { background: var(--dark); }
:root[data-theme="light"] .live-counter { background: #FFF6E3; }
:root[data-theme="light"] .field input, :root[data-theme="light"] .field select { border-color: var(--border); }
:root[data-theme="light"] .progress-step { background: #D5DBE8; }
:root[data-theme="light"] .calc-header h1, :root[data-theme="light"] .calc-header p { color: var(--white); }
:root[data-theme="light"] .calc-header p, :root[data-theme="light"] .progress-label { color: var(--muted); }

/* ---- Beágyazott mód: ?embed=1 ---- */
html.embed body { background: transparent; }
html.embed .calc-header { display: none; }
html.embed .calc-wrap { padding-top: 8px; }
html.in-frame body { min-height: 0; background: transparent; }
html.in-frame .float-btn { display: none; }
html.in-frame .calc-wrap { padding-bottom: 24px; }

.pc-link { text-align: center; justify-content: center; }

/* ---- Utólagos finomítások ---- */
:root[data-theme="light"] .result-hero .rh-badge { color: #14693D; background: rgba(30,138,82,0.14); }
.hero-cta { display: inline-flex; justify-content: center; margin-top: 14px; text-decoration: none; }
.float-btn.fab-hide { opacity: 0; visibility: hidden; pointer-events: none; }
.float-btn { transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.2s; }
@media (max-width: 600px) { html:not([data-step="4"]) .float-btn { display: none; } }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #FF8A80; }
.check input[aria-invalid="true"] { outline: 2px solid #FF8A80; outline-offset: 2px; }
:root[data-theme="light"] .field input[aria-invalid="true"], :root[data-theme="light"] .check input[aria-invalid="true"] { border-color: #B3261E; outline-color: #B3261E; }

/* ---- Termékkép, összecsukott szakaszok, rögzített alsó sáv ---- */
.pc-img { margin: 10px 0 12px; text-align: center; }
.pc-img img { display: block; width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: 12px; object-fit: contain; }
.pc-img figcaption { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.alt-fold { margin-top: 12px; }
.alt-fold .fold-body { padding: 0 12px 14px; }
.alt-fold .product-card { margin: 0; }
details.fold .chart-wrap, details.fold .payback-chart-wrap { background: none; padding: 0; margin: 0; }
.dual-products { grid-template-columns: 1fr; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; display: none; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--dark2); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,0.25); transition: transform 0.2s, opacity 0.2s; }
.sticky-cta .sc-price { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.sticky-cta .sc-label { font-size: 0.72rem; color: var(--muted); }
.sticky-cta .sc-price strong { font-size: 1.05rem; color: var(--accent-text); white-space: nowrap; }
.sticky-cta .btn { padding: 12px 18px; min-height: 48px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.sticky-cta .sc-call { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; text-decoration: none; background: var(--yellow); color: var(--on-yellow); flex-shrink: 0; }
.sticky-cta.sc-hide { transform: translateY(110%); opacity: 0; pointer-events: none; }
.sticky-cta[hidden] { display: none !important; }
@media (max-width: 600px) {
  html[data-step="4"] .sticky-cta { display: flex; }
  html[data-step="4"] .calc-wrap { padding-bottom: 96px; }
  html.in-frame .sticky-cta { display: none !important; }
  .float-btn { display: none; }
}
@media (min-width: 761px) { .dual-products { grid-template-columns: 1fr; } }
.pc-webname { font-size: 0.78rem; color: var(--muted); margin: 2px 0 6px; }

/* Források táblázat */
.table-wrap { overflow-x: auto; margin: 8px 0 12px; }
.src-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; line-height: 1.45; }
.src-table th, .src-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.src-table th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.src-table td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.src-table a, .fold-list a { color: var(--accent-text); }
.src-note { color: var(--muted); font-size: 0.74rem; }
.src-table a, .fold-list a, .fold-p a { display: inline-block; padding: 13px 3px; margin: -13px 0; }
.src-table a, .fold-list a, .fold-p a { min-width: 44px; }

/* ---- 2. kör: alcímek, lenyílók, alsó számláló, kép, Norbi ---- */
.section-label { font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--white); margin: 32px 0 12px; padding-left: 10px; border-left: 3px solid var(--yellow); line-height: 1.3; }
.section-label.large { font-size: 1.15rem; }
details.adv { margin-top: 22px; border-color: var(--border); background: rgba(255,255,255,0.02); }
details.adv > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 1rem; font-weight: 700; color: var(--white); min-height: 54px; line-height: 1.35; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::after { content: '▾'; font-size: 1.25rem; color: var(--accent-text); flex-shrink: 0; transition: transform 0.2s; }
details.adv[open] > summary::after { transform: rotate(180deg); }
details.adv[open] { border-color: rgba(245,166,35,0.55); padding-bottom: 16px; }
details.adv > summary small { font-weight: 400; color: var(--muted); }
.cat-section { margin-bottom: 8px; }
.cat-header { font-size: 1.08rem; margin: 22px 0 12px; }
.hint { margin-top: 10px; }

/* 2. lépés: rögzített alsó számláló */
#live-counter { position: fixed; left: 0; right: 0; bottom: 0; z-index: 997; margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: var(--dark2); box-shadow: 0 -6px 20px rgba(0,0,0,0.28);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px max(12px, calc((100vw - 760px) / 2)) calc(10px + env(safe-area-inset-bottom)); }
#live-counter .lc-val { font-size: 1.3rem; font-variant-numeric: tabular-nums; transition: color 0.3s; white-space: nowrap; }
#live-counter .lc-label { font-size: 0.75rem; line-height: 1.25; }
html[data-step="2"] .calc-wrap { padding-bottom: 112px; }
#live-counter .lc-val.lc-up { color: #FFA270; }
#live-counter .lc-val.lc-down { color: #7FE3AE; }
#live-counter .lc-val.lc-up::after { content: ' ▲'; font-size: 0.6em; }
#live-counter .lc-val.lc-down::after { content: ' ▼'; font-size: 0.6em; }
:root[data-theme="light"] #live-counter .lc-val.lc-up { color: #B3401A; }
:root[data-theme="light"] #live-counter .lc-val.lc-down { color: #14693D; }
@media (max-width: 400px) { #live-counter .lc-val { font-size: 1.1rem; } }
#lc-note { display: none; }
html.in-frame #live-counter { position: sticky; bottom: 0; }

/* 3. lépés: csomagkép a címlapon, kiemelt webshop-gomb */
.res-img { margin: 14px auto 6px; text-align: center; }
.res-img img { display: block; width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: 14px; object-fit: contain; box-shadow: 0 6px 22px rgba(0,0,0,0.25); }
.res-img figcaption { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.pc-img.pc-img-sm img { max-width: 140px; }
.btn.pc-link.btn-primary { font-size: 1.05rem; padding: 16px 24px; min-height: 56px; box-shadow: 0 6px 20px rgba(245,166,35,0.35); }
.btn.hero-cta.btn-secondary { border: 2px solid var(--yellow); color: var(--white); }
.btn.hero-cta.btn-secondary:hover { background: rgba(245,166,35,0.12); }

/* Norbi */
.contact-person { margin: 0 auto 10px; text-align: center; }
.contact-person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 3px solid var(--yellow); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.contact-person figcaption { font-weight: 700; margin-top: 6px; color: var(--white); }
@media (prefers-reduced-motion: reduce) { #live-counter .lc-val { transition: none; } details.adv > summary::after { transition: none; } }

/* Bővítési lehetőségek, tervezett bővítés */
.addon-card, .plan-card { margin-bottom: 16px; }
.addon-card h2, .plan-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
.addon-list { list-style: none; padding: 0; margin: 12px 0 0; }
.addon-list > li { padding: 12px 0; border-top: 1px solid var(--border); font-size: 0.92rem; line-height: 1.55; color: var(--light); }
.addon-list > li:first-child { border-top: 0; padding-top: 0; }
.addon-list strong { color: var(--white); }
.addon-list .addon-sub { border-top: 0; padding-top: 0; margin-top: -8px; color: var(--muted); font-size: 0.86rem; }
.addon-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.addon-step { background: var(--dark); border-radius: 8px; padding: 8px 12px; color: var(--white); font-weight: 600; }
.plan-card { border: 1px solid rgba(245,166,35,0.35); }
