
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f3c5a;
  background-color: #f8fbff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}



.site-header {
  background: #28517e;
  color: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.55rem 0;
}


.logo-img {
  height: clamp(80px, 9vw, 130px);
  width: auto;
  object-fit: contain;
}


.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: clamp(0.7rem, 0.63rem + 0.21vw, 0.77rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 0.3rem 0.6rem;
  padding-bottom: 0.2rem;
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #203a5a;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.nav-link--active::after {
  width: 100%;
}


.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  color: #ffffff;
  text-decoration: none;
}

.icon-phone {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-phone::before {
  content: "☎";
}

.header-social {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
}

.header-social--ig::before {
  content: "IG";
  font-size: 0.7rem;
  font-weight: 600;
}

.header-social--fb::before {
  content: "f";
  font-weight: 700;
}

.header-divider {
  height: 3px;
  background: #ffffff;
}


.hero-illustration {
  width: 100%;
  overflow: hidden;
}

.hero-illustration-bg {
  width: 100%;
  height: clamp(260px, 40vw, 430px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: #f1f6fc;
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2rem;
  color: #425972;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.icon-list li {
  margin-bottom: 0.35rem;
  color: #294468;
  font-size: 0.95rem;
}


.ratings-inline {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  border: 1px solid rgba(9, 55, 97, 0.18);
  background: #ffffff;
  color: #294468;
  text-decoration: none;
}


.about-photo-wrap {
  position: relative;
}

.about-photo.main {
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.about-photo.small {
  position: absolute;
  width: 48%;
  bottom: -8%;
  right: -4%;
  border-radius: 14px;
  border: 3px solid #f8fbff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.rooms-slider {
  margin-top: 2.2rem;
  position: relative;
}

.rooms-viewport {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(15, 40, 76, 0.3); /* более выразительная тень */
}

.rooms-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease-out;
}

.room-slide {
  min-width: 100%;
  max-width: 100%;
}

.room-slide img {
  width: 100%;
  height: clamp(240px, 40vw, 420px);
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-slide img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.rooms-arrow {
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #444;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.rooms-arrow--prev {
  left: 12px;
}

.rooms-arrow--next {
  right: 12px;
}

.room-slide img {
  cursor: zoom-in;
  transition: transform 0.2s ease; 
}

.room-slide img:hover {
  transform: scale(1.02);
}


.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
}


.lightbox-img-wrapper {
  position: relative; /* теперь крестик внутри */
  display: inline-block;
}


.lightbox-img {
  max-width: 90vw;   /* максимум 90% ширины окна */
  max-height: 90vh;  /* максимум 90% высоты окна */
  border: 2px solid #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  display: block;
}


.lightbox-close {
  position: absolute;
  top: 10px;        /* отступ сверху от картинки */
  right: 10px;      /* отступ справа */
  color: #fff;      /* белый крестик */
  font-size: 2rem;  /* размер крестика */
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;    /* чтобы был поверх фото */
  background: none; /* без кружка */
  padding: 0;
  line-height: 1;
  text-shadow: 0 1px 0 #000; /* черная тень вниз на 1px */
}



.map-wrap {
  border-radius: 16px; /* уже есть у iframe */
  overflow: hidden;    /* чтобы тень не выходила за скругление */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* лёгкая размыттая тень */
  transition: box-shadow 0.3s ease;
}

.map-wrap:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* чуть сильнее при наведении */
}


.section-contacts {
  position: relative;
  padding: 1rem 1rem 6rem; 
  min-height: 45vh; 
  background: url('media/contacts-1.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  /* -items: center; */
  color: #203a5a;
  align-items: flex-start;
  /* padding-top: 2rem; */
}

.contacts-text {
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.6;
  text-align: left; 
  text-shadow: 0 1px 0 rgba(0,0,0,0.5); 
  /* transform: translateY(-90px); /* поднимаем на 90px */
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-list a {
  color: #203a5a;
  text-decoration: underline;
}

@media (max-width: 992px) {
  .section-contacts {
    padding: 3rem 1rem 5rem;
  }
}

@media (max-width: 576px) {
  .section-contacts {
    padding: 2rem 1rem 5rem;
    min-height: 50vh;
  }
}

.site-footer {
  background: #2f517f;
  color: #d7e2f2;
  padding: 1.5rem 1rem;
  font-size: clamp(0.8rem, 2vw, 0.95rem); /* адаптивный шрифт */
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap; 
  gap: 1rem;
}

.footer-links a {
  color: #a9c2de;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}



@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 1.4rem;
  }

  .header-right {
    align-self: flex-end;
  }
}

@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .about-photo.small {
    position: static;
    width: 60%;
    margin-top: 0.7rem;
  }

  .room-slide img {
    height: clamp(220px, 60vw, 320px);
  }
}

@media (min-width: 1200px) {
  .room-slide img {
    height: 420px;
  }
}
