/* Загальні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: "Times New Roman", serif;
    background: #FAF2E2;
    overflow-x: clip;
    scroll-behavior: smooth;
}
/* Floating Profile Image */
.floating-profile {
  position: fixed;
  bottom: 50px;
  right: 50px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0.7; /* 70% прозорості */
  transition: opacity 0.3s ease;
}
.floating-profile:hover {
  opacity: 1;
}
.floating-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
/* --- HEADER --- */
.link {
  text-decoration: none;
}
.header {
    background: #27291E;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0.9;
    z-index: 1000;
    height: 104px;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.logo{
  margin-left:  -50px;
}
.logo img {
    height: 80px;
    margin-left: 10px;
}
.nav {
  display: flex;
  align-items: center;
}
.nav ul {
    list-style: none;
    display: flex;
    gap: 60px;
    font-weight: 400;
    font-size: 20px;
}

.nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* --- Мовний перемикач --- */
.language-switcher {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.language-switcher img {
  height: 16px;
  width: 26px;
}

/* --- Меню для мобільних пристроїв --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-top: 3px;
}

.menu-toggle div {
  width: 30px;
  height: 3px;
  background: #f7f3e6;
  margin: 2px 0;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 20px;
  background: #27291E;
  width: 200px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.mobile-menu a {
  padding: 15px;
  color: white;
  text-decoration: none;
  display: block;
}

.mobile-menu a:hover {
  background: #333;
}

/* Сховати основне меню на малих екранах */
@media (max-width: 768px) {
  .nav ul {
      display: none;
  }
  .menu-toggle {
      display: flex;
  }
  .logo img{
    height: 70px;
  }
}
/* --- Слайдер --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 302%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FAF2E2;
}

.slide:nth-child(1) { background-image: url('../img/slide1.jpg'); }
.slide:nth-child(2) { background-image: url('../img/slide2.jpg'); }
.slide:nth-child(3) { background-image: url('../img/slide3.jpg'); }

.slide-text h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.slide-text p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    opacity: 0.5;
}

.prev { left: 20px; }
.next { right: 20px; }

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
}

.dot.active { opacity: 1; }

/* --- Про нас (O NAS) --- */
.about-section {
    padding: 40px 20px;
    background-color: #f7f3e6;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    flex-wrap: wrap;
}
.about-content h2{
  font-size: 30px;
  margin-bottom: 30px;
}
.about-content p {
  font-size: 20px;
}
.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

.about-content {
    flex: 1;
    text-align: left;
    margin-left: 100px;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

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

/* --- Особливості (CO NAS WYRÓŻNIA?) --- */
/* --- Особливості (CO NAS WYRÓŻNIA?) --- */
.full-width-block{
  background-image: url('../img/fon_wyg2.jpg');
  background-size: cover;
  width: 100%;
  height: 200px;
}
.features-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-image: url('../img/fon_wyr.jpg');
  background-size: cover;
  color: #FAF2E2;
  width: 100%;
}

.features-blok{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  width: 100%;
  gap: 100px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.features-content-linii{
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  margin-left: 50px;
}

.features-linii {
  width: auto;
  height: 100%;
  max-height: 100%;
}

.features-content{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.features-content h3{
  font-size: 30px;
}
.features-content p{
  font-size: 23px;
}
.features-title{
  font-size: 50px;
  margin-bottom: 75px;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 200px;
  width: 100%;
  max-width: 1200px;
  justify-content: center;
}

.feature-item {
  display: flex;
  text-align: left;
  gap: 20px;
}

.feature-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
}
/* Секція послуг */
.services-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f2e0;
  padding: 0 0 0 40px;
}

.services-container {
  display: flex;
  gap: 40px;
  flex: 2;
}
.services-container-phone{
  display: none;
}

.service-box {
  background-color: #d3d3b8;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  flex: 1;
  margin-left: 50px;
}

.service-icon {
  width: 140px;
  height: auto;
}

.service-title {
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 13px;
}

.service-list {
  font-size: 21px;
  list-style-type: disc;
  text-align: left;
  padding-left: 50px;
}

.service-note {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
}

.services-image {
  max-width: 30%;
  height: 800px;
  display: flex;
  align-items: right;
  background-size: cover;
  margin-left: 100px;
}

.services-bg {
  width: 250px;
  height: 100%;
  max-height: 100%;
}

/* Стилі для секції галереї */
.gallery-section {
  text-align: center;
  background-color: #FAF2E2;
}
.div-gallery-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  background-image: url('../img/galeriafon.png');
  background-size: cover;
  color: #FAF2E2;
  height: 180px;
}
.gallery-title {
  font-size: 40px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 30px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* Стилі для модального вікна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  transform: scale(1.4); /* Робить фото більшим */
  transition: transform 0.3s ease-in-out;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}
/* Facebook Section Styles */
.facebook-section {
  background: #27291E;
  display: flex;
  justify-content: center;
  align-items: center;
}

.facebook-container {
  display: flex;
  align-items: center;
  max-width: 1800px;
  width: 100%;
  background: #27291E;
  border-radius: 10px;
}
.facebook-container-phone{
  display: none;
}
.facebook-image img {
  width: 100%;
  max-width: 650px;
  margin-left: 8vw;
}

.facebook-content {
  color: #FAF2E2;
  text-align: left;
  max-width: 400px;
  margin-left: 4vw;
}

.facebook-content h2 {
  font-size: 38px;
  margin-bottom: 40px;
  margin-top: 29px;
}

.facebook-content p {
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.facebook-link img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
  margin-left: 300px;
}

.facebook-link img:hover {
  transform: scale(1.1);
}
.facebook-line{
  height: 100px;
  width: 100%;
  background-color: #FAF2E2;
}

/* Responsive */
@media (max-width: 768px) {
  .facebook-container {
      flex-direction: column;
      text-align: center;
      gap: 20px;
  }

  .facebook-content {
      text-align: center;
  }
}

/* Секція контактної форми */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('../img/contact-fon.jpg') center center/cover;
  padding: 50px;
}


.contact-container {
  padding-top: 0;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  position: relative;
}

.contact-container h2 {
  font-size: 28px;
  margin-bottom: 5px;
}

.contact-title {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 30px;
  text-shadow:1px 1px 1px rgba(0, 0, 0, 0.5);
}

.form-group {
  display: flex;
  justify-content: space-between;
  gap: 100px;
}

.input-container {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

label {
  font-size: 20px;
  margin-bottom: 5px;
  margin-top: 70px;
  font-weight: bold;
}

input, textarea {
  padding: 10px;
  border: none;
  border-bottom: 2px solid black;
  background: transparent;
  font-size: 18px;
  outline: none;
  font-family: inherit;
  text-align: left;
}

textarea {
  height: 150px;
  resize: none;
}
.arrow{
  margin-left: 10px;
  width: 60px;
  height: 20px;
  margin-top: 5px;
}
.wyslij-img{
  height: 40px;
  margin-top: 12px;
}
.wyslij{
  text-shadow:5px 5px 15px rgba(0, 0, 0, 0.5);
  font-size: 27px;
  font-family: "Gotu", serif;
}
.submit-btn {
  background: #2d2f1f;
  color: white;
  border: none;
  padding:20px 30px;
  font-size: 25px;
  cursor: pointer;
  border-radius: 20px;
  margin-top: 20px;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  position: absolute;
  right: -250px;
  bottom: 50px;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #1b1c12;
  
}
/* Стилі для футера */
.footer {
  background: #1a1a12;
  padding: 40px 0;
  color: #d5cfbe;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap:100px;
}

.footer-logo img {
  width: 250px;
}

.footer-menu {
  margin-top: 30px;
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-column a {
  color: #d5cfbe;
  text-decoration: none;
  font-size: 22px;
  transition: color 0.3s ease;
}
.footer-column h2 {
  color: #d5cfbe;
  text-decoration: none;
  font-size: 20px;
}
.footer-column a:hover {
  color: #f1e9d2;
}
.footer-tel{
  font-size: 25px;
}
/* Адаптація для мобільних */

@media (max-width: 768px) {
  .logo{
    margin-left: -40px;
    margin-top: 10px;
  }
  .slide-text h1{
    font-size: 2rem;
    max-width: 350px;
  }
  .slide-text p {
    font-size: 1.3rem;
    margin-left: 20px;
}
  .prev{
    left: 5px;
  }
  .next{
    right: 5px;
  }
  .footer-container {
      flex-direction: column;
      align-items: center;
  }
  .footer-menu {
      flex-direction: column;
      gap: 20px;
      align-items: center;
  }
  .footer-column {
      align-items: center;
  }
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 1024px) {
  .gallery-container {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-container {
      grid-template-columns: repeat(1, 1fr);
  }
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 1024px) {
  .services-section {
      align-items: center;
  }
  
  .services-container {
      flex-direction: column;
      gap: 20px;
  }
  
  .services-image {
      max-width: 100%;
      margin-top: 20px;
  }
}

/* --- Медіа-запити для мобільних пристроїв --- */
@media (max-width: 768px) {
    .features-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .features-linii{
      display: none;
    }
}
/* --- Адаптація під телефон (max-width: 768px) --- */
@media (max-width: 768px) {
  .floating-profile{
    right: 20px;
    bottom: 20px;
  }
  /* Секція "Про нас" (About Section) */
  .about-container {
      flex-direction: column;
      text-align: center;
  }
  .about-image img {
      width: 100%;
      height: auto;
  }
  .about-content {
      padding: 20px;
      margin-left: 0;
  }
  .about-stats {
      flex-direction: column;
  }

  /* Особливості (Features Section) */
  .full-width-block{
    background-image: url('../img/fon_wyg2.jpg');
    background-size: cover;
    background-position: right;
    width: 100%;
    height: 100px;
  }
  .features-content{
    padding: 20px;
    padding-bottom: 50px;
  }
  .features-title{
    margin-top: 50px;
  }
  .features-blok {
      flex-direction: column;
      align-items: center;
  }
  .features-content-linii {
      display: none;
  }
  .features-container {
      grid-template-columns: 1fr;
  }
  /* Секція "Послуги" (Services Section) */
  .services-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    overflow: hidden;
}
  .services-container-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}
.service-box {
    width: 90%;
    max-width: 400px;
    margin: 50px 0;
}
.box1{
  margin-bottom: 0;
}
  .services-container {
      flex-direction: column;
      display: none;
  }
  .services-image{
      display: none;
  }

  /* Галерея (Gallery Section) */
  .div-gallery-title{
    background: #27291E;
  }
  .gallery-container {
      grid-template-columns: repeat(2, 1fr);
      margin: 20px;
  }

  /* Facebook Section */
  .facebook-line{
    display: none;
  }
  .facebook-container {
      display: none;
  }
  .facebook-content h2 {
    font-size: 30px;
}
.facebook-content p {
  font-size: 18px;
}
  .facebook-container-phone{
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .facebook-image img {
    height: 300px;
    width: 500px;
      margin-left: 0;
  }
  .facebook-content {
      padding: 20px;
      margin-left: 50px;
  }
  .facebook-link img {
    margin-left: 250px;
}
  
  /* Форма контакту (Contact Section) */
  .contact-container {
      padding: 20px;
  }
  .contact-title{
    text-shadow:1px 1px 1px rgba(0, 0, 0, 0.5);
  }
  .form-group {
      flex-direction: column;
      gap: 0;
  }
  .input-container {
      width: 100%;
  }
  .submit-btn {
      width: 100%;
      text-align: center;
      position: static;
  }
  
  /* Футер (Footer) */
  .footer-container {
      flex-direction: column;
      text-align: center;
      gap: 20px;

  }
  .footer-menu {
      flex-direction: column;
      gap: 10px;
  }
}