/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #F8F7F2;
  color: #1A1A1A;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 80px 20px;
}

/* SECTIONS */
.section.light {
  background: #ffffff;
}

.section h2 {
  margin-bottom: 40px;
}

/* HERO */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
}

.hero {
  position: relative;
  height: 100vh;
  background-image: url('images/head_image.webp');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 8% calc(25vh - 100px);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 600px;
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
  white-space: nowrap;
}

.subtitle {
  margin-top: 14px;
  color: #ddd;
  font-size: clamp(15px, 1.8vw, 20px);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-desc {
  margin-top: 20px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
  .hero {
	  justify-content: center;
	  padding: 0 20px calc(25vh - 100px);
	}

	.hero-content {
		text-align: center;
	}
	
	.hero-content h1 {
		white-space: normal;
		font-size: 32px;
	}
	
	.subtitle {
		white-space: normal;
		font-size: 13px;
		letter-spacing: 1px;
	}
}

/* SOCIALS */
.socials {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.socials a {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.socials a:hover {
  background: rgba(255,255,255,0.1);
}

.socials-cta {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  padding: 10px 18px !important;
  border-radius: 30px !important;
  font-size: 13px !important;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.socials-cta:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

@media (max-width: 768px) {
  .socials {
    justify-content: center;
  }
}

/* ABOUT */
.about-box {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  line-height: 1.8;
}

.about-box ul {
  margin-top: 20px;
  padding-left: 20px;
}

.about-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  width: 360px;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 14px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
  }

  .about-image {
    width: 100%;
    height: 75vw;
    object-fit: cover;
    object-position: center 35%;
  }
}

/* GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* CARDS */
.card {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* ZAPYT (горизонтальні плитки) */
.center {
  text-align: center;
  margin-bottom: 40px;
}

.zapyt-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zapyt-card {
  background: #fff;
  padding: 28px 32px;
  border-radius: 14px;
  border-left: 4px solid #4A7C59;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.zapyt-card:hover {
  ttransform: translateY(-4px);
   box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-left-color: #2F5D50;
}

.zapyt-icon {
  font-size: 32px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 4px;
}

.zapyt-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #1A1A1A;
}

.zapyt-body p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.zapyt-icon svg {
  display: block;
}

/* послуги (горизонтальні плитки) */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card .btn {
  margin-top: 12px;
}

.service-card .price {
  margin-top: auto;
  padding-top: 20px;
  color: #4A7C59;
}

.service-card .type {
  color: #4A7C59;
  font-size: 14px;
  margin-bottom: 15px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.service-icon {
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.service-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #555;
}

.price {
  font-weight: 500;
  margin: 20px 0;
  color: #4A7C59;
}

/* MOBILE */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== ЦИФРИ ===== */

.stats_container {
  padding: 40px 20px;
}

.stats-section {
  background: #F3F1EC;
  padding: 40px 0;
}

.stats-title {
  font-size: 12px;
  letter-spacing: 2px;
  color: #A3A3A3;
  margin-bottom: 40px;
}

.stats-row {
  display: flex;
  gap: 20px;
}

/* CARD */
.stat-card {
  flex: 1;
  background: #ffffff;
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;

  border: 1px solid #E7E4DD;

  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* subtle glow */
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(74,124,89,0.08), transparent);
  opacity: 0;
  transition: 0.4s;
}

/* hover */
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.stat-card:hover::before {
  opacity: 1;
}

/* NUMBER */
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: #2F5D50;
  margin-bottom: 10px;
}

/* DESCRIPTION */
.stat-desc {
  font-size: 13px;
  color: #7A7A7A;
  line-height: 1.5;
}

/* MOBILE */
@media (max-width: 768px) {
  .stats-row {
    flex-direction: column;
  }
}


/* TESTIMONIALS */
.testimonial {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  border-top: 3px solid #4A7C59; /* змінили з лівої на верхню смужку */
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: none;
  height: 240px; /* фіксована висота */
  overflow: hidden;
  box-sizing: border-box;
}

.testimonials-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial.visible {
  display: flex;
  flex-direction: column;
}

.testimonial strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 6px;
}

.testimonial-role {
  color: #4A7C59;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.testimonial-text {
  font-style: italic;
  color: #555;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.testimonials-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A7C59;
  transition: 0.3s;
}

.testimonials-arrow:hover {
  background: #4A7C59;
  color: #fff;
  border-color: #4A7C59;
}

.testimonials-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 456px; /* 220px * 2 плитки + 16px gap */
}

@media (max-width: 1100px) {
  .testimonial {
    height: 270px;
  }
  .testimonials-wrapper {
    min-height: 556px; /* 270*2 + 16 */
  }
}

@media (max-width: 768px) {
    .testimonial {
    height: 300px;
  }
  
  .testimonials-wrapper {
    min-height: 300px;
  }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.testimonial.animate-right {
  animation: slideInRight 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.testimonial.animate-left {
  animation: slideInLeft 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}


/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 26px;
  background: #4A7C59;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #3a6548;
  transform: translateY(-2px);
}

/* CTA */
.cta-section {
  background: #F8F7F2;
  border-top: 1px solid #E5E0D8;
}

.cta-label {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #4A7C59;
  font-weight: 500;
  margin-bottom: 16px;
}

.cta-desc {
  max-width: 520px;
  margin: 20px auto 0;
  font-size: 16px;
  color: #555;
  line-height: 1.75;
}

/* FOOTER */
.footer {
  background: #1A1A1A;
  padding: 28px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #fff;
  font-weight: 500;
}

.footer-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.footer-socials a:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

.footer-copy {
  font-size: 12px;
  color: #666;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* SCROLLBAR (optional красиво) */
::-webkit-scrollbar {
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* MOBILE */
@media (max-width: 768px) {

  .hero {
    height: 90vh;
  }

  h1 {
    font-size: 28px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .container {
    padding: 60px 20px;
  }

  .testimonial {
    min-width: 260px;
  }
}