/* =========================
   Reset
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   Page wrapper
========================= */
.index-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* =========================
   Banner
========================= */
.index-banner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.index-banner__img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;
}

/* =========================
   Banner text overlay
========================= */
.index-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.index-banner__logo-area {
  flex: 0 0 25%;
}

.index-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 0 32px;
}

.index-banner__title {
  color: #ffffff;
  font-size: clamp(10px, 3.1vw, 40px);
  font-family: Geologica, sans-serif;
  font-weight: 500;
  line-height: 1.2;
  word-wrap: break-word;
}

.index-banner__subtitle {
  color: #ffffff;
  font-size: clamp(7px, 1.56vw, 20px);
  font-family: Geologica, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  word-wrap: break-word;
}

/* =========================
   Services section
========================= */
.index-services {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 32px 0;
  gap: 28px;
}

.index-services__title {
  font-size: 42px;
  font-weight: 800;
  color: #000000;
  text-align: center;
}

/* =========================
   Cards row
========================= */
.index-cards {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: stretch;   /* карточки одинаковой высоты */
}

.index-card {
  flex: 1;
  background-color: #F2F2F2;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5% 5% 32px;    /* верх/бока в %, низ фиксированный */
}

.index-card__img {
  width: 75%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.index-card__text {
  margin-top: 20px;
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 400;
  color: #555555;
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
}

/* =========================
   Responsive
========================= */
@media (max-width: 640px) {
  .index-page {
    padding: 12px 8px 12px;
  }

  .index-cards {
    flex-direction: column;
    gap: 24px;
  }

  .index-services__title {
    font-size: 28px;
  }

  .index-card {
    padding: 24px 20px 24px;
  }

  .index-card__img {
    width: 75%;
  }
}

@media (max-width: 400px) {
  .index-page {
    padding: 8px 4px 8px;
  }
}

/* =========================
   Mobile banner fix
========================= */
@media (max-width: 480px) {
  .index-page {
    padding: 8px 8px 8px;
  }

  .index-services {
    padding: 16px 0;
    gap: 16px;
  }

  .index-banner__text {
    gap: 6px;
    padding: 0 8px;
  }

  .index-banner__logo-area {
    flex: 0 0 30%;
  }
}
