/* =========================================================================
   About page — Features (bg image + white overlay + 4-col grid)
   ========================================================================= */

.about-features {
  position: relative;
  padding: 96px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-features__overlay {
  position: absolute;
  inset: 0;
  background: #FFFFFFA8;
  z-index: 0;
}

.about-features__wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* --- Head ------------------------------------------------------------------ */
.about-features__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.about-features__title {
  margin: 0;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 700;
  font-size: 30px;
  line-height: 136%;
  letter-spacing: 0.01em;
}

.about-features__desc {
  margin: 0;
  color: #616161;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

/* --- Grid: 4 columns ------------------------------------------------------- */
.about-features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* --- Card ------------------------------------------------------------------ */
.about-features__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: #323F4866;
  backdrop-filter: blur(40px) saturate(140%);
  -webkit-backdrop-filter: blur(40px) saturate(140%);
}

.about-features__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 12px;
  border-radius: 100px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
  flex-shrink: 0;
}

.about-features__icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.about-features__card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-features__card-title {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
}

.about-features__card-desc {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

/* --- Product catalog button ---------------------------------------------- */
.product-features__catalog-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.product-features__catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 12px 24px;
  border: 1px solid #FFFFFF;
  background: #9DB8EA;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* --- Product catalog dialog ---------------------------------------------- */
.product-catalog-dialog {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.product-catalog-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
}

.product-catalog-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 47, 61, .48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.product-catalog-dialog__content {
  position: relative;
  z-index: 1;
  width: min(1290px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 48px 68px;
  background: #fff;
  border-radius: 20px;
  box-sizing: border-box;
  transform: translateY(12px);
  transition: transform .2s ease;
}

.product-catalog-dialog.is-open .product-catalog-dialog__content {
  transform: translateY(0);
}

.product-catalog-dialog__close {
  position: absolute;
  top: 16px;
  right: 22px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9e9e9e;
  cursor: pointer;
  font-size: 36px;
  font-weight: 200;
  line-height: 28px;
}

.product-catalog-dialog__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 72px;
}

.product-catalog-card {
  display: flex;
  min-width: 0;
  min-height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}

.product-catalog-card__open {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  color: #293948;
  text-decoration: none;
}

.product-catalog-card__image,
.product-catalog-card__placeholder {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: cover;
}

.product-catalog-card__placeholder {
  display: grid;
  place-items: center;
  background: #f3f5f7;
}

.product-catalog-card__title {
  overflow: hidden;
  padding: 12px 16px;
  font-family: var(--font-hn);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-catalog-card__download {
  display: grid;
  place-items: center;
  width: 56px;
  flex: 0 0 56px;
}

.product-catalog-card__download img {
  width: 24px;
  height: 24px;
}

.product-catalog-card__open:hover .product-catalog-card__title,
.product-catalog-card__download:hover {
  color: #5877a4;
}

body.product-catalog-dialog-open {
  overflow: hidden;
}

.product-features__catalog:hover,
.product-features__catalog:focus {
  background: #465E75;
  color: #FFFFFF;
}

/* --- Responsive ------------------------------------------------------------ */
@media screen and (min-width: 1025px) {
  .about-features {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .about-features__wrap {
    position: static;
    width: 100%;
  }

  .about-features__head,
  .about-features__grid {
    position: relative;
    z-index: 1;
  }

  .product-features__catalog-wrap {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 48px;
    left: 0;
  }
}

@media screen and (max-width: 1200px) {
  .about-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .about-features {
    padding: 56px 0;
  }

  .about-features__wrap {
    gap: 24px;
  }

  .about-features__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-features__title {
    font-size: 24px;
  }

  .product-catalog-dialog {
    padding: 16px;
  }

  .product-catalog-dialog__content {
    padding: 52px 20px 20px;
    border-radius: 16px;
  }

  .product-catalog-dialog__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-catalog-card__title {
    font-size: 16px;
  }
}

