/* service-single.css */

/* --- Breadcrumbs --- */
.srv-crumbs {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border-light);
    padding: 14px 0;
}

/* --- Hero --- */
.srv-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 64px 0 56px;
    overflow: hidden;
    position: relative;
}

.srv-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(192,57,43,.18) 0%, transparent 70%);
    pointer-events: none;
}

.srv-hero__body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
}

.srv-hero__price-badge {
    display: inline-block;
    background: rgba(192, 57, 43, .18);
    border: 1px solid rgba(192, 57, 43, .35);
    color: #ff8a80;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
    letter-spacing: .03em;
}

.srv-hero__h1 {
    font-size: clamp(28px, 3.8vw, 50px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -.02em;
}

.srv-hero__sub {
    font-size: 16px;
    color: rgba(255,255,255,.72);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 520px;
}

.srv-hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.srv-hero__trust {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.srv-hero__trust span {
    font-size: 13px;
    color: rgba(255,255,255,.55);
}

/* --- Hero media (image or placeholder) --- */
.srv-hero__media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.srv-hero__img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-xl);
}

.srv-hero__media--placeholder {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    padding: 28px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.srv-hero__chart svg {
    width: 100%;
    height: auto;
    display: block;
}

.srv-hero__chart-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.35);
    text-align: center;
    margin-top: 6px;
}

.srv-hero__stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 16px;
}

.srv-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.srv-hero__stat-val {
    font-size: 22px;
    font-weight: 800;
    color: #ff6b6b;
    line-height: 1;
    letter-spacing: -.02em;
}

.srv-hero__stat-key {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    text-align: center;
    line-height: 1.3;
}

/* --- Main content --- */
.srv-body {
    padding: 72px 0;
    background: var(--color-bg);
}

.srv-body__inner {
    max-width: 900px;
}

/* Rich content styles */
.srv-content h2 {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--color-secondary);
    margin: 48px 0 16px;
    letter-spacing: -.01em;
    padding-left: 18px;
    border-left: 4px solid var(--color-primary);
    line-height: 1.25;
}

.srv-content h2:first-child {
    margin-top: 0;
}

.srv-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 32px 0 12px;
}

.srv-content p {
    color: var(--color-text);
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 15px;
}

.srv-content ul,
.srv-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.srv-content li {
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: 8px;
    font-size: 15px;
}

.srv-content strong {
    color: var(--color-secondary);
    font-weight: 600;
}

/* Tables */
.srv-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 14px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

.srv-content table thead tr {
    background: var(--color-secondary);
    color: #fff;
}

.srv-content table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.srv-content table tbody tr {
    border-bottom: 1px solid var(--color-border-light);
    transition: background .2s;
}

.srv-content table tbody tr:last-child {
    border-bottom: none;
}

.srv-content table tbody tr:hover {
    background: var(--color-bg-alt);
}

.srv-content table td {
    padding: 13px 18px;
    color: var(--color-text);
    line-height: 1.5;
    vertical-align: top;
}

.srv-content table td strong {
    color: var(--color-primary);
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .srv-hero__body {
        grid-template-columns: 1fr;
    }
    .srv-hero__media {
        display: none;
    }
}

@media (max-width: 768px) {
    .srv-hero { padding: 48px 0 40px; }
    .srv-body  { padding: 48px 0; }
    .srv-content h2 { font-size: 20px; }
    .srv-content table { font-size: 13px; }
    .srv-content table th,
    .srv-content table td { padding: 10px 12px; }
}

/* ═══════════════════════════════════════════════════
   SP-* BEM — универсальные секции страницы услуги
   ═══════════════════════════════════════════════════ */

/* --- Shared titles --- */
.sp-section-title {
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.sp-section-title--light {
    color: #fff;
}

.sp-section-sub {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 640px;
}

.sp-section-sub--light {
    color: rgba(255,255,255,.72);
}

/* --- Shared cards grid --- */
.sp-cards {
    display: grid;
    gap: 24px;
    margin-top: 40px;
}

.sp-cards--2 { grid-template-columns: repeat(2, 1fr); }
.sp-cards--3 { grid-template-columns: repeat(3, 1fr); }
.sp-cards--4 { grid-template-columns: repeat(4, 1fr); }

.sp-card {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}

.sp-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.sp-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(192, 57, 43, .08);
    border-radius: var(--radius-md, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.sp-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
}

.sp-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.sp-card__desc {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.65;
    margin: 0;
}

/* ─── ADVANTAGES ─── */
.sp-advantages {
    padding: 72px 0;
    background: var(--color-bg);
}

.sp-advantages .sp-section-title {
    margin-bottom: 0;
}

/* ─── GUARANTEE ─── */
.sp-guarantee {
    padding: 72px 0;
    background: var(--color-secondary);
}

.sp-guarantee .sp-section-title {
    margin-bottom: 40px;
}

.sp-guarantee__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sp-guarantee__item {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    background: rgba(255,255,255,.05);
    transition: background .2s;
}

.sp-guarantee__item:hover {
    background: rgba(255,255,255,.09);
}

.sp-guarantee__num {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-primary, #c0392b);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -.03em;
}

.sp-guarantee__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sp-guarantee__desc {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
    margin: 0;
}

/* ─── BRING TOP ─── */
.sp-bring {
    padding: 72px 0;
    background: var(--color-secondary);
}

.sp-bring .sp-section-title {
    color: #fff;
    margin-bottom: 48px;
}

.sp-bring__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sp-bring__item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: background .2s, transform .2s;
}

.sp-bring__item:hover {
    background: rgba(255,255,255,.09);
    transform: translateY(-2px);
}

.sp-bring__icon {
    width: 52px;
    height: 52px;
    background: rgba(192, 57, 43, .25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-bring__icon svg {
    width: 24px;
    height: 24px;
    stroke: #ff8a80;
}

.sp-bring__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.sp-bring__desc {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
    margin: 0;
}

/* ─── PROMO FEATURES ─── */
.sp-features {
    padding: 72px 0;
    background: var(--color-bg);
}

.sp-features__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.sp-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sp-features__item {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}

.sp-features__item:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.09);
    transform: translateY(-2px);
}

.sp-features__item--accent {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.sp-features__item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(192, 57, 43, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.sp-features__item--accent .sp-features__item-icon {
    background: rgba(255,255,255,.1);
}

.sp-features__item-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-primary);
}

.sp-features__item--accent .sp-features__item-icon svg {
    stroke: #fff;
}

.sp-features__item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.sp-features__item--accent .sp-features__item-title {
    color: #fff;
}

.sp-features__item-desc {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.sp-features__item--accent .sp-features__item-desc {
    color: rgba(255,255,255,.72);
}

/* ─── TIMELINE (result_see_months) ─── */
.sp-timeline {
    padding: 72px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.sp-timeline .sp-section-title {
    color: #fff;
    margin-bottom: 48px;
}

.sp-timeline__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    position: relative;
}

.sp-timeline__grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,.12);
}

.sp-timeline__item {
    position: relative;
    padding: 0 16px 0 0;
}

.sp-timeline__num {
    width: 56px;
    height: 56px;
    background: var(--color-primary, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.sp-timeline__month {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sp-timeline__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-timeline__list li {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    line-height: 1.5;
    margin-bottom: 6px;
    padding-left: 14px;
    position: relative;
}

.sp-timeline__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary, #c0392b);
    font-size: 11px;
    top: 1px;
}

/* ─── RESULTS MONTHS ─── */
.sp-results {
    padding: 72px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.sp-results .sp-section-title {
    color: #fff;
    margin-bottom: 36px;
}

.sp-results__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sp-results__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-md, 8px);
    padding: 16px 18px;
}

.sp-results__check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(192, 57, 43, .3);
    color: #ff8a80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

.sp-results__item p {
    font-size: 14px;
    color: rgba(255,255,255,.8);
    line-height: 1.6;
    margin: 0;
}

.sp-results__desc {
    margin-top: 32px;
    font-size: 15px;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
}

/* ─── RATES (тарифы) ─── */
.sp-rates {
    padding: 72px 0;
    background: var(--color-bg);
}

.sp-rates .sp-section-title {
    margin-bottom: 40px;
}

.sp-rates__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.sp-rates__card {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow .2s, transform .2s;
}

.sp-rates__card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
    transform: translateY(-3px);
}

.sp-rates__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.2;
}

.sp-rates__price {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -.02em;
    line-height: 1;
}

.sp-rates__features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--color-border-light);
    padding-top: 16px;
    flex: 1;
}

.sp-rates__features li {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
    padding: 6px 0 6px 20px;
    position: relative;
    border-bottom: 1px solid var(--color-border-light);
}

.sp-rates__features li:last-child {
    border-bottom: none;
}

.sp-rates__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 12px;
    top: 7px;
}

/* ─── COST ACCORDION ─── */
.sp-cost {
    padding: 72px 0;
    background: var(--color-bg-alt);
}

.sp-cost .sp-section-title {
    margin-bottom: 36px;
}

.sp-cost__body {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: start;
}

.sp-cost__body--no-image {
    grid-template-columns: 1fr;
}

.sp-cost__accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-cost__item {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sp-cost__item[open] {
    border-color: rgba(192, 57, 43, .3);
}

.sp-cost__q {
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}

.sp-cost__q::-webkit-details-marker { display: none; }

.sp-cost__q::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--color-primary);
    flex-shrink: 0;
    line-height: 1;
    transition: transform .2s;
}

.sp-cost__item[open] .sp-cost__q::after {
    transform: rotate(45deg);
}

.sp-cost__a {
    padding: 0 22px 18px;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
}

.sp-cost__a p { margin: 0 0 8px; }
.sp-cost__a p:last-child { margin-bottom: 0; }

.sp-cost__media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 40px rgba(0,0,0,.12);
    display: block;
}

/* ─── CONTENT (the_content) + TOC sidebar ─── */
.sp-content {
    padding: 72px 0;
    background: var(--color-bg);
}

/* .sp-toc removed — inner content TOC replaced by full-page nav sidebar */

/* orphan placeholder to avoid selector gap */
.sp-toc__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-text-muted, #94a3b8);
    margin-bottom: 14px;
}

.sp-toc__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-toc__link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm, 6px);
    text-decoration: none;
    transition: all .2s;
    border-left: 2px solid transparent;
    cursor: pointer;
}

.sp-toc__link:hover {
    background: var(--color-bg-alt);
    border-left-color: var(--color-border);
}

.sp-toc__link.is-active {
    background: rgba(192,57,43,.06);
    border-left-color: var(--color-primary);
}

.sp-toc__num {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 3px;
    letter-spacing: .05em;
    min-width: 22px;
}

.sp-toc__text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text-muted, #94a3b8);
    transition: color .2s;
}

.sp-toc__link:hover .sp-toc__text,
.sp-toc__link.is-active .sp-toc__text {
    color: var(--color-secondary);
}

.sp-content__main {
    min-width: 0;
}

/* ─── FAQ ─── */
.sp-faq {
    padding: 72px 0;
}

.sp-faq.section--alt {
    background: var(--color-bg-alt);
}

.sp-faq .sp-section-title {
    margin-bottom: 36px;
}

/* ─── RELATED SERVICES ─── */
.sp-related {
    padding: 64px 0;
    background: var(--color-bg-alt, #f8fafc);
}

.sp-related .sp-section-title {
    margin-bottom: 32px;
}

.sp-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sp-related__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px 20px;
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    min-height: 110px;
}

.sp-related__card:hover {
    border-color: var(--clr-accent, #e63946);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.sp-related__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-heading, #0f172a);
    margin: 0 0 12px;
}

.sp-related__arrow {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-accent, #e63946);
    align-self: flex-end;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .sp-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-guarantee__grid,
    .sp-bring__grid,
    .sp-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-rates__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-cost__body {
        grid-template-columns: 1fr;
    }

    .sp-cost__media {
        display: none;
    }
}

@media (max-width: 768px) {
    .sp-advantages,
    .sp-guarantee,
    .sp-bring,
    .sp-features,
    .sp-timeline,
    .sp-results,
    .sp-rates,
    .sp-cost,
    .sp-content,
    .sp-faq {
        padding: 48px 0;
    }

    .sp-related__grid {
        grid-template-columns: 1fr;
    }

    .sp-related {
        padding: 40px 0;
    }

    .sp-cards--3,
    .sp-cards--4 {
        grid-template-columns: 1fr;
    }

    .sp-guarantee__grid,
    .sp-bring__grid,
    .sp-features__grid,
    .sp-results__list {
        grid-template-columns: 1fr;
    }

    .sp-rates__grid {
        grid-template-columns: 1fr;
    }

    .sp-timeline__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sp-timeline__grid::before {
        display: none;
    }

    .sp-section-title {
        font-size: 22px;
    }

    .sp-cards--2 {
        grid-template-columns: 1fr;
    }

    .sp-hero__stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 480px) {
    .sp-hero__stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sp-cards {
        gap: 16px;
        margin-top: 24px;
    }

    .sp-card {
        padding: 20px 18px;
    }
}

/* ═══════════════════════════════════════════
   FULL-PAGE TOC SIDEBAR (fixed left)
   ═══════════════════════════════════════════ */
.sp-pagetoc {
    position: fixed;
    /* Показываем только если слева есть минимум 240px свободного места */
    left: max(16px, calc(50% - 760px));
    top: 140px;
    width: 200px;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 16px 12px;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity .3s, transform .3s;
}

.sp-pagetoc--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.sp-pagetoc__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-text-muted, #94a3b8);
    padding: 0 8px;
    margin-bottom: 10px;
}

.sp-pagetoc__list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sp-pagetoc__link {
    display: block;
    padding: 7px 8px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--color-text-muted, #64748b);
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all .15s;
}

.sp-pagetoc__link:hover {
    background: var(--color-bg-alt);
    color: var(--color-secondary);
}

.sp-pagetoc__link.is-active {
    background: rgba(192,57,43,.06);
    border-left-color: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 600;
}

/* Скрываем если нет места слева от контейнера (контейнер 1280px + 2×220px TOC) */
@media (max-width: 1720px) {
    .sp-pagetoc { display: none; }
}

/* ═══════════════════════════════════════════
   CONTENT ACCORDION (H2 → details)
   ═══════════════════════════════════════════ */
.sp-acc {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.sp-acc[open] {
    border-color: rgba(192,57,43,.25);
}

.sp-acc__head {
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-bg-alt);
    transition: background .2s;
    user-select: none;
    gap: 12px;
}

.sp-acc__head::-webkit-details-marker { display: none; }

.sp-acc__head::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--color-primary);
    flex-shrink: 0;
    line-height: 1;
    transition: transform .25s;
}

.sp-acc[open] .sp-acc__head::after {
    transform: rotate(45deg);
}

.sp-acc__h2 {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.3;
    display: block;
    /* Remove the border-left from srv-content h2 */
    padding-left: 0;
    border-left: none;
    margin: 0;
}

.sp-acc__body {
    padding: 20px 24px 24px;
}

.sp-acc__body p { font-size: 14.5px; line-height: 1.75; color: var(--color-text); margin-bottom: 14px; }
.sp-acc__body h3 { font-size: 16px; font-weight: 700; color: var(--color-secondary); margin: 20px 0 8px; }
.sp-acc__body ul, .sp-acc__body ol { padding-left: 20px; margin-bottom: 16px; }
.sp-acc__body li { font-size: 14px; color: var(--color-text); line-height: 1.65; margin-bottom: 6px; }
.sp-acc__body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border-light); }
.sp-acc__body table thead tr { background: var(--color-secondary); color: #fff; }
.sp-acc__body table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.sp-acc__body table td { padding: 10px 14px; color: var(--color-text); border-bottom: 1px solid var(--color-border-light); }
.sp-acc__body table tbody tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════
   TARIFF TABLE (same as front-page)
   ═══════════════════════════════════════════ */
.sp-tariffs {
    padding: 72px 0;
    background: var(--color-bg-alt);
}

.sp-tariffs .sp-section-title {
    margin-bottom: 0;
}

.tariff-table {
    margin-top: 48px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(15,23,42,.12);
}

.tariff-table__header,
.tariff-table__row {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    align-items: stretch;
}

.tariff-table__header { background: #0f172a; }

.tariff-table__header .tariff-table__label-col {
    padding: 28px 24px;
    background: #0f172a;
}

.tariff-table__header .tariff-table__plan-col {
    padding: 28px 20px;
    text-align: center;
    border-left: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.tariff-table__header .tariff-table__plan-col--featured {
    background: var(--color-primary);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}

.tariff-table__badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
}

.tariff-table__stars { display: flex; justify-content: center; gap: 3px; }
.tariff-table__star { color: #ffd700; filter: drop-shadow(0 0 4px rgba(255,215,0,.5)); }

.tariff-table__name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -.01em;
}

.tariff-table__row > .tariff-table__plan-col:nth-child(3) {
    background: rgba(192,57,43,.04);
    border-left: 2px solid rgba(192,57,43,.15);
    border-right: 2px solid rgba(192,57,43,.15);
}

.tariff-table__body { background: #fff; border-top: 1px solid #e8eaed; }
.tariff-table__category { border-bottom: 1px solid #e8eaed; }
.tariff-table__category:last-child { border-bottom: none; }

.tariff-table__cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #f7f9fc;
    border: none;
    cursor: pointer;
    padding: 15px 24px;
    text-align: left;
    transition: background .18s;
}
.tariff-table__cat-head:hover { background: #eef2f7; }

.tariff-table__cat-head > span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tariff-table__cat-head > span:first-child::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.tariff-table__arrow { color: #94a3b8; flex-shrink: 0; transition: transform .22s; }
.tariff-table__cat-head[aria-expanded="true"] .tariff-table__arrow { transform: rotate(180deg); }
.tariff-table__cat-body[hidden] { display: none; }

.tariff-table__row {
    border-top: 1px solid #f1f3f6;
    background: #fff;
    transition: background .15s;
}
.tariff-table__row:hover { background: #fafbfd; }
.tariff-table__row:nth-child(even) { background: #fafbfc; }

.tariff-table__label-col { padding: 11px 24px; }
.tariff-table__row-label { font-size: 13.5px; color: #374151; line-height: 1.45; }

.tariff-table__check {
    text-align: center;
    padding: 11px 8px;
    border-left: 1px solid #f1f3f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tariff-table__check--yes { color: #16a34a; }
.tariff-table__check--yes svg { filter: drop-shadow(0 0 3px rgba(22,163,74,.25)); }
.tariff-table__check--no { color: #d1d5db; font-size: 18px; font-weight: 300; line-height: 1; }
.tariff-table__check--text { font-size: 12.5px; color: #1e293b; font-weight: 600; line-height: 1.3; padding: 11px 10px; }

.tariff-table__row > .tariff-table__check:nth-child(3) {
    background: rgba(192,57,43,.03);
    border-left: 2px solid rgba(192,57,43,.12);
    border-right: 2px solid rgba(192,57,43,.12);
}

.tariff-table__footer { background: #fff; border-top: 2px solid #e8eaed; }
.tariff-table__footer .tariff-table__row { background: transparent; border-top: 1px solid #e8eaed; }
.tariff-table__footer .tariff-table__label-col { padding: 16px 24px; font-size: 13px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.tariff-table__footer .tariff-table__plan-col { padding: 16px; font-size: 13.5px; color: #374151; border-left: 1px solid #e8eaed; text-align: center; line-height: 1.5; }

.tariff-table__row--price { background: #f7f9fc !important; }
.tariff-table__row--price .tariff-table__plan-col { background: #f7f9fc; padding: 24px 16px; }
.tariff-table__row--price > .tariff-table__plan-col:nth-child(3) { background: rgba(192,57,43,.06) !important; }

.tariff-table__price { display: block; font-size: 30px; font-weight: 800; color: var(--color-primary); line-height: 1.1; letter-spacing: -.02em; }
.tariff-table__unit { display: block; font-size: 12px; color: #94a3b8; margin-top: 3px; }

.tariff-table__row--cta { background: #fff !important; }
.tariff-table__row--cta .tariff-table__plan-col { padding: 20px 16px; background: transparent; }
.tariff-table__row--cta .btn { width: 100%; justify-content: center; font-size: 14px; }

.tariff__note { text-align: center; color: #94a3b8; font-size: 14px; margin-top: 24px; }
.tariff__note a { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
    .tariff-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    .tariff-table::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255,255,255,.6));
        pointer-events: none;
        border-radius: 0 20px 20px 0;
    }
    .tariff-table__header,
    .tariff-table__row { min-width: 560px; }
}

@media (max-width: 600px) {
    .tariff-table__header,
    .tariff-table__row { min-width: 480px; }
    .tariff-table__name { font-size: 16px; }
    .tariff-table__price { font-size: 18px; }
    .tariff-table__header .tariff-table__plan-col { padding: 20px 12px; }
    .tariff-table__header .tariff-table__label-col { padding: 20px 14px; }
}

/* ═══════════════════════════════════════════
   CASES (same as front-page)
   ═══════════════════════════════════════════ */
.sp-cases {
    padding: 72px 0;
    background: var(--color-bg-alt);
}

.sp-cases .sp-section-title {
    margin-bottom: 40px;
}

.case-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,.07);
    border-top: 4px solid var(--color-primary);
    transition: box-shadow .25s, transform .25s;
}
.case-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,.12); transform: translateY(-4px); }

.case-card__head { display: flex; flex-direction: column; gap: 10px; }
.case-card__niche { font-size: 15px; font-weight: 700; color: #1e293b; line-height: 1.3; }
.case-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-card__tag { font-size: 12px; color: #64748b; background: #f1f5f9; padding: 3px 10px; border-radius: 20px; }

.case-card__metrics { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff9f9; border-radius: 12px; border: 1px solid #fee2e2; }
.case-card__metric { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.case-card__metric-num { font-size: 36px; font-weight: 800; color: var(--color-primary); line-height: 1; letter-spacing: -.02em; }
.case-card__metric-num--sec { font-size: 28px; }
.case-card__metric-label { font-size: 12px; color: #64748b; line-height: 1.3; }
.case-card__metric-sep { width: 1px; height: 48px; background: #fca5a5; flex-shrink: 0; }

.case-card__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-card__list li { font-size: 13px; color: #475569; padding-left: 18px; position: relative; line-height: 1.4; }
.case-card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; font-size: 12px; }

.case-card__link { font-size: 14px; font-weight: 600; color: var(--color-primary); text-decoration: none; margin-top: auto; transition: opacity .2s; }
.case-card__link:hover { opacity: .75; }

@media (max-width: 1024px) {
    .case-cards { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════
   REVIEWS SLIDER (same as front-page)
   ═══════════════════════════════════════════ */
.sp-reviews {
    padding: 72px 0;
    background: var(--color-bg);
}

.sp-reviews .sp-section-title {
    margin-bottom: 40px;
}

.reviews-slider { position: relative; }
.reviews-slider__viewport { overflow: hidden; border-radius: 16px; }
.reviews-slider__track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.reviews-slider__slide { flex: 0 0 100%; min-width: 0; }

.reviews-card { display: grid; grid-template-columns: 280px 1fr; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 32px rgba(0,0,0,.08); min-height: 340px; }
.reviews-card__letter { background: #f8f9fb; display: flex; align-items: center; justify-content: center; padding: 32px; border-right: 1px solid #eef0f4; }
.reviews-card__letter-img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

.reviews-card__letter-placeholder { width: 100%; max-width: 180px; background: #fff; border: 1px solid #dde1e8; border-radius: 4px; padding: 20px; position: relative; box-shadow: 2px 4px 16px rgba(0,0,0,.12); min-height: 220px; display: flex; flex-direction: column; gap: 10px; }
.reviews-card__letter-stamp { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; background: var(--color-primary); color: #fff; font-size: 8px; font-weight: 700; text-align: center; line-height: 1.3; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.reviews-card__letter-lines { margin-top: 12px; }
.reviews-card__letter-lines span { display: block; height: 7px; background: #e8eaed; border-radius: 4px; margin-bottom: 8px; }
.reviews-card__letter-lines span:nth-child(3) { width: 75%; }
.reviews-card__letter-lines span:nth-child(5) { width: 55%; }
.reviews-card__letter-seal { text-align: center; font-size: 28px; color: var(--color-primary); margin-top: auto; opacity: .65; }

.reviews-card__body { padding: 40px 48px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.reviews-card__stars { display: flex; gap: 3px; }
.reviews-card__star { color: #ddd; font-size: 22px; line-height: 1; }
.reviews-card__star--on { color: #ffd700; }
.reviews-card__quote { font-size: 17px; line-height: 1.65; color: #444; margin: 0; font-style: italic; border-left: 3px solid var(--color-primary); padding-left: 16px; }
.reviews-card__author { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.reviews-card__name { font-size: 16px; font-weight: 700; color: #1e293b; }
.reviews-card__pos { font-size: 14px; color: #888; }

.reviews-slider__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.reviews-slider__btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--color-primary); background: #fff; color: var(--color-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; flex-shrink: 0; }
.reviews-slider__btn:hover { background: var(--color-primary); color: #fff; }
.reviews-slider__dots { display: flex; gap: 8px; }
.reviews-slider__dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; border: none; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.reviews-slider__dot.is-active { background: var(--color-primary); transform: scale(1.3); }

/* Video review card */
.reviews-card--video { grid-template-columns: 420px 1fr; }
.reviews-card__video-wrap { position: relative; background: #0f172a; overflow: hidden; }
.reviews-card__video-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.reviews-card__video-placeholder::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%); }
.reviews-card__play-btn { position: relative; z-index: 1; background: none; border: none; cursor: pointer; transition: transform .2s; }
.reviews-card__play-btn:hover { transform: scale(1.1); }
.reviews-card__video-badge { position: absolute; bottom: 16px; left: 16px; z-index: 1; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 4px; display: flex; align-items: center; gap: 6px; }
.reviews-card__video-frame { width: 100%; height: 100%; }
.reviews-card__video-frame iframe { width: 100%; height: 100%; display: block; border: none; }
.reviews-card__letter-link { display: block; position: relative; }
.reviews-card__letter-zoom { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }

@media (max-width: 768px) {
    .reviews-card { grid-template-columns: 1fr; }
    .reviews-card--video { grid-template-columns: 1fr; }
    .reviews-card__letter { display: none; }
    .reviews-card__video-wrap { display: block; min-height: 220px; position: relative; }
    .reviews-card__body { padding: 24px; }
}
