:root{
  --bg:#0a0a0a;
  --card:#141414;
  --text:#f1f1f1;
  --muted:#9b9b9b;
  --line:#262626;
  --accent:#b91c1c;
  --accent2:#ef4444;
  --shadow:0 18px 50px rgba(0,0,0,.45);
  --radius:18px;
  --radius-sm:14px;
  --radius-xs:12px;
}

/* ===== RESET ===== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 0%, #1a0f12 0%, var(--bg) 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(185,28,28,.18) 0%, rgba(0,0,0,0) 55%),
    var(--bg);
  color:var(--text);
}
img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 20px}

/* ===== TYPO ===== */
h1,h2,h3{letter-spacing:-.25px}
.section{padding:40px 0}
.subhead{margin:8px 0 18px;color:var(--muted);line-height:1.65}
small.mini{color:var(--muted);font-weight:700}

/* ===== HEADER ===== */
.nav{
  position:sticky;top:0;z-index:50;
  backdrop-filter:blur(10px);
  background:rgba(10,10,10,.72);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.nav.is-scrolled{
  box-shadow:0 16px 40px rgba(0,0,0,.55);
  background:rgba(10,10,10,.82);
  border-bottom-color:rgba(239,68,68,.18);
}
.nav-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;gap:16px;
  transition:padding .25s ease;
}
.nav.is-scrolled .nav-inner{padding:10px 0}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.35px}
.brand-text{font-weight:900; letter-spacing:.4px}
.logo-img{
  width:42px;height:42px;border-radius:50%;
  object-fit:cover;background:#0a0a0a;
  box-shadow:0 0 0 2px rgba(239,68,68,.40), 0 10px 28px rgba(185,28,28,.35);
  transition:transform .25s ease, box-shadow .25s ease, filter .25s ease;
  will-change:transform;
}
.nav .brand:hover .logo-img{
  transform:translateY(-1px) rotate(-1.2deg) scale(1.02);
  box-shadow:0 0 0 2px rgba(239,68,68,.55), 0 14px 34px rgba(239,68,68,.30);
  filter:saturate(1.05) contrast(1.02);
}
@media (prefers-reduced-motion: no-preference){
  .logo-img.idle{animation:logoBreath 6s ease-in-out infinite;}
  @keyframes logoBreath{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-1px) scale(1.01)}}
}

.menu{display:flex;gap:14px;flex-wrap:wrap;align-items:center;color:var(--muted);font-weight:800;font-size:13.5px}
.menu a{padding:8px 10px;border-radius:999px}
.menu a:hover{color:var(--text);background:rgba(255,255,255,.05)}
.menu a.active{color:var(--text);border:1px solid rgba(239,68,68,.25);background:rgba(185,28,28,.12)}

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 16px;border-radius:12px;
  border:1px solid rgba(185,28,28,.45);
  background:linear-gradient(180deg, rgba(185,28,28,.35), rgba(185,28,28,.15));
  color:var(--text);font-weight:900;font-size:13.5px;
  box-shadow:0 0 0 1px rgba(239,68,68,.15) inset, 0 12px 30px rgba(185,28,28,.35);
  transition:.2s ease;
}
.btn:hover{transform:translateY(-1px);background:linear-gradient(180deg, rgba(239,68,68,.45), rgba(185,28,28,.22));box-shadow:0 0 0 1px rgba(239,68,68,.30) inset, 0 16px 40px rgba(239,68,68,.32)}
.btn.secondary{background:transparent;border:1px solid var(--line);box-shadow:none}
.btn.secondary:hover{background:rgba(255,255,255,.03)}
.btn.block{width:100%}
.btn-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.btn-row .btn{flex:1}

/* ===== FORMS ===== */
input,textarea,select{
  width:100%;
  padding:12px 12px;
  border-radius:var(--radius-sm);
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.28);
  color:var(--text);
  outline:none;
}
textarea{min-height:110px;resize:vertical}
input:focus,textarea:focus,select:focus{border-color:rgba(239,68,68,.45)}

/* hero lead form */
.lead-form{
  display:grid;
  gap:10px;
  width:100%;
  max-width:62ch; /* align with lead text */
}
.lead-form .btn{justify-self:start}


/* ===== ICONS ===== */
.icon{width:18px;height:18px;flex:0 0 18px;display:inline-block}
.icon-lg{width:22px;height:22px}

/* ===== CARDS / GRIDS ===== */
.card{
  background:linear-gradient(180deg, rgba(20,20,20,.90), rgba(20,20,20,.65));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.card h3{margin:8px 0 6px;font-size:16px}
.card p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.55}
.card .meta{margin-top:10px;color:var(--muted);font-weight:800;font-size:12.5px}

.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;align-items:stretch}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}

/* ===== BADGES / CHIPS ===== */
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:var(--muted);font-weight:900;font-size:12px
}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.chip{
  padding:8px 10px;border-radius:999px;border:1px solid rgba(239,68,68,.22);
  background:rgba(185,28,28,.10);color:var(--text);font-weight:900;font-size:12px
}

/* ===== HERO ===== */
.hero{position:relative;padding:80px 0 28px}
.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:30px;
  align-items:center;
}
.kicker{display:inline-flex;gap:10px;align-items:center;color:var(--muted);font-weight:900;font-size:13px}
.dot{width:8px;height:8px;border-radius:999px;background:var(--accent);box-shadow:0 0 0 4px rgba(239,68,68,.25)}
.hero-title{margin:12px 0 12px;font-size:44px;line-height:1.05}
.lead{color:var(--muted);font-size:16px;line-height:1.65;max-width:62ch}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

/* Premium collage card (kept) */
.hero-collage{
  max-width:460px;
  justify-self:end;
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(20,20,20,.65), rgba(20,20,20,.35));
  box-shadow:0 22px 70px rgba(0,0,0,.65), 0 0 0 1px rgba(239,68,68,.15) inset;
  transform:perspective(1100px) rotateY(-7deg) rotateX(2deg);
  transition:transform .35s ease, box-shadow .35s ease;
  will-change:transform;
}
.hero-collage img{width:100%;display:block;transform:scale(1.02);filter:contrast(1.04) saturate(1.04)}
.hero-collage::before{
  content:"";
  position:absolute;inset:0;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(239,68,68,.18), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0) 40%);
  pointer-events:none;
}
.hero-collage:hover{
  transform:perspective(1100px) rotateY(-3deg) rotateX(1deg) translateY(-2px);
  box-shadow:0 30px 90px rgba(0,0,0,.75), 0 0 0 1px rgba(239,68,68,.20) inset;
}

/* ===== CONTACTS ===== */
.contact-list{display:grid;gap:10px;margin-top:12px}
.contact-row{
  display:flex;justify-content:space-between;gap:12px;align-items:flex-start;
  padding:12px;border-radius:var(--radius-sm);
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
}
.contact-row b{font-size:13.5px}
.contact-row a{color:var(--text);font-weight:900;border-bottom:1px dashed rgba(239,68,68,.35)}
.contact-row a:hover{border-bottom-color:rgba(239,68,68,.75)}
.contact-row span{color:var(--muted);font-weight:800;font-size:13px;text-align:right}

/* ===== CHECKLIST ===== */
.checklist{margin:10px 0 0;padding-left:18px;color:var(--muted);line-height:1.65}
.checklist li{margin:6px 0}

/* ===== PARTNERS / GALLERY (simple) ===== */
.partner-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.partner{
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  padding:14px;
  display:flex;flex-direction:column;gap:10px;
}
.partner .mark{
  height:44px;border-radius:12px;
  background:linear-gradient(135deg, rgba(239,68,68,.25), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.06);
}
.partner b{font-size:14px}
.partner span{color:var(--muted);font-weight:800;font-size:12.5px;line-height:1.35}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ph{height:110px;border-radius:14px;background:linear-gradient(135deg, rgba(255,255,255,.03), rgba(239,68,68,.18));border:1px solid rgba(255,255,255,.06)}
.thumb{height:140px;border-radius:var(--radius-sm);background:linear-gradient(135deg, rgba(239,68,68,.22), rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.06)}

/* ===== MAP ===== */
.map-wrapper{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.20);
  box-shadow:0 22px 70px rgba(0,0,0,.55);
  min-height:420px;
}

/* ===== FOOTER ===== */
footer{padding:22px 0;color:var(--muted);border-top:1px solid var(--line);margin-top:22px}

/* ===== MOBILE MENU ===== */
body.menu-open{overflow:hidden}
.burger{
  display:none;width:44px;height:44px;border-radius:12px;
  border:1px solid var(--line);background:rgba(255,255,255,.02);
  align-items:center;justify-content:center;padding:10px;cursor:pointer;
}
.burger span{display:block;width:18px;height:2px;background:rgba(241,241,241,.85);margin:3px 0;transition:.25s ease;border-radius:2px}
.mobile-menu{
  position:fixed;inset:64px 0 0 0;
  background:rgba(10,10,10,.92);
  backdrop-filter:blur(10px);
  border-top:1px solid rgba(255,255,255,.06);
  opacity:0;transform:translateY(-8px);
  pointer-events:none;transition:.25s ease;z-index:60;
}
.mobile-menu-inner{max-width:1100px;margin:0 auto;padding:16px 20px;display:grid;gap:10px}
.mobile-menu-inner a{
  padding:12px;border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.02);
  font-weight:900;
}
body.menu-open .mobile-menu{opacity:1;transform:translateY(0);pointer-events:auto}
body.menu-open .burger span:nth-child(1){transform:translateY(5px) rotate(45deg)}
body.menu-open .burger span:nth-child(2){opacity:0}
body.menu-open .burger span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

/* ===== BREADCRUMBS ===== */
.breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  font-size:14px;
  margin:18px 0 6px;
  color:var(--muted);
}
.breadcrumb a{
  color:rgba(255,255,255,.78);
  text-decoration:none;
  font-weight:800;
}
.breadcrumb a:hover{ text-decoration:underline; }
.breadcrumb .sep{ color:rgba(255,255,255,.22); font-weight:900; }
.breadcrumb .current{ color:rgba(255,255,255,.92); font-weight:900; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .hero-collage{
  max-width:460px;
  justify-self:end;transform:none}
  .hero-title{font-size:34px}
  .grid2,.grid3,.grid4{grid-template-columns:1fr}
  .partner-grid{grid-template-columns:repeat(2,1fr)}
  .gallery{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 720px){
  .menu{display:none}
  .burger{display:inline-flex}
  .partner-grid{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr}
}


/* === HERO BACKGROUND FIX (correct path) === */
.hero{
  position: relative;
  padding: 80px 0 28px;
  min-height: 100vh;
  background-image: url("img/hero-bg.png"); /* correct relative path from assets/styles.css */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
  90deg,
  rgba(0,0,0,.88) 0%,
  rgba(0,0,0,.82) 40%,
  rgba(0,0,0,.55) 70%,
  rgba(0,0,0,.35) 100%
}

.hero > *{
  position: relative;
  z-index: 1;
}

/* === handover PAGE BACKGROUND (AAA-style, scoped) === */
body[data-page="handover"]{
  position: relative;
  min-height: 100%;
}
body[data-page="handover"]::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("img/handover.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  filter: brightness(1.3) saturate(1.2) contrast(1.05);
}
body[data-page="handover"]::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
background: linear-gradient(
    10deg,
    rgba(0,0,0,.60) 0%,
    rgba(0,0,0,.40) 45%,
    rgba(0,0,0,.20) 75%,
    rgba(0,0,0,.0) 100%
  );
}
body[data-page="handover"] .card{
  background: linear-gradient(180deg, rgba(10,10,10,.78), rgba(10,10,10,.55));
  border-color: rgba(255,255,255,.10);
}

/* === contacts PAGE BACKGROUND (AAA-style, scoped) === */
body[data-page="contacts"]{
  position: relative;
  min-height: 100%;
}
body[data-page="contacts"]::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("img/contacts.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  filter: brightness(1.3) saturate(1.2) contrast(1.05);
}
body[data-page="contacts"]::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    10deg,
    rgba(0,0,0,.60) 0%,
    rgba(0,0,0,.40) 45%,
    rgba(0,0,0,.20) 75%,
    rgba(0,0,0,.0) 100%
  );
}
body[data-page="contacts"] .card{
  background: linear-gradient(180deg, rgba(10,10,10,.78), rgba(10,10,10,.55));
  border-color: rgba(255,255,255,.10);
}
  

/* === services PAGE BACKGROUND (AAA-style, scoped) === */
body[data-page="services"]{
  position: relative;
  min-height: 100%;
}
body[data-page="services"]::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("img/ekzo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  filter: saturate(.95) contrast(1.05);
}
body[data-page="services"]::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.78) 45%,
    rgba(0,0,0,.55) 75%,
    rgba(0,0,0,.40) 100%
  );
}
body[data-page="services"] .card{
  background: linear-gradient(180deg, rgba(10,10,10,.78), rgba(10,10,10,.55));
  border-color: rgba(255,255,255,.10);
}



/* === ABOUT PAGE BACKGROUND (AAA-style, scoped) === */
body[data-page="about"]{
  position: relative;
  min-height: 100%;
}
body[data-page="about"]::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("img/about-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  filter: saturate(.95) contrast(1.05);
}
body[data-page="about"]::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.78) 45%,
    rgba(0,0,0,.55) 75%,
    rgba(0,0,0,.40) 100%
  );
}
body[data-page="about"] .card{
  background: linear-gradient(180deg, rgba(10,10,10,.78), rgba(10,10,10,.55));
  border-color: rgba(255,255,255,.10);
}

/* === MOBILE FIXES === */
body{ overflow-x: hidden; }
*{ min-width: 0; }

@media (max-width: 860px){
  /* Hero grid becomes single column */
  .hero-grid{
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .hero{ padding: 64px 0 22px !important; min-height: auto !important; }
  .hero-title{ font-size: 34px !important; }

  /* Buttons stack */
  .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }

  /* About background: avoid fixed (mobile browsers can glitch) */
  body[data-page="about"]::before,
  body[data-page="about"]::after{
    position: absolute;
  }
}

@media (max-width: 680px){
  .container{ padding: 0 16px !important; }
  .section{ padding: 28px 0 !important; }

  /* Header wraps if needed */
  .nav-inner{
    flex-wrap: wrap;
    gap: 10px;
  }
}

