/* ===========================================
   SONAR BILLING SECTION
   Layout: text-pitch (left) + bento (right)
   Monochrome violet · same DNA as .analytics-*
   =========================================== */

   .billing-section {
    position: relative;
    background: #08051a;
    padding: 64px 0 110px;
    overflow: hidden;
    isolation: isolate;
  }

  /* Фон как в user stories: сетка + glow + орбы + кольца (классы из hero-starvy / sonar-user-stories) */
  .billing-section.section-starvy-bg > .container {
    position: relative;
    z-index: 2;
  }

  .billing-section .section-starvy-bg-glow {
    width: min(720px, 86vw);
    height: min(420px, 38vh);
    top: 38%;
    filter: blur(34px);
    opacity: 0.72;
  }
  
  /* ---------- HEADLINE (без изменений) ---------- */
  .billing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
  }
  
  .billing-title {
    margin: 0;
    color: var(--sonar-headline-section-color);
    font-size: var(--sonar-headline-section-fs);
    line-height: var(--sonar-headline-section-lh);
    font-weight: var(--sonar-headline-section-fw);
    letter-spacing: var(--sonar-headline-section-tracking);
  }
  
  .billing-subtitle {
    margin: 18px auto 0;
    max-width: 720px;
    color: rgba(226, 232, 240, 0.66);
    font-size: var(--sonar-section-subtitle-fs);
    line-height: var(--sonar-section-subtitle-lh);
  }
  
  /* ---------- WRAP ---------- */
  .billing-cards-wrap {
    position: relative;
    z-index: 2;
    max-width: 1360px;
    margin: 48px auto 0;
    padding: 0 16px;

    /* .billing-radar: top/right от верха этой обёртки (не секции); @media — ниже */
    --billing-radar-top: clamp(0px, 2vh, 32px);
    --billing-radar-right: clamp(16px, 5vw, 72px);
  }
  
  /* ===========================================
     LAYOUT — pitch + bento
     =========================================== */
  .billing-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 2.18fr);
    gap: 40px;
    align-items: stretch;
  }
  
  /* ===========================================
     LEFT: TEXT-PITCH LIST
     Простой лендинговый список, без карточки,
     без обводок — только текст и нумерация.
     =========================================== */
  .billing-pitch {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 4px 8px 0;
  }
  
  .billing-pitch-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  
  .billing-pitch-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 18px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
  }
  .billing-pitch-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .billing-pitch-num {
    display: inline-flex;
    align-items: baseline;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(216, 180, 254, 0.55);
    font-variant-numeric: tabular-nums;
    padding-top: 4px;
    position: relative;
  }
  .billing-pitch-num::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, #c084fc 0%, rgba(192, 132, 252, 0) 100%);
  }
  
  .billing-pitch-body {
    min-width: 0;
  }
  
  .billing-pitch-title {
    margin: 0 0 10px;
    font-size: clamp(18px, 1.45vw, 22px);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.01em;
  }
  
  .billing-pitch-text {
    margin: 0;
    font-size: clamp(13px, 1.05vw, 15px);
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.68);
    font-weight: 400;
  }
  
  /* ===========================================
     RIGHT: BENTO GRID — 3 cards layout
     - balance: tall left (col 1, span 2 rows)
     - calls + avg: top right (col 2 & 3, row 1)
     - chart: bottom right (col 2-3, row 2)
     =========================================== */
  .billing-bento {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.12fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 18px;
  }
  
  .billing-card--balance { grid-column: 1;          grid-row: 1 / span 2; }
  .billing-card--calls   { grid-column: 2;          grid-row: 1; }
  .billing-card--avg     { grid-column: 3;          grid-row: 1; }
  .billing-card--chart   { grid-column: 2 / span 2; grid-row: 2; }
  
  /* ---------- CARD BASE — glass как .story (sonar-user-stories.css) ---------- */
  .billing-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 24px;
    border-radius: 22px;
    background:
      radial-gradient(120% 80% at 0% 0%, rgba(216, 180, 254, 0.12), transparent 50%),
      radial-gradient(80% 60% at 100% 100%, rgba(124, 58, 237, 0.10), transparent 55%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.012) 100%),
      rgba(14, 11, 32, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(255, 255, 255, 0.04),
      inset 1px 0 0 rgba(255, 255, 255, 0.04),
      0 8px 28px -10px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    isolation: isolate;
    transition:
      border-color 0.3s ease,
      box-shadow 0.3s ease;
  }

  .billing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.30) 0%,
      rgba(255, 255, 255, 0.04) 40%,
      rgba(168, 85, 247, 0.16) 100%
    );
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    z-index: 0;
  }

  .billing-card::after {
    content: "";
    position: absolute;
    top: -18px;
    left: -18px;
    width: 190px;
    height: 120px;
    background: radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.07), transparent 58%);
    pointer-events: none;
    filter: blur(14px);
    z-index: 0;
  }

  .billing-card > * {
    position: relative;
    z-index: 1;
  }

  .billing-card:hover {
    border-color: rgba(168, 85, 247, 0.30);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 14px 38px -20px rgba(168, 85, 247, 0.22);
  }

  /* Blur как у .story: !important бьёт старые глобальные отключения; значения — как у .billing-card выше */
  .billing-section .billing-card {
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
  }
  
  .billing-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    min-height: 26px;
  }
  
  .billing-card-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(216, 180, 254, 0.85);
    text-transform: uppercase;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
  }
  
  .billing-card-subhead {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.45);
    letter-spacing: 0.04em;
  }
  
  .billing-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.5);
    white-space: nowrap;
    letter-spacing: 0.04em;
  }
  
  .billing-card-meta--up   { color: #c084fc; font-weight: 600; }
  .billing-card-meta--down { color: rgba(244, 114, 182, 0.85); font-weight: 600; }
  
  .billing-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 5px rgba(192, 132, 252, 0.45);
    animation: billing-pulse 1.8s ease-in-out infinite;
  }
  
  @keyframes billing-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.7); }
  }
  
  /* ===========================================
     BALANCE CARD (HERO)
     =========================================== */
  .billing-card--balance {
    padding: 28px 28px 26px;
  }
  
  .billing-balance-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 0 22px;
  }
  
  .billing-donut-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .billing-donut {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.12));
  }
  
  .billing-donut-track {
    fill: none;
    stroke: rgba(168, 85, 247, 0.08);
    stroke-width: 4;
  }
  
  .billing-donut-progress {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 314.159;
    stroke-dashoffset: 314.159;
  }
  .is-visible .billing-donut-progress {
    animation: billing-donut-fill 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
  }
  @keyframes billing-donut-fill {
    to { stroke-dashoffset: 109.96; }
  }
  
  .billing-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  
  .billing-donut-pct {
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    background: linear-gradient(135deg, #ffffff 0%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .billing-donut-pct-sign {
    font-size: 22px;
    margin-left: 2px;
    letter-spacing: 0;
  }
  
  .billing-donut-label {
    margin-top: 6px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.5);
  }
  
  .billing-balance-figure-wrap {
    text-align: center;
  }
  
  .billing-balance-figure {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
  }
  
  .billing-balance-value {
    font-size: clamp(36px, 3.8vw, 54px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 0%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .billing-balance-unit {
    font-size: 18px;
    font-weight: 400;
    color: rgba(192, 132, 252, 0.85);
    letter-spacing: -0.02em;
  }
  
  .billing-balance-caption {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.55);
    letter-spacing: 0.02em;
  }
  
  .billing-balance-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .billing-balance-cell {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
    min-width: 0;
  }
  
  .billing-balance-cell-dot {
    grid-row: 1 / span 2;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    align-self: center;
    flex-shrink: 0;
  }
  
  .dot-accent { background: #c084fc; box-shadow: 0 0 8px rgba(192, 132, 252, 0.55); }
  .dot-muted  { background: rgba(255, 255, 255, 0.35); }
  
  .billing-balance-cell-val {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  
  .billing-balance-cell-label {
    grid-column: 2;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.55);
    white-space: nowrap;
  }
  
  /* ===========================================
     BAR (общий)
     =========================================== */
  .billing-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 999px;
    overflow: hidden;
  }
  .billing-bar--lg { height: 6px; }
  .billing-bar--sm { height: 3px; margin-top: 16px; }
  
  .billing-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--target-width, 0%);
    background: linear-gradient(90deg, #7c3aed 0%, #c084fc 60%, #f5d0fe 100%);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(192, 132, 252, 0.28);
    transform: scaleX(0);
    transform-origin: left;
  }
  
  .billing-bar-fill--soft {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.6) 0%, rgba(192, 132, 252, 0.85) 100%);
    box-shadow: 0 0 5px rgba(192, 132, 252, 0.18);
  }
  
  .is-visible .billing-bar-fill {
    animation: billing-bar-grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  }
  
  @keyframes billing-bar-grow {
    to { transform: scaleX(1); }
  }
  
  /* ===========================================
     KPI CARDS
     =========================================== */
  .billing-card--kpi {
    padding: 24px 24px;
  }
  
  .billing-kpi-figure {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    margin-bottom: 4px;
  }
  
  .billing-kpi-value {
    font-size: clamp(40px, 4.4vw, 60px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .billing-kpi-unit {
    font-size: 18px;
    font-weight: 400;
    color: rgba(192, 132, 252, 0.8);
    letter-spacing: -0.02em;
  }
  
  .billing-kpi-caption {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.45);
  }
  
  .billing-sparkline {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: auto;
    padding-top: 18px;
    overflow: visible;
  }
  
  .billing-sparkline-area { opacity: 0; }
  .billing-section.is-visible .billing-sparkline-area {
    opacity: 1;
    transition: opacity 0.55s ease 0.55s;
  }
  
  .billing-sparkline-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .billing-section.is-visible .billing-sparkline-line {
    animation: billing-sparkline-draw 1.15s cubic-bezier(0.65, 0, 0.35, 1) 0.35s forwards;
  }
  
  @keyframes billing-sparkline-draw {
    to { stroke-dashoffset: 0; }
  }
  
  .billing-kpi-foot {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.4);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
  }
  .billing-kpi-foot-mid { color: rgba(192, 132, 252, 0.75); font-weight: 600; }
  
  /* ===========================================
     CHART CARD
     =========================================== */
  .billing-toggles {
    display: inline-flex;
    padding: 3px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.10);
    gap: 2px;
  }
  .billing-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(226, 232, 240, 0.6);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: inherit;
  }
  .billing-toggle.is-active {
    color: #0b0616;
    background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 100%);
  }
  
  .billing-chart-figure {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
  }
  .billing-chart-value {
    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #ffffff 0%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .billing-chart-caption {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.5);
  }
  
  .billing-chart-wrap {
    position: relative;
    width: 100%;
    margin-top: auto;
  }
  
  .billing-chart {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 720 / 180;
    overflow: visible;
  }
  
  .billing-chart-grid line {
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 1;
  }
  
  .billing-chart-area {
    fill: url(#billingChartFill);
    opacity: 0;
    transition: opacity 0.6s ease 1.2s;
  }
  .is-visible .billing-chart-area { opacity: 1; }
  
  .billing-chart-line {
    fill: none;
    stroke: url(#billingChartStroke);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 850;
    stroke-dashoffset: 850;
  }
  .billing-chart-line--glow {
    stroke-width: 5;
    opacity: 0;
    filter: url(#billingChartGlow);
  }
  
  .is-visible .billing-chart-line {
    animation: billing-line-draw 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
  }
  .is-visible .billing-chart-line--glow {
    animation:
      billing-line-draw 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards,
      billing-glow-fade 0.8s ease 1.4s forwards;
  }
  
  @keyframes billing-line-draw {
    to { stroke-dashoffset: 0; }
  }
  @keyframes billing-glow-fade {
    to { opacity: 0.45; }
  }
  
  .billing-chart-points circle {
    fill: #0f0b1e;
    stroke: #c084fc;
    stroke-width: 1.8;
    opacity: 0;
    transform: scale(0.6);
    transform-origin: center;
    transform-box: fill-box;
  }
  .is-visible .billing-chart-points circle {
    animation: billing-point-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) var(--pt-delay, 1s) forwards;
  }
  @keyframes billing-point-in {
    to { opacity: 1; transform: scale(1); }
  }
  .billing-chart-points circle.is-last,
  .billing-chart-points circle.is-peak {
    fill: #c084fc;
    stroke: #f5d0fe;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 4px rgba(192, 132, 252, 0.45));
  }
  .billing-section.is-visible .billing-chart-points circle.is-last,
  .billing-section.is-visible .billing-chart-points circle.is-peak {
    animation:
      billing-point-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) var(--pt-delay, 1s) forwards,
      billing-point-pulse 2.2s ease-in-out calc(var(--pt-delay, 1s) + 0.4s) infinite;
  }
  @keyframes billing-point-pulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(192, 132, 252, 0.4)); }
    50%      { filter: drop-shadow(0 0 7px rgba(192, 132, 252, 0.55)); }
  }
  
  .billing-chart-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: rgba(203, 213, 225, 0.4);
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
  }
  
  /* ===========================================
     INITIAL FADE-IN
     =========================================== */
  .billing-section:not(.is-visible) .billing-cards-wrap {
    opacity: 0;
  }
  
  .billing-section:not(.is-visible) .billing-card {
    opacity: 0;
  }
  
  .billing-section:not(.is-visible) .billing-pitch-item {
    opacity: 0;
    transform: translateX(-16px);
  }
  
  .billing-section.is-visible .billing-cards-wrap {
    animation: billing-fade-in 0.9s ease-out 0.3s forwards;
  }
  
  .billing-section.is-visible .billing-card {
    animation: billing-fade-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .billing-section.is-visible .billing-card--balance { animation-delay: 0.55s; }
  .billing-section.is-visible .billing-card--calls   { animation-delay: 0.65s; }
  .billing-section.is-visible .billing-card--avg     { animation-delay: 0.75s; }
  .billing-section.is-visible .billing-card--chart   { animation-delay: 0.85s; }
  
  .billing-section.is-visible .billing-pitch-item {
    animation: billing-pitch-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .billing-section.is-visible .billing-pitch-item:nth-child(1) { animation-delay: 0.45s; }
  .billing-section.is-visible .billing-pitch-item:nth-child(2) { animation-delay: 0.55s; }
  .billing-section.is-visible .billing-pitch-item:nth-child(3) { animation-delay: 0.65s; }
  .billing-section.is-visible .billing-pitch-item:nth-child(4) { animation-delay: 0.75s; }
  
  @keyframes billing-fade-in {
    to { opacity: 1; }
  }
  @keyframes billing-pitch-in {
    to { opacity: 1; transform: translateX(0); }
  }
  
  /* ===========================================
     ADAPTIVE
     =========================================== */
  @media (max-width: 1199px) {
    /* Текст уезжает наверх, bento — снизу, шире */
    .billing-layout {
      grid-template-columns: 1fr;
      gap: 36px;
    }
    .billing-pitch-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px 32px;
    }
    .billing-pitch-item {
      padding-bottom: 22px;
    }
    /* Убираем нижний бордер у предпоследнего пункта, т.к. он становится правым в строке */
    .billing-pitch-item:nth-last-child(2) {
      /* остаётся как есть — нижний бордер уместен */
    }
  
    /* Bento остаётся в 3-колоночной раскладке */
  }
  
  @media (max-width: 991px) {
    .billing-section { padding: 56px 0 96px; }
    .billing-cards-wrap {
      margin-top: 40px;
      --billing-radar-top: clamp(0px, 2vh, 28px);
      --billing-radar-right: clamp(12px, 4vw, 48px);
    }
    .billing-card { padding: 22px 22px; }
  }
  
  @media (max-width: 767px) {
    .billing-pitch-list {
      grid-template-columns: 1fr;
      gap: 24px;
    }
  
    .billing-bento {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto auto;
    }
    .billing-card--balance,
    .billing-card--calls,
    .billing-card--avg,
    .billing-card--chart {
      grid-column: 1;
      grid-row: auto;
    }
  
    .billing-balance-foot {
      flex-direction: column;
      gap: 10px;
    }
  }
  
  @media (max-width: 575px) {
    .billing-section { padding: 48px 0 80px; }
    .billing-cards-wrap {
      --billing-radar-top: 4px;
      --billing-radar-right: clamp(8px, 3vw, 32px);
    }
    .billing-card {
      padding: 22px 20px;
      border-radius: 18px;
    }
    .billing-balance-value { font-size: 48px; }
    .billing-kpi-value { font-size: 38px; }
    .billing-chart-value { font-size: 28px; }
  
    .billing-pitch-item {
      grid-template-columns: 36px 1fr;
      column-gap: 14px;
    }
    .billing-pitch-num { font-size: 12px; }
    .billing-pitch-title { font-size: 17px; }
    .billing-pitch-text { font-size: 13px; }
  }
  
  /* ===========================================
     REDUCED MOTION
     =========================================== */
  @media (prefers-reduced-motion: reduce) {
    .billing-content,
    .billing-cards-wrap,
    .billing-card,
    .billing-pitch-item,
    .billing-live-dot,
    .billing-bar-fill,
    .billing-chart-line,
    .billing-chart-line--glow,
    .billing-chart-points circle,
    .billing-chart-points circle.is-last,
    .billing-donut-progress,
    .billing-sparkline-line,
    .billing-sparkline-area {
      animation: none !important;
      transition: none !important;
    }
    .billing-section .billing-content,
    .billing-section .billing-cards-wrap,
    .billing-section .billing-card,
    .billing-section .billing-pitch-item {
      opacity: 1 !important;
      transform: none !important;
    }
    .billing-bar-fill { transform: scaleX(1); }
    .billing-chart-line,
    .billing-chart-line--glow { stroke-dashoffset: 0; }
    .billing-chart-line--glow { opacity: 0.45; }
    .billing-chart-points circle { opacity: 1; transform: scale(1); }
    .billing-chart-area { opacity: 1; }
    .billing-donut-progress { stroke-dashoffset: 109.96; }
    .billing-sparkline-line { stroke-dashoffset: 0; }
    .billing-sparkline-area { opacity: 1; }
  }

  /* ===========================================
   BILLING RADAR DECOR
   Положение: --billing-radar-top / --billing-radar-right на .billing-cards-wrap
   =========================================== */

.billing-radar {
  position: absolute;
  top: var(--billing-radar-top);
  right: var(--billing-radar-right);
  width: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Static dashed rings ---------- */
.billing-radar-ring {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.15);
  transform: translate(-50%, -50%);
}

.billing-radar-ring--1 { width: 220px; height: 220px; }
.billing-radar-ring--2 { width: 420px; height: 420px; }
.billing-radar-ring--3 {
  width: 640px;
  height: 640px;
  border-color: rgba(168, 85, 247, 0.08);
}

/* ---------- Ambient glow в центре радара ---------- */
.billing-radar-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(216, 180, 254, 0.22) 0%,
    rgba(124, 58, 237, 0.10) 40%,
    transparent 70%
  );
  filter: blur(40px);
}

/* ---------- Expanding waves (пульсации) ---------- */
.billing-radar-wave {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(216, 180, 254, 0.45);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: billing-radar-wave 4.5s cubic-bezier(0.2, 0.8, 0.3, 1) infinite;
}

.billing-radar-wave--1 { animation-delay: 0s;    }
.billing-radar-wave--2 { animation-delay: 1.5s;  }
.billing-radar-wave--3 { animation-delay: 3s;    }

@keyframes billing-radar-wave {
  0% {
    width: 80px;
    height: 80px;
    opacity: 0;
    border-width: 2px;
  }
  15% {
    opacity: 0.55;
  }
  100% {
    width: 720px;
    height: 720px;
    opacity: 0;
    border-width: 0.5px;
  }
}

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
  .billing-radar-ring--1 { width: 180px; height: 180px; }
  .billing-radar-ring--2 { width: 320px; height: 320px; }
  .billing-radar-ring--3 { width: 480px; height: 480px; }

  @keyframes billing-radar-wave {
    0%   { width: 70px;  height: 70px;  opacity: 0;    border-width: 2px;   }
    15%  { opacity: 0.55; }
    100% { width: 540px; height: 540px; opacity: 0;    border-width: 0.5px; }
  }
}

@media (max-width: 575px) {
  .billing-radar-ring--1 { width: 140px; height: 140px; }
  .billing-radar-ring--2 { width: 240px; height: 240px; }
  .billing-radar-ring--3 { display: none; }

  .billing-radar-glow {
    width: 220px;
    height: 220px;
  }

  @keyframes billing-radar-wave {
    0%   { width: 60px;  height: 60px;  opacity: 0;    border-width: 1.5px; }
    15%  { opacity: 0.55; }
    100% { width: 400px; height: 400px; opacity: 0;    border-width: 0.5px; }
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .billing-radar-wave {
    display: none;
  }
}