/* ═══════════════════════════════════════════════
   home.css — головна сторінка
═══════════════════════════════════════════════ */

.homepage-wrapper {
  display: block;
}

/* ═══════════════════════════════════════════════
   HERO БЛОК
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(0, 28, 33, 0.72) 0%,
    rgba(18, 70, 81, 0.55) 50%,
    rgba(93, 44, 52, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding: 140px 32px 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__pre {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__sub {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.8vw, 19px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.hero__btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 4px;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.18s;
  letter-spacing: 0.5px;
}
.hero__btn:hover {
  transform: translateY(-2px);
}

.hero__btn--primary {
  background: #1a7a7a;
  color: #fff;
  border: 2px solid #1a7a7a;
}
.hero__btn--primary:hover {
  background: #145f5f;
  border-color: #145f5f;
}

.hero__btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.hero__btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Знаки довіри */
.hero__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.hero__badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 5px 14px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.3px;
}

/* Хвиля знизу */
.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 4;
  line-height: 0;
}
.hero__wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ═══════════════════════════════════════════════
   ЧОМУ ОБИРАЮТЬ НАС
═══════════════════════════════════════════════ */
.whyus {
  background: #fff;
  padding: 90px 32px 80px;
}

.whyus__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

/* Заголовок секції */
.whyus__head {
  text-align: center;
  max-width: 620px;
}
.whyus__head .whyus__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1a7a7a;
  margin: 0 0 12px;
}
.whyus__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: #124651;
  margin: 0 0 16px;
  line-height: 1.2;
}
.whyus__desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

/* ── Лічильники ── */
.whyus__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  width: 100%;
}

.whyus__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px 32px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4fafa 0%, #edf5f5 100%);
  border: 1px solid rgba(26, 122, 122, 0.12);
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}
.whyus__stat:hover {
  box-shadow: 0 12px 32px rgba(26, 122, 122, 0.15);
  transform: translateY(-4px);
}

.whyus__icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}

.whyus__num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 800;
  color: #124651;
  line-height: 1;
}

.whyus__plus {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a7a7a;
  height: 22px;
  line-height: 1;
  margin-top: 2px;
}

.whyus__label-s {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #4a6b6e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
  line-height: 1.4;
}

/* ── Картки переваг ── */
.whyus__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.whyus__card {
  padding: 32px 24px;
  border-radius: 10px;
  border: 1px solid #e6eeee;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.whyus__card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
  border-color: #1a7a7a;
}

.whyus__card-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}

.whyus__card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #124651;
  margin: 0 0 10px;
  line-height: 1.3;
}

.whyus__card p {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #5a7a7d;
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   СТАРИЙ INTRO (залишаємо для сумісності)
═══════════════════════════════════════════════ */
.intro {
  position: relative;
  width: 100%;
  height: 810px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.intro img {
  position: absolute;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  overflow: clip;
}
.intro-info {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translate(-50%);
  z-index: 2;
  width: 60%;
  min-width: 900px;
  height: 175px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 18px #000000;
  backdrop-filter: blur(5.5px);
  background: rgba(255, 255, 255, 0.71);
}
.intro .intro-info .info-title h1 {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-size: 38px;
  line-height: 46px;
  text-align: center;
  color: #124651;
}
.intro .intro-info .info-title {
  border-right: 1px solid #727272;
  padding-right: 15px;
  margin-left: 25px;
}
.intro .intro-info .info-description p {
  font-family: Philosopher;
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 27px;
  color: #2c2c2c;
}
.intro .intro-info .info-description {
  margin-left: 25px;
}

/* ═══════════════════════════════════════════════
   INFORMATION SYSTEM (картки сертифікації)
═══════════════════════════════════════════════ */
.information-system {
  display: flex;
  gap: 20px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.information-system .certificate, .verification {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.information-system .item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
}
.information-system .wrap-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.information-system .wrap-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.information-system .content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  padding: 0 20px 40px 20px;
}
.information-system .certificate .item .content {
  background-color: rgba(66, 168, 143, 0.7);
  backdrop-filter: blur(15px);
}
.information-system .verification .item .content {
  background-color: rgba(95, 45, 45, 0.7);
  backdrop-filter: blur(15px);
}
.information-system a { text-decoration: none; }
.information-system .item .content .title h4 {
  font-weight: 700;
  font-size: 24px;
  line-height: 29px;
  margin: 10px 0 15px 0;
  color: #ffffff;
}
.information-system .item .content .description p {
  font-family: Philosopher, serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 16px;
  color: #f5f5f5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  margin: 0;
}
.information-system .certificate .item .content,
.information-system .verification .item .content {
  transition: background-color 0.5s ease-in-out, backdrop-filter 0.5s ease-in-out;
}
.information-system .item:hover .content {
  backdrop-filter: blur(2px) !important;
}
.information-system .item {
  transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
}
.information-system .item .content .title h4,
.information-system .item .content .description p {
  transition: text-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.information-system .item:hover .content .title h4,
.information-system .item:hover .content .description p {
  text-shadow: 0px 0px 5px rgba(0,0,0,0.5), 2px 2px 10px rgba(0,0,0,0.8);
  transform: translateY(-2px);
}
.information-system .certificate .transition {
  background: linear-gradient(90deg, #42796C 0%, #8DD9C6 100%);
}
.information-system .verification .transition {
  background: linear-gradient(90deg, #5D2C34 0%, #B19DA0 100%);
}
.information-system .transition {
  text-decoration: none;
  display: block;
  margin-top: 10px;
}
.information-system .transition .content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  height: auto;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.information-system .transition .content p {
  margin: 0;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}
.information-system .transition .content img {
  width: 20px;
  height: auto;
  transition: transform 0.3s ease;
}
.information-system .certificate .transition:hover .content {
  background-color: #42a88e87;
}
.information-system .verification .transition:hover .content {
  background-color: #643136;
}
.information-system .transition img {
  transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════
   АДАПТИВ — whyus
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .whyus__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .whyus__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .whyus {
    padding: 60px 20px 56px;
  }
  .whyus__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .whyus__cards {
    grid-template-columns: 1fr;
  }
  .whyus__stat {
    padding: 24px 14px;
  }
}

/* ═══════════════════════════════════════════════
   АДАПТИВ — hero
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero__content {
    padding: 120px 24px 100px;
    gap: 16px;
  }
  .hero__cta {
    flex-direction: column;
    align-items: center;
  }
  .hero__btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__badges {
    flex-direction: column;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════════
   АДАПТИВ — information-system
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .information-system {
    padding: 40px 16px;
    gap: 16px;
  }
  .information-system .item .content .title h4 {
    font-size: 20px;
    line-height: 24px;
  }
}
@media (max-width: 768px) {
  .information-system {
    flex-direction: column;
    padding: 32px 16px;
    gap: 16px;
  }
  .information-system .certificate,
  .information-system .verification {
    flex: none;
    width: 100%;
    gap: 12px;
  }
  .information-system .item {
    flex-direction: column;
    height: auto;
    min-height: 160px;
  }
  .information-system .wrap-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    flex: none;
  }
  .information-system .content {
    position: relative;
    z-index: 2;
    padding: 20px 16px;
    min-height: 160px;
  }
  .information-system .item .content .title h4 {
    font-size: 16px;
    line-height: 20px;
  }
  .information-system .item .content .description p {
    font-size: 13px;
    line-height: 16px;
  }
  .information-system .transition .content {
    padding: 12px 20px;
  }
  .information-system .transition .content p {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .information-system {
    padding: 24px 12px;
    gap: 12px;
  }
  .information-system .item .content .title h4 {
    font-size: 16px;
    line-height: 20px;
  }
  .information-system .item .content .description p {
    font-size: 13px;
    line-height: 16px;
  }
  .information-system .transition .content p {
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════
   АДАПТИВ — старий intro
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .intro { height: 600px; }
  .intro-info {
    width: 90%;
    min-width: unset;
    height: auto;
    padding: 20px;
    bottom: -20px;
  }
  .intro .intro-info .info-title h1 { font-size: 28px; line-height: 34px; }
  .intro .intro-info .info-description p { font-size: 18px; line-height: 22px; }
}
@media (max-width: 640px) {
  .intro { height: 480px; }
  .intro-info {
    flex-direction: column;
    text-align: center;
    bottom: -30px;
    padding: 16px;
  }
  .intro .intro-info .info-title {
    border-right: none;
    border-bottom: 1px solid #727272;
    padding-right: 0;
    padding-bottom: 12px;
    margin-left: 0;
    margin-bottom: 12px;
  }
  .intro .intro-info .info-description { margin-left: 0; }
  .intro .intro-info .info-title h1 { font-size: 22px; line-height: 28px; }
  .intro .intro-info .info-description p { font-size: 15px; line-height: 20px; }
}