/*
 * Блок why (blocks/why.php): «Почему МедВебика» — заголовок слева, пункты с номерами в кругах справа.
 */

.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }

.why__head { position: sticky; top: 32px; }
.why__title { color: var(--c-ink); font-size: 48px; font-weight: 700; line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.why__lead { max-width: 24em; margin-top: 28px; color: var(--c-muted); font-size: 19px; line-height: 1.6; }

.why__list { display: grid; }
.why__item {
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px clamp(24px, 3.4vw, 50px); align-items: center;
    padding-block: 34px;
}
.why__item:first-child { padding-top: 0; }
.why__item:last-child { padding-bottom: 0; }
.why__item + .why__item { border-top: 1px solid #d3e2ff; }

.why__num {
    display: grid; place-items: center; width: 82px; height: 82px; flex: none;
    border: 1px solid #a9c3ff; border-radius: 50%; color: var(--c-primary); font-size: 24px; font-weight: 500;
}
.why__item-title { color: var(--c-ink); font-size: 27px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.why__item-text { color: var(--c-muted); font-size: 18px; line-height: 1.55; }

@media (max-width: 1024px) {
    .why__grid { grid-template-columns: 1fr; gap: 40px; }
    .why__head { position: static; }
}
@media (max-width: 640px) {
    .why__item { grid-template-columns: auto 1fr; gap: 10px 16px; padding-block: 24px; }
    .why__num { width: 56px; height: 56px; font-size: 18px; }
    .why__item-text { grid-column: 2; }
    .why__title { font-size: var(--fs-h2-m); }
    .why__item-title { font-size: var(--fs-h3-m); }
}
