.service-index-page,
.services-catalog {
    --service-index-yellow: #ffc52d;
    --service-index-warm: #fff8e6;
    --service-index-soft: #f7f5f5;
    --service-index-ink: #171717;
    --service-index-text: #3d3d3d;
    --service-index-muted: #666;
    --service-index-border: #e7e2d6;
    --service-index-brown: #3a2500;
    --service-landing-yellow: #ffc52d;
    --service-landing-orange: #ff8e2d;
    --service-landing-ink: #111;
    --service-landing-paper: #fffdf8;
    --service-landing-warm: #fff8e6;
    --service-landing-soft: #f7f5f5;
    --service-landing-cool: #f4f7f7;
    --service-landing-brown: #3a2500;
    --service-landing-brown-muted: #5f4108;
    font-family: Ubuntu, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.service-index-page .service-landing-hero {
    background-color: var(--service-index-soft);
    background-image: linear-gradient(180deg, #fffdf8 0%, var(--service-index-soft) 100%);
    padding: 28px 0 32px;
    overflow: hidden;
}

.service-index-page .service-landing-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 28px;
    align-items: center;
    max-width: 1172px;
    padding-right: 34px;
    padding-left: 34px;
}

.service-index-page .service-landing-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 100px;
    background: var(--service-index-warm);
    color: var(--service-index-brown);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: none;
}

.service-index-page .service-landing-hero__title {
    max-width: 760px;
    margin-bottom: 12px;
    font-size: clamp(32px, 3.6vw, 46px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

.service-index-page .service-landing-hero__lead {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--service-index-text);
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.54;
}

.service-index-page .service-landing-hero__actions {
    margin: 26px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    align-items: center;
}

.service-index-page .service-landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid #d9c892;
    border-radius: 999px;
    background: #fff;
    color: var(--service-index-brown);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-index-page .service-landing-button--primary {
    border-color: var(--service-index-yellow);
    background: var(--service-index-yellow);
    color: var(--service-index-brown);
    box-shadow: 0 8px 18px rgba(255, 197, 45, .34);
}

.service-index-page .service-landing-button--secondary {
    border-color: #d9c892;
    background: #fff;
    color: var(--service-index-brown);
    box-shadow: none;
}

.service-index-page .service-landing-button--quiet {
    border-color: transparent;
    background: transparent;
    color: var(--service-index-text);
    box-shadow: none;
}

.service-index-page .service-landing-button:hover,
.service-index-page .service-landing-button:focus {
    border-color: var(--service-index-yellow);
    background: var(--service-index-warm);
    color: var(--service-index-brown);
    opacity: 1;
}

.service-index-page .service-landing-button--primary:hover,
.service-index-page .service-landing-button--primary:focus {
    border-color: #ffcf54;
    background: #ffcf54;
    box-shadow: 0 10px 22px rgba(255, 197, 45, .42);
}

.service-index-page .service-landing-button--secondary:hover,
.service-index-page .service-landing-button--secondary:focus,
.service-index-page .service-landing-button--quiet:hover,
.service-index-page .service-landing-button--quiet:focus {
    border-color: var(--service-index-yellow);
    background: var(--service-index-warm);
    color: var(--service-index-brown);
    opacity: 1;
}

.service-index-page .service-landing-checks {
    margin-top: 16px;
    gap: 8px;
}

.service-index-page .service-landing-checks li {
    padding: 8px 10px;
    border-color: #eadfca;
    background: #fff;
    font-size: 14px;
}

.service-index-page .service-landing-hero-card {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
}

.service-index-page .service-landing-hero-card__header {
    margin-bottom: 12px;
}

.service-index-page .service-landing-hero-card__header strong {
    font-size: 18px;
}

.service-index-page .service-landing-experts-grid {
    gap: 10px;
}

.service-index-page .service-landing-expert-card {
    grid-template-columns: 68px 1fr;
    min-height: 88px;
    padding: 10px;
}

.service-index-page .service-landing-expert-card__photo {
    width: 68px;
    height: 68px;
}

.service-index-page .service-landing-expert-card__name {
    font-size: 16px;
}

.service-index-page .service-landing-expert-card__role {
    font-size: 13px;
}

.service-index-page .service-landing-hero-card__link[href] {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 10px;
    padding: 4px 0;
    border: 0;
    border-radius: 100px;
    background: transparent;
    color: var(--service-index-text);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
}

.service-index-page .service-landing-hero-card__link[href]:hover,
.service-index-page .service-landing-hero-card__link[href]:focus {
    background: transparent;
    color: var(--service-index-brown);
    opacity: 1;
}

.service-index-page .service-landing-hero-card__link[href]:hover span,
.service-index-page .service-landing-hero-card__link[href]:focus span {
    text-decoration: underline;
    text-decoration-color: var(--service-index-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.service-index-page .service-landing-hero-card__link::after {
    content: "→";
    margin-left: 6px;
    color: var(--service-index-brown);
}

.services-catalog {
    background: #fff;
}

.service-landing-about-band + .services-catalog .services-catalog__inner {
    padding-top: 46px;
}

.services-catalog__inner {
    box-sizing: border-box;
    width: min(100%, 1172px);
    margin: 0 auto;
    padding: 42px 34px 72px;
}

.services-catalog__head {
    max-width: 760px;
    min-width: 0;
}

.services-catalog__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 0 0 10px;
    padding: 4px 9px;
    border-radius: 100px;
    background: var(--service-index-warm);
    color: var(--service-index-brown);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.services-catalog__head h2 {
    margin: 0;
    color: var(--service-index-ink);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: 0;
}

.services-catalog__head p:not(.services-catalog__eyebrow) {
    margin: 14px 0 0;
    color: var(--service-index-text);
    font-size: 17px;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.services-catalog-helper {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    max-width: 880px;
    margin-top: 22px;
    padding: 13px 15px;
    border: 1px solid #eadfbd;
    border-radius: 8px;
    background: #fffaf0;
    box-shadow: 0 8px 18px rgba(58, 37, 0, .04);
}

.services-catalog-helper__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: var(--service-index-text);
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.services-catalog-helper__copy strong {
    color: var(--service-index-brown);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.services-catalog-helper__link[href] {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d9c892;
    border-radius: 999px;
    background: #fff;
    color: var(--service-index-brown);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.services-catalog-helper__link[href]:hover,
.services-catalog-helper__link[href]:focus {
    border-color: var(--service-index-yellow);
    background: #fff;
    box-shadow: 0 8px 18px rgba(255, 197, 45, .18);
    color: var(--service-index-brown);
    opacity: 1;
}

.services-catalog__tools {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
    margin-top: 24px;
}

.services-catalog__search {
    min-width: 0;
    max-width: 100%;
}

.services-catalog__search input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--service-index-border);
    border-radius: 8px;
    background: #fff;
    color: var(--service-index-ink);
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    box-shadow: 0 8px 18px rgba(58, 37, 0, .04);
}

.services-catalog__search input:focus {
    border-color: var(--service-index-yellow);
    outline: 2px solid rgba(255, 197, 45, .24);
    outline-offset: 2px;
}

.services-catalog__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.services-catalog__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.services-catalog__nav a[href] {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--service-index-border);
    border-radius: 100px;
    background: #fff;
    color: var(--service-index-brown);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.services-catalog__nav a[href]:hover,
.services-catalog__nav a[href]:focus {
    border-color: var(--service-index-yellow);
    background: var(--service-index-warm);
    color: var(--service-index-brown);
    opacity: 1;
}

.services-catalog__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
}

.services-catalog-card {
    position: relative;
    scroll-margin-top: 88px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e6d4a4;
    border-radius: 8px;
    background: #fffaf0;
    box-shadow: 0 10px 24px rgba(58, 37, 0, .055);
}

.services-catalog-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--service-index-yellow);
    opacity: .9;
}

.services-catalog-card[data-services-open="true"] {
    border-color: #d9bd6f;
    background: #fff7df;
    box-shadow: 0 14px 30px rgba(58, 37, 0, .08);
}

.services-catalog-card__head {
    position: relative;
    border-bottom: 1px solid rgba(17, 17, 17, .06);
    background: linear-gradient(90deg, #fff2bf 0%, #fffaf0 52%, #fff 100%);
}

.services-catalog-card__toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 0;
    padding: 16px 18px 16px 22px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.services-catalog-card__toggle:hover,
.services-catalog-card__toggle:focus-visible {
    background: rgba(255, 197, 45, .12);
    outline: none;
}

.services-catalog-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(58, 37, 0, .14);
    border-radius: 8px;
    background: var(--service-index-yellow);
    color: #111;
    font-size: 26px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38), 0 8px 16px rgba(58, 37, 0, .1);
}

.services-catalog-card__icon img {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
    opacity: .94;
}

.services-catalog-card__title-wrap {
    display: grid;
    flex: 1 1 auto;
    gap: 11px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.services-catalog-card__title {
    position: relative;
    display: block;
    max-width: none;
    margin: 0;
    color: var(--service-index-brown);
    font-size: 17px;
    line-height: 1.24;
    font-weight: 800;
    overflow-wrap: anywhere;
    word-break: normal;
}

.services-catalog-card__title span {
    display: inline;
    padding-bottom: 5px;
    background-image: linear-gradient(var(--service-index-yellow), var(--service-index-yellow));
    background-repeat: no-repeat;
    background-position: 0 calc(100% - 1px);
    background-size: 100% 3px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.services-catalog-card__title::after {
    content: none;
}

.services-catalog-card__title-wrap > span:not(.services-catalog-card__title) {
    justify-self: start;
    margin-top: 0;
    padding: 4px 9px;
    border-radius: 100px;
    background: rgba(255, 197, 45, .22);
    color: #57452f;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 800;
}

.services-catalog-card__chevron {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border: 1px solid #e2cc8b;
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    transform: none;
    transition: background-color .18s ease, border-color .18s ease;
}

.services-catalog-card__chevron::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-top: -3px;
    border-right: 2px solid var(--service-index-brown);
    border-bottom: 2px solid var(--service-index-brown);
    transform: rotate(45deg);
    transition: transform .18s ease, margin-top .18s ease;
}

.services-catalog-card[data-services-open="true"] .services-catalog-card__chevron {
    border-color: var(--service-index-yellow);
    background: #fff;
    transform: none;
}

.services-catalog-card[data-services-open="true"] .services-catalog-card__chevron::before {
    margin-top: 4px;
    transform: rotate(225deg);
}

.services-catalog-card__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
    padding: 14px 16px 16px;
}

.services-catalog-card__body[hidden] {
    display: none;
}

.services-catalog-group {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #eee5cf;
    border-radius: 8px;
    background: #fff;
}

.services-catalog-group--main {
    background: #fffdf8;
    border-color: #eadfbd;
}

.services-catalog-group__title {
    margin: 0;
    padding: 0;
    color: var(--service-index-brown);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.services-catalog-group__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.services-catalog-link[href] {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid #eee5cf;
    border-radius: 8px;
    background: #fff;
    color: var(--service-index-ink);
    font-size: 14px;
    line-height: 1.28;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.services-catalog-link::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin-top: .48em;
    border-radius: 50%;
    background: var(--service-index-yellow);
}

.services-catalog-link[href]:hover,
.services-catalog-link[href]:focus {
    border-color: var(--service-index-yellow);
    background: #fffdf8;
    color: var(--service-index-ink);
    box-shadow: 0 8px 18px rgba(58, 37, 0, .05);
    opacity: 1;
}

.services-catalog-link--featured[href] {
    border-color: rgba(255, 197, 45, .4);
    background: var(--service-index-warm);
}

.services-catalog-link--danger[href] {
    border-color: #f0b7b7;
    background: #fff3f3;
    color: #b42318;
}

.services-catalog-link--danger::before {
    background: #d93025;
}

.services-catalog__results {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.services-catalog__results[hidden] {
    display: none;
}

.services-catalog__results-head p {
    margin: 0;
    color: var(--service-index-brown);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
}

.services-catalog__results-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.services-catalog-result[href] {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 14px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    padding: 13px 14px 13px 17px;
    border: 1px solid #eadfbd;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
    color: var(--service-index-ink);
    text-decoration: none;
    box-shadow: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.services-catalog-result::before {
    content: "";
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 3px;
    border-radius: 0 8px 8px 0;
    background: var(--service-index-yellow);
}

.services-catalog-result[href]:hover,
.services-catalog-result[href]:focus {
    transform: translateY(-1px);
    border-color: var(--service-index-yellow);
    background: #fff;
    color: var(--service-index-ink);
    box-shadow: 0 10px 22px rgba(58, 37, 0, .06);
    opacity: 1;
}

.services-catalog-result__meta {
    grid-column: 1;
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .05);
    color: #4f4030;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.services-catalog-result__title {
    grid-column: 1;
    color: var(--service-index-ink);
    font-size: 15px;
    line-height: 1.28;
    font-weight: 800;
}

.services-catalog-result__match {
    grid-column: 1;
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 197, 45, .24);
    color: #5b410c;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.services-catalog-result__action {
    grid-column: 2;
    grid-row: 1 / span 3;
    justify-self: end;
    align-self: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 197, 45, .24);
    color: #5b410c;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.services-catalog-result--featured[href] {
    border-color: rgba(255, 197, 45, .42);
    background: #fffdf6;
}

.services-catalog-result--danger[href] {
    border-color: #f0b7b7;
    background: #fff3f3;
}

.services-catalog-result--danger::before {
    background: #d93025;
}

.services-catalog-result--danger .services-catalog-result__action {
    background: rgba(217, 48, 37, .1);
    color: #b42318;
}

.services-catalog-result--danger .services-catalog-result__match {
    background: rgba(217, 48, 37, .1);
    color: #b42318;
}

.services-catalog__empty {
    margin: 18px 0 0;
    padding: 18px;
    border-radius: 8px;
    background: var(--service-index-soft);
    color: var(--service-index-muted);
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 900px) {
    .service-index-page .service-landing-hero__grid,
    .services-catalog-group__links,
    .services-catalog__results-list {
        grid-template-columns: 1fr;
    }

    .services-catalog__tools {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 681px) and (max-width: 1050px) {
    .services-catalog-group__links,
    .services-catalog__results-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .service-index-page .service-landing-hero__grid,
    .services-catalog__inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .service-index-page .service-landing-hero {
        padding-top: 26px;
        padding-bottom: 30px;
    }

    .service-index-page .service-landing-hero__title {
        font-size: 32px;
    }

    .service-index-page .service-landing-hero__lead {
        font-size: 16px;
    }

    .service-index-page .service-landing-checks {
        display: grid;
        grid-template-columns: 1fr;
    }

    .service-index-page .service-landing-button {
        width: 100%;
    }

    .services-catalog__inner {
        padding-top: 34px;
        padding-bottom: 52px;
    }

    .services-catalog__head p:not(.services-catalog__eyebrow) {
        font-size: 15px;
    }

    .services-catalog-helper {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        max-width: none;
        margin-top: 18px;
        padding: 12px;
    }

    .services-catalog-helper__link[href] {
        width: 100%;
        min-width: 0;
    }

    .services-catalog-helper + .service-landing-about-band {
        width: 100%;
        margin-top: 18px;
        border-radius: 8px;
    }

    .services-catalog-helper + .service-landing-about-band .container-about-tg {
        padding: 18px;
    }

    .services-catalog-card__toggle {
        align-items: flex-start;
        gap: 11px;
        padding: 14px 13px 14px 18px;
    }

    .services-catalog-card__icon {
        width: 42px;
        height: 42px;
    }

    .services-catalog-card__icon img {
        width: 24px;
        height: 24px;
    }

    .services-catalog-card__title {
        font-size: 16px;
        line-height: 1.24;
    }

    .services-catalog-card__chevron {
        width: 30px;
        height: 30px;
        margin-top: 4px;
    }

    .services-catalog-card__body {
        padding: 12px;
    }

    .services-catalog-group {
        padding: 9px;
    }

    .services-catalog-result[href] {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .services-catalog-result__action {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        white-space: normal;
    }

    .services-catalog-link[href] {
        font-size: 14px;
        border-radius: 8px;
        width: 100%;
    }
}
