* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scrollbar-gutter: auto;
}

body {
  background: #2a2a2a;
  color: #eee;
  font-family: 'Bahnschrift', 'DIN Alternate', 'Barlow Condensed', Arial, sans-serif;
  overflow-y: auto;
}

/* ===== ШАПКА ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.logo-wrap img {
  height: 120px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.logo-caption {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
}

/* ===== КОНТАКТЫ ===== */
.social {
  position: absolute;
  right: 40px;
  top: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-right: 20px;
  margin-top: 110px;
}

.social-icons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}

.social-icons a {
  display: flex;
  align-items: center;
}

.social-icons a img {
  height: 20px;
  width: 20px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: block;
}

.social-icons a:hover img {
  opacity: 1;
}

.email {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #666;
}

.support-link {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #c0392b;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.support-link:hover {
  opacity: 1;
  text-decoration: underline;
}
/* ===== ЛИНИЯ-ПАТТЕРН ===== */
.pattern-line {
  width: calc(100% - 120px);
  height: 15px;
  background-image: url('/assets/pattern.svg');
  background-repeat: repeat-x;
  background-size: auto 15px;
  margin-bottom: 14px;
}

/* ===== НАВИГАЦИЯ ===== */
nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
  padding-bottom: 16px;
}

nav ul a {
  color: #888;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul a:hover {
  color: #ccc;
}

nav ul a.active {
  color: #c0392b;
}

/* ===== ПОПАП ===== */
.maplibregl-popup-content {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 14px;
}

.maplibregl-popup-tip {
  border-top-color: #1a1a1a;
}

.maplibregl-popup-close-button {
  color: #888;
  font-size: 18px;
}

.maplibregl-popup-close-button:hover {
  color: #fff;
  background: none;
}

/* ===== БЛОК О ПРОЕКТЕ ===== */
.about {
  padding: 80px 0;
  margin: 0 auto;
  width: 50%;
}

.about h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  text-align: center;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.about-columns p {
  font-size: 1rem;
  line-height: 1.8;
  color: #aaa;
  margin-bottom: 16px;
}

/* ===== ШРИФТ ЗАГОЛОВКОВ ===== */
.hero h1 {
  font-family: 'Bahnschrift', 'Barlow', Arial, sans-serif;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1rem;
  line-height: 1.9;
  color: #888;
  max-width: 600px;
}

.logo-wrap a {
  display: block;
  line-height: 0;
}
@media (max-width: 768px) {
    html {
    scrollbar-gutter: auto;
  }

  header {
    padding-top: 12px;
     left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
     max-width: 100vw;
    overflow-x: hidden;
  }

  .logo-wrap img {
    height: 70px;
  }

  .logo-wrap {
    margin-bottom: 8px;
    gap: 4px;
  }

  .logo-caption {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

   .social {
   display: none !important;
    position: fixed !important;
    top: -9999px !important;
    pointer-events: none;
    max-width: 0;
    overflow: hidden
  }

  .email {
    display: none;
  }

  .pattern-line {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 0 16px;
    background-clip: content-box;
    margin-bottom: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    padding: 0 16px 10px;
  }

  nav ul a {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

 body {
    overflow-y: auto;
  }

}