/* Страница услуги: разработка сайтов */

.service-page--detector .service-hero__bg {
    background:
        radial-gradient(ellipse 70% 55% at 85% 15%, rgba(56, 189, 248, 0.14), transparent 55%),
        radial-gradient(ellipse 55% 45% at 10% 80%, rgba(124, 92, 255, 0.16), transparent 50%);
}

html[data-theme="dark"] .service-page--detector .service-hero__bg {
    background:
        radial-gradient(ellipse 70% 55% at 85% 15%, rgba(56, 189, 248, 0.1), transparent 55%),
        radial-gradient(ellipse 55% 45% at 10% 80%, rgba(124, 92, 255, 0.12), transparent 50%);
}

.service-page {
    position: relative;
    z-index: 2;
}

.service-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--hero-top-gap)) 0 56px;
    overflow: hidden;
}

.service-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(124, 92, 255, 0.22), transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(0, 212, 255, 0.14), transparent 50%);
    pointer-events: none;
}

.service-hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr minmax(380px, 520px);
    gap: 40px 64px;
    align-items: end;
}

.service-hero .breadcrumbs {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.service-hero__content {
    min-width: 0;
}

.service-hero__title {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-display);
    font-size: clamp(36px, 4.8vw, 58px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 12px 0 20px;
    max-width: 760px;
}

.service-hero__title-accent {
    display: block;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .service-hero__title-accent {
    background: linear-gradient(135deg, #c4b5ff 0%, #7c5cff 45%, #5ee9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-hero__title-main {
    display: block;
}

.service-hero__title-brand {
    white-space: nowrap;
}

.service-hero__desc {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-2);
    max-width: 640px;
    margin-bottom: 28px;
}

.service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Визуал «12 лет» + чипсы (как about__visual на главной, чуть компактнее) */
.service-hero__visual {
    position: relative;
    width: min(100%, 520px);
    max-width: 520px;
    aspect-ratio: 1;
    margin-left: auto;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.service-hero__years {
    position: relative;
    z-index: 2;
    text-align: center;
}

.service-hero__years-num {
    font-family: var(--font-display);
    font-size: clamp(84px, 11vw, 136px);
    font-weight: 700;
    line-height: 1;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(124, 92, 255, 0.35);
}

.service-hero__years-lbl {
    font-size: 16px;
    line-height: 1.45;
    color: var(--text-2);
    margin-top: 10px;
}

.service-hero__badge {
    position: relative;
    z-index: 4;
    display: inline-block;
    margin: 24px auto 0;
    background: rgba(255, 184, 77, 0.12);
    border: 1px solid rgba(255, 184, 77, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 22px;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: floatBadge1 4s ease-in-out infinite;
}

.service-hero__badge-num {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.service-hero__badge-lbl {
    display: block;
    font-size: 12px;
    color: var(--text-3);
    margin-top: 4px;
}

.service-site-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(124, 92, 255, 0.04);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text);
    animation: chipFloat 6s ease-in-out infinite;
    animation-delay: var(--chip-delay, 0s);
    transition: transform var(--t-base) var(--easing), border-color var(--t-base) var(--easing), box-shadow var(--t-base) var(--easing);
}

.service-site-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(124, 92, 255, 0.7);
    flex-shrink: 0;
}

@media (hover: hover) {
    .service-site-chip:hover {
        transform: translateY(-4px) scale(1.05);
        border-color: rgba(124, 92, 255, 0.5);
        box-shadow: var(--shadow-md), 0 0 24px rgba(124, 92, 255, 0.18);
    }
}

.service-site-chip--1  { top: -2%;   left: -8%; }
.service-site-chip--2  { top: 8%;    right: -12%; animation-name: chipFloatAlt; }
.service-site-chip--3  { top: 36%;   left: -14%; }
.service-site-chip--4  { bottom: 8%; right: -6%; animation-name: chipFloatAlt; }
.service-site-chip--5  { bottom: 22%; left: -10%; }
.service-site-chip--6  { top: 22%;   right: -14%; animation-name: chipFloatAlt; }
.service-site-chip--7  { top: -4%;   left: 32%; }
.service-site-chip--8  { bottom: -4%; left: 28%; animation-name: chipFloatAlt; }
.service-site-chip--9  { top: 58%;   right: -8%; }
.service-site-chip--10 { bottom: 38%; left: 8%; animation-name: chipFloatAlt; }

@media (prefers-reduced-motion: reduce) {
    .service-site-chip,
    .service-hero__badge {
        animation: none;
    }
}

.service-section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.service-section--muted {
    background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.04) 50%, transparent);
}

.service-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-feature {
    position: relative;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: border-color var(--t-base) var(--easing), background var(--t-base) var(--easing);
}

.service-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--grad-glass);
    opacity: 0;
    transition: opacity var(--t-base) var(--easing);
    pointer-events: none;
}

.service-feature::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    background: radial-gradient(circle, var(--accent), transparent);
    filter: blur(60px);
    opacity: 0;
    transition: opacity var(--t-base) var(--easing);
    pointer-events: none;
}

@media (hover: hover) {
    .service-feature:hover {
        border-color: var(--border-strong);
        background: var(--surface-strong);
    }

    .service-feature:hover::before {
        opacity: 1;
    }

    .service-feature:hover::after {
        opacity: 0.4;
    }

    .service-feature:hover .service-feature__icon {
        transform: scale(1.08) rotate(-5deg);
        color: #fff;
    }
}

.service-feature__icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 92, 255, 0.12);
    color: var(--accent);
    margin-bottom: 16px;
    transition: all var(--t-base) var(--easing);
}

.service-feature__icon svg {
    width: 26px;
    height: 26px;
}

.service-feature__title {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.25;
}

.service-feature__desc {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-2);
}

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

.service-type {
    position: relative;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: border-color var(--t-base) var(--easing), background var(--t-base) var(--easing);
}

.service-type::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--grad-glass);
    opacity: 0;
    transition: opacity var(--t-base) var(--easing);
    pointer-events: none;
}

.service-type::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    background: radial-gradient(circle, var(--accent), transparent);
    filter: blur(60px);
    opacity: 0;
    transition: opacity var(--t-base) var(--easing);
    pointer-events: none;
}

@media (hover: hover) {
    .service-type:hover {
        border-color: var(--border-strong);
        background: var(--surface-strong);
    }

    .service-type:hover::before {
        opacity: 1;
    }

    .service-type:hover::after {
        opacity: 0.4;
    }
}

.service-type__title {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-type__desc {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-2);
    margin-bottom: 16px;
}

.service-type__list {
    position: relative;
    z-index: 1;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-type__list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.4;
}

.service-type__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--accent-2);
    border-bottom: 2px solid var(--accent-2);
    transform: rotate(-45deg);
}

.service-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.service-step {
    position: relative;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--t-base) var(--easing), background var(--t-base) var(--easing);
}

.service-step::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--grad-glass);
    opacity: 0;
    transition: opacity var(--t-base) var(--easing);
    pointer-events: none;
}

@media (hover: hover) {
    .service-step:hover {
        border-color: var(--border-strong);
        background: var(--surface-strong);
    }

    .service-step:hover::before {
        opacity: 1;
    }

    .service-step:hover .service-step__num {
        border-color: var(--grad-main-from);
        color: #fff;
        transform: scale(1.08);
        box-shadow: 0 0 30px rgba(124, 92, 255, 0.5);
    }
}

.service-step__num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    background: var(--bg-1);
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    transition: all var(--t-base) var(--easing);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.service-step__title {
    position: relative;
    z-index: 1;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-step__desc {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-2);
}

.cases--sites {
    padding: 100px 0 0;
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .service-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-types:not(.service-types--duo) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* «Как идёт внедрение» — столбиком, не 2–4 колонки в ряд */
    .service-steps:not(.service-steps--modules) {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (min-width: 1201px) {
    .service-steps:not(.service-steps--modules) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .service-section {
        padding: 60px 0;
    }

    .service-hero__container {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: stretch;
    }

    .service-hero__visual {
        margin: 0 auto;
        max-width: 360px;
    }

    /* Облако/коробка и «Что настраиваем» — одна колонка, без сжатия */
    .service-features,
    .service-types,
    .service-types--duo,
    .service-steps,
    .service-steps--modules {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-type,
    .service-feature,
    .service-step {
        padding: 22px 20px;
    }
}

@media (max-width: 768px) {
    .service-hero__title {
        font-size: clamp(31px, 7vw, 40px);
        line-height: 1.08;
        margin: 10px 0 16px;
    }

    .service-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .service-hero__actions .btn {
        width: 100%;
    }

    .service-hero__visual {
        max-width: 300px;
    }

    .service-hero__years-num {
        font-size: clamp(64px, 20vw, 96px);
    }

    .service-site-chip {
        font-size: 11px;
        padding: 6px 11px;
    }

    .service-site-chip--3,
    .service-site-chip--6,
    .service-site-chip--8,
    .service-site-chip--10 {
        display: none;
    }

    .service-features,
    .service-types,
    .service-types--duo,
    .service-steps,
    .service-steps--modules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-hero__title {
        font-size: clamp(28px, 6.5vw, 33px);
        letter-spacing: -0.02em;
    }
}

/* Страница Битрикс24 */
.service-page--bitrix24 .service-hero__bg {
    background:
        radial-gradient(circle at 20% 25%, rgba(0, 212, 255, 0.1), transparent 45%),
        radial-gradient(circle at 80% 55%, rgba(124, 92, 255, 0.14), transparent 50%);
}

html[data-theme="dark"] .service-page--bitrix24 .service-hero__bg {
    background:
        radial-gradient(circle at 20% 25%, rgba(0, 212, 255, 0.18), transparent 45%),
        radial-gradient(circle at 80% 55%, rgba(124, 92, 255, 0.24), transparent 50%);
}

/* Две колонки только на десктопе; на планшете/телефоне — стек из @media (max-width: 992px) */
@media (min-width: 993px) {
    .service-types--duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.service-type__badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-2);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-full);
}

.service-type__badge--box {
    color: var(--accent);
    background: rgba(124, 92, 255, 0.12);
    border-color: rgba(124, 92, 255, 0.3);
}

.service-type--accent {
    border-color: rgba(0, 212, 255, 0.2);
}

.service-steps--modules .service-step__num {
    width: auto;
    min-width: 56px;
    height: auto;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Сетка модулей — только в media, иначе перебивает mobile (правило ниже max-width) */
@media (min-width: 1201px) {
    .service-steps.service-steps--modules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .service-steps.service-steps--modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .service-steps.service-steps--modules {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.cases--bitrix24 {
    padding: 100px 0 0;
    position: relative;
    z-index: 2;
}

/* Тарифы Битрикс24 */
.service-tariffs {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.service-section--tarify .service-tariffs {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.service-tariffs__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 28px;
}

.service-tariffs__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.tariff-period {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}

.tariff-period__btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    border-radius: var(--radius-full);
    transition: color var(--t-base) var(--easing), background var(--t-base) var(--easing);
}

.tariff-period__btn:hover {
    color: var(--text);
}

.tariff-period__btn--active {
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
}

.tariff-period__promo {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffb84d;
    background: rgba(255, 184, 77, 0.12);
    border: 1px solid rgba(255, 184, 77, 0.35);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.service-tariffs__group-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    margin: 0 0 16px;
}

.service-tariffs__group-label--box {
    margin-top: 40px;
    color: var(--accent);
}

.tariff-card__old {
    display: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-3);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.tariff-card--year .tariff-card__old:not([hidden]) {
    display: block;
}

.tariff-card__old[hidden] {
    display: none !important;
}

.tariff-card__price {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 4px 6px;
}

.tariff-card__price .tariff-card__old {
    width: 100%;
}

.tariff-grid,
.tariff-box-grid {
    display: grid;
    gap: 16px;
}

.tariff-free-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 28px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(0, 212, 255, 0.06));
    border: 1px solid rgba(124, 92, 255, 0.25);
    border-radius: var(--radius-lg);
}

.tariff-free-banner__title {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.tariff-free-banner__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-2);
}

.tariff-free-banner__btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.tariff-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tariff-box-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tariff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--t-base) var(--easing), box-shadow var(--t-base) var(--easing), transform var(--t-base) var(--easing);
}

@media (hover: hover) {
    .tariff-card:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
    }
}

.tariff-card--enterprise .tariff-card__amount {
    font-size: clamp(18px, 2vw, 22px);
}

.tariff-card--box {
    border-color: rgba(124, 92, 255, 0.2);
}

.tariff-card--hot {
    border-color: rgba(255, 120, 60, 0.45);
    background: linear-gradient(165deg, rgba(255, 120, 60, 0.1) 0%, var(--surface) 42%);
    box-shadow: 0 0 0 1px rgba(255, 120, 60, 0.12), 0 12px 32px rgba(255, 100, 50, 0.12);
}

.tariff-grid .tariff-card--hot {
    border-color: rgba(255, 120, 60, 0.45);
}

@media (hover: hover) {
    .tariff-card--hot:hover {
        border-color: rgba(255, 140, 80, 0.65);
        box-shadow: 0 0 0 1px rgba(255, 120, 60, 0.2), 0 16px 40px rgba(255, 100, 50, 0.18);
    }
}

.tariff-card__flame {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #ff9a5c;
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.22), rgba(255, 80, 40, 0.12));
    border: 1px solid rgba(255, 140, 80, 0.4);
    border-radius: var(--radius-full);
    box-shadow: 0 0 16px rgba(255, 100, 50, 0.25);
}

.tariff-card__flame-icon {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    animation: tariff-flame-flicker 1.4s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 140, 60, 0.8));
}

.tariff-card__flame-text {
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@keyframes tariff-flame-flicker {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.12) translateY(-1px);
        opacity: 0.88;
    }
}

.tariff-card__prefix {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    margin-right: 4px;
}

.tariff-card--hot .tariff-card__name {
    padding-right: 72px;
}

.tariff-card__tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-2);
    background: rgba(0, 212, 255, 0.12);
    border-radius: var(--radius-full);
}

.tariff-card__name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 10px;
    padding-right: 52px;
}

.tariff-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.tariff-card__users,
.tariff-card__billing {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}

.tariff-card__users {
    color: var(--text-2);
}

.tariff-card__billing {
    color: var(--text-3);
}

.tariff-card .tariff-card__price {
    margin-bottom: 4px;
    line-height: 1.1;
    color: var(--text);
}

.tariff-card__amount {
    font-family: var(--font-display);
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.tariff-card__currency {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
}

.tariff-card__period {
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 14px;
    white-space: nowrap;
}

.tariff-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.tariff-card__list li {
    position: relative;
    padding-left: 14px;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--text-2);
}

.tariff-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}

.service-tariffs__cta {
    margin-top: 36px;
    padding: 28px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.service-tariffs__cta p {
    font-size: 15px;
    color: var(--text-2);
    max-width: 480px;
    margin: 0;
}

.service-type__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-2);
    transition: gap var(--t-base) var(--easing), color var(--t-base) var(--easing);
}

.service-type__link:hover {
    gap: 12px;
    color: var(--accent);
}

.service-hero--compact {
    padding: calc(var(--header-height) + var(--hero-top-gap)) 0 40px;
}

.service-hero__content--compact .service-hero__title {
    font-size: clamp(32px, 4vw, 48px);
}

.service-hero__content--compact .service-hero__desc {
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .tariff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tariff-box-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tariff-box-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .tariff-grid,
    .tariff-box-grid {
        grid-template-columns: 1fr;
    }

    .tariff-card__name,
    .tariff-card--hot .tariff-card__name {
        padding-right: 0;
    }

    .tariff-card__flame,
    .tariff-card__tag {
        position: static;
        display: inline-flex;
        margin-bottom: 10px;
    }

    .service-tariffs__cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .service-tariffs__cta .btn {
        width: 100%;
    }

    .service-tariffs__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tariff-period {
        flex-wrap: wrap;
    }

    .tariff-free-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .tariff-free-banner__btn {
        width: 100%;
        justify-content: center;
    }

    .tariff-card__users,
    .tariff-card__billing,
    .tariff-card__period {
        white-space: normal;
    }
}
