/* Home "Помощь храму" component layout.
 * The Home markup keeps .help-icons inside .help-content, so this stylesheet
 * makes that DOM structure authoritative instead of assigning .help-icons
 * to an unreachable parent-grid area.
 */

.home-main .home-album-help-row .help-box {
  grid-template-columns: minmax(190px, 0.68fr) minmax(330px, 1.32fr);
  grid-template-areas:
    "image content"
    "image action";
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(22px, 2.2vw, 32px);
  row-gap: 24px;
}

.home-main .home-album-help-row .help-content {
  grid-area: content;
  align-self: center;
  max-width: none;
  padding: 32px clamp(24px, 2.2vw, 34px) 0 0;
}

.home-main .home-album-help-row .help-content h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 2vw, 34px);
  line-height: 1.08;
}

.home-main .home-album-help-row .help-content > p {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.5;
}

.home-main .home-album-help-row .help-content .help-icons {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
}

.home-main .home-album-help-row .help-icon-item {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 12px;
  text-align: center;
}

.home-main .home-album-help-row .help-icon-item:first-child {
  padding-left: 0;
}

.home-main .home-album-help-row .help-icon-item:last-child {
  padding-right: 0;
}

.home-main .home-album-help-row .help-icon-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.home-main .home-album-help-row .help-icon-item span {
  max-width: 130px;
  color: #4a403a;
  font-size: 13px;
  line-height: 1.32;
  overflow-wrap: break-word;
  hyphens: auto;
}

.home-main .home-album-help-row .help-action {
  grid-area: action;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  gap: 14px;
  margin: 0;
  padding: 0 clamp(24px, 2.2vw, 34px) 30px 0;
}

.home-main .home-album-help-row .donation-card--home {
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 18px;
  gap: 18px;
  border-radius: 16px;
}

.home-main .home-album-help-row .donation-card--home .help-donation-content {
  gap: 8px;
  min-width: 0;
}

.home-main .home-album-help-row .donation-card--home .dimitria-section-kicker {
  font-size: 11px;
  line-height: 1.25;
}

.home-main .home-album-help-row .donation-card--home h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.18;
}

.home-main .home-album-help-row .donation-card--home .help-donation-content > p:not(.dimitria-section-kicker) {
  font-size: 14px;
  line-height: 1.4;
}

.home-main .home-album-help-row .donation-card--home .help-donation-button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  margin-top: 4px;
  padding: 10px 14px;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}

.home-main .home-album-help-row .donation-card--home .help-qr-link {
  justify-self: end;
  padding: 5px;
  border-radius: 12px;
}

.home-main .home-album-help-row .donation-card--home .help-qr-code {
  width: 82px;
  height: 82px;
}

.home-main .home-album-help-row .help-action > .dimitria-action-link {
  justify-self: start;
  margin: 0;
}

@media (max-width: 1120px) {
  .home-main .home-album-help-row .help-box {
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
    grid-template-areas:
      "image content"
      "image action";
    grid-template-rows: minmax(0, 1fr) auto;
  }
}

@media (max-width: 760px) {
  .home-main .home-album-help-row .help-box {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "image"
      "content"
      "action";
    grid-template-rows: auto;
    gap: 20px;
  }

  .home-main .home-album-help-row .help-content {
    align-self: auto;
    padding: 0 22px;
    text-align: left;
  }

  .home-main .home-album-help-row .help-content .help-icons {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 22px;
  }

  .home-main .home-album-help-row .help-icon-item,
  .home-main .home-album-help-row .help-icon-item:first-child,
  .home-main .home-album-help-row .help-icon-item:last-child {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 12px;
    padding: 0;
    border-left: 0;
    text-align: left;
  }

  .home-main .home-album-help-row .help-icon-item span {
    max-width: none;
    font-size: 14px;
  }

  .home-main .home-album-help-row .help-action {
    padding: 0 22px 24px;
  }

  .home-main .home-album-help-row .help-action > .dimitria-action-link {
    justify-self: stretch;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .home-main .home-album-help-row .donation-card--home {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-main .home-album-help-row .donation-card--home .help-qr-link {
    justify-self: center;
  }
}
