:root{
    --accent:#4d7fc4;
    --dark:#0b0d10;
    --ink:#1a1a1a;
    --muted:#8a8a8f;
    --nav-h:78px;
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Helvetica Neue', Arial, sans-serif;
    background:#fff;
    color:var(--ink);
  }
  img{max-width:100%; display:block;}
  a{color:inherit;}
  .wrap{ max-width:1280px; margin:0 auto; padding:0 5vw; }
  /* ============ NAVBAR ============ */
  .nav{
    position:fixed;
    top:0; left:0; right:0;
    z-index:1000;
    height:var(--nav-h);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 5vw;
    background:linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
    transition:background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, height .3s ease;
  }
  .nav.scrolled{
    background:rgba(9,10,13,.62);
    backdrop-filter:blur(14px) saturate(140%);
    -webkit-backdrop-filter:blur(14px) saturate(140%);
    box-shadow:0 1px 0 rgba(255,255,255,.06);
    height:64px;
  }
  .nav.hovered{
    background:#ffffff;
    box-shadow:0 2px 18px rgba(0,0,0,.18);
  }
  .nav.hovered .logo-text,
  .nav.hovered .menu > li > a,
  .nav.hovered .icon-btn svg,
  .nav.hovered .cn-badge{
    color:var(--dark);
  }
  .nav.hovered .icon-btn svg{ stroke:var(--dark); }
  .nav.hovered .cn-badge{
    background:rgba(0,0,0,.08);
    color:var(--dark);
  }
  .nav.hovered .logo-mark path{ fill:var(--dark); }
  .nav.hovered .menu > li > a::after{ background:var(--dark); }
  .nav.hovered .hamburger span{ background:var(--dark); }

  .logo{ display:flex; align-items:center; gap:12px; text-decoration:none; }
  .logo-mark path{ fill:#fff; transition:fill .3s ease; }
  .logo-text{
    font-size:20px; font-weight:800; letter-spacing:.04em; color:#fff;
    transition:color .3s ease;
  }

  .menu{ list-style:none; display:flex; align-items:center; gap:38px; height:100%; }
  .menu > li{ height:100%; display:flex; align-items:center; position:relative; }
  .menu > li > a{
    color:#fff; text-decoration:none; font-size:13.5px; font-weight:600;
    letter-spacing:.06em; text-transform:uppercase; padding:6px 0; position:relative;
    transition:color .3s ease; white-space:nowrap;
  }
  .menu > li > a::after{
    content:"";
    position:absolute; left:0; right:100%; bottom:-6px;
    height:2px; background:#fff;
    transition:right .25s ease, background .3s ease;
  }
  .menu > li:hover > a::after,
  .menu > li.active > a::after{ right:0; }
  .menu > li.active > a{ color:var(--accent); }
  .nav.hovered .menu > li.active > a{ color:var(--accent); }

  .right-cluster{ display:flex; align-items:center; gap:20px; }
  .icon-btn{
    background:none; border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center; padding:4px;
  }
  .icon-btn svg{ width:19px; height:19px; stroke:#fff; transition:stroke .3s ease; fill:none; stroke-width:1.8; }
  .cn-badge{
    width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.16); color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-size:11.5px; font-weight:700; letter-spacing:.03em;
    transition:background .3s ease, color .3s ease;
  }

  /* ============ MEGA DROPDOWN: container, positioning, show/hide ============ */
  .mega{
    position:fixed;
    top:var(--nav-h);
    left:0; right:0;
    background:#fff;
    color:var(--dark);
    padding:44px 5vw 52px;
    box-shadow:0 24px 40px rgba(0,0,0,.22);
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px);
    transition:opacity .22s ease, transform .22s ease, visibility .22s, top .3s ease;
    z-index:999;
  }
  .nav.scrolled ~ .mega{ top:64px; }
  li.has-mega:hover .mega{
    opacity:1; visibility:visible; transform:translateY(0);
  }
  .mega-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
    gap:28px;
    max-width:1200px;
    margin:0 auto;
  }

  /* ============ MEGA DROPDOWN: dynamic model cards ============ */
.mega-item{
  display:flex; flex-direction:column; align-items:center;
  text-decoration:none; color:var(--dark);
  padding:14px 12px 18px;
  border-radius:6px;
  background:#f7f7f8;
  transition:background .2s ease, transform .2s ease;
}
.mega-item:hover{ background:#eef1f6; transform:translateY(-3px); }
.mega-item-thumb{
  width:100%; aspect-ratio:4/3;
  background-size:cover; background-position:center;
  background-color:#e4e6ea;
  border-radius:4px;
  margin-bottom:14px;
}
.mega-item span{ font-size:13px; letter-spacing:.05em; font-weight:600; text-transform:uppercase; }

/* skeleton placeholders shown while the menu is loading */
.mega-skel{
  aspect-ratio:4/3;
  border-radius:4px;
  background:linear-gradient(100deg, #eee 30%, #f5f5f6 50%, #eee 70%);
  background-size:200% 100%;
  animation:megaSkelShine 1.4s ease-in-out infinite;
}
@keyframes megaSkelShine{ 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }
.mega-error{
  grid-column:1 / -1;
  text-align:center;
  color:#9a9aa0;
  font-size:13px;
  padding:20px 0;
}

/* ============ MOBILE MODELS SUBMENU: thumbnail + name rows ============ */
.mobile-sub li a{
  display:flex; align-items:center; gap:12px;
  padding:11px 22px;
  color:#444;
  text-decoration:none;
  font-size:14px;
}
.mobile-model-thumb{
  flex:none; width:40px; height:40px;
  border-radius:4px;
  background-size:cover; background-position:center;
  background-color:#e4e6ea;
}
.mobile-sub-skel{
  height:62px; margin:0 22px;
  border-radius:4px;
  background:linear-gradient(100deg, #e5e5e7 30%, #eee 50%, #e5e5e7 70%);
  background-size:200% 100%;
  animation:megaSkelShine 1.4s ease-in-out infinite;
}
.mobile-sub-error{
  padding:16px 22px;
  color:#9a9aa0;
  font-size:13px;
}

  /* ============ MOBILE ============ */
  .hamburger{
    display:none; width:26px; height:20px; position:relative;
    background:none; border:none; cursor:pointer; z-index:1201;
  }
  .hamburger span{
    position:absolute; left:0; width:100%; height:2px; background:#fff;
    transition:transform .3s ease, opacity .3s ease, background .3s ease, top .3s ease;
  }
  .hamburger span:nth-child(1){ top:0; }
  .hamburger span:nth-child(2){ top:9px; }
  .hamburger span:nth-child(3){ top:18px; }
  .hamburger.open span:nth-child(1){ top:9px; transform:rotate(45deg); }
  .hamburger.open span:nth-child(2){ opacity:0; }
  .hamburger.open span:nth-child(3){ top:9px; transform:rotate(-45deg); }
  .hamburger.open span{ background:var(--dark); }

  .mobile-panel{
    position:fixed; inset:0; background:#f5f5f7; z-index:1200;
    transform:translateX(100%);
    transition:transform .4s cubic-bezier(.22,.61,.36,1);
    display:flex; flex-direction:column; overflow-y:auto;
  }
  .mobile-panel.open{ transform:translateX(0); }
  .mobile-top{
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 5vw; border-bottom:1px solid rgba(0,0,0,.06);
  }
  .mobile-top .logo-text, .mobile-top .logo-mark path{ color:var(--dark); fill:var(--dark); }
  .mobile-list{ list-style:none; padding:8px 5vw; }
  .mobile-list > li{ border-bottom:1px solid rgba(0,0,0,.08); }
  .mobile-row{
    display:flex; align-items:center; justify-content:space-between;
    padding:19px 2px; color:var(--dark); text-decoration:none;
    font-size:15.5px; letter-spacing:.02em;
  }
  .mobile-row.active{ color:var(--accent); }
  .mobile-row svg{ width:16px; height:16px; stroke:#8a8a8f; fill:none; stroke-width:1.6; transition:transform .3s ease; }
  .mobile-sub{
    list-style:none; max-height:0; overflow:hidden;
    transition:max-height .35s ease; background:#eceef1;
  }
  li.mobile-expandable.open .mobile-row svg{ transform:rotate(90deg); }
  li.mobile-expandable.open .mobile-sub{ max-height:400px; overflow-y:auto; }

  @media (max-width:920px){
    .menu, .right-cluster > .icon-btn:first-child{ display:none; }
    .hamburger{ display:block; }
  }
  @media (min-width:921px){
    .mobile-panel{ display:none; }
  }



  /* ============ FOOTER ============ */
  .site-footer{ position:relative; background:#0e0f11; padding:44px 5vw 30px; text-align:center; }
  .footer-nav{ display:flex; flex-wrap:wrap; justify-content:center; gap:34px; margin-bottom:28px; }
  .footer-nav a{
    color:rgba(255,255,255,.65); text-decoration:none; font-size:13px;
    letter-spacing:.05em; text-transform:uppercase; transition:color .25s ease;
  }
  .footer-nav a:hover{ color:#fff; }
  .footer-social{ display:flex; justify-content:center; gap:16px; margin-bottom:34px; }
  .footer-social a{
    width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.07);
    display:flex; align-items:center; justify-content:center; transition:background .25s ease;
  }
  .footer-social a:hover{ background:rgba(255,255,255,.16); }
  .footer-social svg{ width:15px; height:15px; fill:rgba(255,255,255,.7); }
  .footer-legal{ border-top:1px solid rgba(255,255,255,.08); padding-top:22px; }
  .footer-legal p{ margin:0; color:rgba(255,255,255,.4); font-size:12px; line-height:1.7; }
  .back-to-top{
    margin:22px auto 0; display:flex; width:40px; height:22px;
    border:1px solid rgba(255,255,255,.25); border-radius:30px; background:transparent;
    align-items:center; justify-content:center; cursor:pointer;
    transition:border-color .25s ease, transform .25s ease;
  }
  .back-to-top:hover{ border-color:rgba(255,255,255,.6); transform:translateY(-2px); }
  .back-to-top svg{ width:13px; height:13px; stroke:rgba(255,255,255,.75); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

  @media (max-width:760px){
    .footer-nav{ gap:18px 26px; }
  }


  /* ---- fixed vertical social rail (page furniture) ---- */
  .social-rail{
    position:fixed;
    right:22px; bottom:40px;
    z-index:900;
    display:flex; flex-direction:column; gap:10px;
  }
  .social-rail a{
    width:38px; height:38px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(6px);
    display:flex; align-items:center; justify-content:center;
    color:#fff; text-decoration:none;
    transition:background .2s ease;
  }
  .social-rail a:hover{ background:rgba(255,255,255,.26); }
  .social-rail svg{ width:16px; height:16px; fill:#fff; }

  @media (max-width:760px){
    .hero-slider{ min-height:480px; }
    .slide-copy{ bottom:20%; right:8vw; }
    .slide-cta{ padding:12px 34px; font-size:13px; margin-top:22px; }
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next{ display:none; }
    .social-rail{ right:14px; bottom:28px; gap:8px; }
    .social-rail a{ width:32px; height:32px; }
    .social-rail svg{ width:14px; height:14px; }
  }
