/* INIOS kezdőlap (v3). Egyszerű, áttekinthető rend: egy rács (középre igazított, legfeljebb 1240 px-es sáv), egy kártyatípus, kevés mozgás.
   Színek: papír, tinta, gleccser; valódi, emberek nélküli hegyvidéki fotók. A termékfelületek (data-ui) a saját szabályaikat követik. */

.home { --g: clamp(18px, 4vw, 48px); }
.hm-wrap { width: min(100% - 2 * var(--g), 1240px); margin-inline: auto; }

/* ---------- betűk ---------- */
.hm-h1 { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.hm-h2 { font-size: clamp(28px, 2.5vw + 6px, 44px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.hm-sub { font-size: clamp(17px, 0.5vw + 14px, 20px); line-height: 1.55; color: var(--ink-2); max-width: 46em; }
.hm-lead { font-size: clamp(17px, 0.6vw + 13px, 21px); line-height: 1.5; max-width: 40em; }
.hm-dark .hm-sub { color: var(--paper-2); }

/* ---------- szakaszok ---------- */
.hm-sec { position: relative; background: var(--paper); padding-block: clamp(72px, 9vw, 128px); }
.hm-sec-alt { background: #EBF0F5; }
.hm-dark { background: var(--ink); color: var(--paper); }
.hm-head { display: grid; gap: 16px; justify-items: center; text-align: center; margin-bottom: clamp(36px, 4.5vw, 64px); }
.hm-head .hm-h2 { max-width: 20em; }

/* ---------- gombok ---------- */
.hm-act { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.hm-btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 1.5px solid currentColor; border-radius: 999px; color: var(--paper); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.hm-btn-ghost:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .hm-btn-ghost:hover { background: var(--paper); color: var(--ink); } }

/* ---------- kártya ---------- */
.hm-card { background: #fff; border-radius: 24px; padding: clamp(22px, 2.4vw, 32px); transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hm-card:hover { transform: translateY(-4px); } }

/* ---------- 1. nyitás ---------- */
.hm-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding-top: clamp(112px, 14vw, 168px); }
.hm-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hm-hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(15, 27, 36, 0.52); }
.hm-bg { position: absolute; inset: -3% 0; width: 100%; height: 106%; object-fit: cover; object-position: 55% 50%; animation: hm-zoom 30s ease-in-out infinite alternate; will-change: transform; }
@keyframes hm-zoom { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.06) translate3d(-0.8%, -0.6%, 0); } }
.hm-hero-in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: clamp(18px, 2vw, 26px); }
.hm-hero-in .hm-h1 { max-width: 13em; }
.hm-hero-in .hm-act { justify-content: center; margin-top: 6px; }
.hm-hero-dev { position: relative; z-index: 1; margin-top: clamp(44px, 5vw, 72px); width: min(100% - 2 * var(--g), 940px); max-height: clamp(220px, 32vw, 400px); overflow: hidden; }
.hm-hero-dev .dev-cap { display: none; }
.js:not(.no-motion) .hm-hero-in > * { animation: hm-rise 900ms var(--ease-expo) both; }
.js:not(.no-motion) .hm-hero-in > :nth-child(2) { animation-delay: 120ms; }
.js:not(.no-motion) .hm-hero-in > :nth-child(3) { animation-delay: 240ms; }
.js:not(.no-motion) .hm-hero-dev { animation: hm-rise 1100ms var(--ease-expo) 360ms both; }
@keyframes hm-rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }

/* ---------- 2. három állítás ---------- */
.hm-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.hm-pill .hm-card { background: #fff; display: grid; gap: 12px; align-content: start; }
.hm-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--glacier); color: var(--ink); }
.hm-ic .ic { width: 24px; height: 24px; }
.hm-pill h3, .hm-mod h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.hm-pill p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }

/* ---------- 3. az összeállító ---------- */
.hm-build { background: #E9F3FA; overflow: hidden; }
.hm-build .hz { opacity: 0.9; }
.hm-build-in { position: relative; z-index: 1; }
.hm-conf { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.hm-q { background: #fff; border-radius: 28px; padding: clamp(22px, 3vw, 40px); display: grid; gap: clamp(24px, 3vw, 36px); }
.hm-q fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.hm-q legend { padding: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hm-q legend b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; flex: none; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hm-chip { position: relative; }
.hm-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.hm-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #EEF2F6; font-size: 16px; font-weight: 500; transition: background-color 200ms ease, color 200ms ease, transform var(--t-press) var(--ease-out); }
.hm-chip input:checked + span { background: var(--ink); color: var(--paper); }
.hm-chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.hm-chip:active span { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .hm-chip input:not(:checked):hover + span { background: var(--stone); } }
.hm-sum { position: sticky; top: 96px; background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.hm-sum h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.hm-sum-n { font-size: 17px; }
.hm-sum-n b { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-right: 4px; }
.hm-sum-l { display: grid; gap: 8px; min-height: 2em; }
.hm-sum-l li { display: flex; align-items: center; gap: 10px; font-size: 17px; animation: hm-pop 320ms var(--ease-out) both; }
.hm-sum-l .ic { width: 20px; height: 20px; color: var(--glacier); flex: none; }
@keyframes hm-pop { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }
.hm-sum-f { display: grid; gap: 8px; font-size: 15px; }
.hm-sum-f input { min-height: 50px; padding: 0 16px; border: 1px solid rgba(243, 245, 248, 0.35); border-radius: 14px; background: rgba(243, 245, 248, 0.08); color: var(--paper); font-size: 17px; }
.hm-sum-f input::placeholder { color: var(--paper-2); }
.hm-sum-f input:focus-visible { outline: 3px solid var(--glacier); outline-offset: 2px; }
.hm-sum .button { width: 100%; min-height: 56px; }
.hm-sum-note { font-size: 14px; line-height: 1.5; color: var(--paper-2); }
@media (max-width: 960px) { .hm-conf { grid-template-columns: minmax(0, 1fr); } .hm-sum { position: static; } }

/* ---------- 4., 5., 7., 10. kétoszlopos szakaszok ---------- */
.hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hm-split-rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hm-split-rev .hm-copy { order: 2; }
.hm-copy { display: grid; gap: 22px; justify-items: start; }
.hm-ticks { display: grid; gap: 14px; }
.hm-ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: 18px; line-height: 1.5; }
.hm-ticks .ic { width: 24px; height: 24px; color: var(--ink); margin-top: 1px; }
.hm-panel { position: relative; border-radius: 28px; overflow: hidden; clip-path: inset(0 round 28px); background: var(--ink); aspect-ratio: 5 / 4; }
.hm-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-dev .dev-cap { display: none; }
.hm-dev { position: absolute; }
.hm-dev-a { left: 9%; bottom: -16%; width: 84%; }
.hm-panel-b > img { object-position: 50% 38%; }
.hm-dev-b1 { right: -10%; top: 12%; width: 74%; }
.hm-dev-b2 { left: 8%; bottom: -12%; width: 33%; }
.hm-dev-b2 .dev-phone { width: 100%; }
.hm-panel-j { aspect-ratio: auto; min-height: clamp(520px, 44vw, 640px); display: grid; align-items: end; padding: clamp(18px, 2.4vw, 32px); }
.hm-plan { position: relative; z-index: 1; width: min(100%, 460px); }
.hm-plan .plan { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); /* taste-skill-ignore: a fotó fölé lebegő terv-kártya, a termék saját felülete */ }
@media (max-width: 900px) {
  .hm-split, .hm-split-rev { grid-template-columns: minmax(0, 1fr); }
  .hm-split-rev .hm-copy { order: 0; }
  .hm-panel { aspect-ratio: 4 / 3.4; }
  .hm-panel-j { min-height: 0; aspect-ratio: auto; padding-top: 220px; }
  .hm-dev-a { left: 6%; width: 90%; bottom: -14%; }
  .hm-dev-b1 { width: 80%; right: -14%; }
  .hm-dev-b2 { width: 38%; }
}

/* ---------- 6. modulok ---------- */
.hm-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.hm-mod { display: grid; gap: 14px; align-content: start; }
.hm-mod ul { display: grid; gap: 2px; }
.hm-mod a { display: grid; gap: 2px; padding: 10px 14px; margin: 0 -14px; border-radius: 14px; text-decoration: none; transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .hm-mod a:hover { background: var(--glacier); } }
.hm-mn { font-size: 17px; font-weight: 600; }
.hm-mb { font-size: 15px; color: var(--ink-2); }
@media (max-width: 1000px) { .hm-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hm-mods, .hm-pills { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .hm-pills { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 8. fotósáv ---------- */
.hm-band { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding-block: clamp(96px, 13vw, 190px); text-align: center; }
.hm-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hm-band::after { content: ""; position: absolute; inset: 0; background: rgba(15, 27, 36, 0.5); }
.hm-band-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 20px; }
.hm-band-in .hm-h2 { max-width: 16em; }
.hm-band-in .hm-sub { color: var(--paper); }

/* ---------- 9. gyakori kérdések ---------- */
.hm-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(24px, 5vw, 80px); align-items: start; }
.hm-faq .hm-h2 { position: sticky; top: 96px; }
.hm-faq-l { display: grid; gap: 8px; }
.hm-faq-l details { background: #fff; border-radius: 20px; transition: background-color 280ms ease; }
.hm-faq-l details[open] { background: var(--glacier); }
.hm-faq-l summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 14px 26px; cursor: pointer; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.hm-faq-l summary::-webkit-details-marker { display: none; }
.hm-pm { position: relative; width: 16px; height: 16px; flex: none; }
.hm-pm::before, .hm-pm::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform 320ms var(--ease-expo); }
.hm-pm::after { transform: rotate(90deg); }
.hm-faq-l details[open] .hm-pm::after { transform: rotate(0deg); }
.hm-faq-l details p { padding: 0 26px 22px; font-size: 17px; line-height: 1.55; max-width: 52ch; }
@media (max-width: 900px) { .hm-faq { grid-template-columns: minmax(0, 1fr); } .hm-faq .hm-h2 { position: static; } .hm-faq-l summary { font-size: 17px; padding: 12px 20px; } .hm-faq-l details p { padding: 0 20px 20px; font-size: 16px; } }

/* ---------- 10. ajánlatkérés ---------- */
.hm-go .hm-split { align-items: center; }
.hm-video { border-radius: 28px; overflow: hidden; clip-path: inset(0 round 28px); aspect-ratio: 16 / 9; background: var(--ink-2); }
.hm-video video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- lábléc: fotó-jelölés ---------- */
.foot-credits { padding: 28px var(--m) 0; font-size: 13px; line-height: 1.6; color: var(--ink); max-width: 78ch; }
.foot-credits a { text-underline-offset: 2px; }

/* ---------- csökkentett mozgás ---------- */
@media (prefers-reduced-motion: reduce) {
  .hm-bg { animation: none; }
  .hm-card, .hm-chip span, .hm-sum-l li { transition: none; animation: none; }
}
