/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
}

.section {
  padding: 20px;
}

.hidden {
  display: none !important;
}

/* ===== HEADER ===== */
.site-header {
  background: #0b4c8c;
  color: #fff;
  padding: 20px;
}

.header-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.main-menu button {
  background: #fff;
  color: #0b4c8c;
  border: 1px solid #0b4c8c;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.lang-switch button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* ===== LAYOUT ===== */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
}

#regionsList {
  list-style: none;
}

#regionsList li {
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

#regionsList li.active {
  background: #0b4c8c;
  color: #fff;
}

/* ===== MAP ===== */
.map-area {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
}

svg path {
  fill: #dfe8f2;
  stroke: #0b4c8c;
  stroke-width: 1;
  cursor: pointer;
}

svg path.active {
  fill: #0b4c8c;
}

/* ===== REGION ===== */
#backBtn {
  background: #0b4c8c;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 15px;
}

#regionTitle {
  font-size: 24px;
  margin-bottom: 20px;
  color: #0b4c8c;
}

/* ===== MUSEUM BLOCK ===== */
.museum-block {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.museum-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.museum-tabs button {
  background: #e6eef6;
  border: 1px solid #0b4c8c;
  color: #0b4c8c;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.museum-tabs button.active {
  background: #0b4c8c;
  color: #fff;
}

.museum-content p {
  font-size: 16px;
  line-height: 1.7;
}

.museum-content img {
  max-width: 100%;
  margin: 10px 0;
  border-radius: 8px;
}

.museum-content iframe {
  width: 100%;
  height: 360px;
  border: none;
  margin: 10px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
/* ===== CONTENT PAGE IMPROVEMENTS ===== */

#section-content {
  padding: 40px 20px;
  background: #f4f6f8;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

#contentTitle {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0d3b66;
}

#contentBody {
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* paragraphs */
#contentBody p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #2b2b2b;
  text-align: justify;
}

/* images inside content */
#contentBody img {
  max-width: 100%;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
}

/* back button */
#backToMain {
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #d0d7de;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

#backToMain:hover {
  background: #e6eef7;
}
/* ===== MUSEUM CARDS ===== */

.museum-block {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  max-width: 900px;
}

/* museum title (from JS, first text in info) */
.museum-block h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #0d3b66;
}

/* ===== TABS ===== */

.museum-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.museum-tabs button {
  background: #f1f4f8;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.museum-tabs button:hover {
  background: #dbe7f3;
}

.museum-tabs button.active {
  background: #0d3b66;
  color: #ffffff;
}

/* ===== TAB CONTENT ===== */

.museum-content p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: justify;
}

.museum-content img {
  max-width: 100%;
  margin: 20px auto;
  display: block;
  border-radius: 10px;
}

.museum-content iframe {
  width: 100%;
  height: 360px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.slider {
  position: relative;
  max-width: 100%;
  margin: 20px 0;
  text-align: center;
}

.slider img {
  max-width: 100%;
  border-radius: 8px;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 6px 12px;
  cursor: pointer;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.museum-content iframe {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 20px auto;
  display: block;
  border-radius: 10px;
}
/* ===== SLIDER ===== */

.slider {
  position: relative;
  max-width: 100%;
  margin: 20px auto;
}

.slider img {
  width: 100%;
  display: block;
}

/* кнопки листания */
/* ===== SLIDER ===== */

.slider {
  position: relative;
  max-width: 800px;
  margin: 20px auto;
}

.slider img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* ===== SLIDER BUTTONS ===== */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

.slider-btn:hover {
  background: rgba(255, 204, 0, 0.95);
  color: #000;
  transform: translateY(-50%) scale(1.15);
}
