/* Interactive payout calculator — avtoyurist page */

.page-avtoyurist.page-imm .avto-calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: 22px;
  align-items: stretch;
  width: 100%;
}

.page-avtoyurist.page-imm .avto-calc {
  --ac-gold: #f4c563;
  --ac-gold-2: #ffe4a1;
  --ac-panel: rgba(255, 255, 255, 0.045);
  --ac-border: rgba(255, 255, 255, 0.1);
  --ac-dim: rgba(247, 244, 238, 0.62);
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 28px;
  padding: 28px 26px 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(244, 197, 99, 0.12) 0%, transparent 45%),
    linear-gradient(160deg, rgba(42, 30, 78, 0.92) 0%, rgba(22, 14, 42, 0.95) 55%, rgba(12, 8, 24, 0.98) 100%);
  border: 1px solid rgba(244, 197, 99, 0.28);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.page-avtoyurist.page-imm .avto-calc__media {
  position: relative;
  margin: 0;
  min-height: 0;
  min-width: 0;
  align-self: stretch;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(244, 197, 99, 0.32);
  background: #0a0712;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.38),
    inset 0 0 0 5px rgba(28, 16, 14, 0.75),
    inset 0 0 0 6px rgba(244, 197, 99, 0.28);
  line-height: 0;
}

.page-avtoyurist.page-imm .avto-calc__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-avtoyurist.page-imm .avto-calc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 45%, rgba(10, 6, 20, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 6, 20, 0.2), transparent 40%);
}

.page-avtoyurist.page-imm .avto-calc__media-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 22px;
  margin: 0;
}

.page-avtoyurist.page-imm .avto-calc__media-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4c563;
}

.page-avtoyurist.page-imm .avto-calc__media-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: #f7f4ee;
}

@media (max-width: 980px) {
  .page-avtoyurist.page-imm .avto-calc-layout {
    grid-template-columns: 1fr;
  }

  .page-avtoyurist.page-imm .avto-calc__media {
    order: -1;
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }

  .page-avtoyurist.page-imm .avto-calc__media img {
    position: absolute;
  }
}

.page-avtoyurist.page-imm .avto-calc::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -25%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(244, 197, 99, 0.2), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.page-avtoyurist.page-imm .avto-calc__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.page-avtoyurist.page-imm .avto-calc__title {
  margin: 0 0 6px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: #f7f4ee;
}

.page-avtoyurist.page-imm .avto-calc__sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ac-dim);
}

.page-avtoyurist.page-imm .avto-calc__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 197, 99, 0.35);
  background: rgba(244, 197, 99, 0.12);
  color: var(--ac-gold-2);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.page-avtoyurist.page-imm .avto-calc__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ee38a;
  box-shadow: 0 0 8px #4ee38a;
}

.page-avtoyurist.page-imm .avto-calc__track {
  display: flex;
  gap: 6px;
  margin: 20px 0 18px;
  position: relative;
  z-index: 1;
}

.page-avtoyurist.page-imm .avto-calc__bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.page-avtoyurist.page-imm .avto-calc__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ac-gold), var(--ac-gold-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.page-avtoyurist.page-imm .avto-calc__bar.is-active::after,
.page-avtoyurist.page-imm .avto-calc__bar.is-done::after {
  transform: scaleX(1);
}

.page-avtoyurist.page-imm .avto-calc__step {
  display: none;
  position: relative;
  z-index: 1;
}

.page-avtoyurist.page-imm .avto-calc__step.is-active {
  display: block;
}

.page-avtoyurist.page-imm .avto-calc__label {
  display: block;
  margin-bottom: 12px;
  color: #f7f4ee;
  font-size: 0.92rem;
  font-weight: 600;
}

.page-avtoyurist.page-imm .avto-calc__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.page-avtoyurist.page-imm .avto-calc__chip {
  margin: 0;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--ac-border);
  background: var(--ac-panel);
  color: #f0ebe3;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.page-avtoyurist.page-imm .avto-calc__chip:hover {
  border-color: rgba(244, 197, 99, 0.45);
  transform: translateY(-1px);
}

.page-avtoyurist.page-imm .avto-calc__chip.is-selected {
  background: linear-gradient(135deg, rgba(244, 197, 99, 0.22), rgba(244, 197, 99, 0.08));
  border-color: var(--ac-gold);
  color: #ffe9b0;
  box-shadow: 0 6px 18px -6px rgba(244, 197, 99, 0.4);
}

.page-avtoyurist.page-imm .avto-calc__amount {
  display: block;
  text-align: right;
  margin-bottom: 8px;
  color: var(--ac-gold-2);
  font-size: 1.5rem;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(244, 197, 99, 0.3);
}

.page-avtoyurist.page-imm .avto-calc__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ac-gold) var(--val, 50%), rgba(255, 255, 255, 0.12) var(--val, 50%));
  outline: none;
  margin: 10px 0 6px;
  cursor: pointer;
}

.page-avtoyurist.page-imm .avto-calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--ac-gold-2) 55%, var(--ac-gold));
  border: 3px solid #1a1230;
  box-shadow: 0 4px 14px rgba(244, 197, 99, 0.5);
  cursor: pointer;
}

.page-avtoyurist.page-imm .avto-calc__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #1a1230;
  background: radial-gradient(circle at 35% 30%, #fff, var(--ac-gold-2) 55%, var(--ac-gold));
  box-shadow: 0 4px 14px rgba(244, 197, 99, 0.5);
}

.page-avtoyurist.page-imm .avto-calc__range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--ac-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.page-avtoyurist.page-imm .avto-calc__toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-avtoyurist.page-imm .avto-calc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--ac-border);
  background: var(--ac-panel);
  cursor: pointer;
  text-align: left;
}

.page-avtoyurist.page-imm .avto-calc__toggle-title {
  color: #f7f4ee;
  font-size: 0.88rem;
  font-weight: 600;
}

.page-avtoyurist.page-imm .avto-calc__toggle-sub {
  margin-top: 2px;
  color: var(--ac-dim);
  font-size: 0.72rem;
}

.page-avtoyurist.page-imm .avto-calc__switch {
  position: relative;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.page-avtoyurist.page-imm .avto-calc__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.page-avtoyurist.page-imm .avto-calc__switch.is-on {
  background: linear-gradient(135deg, var(--ac-gold), var(--ac-gold-2));
}

.page-avtoyurist.page-imm .avto-calc__switch.is-on::after {
  transform: translateX(19px);
}

.page-avtoyurist.page-imm .avto-calc__result {
  text-align: center;
  padding: 4px 0;
}

.page-avtoyurist.page-imm .avto-calc__result-label {
  color: var(--ac-dim);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.page-avtoyurist.page-imm .avto-calc__result-value {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--ac-gold-2);
  text-shadow: 0 0 28px rgba(244, 197, 99, 0.35);
  letter-spacing: -0.02em;
}

.page-avtoyurist.page-imm .avto-calc__breakdown {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-avtoyurist.page-imm .avto-calc__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--ac-border);
  background: var(--ac-panel);
  font-size: 0.84rem;
}

.page-avtoyurist.page-imm .avto-calc__row-name {
  color: var(--ac-dim);
}

.page-avtoyurist.page-imm .avto-calc__row-val {
  color: #f7f4ee;
  font-weight: 700;
}

.page-avtoyurist.page-imm .avto-calc__row.is-total {
  background: linear-gradient(135deg, rgba(244, 197, 99, 0.14), rgba(244, 197, 99, 0.05));
  border-color: rgba(244, 197, 99, 0.3);
}

.page-avtoyurist.page-imm .avto-calc__row.is-total .avto-calc__row-name,
.page-avtoyurist.page-imm .avto-calc__row.is-total .avto-calc__row-val {
  color: var(--ac-gold-2);
  font-weight: 800;
}

.page-avtoyurist.page-imm .avto-calc__phone {
  width: 100%;
  margin-top: 4px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--ac-border);
  background: var(--ac-panel);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.page-avtoyurist.page-imm .avto-calc__phone:focus {
  border-color: var(--ac-gold);
}

.page-avtoyurist.page-imm .avto-calc__phone.is-error {
  border-color: #ff6b6b;
}

.page-avtoyurist.page-imm .avto-calc__note {
  margin: 12px 0 0;
  color: var(--ac-dim);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.45;
  opacity: 0.85;
}

.page-avtoyurist.page-imm .avto-calc__nav {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}

.page-avtoyurist.page-imm .avto-calc__btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-avtoyurist.page-imm .avto-calc__btn--primary {
  flex: 1;
  background: linear-gradient(135deg, var(--ac-gold-2), var(--ac-gold));
  color: #1a1230;
  box-shadow: 0 10px 26px -8px rgba(244, 197, 99, 0.5);
}

.page-avtoyurist.page-imm .avto-calc__btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.page-avtoyurist.page-imm .avto-calc__btn--back {
  width: 52px;
  background: rgba(255, 255, 255, 0.06);
  color: #cfc9ee;
  border: 1px solid var(--ac-border);
}

.page-avtoyurist.page-imm .avto-calc__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 520px) {
  .page-avtoyurist.page-imm .avto-calc {
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .page-avtoyurist.page-imm .avto-calc__chips {
    grid-template-columns: 1fr;
  }
}
