/* ═══════════════════════════════════════════════════════
   Услуги и форматы работы (#uslugi-tarify)
   ═══════════════════════════════════════════════════════ */

#uslugi-tarify.services-formats-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    scroll-margin-top: 88px;
    background: #08090c;
    padding-block: clamp(56px, 10vh, 96px);
    width: 100%;
    box-sizing: border-box;
}

/* Фоновые слои */
.formats-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.formats-bg--glow {
    opacity: 0.45;
    background:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(255, 215, 0, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 60%, rgba(239, 68, 68, 0.06), transparent 50%);
}

.formats-bg--grid {
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
}

.services-formats-container {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(1180px, 100%);
    max-width: 100%;
    align-self: center;
    padding-inline: clamp(18px, 3.5vw, 36px);
}

.services-formats-section.faq-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-height: auto;
}

/* Шапка */
.formats-zone .faq-header,
.services-formats-section .faq-header {
    margin-bottom: clamp(28px, 5vh, 44px);
    text-align: left;
}

.formats-tag {
    display: inline-block;
    margin-bottom: clamp(0.55rem, 1.2vw, 0.85rem);
    font-family: var(--font-label), ui-monospace, monospace;
    font-size: clamp(0.58rem, 0.72vw, 0.65rem);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.92);
}

.formats-zone .faq-title,
.services-formats-section .faq-title {
    letter-spacing: -0.02em;
}

/* Журнальный заголовок блока услуг */
.formats-title-services {
    margin: 0 0 clamp(0.65rem, 1.6vw, 1.05rem);
    max-width: min(52rem, 100%);
}

.formats-title-services .formats-title__line {
    display: block;
    font-family: var(--font-hero-display), var(--font-display), system-ui, sans-serif;
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.formats-title-services .formats-title__line--w {
    color: var(--text, #f7f7f5);
    font-size: clamp(1.15rem, 2.75vw, 2.35rem);
}

.formats-title-services .formats-title__line--accent {
    margin-top: 0.06em;
    margin-bottom: 0.06em;
    font-size: clamp(1.32rem, 3.25vw, 2.95rem);
    color: var(--accent);
    text-shadow: 0 0 42px rgba(255, 215, 0, 0.13);
}

.formats-title-services .formats-title__line--w:last-of-type {
    margin-top: 0.05em;
}

.formats-title-accent {
    color: var(--accent);
}

.formats-intro {
    margin: 0;
    width: min(100%, 42rem);
    max-width: 42rem;
    font-size: clamp(0.875rem, 1.6vw, 0.9375rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.48);
}

.formats-intro--services {
    width: min(100%, 38rem);
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    #uslugi-tarify.services-formats-section {
        padding-block: clamp(24px, 6vw, 44px);
        scroll-margin-top: calc(56px + env(safe-area-inset-top, 0px));
    }

    .formats-zone .faq-header,
    .services-formats-section .faq-header {
        margin-bottom: clamp(18px, 4vw, 28px);
    }
}

@media (max-width: 520px) {
    .formats-title-services .formats-title__line--w {
        font-size: clamp(0.95rem, 4.6vw, 1.28rem);
    }

    .formats-title-services .formats-title__line--accent {
        font-size: clamp(1.05rem, 5.2vw, 1.42rem);
    }
}

/* ─── Сетка: одна колонка на телефоне, планшет 2+1, десктоп 3 ─── */
.tariff-grid--formats {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 4.5vw, 32px);
    align-items: stretch;
    width: 100%;
}

@media (min-width: 640px) and (max-width: 1099px) {
    .tariff-grid--formats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(18px, 3vw, 26px);
    }

    .tariff-grid--formats > .tariff-card:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        width: 100%;
        max-width: min(28rem, 100%);
    }
}

@media (min-width: 1100px) {
    .tariff-grid--formats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: clamp(18px, 2vw, 26px);
    }
}

/* ─── Карточка: оболочка + внутренний flex (кнопка всегда снизу с воздухом) ─── */
.tariff-card--format {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    height: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(168deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 42%, rgba(0, 0, 0, 0.4) 100%),
        rgba(12, 13, 18, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 16px 48px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.tariff-card--format::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, rgba(255, 215, 0, 0.65) 50%, transparent 95%);
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

.tariff-card--format:hover {
    border-color: rgba(255, 215, 0, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 20px 56px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 215, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .tariff-card--format {
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .tariff-card--format:hover {
        transform: translateY(-3px);
    }
}

.tariff-card__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: clamp(20px, 3vw, 28px) clamp(18px, 2.5vw, 24px) clamp(18px, 2.5vw, 24px);
}

.tariff-card__top {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 2vw, 16px);
    margin-bottom: clamp(14px, 2.5vw, 20px);
    padding-bottom: clamp(14px, 2.5vw, 18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tariff-card--featured .tariff-card__inner {
    padding-top: clamp(22px, 3.5vw, 32px);
    padding-right: clamp(18px, 3vw, 30px);
}

.tariff-card__head {
    flex: 1;
    min-width: 0;
    flex-shrink: 0;
}

.tariff-card__deliver {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    min-height: 0;
    padding: clamp(12px, 2vw, 16px);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tariff-card__foot {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: clamp(1rem, 2.5vw, 1.35rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.65rem, 1.5vw, 0.85rem);
}

.tariff-card--featured {
    border-color: rgba(255, 215, 0, 0.42);
    background:
        linear-gradient(165deg, rgba(255, 215, 0, 0.09) 0%, rgba(255, 215, 0, 0.03) 35%, rgba(0, 0, 0, 0.28) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.2),
        0 0 32px rgba(250, 204, 21, 0.18),
        0 16px 52px -12px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    z-index: 2;
}

.tariff-card--featured::before {
    opacity: 1;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.88), rgba(255, 215, 0, 0.15));
}

@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
    .tariff-card--featured {
        transform: translateY(-6px);
    }

    .tariff-card--featured:hover {
        transform: translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tariff-card--featured {
        transform: none;
    }
}

.tariff-card--featured:hover {
    border-color: rgba(255, 215, 0, 0.55);
}

.tariff-pick {
    position: absolute;
    top: clamp(12px, 2vw, 16px);
    right: clamp(12px, 2vw, 18px);
    left: auto;
    transform: none;
    margin: 0;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.55);
    background: linear-gradient(135deg, var(--cta-green-dark), var(--cta-green));
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.12),
        0 8px 22px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 5;
    white-space: nowrap;
}

/* Подсказка «кому подойдёт» — как в макете */
.tariff-audience {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: clamp(12px, 2vw, 16px);
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.tariff-audience__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-top: 2px;
    border-radius: 10px;
    color: rgba(255, 215, 0, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.28);
    background: rgba(255, 215, 0, 0.05);
}

.tariff-audience__icon svg {
    display: block;
}

.tariff-audience__text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.tariff-audience__line {
    margin: 0;
    font-size: clamp(0.72rem, 1.25vw, 0.8rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

.tariff-audience__line--strong {
    font-size: clamp(0.62rem, 1.1vw, 0.68rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.92);
}

.tariff-card--featured .tariff-audience__icon {
    border-color: rgba(255, 215, 0, 0.42);
    background: rgba(255, 215, 0, 0.08);
}

/* Нижняя полоса «не знаете что выбрать» */
.formats-choice-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(14px, 3vw, 22px);
    margin-top: clamp(22px, 4vw, 36px);
    padding: clamp(14px, 2.5vw, 20px) clamp(16px, 3vw, 24px);
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.14);
    background:
        linear-gradient(165deg, rgba(255, 215, 0, 0.045) 0%, transparent 42%),
        rgba(8, 9, 12, 0.78);
    box-shadow:
        inset 3px 0 0 0 rgba(255, 215, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 44px -18px rgba(0, 0, 0, 0.65),
        0 0 60px -36px rgba(255, 215, 0, 0.08);
}

.formats-choice-bar__main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1 1 280px;
    min-width: 0;
}

.formats-choice-bar__mark {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 215, 0, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 14px rgba(0, 0, 0, 0.35);
}

.formats-choice-bar__text {
    margin: 0;
    padding-top: 2px;
    font-size: clamp(0.78rem, 1.35vw, 0.875rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.formats-choice-bar__btn.tariff-cta {
    flex-shrink: 0;
    width: auto;
    min-width: min(100%, 240px);
    margin-top: 0;
}

@media (max-width: 639px) {
    .formats-choice-bar {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: clamp(12px, 3vw, 16px);
    }

    .formats-choice-bar__main {
        flex: 0 1 auto;
    }

    .formats-choice-bar__btn.tariff-cta {
        width: 100%;
        min-width: 0;
    }
}

/* Иконка формата — линейный знак в круге */
.tariff-card__visual {
    flex-shrink: 0;
    margin: 0;
}

.tariff-icon {
    display: grid;
    place-items: center;
    width: clamp(44px, 8vw, 52px);
    height: clamp(44px, 8vw, 52px);
    border-radius: 50%;
    color: rgba(255, 215, 0, 0.95);
    background: radial-gradient(circle at 30% 25%, rgba(255, 215, 0, 0.12), transparent 55%),
        rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.35);
}

.tariff-icon-svg {
    width: clamp(22px, 4.5vw, 26px);
    height: clamp(22px, 4.5vw, 26px);
}

.tariff-card--featured .tariff-icon {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 24px -6px rgba(250, 204, 21, 0.28);
}

.tariff-title {
    margin: 0 0 clamp(0.45rem, 1.2vw, 0.65rem);
    max-width: none;
    font-family: var(--font-h);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: left;
    text-wrap: balance;
    color: var(--accent);
}

.tariff-lead {
    margin: 0;
    font-size: clamp(0.82rem, 1.5vw, 0.9rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
}

.tariff-card__head .tariff-lead + .tariff-lead {
    margin-top: 0.5em;
}

/* Список преимуществ — иконка слева + текст */
.tariff-block-title {
    margin: 0 0 clamp(0.55rem, 1.2vw, 0.75rem);
    font-family: var(--font-label), ui-monospace, monospace;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.75);
}

.tariff-block-title--muted {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.42);
}

.tariff-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.2vw, 0.7rem);
}

.tariff-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    font-size: clamp(0.76rem, 1.35vw, 0.84rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

.tariff-feature-text {
    flex: 1;
    min-width: 0;
}

.tariff-feature-icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.12rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.45);
    background: rgba(255, 215, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
}

.tariff-feature-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 8px;
    border: solid rgba(255, 215, 0, 0.95);
    border-width: 0 1.5px 1.5px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.tariff-do-list,
.tariff-out-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tariff-do-list li,
.tariff-out-list li {
    margin: 0;
    padding: 0.55rem 0.65rem 0.6rem 0.85rem;
    font-size: clamp(0.78rem, 1.45vw, 0.84rem);
    line-height: 1.52;
    color: rgba(255, 255, 255, 0.72);
    position: relative;
    border-radius: 0 10px 10px 0;
    border-left: 2px solid rgba(255, 215, 0, 0.45);
    background: rgba(255, 255, 255, 0.025);
}

.tariff-do-list li::before,
.tariff-out-list li::before {
    display: none;
}

.tariff-out-list li {
    border-left-color: rgba(255, 255, 255, 0.22);
}

/* CTA: те же опоры, что у .btn-main — тёмный графит, золото, белый текст */
.tariff-cta {
    margin-top: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    min-height: var(--touch-min);
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    display: inline-flex;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: var(--font-h), system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.tariff-cta__arrow {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.tariff-cta--ghost {
    border: 1px solid rgba(255, 215, 0, 0.85);
    background: rgba(6, 7, 10, 0.92);
    color: rgba(255, 255, 255, 0.96);
    text-shadow:
        0 0 4px rgba(0, 0, 0, 0.55),
        0 1px 2px rgba(0, 0, 0, 0.85);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.tariff-cta--ghost:hover,
.tariff-cta--ghost:focus-visible {
    border-color: rgba(255, 215, 0, 0.95);
    background: rgba(255, 215, 0, 0.07);
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.45),
        0 0 22px rgba(250, 204, 21, 0.28),
        0 14px 36px -14px rgba(0, 0, 0, 0.85);
    transform: translateY(-2px);
}

.tariff-cta--ghost:hover .tariff-cta__arrow,
.tariff-cta--ghost:focus-visible .tariff-cta__arrow {
    transform: translateX(4px);
}

.tariff-cta--solid {
    border: 1px solid rgba(255, 215, 0, 0.9);
    background:
        linear-gradient(135deg, var(--cta-green-dark), var(--cta-green));
    background-size: 200% 100%;
    background-position: 0% 50%;
    color: #ffffff;
    text-shadow:
        0 0 4px rgba(0, 0, 0, 0.65),
        0 1px 3px rgba(0, 0, 0, 0.9);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.18),
        0 14px 32px -14px rgba(0, 0, 0, 0.9);
    animation: btnPremiumShift 7s ease-in-out infinite;
}

.tariff-cta--solid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%, transparent 40%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 60%, transparent 100%
    );
    background-size: 200% 100%;
    background-position: 150% 0;
    animation: btnShimmerPremium 3.5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.tariff-cta--solid:hover::before,
.tariff-cta--solid:focus-visible::before {
    opacity: 1;
}

.tariff-cta--solid:hover,
.tariff-cta--solid:focus-visible {
    border-color: rgba(255, 215, 0, 0.85);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.9),
        0 0 28px rgba(250, 204, 21, 0.55),
        0 18px 40px -12px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tariff-cta--solid .tariff-cta__arrow {
    color: #ffffff;
}

.tariff-cta--solid:hover .tariff-cta__arrow,
.tariff-cta--solid:focus-visible .tariff-cta__arrow {
    transform: translateX(4px);
}

.tariff-cta:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.45);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .tariff-cta--solid {
        animation: none;
    }

    .tariff-cta--solid::before {
        animation: none;
        opacity: 0;
    }
}

@media (max-width: 960px) {
    #uslugi-tarify {
        scroll-margin-top: 72px;
    }

    .tariff-pick {
        top: 10px;
        right: 10px;
        padding: 0.35rem 0.65rem;
        font-size: 0.5rem;
    }

    .tariff-card--featured .tariff-card__inner {
        padding-top: clamp(14px, 3vw, 22px);
        padding-right: clamp(14px, 4vw, 22px);
    }

    .tariff-card--featured {
        transform: none;
    }

    .tariff-card--featured:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 639px) {
    .services-formats-container {
        padding-inline: clamp(14px, 4vw, 20px);
    }

    .tariff-card__inner {
        padding-left: clamp(16px, 4.5vw, 22px);
        padding-right: clamp(16px, 4.5vw, 22px);
    }

    .tariff-grid--formats {
        gap: clamp(16px, 5vw, 22px);
    }
}

/* Компактная секция тарифов: плотная типографика, меньше «воздуха» между блоками */
#uslugi-tarify.services-formats-section {
    padding-block: clamp(18px, 2.8vh, 36px);
}

#uslugi-tarify .formats-zone .faq-header,
#uslugi-tarify.services-formats-section .faq-header {
    margin-bottom: clamp(14px, 2vh, 22px);
}

/* «Кому подойдёт» внутри блока списка — меньше отдельных карточек */
.tariff-audience--inset {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tariff-audience--inset .tariff-audience__line {
    margin: 0;
}

.tariff-audience--inset .tariff-audience__line--strong {
    margin-bottom: 0.2rem;
}

.tariff-audience--inset .tariff-audience__line:not(.tariff-audience__line--strong) {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.38;
}

#uslugi-tarify .formats-tag {
    margin-bottom: clamp(0.35rem, 1vw, 0.55rem);
}

#uslugi-tarify .faq-title.formats-title-services {
    margin-bottom: clamp(0.45rem, 1.2vw, 0.8rem);
}

#uslugi-tarify .formats-intro.formats-intro--services {
    width: min(100%, 38rem);
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.5);
}

#uslugi-tarify .formats-intro {
    width: min(100%, 46rem);
    max-width: 46rem;
    font-size: clamp(0.78rem, 1.25vw, 0.875rem);
    line-height: 1.48;
}

#uslugi-tarify .tariff-grid--formats {
    gap: clamp(10px, 1.6vw, 16px);
}

#uslugi-tarify .tariff-card--format {
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.018) 38%, rgba(0, 0, 0, 0.32) 100%),
        rgba(8, 9, 12, 0.97);
}

#uslugi-tarify .tariff-card--featured {
    background:
        linear-gradient(165deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.025) 35%, rgba(0, 0, 0, 0.26) 100%),
        rgba(8, 9, 12, 0.97);
}

#uslugi-tarify .tariff-card__inner {
    padding: clamp(11px, 1.6vw, 16px) clamp(12px, 1.6vw, 18px) clamp(10px, 1.4vw, 14px);
}

#uslugi-tarify .tariff-card--featured .tariff-card__inner {
    padding-top: clamp(11px, 1.6vw, 16px);
    padding-right: clamp(12px, 1.8vw, 24px);
}

#uslugi-tarify .tariff-card__top {
    margin-bottom: clamp(8px, 1.1vw, 10px);
    padding-bottom: clamp(8px, 1.1vw, 10px);
    gap: 8px;
}

#uslugi-tarify .tariff-card__visual {
    margin-bottom: 0;
}

#uslugi-tarify .tariff-icon {
    width: clamp(34px, 5vw, 40px);
    height: clamp(34px, 5vw, 40px);
}

#uslugi-tarify .tariff-icon-svg {
    width: clamp(17px, 3vw, 20px);
    height: clamp(17px, 3vw, 20px);
}

#uslugi-tarify .tariff-card--format .tariff-title {
    margin-bottom: clamp(4px, 0.9vw, 8px);
    font-size: clamp(1.02rem, 1.9vw, 1.28rem);
}

#uslugi-tarify .tariff-lead {
    font-size: clamp(0.74rem, 1.1vw, 0.82rem);
    line-height: 1.45;
}

#uslugi-tarify .tariff-card__deliver {
    margin-top: 0;
    padding: clamp(8px, 1.1vw, 10px);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}

#uslugi-tarify .tariff-audience--inset {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

#uslugi-tarify .tariff-audience--inset .tariff-audience__line {
    font-size: clamp(0.64rem, 0.95vw, 0.69rem);
    line-height: 1.32;
}

#uslugi-tarify .tariff-audience--inset .tariff-audience__line--strong {
    font-size: clamp(0.56rem, 0.82vw, 0.6rem);
}

#uslugi-tarify .tariff-feature-list {
    gap: 0.42rem;
}

#uslugi-tarify .tariff-block-title {
    margin-bottom: 0.45rem;
}

#uslugi-tarify .tariff-feature-list li {
    font-size: clamp(0.68rem, 1vw, 0.76rem);
    line-height: 1.32;
    gap: 0.4rem;
}

#uslugi-tarify .tariff-feature-icon {
    width: 1rem;
    height: 1rem;
    margin-top: 0.08rem;
}

#uslugi-tarify .tariff-feature-icon::after {
    width: 4px;
    height: 7px;
}

#uslugi-tarify .tariff-card__foot {
    padding-top: clamp(0.4rem, 0.9vw, 0.55rem);
    gap: 0;
}

#uslugi-tarify .tariff-cta {
    padding-top: 0.48rem;
    padding-bottom: 0.48rem;
    min-height: 38px;
    border-radius: 10px;
}

/* Десктоп: уложить секцию в один экран, 2 колонки в списках */
@media (min-width: 1100px) and (min-height: 700px) {
    #uslugi-tarify.services-formats-section {
        padding-block: clamp(12px, 1.8vh, 20px);
        min-height: calc(100dvh - 76px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        overflow: visible;
    }

    #uslugi-tarify .services-formats-container {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }

    #uslugi-tarify .formats-zone .faq-header,
    #uslugi-tarify.services-formats-section .faq-header {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        column-gap: clamp(16px, 2.5vw, 28px);
        row-gap: 6px;
        align-items: end;
        margin-bottom: clamp(8px, 1.2vh, 14px);
        flex-shrink: 0;
    }

    #uslugi-tarify .formats-tag {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    #uslugi-tarify .faq-title.formats-title-services {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 0;
    }

    #uslugi-tarify .formats-intro.formats-intro--services {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        align-self: end;
    }

    #uslugi-tarify .formats-title-services--compact .formats-title__line {
        display: inline;
    }

    #uslugi-tarify .formats-title-services--compact .formats-title__line--accent {
        margin: 0 0.22em;
    }

    #uslugi-tarify .formats-title-services--compact .formats-title__line--tail::before {
        content: '\A';
        white-space: pre;
    }

    #uslugi-tarify .formats-title-services--compact .formats-title__line--w {
        font-size: clamp(1rem, 1.65vw, 1.45rem);
    }

    #uslugi-tarify .formats-title-services--compact .formats-title__line--accent {
        font-size: clamp(1.08rem, 1.85vw, 1.55rem);
    }

    #uslugi-tarify .formats-intro {
        font-size: clamp(0.72rem, 0.95vw, 0.8rem);
        line-height: 1.4;
        max-width: 40rem;
    }

    #uslugi-tarify .tariff-grid--formats {
        flex: 1 1 auto;
        min-height: 0;
        align-items: stretch;
        gap: clamp(8px, 1vw, 12px);
    }

    #uslugi-tarify .tariff-card--format {
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    #uslugi-tarify .tariff-card__inner {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        padding: clamp(9px, 1.1vw, 12px) clamp(10px, 1.2vw, 12px) clamp(8px, 1vw, 10px);
    }

    #uslugi-tarify .tariff-card__deliver {
        flex: 1 1 auto;
        min-height: 0;
    }

    #uslugi-tarify .tariff-card__foot {
        flex-shrink: 0;
        margin-top: auto;
    }

    #uslugi-tarify .tariff-card--featured {
        transform: none;
    }

    #uslugi-tarify .tariff-card--featured:hover {
        transform: translateY(-2px);
    }

    #uslugi-tarify .tariff-card__top {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 4px;
        align-items: start;
    }

    #uslugi-tarify .tariff-card__visual {
        grid-column: 1;
        grid-row: 1;
    }

    #uslugi-tarify .tariff-card__head {
        grid-column: 2;
        grid-row: 1 / span 2;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #uslugi-tarify .tariff-title {
        margin-bottom: 4px;
        font-size: clamp(0.92rem, 1.05vw, 1.05rem);
        line-height: 1.15;
    }

    #uslugi-tarify .tariff-lead {
        font-size: clamp(0.68rem, 0.82vw, 0.74rem);
        line-height: 1.34;
    }

    #uslugi-tarify .tariff-feature-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.55rem;
        row-gap: 0.28rem;
    }

    #uslugi-tarify .tariff-feature-list li {
        font-size: clamp(0.66rem, 0.78vw, 0.72rem);
        line-height: 1.28;
        align-items: flex-start;
    }

    #uslugi-tarify .tariff-block-title {
        margin-bottom: 0.35rem;
    }

    #uslugi-tarify .tariff-audience--inset {
        margin-top: 0.4rem;
        padding-top: 0.4rem;
    }

    #uslugi-tarify .formats-choice-bar {
        flex-shrink: 0;
        margin-top: clamp(8px, 1vh, 12px);
        padding: 8px 12px;
    }

    #uslugi-tarify .formats-choice-bar__mark {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    #uslugi-tarify .formats-choice-bar__text {
        font-size: 0.75rem;
        line-height: 1.35;
    }

    #uslugi-tarify .formats-choice-bar__btn.tariff-cta {
        min-height: 36px;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }
}

@media (min-width: 1100px) {
    #uslugi-tarify .tariff-grid--formats {
        align-items: stretch;
    }

    #uslugi-tarify .tariff-feature-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.5rem;
        row-gap: 0.3rem;
    }

    #uslugi-tarify .tariff-feature-list li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

#uslugi-tarify .formats-choice-bar {
    margin-top: clamp(14px, 2.5vw, 22px);
    padding: clamp(10px, 1.8vw, 14px) clamp(12px, 2.2vw, 18px);
    gap: clamp(10px, 2vw, 16px);
}

#uslugi-tarify .formats-choice-bar__mark {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

#uslugi-tarify .formats-choice-bar__text {
    font-size: clamp(0.72rem, 1.15vw, 0.8125rem);
    line-height: 1.38;
    padding-top: 1px;
}

#uslugi-tarify .formats-choice-bar__btn.tariff-cta {
    min-height: 42px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

/* «Получить консультацию» — неон как у hero / expert-usp CTA (main.css) */
#uslugi-tarify .formats-choice-bar__btn.tariff-cta--solid {
    border-color: rgba(255, 248, 140, 0.98);
    background: linear-gradient(135deg, #020617, #111827, #020617);
    background-size: 200% 100%;
    box-shadow:
        0 0 0 1px rgba(255, 250, 140, 0.98),
        0 0 14px rgba(255, 248, 120, 0.88),
        0 0 32px rgba(255, 235, 59, 0.58),
        0 0 52px rgba(255, 215, 0, 0.38),
        0 0 72px rgba(255, 200, 0, 0.18),
        0 18px 42px -18px rgba(0, 0, 0, 0.95);
    animation:
        btnPremiumShift 7s ease-in-out infinite,
        heroCtaNeonPulse 2.8s ease-in-out infinite;
}

#uslugi-tarify .formats-choice-bar__btn.tariff-cta--solid:hover,
#uslugi-tarify .formats-choice-bar__btn.tariff-cta--solid:focus-visible {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 220, 1);
    box-shadow:
        0 0 0 1px rgba(255, 250, 140, 0.98),
        0 0 14px rgba(255, 248, 120, 0.88),
        0 0 32px rgba(255, 235, 59, 0.58),
        0 0 52px rgba(255, 215, 0, 0.38),
        0 0 72px rgba(255, 200, 0, 0.18),
        0 18px 42px -18px rgba(0, 0, 0, 0.95);
    animation:
        btnPremiumShift 7s ease-in-out infinite,
        heroCtaNeonPulse 1.35s ease-in-out infinite;
}

#uslugi-tarify .formats-choice-bar__btn.tariff-cta--solid::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: linear-gradient(
        120deg,
        transparent 0,
        rgba(250, 204, 21, 0) 30%,
        rgba(255, 255, 255, 0.38) 50%,
        rgba(250, 204, 21, 0) 70%,
        transparent 100%
    );
    mix-blend-mode: screen;
    pointer-events: none;
    border-radius: inherit;
    animation: heroCtaSweep 2.6s ease-in-out infinite;
}

#uslugi-tarify .formats-choice-bar__btn.tariff-cta--solid:hover::after,
#uslugi-tarify .formats-choice-bar__btn.tariff-cta--solid:focus-visible::after {
    animation-duration: 1.6s;
}

@media (prefers-reduced-motion: reduce) {
    #uslugi-tarify .formats-choice-bar__btn.tariff-cta--solid {
        animation: none;
        box-shadow:
            0 0 0 1px rgba(255, 250, 140, 0.98),
            0 0 14px rgba(255, 248, 120, 0.55),
            0 18px 42px -18px rgba(0, 0, 0, 0.95);
    }

    #uslugi-tarify .formats-choice-bar__btn.tariff-cta--solid::after {
        animation: none;
        opacity: 0;
    }
}
