/* ====== ОБЩИЙ СТИЛЬ ====== */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  background: #f5f5f5;
  line-height: 1.6;
}


/* ====== ШАПКА ====== */
header {
  background-color: #336699;
  color: white;
  padding: 20px 20px;
}

/* Контейнер шапки */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 0 60px 0 20px; /* отступ справа под логотип */
  box-sizing: border-box;
}

/* Текст по центру */
.header-title {
  font-size: 1.6em;
  text-align: center;
  flex: 1;
  line-height: 1.4;
}

/* Логотип */
.header-logo {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  height: 80px;
  width: auto;
}




/* ====== КНОПКА МЕНЮ ====== */
.menu-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #336699;
  color: white;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 999;
}

/* ====== БОКОВОЕ МЕНЮ ====== */
.sidebar {
  height: 100%;
  width: 250px;
  position: fixed;
  top: 0;
  left: -250px;
  background-color: #336699;
  color: white;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 998;
}

.sidebar a {
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1.2em;
  color: white;
  display: block;
}

.sidebar a:hover {
  background-color: #29527a;
}

.sidebar.open {
  left: 0;
}

/* ====== СЕКЦИИ СОДЕРЖИМОГО ====== */
.map-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.map-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  aspect-ratio: 3 / 2;
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ====== ГРАФИКИ ====== */
.graph-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  overflow-x: auto;
}

.graph-wrapper h2 {
  margin-bottom: 20px;
}

.graph-iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* ====== КООРДИНАТЫ ====== */
.coord-block {
  font-size: 1.2em;
  font-family: 'Open Sans', sans-serif;
  white-space: pre-wrap;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #333;
  line-height: 1.4;
}

.coord-title {
  margin-bottom: 5px;
}

/* ====== СПИСОК СТАНЦИЙ ====== */
.station-list {
  list-style-type: disc;
  padding-left: 20px;
}

/* ====== АДАПТИВ ====== */
@media screen and (max-width: 768px) {
  .header-title {
    font-size: 1.2em;
  }

  .header-logo {
    height: 50px;
  }

  .menu-btn {
    font-size: 1.2em;
  }

  .graph-iframe {
    height: 400px;
  }

  .graph-wrapper {
    padding: 0 10px;
  }

  .sidebar {
    width: 200px;
    left: -200px;
  }

  .sidebar.open {
    left: 0;
  }
}
