@font-face {
  font-family: 'NimbusSanL';
  src: url('fonts/NimbusSanL-Reg.woff2') format('woff2'),
       url('NimbusSanL-Reg.woff') format('woff'),
       url('NimbusSanL-Reg.ttf') format('truetype');
  font-style : normal;
  font-weight: 400;
}
@font-face {
    font-family: 'NimbusSansL';
    src: url('NimbusSanL-Bol.woff2') format('woff2'),
         url('NimbusSanL-Bol.woff') format('woff'),
         url('NimbusSanL-Bol.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
  --font_0  : 'NimbusSanL', sans-serif;
  --colof_f : rgb(38, 38, 38);
  --color_18: 154, 138, 120;
}

* {
  margin    : 0;
  padding   : 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family     : var(--font_0);
  line-height     : 1.5;
  background-color: #fff;
  color           : #333;
}

.wrapper {
  display         : flex;
  flex-direction  : column;
  min-height      : 100vh;
  background-color: var(--colof_f);
}

/* ======= HEADER ======= */
.header {
  position           : relative;
  height             : clamp(220px, 43vw, 538px);
  width              : 100%;
  overflow           : hidden;
  display            : grid;
  align-content : center;
  grid-auto-rows: minmax(120px, 180px) 1fr;
}

/* паралакс через JS */
 .parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/01.header.avif');
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: translateY(0);
  will-change: transform;
  filter : brightness(0.5);
} 

/* Інші елементи поверх */
.logo__link,
.text_header,
.header_menu {
  position: relative;
  z-index : 2;
  padding-bottom: 16px;
}

/* Логотип */
 .logo__link {
  z-index: 2;
  padding: 16px;
} 
.logo__link img{
  width: clamp(120px, 18vw, 210px);;
}

 .logo__link img {
  filter: drop-shadow(0 0 5px rgba(191, 238, 255, 0.8));
} 

/* Текст в центрі */
.text_header {
    text-align: center;
  color     : white;
  z-index   : 2;
}

.font_0 {
  font-family  : var(--font_0);
  font-size    : clamp(25px, 5vw, 55px);
  font-weight  : bold;
  line-height  : 1.4em;
  margin-bottom: 10px;
}

.font_2 {
  font-family   : var(--font_0);
  font-size     : 40px;
  font-weight   : normal;
  line-height   : 1.4em;
  color         : #fff;
  padding-bottom: 15px;
}

.font_3 {
  font-family   : var(--font_0);
  font-size     : 30px;
  font-weight   : normal;
  line-height   : 1.4em;
  color         : #fff;
  padding-bottom: 20px;
}

.font_4 {
  font-family   : var(--font_0);
  font-size     : 20px;
  font-weight   : normal;
  line-height   : 1.4em;
  color         : #fff;
  padding-bottom: 10px;
  justify-content: center;
  display: flex;
}

.header_text {
  line-height: normal;
  font-size  : clamp(16px, 3vw, 30px);
}

#menu {
  display        : flex;
  justify-content: flex-end;
}

/* Меню */
.header_menu {
  position: absolute;
  top     : 30px;
  right   : 70px;
  z-index : 2;
}

.header_menu-1 {
  list-style: none;
  display   : flex;
  gap       : 20px;
}

.menu_link {
  color          : white;
  text-decoration: none;
  transition     : color 0.3s;
}

.menu_link:hover {
  color: #ada8a3;
}

/* ======= MAIN ======= */
main {
  min-width   : 935px;
  margin-left : auto;
  margin-right: auto;
  width       : calc(100% - 80px - 80px);
  padding     : 20px 0;
}

/* Секція з картинкою */
.section-2 {
  align-items          : center;
  margin-bottom        : 30px;
  display              : grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border               : 1px solid rgb(var(--color_18));
}

.section-2_pic {
  border-right       : 1px solid rgb(var(--color_18));
  line-height        : 0;
  background-image   : url('../images/02.section_02.avif');
  width              : 100%;
  background-size    : cover;
  background-position: center;
  background-repeat  : no-repeat;
  padding            : 0;
  min-height         : clamp(250px, 35vw, 600px);
  filter : brightness(0.6);
}

.section-2_text {
  display        : flex;
  flex-direction : column;
  justify-content: center;
  padding        : 20px;
  align-items    : center;
}
@media (max-width: 1024px){
  .section-2_text {
    align-items    : normal;
  }
  }

.rich-text__text-2 {
  list-style  : disc;
  padding-left: 20px;
}
.text-2_text {
  color: #fff;
}

/* SECTION - 3 */
.section-3 {
  display              : grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom        : 30px;
  overflow             : hidden;
  border               : 1px solid rgb(var(--color_18));
 }

.section-3_text {
  background-color: #9A8A78;
}

.section-3>* {
  border-right   : 1px solid rgb(var(--color_18));
  padding        : 20px;
  color          : #fff;
  display        : flex;
  flex-direction : column;
  justify-content: center;
}

/* Видаляємо border справа у останній колонці в рядку */
.section-3>*:nth-child(4n) {
  border-right: none;
}

.section-3_pic {
  background-image   : url('../images/03.section_02.avif');
  width              : 100%;
  background-size    : cover;
  background-position: center;
  background-repeat  : no-repeat;
  padding            : 0;
  min-height         : clamp(350px, 30vw, 365px);
  filter : brightness(0.6);
}

/* Текстові блоки */
.section-3 .section-3_text > h2.font_3 {
  padding-bottom: 0;
}
.section-3_text-2 svg{
  width: 70px;
  align-self: center;
  height: auto;
  margin: 30px;
}
.section-3_pic picture,
.section-3_pic img {
  width     : 100%;
  height    : auto;
  display   : block;
  object-fit: cover;
}
.section-4_pic {
  background-image   : url('../images/04.section_02.avif');
  width              : 100%;
  background-size    : cover;
  background-position: center;
  background-repeat  : no-repeat;
  padding            : 0;
  min-height: clamp(350px, 36vw, 500px);
  filter : brightness(0.6);
}
.section-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 10px;
  gap: 60px;
}

.section-6_text {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 30px;
}
.section-6_text svg{
  width: 35px;
  height: auto;
  margin: 20px;
  color: #fff;
}
.section-6_text svg fill{
  color: #fff;
}
.rich-text__link a{
  color: #fff;
}
.rich-text__link a:hover{
  color: #ada8a3;
}

/* ===== Адаптивність ===== */
@media (max-width: 1024px) {
  .section-3 {
    grid-template-columns: repeat(2, 1fr);
    /* 2 колонки на планшетах */
  }

  .section-3>*:nth-child(1) {
    border-bottom: 1px solid rgb(var(--color_18));
  }

  .section-3>*:nth-child(2) {
    border-bottom: 1px solid rgb(var(--color_18));
  }

  .section-3>*:nth-child(2n) {
    border-right: none;
  }
 
  .section-3>*:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .section-2_pic:nth-child(1) {
    border-right: none;
  }

  .section-2_pic:nth-child(1) {
    border-bottom: 1px solid rgb(var(--color_18));
  }

  .section-3 {
    grid-template-columns: 1fr;
    }

  .section-3>* {
    border-right: none;
  }

  .section-3>*:nth-child(3) {
    border-bottom: 1px solid rgb(var(--color_18));
  }

}

.rich-text__item {
  margin-bottom: 10px;
}

.rich-text__item::marker {
  color: #fff;
}

.rich-text__link {
  color: #fff;
}

/* ======= FOOTER ======= */
footer,
foter.footer {
  margin-top: auto;
  padding   : 20px;
  text-align: center;
  background: #222;
  color     : #ccc;
}

/* ======= АДАПТИВНІСТЬ ======= */
@media (max-width: 1024px) {
  .header_menu-1 {
    gap: 12px;
  }

  main {
    width    : calc(100% - 40px);
    min-width: unset;
  }

  .section-2 {
    flex-direction: column;
  }
}

/* Базові стилі бургер-кнопки */
.burger {
  display        : none;
  flex-direction : column;
  justify-content: center;
  gap            : 5px;
  width          : 30px;
  height         : 25px;
  background     : transparent;
  border         : none;
  cursor         : pointer;
  z-index        : 1001;
  margin-left    : auto;
}

.burger-line {
  width           : 100%;
  height          : 3px;
  background-color: white;
  transition      : all 0.3s ease;
}

/* Активний стан — перетворення на хрестик */
.burger.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Стилі меню */
.header_menu {
  display        : flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
   #menu {
    position        : absolute;
    top             : 100%;
    right           : 0;
    left            : 0;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction  : column;
    align-items     : flex-start;
    max-height      : 0;
    overflow        : hidden;
    transition      : max-height 0.4s ease, padding 0.3s ease;
    z-index         : 5;
    padding         : 0 20px;
  }

  #menu.active {
    max-height: 276px;
    overflow-y: auto;
    padding   : 20px;
    position  : absolute;
    top       : 0;
    height    : 240px;
  }

  .burger {
    display : flex;
    position: absolute;
    top     : 35px;
    right   : 35px;
  }

  .header_menu {
    top   : auto;
    bottom: 20px;
    right : 20px;
  }

  .header_menu-1 {
    flex-direction: column;
    gap           : 10px;
    background    : rgba(0, 0, 0, 0.5);
    padding       : 10px;
    border-radius : 8px;
  }

  .burger {
    display : flex;
    position: absolute;
    top     : 35px;
    right   : 35px;
  }

  .header_menu {
    position        : absolute;
    top             : 100%;
    right           : 0;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction  : column;
    align-items     : flex-start;
    width           : 100%;
    max-height      : 0;
    overflow        : hidden;
    transition      : max-height 0.3s ease;
  }

  .header_menu.active {
    max-height: 500px;
    padding   : 20px;
  }

  .header_menu-1 {
    flex-direction: column;
    width         : 100%;
  }

  .menu_item {
    padding: 10px 0;
  }

  .menu_link {
    color          : white;
    text-decoration: none;
  }
}

.no-scroll {
  overflow: hidden;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: #9A8A78;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s, transform 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollTopBtn:hover {
  transform: rotate(-45deg);
  background-color: #7d6f60;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

/* Адаптація для мобільних */
@media (max-width: 600px) {
  #scrollTopBtn {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }

  #scrollTopBtn svg {
    width: 20px;
    height: 20px;
  }
}
/* ===== Masonry стиль для галереї (плитка) ===== */
.galerry-1 {
  column-count: 2;
  column-gap: 20px;
  padding: 20px;
}

.photo-1 {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  background-color: #fdfdfd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.photo-1 img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-1 p {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  background-color: #9A8A78;
  color: #fff;
  margin: 0;
}

/* Адаптивність плитки */
@media (max-width: 650px) {
  .galerry-1 {
    column-count: 1;
  }
}

 #typewriter::after {
  content: '|';
  animation: blink 1s infinite;
  color: white;
  margin-left: 2px;
}

#typewriter.hide-cursor::after {
  content: '';
  animation: none;
}
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}
/* Стилі кнопки */
.contact-btn {
  background-color: #9A8A78;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1000;
  margin-top: 20px;
}
.contact-btn:hover {
  background-color: #7f6e5f;
}

/* Модальне вікно */
.modal {
  display: none;
  position: fixed; /* залишаємо fixed */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
  .modal-content {
    padding: 20px;
    max-height: 95vh;
  }
}

/* Кнопка закриття */
.close-btn {
  color: #aaa;
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}
.close-btn:hover {
  color: #000;
}

/* Стилі форми */
form label {
  display: block;
  margin-top: 5px; 
  font-weight: 600;
}

form input,
form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
}
form textarea{
  font-size: 1.2em;
  height: 46px;
}
form button[type="submit"] {
  margin-top: 12px;
  background-color: #9A8A78;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
}
form button[type="submit"]:hover {
  background-color: #7f6e5f;
}

/* Повідомлення про помилку */
.error-msg {
  display: none;
  color: red;
  font-size: 13px;
  margin-top: 4px;
}

/* Повідомлення про успіх */
.success-msg {
  display: none;
  color: green;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}

/* капча */
#captchaQuestion {
  font-weight: bold;
  margin-left: 5px;
}

#captchaAnswer {
  margin-top: 5px;
}
.capchaQvestion{
  display: grid;
  grid-template-columns: 115px 50px auto;
  align-items: center;
  gap: 10px;
  justify-content: left;
} 