/* About Page Hero (Про BavoTazh) */
.about-hero-section {
  overflow: hidden;
  margin: 0;
  background: #F4EFE6;
  padding-top: 125px;
}

#contact-page .about-hero-section,
#delivery-page .about-hero-section {
  padding-top: 0px;
}

.about-hero-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

#contact-page .about-hero-wrapper,
#delivery-page .about-hero-wrapper {
  padding-bottom: 24px;
}

.about-hero-wrapper .breadcrumb.about-hero-breadcrumb {
  padding: 0 !important;
}

.about-hero-wrapper__main {
  flex: 1;
  max-width: 580px;
  gap: 40px;
  display: flex;
  flex-direction: column;
  padding-top: 50px;
}

.about-hero-breadcrumb {
  width: 100%;
  margin: 0 0 10px;
}

.about-hero-content {
  flex: 1;
}

.about-hero-title {
  margin: 0 0 30px;
  padding: 0;
  color: #000;
  leading-trim: both;
  text-edge: cap;
  font-family: "KyivType";
  font-size: 60px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.about-hero-paragraph {
  color: #000;
  leading-trim: both;
  text-edge: cap;
  font-family: Gilroy;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.about-hero-paragraph:last-child {
  margin-bottom: 0;
}

.about-hero-image {
  flex: 1;
  align-self: stretch;
  /* Виходимо за правий край контейнера до краю екрана */
  margin-right: calc(-1 * (100vw - 1170px) / 2 - 15px);
}

.about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

#contact-page .about-hero-img,
#delivery-page .about-hero-img {
  max-height: 550px;
}

@media (max-width: 1200px) {
  .about-hero-section {
    padding: 80px 0 0;
  }
  .about-hero-wrapper {
    flex-direction: column-reverse;
    gap: 30px;
    min-height: unset;
  }
  .about-hero-wrapper__main {
    padding-top: 0;
    max-width: 100%;
  }
  .about-hero-image {
    align-self: auto;
    margin-right: -15px;
    margin-left: -15px;
    width: calc(100% + 30px);
  }
  .about-hero-title {
    font-size: 42px;
  }
  .about-hero-img {
    min-height: unset;
    height: 380px;
  }
}

@media (max-width: 768px) {
  .about-hero-section {
    padding: 60px 0 0;
  }
  .about-hero-title {
    font-size: 30px;
    margin-bottom: 16px;
  }
  .about-hero-paragraph {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 16px;
  }
  .about-hero-img {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .about-hero-section {
    padding: 50px 0 0;
  }
  .about-hero-title {
    font-size: 26px;
    margin-bottom: 14px;
  }
  .about-hero-paragraph {
    font-size: 14px;
    line-height: 22px;
    padding-bottom: 30px;
  }
  .about-hero-img {
    height: 220px;
  }
}

/* About Section Styles */
.about-section {
  padding: 130px 0;
}

.about-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.about-title {
  color: #000;
  font-family: "KyivType";
  font-size: 54px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0px;
  padding: 0px;
  margin-bottom: 30px;
}

.about-images {
  max-width: calc(50% - 90px);
  width: 100%;
}

.about-content {
  max-width: calc(50% - -60px);
}

.about-text {
  margin-bottom: 50px;
}

.about-paragraph {
  color: #000;
  font-family: Gilroy;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 60px;
  line-height: 28px;
}

.about-stats {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.stat-item {
  text-align: left;
}

.stat-number {
  color: #A2947A;
  font-family: "Gilroy";
  font-size: 52px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 16px;
}

.stat-label {
  color: #A2947A;
  font-family: Gilroy;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.stat-sub-label {
  font-family: "Gilroy", sans-serif;
  font-size: 14px;
  color: #2c2c2c;
  line-height: 1.4;
}

.about-images {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 20px;
}

.about-main-image {
  width: 100%;
  max-width: 480px;
  height: 340px;
  overflow: hidden;
}

.about-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  max-width: 100%;
}

.about-main-img:hover {
  transform: scale(1.05);
}

.about-gallery {
  display: flex;
  gap: 20px;
}

.about-gallery-item {
  width: 147px;
  height: 100px;
  overflow: hidden;
}

.about-gallery-img {
  width: 150px;
  height: 104px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-gallery-img:hover {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .about-wrapper {
    gap: 30px;
    flex-direction: column-reverse;
  }
  
  .about-title {
    font-size: 42px;
  }
  
  .about-stats {
    gap: 18px;
  }

  .about-main-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }

  .about-images {
    max-width: 100%;
  }

  .about-main-img:hover {
    transform: scale(1);
  }

  .about-gallery {
    width: 100%;
  }

  .about-gallery-item {
    width: 100%;
    height: auto;
 }

 .about-content {
   max-width: 100%;
 }

 .about-paragraph {
  margin-bottom: 40px;
 }

 .about-gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
 }

}


.about-stats-mob {
  display: none;
}

@media (max-width: 992px) {

  .about-paragraph {
    margin-bottom: 0px;
  }

  .about-text {
    margin-bottom: 0px;
  }

  .about-stats {
    display: none;
  }

  .about-stats-mob {
    display: flex;
    width: 100%;
  }

  .about-main-img {
    width: 100%;
    height: 240px;
  }

  .about-section {
    padding: 60px 0;
  }
  
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-images {
    order: -1;
  }
  
  .about-gallery-item {
    height: 170px;
  }
  
  .about-title {
    font-size: 30px;
  }
  
  .about-stats {
    gap: 16px;
  }

  .about-paragraph {
    font-size: 16px;
  }

  .stat-number {
    font-size: 40px;
    margin-bottom: 5px;
  }

  .stat-label {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 40px 0;
  }
  
  .about-title {
    font-size: 28px;
  }
  
  .about-paragraph {
    font-size: 15px;
  }
  
  .stat-number {
    font-size: 40px;
  }
  
  .stat-label {
    font-size: 16px;
  }
  .stat-item {
    text-align: left;
  }

  .about-stats {
    flex-wrap: wrap;
  }

  .about-gallery-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  
  .about-gallery-item {
    height: 170px;
    object-fit: cover;
  }
}
