:root {
  --accent:#0b81ff;
  --accent2:#ffb347;
  --bg:#f7fbff;
  --card:#ffffff;
  --muted:#6b7280;
  --maxw:1100px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --radius:14px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

* { box-sizing:border-box; margin:0; padding:0; }
body { background:linear-gradient(180deg,var(--bg),#fff); color:#0f1724; line-height:1.6; }

.wrap { max-width:var(--maxw); margin:0 auto; padding:18px; }

header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; font-weight:700; }
.brand img { height:48px; }
nav { display:flex; gap:14px; align-items:center; }
nav a { color:var(--muted); text-decoration:none; padding:8px; border-radius:8px; }
nav a:hover { color:var(--accent); background:rgba(11,129,255,.06); }

h1,h2,h3 { margin:14px 0; }
h1 { font-size: clamp(24px, 5vw, 32px); }
h2 { font-size: clamp(18px, 4.2vw, 24px); }
h3 { font-size:18px; }

p { margin:10px 0; }
ul { margin:10px 0 20px 20px; }
li { margin-bottom:6px; }

.btn { background:var(--accent); color:#fff; padding:12px 18px; border-radius:10px; text-decoration:none; font-weight:600; display:inline-block; transition:transform 0.2s ease, background 0.3s ease; }
.btn:hover { transform:scale(1.05); background:var(--accent2); }
.btn.ghost { background:transparent; color:var(--accent); border:2px solid rgba(11,129,255,.12); }

.card { background:var(--card); border-radius:var(--radius); padding:16px; box-shadow:0 8px 30px rgba(12,27,46,.06); margin-bottom:16px; transition:transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform:translateY(-4px); box-shadow:0 8px 20px rgba(0,0,0,0.15); }

table { width:100%; border-collapse:collapse; margin-top:20px; }
table th, table td { border:1px solid #eef4ff; padding:10px; text-align:left; }
table th { background:#f1f6ff; }

footer { margin-top:36px; padding:18px 0; color:var(--muted); font-size:14px; border-top:1px solid #eef3ff; text-align:center; }
footer img { height:50px; display:block; margin:0 auto 10px; }

@media(max-width:880px) {
  header { flex-direction:column; align-items:flex-start; gap:10px; }
  nav { flex-wrap:wrap; gap:8px; }
  .brand img { height:40px; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


@media(max-width:880px){
  .hero {
    grid-template-columns:1fr;
    text-align:center;
  }
  .hero div {
    justify-content:center;
  }
  .grid-2 {
    grid-template-columns:1fr;
  }
  header {
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  nav {
    flex-wrap:wrap;
  }
  .btn {
    width:100%;
    text-align:center;
  }
  .product-list {
    grid-template-columns:1fr;
  }
}


.hero h1 { font-size:30px; }
.specs { font-size:13px; }



@media(max-width:480px){
  .hero h1 { font-size:22px; }
  .lead { font-size:14px; }
  .btn { padding:12px; font-size:15px; width:100%; }
}



.card, .product, .model-visual {
  width:100%;
  max-width:100%;
}
img {
  max-width:100%;
  height:auto;
}


.carousel {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden; 
}

.carousel img {
  width: 100%;         
  height: auto;       
  object-fit: contain;  
  display: block;       
}       




body {
  font-family: "Inter", sans-serif;
  margin: 0;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

header.wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

header .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #111;
  font-size: 1.3em;
  font-weight: 600;
}

header .brand img {
  height: 45px;
  margin-right: 10px;
}

nav a {
  text-decoration: none;
  color: #222;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: #0d6efd;
}
.card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  background: #0d6efd;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.btn:hover {
  background: #0b5ed7;
}

.btn.ghost {
  background: transparent;
  color: #0d6efd;
  border: 2px solid #0d6efd;
}

.btn.ghost:hover {
  background: #0d6efd;
  color: #fff;
}


footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
}

footer img {
  height: 40px;
  display: block;
  margin: 0 auto 10px;
}


.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 768px) {
  body { font-size: 16px; }
  header.wrap { flex-direction: column; align-items: flex-start; }
  nav { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  nav a { margin: 0; padding: 10px 8px; border: 1px solid #eee; border-radius: 8px; flex: 1 1 auto; text-align: center; }
  .carousel { height: 260px !important; }
  .btn { width: 100%; text-align: center; margin-bottom: 10px; }
  .card { padding: 16px; }
  .partners-logos { justify-content: center; gap: 12px; }
  .partners-logos img { height: 46px; }
}


@media (max-width: 480px) {
  header .brand span { font-size: 1.05em; }
  .carousel { height: 200px !important; }
  h1, h2 { font-size: 1.25em; }
  p, li { font-size: 0.98em; }
  footer { font-size: 0.9em; }
}


.carousel {
  position: relative;
  width: 100%;
  height: 480px; 
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
@media (max-width: 992px) {
  .carousel { height: 360px; }
}
@media (max-width: 768px) {
  .carousel { height: 260px; }
}
@media (max-width: 480px) {
  .carousel { height: 200px; }
}

.carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel img.active {
  opacity: 1;
}




/* --- Социален панел --- */
.social-bar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 6px;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
}
@media (max-width: 640px) {
  .social-bar { top: auto; bottom: 10px; right: 10px; transform: none; flex-direction: row; border-radius: 20px; padding: 6px 8px; }
}

.social-icon img {
  width: 28px;
  height: 28px;
  transition: transform 0.25s ease, filter 0.25s ease;
}
@media (max-width: 640px) {
  .social-icon img { width: 24px; height: 24px; }
}

.social-icon:hover img {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Цветен фон при hover */
.social-icon.fb:hover { background: #1877f2; }
.social-icon.ig:hover { background: #e4405f; }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.3s ease;
}
@media (max-width: 640px) {
  .social-icon { width: 36px; height: 36px; }
}























.scroll-stack-scroller {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: visible;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: scroll-position;
}

.scroll-stack-inner {
  padding: 20vh 5rem 50rem;
  min-height: 100vh;
}

.scroll-stack-card-wrapper {
  position: relative;
}

.scroll-stack-card {
  transform-origin: top center;
  will-change: transform, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  height: 20rem;
  width: 100%;
  margin: 30px 0;
  padding: 3rem;
  border-radius: 40px;
  box-sizing: border-box;
  /* Improve mobile performance */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  position: relative;
}

.scroll-stack-end {
  width: 100%;
  height: 1px;
}






.pandalabs-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}
.pandalabs-gallery img {
  width: 30%;
  min-width: 160px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 640px) {
  .pandalabs-gallery { gap: 10px; }
  .pandalabs-gallery img { width: 48%; min-width: 140px; }
}
.pandalabs-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}



.pandalabs-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}
.pandalabs-gallery img {
  width: 30%;
  min-width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.pandalabs-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Lightbox стил */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}
.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  animation: zoomIn 0.4s ease;
}
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}



body {
  font-family: 'Inter', sans-serif;
  color: #222;
  line-height: 1.7;
  letter-spacing: 0.2px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
h1, h2, h3 { font-weight: 600; }

/* Mobile stacking for mixed media row */
.media-row { display: flex; gap: 16px; align-items: flex-start; }
@media (max-width: 768px) {
  .media-row { flex-direction: column; }
}

/* --- Shared Mobile Dropdown Navigation --- */
header.wrap { position: relative; }
.nav-check { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
  color: #111;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, background-color .25s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,0.98); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-overlay { display:none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); z-index: 1000; }
  #nav-check:checked ~ .nav-overlay { display:block; }

  header.wrap nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    width: max-content;
    max-width: 86vw;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0;
    flex-direction: column;
    gap: 2px;
    z-index: 1001;
  }
  #nav-check:checked ~ nav { display: flex; }

  header.wrap nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 6px;
    margin: 0;
    border: none;
    background: transparent;
    opacity: 0;
    transform: translateY(-8px);
  }
  #nav-check:checked ~ nav a { animation: menuItemIn .35s ease forwards; }
  #nav-check:checked ~ nav a:nth-child(1) { animation-delay: .02s; }
  #nav-check:checked ~ nav a:nth-child(2) { animation-delay: .07s; }
  #nav-check:checked ~ nav a:nth-child(3) { animation-delay: .12s; }
  #nav-check:checked ~ nav a:nth-child(4) { animation-delay: .17s; }
  #nav-check:checked ~ nav a:nth-child(5) { animation-delay: .22s; }

  /* Burger to X */
  #nav-check:checked + label.nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  #nav-check:checked + label.nav-toggle span:nth-child(2) { opacity: 0; }
  #nav-check:checked + label.nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (min-width: 769px) { .nav-toggle { display: none; } }

@keyframes menuItemIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
