/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-image: url("/img/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}


/* CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 10px;
  margin: 0 auto;
}


/* HEADER */
.header {
  padding-top: 30px;
  /* padding: 20px 0; */
}

.header .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  height: clamp(80px, 8vw, 200px);
  width: auto;
}


/* TITLE */
.title-section {
  text-align: center;
  /* padding: 20px 0 10px; */
}

.title-section h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}


/* LANGUAGE SWITCH */
.lang-switch {
  display: flex;
  gap: 10px;
  justify-content: center;
  /* margin-top: 150px; */
}

.lang-switch a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;

  background: rgba(255, 255, 255, 0.2);
  color: rgb(0, 0, 0);

  border: 1px solid rgb(247, 244, 244);
  transition: 0.3s;
  backdrop-filter: blur(6px);
}

.lang-switch a:hover {
  background: white;
  color: black;
  transform: scale(1.05);
}

.lang-switch a.active {
  background: white;
  color: black;
  font-weight: bold;
}


/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}


/* CARD */
.card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  height: 220px;
  background: #000;
}


/* IMAGE */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}


/* DARK OVERLAY */
.card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.65),
      transparent);
}


/* TEXT ON CARD */
.card span {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: white;
  font-size: 20px;
  font-weight: 600;
  z-index: 2;
  line-height: 1.3;
}


/* HOVER EFFECT  */
.card:hover img {
  transform: scale(1.05);
}


/* КНОПКА НАЗАД */
.back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 20px;

  background: rgba(0, 0, 0, 0.55);
  color: white;

  text-decoration: none;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.back:hover {
  background: white;
  color: black;
}


/* ФОТО НА ВЕСЬ ЭКРАН */
.full-img {
  width: 100%;
  height: clamp(300px, 100vh, 900px);
  object-fit: cover;
  display: block;
}


/* ТЕКСТ ОПИСАНИЯ */
.content {
  background: #0E2647;
  min-height: 100vh;
}

.text {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  line-height: 1.6;
  font-size: 20px;
  color: white;
}

.text h1 {
  text-align: center;
}


/* СЕТКА */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 10px;
}

/* ФОТО */
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: 0.3s;
}

/* HOVER */
.gallery-grid img:hover {
  transform: scale(1.05);
}


/* IFRAME */
.map-box iframe,
.tour-box iframe {
  width: 100%;
  height: clamp(400px, 80vh, 900px);
  border: none;
  border-radius: 20px;
}


/* БЛОКИ */
.card-box {
  display: grid;
  gap: 20px;
  margin-top: 30px;
  text-align: center;
}

.card-block {
  background: #3E516C;
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(8px);
  border: 1px solid #3E516C;
}

.card-block h2 {
  margin-top: 0;
  margin-bottom: 30px;
}


/* LIGHTBOX */
.lightbox {
  position: fixed;

  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  background: rgba(14, 38, 71, 0.95);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 999999;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;

  object-fit: contain;
}


/* КНОПКА ЗАКРЫТИЯ */
.close-btn {
  position: absolute;

  top: 10px;
  right: 40px;

  color: white;

  font-size: 50px;
  font-weight: 300;

  cursor: pointer;

  z-index: 1000000;

  transition: 0.3s;
}

.close-btn:hover {
  transform: scale(1.1);
  opacity: 0.7;
}


/* ТЕЛЕФОН */
a[href^="tel"] {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

a[href^="tel"]:hover {
  text-decoration: underline;
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .title-section h1 {
    font-size: 34px;
  }

  .full-img {
    height: 60vh;
    object-fit: cover;
  }

}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .title-section h1 {
    font-size: 38px;
  }

  .full-img {
    height: 250px;
    object-fit: cover;
  }

  .text {
    font-size: 16px;
    padding: 20px 15px;
  }

  .text h1 {
    font-size: 28px;
  }

  .card-box {
    gap: 12px;
    margin-top: 15px;
  }

  .gallery-grid {
    gap: 5px;
  }

  .close-btn {
    right: 20px;
  }
}