
:root{--bg:#0a0a0b;--bg2:#111214;--panel:#17181b;--panel2:#202226;--soft:#292b30;--text:#f4f4f4;--muted:#a9abb1;--line:#34363c;--white:#fff;--accent:#d7d9dd;--accent2:#8f949c;--max:1180px;--shadow:0 20px 55px rgba(0,0,0,.28)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.55}a{color:inherit}.wrap{width:min(calc(100% - 32px),var(--max));margin:auto}
.topbar{position:sticky;top:0;z-index:50;background:rgba(10,10,11,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.nav{height:72px;display:flex;align-items:center;gap:28px}.brand{font-size:25px;font-weight:900;letter-spacing:1.1px;text-decoration:none}.brand span{font-weight:300;color:#b6b9bf}.navlinks{margin-left:auto;display:flex;align-items:center;gap:22px}.navlinks a{text-decoration:none;color:#d6d7da;font-size:14px}.navlinks a:hover{color:#fff}.navcta{border:1px solid #d8d9dc;padding:10px 15px;border-radius:9px;color:#fff!important;font-weight:700}.phone{font-weight:700!important}
.hero{position:relative;overflow:hidden;padding:94px 0 78px;background:radial-gradient(circle at 80% 18%,rgba(255,255,255,.08),transparent 31%),linear-gradient(145deg,#080809,#151619)}.hero:after{content:'';position:absolute;right:-170px;top:40px;width:480px;height:480px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 75px rgba(255,255,255,.018),0 0 0 150px rgba(255,255,255,.012);pointer-events:none}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:54px;align-items:center;position:relative;z-index:2}.eyebrow{font-size:13px;font-weight:700;letter-spacing:1.7px;text-transform:uppercase;color:#b8bbc1}.hero h1{font-size:clamp(40px,5.6vw,70px);line-height:1.02;letter-spacing:-2.2px;margin:15px 0 20px}.hero p{font-size:20px;color:var(--muted);max-width:770px;margin:0 0 30px}.buttons{display:flex;gap:12px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:49px;padding:0 20px;border-radius:9px;text-decoration:none;font-weight:800;border:1px solid transparent}.btn.primary{background:#f2f2f3;color:#101114}.btn.primary:hover{background:#fff}.btn.secondary{background:rgba(255,255,255,.035);border-color:#51545b;color:#f4f4f4}.btn.secondary:hover{border-color:#8d9096}.hero-card{background:linear-gradient(180deg,#1d1f23,#141518);border:1px solid #393b41;border-radius:18px;padding:27px;box-shadow:var(--shadow)}.hero-card h2{font-size:19px;margin:0 0 15px}.checks{display:grid;gap:11px;color:#ddd}.checks div:before{content:'✓';display:inline-grid;place-items:center;width:21px;height:21px;margin-right:10px;border:1px solid #6f7279;border-radius:50%;font-size:12px;color:#fff}.servicearea{margin-top:20px;padding-top:17px;border-top:1px solid var(--line);color:var(--muted);font-size:14px}
section{padding:76px 0}.section-head{max-width:790px;margin-bottom:34px}.section-head h1,.section-head h2{font-size:clamp(31px,4.2vw,47px);line-height:1.08;margin:0 0 13px;letter-spacing:-1.2px}.section-head p{color:var(--muted);font-size:18px;margin:0}.kicker{text-transform:uppercase;letter-spacing:1.5px;font-size:12px;color:#a9abb0;font-weight:700;margin-bottom:10px}.services{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{display:block;text-decoration:none;background:linear-gradient(180deg,#191a1e,#141518);border:1px solid var(--line);border-radius:15px;padding:25px;transition:.18s}.card:hover{transform:translateY(-3px);border-color:#666a72;background:#1a1c20}.icon{font-size:27px;filter:grayscale(1)}.card h3{font-size:20px;margin:14px 0 8px}.card p{color:var(--muted);margin:0}.why{background:#111214;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.whyitem{padding:6px 8px;border-left:2px solid #52555b;padding-left:18px}.whyitem strong{display:block;font-size:18px;margin-bottom:6px}.whyitem span{color:var(--muted)}
.ref-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:18px}.box{border:1px solid var(--line);border-radius:16px;padding:30px;background:#151619}.box.alt{background:linear-gradient(145deg,#202226,#151619)}.box h3{font-size:25px;margin:0 0 10px}.box p{color:var(--muted)}
.pagehero{padding:62px 0 48px;background:linear-gradient(145deg,#0a0a0b,#151619);border-bottom:1px solid var(--line)}.pagehero .section-head{margin:0}.breadcrumbs{font-size:13px;color:#8e9197;margin-bottom:12px}.breadcrumbs a{text-decoration:none;color:#c9cbd0}
.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.project{overflow:hidden;background:#151619;border:1px solid var(--line);border-radius:15px;transition:.18s}.project:hover{transform:translateY(-3px);border-color:#5b5e65}.projectimg{aspect-ratio:16/10;background:#222;overflow:hidden}.projectimg img{width:100%;height:100%;display:block;object-fit:cover;transition:.3s}.project:hover img{transform:scale(1.025)}.projectbody{padding:20px}.projectbody h2{font-size:20px;margin:0 0 8px}.projectbody p{color:var(--muted);margin:0 0 16px;min-height:50px}.projectlink{display:inline-flex;text-decoration:none;font-weight:800;border-bottom:1px solid #8d9096;padding-bottom:2px}
.contactgrid{display:grid;grid-template-columns:.75fr 1.25fr;gap:24px;align-items:start}.contactcard,.formcard{background:#151619;border:1px solid var(--line);border-radius:16px;padding:28px}.contactcard h2,.formcard h2{margin-top:0}.contactlist{display:grid;gap:14px;margin-top:20px}.contactlist a{text-decoration:none}.contactitem{padding:14px 0;border-top:1px solid var(--line)}.contactitem small{display:block;color:#8e9197}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:14px;font-weight:700}.field input,.field select,.field textarea{width:100%;border:1px solid #45484f;border-radius:9px;background:#0f1012;color:#fff;padding:12px 13px;font:inherit;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#96999f}.field textarea{min-height:150px;resize:vertical}.hint{font-size:12px;color:#8f9298}.submit{cursor:pointer;margin-top:4px}.notice{padding:14px 16px;border-radius:9px;margin-bottom:18px;background:#181a1e;border:1px solid #41444a}.notice.ok{border-color:#777b82}.notice.err{border-color:#7b5757}
.service-layout{display:grid;grid-template-columns:1fr 320px;gap:30px;align-items:start}.service-main h2{font-size:29px;margin-top:38px}.service-main p,.service-main li{color:#c0c2c7}.service-main ul{padding-left:20px}.sidebox{position:sticky;top:96px;background:#17181b;border:1px solid var(--line);border-radius:15px;padding:23px}.sidebox h3{margin-top:0}.sidebox p{color:var(--muted)}
footer{padding:36px 0 94px;border-top:1px solid var(--line);color:var(--muted);background:#09090a}.foot{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}.foot a{text-decoration:none}.mobilebar{display:none}
@media(max-width:900px){.hero-grid,.contactgrid,.service-layout,.ref-grid{grid-template-columns:1fr}.projects{grid-template-columns:1fr 1fr}.services{grid-template-columns:1fr 1fr}.why-grid{grid-template-columns:1fr 1fr}.sidebox{position:static}.navlinks a:not(.navcta):not(.phone){display:none}}
@media(max-width:580px){.wrap{width:min(calc(100% - 24px),var(--max))}.nav{height:62px}.brand{font-size:21px}.navlinks .phone{display:none}.navcta{padding:8px 11px;font-size:12px}.hero{padding:65px 0 55px}.hero h1{letter-spacing:-1.2px}.hero p{font-size:18px}.services,.projects,.why-grid,.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}section{padding:58px 0}.pagehero{padding:45px 0 35px}.projectbody p{min-height:0}.mobilebar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:1fr 1fr;background:#33353a;gap:1px;padding-bottom:env(safe-area-inset-bottom)}.mobilebar a{background:#111214;text-align:center;text-decoration:none;padding:15px 8px;font-weight:800}.mobilebar .quote{background:#efeff0;color:#101114}footer{padding-bottom:92px}}

/* CyberHome v3 – visszafogott arany akcentus */
:root{--gold:#c6a34f;--gold-soft:#a98a42;--gold-faint:rgba(198,163,79,.14)}
.brand{position:relative}.brand:after{content:'';position:absolute;left:0;bottom:-9px;width:42px;height:2px;background:linear-gradient(90deg,var(--gold),transparent)}
.kicker,.eyebrow{color:var(--gold)}
.navcta{border-color:rgba(198,163,79,.7)}.navcta:hover{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-faint)}
.hero{border-bottom:1px solid rgba(198,163,79,.18)}
.hero:before{content:'';position:absolute;left:-4%;right:-4%;bottom:24px;height:44px;border-top:1px solid rgba(198,163,79,.42);border-radius:50% 50% 0 0/100% 100% 0 0;transform:rotate(-1.2deg);opacity:.7;pointer-events:none}
.section-head:after{content:'';display:block;width:72px;height:1px;margin-top:22px;background:linear-gradient(90deg,var(--gold),rgba(198,163,79,0))}
.whyitem{border-left-color:var(--gold-soft)}
.projectlink{border-bottom-color:var(--gold-soft)}
.project:hover,.card:hover{border-color:rgba(198,163,79,.48)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-faint)}
.btn.primary{position:relative}.btn.primary:after{content:'';position:absolute;left:18px;right:18px;bottom:7px;height:1px;background:var(--gold);opacity:.55;transform:scaleX(.55);transition:.18s}.btn.primary:hover:after{transform:scaleX(1);opacity:.9}
.mobilebar .quote{box-shadow:inset 0 2px 0 var(--gold)}
.contactitem strong,.sidebox strong{ text-decoration-color:var(--gold)}
.gold-divider{height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);opacity:.45;margin:0}
@media(max-width:580px){.hero:before{bottom:15px;height:26px}.brand:after{bottom:-7px;width:30px}}

/* CyberHome v7 – arculat és klíma üzletág */
.brand{font-weight:500;letter-spacing:.2px;display:inline-block}
.brand span{font-weight:800;color:#f4f4f4}
.brand:after{width:100%;bottom:-9px;background:linear-gradient(90deg,rgba(198,163,79,0),var(--gold) 18%,#e0bf69 50%,var(--gold) 82%,rgba(198,163,79,0))}
.climate-card{position:relative}.climate-card:before{content:'';position:absolute;left:24px;right:24px;top:0;height:1px;background:linear-gradient(90deg,transparent,#4169e1,transparent);opacity:.8}
.climate-card:hover{border-color:rgba(65,105,225,.58)}
.climate-page{--climate:#4169e1;--climate2:#79a8ff;--climate-faint:rgba(65,105,225,.15)}
.climate-page .brand:after{background:linear-gradient(90deg,transparent,#2449b8 10%,#4169e1 48%,#79a8ff 78%,transparent)}
.climate-page .kicker,.climate-page .eyebrow{color:var(--climate2)}
.climate-page .section-head:after{background:linear-gradient(90deg,var(--climate),rgba(65,105,225,0))}
.climate-page .navcta{border-color:rgba(65,105,225,.75)}
.climate-page .navcta:hover{border-color:var(--climate);box-shadow:0 0 0 3px var(--climate-faint)}
.climate-hero{background:radial-gradient(circle at 80% 20%,rgba(65,105,225,.15),transparent 34%),linear-gradient(145deg,#08090c,#121722)}
.climate-primary{background:linear-gradient(110deg,#2449b8,#4169e1 58%,#6f9cff);color:#fff}
.climate-primary:hover{filter:brightness(1.08)}
.climate-side{border-color:rgba(65,105,225,.35)}
.climate-page .field input:focus,.climate-page .field select:focus,.climate-page .field textarea:focus{border-color:var(--climate);box-shadow:0 0 0 3px var(--climate-faint)}
.climate-quote{box-shadow:inset 0 2px 0 #4169e1!important}


/* CyberHome v7.2 – logo, accent line and reference-card corrections */

/* Logo: Cyber white and bold, Home gray and only slightly heavier */
.brand{
  font-weight:800 !important;
  color:#ffffff !important;
}
.brand span{
  font-weight:500 !important;
  color:#9b9b9b !important;
}

/* Gold line: starts fully gold, then fades gradually across full logo width */
.brand:after{
  width:100% !important;
  left:0 !important;
  right:auto !important;
  background:linear-gradient(
    90deg,
    #c6a34f 0%,
    #d8b861 20%,
    #c6a34f 48%,
    rgba(198,163,79,.72) 68%,
    rgba(198,163,79,.32) 86%,
    rgba(198,163,79,0) 100%
  ) !important;
}

/* Climate page: same behavior, but royal-blue gradient */
.climate-page .brand:after{
  background:linear-gradient(
    90deg,
    #315bc9 0%,
    #4169e1 22%,
    #5a7ff0 48%,
    rgba(65,105,225,.72) 70%,
    rgba(65,105,225,.30) 87%,
    rgba(65,105,225,0) 100%
  ) !important;
}

/* Reference page only: 4:3 preview boxes, image remains proportional and uncropped */
.ref-page .project-card .thumb,
.references-page .project-card .thumb,
.ref-page .project-card img,
.references-page .project-card img{
  aspect-ratio:4/3;
}

/* If image sits inside a thumbnail box, preserve the whole source image */
.ref-page .project-card .thumb img,
.references-page .project-card .thumb img{
  width:100%;
  height:100%;
  object-fit:contain !important;
  object-position:center;
  background:#111;
}


/* CyberHome v8 – végleges referencia + friss munkák */
.fresh-work-section{padding:56px 0 72px}
.fresh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.fresh-card{display:block;overflow:hidden;border:1px solid var(--line,#303030);border-radius:16px;background:#111;color:var(--text,#f2f2f2);text-decoration:none;transition:transform .2s ease,border-color .2s ease}
.fresh-card:hover{transform:translateY(-2px);border-color:rgba(198,163,79,.58)}
.fresh-image{aspect-ratio:4/3;overflow:hidden;background:#0c0c0c}
.fresh-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.fresh-title{padding:14px 16px;font-weight:650;line-height:1.35}
.climate-page .fresh-card:hover{border-color:rgba(65,105,225,.68)}
@media(max-width:820px){.fresh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.fresh-grid{grid-template-columns:1fr}}

/* Referenciák: fekvő 4:3 kártyák, folyamatos oldal, lapozás nélkül */
.ref-page .project-card .thumb,
.ref-page .project-card .project-image,
.ref-page .project-card .image-wrap{aspect-ratio:4/3!important;overflow:hidden!important}
.ref-page .project-card .thumb img,
.ref-page .project-card .project-image img,
.ref-page .project-card .image-wrap img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
.ref-page .pagination,.ref-page .pager,.ref-page .pages,
.ref-page [class*="pagination"],.ref-page [class*="pager"]{display:none!important}


/* CyberHome v8.1 – Referenciák képarány javítás
   A projectimg <a> elem, ezért display:block nélkül az aspect-ratio nem érvényesült. */
.ref-page .projects{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.ref-page .projectimg{
  display:block !important;
  width:100% !important;
  aspect-ratio:4 / 3 !important;
  height:auto !important;
  overflow:hidden !important;
  background:#222;
}
.ref-page .projectimg img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
}
.ref-page .pagination,
.ref-page .pager,
.ref-page .pages,
.ref-page [class*="pagination"],
.ref-page [class*="pager"]{
  display:none !important;
}
@media(max-width:900px){
  .ref-page .projects{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:580px){
  .ref-page .projects{grid-template-columns:1fr}
}


/* CyberHome v8.2 – Friss munkák lightbox */
html.fresh-lightbox-open,html.fresh-lightbox-open body{overflow:hidden}
.fresh-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.94);display:none;flex-direction:column}
.fresh-lightbox.open{display:flex}
.fresh-lightbox-bar{height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 18px;border-bottom:1px solid rgba(255,255,255,.1);background:rgba(12,12,12,.94)}
.fresh-lightbox-title{font-size:14px;font-weight:700;color:#eee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fresh-lightbox-actions{display:flex;gap:8px;flex:0 0 auto}
.fresh-lightbox-actions button{width:40px;height:38px;border:1px solid rgba(198,163,79,.45);border-radius:9px;background:#171717;color:#eee;font:700 18px/1 Arial;cursor:pointer}
.fresh-lightbox-actions .flb-reset{width:58px;font-size:12px}
.fresh-lightbox-actions .flb-close{font-size:28px;color:#d8b861}
.fresh-lightbox-actions button:hover{border-color:#c6a34f;background:#202020}
.fresh-lightbox-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:18px;touch-action:none}
.fresh-lightbox-stage img{display:block;max-width:96vw;max-height:calc(100vh - 94px);width:auto;height:auto;object-fit:contain;transform-origin:center center;transition:transform .12s ease;user-select:none;-webkit-user-drag:none;cursor:zoom-in}
.fresh-lightbox-stage img.zoomed{cursor:grab}
.fresh-lightbox-stage img.dragging{cursor:grabbing;transition:none}
@media(max-width:600px){
 .fresh-lightbox-bar{height:52px;padding:0 10px}
 .fresh-lightbox-title{font-size:12px}
 .fresh-lightbox-actions{gap:5px}
 .fresh-lightbox-actions button{width:36px;height:34px}
 .fresh-lightbox-actions .flb-reset{width:52px}
 .fresh-lightbox-stage{padding:8px}
}
