/* =========================================================
   КАЛЬКУЛЯТОР AVTOHEHOL — ТЁМНАЯ ТЕМА
   ========================================================= */

#avtohehol-calculator{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial,Helvetica,sans-serif;
  color:#ffffff;
}

#avtohehol-calculator *,
#avtohehol-calculator *::before,
#avtohehol-calculator *::after{
  box-sizing:border-box;
}

#avtohehol-calculator .avto-form{
  width:100%;
  margin:0;
  padding:32px;
  border-radius:0;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:hidden;
}

#avtohehol-calculator .avto-title{
  margin:0 0 30px;
  font-size:26px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.4px;
  text-align:center;
  color:#ffffff;
}

#avtohehol-calculator .avto-field{margin-bottom:22px;}

#avtohehol-calculator .avto-label{
  display:block;
  margin-bottom:10px;
  font-size:15px;
  line-height:1.3;
  font-weight:700;
  color:rgba(255,255,255,.85);
}

#avtohehol-calculator .avto-input{
  width:100%;
  min-height:54px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  outline:none;
  background:rgba(255,255,255,.05);
  color:#ffffff;
  font-size:16px;
  font-family:Arial,Helvetica,sans-serif;
  box-shadow:none;
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

#avtohehol-calculator .avto-input::placeholder{color:rgba(255,255,255,.35);}
#avtohehol-calculator .avto-input:hover{border-color:rgba(255,255,255,.25);}
#avtohehol-calculator .avto-input:focus{
  border-color:#22C55E;
  background:rgba(255,255,255,.08);
  box-shadow:0 0 0 3px rgba(34,197,94,.18);
}

#avtohehol-calculator .avto-select,
#avtohehol-calculator .avto-mobile-select{
  width:100%;
  min-height:54px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  outline:none;
  background:rgba(255,255,255,.05);
  color:#ffffff;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

#avtohehol-calculator .avto-select option,
#avtohehol-calculator .avto-mobile-select option{
  background:#1a2332;
  color:#ffffff;
}

#avtohehol-calculator .avto-mobile-select{display:none;}

#avtohehol-calculator .avto-select:hover,
#avtohehol-calculator .avto-mobile-select:hover{
  border-color:rgba(255,255,255,.25);
}

#avtohehol-calculator .avto-select:focus,
#avtohehol-calculator .avto-mobile-select:focus{
  border-color:#22C55E;
  box-shadow:0 0 0 3px rgba(34,197,94,.18);
}

#avtohehol-calculator .avto-mobile-photo{
  display:none;
  width:100%;
  margin-top:14px;
  padding:8px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:none;
}

#avtohehol-calculator .avto-mobile-photo img{
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
}

#avtohehol-calculator .avto-radio-grid,
#avtohehol-calculator .avto-design-grid,
#avtohehol-calculator .avto-delivery-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

#avtohehol-calculator .avto-radio-card,
#avtohehol-calculator .avto-design-card,
#avtohehol-calculator .avto-delivery-card,
#avtohehol-calculator .avto-service-card{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  min-height:82px;
  padding:16px 18px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.03);
  cursor:pointer;
  box-shadow:none;
  transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

#avtohehol-calculator .avto-radio-card:hover,
#avtohehol-calculator .avto-design-card:hover,
#avtohehol-calculator .avto-delivery-card:hover,
#avtohehol-calculator .avto-service-card:hover{
  transform:translateY(-2px);
  border-color:rgba(34,197,94,.5);
  background:rgba(255,255,255,.06);
}

#avtohehol-calculator .avto-radio-card input,
#avtohehol-calculator .avto-design-card input,
#avtohehol-calculator .avto-delivery-card input,
#avtohehol-calculator .avto-service-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

#avtohehol-calculator .avto-radio-card:has(input:checked),
#avtohehol-calculator .avto-design-card:has(input:checked),
#avtohehol-calculator .avto-delivery-card:has(input:checked),
#avtohehol-calculator .avto-service-card:has(input:checked){
  border-color:#22C55E;
  background:rgba(34,197,94,.10);
  box-shadow:0 0 0 2px rgba(34,197,94,.18);
}

#avtohehol-calculator .avto-card-row{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

#avtohehol-calculator .avto-card-row .avto-card-title{flex:1;}

#avtohehol-calculator .avto-card-title{
  display:block;
  font-size:15px;
  line-height:1.25;
  font-weight:700;
  color:#ffffff;
}

#avtohehol-calculator .avto-card-price{
  display:block;
  margin-top:6px;
  font-size:20px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.3px;
  background:linear-gradient(90deg,#f58220 0%,#ff9e3f 55%,#df6810 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

#avtohehol-calculator .avto-card-row .avto-card-price{
  flex:0 0 auto;
  margin-top:0;
  text-align:right;
  white-space:nowrap;
  font-size:20px;
}

@media(min-width:651px){
  #avtohehol-calculator .avto-radio-card{
    overflow:hidden;
    flex-direction:column;
    align-items:stretch;
  }
  #avtohehol-calculator .avto-radio-card .avto-card-photo{
    display:none;
    width:360px;
    height:360px;
    max-width:100%;
    margin:14px auto 0;
    object-fit:cover;
    border-radius:14px;
    box-shadow:0 8px 22px rgba(0,0,0,.35);
  }
  #avtohehol-calculator .avto-radio-card:has(input:checked) .avto-card-photo{
    display:block;
    animation:avtoCardPhotoAppear .3s ease;
  }
  #avtohehol-calculator .avto-design-card{
    overflow:hidden;
    flex-direction:column;
    align-items:stretch;
  }
  #avtohehol-calculator .avto-design-card .avto-card-row{width:100%;}
}

@keyframes avtoCardPhotoAppear{
  from{opacity:0;transform:translateY(8px);}
  to{opacity:1;transform:translateY(0);}
}

#avtohehol-calculator .avto-model-options{
  margin-top:4px;
  padding:18px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:none;
}

#avtohehol-calculator .avto-exclusive{
  margin-top:20px;
  padding:22px;
  border-radius:16px;
  background:rgba(34,197,94,.06);
  border:1px solid rgba(34,197,94,.20);
  box-shadow:none;
}

#avtohehol-calculator .avto-exclusive-title{
  margin:0 0 20px;
  font-size:19px;
  font-weight:800;
  color:#22C55E;
  text-align:center;
}

#avtohehol-calculator .avto-color-select{position:relative;}

#avtohehol-calculator .avto-color-current{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:54px;
  padding:9px 14px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  background:rgba(255,255,255,.05);
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease;
}

#avtohehol-calculator .avto-color-current:hover{
  border-color:rgba(255,255,255,.25);
}

#avtohehol-calculator .avto-color-current-left{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:15px;
  font-weight:600;
  color:#ffffff;
}

#avtohehol-calculator .avto-color-circle{
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.20);
  box-shadow:inset 0 1px 2px rgba(255,255,255,.15),0 3px 8px rgba(0,0,0,.35);
}

#avtohehol-calculator .avto-color-arrow{
  font-size:18px;
  color:rgba(255,255,255,.55);
}

#avtohehol-calculator .avto-color-menu{
  position:absolute;
  z-index:50;
  left:0;
  right:0;
  top:calc(100% + 7px);
  display:none;
  max-height:300px;
  overflow-y:auto;
  padding:8px;
  border-radius:14px;
  background:#1a2332;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 18px 45px rgba(0,0,0,.55);
}

#avtohehol-calculator .avto-color-select.open .avto-color-menu{display:block;}

#avtohehol-calculator .avto-color-option{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:10px;
  border-radius:10px;
  cursor:pointer;
  transition:background .15s ease;
}

#avtohehol-calculator .avto-color-option:hover{background:rgba(255,255,255,.08);}
#avtohehol-calculator .avto-color-option.selected{background:rgba(34,197,94,.15);}

#avtohehol-calculator .avto-color-option-name{
  font-size:14px;
  font-weight:600;
  color:#ffffff;
}

#avtohehol-calculator .avto-service-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

#avtohehol-calculator .avto-service-card{min-height:78px;}
#avtohehol-calculator .avto-service-card .avto-card-price{font-size:19px;}

#avtohehol-calculator .avto-design-photo{
  display:none;
  width:100%;
  max-width:280px;
  height:auto;
  margin:12px auto 0;
  border-radius:12px;
  object-fit:cover;
  box-shadow:0 8px 22px rgba(0,0,0,.35);
}

#avtohehol-calculator .avto-design-card:has(input:checked) .avto-design-photo{
  display:block;
  animation:avtoDesignPhotoAppear .3s ease;
}

@keyframes avtoDesignPhotoAppear{
  from{opacity:0;transform:translateY(8px);}
  to{opacity:1;transform:translateY(0);}
}

/* =========================================================
   ЧЕКБОКС СОГЛАСИЯ С ПОЛИТИКОЙ
   ========================================================= */

.avto-consent{
  margin:4px 0 18px;
}

.avto-consent-label{
  display:flex;
  align-items:flex-start;
  gap:10px;
  cursor:pointer;
  user-select:none;
}

.avto-consent-label input[type="checkbox"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.avto-consent-checkbox{
  position:relative;
  flex:0 0 20px;
  width:20px;
  height:20px;
  margin-top:1px;
  border:1.5px solid rgba(255,255,255,.35);
  border-radius:5px;
  background:rgba(255,255,255,.05);
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

.avto-consent-checkbox::after{
  content:"";
  position:absolute;
  left:6px;
  top:2px;
  width:5px;
  height:10px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg) scale(0);
  opacity:0;
  transition:transform .2s ease,opacity .2s ease;
}

.avto-consent-label:hover .avto-consent-checkbox{
  border-color:rgba(255,255,255,.55);
}

.avto-consent-label input:focus-visible + .avto-consent-checkbox{
  box-shadow:0 0 0 3px rgba(34,197,94,.25);
}

.avto-consent-label input:checked + .avto-consent-checkbox{
  background:#22C55E;
  border-color:#22C55E;
}

.avto-consent-label input:checked + .avto-consent-checkbox::after{
  transform:rotate(45deg) scale(1);
  opacity:1;
}

.avto-consent-text{
  font-size:12px;
  line-height:1.4;
  color:rgba(255,255,255,.65);
}

.avto-consent-text a{
  color:#22C55E;
  text-decoration:underline;
  text-underline-offset:2px;
  transition:color .2s ease;
}

.avto-consent-text a:hover{
  color:#4ADE80;
}

@media (max-width:650px){
  .avto-consent-text{font-size:12.5px;}
}

/* =========================================================
   ЦЕНА + КНОПКА ОТПРАВКИ
   ========================================================= */

#avtohehol-calculator .avto-price-box{
  position:relative;
  margin:32px 0 0;
  padding:26px;
  border-radius:18px;
  overflow:hidden;
  background:rgba(34,197,94,.10);
  border:1px solid rgba(34,197,94,.30);
  color:#ffffff;
  box-shadow:none;
}

#avtohehol-calculator .avto-price-box::before{
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  right:-100px;
  top:-120px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(34,197,94,.20) 0%,rgba(34,197,94,0) 70%);
  pointer-events:none;
}

#avtohehol-calculator .avto-price-heading{
  position:relative;
  font-size:17px;
  font-weight:700;
  color:rgba(255,255,255,.85);
}

#avtohehol-calculator .avto-price{
  position:relative;
  margin-top:9px;
  font-size:38px;
  line-height:1;
  font-weight:900;
  letter-spacing:-1px;
  text-align:right;
  color:#22C55E;
}

#avtohehol-calculator .avto-price-note{
  position:relative;
  margin-top:11px;
  font-size:14px;
  line-height:1.4;
  text-align:right;
  color:rgba(255,255,255,.60);
}

#avtohehol-calculator .avto-submit{
  position:relative;
  width:100%;
  min-height:58px;
  margin-top:20px;
  padding:0 24px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg,#22C55E 0%,#16A34A 50%,#15803D 100%);
  color:#ffffff;
  font-size:16px;
  font-weight:800;
  font-family:Arial,Helvetica,sans-serif;
  letter-spacing:.2px;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(34,197,94,.38),inset 0 1px 0 rgba(255,255,255,.3);
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}

#avtohehol-calculator .avto-submit:hover{
  transform:translateY(-2px);
  filter:brightness(1.05);
  box-shadow:0 14px 32px rgba(34,197,94,.52),inset 0 1px 0 rgba(255,255,255,.38);
}

#avtohehol-calculator .avto-submit:active{transform:translateY(0);}
#avtohehol-calculator .avto-submit:disabled{opacity:.65;cursor:wait;transform:none;}

#avtohehol-calculator .avto-message{
  display:none;
  margin-top:16px;
  padding:14px 16px;
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  min-height:0;
  overflow:hidden;
  line-height:1.4;
  text-align:center;
}

#avtohehol-calculator .avto-message.success{
  display:block;
  color:#4ADE80;
  background:rgba(34,197,94,.15);
  border:1px solid rgba(34,197,94,.40);
}

#avtohehol-calculator .avto-message.error{
  display:block;
  color:#FCA5A5;
  background:rgba(239,68,68,.15);
  border:1px solid rgba(239,68,68,.40);
}

#avtohehol-calculator .avto-hidden{display:none !important;}

@media(max-width:800px){
  #avtohehol-calculator .avto-form{padding:22px;}
  #avtohehol-calculator .avto-title{font-size:22px;}
  #avtohehol-calculator .avto-radio-grid,
  #avtohehol-calculator .avto-design-grid,
  #avtohehol-calculator .avto-delivery-grid,
  #avtohehol-calculator .avto-service-grid{grid-template-columns:1fr;}
}

@media(max-width:650px){
  #avtohehol-calculator{width:100%;max-width:none;margin:0;padding:0;}
  #avtohehol-calculator .avto-form{padding:18px 14px 22px;border-radius:0;}
  #avtohehol-calculator .avto-title{margin-bottom:20px;font-size:20px;line-height:1.25;}
  #avtohehol-calculator .avto-label{font-size:14px;}

  #avtohehol-calculator .avto-mobile-select{
    display:block;
    min-height:54px;
    padding:0 14px;
    font-size:15px;
    font-weight:700;
    appearance:auto;
    -webkit-appearance:auto;
  }

  #avtohehol-calculator .avto-radio-grid,
  #avtohehol-calculator .avto-design-grid{display:none;}

  #avtohehol-calculator .avto-mobile-photo.show{
    display:block;
    animation:avtoModelPhotoAppear .3s ease;
  }

  #avtohehol-calculator .avto-design-photo{max-width:100%;}
  #avtohehol-calculator .avto-delivery-grid,
  #avtohehol-calculator .avto-service-grid{grid-template-columns:1fr;gap:11px;}

  #avtohehol-calculator .avto-radio-card,
  #avtohehol-calculator .avto-design-card,
  #avtohehol-calculator .avto-delivery-card,
  #avtohehol-calculator .avto-service-card{min-height:70px;padding:13px;}

  #avtohehol-calculator .avto-card-title{font-size:14px;}
  #avtohehol-calculator .avto-card-row .avto-card-price{font-size:18px;}
  #avtohehol-calculator .avto-model-options{padding:14px;border-radius:14px;}
  #avtohehol-calculator .avto-exclusive{padding:14px;border-radius:14px;}
  #avtohehol-calculator .avto-exclusive-title{font-size:17px;}
  #avtohehol-calculator .avto-price-box{margin-top:22px;padding:20px 16px;border-radius:16px;}
  #avtohehol-calculator .avto-price-heading{font-size:15px;}
  #avtohehol-calculator .avto-price{font-size:30px;text-align:right;}
  #avtohehol-calculator .avto-price-note{text-align:right;}
  #avtohehol-calculator .avto-submit{min-height:54px;padding:0 15px;font-size:15px;line-height:1.25;}
}

@keyframes avtoModelPhotoAppear{
  from{opacity:0;transform:translateY(6px);}
  to{opacity:1;transform:translateY(0);}
}
/* =========================================================
   AVTOHEHOL — SOCIAL WIDGET
   ========================================================= */

.avto-social-widget {
  position: fixed;
  right: 22px;
  bottom: 42px;
  z-index: 999999;
  font-family: Arial, Helvetica, sans-serif;
}

.avto-social-buttons {
  position: absolute;
  right: 7px;
  bottom: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.avto-social-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border: none;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  overflow: visible;
  isolation: isolate;
  opacity: 0;
  transform: translateY(18px) scale(.5);
  pointer-events: none;
  transition: opacity .25s ease, transform .38s cubic-bezier(.2,.8,.2,1), filter .25s ease, box-shadow .25s ease;
}

.avto-social-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 42%);
  pointer-events: none;
  z-index: -1;
}

.avto-social-btn::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 10px;
  width: 23px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  filter: blur(2px);
  transform: rotate(-25deg);
  pointer-events: none;
}

.avto-callback {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 50%, #15803D 100%);
  box-shadow: 0 8px 22px rgba(34,197,94,.46), 0 4px 9px rgba(0,0,0,.20), inset 0 1px 1px rgba(255,255,255,.32);
}
.avto-callback:hover {
  box-shadow: 0 12px 32px rgba(34,197,94,.65), 0 6px 14px rgba(0,0,0,.24), inset 0 1px 2px rgba(255,255,255,.45);
}

.avto-max {
  background: linear-gradient(135deg, #B85CFF 0%, #7A5CFF 42%, #356CFF 72%, #1554D9 100%);
  box-shadow: 0 8px 22px rgba(112,76,255,.48), 0 4px 9px rgba(0,0,0,.20), inset 0 1px 1px rgba(255,255,255,.34);
}
.avto-max:hover {
  box-shadow: 0 12px 32px rgba(112,76,255,.68), 0 6px 14px rgba(0,0,0,.24), inset 0 1px 2px rgba(255,255,255,.45);
}

.avto-telegram {
  background: linear-gradient(135deg, #35C7FF 0%, #169FE8 50%, #087CC5 100%);
  box-shadow: 0 8px 22px rgba(20,159,232,.43), 0 4px 9px rgba(0,0,0,.20), inset 0 1px 1px rgba(255,255,255,.32);
}
.avto-telegram:hover {
  box-shadow: 0 12px 32px rgba(20,159,232,.62), 0 6px 14px rgba(0,0,0,.24), inset 0 1px 2px rgba(255,255,255,.45);
}
.avto-telegram svg { width: 26px; height: 26px; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.18)); }

.avto-vk {
  background: linear-gradient(135deg, #2A9BFF 0%, #0077FF 48%, #005DD9 100%);
  box-shadow: 0 8px 22px rgba(0,119,255,.46), 0 4px 9px rgba(0,0,0,.20), inset 0 1px 1px rgba(255,255,255,.32);
}
.avto-vk:hover {
  box-shadow: 0 12px 32px rgba(0,119,255,.65), 0 6px 14px rgba(0,0,0,.24), inset 0 1px 2px rgba(255,255,255,.45);
}

.avto-ok {
  background: linear-gradient(135deg, #FFB02E 0%, #FF8500 50%, #F15F00 100%);
  box-shadow: 0 8px 22px rgba(255,133,0,.44), 0 4px 9px rgba(0,0,0,.20), inset 0 1px 1px rgba(255,255,255,.34);
}
.avto-ok:hover {
  box-shadow: 0 12px 32px rgba(255,133,0,.63), 0 6px 14px rgba(0,0,0,.24), inset 0 1px 2px rgba(255,255,255,.45);
}

.avto-calc {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 50%, #15803D 100%);
  box-shadow: 0 8px 22px rgba(34,197,94,.46), 0 4px 9px rgba(0,0,0,.20), inset 0 1px 1px rgba(255,255,255,.32);
}
.avto-calc:hover {
  box-shadow: 0 12px 32px rgba(34,197,94,.65), 0 6px 14px rgba(0,0,0,.24), inset 0 1px 2px rgba(255,255,255,.45);
}

.avto-social-widget.open .avto-social-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.avto-social-widget.open .avto-callback { transition-delay: .02s; }
.avto-social-widget.open .avto-ok { transition-delay: .07s; }
.avto-social-widget.open .avto-vk { transition-delay: .12s; }
.avto-social-widget.open .avto-telegram { transition-delay: .17s; }
.avto-social-widget.open .avto-max { transition-delay: .22s; }
.avto-social-widget.open .avto-calc { transition-delay: .27s; }

.avto-social-btn:hover {
  transform: scale(1.10);
  filter: brightness(1.08);
}
.avto-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 7px;
  background: rgba(25,25,25,.94);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 5px 16px rgba(0,0,0,.20);
}

.avto-social-btn:hover .avto-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* =========================================================
   ГЛАВНАЯ ОРАНЖЕВАЯ КНОПКА
   ========================================================= */

.avto-social-main {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #f28c28 0%, #ff9a3d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(242,140,40,.32), 0 5px 12px rgba(0,0,0,.18), inset 0 1px 1px rgba(255,255,255,.35);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: visible;
  isolation: isolate;
}

.avto-main-wave {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.avto-main-wave::before,
.avto-main-wave::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(242,140,40,.42);
  animation: avto-pulse-wave 3.2s ease-out infinite;
  pointer-events: none;
}

.avto-main-wave::after { animation-delay: 1.6s; }

@keyframes avto-pulse-wave {
  0% { transform: scale(1); opacity: .62; }
  65% { transform: scale(1.42); opacity: 0; }
  100% { transform: scale(1.42); opacity: 0; }
}

.avto-social-main::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 9px;
  width: 30px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.30), rgba(255,255,255,0));
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 1;
}

.avto-social-main:hover {
  transform: scale(1.07);
  box-shadow: 0 14px 34px rgba(242,140,40,.43), 0 6px 15px rgba(0,0,0,.20), inset 0 1px 2px rgba(255,255,255,.42);
}

.avto-main-icon {
  position: absolute;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.20));
  transition: opacity .2s ease, transform .3s ease;
  z-index: 2;
}

.avto-chat-icon { opacity: 1; transform: rotate(0) scale(1); }
.avto-close-icon { opacity: 0; transform: rotate(-90deg) scale(.5); }

.avto-social-widget.open .avto-chat-icon { opacity: 0; transform: rotate(90deg) scale(.5); }
.avto-social-widget.open .avto-close-icon { opacity: 1; transform: rotate(0) scale(1); }

/* =========================================================
   ОТДЕЛЬНАЯ КНОПКА КАЛЬКУЛЯТОРА
   ========================================================= */

.avto-calc-standalone {
  position: fixed;
  right: 22px;
  bottom: 130px;
  z-index: 999998;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 50%, #15803D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(34,197,94,.42), 0 5px 12px rgba(0,0,0,.18), inset 0 1px 1px rgba(255,255,255,.35);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
  isolation: isolate;
  font-family: Arial, Helvetica, sans-serif;
}

.avto-calc-standalone:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 34px rgba(34,197,94,.58), 0 6px 15px rgba(0,0,0,.20), inset 0 1px 2px rgba(255,255,255,.42);
}

.avto-calc-standalone:active {
  transform: scale(1.0);
}

.avto-calc-standalone svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.20));
  position: relative;
  z-index: 2;
}

.avto-calc-standalone::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 9px;
  width: 30px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.30), rgba(255,255,255,0));
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 1;
}

.avto-calc-standalone::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(34,197,94,.45);
  animation: avto-calc-pulse 3s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes avto-calc-pulse {
  0% { transform: scale(1); opacity: .65; }
  65% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.avto-calc-standalone-label {
  position: absolute;
  right: 74px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(25,25,25,.94);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 5px 16px rgba(0,0,0,.20);
}

.avto-calc-standalone:hover .avto-calc-standalone-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.avto-calc-standalone.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.6);
}

/* =========================================================
   МОДАЛЬНОЕ ОКНО С КАЛЬКУЛЯТОРОМ
   ========================================================= */

.avto-calc-modal {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  padding: 20px;
  box-sizing: border-box;
}

.avto-calc-modal.open { display: flex; }

.avto-calc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, .78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: avto-calc-fade-in .25s ease;
  cursor: pointer;
}

@keyframes avto-calc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.avto-calc-modal-content {
  position: relative;
  width: 95%;
  max-width: 900px;
  height: 92vh;
  max-height: 92vh;
  background: linear-gradient(145deg, #1a2332 0%, #0f1620 100%);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 10px 30px rgba(0,0,0,.35);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  animation: avto-calc-pop-in .35s cubic-bezier(.2,.8,.2,1);
}

@keyframes avto-calc-pop-in {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.avto-calc-modal-content iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1a2332;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.avto-calc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  box-shadow: 0 6px 18px rgba(0,0,0,.30);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.avto-calc-modal-close:hover {
  transform: scale(1.08) rotate(90deg);
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 10px 26px rgba(0,0,0,.40);
}

.avto-calc-modal-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}

body.avto-calc-modal-open {
  overflow: hidden !important;
}

/* =========================================================
   МОДАЛЬНОЕ ОКНО «ЗВОНОК ЗА НАШ СЧЁТ»
   ========================================================= */

.avto-callback-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.avto-callback-modal.open { display: flex; }

.avto-callback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, .78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: avto-callback-fade-in .25s ease;
  cursor: pointer;
}

@keyframes avto-callback-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.avto-callback-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: linear-gradient(145deg, #1a2332 0%, #0f1620 100%);
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .55),
    0 10px 30px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  animation: avto-callback-pop-in .35s cubic-bezier(.2, .8, .2, 1);
  box-sizing: border-box;
}

@keyframes avto-callback-pop-in {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.avto-callback-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}

.avto-callback-close:hover {
  transform: scale(1.08) rotate(90deg);
  background: rgba(255, 255, 255, .15);
}

.avto-callback-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}

.avto-callback-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.4px;
  text-align: center;
  color: #ffffff;
}

.avto-callback-subtitle {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}

.avto-callback-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.avto-callback-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avto-callback-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
}

.avto-callback-label span {
  color: #ff6b6b;
  margin-left: 2px;
}

.avto-callback-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: #ffffff;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.avto-callback-input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.avto-callback-input:hover {
  border-color: rgba(255, 255, 255, .25);
}

.avto-callback-input:focus {
  border-color: #22C55E;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

.avto-callback-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  padding: 0 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 50%, #15803D 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow:
    0 10px 25px rgba(34, 197, 94, .38),
    inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.avto-callback-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 14px 32px rgba(34, 197, 94, .52),
    inset 0 1px 0 rgba(255, 255, 255, .38);
}

.avto-callback-submit:active {
  transform: translateY(0);
}

.avto-callback-submit:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.avto-callback-message {
  display: none;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.avto-callback-message.success {
  display: block;
  background: rgba(34, 197, 94, .15);
  border: 1px solid rgba(34, 197, 94, .4);
  color: #4ADE80;
}

.avto-callback-message.error {
  display: block;
  background: rgba(239, 68, 68, .15);
  border: 1px solid rgba(239, 68, 68, .4);
  color: #FCA5A5;
}

body.avto-callback-modal-open {
  overflow: hidden !important;
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 600px) {

  .avto-social-widget { right: 15px; bottom: 35px; }
  .avto-social-main { width: 59px; height: 59px; }
  .avto-social-buttons { right: 4px; bottom: 69px; gap: 10px; }
  .avto-social-btn { width: 48px; height: 48px; }
  .avto-telegram svg { width: 25px; height: 25px; }
  .avto-tooltip { display: none; }

  .avto-calc-standalone {
    right: 15px;
    bottom: 110px;
    width: 59px;
    height: 59px;
  }
  .avto-calc-standalone svg {
    width: 26px;
    height: 26px;
  }
  .avto-calc-standalone-label {
    display: none;
  }

  .avto-calc-modal {
    padding: 0;
    align-items: stretch;
  }

  .avto-calc-modal-content {
    width: 100%;
    height: 100vh;       /* фолбэк */
    height: 100dvh;      /* учитывает адресную строку на мобилке */
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    max-width: 100%;
  }

  .avto-calc-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .avto-callback-modal {
    padding: 0;
    align-items: stretch;
  }

  .avto-callback-content {
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    padding: 60px 22px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .avto-callback-title {
    font-size: 22px;
  }

  .avto-callback-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .avto-callback-close {
    top: 16px;
    right: 16px;
  }

}

/* =========================================================
   УМЕНЬШЕННАЯ АНИМАЦИЯ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .avto-main-wave::before, .avto-main-wave::after { animation: none; opacity: .22; }
  .avto-social-btn, .avto-main-icon { transition: none; }
  .avto-calc-modal-content, .avto-calc-modal-backdrop { animation: none; }
  .avto-calc-standalone::after { animation: none; }
  .avto-callback-modal, .avto-callback-backdrop, .avto-callback-content { animation: none; }
}

/* =========================================================
   СКРЫТИЕ ПОЛОСЫ ПРОКРУТКИ
   ========================================================= */

.avto-calc-modal-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.avto-calc-modal-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}