/* Загальні стилі */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Philosopher", serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.phonr {
   top: 56px; 
   left: 2106px; 
   width: 169px; 
   height: auto;
  
}

/* Розширені анімації */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rotateIn {
  from {
    transform: rotate(-10deg);
    opacity: 0;
  }
  to {
    transform: rotate(0);
    opacity: 1;
  }
}

/* Шапка */
header {
  background-color: rgba(44, 62, 80, 0.9);
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

header.scrolled {
  background-color: rgba(44, 62, 80, 1);
  padding: 0.5rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1001;
}

.logo:hover {
    color: #3498db;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}


nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #3498db;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav ul li a:hover {
  color: #3498db;
}

nav ul li a:hover::after {
  transform: scaleX(1);
}

/* Головна секція */
#home {
  background: url("hero-img-header.PNG")
    no-repeat center center / cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding-top: 60px;
}

#home h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: slideInFromBottom 1s ease-out;
}

#home p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: slideInFromBottom 1s ease-out 0.3s both;
}

.cta-button {
  display: inline-block;
  background-color: #e74c3c;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  animation: scaleIn 0.5s ease-out 1s both;
}

.cta-button:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Секції */
section {
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #3498db;
  margin: 1rem auto 0;
}

/* Стилі для сторінки "Про нас" */
.about-hero {
  background-image: url("images/4.jpg");
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.about-hero .container {
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-hero p {
  font-size: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.about-content {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #34495e;
  margin-bottom: 1rem;
}

.mission,
.values {
  background-color: #f9f9f9;
  padding: 4rem 0;
}

.mission h2,
.values h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.mission p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #34495e;
}

.values-list {
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.values-list li {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  color: #34495e;
}

.values-list li i {
  margin-right: 1rem;
  color: #3498db;
  font-size: 1.5rem;
}

.team {
  padding: 4rem 0;
}

.team h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.team-member p {
  font-size: 1rem;
  color: #7f8c8d;
}

/* Анімації для елементів, що з'являються при прокручуванні */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Додаємо стилі для секції "Слідкуй за нами" */
.follow-us {
  background-color: #f9f9f9;
  padding: 4rem 0;
  text-align: center;
}

.follow-us h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.follow-us p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #34495e;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #3498db;
  color: #fff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

/* Анімація для іконок соціальних мереж */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.social-icon:hover i {
  animation: bounce 0.5s ease infinite;
}

/* Медіа-запит для адаптивності на малих екранах */
@media (max-width: 768px) {
  .social-icons {
    flex-wrap: wrap;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Забезпечуємо, щоб секція "Слідкуй за нами" не перекривалася з іншим контентом */
main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.follow-us {
  margin-top: auto;
}

footer {
  margin-top: 0;
}



/* Медіа-запити для адаптивності */
@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2.5rem;
  }

  .about-hero p {
    font-size: 1.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    margin-bottom: 2rem;
  }

  .values-list {
    grid-template-columns: 1fr;
  }

  .team-members {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}


/* Стилі для секції "Наші послуги" */
#services {
  background-color: #f9f9f9;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

#services::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

#services::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.2) 0%, rgba(46, 204, 113, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

#services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.service-item {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0) 70%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-item:hover::before {
  transform: scale(1);
}

.service-icon {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.1);
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.service-item p {
  font-size: 1rem;
  color: #34495e;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-service {
  display: inline-block;
  background-color: #3498db;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-weight: bold;
}

.btn-service:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Секція "Галерея" */
#gallery {
  background-color: #fff;
}

.gallery-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;
  position: relative;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 1rem;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.slide:hover .slide-content {
  transform: translateY(0);
}

.slide-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.slide-content p {
  margin: 0 0 1rem;
}

.btn-details {
  display: inline-block;
  background-color: #3498db;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-details:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: 0;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.slider-btn.next {
  right: 0;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

/* Стилі для секції "Відгуки" */
#reviews {
  background-color: #f9f9f9;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

#reviews h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.review {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.review h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.review .stars {
  color: #f1c40f;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.review p {
  font-size: 1rem;
  color: #34495e;
  line-height: 1.6;
}

.review-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.review-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
}

.review-form .form-group {
  margin-bottom: 1.5rem;
}

.review-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #2c3e50;
}

.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
  border-color: #3498db;
  outline: none;
}

.review-form textarea {
  height: 150px;
  resize: vertical;
}

.star-rating {
  display: inline-block;
  direction: rtl;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  color: #ddd;
  font-size: 2rem;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
  color: #f1c40f;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #2980b9;
}

/* Анімація для нових відгуків */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.new-review {
  animation: fadeInUp 0.5s ease-out;
}


/* Секція "Контакти" */
#contact {
  background-color: #fff;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

#contact-form textarea {
  min-height: 150px;
}

#contact-form button {
  background-color: #2c3e50;
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
  font-weight: bold;
}

#contact-form button:hover {
  background-color: #34495e;
  transform: translateY(-3px);
}

/* Підвал */
footer {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
}

footer p {
  font-size: 1rem;
  animation: fadeIn 1s ease-out;
}

/* Залишити відгук */

/* Секція "Залишити відгук" */
#reviews {
  padding: 4rem 0;
  background-color: #fff;
}

#reviews h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review {
  background-color: #f9f9f9;
  border-radius: 5px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.review h3 {
  margin-bottom: 0.5rem;
}

.stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.review p {
  font-style: italic;
}

.add-review {
  margin-top: 2rem;
  background-color: #f9f9f9;
  border-radius: 5px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-review h3 {
  margin-bottom: 1rem;
}

#review-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#review-form input,
#review-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#review-form button {
  background-color: #640a0a; 
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
    /* Була зміна кольора bg-color */
}

#review-form button:hover {
  background-color: #115516;
}

/* Анімація для нового відгуку */
@keyframes slideInFromTop {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.review.new-review {
  animation: slideInFromTop 0.5s ease-out forwards;
}

/* Секція "Відгуки" */
/* Стилі для секції "Відгуки" */
#reviews {
  background-color: #f9f9f9;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

#reviews h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.review {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.review h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.review .stars {
  color: #f1c40f;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.review p {
  font-size: 1rem;
  color: #34495e;
  line-height: 1.6;
}

.review-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.review-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
}

.review-form .form-group {
  margin-bottom: 1.5rem;
}

.review-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #2c3e50;
}

.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
  border-color: #3498db;
  outline: none;
}

.review-form textarea {
  height: 150px;
  resize: vertical;
}

.star-rating {
  display: inline-block;
  direction: rtl;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  color: #ddd;
  font-size: 2rem;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
  color: #f1c40f;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #2980b9;
}

/* Анімація для нових відгуків */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.new-review {
  animation: fadeInUp 0.5s ease-out;
}


/* Стилі для секції "Біологія бані" */
#biology {
  background-color: #f9f9f9;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

#biology::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

#biology h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  position: relative;
  z-index: 1;
}

.biology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.biology-item {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.biology-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.biology-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.biology-item:hover img {
  transform: scale(1.1);
}

.biology-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.biology-item p {
  font-size: 1rem;
  color: #34495e;
  line-height: 1.6;
}

.biology-info {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.biology-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.biology-info p {
  font-size: 1.1rem;
  color: #34495e;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.btn-more {
  background-color: #3498db;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-more:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

.biology-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.5);
}

.biology-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  position: relative;
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #2c3e50;
}

.biology-modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.biology-modal-content p {
  font-size: 1rem;
  color: #34495e;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.biology-modal-content ul {
  list-style-type: none;
  padding-left: 0;
}

.biology-modal-content li {
  font-size: 1rem;
  color: #34495e;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.biology-modal-content li::before {
  content: "•";
  color: #3498db;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0;
}

@media (max-width: 768px) {
  .biology-grid {
    grid-template-columns: 1fr;
  }

  .biology-modal-content {
    margin: 20% auto;
    padding: 1.5rem;
  }
}



/* Медіа-запити для адаптивності */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  nav ul {
    margin-top: 1rem;
  }

  #home h1 {
    font-size: 2.5rem;
  }

  #home p {
    font-size: 1.2rem;
  }

  .service-item,
  .review {
    padding: 1.5rem;
  }

  .slider-btn {
    font-size: 1.2rem;
    padding: 0.8rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  #home h1 {
    font-size: 2rem;
  }

  #home p {
    font-size: 1rem;
  }

  .service-item h3,
  .review h3 {
    font-size: 1.2rem;
  }

  .slider-btn {
    font-size: 1rem;
    padding: 0.6rem;
  }

  #contact-form button {
    padding: 0.75rem 1rem;
  }
}

/* Додаємо стилі для повідомлень про відгуки */
.review-message {
  animation: slideInRight 0.3s ease;
}

.review-message.success {
  background-color: #27ae60 !important;
}

.review-message.error {
  background-color: #e74c3c !important;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Стилі для динамічних відгуків */
.dynamic-review {
  border-left: 4px solid #3498db;
  position: relative;
}

.dynamic-review::before {
  content: "Новий";
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #3498db;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Анімація для нових відгуків */
.new-review {
  animation: newReviewAnimation 0.5s ease;
}

@keyframes newReviewAnimation {
  0% {
    transform: scale(0.9);
    opacity: 0;
    background-color: #e8f6f3;
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    background-color: white;
  }
}

/* ======= ФУТЕР ======= */
.footer-wave {
  height: 50px;
  background-color: #f8f9fa;
  position: relative;
}

.footer-wave::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: #2c3e50;
  clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
}

footer {
  background-color: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: calc(var(--column-index, 0) * 0.2s);
}

.footer-column:nth-child(1) {
  --column-index: 1;
}
.footer-column:nth-child(2) {
  --column-index: 2;
}
.footer-column:nth-child(3) {
  --column-index: 3;
}
.footer-column:nth-child(4) {
  --column-index: 4;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: white;
  position: relative;
  padding-bottom: 15px;
  font-weight: 600;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #3498db, #9b59b6);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.footer-column:hover h3::after {
  width: 100px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
  transform: translateX(-20px);
  opacity: 0;
  animation: slideInRight 0.5s ease forwards;
  animation-delay: calc(var(--item-index, 0) * 0.1s + 0.5s);
}

.footer-links li:nth-child(1) {
  --item-index: 1;
}
.footer-links li:nth-child(2) {
  --item-index: 2;
}
.footer-links li:nth-child(3) {
  --item-index: 3;
}
.footer-links li:nth-child(4) {
  --item-index: 4;
}
.footer-links li:nth-child(5) {
  --item-index: 5;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #3498db;
}

.footer-contact p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  color: #bdc3c7;
}

.footer-contact i {
  margin-right: 0.5rem;
  color: #3498db;
  min-width: 20px;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #34495e;
  color: white;
  transition: background-color 0.3s ease;
}

.footer-social a:hover {
  background-color: #3498db;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #34495e;
  text-align: center;
  grid-column: 1 / -1;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1s;
}

.footer-bottom p {
  margin: 0;
  color: #bdc3c7;
  font-size: 0.9rem;
}
