/* ══════════════════════════════════════════════
   СЕРТИФІКАЦІЯ — повний CSS
   user/themes/imcert/css/certification.css
══════════════════════════════════════════════ */

/* ── Загальний заголовок ── */
.cert-section-title {
  font-weight: 900;
  font-size: 36px;
  line-height: 44px;
  color: #124651;
  font-family: "Montserrat", sans-serif;
  margin: 0 0 36px;
  position: relative;
  padding-bottom: 14px;
}
.cert-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #42796c, #8dd9c6);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════
   МОДУЛЬ 1 — Hero
══════════════════════════════════════════════ */
.cert-hero {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.cert-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cert-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cert-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 45, 0.45);
}
.cert-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 70px;
}
.cert-hero__title {
  font-family: "Montserrat", sans-serif;
  font-size: 6rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}



/* ══════════════════════════════════════════════
   МОДУЛЬ 3 — Види сертифікацій
══════════════════════════════════════════════ */
.cert-types {
  background: #f4f8f8;
  padding: 72px 32px;
}
.cert-types__wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.cert-types__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cert-types__card {
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  background: #def1f1;
}
.cert-types__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
.cert-types__img {
  height: 180px;
  overflow: hidden;
}
.cert-types__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.cert-types__card:hover .cert-types__img img {
  transform: scale(1.05);
}
.cert-types__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cert-types__name {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #124651;
  margin: 0 0 10px;
  line-height: 1.4;
}
.cert-types__desc {
  font-family: "Philosopher", serif;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 16px;
  flex: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}
.cert-types__link {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a7a7a;
  margin-top: auto;
  transition: color 0.2s;
}
.cert-types__card:hover .cert-types__link {
  color: #124651;
}

/* ══════════════════════════════════════════════
   МОДУЛЬ 4 — Процес сертифікації
══════════════════════════════════════════════ */
.cert-process {
  padding: 72px 32px;
}
.cert-process__wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.cert-process__intro {
  font-family: "Philosopher", serif;
  font-size: 20px;
  line-height: 1.7;
  color: #000000;
  margin: -20px 0 40px;
}
.cert-process__steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.cert-process__step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #cee0df;
  border-radius: 8px;
  padding: 28px 28px;
  border-left: 4px solid #42796c;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.cert-process__step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.cert-process__num {
  flex-shrink: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #42796c;
  opacity: 0.35;
  line-height: 1;
  min-width: 48px;
}
.cert-process__name {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #124651;
  margin: 0 0 10px;
}
.cert-process__text {
  font-family: "Philosopher", serif;
  font-size: 18px;
  line-height: 1.65;
  color: #414141;
  margin: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

/* ══════════════════════════════════════════════
   МОДУЛЬ 5 — Переваги
══════════════════════════════════════════════ */
.cert-advantages {
  /* background-color: #4fb39a; */
  padding: 72px 32px;
}
.cert-advantages__wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.cert-advantages__intro {
  font-family: "Philosopher", serif;
  font-size: 20px;
  line-height: 1.7;
  color: #000000;
  margin: -20px 0 40px;
}
.cert-advantages__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cert-advantages__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #def1f1;
  border-radius: 8px;
  padding: 20px 24px;
}
.cert-hex-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  margin-top: 2px;
}
.cert-hex-icon svg {
  width: 100%;
  height: 100%;
}
.cert-hex-icon svg path {
  fill: #1a7a7a;
  stroke: none;
}
.cert-hex-icon svg polyline {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}
.cert-advantages__text {
  flex: 1;
  font-family: "Philosopher", serif;
  font-size: 20px;
  line-height: 1.55;
  color: #414141;
  margin: 0;
}

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

@media (max-width: 768px) {
  .cert-hero {
    height: 320px;
  }
  .cert-hero__title {
    font-size: 3.5rem;
  }
  .cert-about {
    padding: 40px 20px;
  }
  .cert-types {
    padding: 48px 20px;
  }
  .cert-process {
    padding: 48px 20px;
  }
  .cert-process__steps {
    grid-template-columns: 1fr;
  }
  .cert-advantages {
    padding: 48px 20px;
  }
  .cert-advantages__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cert-hero {
    height: 260px;
  }
  .cert-hero__title {
    font-size: 2.5rem;
  }
  .cert-section-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .cert-types {
    padding: 36px 16px;
  }
  .cert-types__grid {
    grid-template-columns: 1fr;
  }
  .cert-process {
    padding: 36px 16px;
  }
  .cert-advantages {
    padding: 36px 16px;
  }
}
