.accordion_link  {
    margin-left: 12px;
}
.green {
    color: green;
}
.blink {
     animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
         opacity: 0;
    }
}

#kgDisplay, #cmDisplay {
    font-size: 85%;
}

.valid-marker {
    margin-right: 6px;
}

.big-text {
    font-size: larger;
}

.footer-text {
    font-size: 0.8em;
}

.payment-information {
    font-size: larger;
    font-weight: bold;
}

#referralModalDialog,
#referralModalContent {
    height: 80%;
}

@media (max-width: 992px) {
    #referralModalDialog,
    #referralModalContent {
    height: 100%;
    }
}

#referralModalBody {
    max-height:100%;
}

.custom-heading {
    line-height: 1.2;
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-weight: 300!important;
    font-size: calc(1.375rem + 1.5vw);
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
}
.features-body {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 500;
    padding-top: 1rem;
}
.features-ul{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.state-li {
    display: block;
}

.state-name-bold {
    font-weight: 500;
}
.shaking-div {
    display: inline-block;
    animation: shake 4s infinite;
}

@keyframes shake {
0% {
    transform: translateX(0);
}
10% {
    transform: translateX(-5px);
}
20% {
    transform: translateX(5px);
}
30% {
    transform: translateX(-5px);
}
40% {
    transform: translateX(0);
}
50% {
transform: translateY(-5px);
}
60% {
transform: translateY(5px);
}
70% {
transform: translateY(-5px);
}
80% {
transform: translateY(0);
}
}



.hover-3d{
    display:inline-grid;
    perspective:75rem;
  
    --tx: 0;
    --ty: 0;
    --shine-x: 100%;
    --shine-y: 100%;
    --sx: 0rem;
    --sy: 0rem;
  
    /* мягкая “пружина” как в примере */
    --ease: linear(0, 0.931 13.8%, 1.196 21.4%, 1.343 29.8%, 1.378 36%, 1.365 43.2%, 1.059 78%, 1);
  
    filter:
      drop-shadow(var(--sx) var(--sy) 0.1rem #00000005)
      drop-shadow(var(--sx) var(--sy) 0.2rem #00000005)
      drop-shadow(var(--sx) var(--sy) 0.3rem #00000005)
      drop-shadow(var(--sx) var(--sy) 0.4rem #00000005);
  
    transition: filter ease-out 400ms;
  }
  
  /* зоны поверх — чтобы ловить hover */
  .hover-3d > :nth-child(n + 2){
    isolation:isolate;
    z-index:1;
    transform: scale(1.2);
  }
  
  /* сам контент */
  .hover-3d > :first-child{
    position:relative;
    overflow:hidden;
    grid-area:1/1/4/4;
    transform: rotate3d(var(--tx), var(--ty), 0, 20deg);
    transition: transform var(--ease) 500ms, scale var(--ease) 500ms, outline-color ease-out 500ms;
    outline: 0.5px solid transparent;
    outline-offset:-1px;
  }
  
  .hover-3d > :first-child::before{
    content:"";
    pointer-events:none;
    position:absolute;
    z-index:1;
    width:33.333%;
    height:33.333%;
    transform: scale(5);
    opacity:0;
    filter: blur(0.75rem);
    background-image: radial-gradient(circle at 50%, #fff3 10%, transparent 50%);
    translate: var(--shine-x) var(--shine-y);
    transition: translate ease-out 400ms, opacity ease-out 400ms;
  }
  
  .hover-3d:hover{
    --ease: linear(0, 0.708 15.2%, 0.927 23.6%, 1.067 33%, 1.12 41%, 1.13 50.2%, 1.019 83.2%, 1);
  }
  .hover-3d:hover > :first-child{
    scale:1.05;
    outline-color:#fff1;
  }
  .hover-3d:hover > :first-child::before{
    opacity:1;
  }
  
  /* раскладка 3x3 (контент занимает всё поле, зоны — по краям/углам) */
  .hover-3d > :nth-child(2){ grid-area:1/1/2/2; }
  .hover-3d > :nth-child(3){ grid-area:1/2/2/3; }
  .hover-3d > :nth-child(4){ grid-area:1/3/2/4; }
  .hover-3d > :nth-child(5){ grid-area:2/1/3/2; }
  .hover-3d > :nth-child(6){ grid-area:2/3/3/4; }
  .hover-3d > :nth-child(7){ grid-area:3/1/4/2; }
  .hover-3d > :nth-child(8){ grid-area:3/2/4/3; }
  .hover-3d > :nth-child(9){ grid-area:3/3/4/4; }
  
  /* магия: какой “квадратик” ховерится — такой поворот/блик/тень */
  .hover-3d:has(> :nth-child(2):hover){ --tx:-1; --ty: 1; --shine-x: 0%;   --shine-y: 0%;   --sx:-0.5rem; --sy:-0.5rem; }
  .hover-3d:has(> :nth-child(3):hover){ --tx:-1; --ty: 0; --shine-x:100%;  --shine-y: 0%;   --sx: 0rem;   --sy:-0.5rem; }
  .hover-3d:has(> :nth-child(4):hover){ --tx:-1; --ty:-1; --shine-x:200%;  --shine-y: 0%;   --sx: 0.5rem; --sy:-0.5rem; }
  .hover-3d:has(> :nth-child(5):hover){ --tx: 0; --ty: 1; --shine-x: 0%;   --shine-y:100%;  --sx:-0.5rem; --sy: 0rem; }
  .hover-3d:has(> :nth-child(6):hover){ --tx: 0; --ty:-1; --shine-x:200%;  --shine-y:100%;  --sx: 0.5rem; --sy: 0rem; }
  .hover-3d:has(> :nth-child(7):hover){ --tx: 1; --ty: 1; --shine-x: 0%;   --shine-y:200%;  --sx:-0.5rem; --sy: 0.5rem; }
  .hover-3d:has(> :nth-child(8):hover){ --tx: 1; --ty: 0; --shine-x:100%;  --shine-y:200%;  --sx: 0rem;   --sy: 0.5rem; }
  .hover-3d:has(> :nth-child(9):hover){ --tx: 1; --ty:-1; --shine-x:200%;  --shine-y:200%;  --sx: 0.5rem; --sy: 0.5rem; }
  


  .hover-3d > :first-child{
    overflow: visible; /* можно убрать */
    border-radius: 0;  /* можно убрать */
    clip-path: inset(0 round 1.4rem);
  }


  .card-3d{
    aspect-ratio: 16 / 10;
    max-height: 100%;
    overflow: hidden;
    border-radius: 1rem;
  }

  .card-3d > img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
  }

  .field-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .calc-icon {
    cursor: pointer;
    position: relative;
    display: inline-block;
  }

  .calc-icon.loading { pointer-events: none; }
  .calc-icon.loading::before { visibility: hidden; }

  .calc-icon.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    top: var(--spinner-offset-y, -1px);
    width: var(--spinner-size, 0.9em);
    height: var(--spinner-size, 0.9em);
    border: var(--spinner-stroke, 0.15em) solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: icn-spin 0.75s linear infinite;
    pointer-events: none;
  }

  .calc-ok, .calc-err { display: none; }
  .calc-ok { color: #198754; }
  .calc-err { color: #dc3545; }

  .calc-ok.show, .calc-err.show {
    display: inline-block;
    animation: icn-fade 1.4s ease-out forwards;
  }

  @keyframes icn-spin {
    to { transform: rotate(360deg); }
  }

  @keyframes icn-fade {
    0%   { opacity: 0; transform: scale(0.85); }
    15%  { opacity: 1; transform: scale(1); }
    80%  { opacity: 1; }
    100% { opacity: 0; }
  }


  .btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
  }
  .btn-outline-purple:hover {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
  }