
    /* Все правила привязаны к .avcalc — не текут на остальную страницу */
    .avcalc {
      background: linear-gradient(135deg, #0a0a0a 0%, #0f1a2e 100%);
      color: #ffffff;
      padding: 100px 20px;
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      width: 100%;
      box-sizing: border-box;
    }
    .avcalc *, .avcalc *::before, .avcalc *::after { box-sizing: border-box; }

    .avcalc__inner { max-width: 1100px; margin: 0 auto; }

    .avcalc__head { text-align: center; margin-bottom: 60px; }
    .avcalc__emoji { font-size: 80px; margin-bottom: 15px; filter: drop-shadow(0 0 30px #229ED9); }
    .avcalc__title {
      font-size: 52px; font-weight: 700; margin: 0 0 12px; line-height: 1.1;
      background: linear-gradient(90deg, #229ED9, #66ddff);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    .avcalc__sub { font-size: 24px; opacity: .95; line-height: 1.35; margin: 0; }

    /* ============ ЕДИНЫЙ СТИЛЬ КНОПОК ============ */
    .avcalc__btn {
      display: block; width: 100%; margin: 0;
      padding: 19px 24px;
      border: 1px solid transparent; border-radius: 50px;
      font-family: inherit; font-size: 17px; font-weight: 700;
      line-height: 1.3; text-align: center; text-decoration: none;
      cursor: pointer;
      transition: transform .2s ease, border-color .2s ease, background .2s ease;
    }
    .avcalc__btn:hover { transform: translateY(-2px); }
    .avcalc__btn + .avcalc__btn { margin-top: 14px; }

    .avcalc__btn--primary {
      background: #111; color: #fff;
      box-shadow: 0 0 20px #00bfff, 0 4px 15px rgba(0,0,0,.4);
    }
    .avcalc__btn--primary:hover { color: #fff; }
    .avcalc__btn--primary:disabled { opacity: .6; cursor: default; transform: none; }

    .avcalc__btn--accent {
      background: #229ED9; color: #fff !important;
      box-shadow: 0 4px 20px rgba(34,158,217,.35);
    }
    .avcalc__btn--accent:hover { color: #fff !important; }

    .avcalc__btn--ghost {
      background: transparent; color: #fff;
      border-color: rgba(255,255,255,.22);
    }
    .avcalc__btn--ghost:hover {
      border-color: #229ED9; background: rgba(34,158,217,.08); color: #fff;
    }

    .avcalc__btn--inline {
      display: inline-flex; align-items: center; justify-content: center;
      gap: 12px; width: auto;
    }

    /* ============ блоки ============ */
    .avcalc__mobile {
      background: rgba(255,255,255,.06); backdrop-filter: blur(12px);
      border: 1px solid rgba(34,158,217,.25); border-radius: 24px;
      padding: 38px 34px; margin: 0 auto 48px; text-align: center;
      max-width: 640px;
    }
    .avcalc__mobile h3 {
      margin: 0 0 20px; font-size: 26px; font-weight: 700; color: #e0f8ff;
      letter-spacing: .6px;
      text-shadow: 0 0 25px rgba(160,240,255,.95), 0 0 40px rgba(160,240,255,.7);
    }
    .avcalc__vpn { margin: 25px 0 0; font-size: 17px; opacity: .9; line-height: 1.5; }

    .avcalc__form {
      background: rgba(255,255,255,.07); backdrop-filter: blur(16px);
      border-radius: 28px; padding: 44px;
      box-shadow: 0 25px 60px rgba(0,0,0,.6);
      max-width: 640px; margin: 0 auto;
    }
    .avcalc__fields { display: flex; flex-direction: column; gap: 26px; }
    .avcalc__label {
      display: block; margin-bottom: 8px; font-weight: 600;
      color: #e0e0e0; letter-spacing: .4px; font-size: 16px;
    }
    .avcalc__req { color: #ff6666; }
    .avcalc__input, .avcalc__select {
      width: 100%; padding: 18px; border-radius: 14px; border: none;
      background: #1f1f1f; color: #fff; font-size: 18px; font-family: inherit;
    }
    .avcalc__select { appearance: none; cursor: pointer; }
    .avcalc__hint { font-size: 14px; color: #aaa; margin-top: 8px; display: block; }

    .avcalc__actions { margin-top: 40px; }

    .avcalc__result { margin: 40px auto 0; display: none; max-width: 640px; }
    .avcalc__result h3 {
      text-align: center; color: #229ED9; margin: 0 0 30px; font-weight: 600; font-size: 24px;
    }
    .avcalc__cards { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
    .avcalc__card {
      background: #111; padding: 30px; border-radius: 20px;
      min-width: 300px; flex: 1 1 300px; text-align: center;
      box-shadow: 0 10px 30px rgba(34,158,217,.3);
    }
    .avcalc__card-label { font-size: 16px; opacity: .85; }
    .avcalc__card-sum {
      font-size: 40px; font-weight: 700; color: #22c55e; margin: 12px 0 0;
      white-space: nowrap;
    }
    .avcalc__card-note { font-size: 13px; color: #8a97a5; margin: 10px 0 0; }

    /* строка утильсбора под карточками */
    .avcalc__util-row {
      margin: 22px auto 0; padding: 18px 22px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 16px; text-align: center;
    }
    .avcalc__util-label { font-size: 15px; color: #a8b4c0; }
    .avcalc__util-sum {
      font-size: 26px; font-weight: 700; color: #fff; margin: 8px 0 0;
      white-space: nowrap;
    }
    .avcalc__util-in { font-size: 13px; color: #7f8b98; margin: 8px 0 0; line-height: 1.5; }
    .avcalc__util-lgota { color: #22c55e; }

    .avcalc__manual {
      background: #111; border: 1px solid rgba(34,158,217,.35);
      border-radius: 20px; padding: 32px; text-align: center;
    }
    .avcalc__manual p { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: #d0d6dd; }

    .avcalc__note {
      max-width: 640px; margin: 22px auto 0; padding: 16px 20px;
      background: rgba(203,163,91,.09);
      border: 1px solid rgba(203,163,91,.35);
      border-radius: 14px; color: #e8dcc4;
      font-size: 14px; line-height: 1.6; text-align: left;
    }
    .avcalc__note strong { color: #cba35b; }

    .avcalc__warn {
      max-width: 640px; margin: 16px auto 0; padding: 14px 18px;
      background: rgba(203,163,91,.1); border: 1px solid rgba(203,163,91,.3);
      border-radius: 14px; color: #cba35b; font-size: 13px; line-height: 1.55;
      text-align: left;
    }

    /* ============ модальное окно ============ */
    .avcalc-modal {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.9); backdrop-filter: blur(12px);
      z-index: 9999; align-items: center; justify-content: center; padding: 20px;
    }
    .avcalc-modal.is-open { display: flex; }
    .avcalc-modal__box {
      background: #111; max-width: 620px; width: 100%;
      border-radius: 24px; padding: 40px 35px; position: relative;
      box-shadow: 0 0 40px rgba(34,158,217,.5);
      max-height: 88vh; overflow-y: auto;
      color: #fff; font-family: 'Inter', system-ui, sans-serif;
    }
    .avcalc-modal__close {
      position: absolute; top: 18px; right: 24px;
      font-size: 28px; cursor: pointer; color: #fff;
      background: rgba(255,255,255,.08); border-radius: 50%;
      width: 40px; height: 40px;
      display: flex; align-items: center; justify-content: center;
      z-index: 10; line-height: 1;
    }
    .avcalc-modal__close:hover { color: #ff6666; }

    /* ============ форма заявки ============ */
    .avlead__field { margin-bottom: 18px; }
    .avlead__hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
    .avlead__err { color: #ff6666; font-size: 15px; margin-top: 14px; text-align: center; }
    .avlead__row { display: flex; gap: 14px; }
    .avlead__row > * { flex: 1 1 0; min-width: 0; }
    .avlead__more {
      display: block; width: 100%; margin: 6px 0 20px; padding: 15px;
      background: transparent; color: #9fb3c8;
      border: 1px dashed rgba(255,255,255,.22); border-radius: 14px;
      font-family: inherit; font-size: 15px; font-weight: 600;
      cursor: pointer; text-align: center;
      transition: border-color .2s ease, color .2s ease;
    }
    .avlead__more:hover { border-color: #229ED9; color: #fff; }
    .avlead__details { display: none; }
    .avlead__details.is-open { display: block; }
    .avlead__sep {
      margin: 24px 0 18px; padding-top: 20px;
      border-top: 1px solid rgba(255,255,255,.1);
      font-size: 14px; color: #8a97a5; letter-spacing: .4px; text-transform: uppercase;
    }

    /* ============ мобильные ============ */
    @media (max-width: 768px) {
      .avcalc { padding: 60px 15px; }
      .avcalc__emoji { font-size: 60px; }
      .avcalc__title { font-size: 34px; letter-spacing: -.5px; }
      .avcalc__sub { font-size: 19px; }
      .avcalc__mobile { padding: 26px 18px; margin-bottom: 36px; }
      .avcalc__mobile h3 { font-size: 21px; }
      .avcalc__vpn { font-size: 15px; }
      .avcalc__form { padding: 26px 18px; border-radius: 20px; }
      .avcalc__label { font-size: 15px; }
      .avcalc__input, .avcalc__select { padding: 16px; font-size: 17px; }
      .avcalc__btn { padding: 17px 18px; font-size: 15px; }
      .avcalc__card { min-width: 100%; padding: 25px; }
      .avcalc__card-sum { font-size: 32px; }
      .avcalc__util-sum { font-size: 23px; }
      .avcalc__note { padding: 14px 16px; font-size: 13px; }
      .avcalc-modal__box { padding: 32px 20px; }
      .avlead__row { flex-direction: column; gap: 0; }
    }
  
/* Mobile-only: long totals and modal controls must fit small touch screens. */
@media(max-width:768px){
 .avcalc__card{min-width:0;flex:1 1 100%;padding:22px 10px}
 .avcalc__card-sum{font-size:clamp(23px,7.1vw,32px);white-space:normal;overflow-wrap:anywhere}
 .avcalc__util-sum{white-space:normal;overflow-wrap:anywhere}
 .avcalc__input,.avcalc__select{min-width:0;max-width:100%;font-size:17px}
 .avcalc__btn{overflow-wrap:anywhere;min-height:48px}
 .avcalc-modal{padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .avcalc-modal__box{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overscroll-behavior:contain;padding:14px 16px 24px}
 .avcalc-modal__close{position:sticky;top:0;margin-left:auto;margin-bottom:8px;width:44px;height:44px;background:#282828;flex-shrink:0}
 body:has(.avcalc-modal.is-open){overflow:hidden}
}
