/* Homepage window schemes price list — oknaminsk24 */
.home-sch {
  --hs-ink: #152029;
  --hs-muted: #5d6b78;
  --hs-steel: #1f3a52;
  --hs-green: #19b27f;
  --hs-green-deep: #0f8f64;
  --hs-orange: #e07a1f;
  --hs-line: rgba(31, 58, 82, 0.08);
  --hs-soft: #f3f7f5;
  max-width: 1380px;
  margin: 0.25rem auto 2.5rem;
  padding: 0 1rem;
  font-family: Manrope, system-ui, sans-serif;
}

.home-sch__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  margin-bottom: 1.15rem;
}

.home-sch__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-green-deep);
}

.home-sch__head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hs-steel);
  line-height: 1.2;
}

.home-sch__head p {
  margin: 0.4rem 0 0;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--hs-muted);
  font-weight: 560;
}

.home-sch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-sch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-sch__btn--green {
  background: var(--hs-green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(25, 178, 127, 0.28);
}

.home-sch__btn--green:hover {
  background: var(--hs-green-deep);
  transform: translateY(-1px);
}

.home-sch__btn--ghost {
  background: rgba(25, 178, 127, 0.1);
  color: var(--hs-green-deep);
}

.home-sch__btn--ghost:hover {
  background: rgba(25, 178, 127, 0.18);
  transform: translateY(-1px);
}

.home-sch__btn--sm {
  min-height: 2.15rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  background: rgba(25, 178, 127, 0.12);
  color: var(--hs-green-deep);
  white-space: nowrap;
}

.home-sch__btn--sm:hover {
  background: rgba(25, 178, 127, 0.2);
}

.home-sch__grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-sch__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--hs-line);
  box-shadow: 0 8px 22px rgba(21, 32, 41, 0.04);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-sch__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(21, 32, 41, 0.08);
  border-color: rgba(25, 178, 127, 0.28);
}

.home-sch__media {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 0.85rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(25, 178, 127, 0.1), transparent 60%),
    linear-gradient(165deg, #f4f8f6, #e8eef2);
}

.home-sch__media img {
  max-width: 120px;
  width: 100%;
  height: auto;
  display: block;
}

.home-sch__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.05rem 1.05rem;
  gap: 0.35rem;
}

.home-sch__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(25, 178, 127, 0.12);
  color: var(--hs-green-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.home-sch__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hs-steel);
  line-height: 1.3;
}

.home-sch__size {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--hs-muted);
  font-variant-numeric: tabular-nums;
}

.home-sch__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.45rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--hs-line);
}

.home-sch__sum {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hs-green-deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.home-sch__sum span {
  display: inline;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hs-muted);
}

.home-sch__note {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  color: var(--hs-muted);
  line-height: 1.45;
}

.home-sch__note a {
  color: var(--hs-green-deep);
  font-weight: 750;
  text-decoration: none;
}

.home-sch__note a:hover {
  text-decoration: underline;
}

/* Mobile 2-column cards — compact */
@media (max-width: 759.98px) {
  .home-sch__grid {
    gap: 0.5rem;
  }

  .home-sch__media {
    min-height: 88px;
    padding: 0.55rem 0.45rem;
  }

  .home-sch__media img {
    max-width: 78px;
  }

  .home-sch__body {
    padding: 0.65rem 0.65rem 0.7rem;
    gap: 0.25rem;
  }

  .home-sch__tag {
    font-size: 0.64rem;
    padding: 0.18rem 0.42rem;
  }

  .home-sch__title {
    font-size: 0.78rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-sch__size {
    font-size: 0.72rem;
  }

  .home-sch__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: 0.35rem;
    padding-top: 0.5rem;
  }

  .home-sch__sum {
    font-size: 0.92rem;
    white-space: normal;
  }

  .home-sch__sum span {
    font-size: 0.7rem;
  }

  .home-sch__btn--sm {
    width: 100%;
    min-height: 2rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.74rem;
  }

  .home-sch__actions {
    width: 100%;
  }

  .home-sch__actions .home-sch__btn {
    flex: 1;
  }
}

/* Desktop / tablet: horizontal rows */
@media (min-width: 760px) {
  .home-sch__grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .home-sch__card {
    flex-direction: row;
    align-items: stretch;
  }

  .home-sch__media {
    flex: 0 0 112px;
    width: 112px;
    min-height: 100%;
    padding: 0.7rem 0.55rem;
    border-right: 1px solid var(--hs-line);
  }

  .home-sch__media img {
    max-width: 84px;
  }

  .home-sch__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "tag title foot"
      "tag size foot";
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.2rem;
    padding: 0.75rem 1.1rem;
  }

  .home-sch__tag {
    grid-area: tag;
    align-self: center;
  }

  .home-sch__title {
    grid-area: title;
    font-size: 1rem;
  }

  .home-sch__size {
    grid-area: size;
  }

  .home-sch__foot {
    grid-area: foot;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    justify-content: flex-end;
    gap: 0.85rem;
  }

  .home-sch__sum {
    font-size: 1.18rem;
  }
}

@media (min-width: 1100px) {
  .home-sch__body {
    grid-template-columns: auto minmax(0, 1.4fr) auto auto;
    grid-template-areas:
      "tag title size foot";
    align-items: center;
  }

  .home-sch__size {
    justify-self: start;
    padding-left: 0.35rem;
  }

  .home-sch__media {
    flex-basis: 124px;
    width: 124px;
  }

  .home-sch__media img {
    max-width: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-sch__card,
  .home-sch__btn { transition: none; }
  .home-sch__card:hover,
  .home-sch__btn:hover { transform: none; }
}
