  .pricing-section,
  .pricing-section * { box-sizing: border-box; }

  .pricing-section {
    margin: 40px auto 80px;
    max-width: 1000px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px 10px;
  }

  .table-title {
    text-align: center;
    margin: 10px 0 16px;
    color: #4B326B;
    font-size: 24px;
  }

  .table-wrapper { overflow: visible; }

  .pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    table-layout: fixed;
  }

  .pricing-table th,
  .pricing-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    font-size: 0.95rem;
    vertical-align: middle;
    background: #fff;
    word-break: break-word;
  }

  .pricing-table th {
    background: #f8f6fb;
    color: #4B326B;
    font-weight: 800;
    vertical-align: top;
  }

  .pricing-table .col-feature {
    background: #f8f6fb;
    font-weight: 700;
    text-align: left;
    color: #333;
    min-width: 0;
    width: 40%;
  }

  .pricing-table .col-plan { width: 20%; }

  .plan-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 7px;
  }

  .group-row td { background: #fff; }

  .group-row .group-title {
    background: #f8f6fb;
    color: #333;
    font-weight: 700;
    text-align: left;
  }

  .col-feature.feature-right {
    text-align: right !important;
    padding-right: 22px !important;
  }

  /* ===== Блок цен (уменьшено и легче) ===== */
  .price-box{
    margin: 0 auto;
    max-width: 260px;
    background: #ffffff;
    border: 1px solid rgba(75, 50, 107, 0.16);
    border-radius: 14px;
    padding: 10px 10px 9px;
    display: grid;
    gap: 6px;
  }

  .rub-line{
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    line-height: 1.1;
		flex-wrap: wrap;
  }

  .rub-amt{
    font-size: 16px;
    font-weight: 800;
    color: #4B326B;
    white-space: nowrap;
  }

  .rub-per{
    font-size: 11.5px;
    font-weight: 700;
    color: #6b7280;
    white-space: nowrap;
  }

  /* (badge / fx-line оставили в CSS как есть — они просто больше не используются в HTML) */

  /* ===== Единая CTA ===== */
  .pricing-cta {
    margin-top: 14px;
    display: flex;
    justify-content: center;
  }

  .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    padding: 14px 16px;
    background: #4B326B;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    text-align: center;
    line-height: 1.25;
    transition: 0.2s ease;
  }

  .btn-cta:hover { background: #352357; }

  .plan-switch {
    display: none;
    gap: 8px;
    margin: 0 0 12px;
  }

  .plan-tab {
    flex: 1;
    border: 1px solid #ddd;
    background: #fff;
    color: #4B326B;
    border-radius: 10px;
    padding: 10px 10px;
    font-weight: 800;
    cursor: pointer;
  }

  .plan-tab.is-active {
    background: #4B326B;
    border-color: #4B326B;
    color: #fff;
  }

  /* ===== Попап ===== */
  .avs-modal { position: fixed; inset: 0; display: none; z-index: 99999; }
  .avs-modal.is-open { display: block; }
  .avs-modal__overlay { position: absolute; inset: 0; background: rgba(17, 24, 39, 0.55); }

  .avs-modal__dialog {
    position: relative;
    margin: 6vh auto 0;
    width: min(680px, calc(100% - 24px));
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(75, 50, 107, 0.18);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
  }

  .avs-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(75, 50, 107, 0.25);
    background: #fff;
    color: #4B326B;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .avs-modal__close:hover { background: #fff; }

  .avs-modal__header {
    padding: 18px 18px 10px;
    background: #f8f6fb;
    border-bottom: 1px solid #eee;
  }

  .avs-modal__title {
    font-weight: 900;
    color: #4B326B;
    font-size: 18px;
    line-height: 1.2;
  }

  .avs-modal__subtitle {
    margin-top: 6px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.35;
  }

  .avs-modal__body {
    padding: 14px 18px 18px;
    max-height: 78vh;
    overflow: auto;
  }

  .avs-disclaimer {
    border: 1px solid rgba(75, 50, 107, 0.18);
    background: #fbf9ff;
    border-radius: 12px;
    padding: 12px 12px;
    margin-bottom: 12px;
  }

  .avs-disclaimer__label {
    font-weight: 900;
    color: #4B326B;
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.2px;
  }

  .avs-disclaimer__text p {
    margin: 0 0 8px;
    color: #374151;
    font-size: 13px;
    line-height: 1.45;
  }

  .avs-checks { display: grid; gap: 10px; margin: 12px 0 14px; }

  .avs-check {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    cursor: pointer;
  }

  .avs-check__input { position: absolute; opacity: 0; pointer-events: none; }

  .avs-check__box {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid rgba(75, 50, 107, 0.35);
    background: #fff;
    margin-top: 2px;
    position: relative;
  }

  .avs-check__input:checked + .avs-check__box {
    border-color: #4B326B;
    background: #4B326B;
  }

  .avs-check__input:checked + .avs-check__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
  }

  .avs-check__text {
    font-size: 13px;
    line-height: 1.45;
    color: #111827;
  }

  .avs-check__text a { color: #4B326B; font-weight: 900; text-decoration: underline; }

  .avs-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .avs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    user-select: none;
  }

  .avs-btn--primary {
    background: #4B326B;
    color: #fff;
    border-color: #4B326B;
  }

  .avs-btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .avs-btn--ghost {
    background: #fff;
    color: #4B326B;
    border-color: rgba(75, 50, 107, 0.25);
  }

  .avs-note {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
    text-align: center;
  }

  /* ===== МОБИЛА: показываем 1 тариф за раз ===== */
  @media (max-width: 768px) {
    .pricing-section { padding: 16px 10px; }
    .table-title { font-size: 20px; }

    .table-wrapper { overflow: visible; }
    .plan-switch { display: flex; }

    .pricing-table { width: 100%; table-layout: fixed; }
    .pricing-table th, .pricing-table td { padding: 10px; font-size: 0.92rem; }

    .pricing-table .col-feature { width: 58%; }
    .pricing-table .col-plan { width: 42%; }

    .pricing-table.plan-lite th:nth-child(3),
    .pricing-table.plan-lite td:nth-child(3),
    .pricing-table.plan-lite th:nth-child(4),
    .pricing-table.plan-lite td:nth-child(4) { display: none; }

    .pricing-table.plan-comfort th:nth-child(2),
    .pricing-table.plan-comfort td:nth-child(2),
    .pricing-table.plan-comfort th:nth-child(4),
    .pricing-table.plan-comfort td:nth-child(4) { display: none; }

    .pricing-table.plan-biznes th:nth-child(2),
    .pricing-table.plan-biznes td:nth-child(2),
    .pricing-table.plan-biznes th:nth-child(3),
    .pricing-table.plan-biznes td:nth-child(3) { display: none; }

    .col-feature.feature-right {
      text-align: left !important;
      padding-right: 10px !important;
    }

    .price-box { max-width: 100%; }
    .rub-amt { font-size: 15px; font-weight: 800; }
    .rub-per { font-size: 11px; font-weight: 700; }

    .btn-cta {
      max-width: 100%;
      padding: 13px 14px;
      font-size: 14px;
    }

    .avs-modal__dialog { margin: 4vh auto 0; width: calc(100% - 16px); }
    .avs-modal__body { max-height: 82vh; padding: 12px 12px 14px; }
    .avs-actions { grid-template-columns: 1fr; }
  }
	table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
    background-color: hsla(0, 0%, 50%, .071);
}

  .sp3-wrap{
    max-width:100%;
    margin:16px auto;
    position:relative
  }
  .sp3-controls{
    display:flex;
    gap:.5rem;
    flex-wrap:wrap;
    margin:0 0 .75rem
  }
  .sp3-btn{
    appearance:none;
    border:1px solid #d0d5dd;
    border-radius:999px;
    padding:.4rem 1rem;
    cursor:pointer;
    font-weight:600;
    font-size:14px;
    transition:.18s ease;
    color:#fff;
  }
  .sp3-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 4px 8px rgba(15,23,42,.18);
  }
  .sp3-btn.is-active{
    box-shadow:0 0 0 2px rgba(15,23,42,.45);
    transform:translateY(-1px);
  }

  .sp3-canvas{
    position:relative;
    width:100%;
    min-height:450px
  }
  @media (max-width:640px){
    .sp3-canvas{min-height:320px}
  }

  .ext-tooltip{
    position:absolute;
    left:12px;
    top:10px;
    pointer-events:none;
    z-index:10;
    background:rgba(17,24,39,.9);
    color:#fff;
    padding:8px 10px;
    border-radius:8px;
    font-size:12px;
    font-weight:600;
    line-height:1.25;
    white-space:nowrap;
    box-shadow:0 4px 12px rgba(0,0,0,.25);
  }
  .ext-tooltip .date{
    opacity:.9;
    display:block;
    font-weight:700;
    margin-bottom:4px
  }
  .ext-tooltip .row{
    display:flex;
    align-items:center;
    gap:8px
  }
  .ext-tooltip .dot{
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:2px
  }

	:root {
    --brand:#4B326B;
    --border:#e5e7eb;
    --thead:#f6f7fb;
  }
  .tbl-wrap {
    margin:16px 0;
    font-size:16px;
  }

  .nice-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:0 1px 0 0 var(--brand);
    overflow:hidden;
  }

  .tbl-caption{
    caption-side:top;
    text-align:left;
    font-weight:600;
    padding:12px 14px 4px;
    color:#111827;
    font-size:14px;
  }

  .nice-table thead th{
    background:var(--thead);
    font-weight:700;
    text-align:left;
    padding:12px 14px;
    color:#111;
    border-bottom:1px solid var(--border);
    font-size:14px;
  }

  .nice-table th[scope="row"]{
    font-weight:600;
    color:#111;
    white-space:nowrap;
  }

  .nice-table td,
  .nice-table th[scope="row"]{
    padding:12px 14px;
    border-bottom:1px solid var(--border);
    font-size:14px;
  }

  .nice-table tbody tr:last-child td,
  .nice-table tbody tr:last-child th{
    border-bottom:0;
  }

  .nice-table .num{
    text-align:right;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
  }

  .nice-table tbody tr:hover{
    /* background:#fafafa; */
  }

  .nice-table thead th+th,
  .nice-table td+td{
    border-left:1px solid var(--border);
  }

  .nice-table .sp-row{
    font-weight:800;
  }

  /* Мобилка */
  @media (max-width:640px){
    .tbl-wrap{
      font-size:14px;
    }

    .nice-table{
      border:0;
      box-shadow:none;
      background:transparent;
    }

    .tbl-caption{
      padding:0 0 8px;
      font-size:13px;
      text-transform:uppercase;
      letter-spacing:.03em;
      color:#6b7280;
    }

    .nice-table thead{
      display:none;
    }

    .nice-table,
    .nice-table tbody,
    .nice-table tr,
    .nice-table td,
    .nice-table th[scope="row"]{
      display:block;
      width:100%;
    }

    .nice-table tbody{
      display:flex;
      flex-direction:column;
      gap:12px;
    }

    .nice-table tr{
      background:#fff;
      border-radius:12px;
      border:1px solid var(--border);
      box-shadow:0 4px 10px rgba(15,23,42,.06);
      overflow:hidden;
    }

    .nice-table th[scope="row"]{
      background:var(--thead);
      padding:10px 14px;
      border-bottom:1px solid var(--border);
      position:relative;
      font-size:14px;
    }

    .nice-table th[scope="row"]::before{
      content:"Стратегия";
      position:absolute;
      left:14px;
      top:6px;
      font-size:11px;
      text-transform:uppercase;
      letter-spacing:.05em;
      color:#6b7280;
    }

    .nice-table th[scope="row"]{
      padding-top:22px;
    }

    /* строки карточки: слева год, справа процент, линия по центру */
    .nice-table td{
      display:grid;
      grid-template-columns:1fr 1fr; /* симметричные 2 колонки */
      align-items:center;
      padding:8px 14px;
      border-bottom:1px solid var(--border);
      position:relative;
    }

    .nice-table td:last-child{
      border-bottom:0;
      padding-bottom:10px;
    }

    /* на мобиле убираем старый border-left */
    .nice-table td+td{
      border-left:none;
    }

    /* подпись года слева */
    .nice-table td::before{
      content: attr(data-label);
      color:#6b7280;
      font-size:13px;
      grid-column:1;
      text-align:left;
    }

    /* значение процента справа */
    .nice-table .num{
      grid-column:2;
      text-align:right;
      font-weight:500;
      font-variant-numeric:tabular-nums;
    }

    /* вертикальный разделитель строго по центру */
    .nice-table td::after{
      content:"";
      position:absolute;
      top:6px;
      bottom:6px;
      left:50%;
      width:1px;
      background:var(--border);
    }
  }
    .avs-result {
    margin: 60px auto;
    max-width: 860px;
    padding: 0 14px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }
  .avs-result__card {
    background: #ffffff;
    border: 1px solid rgba(75, 50, 107, 0.18);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
    padding: 28px 22px;
    text-align: center;
  }
  .avs-result__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: #4B326B;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(75, 50, 107, 0.25);
  }
  .avs-result__title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
    color: #4B326B;
    font-weight: 900;
  }
  .avs-result__text {
    margin: 0 auto 18px;
    max-width: 520px;
    color: #374151;
    font-size: 14px;
    line-height: 1.55;
  }
  .avs-result__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #4B326B;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid #4B326B;
    transition: 0.2s ease;
    white-space: nowrap;
  }
  .avs-result__btn:hover {
    background: #352357;
    border-color: #352357;
  }
  .avs-result__hint {
    margin: 14px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
  }
  @media (max-width: 560px) {
    .avs-result__card { padding: 22px 16px; }
    .avs-result__title { font-size: 20px; }
    .avs-result__btn { width: 100%; }
  }
  .avs-cabinet{
    margin-top: 28px;
  }