/* Страница услуг. */

.section-heading--center { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-heading--center p { margin-left: auto; margin-right: auto; }
.services-page__hero { position: relative; overflow: hidden; padding: clamp(52px, 5vw, 80px) 0 clamp(48px, 5vw, 72px); }
.services-page__hero::after { position: absolute; top: -190px; right: -150px; width: min(530px, 55vw); aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .06); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255, 255, 255, .025), 0 0 0 116px rgba(255, 255, 255, .015); content: ''; pointer-events: none; }
.services-page__hero .container { position: relative; z-index: 1; }
.services-page__hero .section-heading { max-width: 940px; }
.services-page__hero .section-heading h1 { max-width: 900px; }
.services-page__hero .section-heading > p:last-child { max-width: 760px; margin: 28px 0 0; }
.services-page__catalog-section { padding: clamp(52px, 6vw, 80px) 0; }

.service-catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-catalog__card {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    border: 1px solid #363a42;
    background: var(--color-bg);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.service-catalog__card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    content: '';
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.service-catalog__card:hover {
    border-color: rgba(227, 49, 39, .55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    transform: translateY(-4px);
}

.service-catalog__card:hover::before { transform: scaleX(1); }

.service-catalog__card > a {
    display: flex;
    height: 100%;
    padding: clamp(24px, 3vw, 38px);
    flex-direction: column;
}

.service-catalog__number { color: var(--color-accent); font-size: .85rem; font-weight: 800; letter-spacing: .08em; }
.service-catalog h3 { margin: auto 0 14px; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.08; }
.service-catalog p { margin: 0 0 20px; color: var(--color-muted); line-height: 1.55; }
.service-catalog__link { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; font-weight: 700; }
.service-catalog__card:hover .service-catalog__link { color: var(--color-accent); }
.service-catalog__empty { margin: 0; color: var(--color-muted); text-align: center; }

.services-page__content-section { border-top: 1px solid #363a42; }
.services-page__content { margin: 0 auto; }
.services-page__content h2 { margin-top: 1.8em; font-size: clamp(1.6rem, 2.5vw, 2.2rem); }

.service-detail__inner { max-width: 920px; margin: 0 auto; }
.service-detail__header { margin-bottom: clamp(36px, 5vw, 64px); }
.service-detail__header h1 { max-width: 900px; margin: 0; font-size: var(--font-size-display); line-height: 1.05; }
.service-detail__lead { max-width: 760px; margin-top: 24px; color: var(--color-muted); font-size: 1.15rem; line-height: 1.7; }
.service-detail__lead p { margin: 0; }
.service-detail__content { width: 100%; max-width: 820px; margin: 0 auto; font-size: 1.05rem; }
.brands-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.brand-item { padding: 14px 22px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .03); font-weight: 600; transition: border-color .25s ease, transform .25s ease, background .25s ease; }
.brand-item:hover { border-color: var(--color-accent); background: rgba(227, 49, 39, .08); transform: translateY(-3px); }

@media (max-width: 910px) {
    .section-heading--center { margin-bottom: 32px; }
    .services-page__hero::after { top: -85px; right: -150px; width: 330px; }
    .service-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .service-catalog { grid-template-columns: minmax(0, 420px); justify-content: center; }
}
