/* Общие стили */
body, h2, h3, p {
  margin: 0;
  padding: 0;
  font-family: "Lora", serif;
}

body {
  background-image: url('img/sunset.png');
  background-repeat: no-repeat;
  background-size: cover;
    height: 100vh;
    background-position: 50%;
    color: white;
    text-align: left;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  font-family: "Lora", serif;
}


.Slogo {
height: 40px;
margin-left: 45%;
}

.flag {
  width: 40px;
  height: 30px;
  margin-right: 60px;
  border-radius: 2px;
}

.language-switcher {
  background-color: rgba(255, 255, 255, 0);
}

.language-switcher:hover {
  background-color: rgba(255, 255, 255, 0);
}

/* Основная секция */

#hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    min-height: 100vh;
}

.hero-text {
width: 50%;
margin-bottom: 90px;
}

.hero-text h2 {
    font-size: 50px;
    font-weight: bold;
    margin-left: 10px;
    text-transform: uppercase;
}

.location {
    font-size: 32px;
    font-weight: inherit;
    padding: 10px;
    
}

.highlight {
    font-size: 20px;
    font-weight: bold;
    color: #be917c;
    margin-left: 10px;
    font-style: italic;
    font-family: "Lora", serif;
}

.description {
  margin-left: 0%;
}

/* Форма */
#callbackForm {
    background: rgba(0, 0, 0, 0.061);
    padding: 20px;
    border-radius: 10px;
    width: 350px;
    height: 150px;
}

.contact-form {
  background: rgba(0, 0, 0, 0.586);
    padding: 20px;
    border-radius: 40px;
    width: 380px;
    flex-direction: column;
    margin-right: 90px;
    margin-bottom: 40px;
}

.contact-form h2 {
    font-size: 26px;
    text-align: center;
    font-weight: inherit;
    font-family: "Lora", serif;
}

.contact-form p {
    text-align: center;
    font-size: 20px;
    font-family: "Lora", serif;
    font-weight: inherit;
}

input {
    padding: 10px;
    margin: 1px 0;
    border-radius: 5px;
}   

input::placeholder {
    color: rgba(255, 255, 255, 0.727);
    font-weight: inherit;
    border-radius: 5px;
}

.btn {
    padding: 20px;
    background-color: #d2a08e;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
}

.btn:hover {
    background-color: #b38373;
}

#formMessage {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  padding: 20px;
  margin: 15% auto;
  width: 80%;
  max-width: 400px;
  text-align: center;
  border-radius: 10px;
  position: relative;
  color: black;
}

.close {
  color: black;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* 2 блок */
.project-details {
  background: linear-gradient(to bottom, #eadece, #fefcf9);
    padding: 30px;
    text-align: center;
    border-radius: 30px;
    margin: 20px auto;
    width: 80%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border: #be917c 1px solid;
}

.head {
    font-size: 24px;
    color: #8d6654;
}

.details-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.detail h3 {
    font-size: 35px;
    font-weight: bold;
    color: #8d6654;
}

.detail p {
    font-size: 20px;
    color: #a48b7a;
}

.divider {
    width: 3px;
    height: 70px;
    background-color: #c2a497;
}

.payment-btn {
    margin-top: 15px;
    padding: 18px 25px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color: #a57b66;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.payment-btn:hover {
    background-color: #8d6654;
}

/* 3 блок */
  /* Контейнер */
  .containerr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background-color: #faf7f2;
    color: #9c7b67;
    font-family: "Lora", serif;
  }
  
  /* Секция с текстом */
  .content {
    width: 50%;
  }
  
  h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #8c6d5b;
    margin-bottom: 20px;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 20px;
  }
  
  /* Кнопка */
  button {
    background-color: #c49a80;
    color: #fff;
    border: none;
    padding: 22px 44px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 0%;
  }
  
  button:hover {
    background-color: #be917c;
  }
  
  /* Секция с изображением */
  .image {
    width: 50%;
  }
  
  .image img {
    width: 100%;
    height: auto;
    border-radius: 40px;
    object-fit: cover;
  }
  
  /* 4 блок*/
  
  /* Контейнер */
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    font-family: "Lora", serif;
    background-color: #faf7f2;
    color: #9c7b67;
  }
  
  /* Секция с текстом */
  .content {
    text-align: center;
    margin-bottom: 30px;
  }
  
  h1 {
    font-size: 2.5rem;
    color: #8c6d5b;
    margin-bottom: 15px;
  }
  
  p {
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
  }
  
  /* Галерея изображений */
  .image-gallery {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  .image-gallery img {
    border-radius: 15px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  

  /* Эффект при наведении */
  .image-gallery img:hover {
    transform: scale(1.05);
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .image-gallery {
      flex-direction: column;
      align-items: center;
    }
  
    .image-gallery img {
      width: 100%;
      height: auto;
    }
  }
  
  /* 5 блок */
  
  /* Секция удобств */
  .amenities-section {
    text-align: center;
    padding: 30px 15px;
    background-color: #fdfbf7;
    color: #9c7b67;
    font-family: "Lora", serif;
  }
  
  .head {
    font-size: 2.5rem;
    color: #8c6d5b;
    margin-bottom: 40px;
    font-family: "Lora", serif;
  }
  
  /* Сетка с удобствами */
  .amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* Карточка удобства */
  .amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;

  }
  
  .amenity img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    object-fit: contain;
  }
  
  .amenity p {
    font-size: 20px;
    color: #9c7b67;
  }
  
  /* Эффект при наведении */
  .amenity:hover {
    transform: translateY(-5px);
    cursor: pointer;
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .amenities-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 480px) {
    .amenities-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* 6 блок */
  
.info-section {
    padding: 50px 0;
    text-align: center;
    background: linear-gradient(to bottom, #e2d1bc, white);
    font-family: "Lora", serif;
}
.info-container {
    display: flex;
    justify-content: center;
    gap: 100px;
}
.info-item {
    text-align: center;
    color: #9c7c64;
}
.info-item img {
    width: 50px;
    height: 50px;
}
.info-item h2 {
    font-size: 20px;
    margin: 10px 0 5px;

}
.info-item p {
    font-size: 20px;
}
  /* 7 блок */
.map-section {
    text-align: center;
    padding: 50px 0;
    background: white;
    color: #9c7c64;
}
.map-container {
    display: flex;
    justify-content: center;
}
iframe {
    width: 80%;
    height: 450px;
    border: none;
}
.heaad {
  padding: 50px;
font-size: 48px;
}
/* 8 блок */
.custom-body {
  background: url('img/footer.png') no-repeat center;
    display: flex;
    justify-content: left;
    align-items: center;
    height: 100vh;
}

#contai {
  background: rgba(0, 0, 0, 0.027);
  padding: 20px;
  border-radius: 10px;
  max-width: 350px;
  font-family: "Lora", serif;
  margin-top: 40px;

}

form {
  display: flex;
  flex-direction: column;

}

input, button {
  margin: 10px 0;
  padding: 10px;
  border: none;
  border-radius: 5px;
  
}
input {
  background: #0000;
  border: white 1px solid;
  color:rgba(255, 255, 255, 0.455);

}
button {
  background: #c69c8f;
  color: rgb(255, 255, 255);
  cursor: pointer;
  padding: 18px;
  font-size: larger;
}
button:hover {
  background: #a57e6e;
}
.hdn {
color: white;
}

.contact-section {
  background: #f5efe6;
  padding: 50px;
  text-align: center;
  color: #b88c74;
  font-family: "Lora", serif;
}
.contact-section h2 {
  font-size: 34px;
  font-weight: bold;
}
.SElogo {
  height: 40px;
  justify-content: center;
}

/* Планшеты (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Общие стили */
  body {
    font-size: 16px;
  }
  /* Первый блок (герой) */
  #hero {
    display: flex;
    justify-content: center;
    padding: 20px;
  }

  .hero-text h2 {
    font-size: 40px;
  }

  .location {
    font-size: 28px;
  }

  .highlight {
    font-size: 18px;
  }

  #callbackForm {
    padding: 25px;
 }

.contact-form {
  margin-right: 0px;
}

  /* Второй блок (детали проекта) */
  .project-details {
    width: 90%;
    padding: 25px;
  }

  .detail h3 {
    font-size: 32px;
  }

  .detail p {
    font-size: 18px;
  }

  /* Третий блок (текст и изображение) */
  .container {
    flex-direction: column;
    padding: 20px;
  }


  .content h1 {
    font-size: 2.2rem;
  }

  .content p {
    font-size: 16px;
    padding: 15px;
  }

  /* Четвертый блок (галерея изображений) */
  .image-gallery img {
    border-radius: 20px;
    flex-direction: column;
    padding: 20px;
  }

  /* Пятый блок (удобства) */
  .amenities-grid {
   grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .amenity p {
    font-size: 18px;
  }

  /* Шестой блок (информация) */
  .info-container {
    gap: 50px;
  }

  .info-item h2 {
    font-size: 18px;
  }

  .info-item p {
    font-size: 16px;
  }

  /* Седьмой блок (карта) */
  iframe {
    width: 90%;
    height: 400px;
  }

  .heaad {
    font-size: 40px;
    padding: 40px;
  }

  /* Восьмой блок (форма) */
  .custom-body {
    padding: 30px;
  }

  #contai {
    max-width: 90%;
  }

  /* Девятый блок (контакты) */
  .contact-section {
    padding: 40px 20px;
  }

  .contact-section h2 {
    font-size: 30px;
  }

  .contact-section p {
    font-size: 18px;
  }
}

/* Мобильная адаптация (до 768px) */
@media (max-width: 768px) {
  /* Общие стили */
  body {
    font-size: 14px;
  }

  header {
    flex-direction: row;
    justify-content: center;
}

.Slogo {
    height: 35px;
}

.flag {
    width: 20px;
}
  /* Первый блок (герой) */
  #hero {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .hero-text {
    width: 100%;
  }

  .hero-text h2 {
    font-size: 36px;
    margin-left: 0;
  }

  .location {
    font-size: 24px;
  }

  .highlight {
    font-size: 18px;
  }
#callbackForm {
    padding: 0;
    width: auto;
}
  .contact-form {
    width: 100%;
    margin-right: 0;
    margin-bottom: 70px;
  }

  /* Второй блок (детали проекта) */
  .project-details {
    width: 90%;
    padding: 20px;
  }

  .details-container {
    flex-direction: column;
  }

  .divider {
    display: none;
  }

  .detail h3 {
    font-size: 28px;
  }

  .detail p {
    font-size: 18px;
  }

  /* Третий блок (текст и изображение) */
  .containerr {
    flex-direction: column;
    padding: 20px;
  }

  .content, .image {
    width: 100%;
  }

  .content h1 {
    font-size: 2rem;
  }

  .content p {
    font-size: 16px;
    padding: 10px;
  }

  /* Четвертый блок (галерея изображений) */
  .image-gallery {
    flex-direction: column;
    align-items: center;
  }

  .image-gallery img {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Пятый блок (удобства) */
  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .amenity p {
    font-size: 18px;
  }

  /* Шестой блок (информация) */
  .info-container {
    flex-direction: column;
    gap: 20px;
  }

  .info-item h2 {
    font-size: 18px;
  }

  .info-item p {
    font-size: 16px;
  }

  /* Седьмой блок (карта) */
  iframe {
    width: 100%;
    height: 300px;
  }

  .heaad {
    font-size: 36px;
    padding: 30px;
  }

  /* Восьмой блок (форма) */
  .custom-body {
    height: auto;
    padding: 20px;
  }

  #contai {
    max-width: 100%;
  }

  /* Девятый блок (контакты) */
  .contact-section {
    padding: 40px 20px;
  }

  .contact-section h2 {
    font-size: 28px;
  }

  .contact-section p {
    font-size: 18px;
  }
}

/* Мелкие мобильные устройства (до 480px) */
@media (max-width: 480px) {
  /* Общие стили */
  body {
    font-size: 14px;
    padding: 10px; 
    padding-bottom: 100px;
  }

header {
        display: flex;  
        flex-direction: row;
        align-items: center;
        text-align: center;
    }

  /* Первый блок (герой) */
  #hero {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: start;
     display: fixed;
  }

  .hero-text h2 {
    font-size: 24px;
  }

  .location {
    font-size: 18px;
  }

  .highlight {
    font-size: 14px;
  }

  #callbackForm {
    padding: 0;
    width: auto;
  }

/*НУЖНО ЭТО ПРОВЕРИТЬ*/
  .contact-form {
    padding: 10px;
    }  


  .contact-form h2 {
    font-size: 22px;
  }

  .contact-form p {
    font-size: 18px;
  }

  input {
    padding: 12px;
    font-size: 14px;
  }

  .btn {
    padding: 20px;
    font-size: 14px;
    width: 98%;
  }

  .flag {
    width: 20px;
    height: 15px;
  }

  /* Второй блок (детали проекта) */
  .project-details {
    width: 95%;
    padding: 10px;
  }

  .head {
    font-size: 18px;
  }

  .detail h3 {
    font-size: 22px;
  }

  .detail p {
    font-size: 14px;
  }

  .payment-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Третий блок (текст и изображение) */
  .containerr {
    padding: 10px;
    display: flex;
    flex-direction: column;
  }

  .containerr h1 {
    font-size: 1.5rem;
  }

  .containerr p {
    font-size: 12px;
    padding: 5px;
  }

  .image img {
    border-radius: 8px;
  }

  /* Четвертый блок (галерея изображений) */
  .image-gallery img {
    margin-bottom: 10px;
  }

  /* Пятый блок (удобства) */
  .amenities-section {
    padding: 20px 10px;
    
  }
  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .head {
    font-size: 1.5rem;
  }

  .amenity img {
    width: 40px;
    height: 40px;
  }

  .amenity p {
    font-size: 14px;
  }

  /* Шестой блок (информация) */
  .info-section {
    padding: 20px 10px;
  }

  .info-item img {
    width: 40px;
    height: 40px;
  }

  .info-item h2 {
    font-size: 14px;
  }

  .info-item p {
    font-size: 12px;
  }

  /* Седьмой блок (карта) */
  .map-section {
    padding: 20px 10px;
  }

  iframe {
    height: 200px;
  }

  .heaad {
    font-size: 24px;
    padding: 15px;
  }

  /* Восьмой блок (форма) */
  .custom-body {
    padding: 10px;   
  }
  
.contact-form{
  height: 50%;
}

input {
  width: 90%;
}
button {
  width: 97%;
}
  #contai {
    margin-bottom: 20px;
  }

  /* Девятый блок (контакты) */
  .contact-section {
    padding: 20px 10px;
  }

  .contact-section h2 {
    font-size: 20px;
  }

  .contact-section p {
    font-size: 14px;
  }
}
