/* =====================================================================
   OTTHON VARÁZS – STÍLUSOK
   Mobil-first. Színek és méretek a :root változókban.
   ===================================================================== */

:root {
  --bg: #F7F4EE;          /* törtfehér alap */
  --ink: #14181C;         /* sötét tinta */
  --copper: #C08A4B;      /* meleg réz kiemelés */
  --copper-ink: #8A5A24;  /* réz szövegre (olvasható kontraszt) */
  --copper-soft: #F1E3D0;
  --sand: #EBE3D6;        /* halvány homok – szekcióváltások */
  --surface: #FFFFFF;
  --muted: #5B6168;
  --line: rgba(20, 24, 28, .12);
  --line-strong: rgba(20, 24, 28, .22);
  --error: #A3322A;

  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 28, .05), 0 2px 8px rgba(20, 24, 28, .04);
  --shadow: 0 2px 6px rgba(20, 24, 28, .04), 0 12px 32px rgba(20, 24, 28, .07);
  --shadow-lg: 0 6px 16px rgba(20, 24, 28, .06), 0 24px 60px rgba(20, 24, 28, .12);

  --header-h: 64px;
  --bar-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .25s;
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { display: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform .2s var(--ease), box-shadow var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a3037; box-shadow: var(--shadow); }
.btn-copper { background: var(--copper); color: var(--ink); }
.btn-copper:hover { background: #cf9a5b; box-shadow: 0 8px 24px rgba(192, 138, 75, .3); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); background: rgba(255, 255, 255, .6); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(20, 24, 28, .06); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.link-btn:hover { text-decoration-color: currentColor; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(247, 244, 238, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { display: grid; place-items: center; color: var(--ink); }
.logo-text { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.01em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.hide-sm { display: none; }

.menu-toggle {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 12px; cursor: pointer;
}
.menu-toggle:hover { background: rgba(20, 24, 28, .06); }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 20px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px 20px 20px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.main-nav a {
  display: block; padding: 14px 4px; text-decoration: none; font-size: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.main-nav li:last-child a { border-bottom: 0; }

@media (min-width: 640px) {
  .hide-sm { display: inline; }
}
@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .main-nav {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .main-nav ul { display: flex; gap: 4px; }
  .main-nav a {
    padding: 8px 14px; border: 0; border-radius: 999px; font-size: .97rem; color: #2b3138;
    transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
  }
  .main-nav a:hover { background: rgba(20, 24, 28, .06); color: var(--ink); }
  .header-actions { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 40px 0 56px;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(192, 138, 75, .12), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(235, 227, 214, .9), transparent 70%);
}
.hero-inner { display: grid; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--copper); }
.hero h1 { font-size: clamp(2.1rem, 7.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.02em; }
.lead { margin-top: 18px; font-size: clamp(1.08rem, 2.6vw, 1.3rem); color: #3a4047; max-width: 36ch; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: .93rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }

.hero-art-wrap { margin: 0; position: relative; }
.hero-art-wrap::before {
  content: ""; position: absolute; inset: 10% 6% -4% 6%; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(192, 138, 75, .16), transparent);
  filter: blur(20px); z-index: -1;
}
.hero-art-wrap { display: grid; }
.hero-photo {
  grid-area: 1 / 1; justify-self: end; width: 66%; aspect-ratio: 4 / 5; position: relative;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sand);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-tag {
  position: absolute; right: 10px; top: 10px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 999px;
  background: rgba(20, 24, 28, .66); color: #fff; font-size: .7rem; line-height: 1.4;
}
.hero-art { grid-area: 1 / 1; align-self: end; justify-self: start; width: 74%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 24px 40px rgba(20, 24, 28, .14)); }
.hero-photo { justify-self: center; width: min(100%, 440px); }
.hero-photo-tag { right: auto; left: 10px; top: auto; bottom: 10px; }
@media (min-width: 960px) { .hero-photo { justify-self: end; width: 86%; aspect-ratio: 4 / 4.6; } }

/* Telefon / tablet: a fotó a szöveg mögött, háttérként, világos fátyollal az olvashatóságért */
@media (max-width: 959px) {
  .hero { isolation: isolate; }
  .hero-art-wrap { position: absolute; inset: 0; z-index: -1; margin: 0; }
  .hero-art-wrap::before { display: none; }
  .hero-photo {
    justify-self: stretch; align-self: stretch; width: 100%; height: 100%; aspect-ratio: auto;
    border-radius: 0; box-shadow: none;
  }
  .hero-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(247, 244, 238, .84) 0%, rgba(247, 244, 238, .66) 45%, rgba(247, 244, 238, .42) 100%);
  }
  .hero-photo-tag { z-index: 1; }
  .hero-text { text-shadow: 0 0 14px rgba(247, 244, 238, .9), 0 0 3px rgba(247, 244, 238, .8); }
  .hero-text .btn { text-shadow: none; }
  .hero-text .btn-outline { background: rgba(247, 244, 238, .88); border-color: var(--ink); }
  .hero-points { color: var(--ink); }
  .hero .lead { color: var(--ink); }
}
.hero-art .glow { animation: glow 7s ease-in-out infinite alternate; transform-box: fill-box; }
@keyframes glow {
  0%   { opacity: .45; }
  100% { opacity: 1; }
}

@media (min-width: 560px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* ---------- Szekciók ---------- */
.section { padding: 72px 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head-left { margin-left: 0; text-align: left; }
.section-head-left .eyebrow { justify-content: flex-start; }
.section h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
@media (min-width: 960px) { .section { padding: 104px 0; } }

/* ---------- Szolgáltatások ---------- */
.service-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.service-card {
  height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(192, 138, 75, .45); }
.service-icon {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: var(--copper-soft); color: var(--copper-ink);
}
.service-icon .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.service-card h3 { font-size: 1.22rem; align-self: end; }
.service-card p { color: var(--muted); font-size: .96rem; }
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .service-card { grid-template-columns: 1fr; padding: 26px; }
  .service-icon { grid-row: auto; margin-bottom: 10px; }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(5, 1fr); }
  .service-card { padding: 24px 20px; }
  .service-card h3 { font-size: 1.12rem; }
}

/* ---------- Árkalkulátor ---------- */
.calc {
  max-width: 920px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-band {
  background: var(--ink); color: #F2E7D8; text-align: center;
  padding: 12px 20px; font-size: .94rem;
}
.demo-band strong { color: var(--copper); font-weight: 600; }

.calc-progress {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 20px 20px 0; counter-reset: s;
}
.calc-progress li {
  display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative;
  color: var(--muted); font-size: .8rem; text-align: center;
}
.calc-progress li::after {
  content: ""; position: absolute; top: 16px; left: calc(50% + 22px); right: calc(-50% + 22px);
  height: 1px; background: var(--line-strong);
}
.calc-progress li:last-child::after { display: none; }
.calc-progress .num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: .9rem;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.calc-progress li.is-done .num { background: var(--copper-soft); border-color: var(--copper); color: var(--copper-ink); }
.calc-progress li.is-done::after { background: var(--copper); }
.calc-progress li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.calc-progress li[aria-current="step"] .num { background: var(--ink); border-color: var(--ink); color: #fff; }

.calc-body { padding: 24px 20px 24px; }
.calc-step { border: 0; margin: 0; padding: 0; min-width: 0; animation: stepIn .3s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.calc-step-title { font-family: var(--serif); font-size: clamp(1.4rem, 3.6vw, 1.85rem); padding: 0; line-height: 1.2; }
.calc-hint { color: var(--muted); margin: 8px 0 20px; }

.calc-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .calc-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.calc-card { position: relative; display: block; cursor: pointer; }
.calc-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-card-body {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center;
  min-height: 76px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.calc-card:hover .calc-card-body { border-color: var(--line-strong); }
.calc-card .service-icon { width: 44px; height: 44px; border-radius: 12px; grid-row: span 2; margin: 0; }
.calc-card .service-icon .icon { width: 24px; height: 24px; }
.calc-card-name { font-weight: 600; line-height: 1.3; }
.calc-card-meta { color: var(--muted); font-size: .86rem; grid-column: 2; }
.calc-card-tick {
  grid-row: 1 / span 2; grid-column: 3;
  width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; color: transparent; background: var(--surface);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.calc-card-tick .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.calc-card input:checked + .calc-card-body { border-color: var(--copper); background: #FCF7F0; box-shadow: 0 0 0 3px rgba(192, 138, 75, .14); }
.calc-card input:checked + .calc-card-body .calc-card-tick { background: var(--copper); border-color: var(--copper); color: var(--ink); }
.calc-card input:focus-visible + .calc-card-body { outline: 2px solid var(--ink); outline-offset: 2px; }
.calc-cards-extra .calc-card-body { grid-template-columns: 1fr auto; }
.calc-cards-extra .calc-card-meta { grid-column: 1; }
.calc-cards-extra .calc-card-tick { grid-column: 2; }

.calc-qty-list { display: grid; gap: 12px; }
.qty-row {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg);
}
.qty-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.qty-head label { font-weight: 600; }
.qty-sub { color: var(--copper-ink); font-size: .9rem; font-variant-numeric: tabular-nums; }
.qty-help { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.qty-controls { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 14px; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); overflow: hidden; }
.qty-input input {
  width: 84px; min-height: 48px; border: 0; padding: 0 4px 0 14px; background: transparent;
  font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input input:focus { outline: none; }
.qty-input:focus-within { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(192, 138, 75, .2); }
.qty-input input[aria-invalid="true"] { color: var(--error); }
.qty-unit { padding: 0 14px 0 6px; color: var(--muted); font-weight: 500; }

/* Csúszka (mennyiség) */
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer;
  --fill: 0%;
}
.range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--copper) var(--fill), var(--line-strong) var(--fill));
}
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-strong); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--copper); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--copper); box-shadow: var(--shadow-sm);
}
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--copper); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(192, 138, 75, .35); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(192, 138, 75, .35); }

.calc-error { color: var(--error); font-size: .95rem; min-height: 0; margin-top: 12px; }
.calc-error:empty { display: none; }

.calc-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc-nav #kalk-tovabb { margin-left: auto; }

/* Eredmény */
.calc-result { margin-top: 16px; }
.result-range {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 22px;
  position: relative; overflow: hidden;
}
.result-range::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(192, 138, 75, .35), transparent);
}
.result-label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #CDBFAE; }
.result-value {
  font-family: var(--serif); font-size: clamp(1.9rem, 7vw, 3.1rem); line-height: 1.1; margin-top: 8px;
  font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.result-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-variant-numeric: tabular-nums; }
.result-table caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.result-table th, .result-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.result-table td { text-align: right; padding-left: 12px; min-width: 9em; }
@media (min-width: 560px) { .result-table td { white-space: nowrap; } }
.result-table th small { display: block; color: var(--muted); font-size: .85rem; }
.result-table tfoot th, .result-table tfoot td { font-weight: 600; border-bottom: 0; }
.result-notes { margin-top: 16px; display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.result-notes .placeholder { color: var(--copper-ink); }
.calc-result-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.calc-result-ctas .btn { white-space: normal; }
@media (min-width: 720px) {
  .calc-progress { padding: 28px 40px 0; font-size: .9rem; }
  .calc-progress li { flex-direction: row; justify-content: center; font-size: .9rem; }
  .calc-progress li::after { top: 16px; left: calc(50% + 70px); right: calc(-50% + 70px); }
  .calc-body { padding: 32px 40px 32px; }
  .calc-result-ctas { flex-direction: row; flex-wrap: wrap; }
  .result-range { padding: 32px; }
}
.calc-noscript { padding: 24px; }

/* ---------- Referenciák / előtte–utána csúszka ---------- */
.ref-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ref-grid { grid-template-columns: repeat(3, 1fr); } }
.ref-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.ref-body { padding: 18px 22px 22px; }
.ref-body h3 { font-size: 1.3rem; }
.ref-meta { color: var(--copper-ink); font-size: .88rem; margin-top: 4px; }
.ref-body p:not(.ref-meta) { color: var(--muted); margin-top: 8px; font-size: .95rem; }
.ref-tag {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  background: var(--copper-soft); color: var(--copper-ink); font-size: .76rem; font-weight: 600; letter-spacing: .04em;
}

.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer img, .ba-layer svg { width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-label {
  position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  background: rgba(20, 24, 28, .72); color: #fff; font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  pointer-events: none;
}
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; z-index: 3;
  background: #fff; box-shadow: 0 0 0 1px rgba(20, 24, 28, .12); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center;
  transition: transform .2s var(--ease);
}
.ba-knob::before, .ba-knob::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
  border: 6px solid transparent;
}
.ba-knob::before { left: 8px; border-right-color: var(--ink); }
.ba-knob::after { right: 8px; border-left-color: var(--ink); }
.ba.is-dragging .ba-knob { transform: translate(-50%, -50%) scale(1.08); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.ba:has(.ba-range:focus-visible) .ba-knob { box-shadow: 0 0 0 4px var(--copper), var(--shadow); }
.ba-range:focus-visible + .ba-handle .ba-knob { box-shadow: 0 0 0 4px var(--copper), var(--shadow); }

.ref-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.ref-photo img { width: 100%; height: 100%; object-fit: cover; }
.ref-body .ref-credit { font-size: .78rem; color: var(--muted); opacity: .8; }

.ref-placeholder {
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; gap: 10px; padding: 24px;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(20, 24, 28, .025) 14px 15px),
    linear-gradient(160deg, #F3EDE3, var(--sand));
  color: var(--muted);
}
.ref-placeholder-inner { display: grid; justify-items: center; gap: 10px; }
.ref-placeholder .icon { width: 36px; height: 36px; stroke-width: 1.2; color: var(--copper); }
.ref-placeholder strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); }

/* ---------- Folyamat ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  background: var(--bg); border-radius: var(--radius); padding: 24px; position: relative;
  border: 1px solid rgba(20, 24, 28, .06);
}
.step-num { font-family: var(--serif); font-size: 2.2rem; color: var(--copper); line-height: 1; display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); margin-top: 8px; font-size: .96rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 44px; right: -14px; width: 10px; height: 10px;
    border-top: 1.5px solid var(--copper); border-right: 1.5px solid var(--copper); transform: rotate(45deg);
  }
}

/* ---------- Ajánlatkérés ---------- */
.contact-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: 32px; align-items: start; } }

.quote-form, .form-success {
  background: var(--surface); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
@media (min-width: 720px) { .quote-form, .form-success { padding: 36px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.req { color: var(--copper-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg);
  font-size: 1rem; /* 16px: iOS nem nagyít */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314181C' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--copper); background: var(--surface); box-shadow: 0 0 0 3px rgba(192, 138, 75, .2);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .88rem; }
.field-error:empty { display: none; }
.field-note { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.field-note a { color: var(--copper-ink); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips-field legend { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); cursor: pointer; font-size: .93rem;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip span::before {
  content: ""; width: 0; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px); opacity: 0; transition: width .2s var(--ease), opacity .2s var(--ease);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span::before { width: 5px; opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }

.field-check { margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; color: transparent; background: var(--bg); margin-top: 1px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.check-box .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.check input:checked + .check-box { background: var(--copper); border-color: var(--copper); color: var(--ink); }
.check input:focus-visible + .check-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.check input[aria-invalid="true"] + .check-box { border-color: var(--error); }
.check a { color: var(--copper-ink); }
.form-foot { color: var(--muted); font-size: .85rem; text-align: center; }

.calc-summary {
  border: 1px solid rgba(192, 138, 75, .5); background: #FCF7F0; border-radius: var(--radius); padding: 18px;
}
.calc-summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-summary h3 { font-size: 1.15rem; }
.calc-summary .link-btn { font-size: .88rem; color: var(--muted); }
.calc-summary ul { margin-top: 10px; display: grid; gap: 4px; font-size: .93rem; }
.calc-summary li { display: flex; justify-content: space-between; gap: 12px; }
.calc-summary li span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-summary .sum-range { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(192, 138, 75, .35); font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.calc-summary .sum-note { margin-top: 6px; font-size: .82rem; color: var(--muted); }

.form-success { text-align: center; justify-items: center; padding-top: 48px; padding-bottom: 48px; animation: stepIn .35s var(--ease); }
.form-success-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--copper-soft); color: var(--copper-ink);
}
.form-success-icon .icon { width: 30px; height: 30px; stroke-width: 2; }
.form-success h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
.form-success a { color: var(--copper-ink); font-weight: 600; }
.demo-note { font-size: .85rem; color: var(--muted); }

.contact-card {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 28px 24px;
  position: sticky; top: calc(var(--header-h) + 24px);
}
.contact-card h3 { font-size: 1.4rem; }
.contact-list { display: grid; gap: 18px; margin-top: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--copper); margin-top: 3px; }
.contact-list .k { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #A9A196; }
.contact-list a { color: #fff; text-decoration: none; font-size: 1.08rem; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--copper); }

/* ---------- Lábléc ---------- */
.site-footer { background: #101317; color: #CFC8BD; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; } }
.footer-logo { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.footer-tag { margin-top: 6px; color: #9C958B; }
.footer-h { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin-bottom: 12px; font-weight: 600; }
.footer-list { display: grid; gap: 8px; }
.footer-list a, .site-footer .link-btn { color: #E8E2D8; text-decoration: none; }
.footer-list a:hover, .site-footer .link-btn:hover { color: var(--copper); }
.site-footer .link-btn { text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); }
.company-data { margin: 0; display: grid; gap: 6px; }
.company-data.is-placeholder {
  padding: 12px 14px; border: 1px dashed rgba(192, 138, 75, .7); border-radius: 12px; background: rgba(192, 138, 75, .08);
}
.company-data div { display: grid; gap: 0; }
.company-data dt { font-size: .74rem; color: #9C958B; text-transform: uppercase; letter-spacing: .08em; }
.company-data dd { margin: 0; color: #E8E2D8; }
.company-data.is-placeholder dd { color: #F0C99A; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #8F887E; font-size: .85rem;
}
.demo-disclaimer { color: #F0C99A; }

/* ---------- Mobil alsó sáv ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(247, 244, 238, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { min-height: 48px; padding: 10px 12px; }
@media (min-width: 960px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Vissza a tetejére ---------- */
.to-top {
  position: fixed; z-index: 55; right: 14px;
  bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 12px); /* mobilon az alsó gombsáv fölött */
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), background-color var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--copper); color: var(--ink); }
.to-top .icon { width: 22px; height: 22px; stroke-width: 2; }
body.consent-open .to-top { display: none; }
@media (min-width: 960px) { .to-top { right: 24px; bottom: 24px; } }

/* ---------- Süti-panel ---------- */
.consent {
  position: fixed; z-index: 70; left: 12px; right: 12px;
  /* mobilon az alsó gombsáv FÖLÖTT jelenik meg, hogy a hívás gomb elérhető maradjon */
  bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 8px);
  max-height: calc(100vh - var(--header-h) - var(--bar-h) - 32px); overflow: auto;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 20px;
  animation: stepIn .3s var(--ease);
}
.consent h2 { font-size: 1.3rem; }
.consent p { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.consent p a { color: var(--copper-ink); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent-actions .btn { flex: 1 1 auto; }
.consent-settings { display: grid; gap: 4px; margin-top: 14px; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-top: 1px solid var(--line); cursor: pointer; position: relative;
}
.switch-row small { display: block; color: var(--muted); font-size: .84rem; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch {
  flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative;
  transition: background-color .2s var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease);
}
.switch-row input:checked + .switch { background: var(--copper); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:disabled + .switch { opacity: .55; }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 960px) {
  .consent { left: auto; right: 24px; bottom: 24px; width: 420px; max-height: calc(100vh - 120px); }
}

/* ---------- Modal ---------- */
.modal {
  border: 0; padding: 0; border-radius: var(--radius-lg); max-width: 560px; width: calc(100% - 32px);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(20, 24, 28, .5); }
.modal-inner { padding: 32px 24px 24px; display: grid; gap: 16px; position: relative; }
.modal h2 { font-size: 1.6rem; padding-right: 40px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--bg); cursor: pointer; display: grid; place-items: center;
}
.modal .btn { justify-self: start; }
.placeholder-box {
  padding: 18px; border: 1.5px dashed var(--copper); border-radius: 12px; background: #FCF7F0; color: var(--copper-ink); font-weight: 600;
}
.muted { color: var(--muted); font-size: .92rem; }

/* ---------- Mozgáscsökkentés ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-art .glow { animation: none !important; opacity: .85; }
}
