* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;

  font-family: Arial, sans-serif;

  overflow: hidden;

  background: #111;
}


/* КАРТА */

#map {
  width: 100%;
  height: 100vh;
}


/* ВЕРХНЯЯ ПАНЕЛЬ */

.topbar {
  position: absolute;

  top: 20px;
  left: 20px;

  z-index: 1000;

  background: rgba(255,255,255,0.96);

  padding: 18px;

  border-radius: 20px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.15);

  max-width: 420px;
}

.topbar h1 {
  font-size: 24px;
  margin-bottom: 14px;
}


/* ФИЛЬТРЫ */

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  border: none;

  padding: 10px 16px;

  border-radius: 999px;

  background: #efefef;

  cursor: pointer;

  transition: 0.2s;
}

.filter-btn:hover {
  background: #ddd;
}

.filter-btn.active {
  background: black;
  color: white;
}


/* БОКОВАЯ ПАНЕЛЬ */

.project-panel {
  position: fixed;

  top: 0;
  right: -460px;

  width: 440px;
  height: 100vh;

  background: white;

  z-index: 2000;

  transition: 0.35s ease;

  overflow-y: auto;

  box-shadow:
    -10px 0 30px rgba(0,0,0,0.18);
}

.project-panel.open {
  right: 0;
}


/* КНОПКА ЗАКРЫТИЯ */

.close-btn {
  position: absolute;

  top: 14px;
  right: 14px;

  width: 42px;
  height: 42px;

  border: none;

  border-radius: 50%;

  background: rgba(0,0,0,0.08);

  cursor: pointer;

  font-size: 18px;

  z-index: 10;
}


/* КОНТЕНТ */

.panel-content {
  padding: 20px;
}


/* ФОТО */

.project-image {
  width: 100%;
  height: 260px;

  object-fit: cover;

  border-radius: 18px;

  margin-bottom: 20px;
}


/* ЗАГОЛОВОК */

.project-title {
  font-size: 30px;

  line-height: 1.2;

  margin-bottom: 12px;
}


/* ОПИСАНИЕ */

.project-description {
  line-height: 1.6;

  color: #444;

  font-size: 16px;
}


/* КНОПКА */

.route-btn {
  display: inline-block;

  margin-top: 20px;

  background: black;
  color: white;

  text-decoration: none;

  padding: 14px 18px;

  border-radius: 14px;

  transition: 0.2s;
}

.route-btn:hover {
  opacity: 0.85;
}


/* МОБИЛЬНАЯ ВЕРСИЯ */

@media (max-width: 768px) {

  .topbar {
    top: 10px;
    left: 10px;
    right: 10px;

    max-width: unset;

    padding: 14px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .project-panel {

    width: 100%;
    height: 72vh;

    top: unset;
    bottom: -100%;
    right: 0;

    border-radius: 24px 24px 0 0;
  }

  .project-panel.open {
    bottom: 0;
  }

  .project-image {
    height: 220px;
  }

  .project-title {
    font-size: 24px;
  }
}
  .swiper {
  width: 100%;
  height: 260px;

  border-radius: 18px;

  overflow: hidden;

  margin-bottom: 20px;
}


.swiper-slide img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}
/* МАРКЕРЫ */

/* =========================
   GOOGLE MAPS STYLE PINS
========================= */

.custom-icon {
  background: transparent !important;
  border: none !important;
}


/* ОСНОВА PIN */

.custom-marker {

  width: 26px;
  height: 26px;

  border-radius: 50% 50% 50% 0;

  transform:
    rotate(-45deg);

  position: relative;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.35);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


/* ВНУТРЕННИЙ КРУГ */

.custom-marker::after {

  content: '';

  width: 10px;
  height: 10px;

  background: rgba(255,255,255,0.95);

  border-radius: 50%;

  position: absolute;

  top: 8px;
  left: 8px;
}


/* HOVER */

.custom-marker:hover {

  transform:
    rotate(-45deg)
    scale(1.15);

  box-shadow:
    0 10px 24px rgba(0,0,0,0.45);
}


/* СЕКЦИОННЫЕ */

.marker-gates {
  background: #007aff;
}


/* ОТКАТНЫЕ */

.marker-sliding {
  background: #00c853;
}


/* ШЛАГБАУМЫ */

.marker-barrier {
  background: #ffffff;
}


/* РОЛЛЕТЫ */

.marker-roller {
  background: #ff3b30;
}


/* АВТОМАТИКА */

.marker-automation {
  background: #ff9500;
}
/* =========================
   LAYOUT
========================= */

body {

  background: #f5f5f5;

  overflow-x: hidden;
  overflow-y: auto;
}


/* HEADER */

.site-header {

  height: 90px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  padding:
    0 40px;

  position: sticky;

  top: 0;

  z-index: 3000;

  overflow: hidden;


  /* ОСНОВА */

  background:

    /* ЛИНИИ */

    radial-gradient(
      circle at top left,
      rgba(255,255,255,0.95),
      rgba(240,240,240,0.92)
    ),

    /* ВЕРТИКАЛЬНЫЕ */

    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.025) 0px,
      rgba(0,0,0,0.025) 1px,
      transparent 1px,
      transparent 80px
    ),

    /* ГОРИЗОНТАЛЬНЫЕ */

    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.025) 0px,
      rgba(0,0,0,0.025) 1px,
      transparent 1px,
      transparent 80px
    ),

    /* ИЗОГНУТЫЕ ЛИНИИ */

    radial-gradient(
      circle at 20% 120%,
      rgba(0,0,0,0.04),
      transparent 45%
    ),

    radial-gradient(
      circle at 80% -20%,
      rgba(0,0,0,0.04),
      transparent 45%
    );


  border-bottom:
    1px solid rgba(0,0,0,0.06);

  box-shadow:
    0 4px 18px rgba(0,0,0,0.04);

  backdrop-filter:
    blur(10px);
}

.logo {

  display: flex;

  align-items: center;

  text-decoration: none;
}


.logo img {

  height: clamp(56px, 7vw, 110px);

  width: auto;

  display: block;

  transition:
    transform 0.2s ease;
}


.logo:hover img {

  transform: scale(1.03);
}


.header-right {

  display: flex;
  align-items: center;

  gap: 20px;
}


.header-right a {

  text-decoration: none;

  color: #111;
}


.whatsapp-btn {

  background: #25d366;

  color: white !important;

  padding:
    12px 18px;

  border-radius: 999px;

  font-weight: 600;
}


/* MAP SECTION */

.map-section {

  width: 100%;

  max-width: 1600px;

  margin:
    40px auto;

  padding:
    0 20px;
}


.map-topbar {

  margin-bottom: 20px;
}


.map-topbar h1 {

  font-size: 42px;

  margin-bottom: 10px;
}


.map-topbar p {

  color: #666;

  font-size: 18px;
}


/* FILTERS */

.filters {

  margin-bottom: 20px;

  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}


/* MAP */

#map {

  width: 100%;

  height: 75vh;

  border-radius: 28px;

  overflow: hidden;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.12);
}


/* FOOTER */

.site-footer {

  margin-top: 60px;

  background: #111;

  color: white;

  padding:
    40px;

  display: flex;

  justify-content: space-between;

  gap: 20px;

  flex-wrap: wrap;
}


/* MOBILE */

@media (max-width: 768px) {

  .site-header {

    padding:
      0 20px;

    height: auto;

    flex-direction: column;

    align-items: flex-start;

    gap: 12px;

    padding-top: 16px;
    padding-bottom: 16px;
  }

  .map-topbar h1 {
    font-size: 30px;
  }

  #map {
    height: 65vh;
  }

  .site-footer {

    flex-direction: column;
  }

}
/* =========================
   CTA SECTION
========================= */

.cta-section {

  width: 100%;

  max-width: 1600px;

  margin:
    40px auto 0;

  padding:
    0 20px;
}


.cta-card {

  background:
    linear-gradient(
      135deg,
      #111,
      #1d1d1d
    );

  color: white;

  border-radius: 32px;

  padding:
    60px 40px;

  text-align: center;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.18);
}


.cta-card h2 {

  font-size: 42px;

  margin-bottom: 18px;
}


.cta-card p {

  max-width: 700px;

  margin:
    0 auto 30px;

  line-height: 1.7;

  color: rgba(255,255,255,0.8);

  font-size: 18px;
}


/* BUTTON */

.cta-btn {

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding:
    18px 34px;

  border-radius: 999px;

  background: #229ED9;

  color: white;

  text-decoration: none;

  font-size: 18px;
  font-weight: 600;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

  box-shadow:
    0 10px 30px rgba(34,158,217,0.35);
}


.cta-btn:hover {

  transform:
    translateY(-2px);

  box-shadow:
    0 16px 36px rgba(34,158,217,0.45);
}


/* MOBILE */

@media (max-width: 768px) {

  .cta-card {

    padding:
      40px 24px;
  }

  .cta-card h2 {

    font-size: 30px;
  }

  .cta-card p {

    font-size: 16px;
  }

  .cta-btn {

    width: 100%;
  }

}
/* =========================
   SOCIALS
========================= */

.phone-link {

  text-decoration: none;

  color: #111;

  font-weight: 600;
}


.socials {

  display: flex;

  align-items: center;

  gap: 12px;
}


/* BUTTON */

.social-btn {

  width: 44px;
  height: 44px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  text-decoration: none;

  color: white;

  font-size: 20px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.social-btn:hover {

  transform:
    translateY(-2px);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.18);
}
/* =========================
   PREMIUM SOCIALS
========================= */

.socials {

  display: flex;

  align-items: center;

  gap: 12px;
}


/* =========================
   PREMIUM LIGHT SOCIALS
========================= */

.socials {

  display: flex;

  align-items: center;

  gap: 12px;
}


/* BUTTON */

.social-btn {

  width: 48px;
  height: 48px;

  border-radius: 16px;

  display: flex;

  align-items: center;
  justify-content: center;

  text-decoration: none;

  background: white;

  color: #111;

  font-size: 20px;

  border:
    1px solid rgba(0,0,0,0.06);

  box-shadow:
    0 8px 24px rgba(0,0,0,0.08);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


/* HOVER */

.social-btn:hover {

  transform:
    translateY(-2px);

  box-shadow:
    0 14px 28px rgba(0,0,0,0.12);

  background:
    #fafafa;
}


/* ICON */

.social-btn i {

  opacity: 0.92;
}

/* =========================
   MOBILE HEADER
========================= */

@media (max-width: 768px) {

  .site-header {

    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 12px;

    padding:
      18px 16px;

    height: auto;
  }


  /* ЛОГО */

  .logo {
  display: none;
}


  /* ПРАВАЯ ЧАСТЬ */

  .header-right {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 14px;
  }


  /* ТЕЛЕФОН */

  .phone-link {

    font-size: 18px;

    font-weight: 700;

    text-align: center;
  }


  /* ИКОНКИ */

  .socials {

    justify-content: center;

    flex-wrap: wrap;
  }


  /* КНОПКИ */

  .social-btn {

    width: 46px;
    height: 46px;
  }

}
.custom-marker {

  width: 30px !important;
  height: 30px !important;

  background: red !important;

  display: block !important;

  border-radius: 50%;

  border: 3px solid white;

  box-shadow: 0 0 10px rgba(0,0,0,.5);

}
.video-wrapper {

  width: 100%;

  margin-bottom: 20px;

  border-radius: 18px;

  overflow: hidden;
}

.video-wrapper iframe {

  width: 100%;

  aspect-ratio: 16 / 9;

  border: 0;

  display: block;
}
/* =========================
   FULLSCREEN IMAGE
========================= */

.image-modal {

  position: fixed;

  inset: 0;

  background:
    rgba(0,0,0,.92);

  z-index: 99999;

  display: none;

  justify-content: center;
  align-items: center;
}


.image-modal.open {

  display: flex;
}


.image-modal-img {

  max-width: 96vw;
  max-height: 96vh;

  object-fit: contain;
}


/* ЛОГО */

.image-modal-logo {

  position: absolute;

  top: 20px;
  right: 20px;

  width: 120px;

  opacity: .9;

  pointer-events: none;
}


/* КРЕСТИК */

.image-modal-close {

  position: absolute;

  top: 20px;
  left: 20px;

  color: white;

  font-size: 32px;

  cursor: pointer;

  z-index: 10;
}


/* ВОДЯНОЙ ЗНАК */

.project-image {

  position: relative;

  cursor: zoom-in;

  -webkit-user-drag: none;

  user-select: none;

  pointer-events: auto;
}


.project-image::selection {

  background: transparent;
}


/* ЗАПРЕТ ПЕРЕТАСКИВАНИЯ */

img {

  -webkit-user-drag: none;

  user-select: none;
}
.image-wrapper {

  position: relative;
}


.image-watermark {

  position: absolute;

  right: 12px;
  bottom: 12px;

  background:
    rgba(0,0,0,.55);

  color: white;

  padding:
    6px 10px;

  border-radius: 10px;

  font-size: 12px;

  font-weight: 700;

  pointer-events: none;
}
#modalSwiper {

  width: 100vw;

  height: 100vh;

}

#modalSwiper .swiper-slide {

  display: flex;

  justify-content: center;

  align-items: center;

}

#modalSwiper .swiper-slide img {

  width: auto;

  height: auto;

  max-width: 95vw;

  max-height: 95vh;

  object-fit: contain;

  border-radius: 12px;

}
.image-modal {

  backdrop-filter: blur(10px);

}
