/* Brand template isolation (tpl-brand) */
.tpl-brand .service-page--brand {
    gap: 18px;
    --brand-title-size: clamp(30px, 2.25vw, 42px);
    --brand-text-size: clamp(16px, 1.05vw, 19px);
    --brand-list-size: clamp(16px, 1.02vw, 19px);
    --brand-line-height: 1.4;
}

.tpl-brand .service-page--brand > section {
    padding: 30px 36px;
    border-radius: 28px;
    border: 1px solid #c9d5e9;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow:
        0 12px 28px rgba(21, 42, 79, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tpl-brand .service-page--brand > section > h2 {
    margin: 0 0 14px;
    font-size: var(--brand-title-size);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #121f3a;
}

.tpl-brand .service-page--brand > section > p {
    margin: 0 0 14px;
    color: #202d45;
    font-size: var(--brand-text-size);
    line-height: var(--brand-line-height);
}

.tpl-brand .service-page--brand .section-subtitle {
    max-width: 64ch;
    color: #486182;
}

.tpl-brand .service-page--brand > section > ul:not(.brand-index-list):not(.faq-list) {
    margin: 10px 0 0;
    padding-left: 28px;
}

.tpl-brand .service-page--brand > section > ul > li {
    color: #1b2942;
    font-size: var(--brand-list-size);
    line-height: var(--brand-line-height);
}

.tpl-brand .service-page--brand > section > ul > li + li {
    margin-top: 10px;
}

.tpl-brand .service-page--brand .brand-index-link {
    border-color: #cfdaec;
    background: #ffffff;
}

.tpl-brand .service-page--brand .brand-index-list,
.tpl-brand .service-page--brand .faq-list {
    margin-left: 0;
    padding-left: 0;
}

.tpl-brand .service-page--brand .pricing-table {
    border-radius: 16px;
    overflow: hidden;
}

.tpl-brand .service-page--brand .pricing-table-wrap {
    border-radius: 18px;
    border: 1px solid #d5deef;
    background: #ffffff;
}

.tpl-brand .service-page--brand .pricing-note {
    color: #486182;
}

.tpl-brand .service-page--brand .process-outro-note {
    margin-top: 18px;
    margin-bottom: 0;
}

.tpl-brand .service-page--brand .steps {
    gap: 12px;
}

.tpl-brand .service-page--brand .process-section .steps + .pricing-note {
    margin-top: 22px;
}

.tpl-brand .service-page--brand .step {
    border: 1px solid #d3deef;
    background: #ffffff;
}

.tpl-brand .service-page--brand .faq-list details {
    border: 1px solid #d5e0f1;
    border-radius: 14px;
    padding: 14px 16px;
    background: #ffffff;
}

.tpl-brand .service-page--brand .faq-list details + details {
    margin-top: 10px;
}

.tpl-brand .service-page--brand .issue-final-cta {
    border-color: #c8d6ee;
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(160, 198, 247, 0.22) 0%, rgba(160, 198, 247, 0) 72%),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

/* Brand page: highlighted "Типовые причины" section */
.tpl-brand .service-page--brand .brand-cause-section {
    padding: 30px 36px;
    border-radius: 28px;
    border: 1px solid #c9d5e9;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow:
        0 12px 28px rgba(21, 42, 79, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tpl-brand .service-page--brand .brand-cause-section > h2 {
    margin: 0 0 14px;
    max-width: none;
}

.tpl-brand .service-page--brand .brand-cause-section > p {
    margin: 0 0 14px;
    max-width: none;
    color: #202d45;
}

.tpl-brand .service-page--brand .brand-cause-section > ul {
    margin: 10px 0 0;
    padding-left: 28px;
    display: block;
}

.tpl-brand .service-page--brand .brand-cause-section > ul > li {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1b2942;
}

.tpl-brand .service-page--brand .brand-cause-section > ul > li + li {
    margin-top: 10px;
}

.tpl-brand .service-page--brand .brand-cause-section > p:last-child {
    margin-top: 18px;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #202d45;
    font-weight: 500;
}

/* Brand page: primary "Особенности" section with stronger structure */
.tpl-brand .service-page--brand .brand-features-section {
    position: relative;
    overflow: hidden;
    border-color: #b8cbe8;
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(178, 204, 243, 0.18) 0%, rgba(178, 204, 243, 0) 74%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
    box-shadow:
        0 14px 30px rgba(20, 45, 84, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.tpl-brand .service-page--brand .brand-features-section::after {
    content: "";
    position: absolute;
    left: 0;
    top: 26px;
    bottom: 26px;
    width: 5px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, #0e59d6 0%, #79aff8 100%);
    opacity: 0.85;
}

.tpl-brand .service-page--brand .brand-features-section > * {
    position: relative;
    z-index: 1;
}

.tpl-brand .service-page--brand .brand-features-section > h2 {
    margin-bottom: 12px;
    max-width: 26ch;
}

.tpl-brand .service-page--brand .brand-features-section > p {
    max-width: 58ch;
    margin-bottom: 16px;
}

.tpl-brand .service-page--brand .brand-features-section > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    max-width: 72ch;
}

.tpl-brand .service-page--brand .brand-features-section > ul > li {
    position: relative;
    margin: 0;
    padding: 13px 0 13px 34px;
    border: 0;
    border-bottom: 1px solid #d4dff1;
    border-radius: 0;
    background: transparent;
    font-size: clamp(16px, 1.06vw, 20px);
    line-height: 1.4;
}

.tpl-brand .service-page--brand .brand-features-section > ul > li + li {
    margin-top: 0;
}

.tpl-brand .service-page--brand .brand-features-section > ul > li:last-child {
    border-bottom: 0;
}

.tpl-brand .service-page--brand .brand-features-section > ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid #adc4ea;
    background:
        radial-gradient(circle at 50% 50%, #2f68bc 0 2.5px, transparent 3px 100%),
        #edf3ff;
}

@media (max-width: 980px) {
    .tpl-brand .service-page--brand > section {
        padding: 24px;
        border-radius: 24px;
    }

    .tpl-brand .service-page--brand > section > h2 {
        font-size: clamp(28px, 5.4vw, 38px);
    }

    .tpl-brand .service-page--brand > section > p,
    .tpl-brand .service-page--brand > section > ul > li {
        font-size: clamp(16px, 2vw, 18px);
    }

    .tpl-brand .service-page--brand .brand-cause-section {
        padding: 24px;
        border-radius: 24px;
    }

    .tpl-brand .service-page--brand .brand-cause-section > ul {
        padding-left: 28px;
    }

    .tpl-brand .service-page--brand .brand-features-section::after {
        top: 20px;
        bottom: 20px;
    }

    .tpl-brand .service-page--brand .brand-features-section > p,
    .tpl-brand .service-page--brand .brand-features-section > ul {
        max-width: 100%;
    }

    .tpl-brand .service-page--brand .brand-features-section > ul > li {
        font-size: clamp(16px, 1.95vw, 19px);
    }
}

@media (max-width: 640px) {
    .tpl-brand .service-page--brand > section {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .tpl-brand .service-page--brand > section > h2 {
        margin-bottom: 10px;
        font-size: clamp(28px, 8.2vw, 34px);
    }

    .tpl-brand .service-page--brand > section > p,
    .tpl-brand .service-page--brand > section > ul > li {
        font-size: clamp(15px, 4.1vw, 18px);
        line-height: 1.38;
    }

    .tpl-brand .service-page--brand > section > ul:not(.brand-index-list):not(.faq-list) {
        padding-left: 22px;
    }

    .tpl-brand .service-page--brand .brand-cause-section {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .tpl-brand .service-page--brand .brand-cause-section > h2 {
        margin-bottom: 9px;
    }

    .tpl-brand .service-page--brand .brand-cause-section > p {
        margin-bottom: 12px;
    }

    .tpl-brand .service-page--brand .brand-cause-section > ul {
        padding-left: 24px;
    }

    .tpl-brand .service-page--brand .brand-cause-section > ul > li {
        padding: 0;
    }

    .tpl-brand .service-page--brand .brand-features-section::after {
        width: 4px;
        top: 16px;
        bottom: 16px;
    }

    .tpl-brand .service-page--brand .brand-features-section > p {
        margin-bottom: 12px;
    }

    .tpl-brand .service-page--brand .brand-features-section > ul > li {
        padding: 10px 0 10px 30px;
        font-size: clamp(15px, 4.1vw, 18px);
    }

    .tpl-brand .service-page--brand .brand-features-section > ul > li::before {
        width: 12px;
        height: 12px;
    }
}
