/* ============================================================
   VAT-SAVING — калькулятор экономии НДС для юрлиц
   ============================================================ */

.vat {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--ink);
  color: #fffdf9;
  position: relative;
  overflow: hidden;
}
.vat::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 85% 15%, rgba(200, 168, 110, 0.10), transparent 70%),
    radial-gradient(800px 500px at 10% 90%, rgba(47, 58, 74, 0.40), transparent 70%);
  pointer-events: none;
}
.vat .wrap { position: relative; z-index: 1; }

.vat .sec-head {
  margin-bottom: 36px;
  max-width: 720px;
}
.vat .sec-eyebrow {
  color: rgba(255, 253, 249, 0.65);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vat .h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fffdf9;
  margin: 8px 0 12px;
}
.vat .sec-sub {
  color: rgba(255, 253, 249, 0.7);
  font-size: 16px;
  line-height: 1.55;
  max-width: 580px;
}

.vat-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: stretch;
}

/* === ЛЕВАЯ КОЛОНКА — слайдер === */
.vat-input {
  background: rgba(255, 253, 249, 0.04);
  border: 1px solid rgba(255, 253, 249, 0.12);
  border-radius: 18px;
  padding: 28px 32px 32px;
  display: flex; flex-direction: column;
  gap: 24px;
}

.vat-label {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
}
.vat-label-l {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.55);
  font-weight: 500;
}
.vat-label-v {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  color: #fffdf9;
  line-height: 1;
}
.vat-label-v sup {
  font-size: 14px;
  vertical-align: top;
  margin-left: 4px;
  font-weight: 500;
  color: rgba(255, 253, 249, 0.55);
}

.vat-slider {
  position: relative;
  width: 100%;
  display: flex; align-items: center;
  margin: 6px 0;
}
.vat-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #c8a86e var(--v, 25%), rgba(255,253,249,0.12) var(--v, 25%));
  outline: none;
  margin: 0;
  cursor: pointer;
}
.vat-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fffdf9;
  border: 3px solid #c8a86e;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.vat-slider input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fffdf9;
  border: 3px solid #c8a86e;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.vat-slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
.vat-ticks {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255, 253, 249, 0.45);
  letter-spacing: 0.02em;
}

.vat-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.vat-preset {
  padding: 10px 4px;
  background: rgba(255, 253, 249, 0.04);
  border: 1px solid rgba(255, 253, 249, 0.10);
  border-radius: 8px;
  color: rgba(255, 253, 249, 0.85);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
  letter-spacing: 0.01em;
}
.vat-preset:hover { background: rgba(255, 253, 249, 0.08); }
.vat-preset.is-active {
  background: rgba(200, 168, 110, 0.16);
  border-color: #c8a86e;
  color: #fffdf9;
}

.vat-note {
  font-size: 12px;
  color: rgba(255, 253, 249, 0.45);
  line-height: 1.5;
}
.vat-note b { color: rgba(255, 253, 249, 0.7); font-weight: 600; }

/* === ПРАВАЯ КОЛОНКА — результат === */
.vat-out {
  background: linear-gradient(170deg, rgba(255, 253, 249, 0.045), rgba(255, 253, 249, 0.02));
  border: 1px solid rgba(255, 253, 249, 0.12);
  border-radius: 18px;
  padding: 28px 32px 32px;
  display: flex; flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
.vat-out::before {
  content: "";
  position: absolute;
  top: -50%; right: -30%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 168, 110, 0.18), transparent);
  pointer-events: none;
}

.vat-out-head {
  display: flex; align-items: center; gap: 10px;
  position: relative;
}
.vat-out-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  padding: 5px 10px;
  background: rgba(200, 168, 110, 0.15);
  color: #d4b878;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vat-out-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #c8a86e;
}

.vat-savings-big {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #c8a86e;
  font-variant-numeric: tabular-nums;
  position: relative;
  margin-top: 4px;
}
.vat-savings-cap {
  font-size: 14px;
  color: rgba(255, 253, 249, 0.7);
  line-height: 1.4;
}
.vat-savings-cap b { color: #fffdf9; font-weight: 600; }

.vat-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid rgba(255, 253, 249, 0.10);
  padding-top: 18px;
}
.vat-comp {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.04);
  display: flex; flex-direction: column; gap: 6px;
}
.vat-comp.is-bad {
  border-left: 3px solid rgba(255, 90, 90, 0.5);
}
.vat-comp.is-good {
  border-left: 3px solid #c8a86e;
}
.vat-comp-l {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.5);
  font-weight: 500;
}
.vat-comp-v {
  font-size: 19px;
  font-weight: 700;
  color: #fffdf9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.vat-comp-c {
  font-size: 11px;
  color: rgba(255, 253, 249, 0.5);
  margin-top: 2px;
}

.vat-bars {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 6px;
}
.vat-bar {
  display: flex; flex-direction: column; gap: 6px;
}
.vat-bar-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: rgba(255, 253, 249, 0.65);
}
.vat-bar-head b { color: #fffdf9; font-weight: 600; font-variant-numeric: tabular-nums; }
.vat-bar-track {
  height: 8px;
  background: rgba(255, 253, 249, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.vat-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.5s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.vat-bar-fill.is-cost { background: rgba(255, 90, 90, 0.55); }
.vat-bar-fill.is-real { background: linear-gradient(90deg, #c8a86e, #d4b878); }

.vat-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 4px;
}
.vat-cta .btn {
  flex: 1;
  min-width: 160px;
}

.btn.btn-gold {
  background: #c8a86e;
  color: var(--ink);
  border: 0;
  font-weight: 600;
}
.btn.btn-gold:hover { background: #d4b878; }
.btn.btn-outline {
  background: transparent;
  color: #fffdf9;
  border: 1px solid rgba(255, 253, 249, 0.25);
}
.btn.btn-outline:hover {
  background: rgba(255, 253, 249, 0.06);
  border-color: rgba(255, 253, 249, 0.4);
}

/* Адаптив */
@media (max-width: 920px) {
  .vat-grid { grid-template-columns: 1fr; gap: 18px; }
  .vat-out::before { right: -50%; top: -30%; }
}
@media (max-width: 480px) {
  .vat-input, .vat-out { padding: 22px 22px 26px; }
  .vat-compare { grid-template-columns: 1fr; }
  .vat-presets { grid-template-columns: repeat(2, 1fr); }
  .vat-cta .btn { width: 100%; }
}
