/*
 * Kazánmentő — közös stíluslap (minden oldal)
 *
 * Forrás: a jóváhagyott Codex-prototípus (KAZANMENTO_CODEX_HOME_V1/assets/css/style.css)
 * globális része: tokenek, alapok, gombok, header/navigáció, mobil menü,
 * záró CTA, footer, lebegő hívásgomb, scroll reveal, reduced motion.
 * A főoldal-specifikus szekciók a fooldal.css-ben vannak.
 *
 * A Bootstrap 5 (grid/utilities alap) ELŐTTE töltődik be. A „Bootstrap-semlegesítés"
 * blokk a Reboot azon alapértékeit állítja vissza, amelyek a prototípus
 * megjelenését megváltoztatnák — így a kép azonos a jóváhagyott prototípussal.
 */

:root {
  --ink: #071421;
  --ink-2: #0b2237;
  --ink-3: #10314d;
  --yellow: #ffc700;
  --yellow-2: #ffdb38;
  --paper: #f5f8fa;
  --white: #fff;
  --muted: #5c6c78;
  --line: #dce4ea;
  --shadow: 0 18px 45px rgba(8, 25, 39, .14);
  --radius: 18px;
  --shell: min(1400px, calc(100% - 48px));
  --header-h: 86px;
  color-scheme: light;
}

/* Bootstrap-semlegesítés (Reboot → böngésző-alapérték, ahogy a prototípus számolt vele) */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: inherit; color: inherit; }
p { margin-block: 1em; }
ol, ul { margin-block: 1em; padding-left: 40px; }
mark { padding: 0; }
picture { display: contents; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
svg { display: block; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 12px 18px; border-radius: 8px; background: var(--yellow); color: var(--ink); font-weight: 800; }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0 0 12px; color: rgba(255,255,255,.74); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: #506879; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 850; line-height: 1.1; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 24px rgba(255,199,0,.22); }
.button-yellow:hover { background: var(--yellow-2); box-shadow: 0 12px 30px rgba(255,199,0,.3); }
.button-outline { border: 1px solid rgba(255,255,255,.5); color: #fff; background: rgba(8,20,31,.4); }
.button-white { background: #fff; color: var(--ink); }
.button-dark { background: var(--ink); color: #fff; }
.section-light { background: var(--paper); }
.hand-note { margin: 0; font-family: "Segoe Print", "Bradley Hand", cursive; font-weight: 700; font-style: italic; line-height: 1.35; transform: rotate(-4deg); }
[data-parallax] { --parallax-y: 0px; }

/* Fókuszállapot (billentyűzetes navigáció) — sötét felületen sárga, világoson sötét */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.section-light :focus-visible, .trust :focus-visible, .light-card :focus-visible, .final-cta :focus-visible { outline-color: var(--ink); }
.button-yellow:focus-visible, .floating-phone:focus-visible, .skip-link:focus-visible { outline-color: var(--ink); }
.site-header .button-yellow:focus-visible, .mobile-menu .button-yellow:focus-visible { outline-color: #fff; }

/* Header */
.site-header { position: sticky; z-index: 100; top: 0; color: #fff; background: rgba(6,18,29,.96); border-bottom: 1px solid rgba(255,255,255,.08); transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { background: rgba(6,18,29,.99); box-shadow: 0 12px 35px rgba(0,0,0,.22); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { flex: 0 0 226px; }
.brand img { width: 226px; height: auto; }
.desktop-nav { min-width: 0; flex: 1; display: flex; align-items: stretch; justify-content: center; gap: clamp(10px, .8vw, 16px); align-self: stretch; }
.desktop-nav > a, .nav-dropdown > summary { min-height: 100%; display: flex; align-items: center; color: #fff; font-size: clamp(.98rem, .4rem + .6vw, 1.04rem); font-weight: 750; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: color .2s ease; }
.desktop-nav > a:hover, .nav-dropdown > summary:hover, .nav-dropdown[open] > summary, .desktop-nav > a[aria-current="page"] { color: var(--yellow); }
.nav-dropdown { position: relative; }
.nav-dropdown > summary { list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-panel { position: absolute; top: calc(100% - 4px); left: -18px; width: 290px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #0c2134; box-shadow: 0 18px 45px rgba(0,0,0,.3); }
.nav-dropdown[open] > .dropdown-panel { animation: dropdown-in .16s ease-out; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dropdown-panel a { display: block; padding: 10px 12px; border-radius: 8px; color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 650; }
.dropdown-panel a:hover, .dropdown-panel a:focus { color: var(--ink); background: var(--yellow); outline: 0; }
.dropdown-panel a[aria-current="page"] { color: var(--yellow); }
/* Az aktuális oldal menüpontja hover/fókusz alatt is olvasható marad (sötét betű a sárga háttéren). */
.dropdown-panel a[aria-current="page"]:hover, .dropdown-panel a[aria-current="page"]:focus { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-work { min-height: 44px; padding: 11px 17px; font-size: .82rem; }
.header-phone { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.48); border-radius: 10px; font-weight: 850; white-space: nowrap; }
.header-phone svg { color: var(--yellow); }
.menu-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; color: #fff; background: transparent; cursor: pointer; }
.menu-toggle span { width: 21px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Teljesen fedő háttér: a prototípus 98,5%-os áttetszősége mellett a hero
   szövege Chromiumban láthatóan átütött a nyitott menün. Szín változatlan. */
.mobile-menu { position: fixed; inset: var(--header-h) 0 0; overflow-y: auto; background: #06121d; }
.mobile-menu-inner { padding-block: 20px 36px; }
.mobile-menu-inner > a:not(.button):not(.mobile-menu-phone), .mobile-accordion > summary { min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 750; }
.mobile-accordion > summary { justify-content: space-between; list-style: none; cursor: pointer; }
.mobile-accordion > summary::after { content: "+"; color: var(--yellow); font-size: 1.4rem; }
.mobile-accordion[open] > summary::after { content: "−"; }
.mobile-accordion > summary::-webkit-details-marker { display: none; }
.mobile-accordion div { padding: 5px 0 10px 16px; }
.mobile-accordion a { min-height: 46px; display: flex; align-items: center; color: rgba(255,255,255,.72); font-size: .92rem; }
.mobile-menu a[aria-current="page"]:not(.button) { color: var(--yellow); }
.mobile-menu .button { width: 100%; margin-top: 18px; }
.mobile-menu-phone { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; color: #fff; font-weight: 850; }
.mobile-menu-phone svg { color: var(--yellow); }

@keyframes cta-shine { 0% { transform: translateX(-160%) skewX(-20deg); } 55%,100% { transform: translateX(340%) skewX(-20deg); } }

/* Záró CTA */
.final-cta { position: relative; z-index: 3; margin-top: -16px; overflow: hidden; color: var(--ink); background: linear-gradient(100deg, var(--yellow), #ffd83d); transform: skewY(-1.5deg); }
.final-cta::after { content: ""; position: absolute; inset: -40% auto -40% 0; width: 18%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: cta-shine 5.5s ease-in-out infinite; pointer-events: none; }
.final-cta-inner { min-height: 166px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 30px; transform: skewY(1.5deg); }
.final-cta p { margin: 0 0 4px; font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.final-cta h2 { max-width: 780px; margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; letter-spacing: -.035em; }
.final-actions { display: flex; gap: 12px; }
.final-actions .button { min-height: 58px; white-space: nowrap; }

/* Footer */
.site-footer { position: relative; color: #fff; background: radial-gradient(circle at 20% 0, #102b41, transparent 35%), #06131f; }
.footer-inner { display: grid; grid-template-columns: 1.25fr .8fr .95fr .9fr; gap: clamp(35px, 5vw, 80px); padding: 78px 0 36px; }
/* A logó képaránya kötött: csak a szélesség reszponzív, a magasság mindig auto. */
.footer-brand img { width: min(280px, 100%); height: auto; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .72rem; text-transform: uppercase; }
.site-footer h2 { margin: 0 0 15px; font-size: .95rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 6px 0; color: rgba(255,255,255,.66); font-size: .83rem; }
.site-footer a:hover { color: var(--yellow); }
.contact-list li { display: flex; align-items: flex-start; gap: 8px; }
.contact-list svg { flex: 0 0 18px; margin-top: 2px; color: var(--yellow); }
.site-footer strong { display: block; margin-top: 16px; font-size: .84rem; }
.link-button { min-height: 32px; padding: 0; border: 0; color: inherit; background: none; cursor: pointer; }
.link-button:hover { color: var(--yellow); }
.footer-note { margin: 32px 0 0; color: rgba(255,255,255,.7); font-size: 1rem; }
.footer-bottom { padding: 0 0 40px; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.5); font-size: .76rem; }
.floating-phone { position: fixed; z-index: 90; right: 20px; bottom: 20px; min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 12px 17px; border-radius: 999px; color: var(--ink); background: var(--yellow); box-shadow: 0 12px 35px rgba(0,0,0,.28), 0 0 0 0 rgba(255,199,0,.42); font-weight: 900; transition: transform .2s ease; animation: phone-pulse 3.4s ease-out infinite; }
.floating-phone:hover { transform: translateY(-3px); }
@keyframes phone-pulse { 0%,45%,100% { box-shadow: 0 12px 35px rgba(0,0,0,.28), 0 0 0 0 rgba(255,199,0,.35); } 70% { box-shadow: 0 12px 35px rgba(0,0,0,.28), 0 0 0 13px rgba(255,199,0,0); } }

/* Technikai oldalak (előkészítés alatti route — csak nem éles környezet —, 404) */
.tech-page { color: #fff; background: linear-gradient(112deg, #081725 0 53%, #102a41 53% 76%, #071421 76%); padding: 90px 0 120px; }
.tech-page h1 { max-width: 820px; margin: 0 0 28px; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; }
.tech-page-flag { display: inline-block; margin: 0 0 18px; padding: 6px 10px; border-radius: 6px; color: var(--yellow); background: rgba(255,199,0,.12); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tech-page-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-page-actions .button { min-height: 56px; }
.tech-page-actions small { display: block; margin-top: 3px; font-size: .66rem; opacity: .75; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1280px) {
  :root { --shell: min(1180px, calc(100% - 40px)); --header-h: 78px; }
  .brand { flex-basis: 184px; }
  .brand img { width: 184px; }
  .desktop-nav { gap: 12px; }
}

/* A prototípus 1101–1280 px között elrejtette a Munkafelvétel CTA-t. Az
   OLDALTERKEP.md szerint a kiemelt CTA mindig a főmenü része, ezért itt
   látható marad; a szűkebb sávban a telefonblokk ikonos formára vált (a teljes
   szám a lebegő hívásgombon és a hero-ban is elérhető). */
@media (max-width: 1440px) and (min-width: 1101px) {
  .header-phone span { display: none; }
  .header-phone { width: 46px; justify-content: center; padding: 0; }
  .desktop-nav > a, .nav-dropdown > summary { font-size: 1rem; }
}

/* A Márkafüggetlen szerviz fejlécből való kivételével (2026-09-24) felszabadult
   helyen a menü nagyobb betűvel fér el. */
@media (max-width: 1280px) and (min-width: 1101px) {
  .desktop-nav > a, .nav-dropdown > summary { font-size: .9rem; }
}

@media (max-width: 1160px) and (min-width: 1101px) {
  .desktop-nav > a, .nav-dropdown > summary { font-size: .84rem; }
}

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .header-work { display: inline-flex; }
  .menu-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-inner > div:last-child { grid-column: 2 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .footer-inner > div:last-child h2 { grid-column: 1 / -1; }
  .footer-note { margin-top: 0; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 740px); --header-h: 72px; }
  .brand, .brand img { width: 174px; flex-basis: 174px; }
  .header-work { display: none; }
  .header-phone span { display: none; }
  .header-phone { width: 46px; justify-content: center; padding: 0; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:last-child { grid-column: auto; display: block; }
  .footer-inner > div:last-child h2 { grid-column: auto; }
  .footer-note { margin-top: 28px; }
  /* Érintőképernyős tap target (~44 px) a footer linkjeinél. */
  .site-footer li { margin: 0; }
  .site-footer li > a, .site-footer .link-button { min-height: 44px; display: inline-flex; align-items: center; }
  .contact-list li { align-items: center; }
  .contact-list svg { margin-top: 0; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 28px); --header-h: 66px; }
  body { font-size: 15px; }
  .brand, .brand img { width: 150px; flex-basis: 150px; }
  .header-actions { gap: 7px; }
  .header-phone, .menu-toggle { width: 44px; height: 44px; min-height: 44px; }
  .eyebrow { font-size: .68rem; letter-spacing: .13em; }
  .final-cta { transform: none; }
  .final-cta-inner { transform: none; padding-block: 38px; }
  .final-actions { width: 100%; flex-direction: column; }
  .final-actions .button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; padding-top: 58px; }
  .site-footer { padding-bottom: 56px; }
  .footer-brand img { width: min(240px, 100%); }
  .floating-phone { right: 12px; bottom: 12px; width: 54px; height: 54px; justify-content: center; padding: 0; }
  .floating-phone span { display: none; }
  .tech-page { padding: 60px 0 90px; }
  .tech-page-actions .button { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  :root { --shell: calc(100% - 24px); }
  .brand, .brand img { width: 135px; flex-basis: 135px; }
  .header-phone, .menu-toggle { width: 42px; height: 42px; min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Cookie / consent panel (KAZANMENTO_ADATKEZELES_SUTI_CONSENT_FINAL/03) ---
   Mindkét réteg a képernyő közepén, elsötétített háttér előtt (felhasználói
   döntés, 2026-09-24). Elfogadás és elutasítás egyenrangú. A lebegő telefon
   CTA a háttér fölött marad, így döntés nélkül is hívható. */
.km-consent { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; }
.km-consent[hidden] { display: none; }
.km-consent-hatter { position: absolute; inset: 0; background: rgba(4,12,20,.62); }
.km-consent-doboz { position: relative; overflow: hidden auto; width: min(560px, 100%); max-height: calc(100vh - 40px); padding: 26px 26px 22px; border-top: 6px solid var(--yellow); border-radius: 18px; color: rgba(255,255,255,.86); background: linear-gradient(135deg, #081725 0 62%, #0f2a40 62%); box-shadow: 0 24px 60px rgba(0,0,0,.45); font-size: .93rem; line-height: 1.55; }
.km-consent.is-beallitas .km-consent-doboz { width: min(620px, 100%); }
.km-consent-cim { margin: 0 0 10px; color: #fff; font-size: 1.3rem; font-weight: 900; line-height: 1.2; }
.km-consent-cim:focus { outline: none; }
.km-consent-cim:focus-visible { outline: none; }
.km-consent p { margin: 0 0 10px; }
.km-consent strong { color: #fff; }
.km-consent-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--yellow); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.km-consent-gombok { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.km-consent-gomb { flex: 1 1 auto; min-height: 48px; padding: 12px 16px; font-size: .92rem; text-align: center; }
.km-consent .button-dark { border: 2px solid #fff; color: var(--ink); background: #fff; }
.km-consent .button-dark:hover { background: #eef3f6; }
.km-consent-masodlagos { border: 2px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.km-consent-masodlagos:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.km-consent .button:focus-visible, .km-consent-link:focus-visible, .km-consent-bezar:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.km-consent-fej { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.km-consent-bezar { flex: 0 0 44px; width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; border-radius: 10px; color: #fff; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.km-consent-bezar:hover { background: rgba(255,255,255,.1); }
.km-consent-kategoria { position: relative; padding: 14px 76px 14px 16px; margin: 0 0 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.04); }
.km-consent-kategoria-fej { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.km-consent-kategoria h3 { margin: 0; color: #fff; font-size: 1.02rem; font-weight: 850; }
.km-consent-kategoria p { margin: 0; font-size: .88rem; }
.km-consent-kategoria .km-consent-kieg { margin-top: 6px; color: rgba(255,255,255,.7); font-size: .84rem; }
.km-consent-jelzes { padding: 2px 9px; border-radius: 999px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.1); font-size: .74rem; font-weight: 800; letter-spacing: .02em; }
.km-consent-jelzes.is-aktiv { color: var(--ink); background: var(--yellow); }

/* Kapcsoló: valódi checkbox, 44 px érintési célterület */
.km-kapcsolo { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 56px; height: 44px; cursor: pointer; }
.km-kapcsolo input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.km-kapcsolo-sav { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #5a6b78; transition: background .15s ease; }
.km-kapcsolo-sav::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); transition: transform .15s ease; }
.km-kapcsolo input:checked + .km-kapcsolo-sav { background: var(--yellow); }
.km-kapcsolo input:checked + .km-kapcsolo-sav::after { transform: translateX(20px); background: var(--ink); }
.km-kapcsolo input:focus-visible + .km-kapcsolo-sav { outline: 3px solid var(--yellow); outline-offset: 3px; }
.km-kapcsolo.is-zarolt { cursor: not-allowed; opacity: .75; }
.km-kapcsolo.is-zarolt input { cursor: not-allowed; }

/* Kedvezmény felugró ablak (templates/partials/kedvezmeny-popup.php) */
.km-kedvezmeny { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; }
.km-kedvezmeny[hidden] { display: none; }
.km-kedvezmeny-hatter { position: absolute; inset: 0; background: rgba(4,12,20,.66); animation: km-kedv-hatter .3s ease both; }
.km-kedvezmeny-doboz { position: relative; overflow: hidden auto; width: min(540px, 100%); max-height: calc(100vh - 40px); padding: 34px 34px 28px; border-radius: 22px; color: rgba(255,255,255,.86); background: linear-gradient(155deg, #0f3252, #071b2b 72%); box-shadow: 0 30px 70px rgba(0,0,0,.5); line-height: 1.55; animation: km-kedv-be .45s cubic-bezier(.2,.9,.3,1.15) both; }
.km-kedvezmeny-doboz::before { content: ""; position: absolute; top: 0; bottom: 0; right: -18%; width: 52%; background: linear-gradient(180deg, rgba(255,199,0,.2), rgba(255,199,0,0)); transform: skewX(-14deg); pointer-events: none; }
.km-kedvezmeny-doboz::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, #0b1e2d 12px 24px); }
.km-kedvezmeny-doboz > * { position: relative; }
.km-kedvezmeny-x { position: absolute; z-index: 1; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 10px; color: #fff; background: transparent; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.km-kedvezmeny-x:hover { background: rgba(255,255,255,.1); }
.km-kedvezmeny-mertek { margin: 6px 0 14px; }
.km-kedvezmeny-mertek span { display: inline-block; padding: 8px 22px 10px; border-radius: 14px; color: var(--ink); background: linear-gradient(145deg, var(--yellow), #ffd83d); box-shadow: 0 14px 34px rgba(255,199,0,.3); font-size: clamp(2.6rem, 9vw, 3.8rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; white-space: nowrap; transform: rotate(-3deg); }
.km-kedvezmeny-cim { margin: 0 44px 14px 0; color: #fff; font-size: clamp(1.35rem, 4.4vw, 1.7rem); font-weight: 900; line-height: 1.2; }
.km-kedvezmeny-cim:focus, .km-kedvezmeny-cim:focus-visible { outline: none; }
.km-kedvezmeny-csoportok { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.km-kedvezmeny-csoportok li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border: 1px solid rgba(255,199,0,.55); border-radius: 999px; color: #fff; background: rgba(255,199,0,.1); font-weight: 800; }
.km-kedvezmeny-csoportok svg { width: 18px; height: 18px; color: var(--yellow); }
.km-kedvezmeny p { margin: 0 0 18px; }
.km-kedvezmeny-gombok { display: flex; flex-wrap: wrap; gap: 10px; }
.km-kedvezmeny-gombok .button { flex: 1 1 auto; }
.km-kedvezmeny-gombok .button-yellow span { display: flex; flex-direction: column; align-items: flex-start; }
.km-kedvezmeny-gombok .button-yellow small { font-size: .8rem; font-weight: 800; opacity: .8; }
.km-kedvezmeny-gombok svg { width: 20px; height: 20px; }
.km-kedvezmeny-masodlagos { border: 2px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.km-kedvezmeny-masodlagos:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.km-kedvezmeny .button:focus-visible, .km-kedvezmeny-x:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.km-kedvezmeny .button-yellow:focus-visible { outline-color: #fff; }
html.km-kedvezmeny-nyitva, html.km-kedvezmeny-nyitva body { overflow: hidden; }

@keyframes km-kedv-hatter { from { opacity: 0; } }
@keyframes km-kedv-be { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .km-kedvezmeny-hatter, .km-kedvezmeny-doboz { animation: none; }
}
@media (max-width: 575.98px) {
  /* Alul hely marad a lebegő telefon CTA-nak. */
  .km-kedvezmeny { padding: 12px 10px 78px; }
  .km-kedvezmeny-doboz { max-height: calc(100vh - 90px); padding: 28px 18px 18px; }
  .km-kedvezmeny-gombok { flex-direction: column; }
}

html.km-consent-nyitva, html.km-consent-nyitva body { overflow: hidden; }
html.km-consent-nyitva .floating-phone { z-index: 1001; }

@media (max-width: 575.98px) {
  /* Alul hely marad a lebegő telefon CTA-nak, hogy ne takarja a gombokat. */
  .km-consent { padding: 12px 8px 78px; }
  .km-consent-doboz { max-height: calc(100vh - 90px); padding: 20px 16px 16px; font-size: .9rem; }
  .km-consent-gombok { flex-direction: column; }
  .km-consent-gomb { width: 100%; }
}
