/* Акції та сертифікати.
   Шкала в px, не в em від body { font-size: 1vw }, щоб типи тексту не розʼїжджались. */

html .section.fs-new,
html .section.actions {
  overflow-x: clip;
}

html .section.fs-new {
  margin-top: 24px;
}

html .section.actions {
  padding-top: 8px;
  padding-bottom: 48px;
}

html .section.fs-new .container.certificate,
html .section.actions .container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Заголовок сторінки */
html .h1.actions {
  color: #1c1c22;
  margin: 0 0 32px;
  font-family: "Inter accent", Inter, sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
}

/* Заголовки блоків: сертифікат, картки, попап */
html .h3.certificate,
html .h3.action__headeing,
html .h3.action,
html .modal.is-big .h3.action {
  margin: 0;
  font-family: "Inter accent", Inter, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

html .h3.certificate {
  color: #1c1c22;
  max-width: none;
}

html .h3.certificate .red,
html .h3.certificate .red._2 {
  color: #e10613;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}

html .h3.action__headeing {
  color: #f8f8fb;
  text-align: center;
  max-width: 100%;
}

/* Бейдж на фото */
html .h4.actions {
  margin: 0;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

/* Опис: сертифікат, картки, вступ попапа — один розмір */
html .s__text.certificate,
html .s__text.action,
html .xs__text.action__top {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

html .s__text.certificate,
html .xs__text.action__top {
  color: #383843;
}

html .s__text.action {
  color: #fff;
  text-align: center;
  max-width: 100%;
}

html .primary__button.certificate.w-button {
  color: #fff;
  line-height: 1.2;
  cursor: pointer;
  background-color: #e10613;
  border: 0;
  border-radius: 10px;
  padding: 20px 20px;
  text-decoration: none;
  display: inline-block;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.4s;
}

html .primary__button.certificate.w-button:hover {
  background-color: #a21414;
}

html .certificate__main-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 32px;
  padding: 40px 48px;
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(20, 20, 73, 0.12);
}

html .certificate__img-wrapper {
  flex: 0 0 42%;
  width: 42%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 460 / 266;
  margin: 0;
  border-radius: 15px;
  background-image: url("../images/frame-2035632-20-2-20-1--1.webp");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(38, 25, 90, 0.08);
}

html .certificate__right-wrapper {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  min-width: 0;
}

html .button__certificate-wrapper {
  width: auto;
  max-width: 100%;
  margin-top: 8px;
}

html .section.actions > .container > .actions__main-wrapper {
  display: block;
  height: auto;
  overflow: visible;
  border-radius: 0;
}

html .actions__collections-list-wrapper,
html .actions__collections-list,
html .actions__collection-item {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

html .actions__collections-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

html .actions__collection-item > .actions__main-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
}

html .actions__bg-img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-position: 50%;
  background-size: cover;
  cursor: pointer;
}

html .actions__wrapper {
  position: absolute;
  top: 16px;
  left: 16px;
  right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  border-radius: 30px;
  background-color: #c61717;
  box-sizing: border-box;
}

html .actions__text-wrapper {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 28px 24px 32px;
  background-color: #1c1c22;
  cursor: pointer;
}

html .modal-box {
  box-sizing: border-box;
  align-items: flex-start;
  padding: 24px 16px;
}

html .modal.is-big {
  box-sizing: border-box;
  width: min(1040px, 100%);
  max-width: 1040px;
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  padding: 28px 28px 32px;
  overflow: auto;
}

html .modal.is-big .modal-close {
  top: 16px;
  right: 16px;
  bottom: auto;
  left: auto;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
  box-sizing: border-box;
}

html .learn-more__main-wrapper-2 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 8px 44px 0 0;
  overflow: visible;
}

html .action__popup-main-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html .modal.is-big .action__left-imgwrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background-position: 50%;
  background-size: cover;
}

html .action__right-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

html .action__popup-rich-text-wrapper {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 24px 28px;
  border-radius: 10px;
  background-color: #f8f8fb;
}

html .action__rich-text,
html .action__rich-text p,
html .action__rich-text li {
  color: #383843;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

html .action__rich-text p {
  margin: 0 0 12px;
}

html .action__rich-text p:last-child {
  margin-bottom: 0;
}

html .action__rich-text h3,
html .action__rich-text h4 {
  margin: 0 0 12px;
  color: #1c1c22;
  font-family: "Inter accent", Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

@media screen and (max-width: 991px) {
  html .h1.actions {
    margin-bottom: 24px;
    font-size: 32px;
  }

  html .h3.certificate,
  html .h3.action__headeing,
  html .h3.action,
  html .modal.is-big .h3.action {
    font-size: 24px;
  }

  html .certificate__main-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px;
  }

  html .certificate__img-wrapper {
    flex: none;
    width: 100%;
    max-width: none;
  }

  html .modal.is-big .action__popup-main-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  html .learn-more__main-wrapper-2 {
    padding-right: 0;
    padding-top: 28px;
  }
}

@media screen and (max-width: 767px) {
  html .section.fs-new .container.certificate,
  html .section.actions .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  html .h1.actions {
    font-size: 28px;
  }

  html .h3.certificate,
  html .h3.action__headeing,
  html .h3.action,
  html .modal.is-big .h3.action {
    font-size: 22px;
  }

  html .actions__collections-list {
    grid-template-columns: 1fr;
  }

  html .actions__text-wrapper {
    padding: 24px 16px 28px;
  }

  html .modal.is-big {
    padding: 20px 16px 24px;
  }

  html .action__popup-rich-text-wrapper {
    padding: 16px;
  }
}

@media screen and (max-width: 479px) {
  html .h1.actions {
    font-size: 26px;
    line-height: 1.2;
  }

  html .h3.certificate,
  html .h3.action__headeing,
  html .h3.action,
  html .modal.is-big .h3.action,
  html .action__rich-text h3,
  html .action__rich-text h4 {
    font-size: 20px;
  }

  html .h4.actions {
    font-size: 14px;
  }

  html .s__text.certificate,
  html .s__text.action,
  html .xs__text.action__top,
  html .action__rich-text,
  html .action__rich-text p,
  html .action__rich-text li,
  html .primary__button.certificate.w-button {
    font-size: 15px;
  }

  html .certificate__main-wrapper {
    margin-bottom: 20px;
    padding: 16px;
  }

  html .button__certificate-wrapper,
  html .primary__button.certificate.w-button {
    width: 100%;
    box-sizing: border-box;
  }

  html .actions__wrapper {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 12px;
  }
}
