/* ==========================================================
   faProtekt – egységesítő és reszponzív javítások
   Az eredeti stílus után töltődik; csak a hibás pontokat igazítja.
   ========================================================== */

/* ---- 1. Fejléc: egy magasság, egy függőleges tengely ---- */
.nav .header-actions{display:flex;align-items:center;gap:8px}
.nav .header-actions>*,.nav .language-picker,.nav .theme-toggle{margin-top:0;margin-bottom:0}
.nav .language-picker select,.nav .theme-toggle,.nav .header-cta{height:42px;min-height:42px;box-sizing:border-box;display:inline-flex;align-items:center}
.nav .language-picker select{display:block;line-height:1;margin:0!important;vertical-align:middle}
.nav .language-picker{height:42px;align-self:center}
.nav .mobile-menu summary{height:42px;min-height:42px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}
.nav .brand-logo{flex-shrink:0}
.nav .brand-logo img{display:block}

/* közepes kijelzők: olvasható menü és fülek */
@media (min-width:851px) and (max-width:1180px){
  .navlinks{font-size:13px;gap:16px}
  .service-tabs .wrap a{font-size:11.5px;line-height:1.3}
}

/* mobil fejléc: a nyelvválasztó a menübe kerül, így a logó nem zsugorodik el */
@media (max-width:480px){
  .nav .header-actions>.language-picker{display:none}
  .nav{gap:10px}
  .nav .brand-logo{min-width:118px;max-width:150px}
  .nav .brand-logo img{width:100%;height:auto}
  .nav .header-cta{padding:0 12px;font-size:12px}
  .nav .theme-toggle{width:42px;min-width:42px;padding:0;justify-content:center}
  .nav .mobile-menu summary{width:44px;min-width:44px;padding:0}
  .nav .mobile-menu summary>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
}
@media (max-width:360px){
  .wrap{width:calc(100% - 28px)}
  .nav{gap:6px}
  .nav .header-actions{gap:6px}
  .nav .brand-logo{min-width:96px}
  .nav .header-cta{padding:0 10px;font-size:11.5px}
  .nav .header-cta>span[aria-hidden]{display:none}
}
/* a mobil menüben megjelenő nyelvválasztó */
.mobile-language{display:flex;gap:8px;align-items:center;margin:18px 0 4px;font-size:13px}
.mobile-language a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:40px;padding:0 12px;border:1px solid var(--theme-border,#cbd5ca);border-radius:8px;font-weight:700}
.mobile-language a[aria-current]{background:var(--c,#173e25);border-color:var(--c,#173e25);color:#fff}

/* ---- 2. Címsorok: ne lógjanak ki a dobozukból ---- */
h1,h2,h3,h4{overflow-wrap:break-word}
@media (max-width:480px){
  .copy h1,.hero h1{font-size:clamp(28px,8.6vw,38px);line-height:1.12;letter-spacing:-.6px}
  .copy{padding-left:20px;padding-right:20px}
}

/* ---- 3. Kártyarácsok keskeny telefonon: egy oszlop, nincs szóközépi törés ---- */
@media (max-width:480px){
  .service-menu-grid,
  .insect-treatment-grid,
  .insect-journey-grid,
  .shop-paths{grid-template-columns:1fr!important}
  .service-card{min-height:0}
  .insect-treatment-card h3,.insect-journey-grid h3{font-size:18px}
}
@media (min-width:481px) and (max-width:700px){
  .insect-treatment-card h3,.insect-journey-grid h3{font-size:16px}
}
/* tablet/kis laptop: hosszú összetett szavak a folyamat- és hatáskártyákon */
@media (min-width:701px) and (max-width:1180px){
  .planning-flow h3{font-size:16px}
  .fungus-impact-grid h3,.fungus-impact-grid strong{font-size:18px}
}

/* ---- 4. Minimális betűméret (olvashatóság) ---- */
.service-card-index,.process-step,.reference-count,.brand-signature,.symptom-photo-caption,.treatment-copy small{font-size:max(11.5px,1em)}
.service-card-index,.process-step,.reference-count{font-size:12px}
.brand-signature{font-size:11.5px}
.treatment-copy small,.symptom-photo-caption{font-size:12px;line-height:1.5}

/* ---- 5. Kényelmes érintési célok érintőképernyőn ---- */
@media (pointer:coarse),(max-width:850px){
  .footer nav a,.breadcrumb a,.text-link,.process-link,.reference-service-link,.sources summary,.sources a,.social-links a{display:inline-flex;align-items:center;min-height:36px}
  .footer nav{gap:4px 18px}
  .breadcrumb{min-height:36px;display:flex;align-items:center}
}

/* ---- 6. Lebegő mobil gombok: ne takarják egymást ---- */
@media (max-width:850px){
  /* a Szúirtás / Gombamentesítés gyorssáv fölé emeljük a Hívás gombot */
  body:has(.insect-mobile-contact:not([hidden])) .mobile-call-action,
  body:has(.fungus-mobile-contact:not([hidden])) .mobile-call-action{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  body.has-mobile-call-action:has(.insect-mobile-contact),
  body.has-mobile-call-action:has(.fungus-mobile-contact){padding-bottom:calc(160px + env(safe-area-inset-bottom,0px))}
  /* webshop: az érdeklődési lista a Hívás gomb fölött */
  .basket{bottom:calc(90px + env(safe-area-inset-bottom,0px))!important;right:18px!important;max-width:calc(100% - 36px)}
  /* admin sáv: a lebegő gombok fölött, teljes szélességben */
  body.has-mobile-call-action .fp-adminbar{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  body:has(.insect-mobile-contact:not([hidden])) .fp-adminbar,
  body:has(.fungus-mobile-contact:not([hidden])) .fp-adminbar{bottom:calc(150px + env(safe-area-inset-bottom,0px))}
  body:has(#basket) .fp-adminbar{bottom:calc(150px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:480px){
  .fp-adminbar{left:10px;right:10px;max-width:none;justify-content:center}
  .fp-adminbar .fp-ab-brand{display:none}
}

/* ---- 7. Garancia-kiemelés a sötét hero-n: olvasható kontraszt ---- */
.hero .hero-guarantee{color:#ffbf69}
.hero .hero-guarantee small{color:rgba(255,255,255,.78)}
.hero .hero-guarantee>svg{color:#ffbf69}
html[data-theme="dark"] .hero .hero-guarantee{color:#ffcf8a}

/* ---- 8. Apró egységesítések ---- */
img{max-width:100%}
.footer .footer-contact-details{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
@media (min-width:601px) and (max-width:850px){
  .process-five{justify-content:center}
}

/* ---- 9. Célzott pontosítások (az eredeti, specifikusabb szabályok felülírása) ---- */
body .process-grid.process-five .process-step,body .process-grid .process-step{font-size:12px;letter-spacing:.5px}
body .reference-category-nav a .reference-count{font-size:12px}
@media (max-width:600px){body .footer .wrap .brand-signature,body .footer>.wrap>.brand-signature{font-size:11px}}
@media (max-width:480px){
  .expert-grid{grid-template-columns:1fr}
  .expert-grid span,.expert-grid a{overflow-wrap:break-word}
}
body .fungus-image-label{font-size:11px}
body .technology-intro-credit,body .technology-intro-credit a{font-size:11px}
body .about-tech-links a span{font-size:11.5px}
body .treatment-copy small{font-size:11.5px;letter-spacing:.06em}

/* ---- 10. Keskeny laptop / álló tablet (851–1000 px): fejléc és szolgáltatás-fülek ---- */
@media (min-width:851px) and (max-width:1000px){
  .nav{gap:14px}
  .navlinks{gap:12px;font-size:12.5px}
  .nav .header-actions{gap:6px}
  .nav .header-cta{padding:0 14px}
  .nav .brand-logo{max-width:150px}
}
@media (min-width:851px) and (max-width:1000px){
  .service-tabs .wrap{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;scrollbar-width:thin;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding-bottom:4px}
  .service-tabs .wrap a{flex:0 0 auto;width:auto;min-width:0;white-space:nowrap;padding-left:14px;padding-right:14px;scroll-snap-align:start;font-size:12px}
}

/* ---- Régi faprotekt.hu tartalmak: galéria, ellenőrzőlisták, tartalomjegyzék, CTA ---- */
.fp-legacy h2{scroll-margin-top:110px}
.fp-fig{margin:22px 0}
.fp-fig a{display:block;border-radius:12px;overflow:hidden;background:#e7e4dc}
.fp-fig img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover}
.fp-fig figcaption{font-size:14px;line-height:1.5;color:var(--muted,#5b6359);margin-top:8px}
.fp-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;margin:18px 0 34px}
.fp-gallery .fp-fig{margin:0;min-width:0}
.fp-gallery .fp-fig a{aspect-ratio:4/3}
.fp-gallery .fp-fig img{height:100%;max-height:none;transition:transform .3s ease}
.fp-gallery .fp-fig a:hover img{transform:scale(1.03)}
.fp-checks{list-style:none;padding:0;margin:14px 0 22px}
.fp-checks li{position:relative;padding:6px 0 6px 32px;line-height:1.55}
.fp-checks li::before{position:absolute;left:0;top:6px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;color:#fff}
.fp-checks.yes li::before{content:"✓";background:#1f7a3d}
.fp-checks.no li::before{content:"✕";background:#a23b2a}
.fp-toc{border:1px solid rgba(0,0,0,.12);border-radius:12px;padding:16px 20px;margin:20px 0 28px;background:rgba(255,255,255,.55)}
.fp-toc p{margin:0 0 8px}
.fp-toc ol{margin:0;padding-left:20px}
.fp-toc li{margin:4px 0}
.fp-toc-inline ul{display:flex;flex-wrap:wrap;gap:8px 10px;list-style:none;margin:0;padding:0}
.fp-toc-inline li a{display:inline-block;padding:6px 13px;font-size:15px;line-height:1.4;border-radius:999px;border:1px solid rgba(0,0,0,.15);text-decoration:none}
.fp-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin:30px 0;padding:20px 22px;border-radius:14px;background:#173e25;color:#fff}
.fp-cta strong{display:block;font-size:18px;margin-bottom:4px}
.fp-cta span{display:block;opacity:.85;font-size:15px;line-height:1.5;max-width:520px}
.fp-cta-btns{display:flex;flex-wrap:wrap;gap:10px}
.fp-cta .btn{background:#fff;color:#173e25;border-color:#fff}
.fp-cta .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.fp-thanks-ref{font-size:18px}
[data-theme="dark"] .fp-toc{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.14)}
@media (max-width:640px){.fp-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fp-gallery .fp-fig figcaption{font-size:12.5px}.fp-cta{padding:18px}.fp-cta-btns,.fp-cta-btns .btn{width:100%}.fp-cta-btns .btn{justify-content:center;text-align:center}}

/* Szolgáltatás-fülek: aláhúzás helyett kiemelt, „felemelt" aktív állapot */
html body .service-tabs a,html body .mobile-service-links a{text-decoration:none!important}
html body .service-tabs a{position:relative;transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease,filter .15s ease;box-shadow:none}
html body .service-tabs a:hover,html body .service-tabs a:focus-visible{filter:brightness(1.07);transform:translateY(-1px);box-shadow:0 4px 10px rgba(0,0,0,.16)}
html body .service-tabs a:focus-visible{outline:2px solid #fff;outline-offset:-4px}
html body .service-tabs .wrap:has(a[aria-current=page]) a:not([aria-current=page]){opacity:.72}
html body .service-tabs .wrap:has(a[aria-current=page]) a:not([aria-current=page]):is(:hover,:focus-visible){opacity:1}
html body .service-tabs a[aria-current=page]{opacity:1;filter:none;transform:translateY(-1px);box-shadow:0 0 0 2px var(--theme-soft,#eeefe8),0 0 0 4px var(--tab-color),0 6px 14px rgba(0,0,0,.2)!important}
html body .service-tabs .wrap{padding-top:12px;padding-bottom:12px}
@media (max-width:900px){html body .service-tabs .wrap{padding:8px 6px 10px}}
@media (prefers-reduced-motion:reduce){html body .service-tabs a{transition:none;transform:none!important}}

/* Éjszakai mód gomb: visszafogott, csak ikon */
html body .theme-toggle{border-color:transparent!important;background:transparent!important;opacity:.6;box-shadow:none}
html body .theme-toggle [data-theme-label]{display:none!important}
html body .nav .theme-toggle{width:38px;min-width:38px;padding:0;justify-content:center}
html body .theme-toggle svg{width:18px;height:18px}
html body .theme-toggle:hover,html body .theme-toggle:focus-visible{opacity:1;background:rgba(127,127,127,.12)!important}

/* Referenciák: egységes, kitöltött képkivágás */
html body .reference-gallery{background:transparent}
html body .reference-photo{aspect-ratio:4/3;background:#1d2b22;cursor:zoom-in}
html body .reference-photo img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .35s ease}
html body .reference-photo:hover img{transform:scale(1.04)}
html body .reference-gallery:has(>.reference-photo:nth-child(2)) .reference-photo{aspect-ratio:2/3}
html body .fp-fig>a{cursor:zoom-in}

/* Képnézegető */
.fp-lb-open,.fp-lb-open body{overflow:hidden}
.fp-lb{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:rgba(8,12,10,.92);opacity:0;transition:opacity .2s ease;-webkit-tap-highlight-color:transparent}
.fp-lb[hidden]{display:none}
.fp-lb.is-open{opacity:1}
.fp-lb-stage{position:absolute;inset:56px 72px 76px;display:flex;align-items:center;justify-content:center}
.fp-lb-img{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px;box-shadow:0 18px 50px rgba(0,0,0,.5);transition:opacity .2s ease}
.fp-lb.is-loading .fp-lb-img{opacity:0}
.fp-lb-spin{position:absolute;width:38px;height:38px;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:fp-lb-rot .8s linear infinite;opacity:0}
.fp-lb.is-loading .fp-lb-spin{opacity:1}
@keyframes fp-lb-rot{to{transform:rotate(360deg)}}
.fp-lb-btn{position:absolute;display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font:400 30px/1 system-ui,sans-serif;cursor:pointer;transition:background .15s}
.fp-lb-btn:hover,.fp-lb-btn:focus-visible{background:rgba(255,255,255,.26)}
.fp-lb-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.fp-lb-btn[hidden]{display:none}
.fp-lb-close{top:12px;right:14px;font-size:20px}
.fp-lb-prev{left:14px;top:50%;transform:translateY(-50%)}
.fp-lb-next{right:14px;top:50%;transform:translateY(-50%)}
.fp-lb-bar{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 24px;color:#f1f4ef;font-size:15px;line-height:1.4}
.fp-lb-cap{font-weight:600}
.fp-lb-cnt{flex-shrink:0;opacity:.7;font-variant-numeric:tabular-nums}
@media (max-width:700px){
  .fp-lb-stage{inset:58px 8px 84px}
  .fp-lb-prev,.fp-lb-next{top:auto;bottom:14px;transform:none;width:42px;height:42px}
  .fp-lb-prev{left:auto;right:64px}.fp-lb-next{right:14px}
  .fp-lb-bar{padding:14px 120px 18px 16px;font-size:13px;flex-direction:column;align-items:flex-start;gap:2px}
}
@media (prefers-reduced-motion:reduce){.fp-lb,.fp-lb-img,.reference-photo img{transition:none}}

/* Tartalomvédelem: logó képernyőképnél és nyomtatásnál, vízjel a fotókon */
.fp-shield{position:fixed;inset:0;z-index:2147483647;display:none;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#f6f4ee;color:#173e25;font:600 15px/1.4 system-ui,sans-serif}
.fp-shield.on{display:flex}
.fp-shield img{width:min(62vw,560px);height:auto}
.fp-print-logo{display:none}
@media print{
  html,body{background:#fff!important}
  body>*:not(.fp-print-logo){display:none!important}
  .fp-print-logo{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-height:90vh;gap:16px;color:#173e25;font:600 14pt/1.4 Arial,sans-serif}
  .fp-print-logo img{width:70%;max-width:150mm;height:auto}
}
html body .reference-photo::after,html body .fp-fig>a::after,.fp-lb-stage::after{content:"";position:absolute;right:10px;bottom:10px;width:min(34%,170px);aspect-ratio:2048/462;background:url(/media/site/brand-wordmark-white.png) center/contain no-repeat;opacity:.75;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55));pointer-events:none;z-index:2}
html body .fp-fig>a{position:relative;display:block}
.fp-lb-stage::after{right:auto;left:50%;bottom:6px;transform:translateX(-50%);width:min(30%,200px)}
html body .reference-photo::after{right:auto;left:10px}
