@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

/* -------------------------
   ГЛАБАЛЬНЫЯ РЭСЭТЫ
-------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background: #fff;
  color: #000;
  scroll-behavior: smooth;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  display: block;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

/* -------------------------
   ВЕРХНІ БАР (Назад + Мовы)
-------------------------- */
.lang-switch {
  display: flex;
    align-items: flex-end;
  position: fixed;
  gap: 5px;
  top: 10px;
  right: 10px;
}

.back-btn,
.lang-btn {
  position: fixed;
  background: #ffffffb3;
  color: #0077cc;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s;
  backdrop-filter: blur(5px);
  border: none;
  width: fit-content;
}

/* Кнопка назад */
.back-btn {
  top: 10px;
  left: 10px;
}

.lang-btn {
  position: static;
}

/* Ховер */
.back-btn:hover,
.lang-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #0077cc;
}

/* --- Адаптыў --- */
@media (max-width: 768px) {
  .back-btn,
  .lang-btn {
    font-size: 14px;
    padding: 5px 8px;
  }

  .back-btn {
    top: 8px;
    left: 8px;
  }
}

/* -------------------------
   КАНТЭЙНЕР
-------------------------- */
.container {
  width: 70%;
  margin: 40px auto 0;
  padding-bottom: 50px;
}

/* -------------------------
   Welcome
-------------------------- */
.welcome-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  background: #f5f5f5;
}

.welcome-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
}

.welcome-subtitle {
  font-size: 22px;
  margin-bottom: 40px;
  color: #555;
}

.start-btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 22px;
  font-weight: bold;
  color: white;
  background: #0077cc;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.start-btn:hover {
  background: #005fa3;
}

/* -------------------------
   Секцыі і спісы
-------------------------- */
.page-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: bold;
}

.list .button {
  display: flex;
  align-items: center;
  gap: 40px;
  border: 1px solid #000;
  border-radius: 4px;
  margin: 10px 0;
  padding: 15px;
  transition: background 0.2s;
}

.button:hover {
  background: #f2f2f2;
}

.btn-img {
  width: 85px;
  height: auto;
  border-radius: 5px;
  margin: 10px 10px 10px 15px;
}

.txt-container {
  flex: 1;
}

.btn-num {
  font-size: 16px;
  margin-bottom: 5px;
}

.btn-title {
  font-size: 22px;
  text-transform: uppercase;
}

/* -------------------------
   Старонка экспаната
-------------------------- */
.exb-name {
  text-align: center;
  font-size: 26px;
  margin-top: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.exb-info {
  text-align: center;
  font-size: 16px;
  color: gray;
  margin-bottom: 15px;
}

.exb-img {
  width: 60%;
  margin: 15px auto;
  border-radius: 20px;
}

/* аудио */
.exb-audio {
  width: 100%;
  max-width: 800px;
  margin: 15px auto;
  display: block;
}

/* тэкст */
.exb-text {
  width: 80%;
  margin: 20px auto;
  font-size: 20px;
  line-height: 1.5;
}

.exb-text p {
  margin-bottom: 15px;
}

/* -------------------------
   Карусель
-------------------------- */
.carousel {
  width: 60%;
  margin: 15px auto;
  overflow: hidden;
  border-radius: 15px;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: 0.4s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  border-radius: 15px;
}

/* кнопкі */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

/* кропкі */
.carousel-dots {
  text-align: center;
  margin-top: 12px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  margin: 0 4px;
}

.carousel-dots .dot.active {
  background: #333;
}

/* -------------------------
   Адаптыў
-------------------------- */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    width: 100%;
    padding: 15px;
    margin-top: 85px;
  }

  .carousel,
  .exb-img {
    width: 100%;
  }

  .exb-text {
    width: 100%;
    font-size: 18px;
  }

  .btn-title {
    font-size: 18px;
  }
}
