/* =============================================================
   NDFL — ng-marketing.css
   Дизайн-система и стили новых маркетинговых блоков.
   Подключается ПОСЛЕ assets/css/main.css.
   ============================================================= */

:root {
    --ng-primary: #6366F1;
    --ng-primary-dark: #4F46E5;
    --ng-violet: #8B5CF6;
    --ng-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --ng-gradient-soft: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
    --ng-bg-base: #FAFBFF;
    --ng-bg-soft: #F8FAFF;
    --ng-card: #FFFFFF;
    --ng-text: #0F172A;
    --ng-text-secondary: #64748B;
    --ng-text-muted: #94A3B8;
    --ng-border: #E2E8F0;
    --ng-border-soft: #F1F5F9;
    --ng-success: #10B981;

    --ng-radius-card: 24px;
    --ng-radius-pill: 999px;
    --ng-radius-btn: 16px;

    --ng-shadow-soft: 0 4px 20px rgba(99, 102, 241, 0.08);
    --ng-shadow-hover: 0 12px 32px rgba(99, 102, 241, 0.16);
    --ng-shadow-card: 0 2px 12px rgba(15, 23, 42, 0.04);

    --ng-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Базовый namespace для всех новых блоков ---------- */
.ng-section {
    padding: clamp(48px, 5vw, 72px) 0;
    background: var(--ng-bg-base);
    color: var(--ng-text);
    position: relative;
}

.ng-section *,
.ng-section *::before,
.ng-section *::after {
    box-sizing: border-box;
}

/* Уменьшаем вертикальные отступы секций лендинга (на ПК были до 120px —
   слишком большие пустые зоны между блоками). Переопределяем .section из main.css. */
.section {
    padding: clamp(48px, 5vw, 72px) 0;
}

/* Контейнер темы (.container) у нас уже есть в main.css — переиспользуем. */

.ng-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================================
   .ng-lead-magnet — лид-магнит «Чек-лист документов 2026»
   ============================================================= */

.ng-lead-magnet {
    /* Перекрывает базовое .ng-section свойство для компактного баннера */
    padding: 80px 0;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #8B5CF6 100%);
    color: #fff;
}

.ng-lead-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 56px 64px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: center;
}

/* ---------- Декоративные слои ---------- */
.ng-lead-card__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
}

.ng-lead-card__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    transition: opacity 600ms var(--ng-ease);
}

.ng-lead-card__glow--top {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.ng-lead-card__glow--bottom {
    bottom: -80px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 70%);
}

.ng-lead-card__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
}

.ng-lead-card:hover .ng-lead-card__glow {
    opacity: 1.25;
}

.ng-lead-card__col {
    position: relative;
    z-index: 1;
    min-width: 0;
}

/* ---------- Левая колонка: мокап чек-листа ---------- */
.ng-checklist-mockup {
    position: relative;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 460px;
}

.ng-mockup-back {
    position: absolute;
    width: 280px;
    height: 360px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    transform: rotate(-6deg) translate(-30px, 20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: transform 600ms var(--ng-ease);
}

.ng-mockup-front {
    position: relative;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 18px;
    transform: rotate(3deg);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 28px 24px;
    transition: transform 600ms var(--ng-ease);
    color: #0F172A;
    display: flex;
    flex-direction: column;
}

.ng-lead-card:hover .ng-mockup-front {
    transform: rotate(0deg) translateY(-8px);
}

.ng-lead-card:hover .ng-mockup-back {
    transform: rotate(-9deg) translate(-40px, 25px);
}

.ng-mockup-front__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ng-mockup-front__logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--ng-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
}

.ng-mockup-front__brand {
    font-size: 13px;
    font-weight: 700;
    color: #1E1B4B;
    letter-spacing: -0.005em;
}

.ng-mockup-front__divider {
    margin: 14px 0;
    height: 1px;
    background: var(--ng-border-soft);
    border: 0;
}

.ng-mockup-front__title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
    margin: 0;
}

.ng-mockup-front__sub {
    font-size: 12px;
    color: var(--ng-text-secondary);
    line-height: 1.4;
    margin: 2px 0 0;
}

.ng-mockup-front__list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ng-mockup-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ng-mockup-row__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--ng-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ng-mockup-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ng-mockup-row__title {
    font-size: 11px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
}

.ng-mockup-row__count {
    font-size: 9px;
    color: #94A3B8;
    line-height: 1.2;
}

.ng-mockup-row__check {
    color: var(--ng-success);
    flex-shrink: 0;
    display: inline-flex;
}

.ng-mockup-row__check--off {
    visibility: hidden;
}

.ng-mockup-front__foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--ng-border-soft);
    text-align: right;
    font-size: 9px;
    color: var(--ng-text-muted);
    letter-spacing: 0.04em;
}

/* PDF-бейдж */
.ng-mockup-pdf-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(12deg);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
    transition: transform 400ms var(--ng-ease);
    z-index: 2;
}

.ng-lead-card:hover .ng-mockup-pdf-badge {
    transform: rotate(0deg) scale(1.1);
}

/* ---------- Правая колонка: контент и форма ---------- */
.ng-lead-content {
    color: #fff;
}

.ng-lead-content__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--ng-radius-pill);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.ng-lead-content__badge svg {
    flex-shrink: 0;
}

.ng-lead-content__title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 20px 0 0;
}

.ng-lead-content__title-accent {
    background: linear-gradient(90deg, #FCD34D 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ng-lead-content__sub {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 16px 0 0;
}

.ng-lead-content__list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ng-lead-content__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

.ng-lead-content__list svg {
    flex-shrink: 0;
    color: #FCD34D;
}

/* ---------- Форма ---------- */
.ng-lead-form-wrap {
    margin-top: 32px;
    max-width: 560px;
}

.ng-lead-form {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: box-shadow 250ms var(--ng-ease);
}

.ng-lead-form.is-error {
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(239, 68, 68, 0.55);
}

.ng-lead-form__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ng-text);
    line-height: 1.4;
}

.ng-lead-form__input::placeholder {
    color: var(--ng-text-muted);
}

.ng-lead-form__input:focus-visible {
    outline: none;
}

.ng-lead-form:focus-within {
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 2px #fff,
        0 0 0 6px rgba(255, 255, 255, 0.35);
}

.ng-lead-form__submit {
    flex-shrink: 0;
    background: var(--ng-gradient);
    color: #fff;
    border: 0;
    padding: 14px 24px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 250ms var(--ng-ease),
                box-shadow 250ms var(--ng-ease),
                background 250ms var(--ng-ease);
    white-space: nowrap;
}

.ng-lead-form__submit svg {
    flex-shrink: 0;
    transition: transform 250ms var(--ng-ease);
}

.ng-lead-form__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.ng-lead-form__submit:hover:not(:disabled) svg {
    transform: translateX(2px);
}

.ng-lead-form__submit:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.ng-lead-form__submit.is-success {
    background: var(--ng-success);
}

.ng-lead-form__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ng-spin 700ms linear infinite;
}

@keyframes ng-spin {
    to { transform: rotate(360deg); }
}

.ng-lead-form__row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.ng-lead-form__consent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.ng-lead-form__consent input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.ng-lead-form__consent-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms var(--ng-ease), border-color 200ms var(--ng-ease);
}

.ng-lead-form__consent-box::after {
    content: '';
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
    opacity: 0;
    transition: opacity 200ms var(--ng-ease);
}

.ng-lead-form__consent input:checked + .ng-lead-form__consent-box {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
}

.ng-lead-form__consent input:checked + .ng-lead-form__consent-box::after {
    opacity: 1;
}

.ng-lead-form__consent input:focus-visible + .ng-lead-form__consent-box {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ng-lead-form__consent a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.ng-lead-form__consent a:hover {
    color: #fff;
}

.ng-lead-form__assurance {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    line-height: 1.4;
}

.ng-lead-form__error {
    margin-top: 10px;
    font-size: 13px;
    color: #FECACA;
    line-height: 1.4;
    min-height: 1em;
}

/* ---------- Социальное доказательство ---------- */
.ng-lead-proof {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px 4px 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--ng-radius-pill);
}

.ng-lead-proof__avatars {
    display: inline-flex;
    align-items: center;
}

.ng-avatar-stub {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-sizing: border-box;
}

.ng-lead-proof__avatars .ng-avatar-stub + .ng-avatar-stub {
    margin-left: -8px;
}

.ng-lead-proof__text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

/* ---------- Success state ---------- */
.ng-lead-form-state {
    position: relative;
    transition: opacity 350ms var(--ng-ease), transform 350ms var(--ng-ease);
}

.ng-lead-form-state.is-leaving {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.ng-lead-success {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 350ms var(--ng-ease), transform 350ms var(--ng-ease);
    margin-top: 24px;
}

.ng-lead-success.is-active {
    display: block;
}

.ng-lead-success.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ng-lead-success__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #34D399;
}

.ng-lead-success__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 20px 0 0;
    letter-spacing: -0.015em;
}

.ng-lead-success__sub {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 12px 0 0;
}

.ng-lead-success__chat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ng-lead-success__chat:hover {
    color: #FCD34D;
}

/* ---------- Три шага (VK-механика) ---------- */
.ng-lm-steps {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ng-lm-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ng-lm-step__num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-top: 1px;
}

.ng-lm-step__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ng-lm-step__text {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

.ng-lm-step__keyword {
    font-weight: 800;
    font-style: normal;
    display: inline-block;
    background: #fff;
    color: #4F46E5;
    border-radius: 8px;
    padding: 2px 10px;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1.5;
}

.ng-lm-step__hint {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
}

/* ---------- Кнопка ВКонтакте ---------- */
.ng-lm-vk-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 15px 24px;
    border-radius: 16px;
    background: #fff;
    color: #4F46E5;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 260ms var(--ng-ease),
                box-shadow 260ms var(--ng-ease);
    width: 100%;
}

.ng-lm-vk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    color: #4338CA;
}

.ng-lm-vk-btn__icon {
    flex-shrink: 0;
    color: #4F46E5;
}

.ng-lm-vk-btn__arrow {
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.5;
    transition: transform 260ms var(--ng-ease), opacity 260ms var(--ng-ease);
}

.ng-lm-vk-btn:hover .ng-lm-vk-btn__arrow {
    transform: translateX(4px);
    opacity: 0.8;
}

/* ---------- Мелкая сноска ---------- */
.ng-lm-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

.ng-lm-note svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ---------- Адаптив-страховка для узких ПК (но НЕ полноценный мобайл) ---------- */
@media (max-width: 1100px) {
    .ng-lead-card {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 48px 40px;
    }
    .ng-lead-content__title {
        font-size: 36px;
    }
}

/* =============================================================
   .sp-section — «С чем поможем — и сколько это стоит»
   Объединённая секция: услуги + цены + trust-строка
   ============================================================= */

/* ---------- Заголовочный блок ---------- */
.sp-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.sp-head__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ng-text);
    margin: 0 0 16px;
}

.sp-head__sub {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ng-text-secondary);
    margin: 0 0 28px;
}

/* ---------- Табы: Физлица / ИП ---------- */
.sp-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 24px auto 28px;
    padding: 5px;
    background: var(--ng-card);
    border: 1px solid var(--ng-border-soft);
    border-radius: var(--ng-radius-pill);
    box-shadow: var(--ng-shadow-card);
}

.sp-head + .sp-tabs {
    display: flex;
    width: max-content;
}

.sp-section .sp-tabs {
    margin-left: auto;
    margin-right: auto;
}

.sp-tab {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: var(--ng-text-muted, #5b6478);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 11px 22px;
    border-radius: var(--ng-radius-pill);
    cursor: pointer;
    transition: color 220ms var(--ng-ease), background 220ms var(--ng-ease), box-shadow 220ms var(--ng-ease);
    white-space: nowrap;
}

.sp-tab:hover { color: var(--ng-text); }

.sp-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    box-shadow: 0 6px 18px -8px rgba(99, 102, 241, 0.55);
}

.sp-tab:focus-visible {
    outline: 2px solid var(--ng-primary);
    outline-offset: 3px;
}

.sp-panel { display: none; }
.sp-panel.is-active { display: block; }

/* ---------- Сетка карточек: 3×2 ---------- */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* ---------- Карточка ---------- */
.sp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    background: var(--ng-card);
    border: 1.5px solid var(--ng-border-soft);
    border-radius: var(--ng-radius-card);
    box-shadow: var(--ng-shadow-card);
    cursor: pointer;
    text-align: left;
    transition: transform 320ms var(--ng-ease),
                box-shadow 320ms var(--ng-ease),
                border-color 320ms var(--ng-ease);
}

.sp-card:hover,
.sp-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: var(--ng-shadow-hover);
    border-color: rgba(99, 102, 241, 0.28);
    outline: none;
}

.sp-card:focus-visible {
    outline: 2px solid var(--ng-primary);
    outline-offset: 3px;
}

/* Выделенная карточка (Не знаете, что выбрать?) */
.sp-card--highlight {
    background: linear-gradient(145deg, #F5F3FF 0%, #EEF2FF 100%);
    border-color: rgba(99, 102, 241, 0.18);
}

.sp-card--highlight:hover,
.sp-card--highlight:focus-visible {
    border-color: rgba(99, 102, 241, 0.38);
    box-shadow: 0 14px 36px rgba(99, 102, 241, 0.14);
}

/* Бейдж карточки */
.sp-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    border-radius: var(--ng-radius-pill);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    background: var(--ng-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    white-space: nowrap;
}

/* ---------- Иконка с анимацией ---------- */
.sp-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--ng-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow:
        0 4px 16px rgba(99, 102, 241, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /* Анимация: лёгкое плавание, задержка варьируется через --sp-anim-delay */
    animation: sp-float 5s ease-in-out var(--sp-anim-delay, 0s) infinite;
    transition: transform 300ms var(--ng-ease), box-shadow 300ms var(--ng-ease);
}

/* Внутренний блик */
.sp-icon-wrap::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 60%;
    height: 70%;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    animation: sp-shine 5s ease-in-out var(--sp-anim-delay, 0s) infinite;
    pointer-events: none;
}

.sp-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Hover усиливает эффект, но без перебора */
.sp-card:hover .sp-icon-wrap {
    box-shadow:
        0 6px 24px rgba(99, 102, 241, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    animation-play-state: paused;
    transform: translateY(-3px) scale(1.06);
}

/* ---------- Текстовые элементы карточки ---------- */
.sp-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ng-text);
    margin: 18px 0 0;
    letter-spacing: -0.01em;
}

.sp-card__desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ng-text-secondary);
    margin: 6px 0 0;
    flex-grow: 0;
}

/* ---------- Цена + срок ---------- */
.sp-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--ng-bg-soft);
    border: 1px solid var(--ng-border-soft);
    border-radius: 12px;
}

.sp-card--highlight .sp-card__meta {
    background: rgba(255, 255, 255, 0.7);
}

.sp-card__price {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: var(--ng-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.sp-card__dot {
    color: var(--ng-border);
    font-size: 16px;
    line-height: 1;
    -webkit-text-fill-color: initial;
}

.sp-card__duration {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ng-text-secondary);
    line-height: 1.3;
}

.sp-card__duration-icon {
    display: inline-flex;
    color: var(--ng-text-muted);
    flex-shrink: 0;
}

/* ---------- Результат ---------- */
.sp-card__result {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ng-text);
    font-weight: 500;
}

.sp-card__result-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--ng-success);
    display: inline-flex;
}

/* ---------- Кнопка карточки ---------- */
.sp-card__cta {
    margin-top: auto;
    padding-top: 18px;
}

.sp-card__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--ng-bg-soft);
    border: 1.5px solid rgba(99, 102, 241, 0.18);
    color: var(--ng-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
    transition: background 300ms var(--ng-ease),
                color 300ms var(--ng-ease),
                border-color 300ms var(--ng-ease);
}

.sp-card__btn svg {
    flex-shrink: 0;
    transition: transform 300ms var(--ng-ease);
}

.sp-card:hover .sp-card__btn {
    background: var(--ng-gradient);
    color: #fff;
    border-color: transparent;
}

.sp-card--highlight .sp-card__btn {
    background: rgba(255, 255, 255, 0.8);
}

.sp-card--highlight:hover .sp-card__btn {
    background: var(--ng-gradient);
    color: #fff;
    border-color: transparent;
}

.sp-card:hover .sp-card__btn svg {
    transform: translateX(4px);
}

/* ---------- Нижняя CTA-плашка ---------- */
.sp-bottom {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    background: var(--ng-gradient-soft);
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: var(--ng-radius-card);
    flex-wrap: wrap;
}

.sp-bottom__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--ng-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--ng-shadow-soft);
}

.sp-bottom__text {
    flex: 1 1 280px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ng-text-secondary);
    margin: 0;
}

.sp-bottom__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--ng-radius-btn);
    background: var(--ng-gradient);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transition: transform 280ms var(--ng-ease),
                box-shadow 280ms var(--ng-ease);
    white-space: nowrap;
}

.sp-bottom__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.38);
}

.sp-bottom__btn svg {
    transition: transform 280ms var(--ng-ease);
}

.sp-bottom__btn:hover svg {
    transform: translateX(3px);
}

/* ---------- Анимации иконок ---------- */

/* Плавное покачивание по Y — едва заметно */
@keyframes sp-float {
    0%,100% { transform: translateY(0); }
    45%      { transform: translateY(-3px); }
    55%      { transform: translateY(-3px); }
}

/* Лёгкое движение внутреннего блика */
@keyframes sp-shine {
    0%,100% { opacity: 0.18; transform: translate(0,0) scale(1); }
    50%      { opacity: 0.28; transform: translate(6px,4px) scale(1.12); }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
    .sp-head__title {
        font-size: 38px;
    }
}

/* ---------- Переключатели desktop/mobile видимости ---------- */
/* Скрываем mobile-only элементы на desktop явно по классу */
/* !important нужен: определения компонентов ниже задают display:flex */
.sp-accordion   { display: none !important; }
.sp-text--mobile { display: none;  }
.sp-text--desktop { display: inline; }
.sp-bottom__text--short { display: none; }
.sp-bottom__btn--short  { display: none; }
.sp-bottom__text--full  { display: inline; }
.sp-bottom__btn--full   { display: inline; }

/* ---------- Mobile breakpoint ---------- */
@media (max-width: 767px) {
    /* Переключение видимости */
    .sp-desktop-only { display: none !important; }
    /* sp-mobile-only: не задаём display здесь — каждый элемент использует свой (flex, inline-flex и т.д.) */
    /* Конкретные mobile-элементы показываем явно: */
    .sp-accordion   { display: flex !important; }
    .sp-text--mobile  { display: inline; }
    .sp-text--desktop { display: none; }
    .sp-bottom__text--short { display: inline; }
    .sp-bottom__btn--short  { display: inline; }
    .sp-bottom__text--full  { display: none; }
    .sp-bottom__btn--full   { display: none; }

    /* Заголовок */
    .sp-head {
        margin-bottom: 28px;
    }
    .sp-head__title {
        font-size: 26px;
        letter-spacing: -0.015em;
    }
    .sp-head__sub {
        font-size: 14px;
        margin-bottom: 16px;
    }

    /* CTA-плашка: вертикально, иконка скрыта */
    .sp-bottom {
        padding: 16px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }
    .sp-bottom__icon {
        display: none;
    }
    .sp-bottom__text {
        font-size: 13px;
        line-height: 1.5;
        text-align: center;
        flex: none;
    }
    .sp-bottom__btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 14px;
    }
    .sp-bottom__btn svg {
        display: none;
    }
}

/* =====================================================
   Аккордеон (mobile-only)
   ===================================================== */
.sp-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Элемент аккордеона ---------- */
.sp-acc-item {
    background: var(--ng-card);
    border: 1.5px solid var(--ng-border-soft);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: border-color 280ms var(--ng-ease),
                box-shadow 280ms var(--ng-ease);
}

.sp-acc-item--hl {
    background: linear-gradient(145deg, #F5F3FF 0%, #EEF2FF 100%);
    border-color: rgba(99, 102, 241, 0.18);
}

/* Открытый элемент */
.sp-acc-item.is-open {
    border-color: rgba(99, 102, 241, 0.32);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.10);
}

/* ---------- Кнопка-триггер ---------- */
.sp-acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    min-height: 68px;
}

/* Иконка в аккордеоне */
.sp-acc-trigger__icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--ng-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow:
        0 3px 10px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    position: relative;
    overflow: hidden;
    animation: sp-float 5s ease-in-out var(--sp-anim-delay, 0s) infinite;
    transition: box-shadow 280ms var(--ng-ease);
}

/* Блик иконки */
.sp-acc-trigger__icon::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 60%;
    height: 70%;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    animation: sp-shine 5s ease-in-out var(--sp-anim-delay, 0s) infinite;
    pointer-events: none;
}

.sp-acc-trigger__icon svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* При открытии — пауза анимации и лёгкое усиление */
.sp-acc-item.is-open .sp-acc-trigger__icon {
    animation-play-state: paused;
    box-shadow:
        0 4px 16px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Текст триггера */
.sp-acc-trigger__info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sp-acc-trigger__title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ng-text);
    letter-spacing: -0.01em;
}

.sp-acc-trigger__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.sp-acc-trigger__price {
    font-size: 13px;
    font-weight: 700;
    background: var(--ng-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.sp-acc-trigger__dot {
    color: var(--ng-border);
    font-size: 14px;
    line-height: 1;
    -webkit-text-fill-color: initial;
}

.sp-acc-trigger__dur {
    font-size: 12px;
    font-weight: 500;
    color: var(--ng-text-muted);
    line-height: 1.2;
    -webkit-text-fill-color: initial;
}

/* Стрелка */
.sp-acc-trigger__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--ng-bg-soft);
    color: var(--ng-text-secondary);
    transition: transform 300ms var(--ng-ease),
                background 300ms var(--ng-ease),
                color 300ms var(--ng-ease);
}

.sp-acc-item.is-open .sp-acc-trigger__arrow {
    transform: rotate(180deg);
    background: rgba(99, 102, 241, 0.08);
    color: var(--ng-primary);
}

/* ---------- Тело аккордеона ---------- */
.sp-acc-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 340ms var(--ng-ease),
                opacity 280ms var(--ng-ease);
    /* hidden убирается JS сразу, видимость управляется max-height */
}

/* Открытое состояние управляется классом на родителе */
.sp-acc-item.is-open .sp-acc-body {
    max-height: 600px;
    opacity: 1;
}

.sp-acc-body__inner {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Разделитель между триггером и телом */
.sp-acc-item.is-open .sp-acc-trigger {
    border-bottom: 1px solid var(--ng-border-soft);
    padding-bottom: 13px;
}

.sp-acc-body__desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ng-text-secondary);
    margin: 0;
}

.sp-acc-body__result {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ng-text);
    margin: 0;
}

.sp-acc-body__result-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--ng-success);
    display: inline-flex;
}

.sp-acc-body__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--ng-gradient);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.28);
    transition: transform 240ms var(--ng-ease),
                box-shadow 240ms var(--ng-ease);
    -webkit-tap-highlight-color: transparent;
}

.sp-acc-body__btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.20);
}

.sp-acc-body__btn svg {
    flex-shrink: 0;
    opacity: 0.85;
}

/* ---------- prefers-reduced-motion для аккордеона ---------- */
@media (prefers-reduced-motion: reduce) {
    .sp-acc-trigger__icon {
        animation: none !important;
    }
    .sp-acc-trigger__icon::before {
        animation: none !important;
        opacity: 0.16;
    }
    .sp-acc-body {
        transition: none !important;
    }
    .sp-acc-trigger__arrow {
        transition: none !important;
    }
    .sp-acc-body__btn {
        transition: none !important;
    }
    .sp-acc-item.is-open .sp-acc-trigger__icon {
        animation-play-state: running !important;
    }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .sp-icon-wrap {
        animation: none !important;
    }
    .sp-icon-wrap::before {
        animation: none !important;
        opacity: 0.18;
    }
    .sp-card,
    .sp-card:hover,
    .sp-card__btn,
    .sp-card__btn svg,
    .sp-bottom__btn,
    .sp-bottom__btn svg {
        transition: none !important;
    }
    .sp-card:hover,
    .sp-card:hover .sp-icon-wrap {
        transform: none !important;
    }
}

/* =============================================================
   Анимации появления
   ============================================================= */

.ng-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms var(--ng-ease), transform 600ms var(--ng-ease);
    transition-delay: var(--ng-delay, 0ms);
}

.ng-animate--small {
    transform: translateY(16px);
}

.ng-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .ng-animate {
        transform: none;
        transition: opacity 300ms linear;
    }
    .ng-metric__icon,
    .ng-case,
    .ng-case__icon,
    .ng-case__arrow,
    .ng-btn,
    .ng-service-card,
    .ng-service-card__icon,
    .ng-service-card__cta-btn,
    .ng-service-card__cta-btn svg,
    .ng-service-wide,
    .ng-service-wide__icon,
    .ng-service-wide__cta,
    .ng-mockup-front,
    .ng-mockup-back,
    .ng-mockup-pdf-badge,
    .ng-lead-form__submit,
    .ng-lead-form__submit svg,
    .ng-lead-card__glow {
        transition: none !important;
    }
    .ng-metric:hover .ng-metric__icon,
    .ng-case:hover,
    .ng-case:hover .ng-case__icon,
    .ng-case:hover .ng-case__arrow,
    .ng-btn:hover,
    .ng-service-card:hover,
    .ng-service-card:hover .ng-service-card__icon,
    .ng-service-card:hover .ng-service-card__cta-btn svg,
    .ng-service-wide:hover,
    .ng-service-wide:hover .ng-service-wide__icon,
    .ng-service-wide__cta:hover,
    .ng-lead-card:hover .ng-mockup-front,
    .ng-lead-card:hover .ng-mockup-back,
    .ng-lead-card:hover .ng-mockup-pdf-badge,
    .ng-lead-form__submit:hover:not(:disabled),
    .ng-lead-form__submit:hover:not(:disabled) svg {
        transform: none !important;
    }
    .ng-mockup-front,
    .ng-mockup-back,
    .ng-mockup-pdf-badge {
        /* отключаем стартовый rotate в reduced-motion */
        transform: none !important;
    }
    .ng-lead-form__spinner {
        animation: none !important;
    }
}

/* =============================================================
   .calc2 — Калькулятор налогового вычета
   Desktop: 2-колоночный layout, результат + CTA в правой колонке.
   Mobile (≤680px): 1-колонка, результат-плашка, кнопки на всю ширину.
   ============================================================= */

/* Заголовок секции — компактнее чем дефолтный */
#calculator .section-title {
    font-size: clamp(26px, 3vw, 36px);
}
#calculator .section-head {
    margin-bottom: 24px;
}

/* ── Общие токены для обоих breakpoints ───────────────────────*/
.calc2__type,
.calc2__seg-btn,
.calc2__input,
.calc2__btn-primary,
.calc2__btn-secondary,
.calc2__check-box,
.calc2__check-box::after {
    transition-timing-function: var(--ng-ease);
}

/* ══════════════════════════════════════════════════════════════
   DESKTOP — основная компоновка (min-width: 681px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 681px) {

/* Обёртка-карточка */
.calc2 {
    max-width: 1060px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--ng-border-soft);
    border-radius: 32px;
    box-shadow: 0 12px 48px rgba(99,102,241,0.09), 0 2px 8px rgba(15,23,42,0.04);
    overflow: hidden;
}

/* ── Панель табов ────────────────────────────────────────────── */
.calc2__tabs-bar {
    padding: 20px 28px 0;
    background: #fff;
}

.calc2__types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--ng-border-soft);
    padding-bottom: 0;
}

.calc2__type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px 12px 0 0;
    border: 1.5px solid transparent;
    border-bottom: none;
    background: transparent;
    color: var(--ng-text-secondary);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: color 180ms, background 180ms, border-color 180ms;
    white-space: nowrap;
    line-height: 1;
    position: relative;
    bottom: -1px;
}
.calc2__type .icon { opacity: 0.6; flex-shrink: 0; transition: opacity 180ms; }
.calc2__type:hover {
    color: var(--ng-primary);
    background: var(--ng-gradient-soft);
}
.calc2__type:hover .icon { opacity: 1; }
.calc2__type.is-active {
    color: var(--ng-primary-dark);
    background: #fff;
    border-color: var(--ng-border-soft);
    border-bottom-color: #fff;
    font-weight: 700;
}
.calc2__type.is-active .icon { opacity: 1; }

/* ── Тело: 58% / 42% ─────────────────────────────────────────── */
.calc2__body {
    display: grid;
    grid-template-columns: 58fr 42fr;
    align-items: start;
}

/* ── Левая: форма ─────────────────────────────────────────────── */
.calc2__left {
    padding: 28px 32px 28px 28px;
    border-right: 1px solid var(--ng-border-soft);
}

.calc2__fields { }
.calc2__fieldset {
    display: none;
    flex-direction: column;
    gap: 20px;
}
.calc2__fieldset.is-active { display: flex; }

/* 2 поля в ряд с label */
.calc2__row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc2__field-wrap {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.calc2__field-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--ng-text-secondary);
    letter-spacing: 0.02em;
}

.calc2__input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--ng-border);
    background: var(--ng-bg-soft);
    color: var(--ng-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    transition: border-color 180ms, box-shadow 180ms, background 180ms;
    box-sizing: border-box;
    -moz-appearance: textfield;
    min-width: 0;
}
.calc2__input::-webkit-outer-spin-button,
.calc2__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc2__input::placeholder { color: var(--ng-text-muted); }
.calc2__input:focus {
    outline: none;
    border-color: var(--ng-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.13);
    background: #fff;
}
.calc2__input--wide { grid-column: 1 / -1; }

/* Строка переключателей */
.calc2__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}
.calc2__seg-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.calc2__seg-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--ng-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.calc2__seg {
    display: inline-flex;
    border: 1.5px solid var(--ng-border);
    border-radius: 12px;
    overflow: hidden;
}
.calc2__seg-btn {
    padding: 9px 18px;
    border: none;
    background: var(--ng-bg-soft);
    color: var(--ng-text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms, color 160ms;
    white-space: nowrap;
    line-height: 1;
}
.calc2__seg-btn:not(:last-child) { border-right: 1.5px solid var(--ng-border); }
.calc2__seg-btn.is-active { background: var(--ng-gradient); color: #fff; }
.calc2__seg-btn:hover:not(.is-active) { background: var(--ng-gradient-soft); color: var(--ng-primary-dark); }

/* Чекбокс */
.calc2__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding-bottom: 2px;
}
.calc2__check input[type="checkbox"] {
    position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}
.calc2__check-box {
    width: 20px; height: 20px;
    border-radius: 6px;
    border: 2px solid var(--ng-border);
    background: var(--ng-bg-soft);
    flex-shrink: 0;
    transition: border-color 160ms;
    position: relative;
}
.calc2__check-box::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--ng-gradient);
    border-radius: 2px;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 160ms, transform 160ms;
}
.calc2__check input:checked ~ .calc2__check-box { border-color: var(--ng-primary); }
.calc2__check input:checked ~ .calc2__check-box::after { opacity: 1; transform: scale(1); }
.calc2__check-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ng-text);
}

/* Info-плашка под полями */
.calc2__tip {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--ng-text-secondary);
    margin: 0;
    padding: 11px 14px;
    background: var(--ng-bg-soft);
    border-left: 3px solid var(--ng-primary);
    border-radius: 0 10px 10px 0;
}

/* ── Слайдеры (только вкладка Лечение) ───────────────────────── */
.calc2__slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.calc2__slider-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.calc2__slider-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ng-text-secondary);
}
.calc2__slider-val {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ng-primary);
    letter-spacing: -0.02em;
}
.calc2__slider {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    /* height = thumb size: iOS Safari clips overflow, so element height must fit thumb */
    height: 12px;
    outline: none;
    cursor: pointer;
    /* Прозрачный фон элемента — видимый трек рисуется через runnable-track */
    background: transparent;
    transition: none;
    padding: 0;
    margin: 0;
}
/* Видимый трек — тонкий, градиент наследуется от JS inline-style */
.calc2__slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 99px;
    background: inherit;
}
.calc2__slider::-moz-range-track {
    height: 4px;
    border-radius: 99px;
    background: #E2E8F0;
}
.calc2__slider::-moz-range-progress {
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
}
/* Thumb: белый круг, фиолетовая рамка — заметно выступает над тонким треком */
.calc2__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #6366F1;
    box-shadow: 0 2px 10px rgba(99,102,241,0.35);
    cursor: pointer;
    margin-top: -9px;      /* центрирование: (4px - 22px) / 2 = -9px */
    transition: transform 150ms, box-shadow 150ms;
}
.calc2__slider::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #6366F1;
    box-shadow: 0 2px 10px rgba(99,102,241,0.35);
    cursor: pointer;
    border-box: border-box;
}
.calc2__slider:hover::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 4px 14px rgba(99,102,241,0.45); }
.calc2__slider:focus::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(99,102,241,0.18); }

/* ── Правая: результат + CTA ──────────────────────────────────── */
.calc2__right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 20px;
    background: var(--ng-bg-soft);
    align-self: stretch;
}

.calc2__result-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ng-border-soft);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(15,23,42,0.06);
    padding: 20px 20px 16px;
}

.calc2__result-wrap {
    display: flex;
    flex-direction: column;
}

.calc2__result-label {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ng-text-muted);
    margin: 0 0 6px;
}

.calc2__amount-value {
    font-family: var(--font-display);
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #059669;
    margin-bottom: 14px;
    min-height: 1em;
}

.calc2__divider {
    border: none;
    border-top: 1px solid var(--ng-border-soft);
    margin: 0 0 12px;
}

.calc2__result-max-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.calc2__result-max-label {
    font-size: 12px;
    color: var(--ng-text-secondary);
    font-weight: 500;
}
.calc2__result-max-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--ng-primary-dark);
}

.calc2__result-note {
    font-size: 11px;
    line-height: 1.5;
    color: var(--ng-text-muted);
    margin: 0;
}
.calc2__result-note.is-warning { color: #B45309; }
.calc2__result-note--ndfl { font-style: italic; }

/* CTA — отдельная плашка */
.calc2__cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--ng-border-soft);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}

.calc2__btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 15px 24px;
    border-radius: 16px;
    border: none;
    background: var(--ng-gradient);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(99,102,241,0.30);
    transition: transform 200ms, box-shadow 200ms;
    line-height: 1.2;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.calc2__btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(99,102,241,0.38); }
.calc2__btn-primary:active { transform: scale(0.98); box-shadow: 0 4px 12px rgba(99,102,241,0.25); }
.calc2__btn-primary .icon { flex-shrink: 0; }

.calc2__cta-micro {
    text-align: center;
    font-size: 11px;
    color: var(--ng-text-muted);
    margin: 0;
    line-height: 1.4;
}

} /* end @media (min-width: 681px) */


/* ══════════════════════════════════════════════════════════════
   MOBILE (≤680px) — компактный однострочный вид
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {

.calc2 {
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--ng-border-soft);
    border-radius: 22px;
    box-shadow: 0 4px 20px rgba(99,102,241,0.07);
    overflow: hidden;
}

/* Табы: горизонтальный скролл */
.calc2__tabs-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid var(--ng-border-soft);
    padding: 12px 16px;
}
.calc2__tabs-bar::-webkit-scrollbar { display: none; }

.calc2__types {
    display: flex;
    gap: 7px;
    width: max-content;
    border-bottom: none;
}

.calc2__type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1.5px solid var(--ng-border);
    background: #fff;
    color: var(--ng-text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms var(--ng-ease);
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
    bottom: 0;
}
.calc2__type .icon { opacity: 0.65; }
.calc2__type:hover { border-color: var(--ng-primary); color: var(--ng-primary); }
.calc2__type.is-active {
    background: var(--ng-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,0.24);
    font-weight: 600;
}
.calc2__type.is-active .icon { opacity: 1; }

/* Тело: стек */
.calc2__body { display: flex; flex-direction: column; }

/* Левая: поля */
.calc2__left {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--ng-border-soft);
}

.calc2__fieldset { display: none; flex-direction: column; gap: 16px; width: 100%; }
.calc2__fieldset.is-active { display: flex; }

.calc2__row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.calc2__field-wrap { display: flex; flex-direction: column; gap: 5px; }
.calc2__field-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--ng-text-secondary);
}

.calc2__input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1.5px solid var(--ng-border);
    background: var(--ng-bg-soft);
    color: var(--ng-text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    transition: border-color 180ms var(--ng-ease), box-shadow 180ms var(--ng-ease);
    box-sizing: border-box;
    -moz-appearance: textfield;
    min-width: 0;
}
.calc2__input::-webkit-outer-spin-button,
.calc2__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc2__input::placeholder { color: var(--ng-text-muted); font-size: 13px; }
.calc2__input:focus {
    outline: none;
    border-color: var(--ng-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    background: #fff;
}
.calc2__input--wide { grid-column: 1 / -1; }

.calc2__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.calc2__seg-wrap { display: flex; align-items: center; gap: 6px; }
.calc2__seg-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ng-text-secondary);
    white-space: nowrap;
}

.calc2__seg {
    display: inline-flex;
    border: 1.5px solid var(--ng-border);
    border-radius: 10px;
    overflow: hidden;
}
.calc2__seg-btn {
    padding: 7px 12px;
    border: none;
    background: var(--ng-bg-soft);
    color: var(--ng-text-secondary);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms var(--ng-ease), color 160ms var(--ng-ease);
    white-space: nowrap;
    line-height: 1;
}
.calc2__seg-btn:not(:last-child) { border-right: 1.5px solid var(--ng-border); }
.calc2__seg-btn.is-active { background: var(--ng-gradient); color: #fff; }
.calc2__seg-btn:hover:not(.is-active) { background: var(--ng-gradient-soft); color: var(--ng-primary-dark); }

.calc2__check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}
.calc2__check input[type="checkbox"] {
    position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}
.calc2__check-box {
    width: 18px; height: 18px;
    border-radius: 5px;
    border: 2px solid var(--ng-border);
    background: var(--ng-bg-soft);
    flex-shrink: 0;
    transition: border-color 160ms var(--ng-ease);
    position: relative;
}
.calc2__check-box::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--ng-gradient);
    border-radius: 2px;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 160ms var(--ng-ease), transform 160ms var(--ng-ease);
}
.calc2__check input:checked ~ .calc2__check-box { border-color: var(--ng-primary); }
.calc2__check input:checked ~ .calc2__check-box::after { opacity: 1; transform: scale(1); }
.calc2__check-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ng-text);
    white-space: nowrap;
}

/* Подсказка — скрыта на мобиле (экономим место) */
.calc2__tip { display: none; }

/* Правая: результат — плашка на мобиле */
.calc2__right {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
}
.calc2__result-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 12px;
    background: var(--ng-bg-soft);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 14px 16px;
    border-top: 1px solid var(--ng-border-soft);
    border-bottom: 1px solid var(--ng-border-soft);
}
.calc2__result-wrap {
    display: contents;
}
.calc2__result-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ng-text-muted);
    margin: 0;
    width: 100%;
}
.calc2__amount-value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #059669;
    min-height: auto;
}
.calc2__result-max-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: nowrap;
    margin-bottom: 2px;
}
.calc2__result-max-label { font-size: 11px; }
.calc2__result-max-val { font-size: 13px; }
.calc2__result-note { font-size: 10.5px; width: 100%; margin-bottom: 0; }
.calc2__divider { display: none; }

/* Слайдеры — мобиль */
.calc2__slider-group { gap: 8px; width: 100%; margin-bottom: 6px; }
.calc2__slider-label { font-size: 13px; color: var(--ng-text-secondary); }
.calc2__slider-val { font-size: 15px; }

/* Бегунок на всю ширину на мобильном + явные стили thumb/track для iOS Safari */
.calc2__slider {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    background: transparent;
}
/* Трек (видимая линия) */
.calc2__slider::-webkit-slider-runnable-track {
    height: 2px;
    border-radius: 99px;
    background: inherit;
}
/* Thumb */
.calc2__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #6366F1;
    box-shadow: 0 2px 10px rgba(99,102,241,0.40);
    cursor: pointer;
    margin-top: -10px;         /* (2px - 22px) / 2 = -10px */
}

/* CTA: кнопка на всю ширину */
.calc2__cta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}
.calc2__btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    background: var(--ng-gradient);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99,102,241,0.28);
    transition: transform 200ms var(--ng-ease), box-shadow 200ms var(--ng-ease);
    -webkit-tap-highlight-color: transparent;
}
.calc2__btn-primary:active { transform: scale(0.98); }
.calc2__cta-micro {
    text-align: center;
    font-size: 10.5px;
    color: var(--ng-text-muted);
    margin: 0;
    line-height: 1.4;
}

} /* end @media (max-width: 680px) */


/* Маленький мобильный */
@media (max-width: 400px) {
    .calc2__row2 { grid-template-columns: 1fr; }
    .calc2__input--wide { grid-column: auto; }
    .calc2__controls { gap: 6px; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .calc2__type, .calc2__seg-btn, .calc2__input,
    .calc2__btn-primary, .calc2__btn-secondary,
    .calc2__check-box, .calc2__check-box::after {
        transition: none !important;
    }
}

/* ============== HERO: ссылка ВК рядом с основной CTA ============== */
/* Вторичная ссылка VK в Hero: без рамки/тени, не конкурирует с главным CTA */
.hero__vk {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 6px;
    background: transparent;
    border: 0;
    border-radius: var(--ng-radius-pill, 999px);
    color: var(--ng-text-secondary, #5b6478);
    text-decoration: none;
    transition: color 200ms var(--ng-ease), opacity 200ms var(--ng-ease);
    opacity: .9;
}

.hero__vk:hover,
.hero__vk:focus-visible {
    color: #0077FF;
    opacity: 1;
    outline: none;
}
.hero__vk img { width: 20px; height: 20px; }

.hero__vk img { flex-shrink: 0; }

.hero__vk-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-style: normal;
}

.hero__vk-text strong {
    font-size: 13px;
    font-weight: 600;
}

.hero__vk-text em {
    font-style: normal;
    font-size: 11px;
    color: var(--ng-text-muted, #5b6478);
    margin-top: 2px;
}

@media (max-width: 540px) {
    .hero__vk { padding: 9px 14px 9px 12px; gap: 10px; }
    .hero__vk-text strong { font-size: 13px; }
    .hero__vk-text em { font-size: 11px; }
}

/* ============== sp-tabs: адаптив ============== */
@media (max-width: 540px) {
    .sp-section .sp-tabs {
        width: 100%;
        justify-content: stretch;
    }
    .sp-tab {
        flex: 1 1 0;
        padding: 11px 14px;
        font-size: 13px;
        text-align: center;
    }
}

/* ============== Страница «Спасибо» ============== */
.thanks-page { background: linear-gradient(180deg, #F8F9FF 0%, #FFFFFF 60%); min-height: 70vh; }

.thanks-hero { padding: 64px 0 80px; }

.thanks-hero__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.thanks-hero__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #fff;
    box-shadow: 0 18px 40px -16px rgba(99, 102, 241, 0.55);
    margin-bottom: 24px;
    animation: thanks-pop 480ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes thanks-pop {
    0%   { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

.thanks-hero__title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ng-text, #1A1F36);
    margin: 0 0 14px;
}

.thanks-hero__sub {
    font-size: 17px;
    line-height: 1.55;
    color: var(--ng-text-muted, #5b6478);
    margin: 0 0 32px;
}

.thanks-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.thanks-hero__actions .btn { min-height: 52px; }

.thanks-hero__messengers {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--ng-text-muted, #5b6478);
}

.thanks-hero__messengers-label { margin-right: 4px; }

.thanks-hero__messenger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--ng-border-soft, #E6E8F0);
    border-radius: 999px;
    color: var(--ng-text, #1A1F36);
    text-decoration: none;
    font-weight: 600;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.thanks-hero__messenger:hover {
    border-color: var(--ng-primary, #6366F1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -10px rgba(99, 102, 241, 0.4);
}

.thanks-steps {
    list-style: none;
    padding: 28px;
    margin: 0 auto 32px;
    max-width: 560px;
    background: #fff;
    border: 1px solid var(--ng-border-soft, #E6E8F0);
    border-radius: 18px;
    box-shadow: 0 10px 30px -18px rgba(45, 50, 78, 0.15);
    text-align: left;
    display: grid;
    gap: 14px;
}

.thanks-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ng-text, #1A1F36);
}

.thanks-step__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.thanks-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ng-text-muted, #5b6478);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 999px;
    transition: color 200ms ease, background 200ms ease;
}

.thanks-hero__back:hover { color: var(--ng-primary, #6366F1); background: rgba(99, 102, 241, 0.08); }

@media (max-width: 640px) {
    .thanks-hero { padding: 40px 0 56px; }
    .thanks-hero__check { width: 80px; height: 80px; }
    .thanks-hero__check svg { width: 44px; height: 44px; }
    .thanks-steps { padding: 22px 20px; }
}

/* === Гео-блок (SEO, добавлено 2026-05-25) === */
/* Гео-блок компактный: меньше отступы секции, уже колонка, плотнее текст */
.ng-geo { padding-block: clamp(36px, 4vw, 56px); }
.ng-geo .section-head { margin-bottom: 20px; }
.ng-geo__text { max-width: 680px; margin: 0 auto; }
.ng-geo__text p { margin: 0 0 .8em; line-height: 1.65; color: var(--text-secondary, #44484f); font-size: 1rem; }
.ng-geo__text p:last-child { margin-bottom: 0; }
.ng-geo__text strong { color: var(--text-primary, #1b1d21); font-weight: 600; }

/* === Страницы услуг (SEO; добавлено 2026-05-25) === */
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: #6b7280; margin: 24px 0 16px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.service-article .entry-content { line-height: 1.75; font-size: 1.04rem; }
.service-article .entry-content h2 { margin: 1.6em 0 .6em; font-size: 1.5rem; }
.service-article .entry-content h3 { margin: 1.3em 0 .5em; font-size: 1.2rem; }
.service-article .entry-content ul, .service-article .entry-content ol { padding-left: 1.3em; }
.service-article .entry-content li { margin: .4em 0; }
.service-cta { margin: 40px 0; padding: 28px; border-radius: 18px; text-align: center; }
.service-cta h2 { margin: 0 0 8px; }
.service-cta p { margin: 0 0 18px; color: var(--text-secondary, #44484f); }
.service-links { margin: 32px 0 56px; }
.service-links h2 { font-size: 1.2rem; margin: 0 0 12px; }
.service-links ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.service-links a { color: var(--accent, #2563eb); text-decoration: none; }
.service-links a:hover { text-decoration: underline; }

/* === Кейсы (архив + одиночный; добавлено 2026-05-25) === */
.cases-archive .page-header { margin: 8px 0 32px; }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.case-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ng-border, #E2E8F0); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s var(--ng-ease), box-shadow .2s var(--ng-ease); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--ng-shadow-hover, 0 12px 32px rgba(99,102,241,.16)); }
.case-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.case-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.case-card__tag { align-self: flex-start; font-size: .78rem; font-weight: 600; color: var(--ng-primary-dark, #4F46E5); background: var(--ng-gradient-soft, #EEF2FF); padding: 4px 10px; border-radius: 999px; }
.case-card__title { font-weight: 700; font-size: 1.12rem; line-height: 1.3; color: var(--ng-text, #0F172A); }
.case-card__excerpt { font-size: .95rem; line-height: 1.55; color: var(--ng-text-secondary, #64748B); flex: 1; }
.case-card__result { font-weight: 700; color: var(--ng-success, #10B981); }
.case-card__more { font-weight: 600; color: var(--ng-primary, #6366F1); font-size: .92rem; margin-top: 4px; }

.case-result-badge { display: inline-block; margin: 8px 0 0; font-weight: 700; color: var(--ng-success, #10B981); background: rgba(16,185,129,.08); padding: 6px 14px; border-radius: 999px; }
.case-disclaimer { margin: 28px 0 0; font-size: .85rem; color: var(--ng-text-muted, #94A3B8); font-style: italic; }

/* === Интерактивный выбор оценки в форме отзыва (добавлено 2026-05-25) === */
.review-rating { position: relative; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; max-width: 100%; }
.review-rating__input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); pointer-events: none; }
.review-rating__star { display: inline-flex; color: #D8DCE3; cursor: pointer; transition: color .15s var(--ng-ease, ease), transform .1s var(--ng-ease, ease); line-height: 0; }
.review-rating__star:hover { transform: scale(1.12); }
/* Выбранная звезда и все «левее» (в row-reverse это последующие сиблинги) — золотые */
.review-rating__input:checked ~ .review-rating__star,
.review-rating__star:hover,
.review-rating__star:hover ~ .review-rating__star { color: #F59E0B; }
/* Видимый фокус для доступности (клавиатура) */
.review-rating__input:focus-visible + .review-rating__star { outline: 2px solid var(--ng-primary, #6366F1); outline-offset: 2px; border-radius: 4px; }
/* Страховка от горизонтального скролла в попапе отзыва */
.review-modal__panel { overflow-x: hidden; }

/* === Телефон в шапке (добавлено 2026-05-25) === */
.site-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding: 9px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-primary, #2563eb);
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.site-header__phone:hover { background: rgba(37, 99, 235, 0.08); }
.site-header__phone-icon { flex-shrink: 0; }
/* Десктоп: текст виден, бургера нет */
@media (min-width: 961px) {
    .site-header__phone { order: 2; }
}
/* Мобильный: телефон в шапке скрываем — звонок доступен в нижней панели (social-bar) */
@media (max-width: 960px) {
    .site-header__phone { display: none; }
}

/* Карточка автора под статьёй блога — сигнал экспертности (E-E-A-T) */
.author-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: 16px;
}
.author-card__photo {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}
.author-card__name { margin: 0 0 2px; font-weight: 700; font-size: 1.05rem; }
.author-card__role { margin: 0 0 8px; font-size: 0.9rem; opacity: 0.75; }
.author-card__bio  { margin: 0; font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 600px) {
    .author-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ======== Архив блога: широкий контейнер + сетка карточек (было узко) ======== */
.main-blog > .container--narrow {
    max-width: 1180px;
}
.main-blog .post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}
/* Карточка без миниатюры — вертикальная, в одну колонку грида карточки */
.main-blog .post-card {
    grid-template-columns: 1fr;
    margin-bottom: 0;
    height: 100%;
}
.main-blog .post-card__title { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; margin: 0 0 4px; }
.main-blog .post-card__excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) {
    .main-blog .post-list { grid-template-columns: 1fr; }
}

/* ======== Статья: расширяем контейнер, текст комфортной ширины ======== */
.single-post > .container--narrow {
    max-width: 1180px;
}
.single-post .page-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
}
/* Тело статьи — комфортная ширина чтения, не растягиваем на всю колонку */
.single-post .entry-content,
.single-post .page-header,
.single-post .single-post__thumb,
.single-post .service-cta,
.single-post .author-card {
    max-width: 760px;
}
@media (max-width: 900px) {
    .single-post .page-layout { grid-template-columns: 1fr; }
    .single-post .entry-content,
    .single-post .page-header,
    .single-post .single-post__thumb,
    .single-post .service-cta,
    .single-post .author-card { max-width: 100%; }
}

/* Иллюстрации в статьях блога */
.article-figure {
    margin: 24px 0;
    max-width: 760px;
}
.article-figure img,
.article-figure picture {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md, 16px);
}
.single-post .article-figure { max-width: 760px; }
@media (max-width: 900px) {
    .single-post .article-figure { max-width: 100%; }
}

/* Встроенный CTA-блок внутри статьи */
.article-cta {
    margin: 28px 0;
    padding: 22px 24px;
    border-radius: var(--radius-md, 16px);
    background: var(--bg-card, #f5f8ff);
    border: 1px solid var(--border-soft, #e3e9f5);
    text-align: center;
}
.article-cta p { margin: 0 0 14px; font-size: 1.02rem; }
.single-post .article-cta { max-width: 760px; }
@media (max-width: 900px) { .single-post .article-cta { max-width: 100%; } }

/* ======== Фикс: текст кнопки --gradient пропадал при наведении ========
   Псевдоэлементы ::before/::after перекрывали прямой текст (без span).
   Поднимаем сам текст кнопки над псевдослоями через isolation + z-index. */
.btn--gradient {
    isolation: isolate;
}
.btn--gradient::before,
.btn--gradient::after {
    z-index: 0;
}
/* Текстовый узел кнопки держим над псевдоэлементами */
.article-cta .btn--gradient,
.service-cta .btn--gradient {
    z-index: 1;
}
.article-cta .btn--gradient::before,
.article-cta .btn--gradient::after,
.service-cta .btn--gradient::before,
.service-cta .btn--gradient::after {
    z-index: -1;
}

/* ======== Красивая пагинация по центру ======== */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 8px;
}
.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border-soft, #e3e9f5);
    background: var(--bg-card, #fff);
    color: var(--text-primary, #1a2233);
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}
.pagination a.page-numbers:hover,
.nav-links a.page-numbers:hover {
    border-color: transparent;
    background: var(--gradient-brand, linear-gradient(120deg,#2563eb,#7c3aed));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37,99,235,.25);
}
.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: var(--gradient-brand, linear-gradient(120deg,#2563eb,#7c3aed));
    border-color: transparent;
    color: #fff;
}
.pagination .page-numbers.dots,
.nav-links .page-numbers.dots {
    border: 0;
    background: transparent;
    min-width: auto;
    padding: 0 4px;
}

/* Телефон в футере мобильного меню */
.mobile-menu__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-soft, #e3e9f5);
    background: var(--bg-card, #f5f8ff);
    color: var(--text-primary, #1a2233);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all .2s ease;
}
.mobile-menu__phone:hover,
.mobile-menu__phone:active {
    border-color: transparent;
    background: var(--gradient-brand, linear-gradient(120deg,#2563eb,#7c3aed));
    color: #fff;
}
.mobile-menu__phone-icon { flex: 0 0 auto; }
