@keyframes shake-rotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(4deg);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



body {
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
  background-color: #fffaf4;
  color: #3d2c1e;
}

header {
  background-color: #5a3e2b;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

.logo span {
  margin-left: 10px;
}

nav {
  position: relative;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 22px;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 4px;
  background-color: white;
  border-radius: 2px;
}

.nav-links a {
  display: inline-block;
  min-width: 80px;
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
  text-align: center; 
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #ffdd99;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #ffdd99;
  /* font-weight: 700; */
}

.nav-links a:hover::after {
  width: 100%;
}

/* Хрестик (закриття меню), спочатку схований */
.menu-close {
  /* убираємо display:none; */
  font-size: 3rem;
  color: white;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1102;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Мобільна версія */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(90, 62, 43, 0.96);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 1000;
    overflow: hidden;
  }

  /* Ефект кристалів: світлова лінія */
  .nav-links::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.05) 100%
    );
    transform: rotate(0deg);
    animation: shineMove 4s linear infinite;
    pointer-events: none;
    z-index: 0;
  }

  @keyframes shineMove {
    0% {
      transform: translate(-100%, -100%) rotate(25deg);
    }
    100% {
      transform: translate(100%, 100%) rotate(25deg);
    }
  }

  .nav-links.active {
    display: flex;
  }

  .menu-close {
    font-size: 3rem;
    color: white;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1102;
    -webkit-user-select: none;
    user-select: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.9);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }
  .menu-close:hover {
    color: #ffdd99;
  }

  .nav-links.active .menu-close {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .menu-toggle {
    display: flex;
    z-index: 1101;
  }

  .nav-links a {
    margin: 0;
    font-size: 1.8rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 15px 0;
    z-index: 1;
  }
}




.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #fff8f0, #fbe9dd);
}

.hero-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 0px;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 20px auto;
}

.hero .hero-images img {
  max-width: 100%;
  max-height: 40vh;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  margin-top: 30px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero .hero-images img:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 16px rgba(112, 76, 44, 0.4);
}

@media (max-width: 768px) {
  .hero .hero-images img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 16px rgba(112, 76, 44, 0.4);
  }
}

.modal {
  display: none; /* ховаємо за замовчуванням */
  position: fixed;
  z-index: 1000; /* поверх всього */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8); /* затемнений фон */
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.1s ease;
}

.modal-content {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 10px; /* без заокруглень */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.3s ease;
  cursor: default;
}

.modal-content:hover {
  box-shadow: 0 10px 40px rgba(112, 76, 44, 0.3) /* світла тінь при наведенні */
}

.close {
  position: fixed;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  z-index: 1100;
  transition: color 0.3s ease;
}

.close:hover {
  color: #bbb;
}


.features {
  padding: 50px 20px;
  background-color: #f4eee7;
  text-align: center;
}

.features h2 {
  font-size: 2.2em;
  margin-bottom: 30px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background-color: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  max-width: 300px;
  text-align: left;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(112, 76, 44, 0.4);
  transform: scale(1.05);

}

.card h3 {
  margin-top: 0;
  color: #704c2c;
}

.card p {
  font-size: 1em;
  line-height: 1.6;
}

.osta-nyt {
  position: relative;
  height: 400px;
  background-image: url('https://images.unsplash.com/photo-1739869451056-a8cf6d396452?q=80&w=2574&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); /* заміни на свою фонову картинку */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* фіксована, нерухома */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  /* border-radius: 20px; */
  /* margin: 50px 20px; */
  margin: 0px 0px;
  overflow: hidden;
}

.osta-nyt .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* затемнення */
  display: flex;
  justify-content: center;
  align-items: center;
  /* border-radius: 20px; */
  padding: 20px;
}

.osta-nyt .content {
  position: relative;
  z-index: 2;
}

.osta-nyt h2 {
  font-size: 2.8em;
  margin-bottom: 0.3em;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  transition: font-size 0.3s ease;
}

.osta-nyt h2:hover {
  font-size: 3em;
  animation: shake-rotate 0.5s ease-in-out;
}

.osta-nyt p {
  font-size: 1.3em;
  margin-bottom: 1em;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.osta-nyt img {
  width: 8vh;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.7));
}


footer {
  background-color: #5a3e2b;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.95em;
}

.nav-links-reg a {
  display: inline-block;
  min-width: 80px;
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
  text-align: center; 
}

.nav-links-reg a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #ffdd99;
  transition: width 0.3s ease;
}

.nav-links-reg a:hover {
  color: #ffdd99;
  /* font-weight: 700; */
}

.nav-links-reg a:hover::after {
  width: 100%;
}