[data-z24-calculator],
[data-z24-calculator] * {
  box-sizing: border-box;
}

[data-z24-calculator] [hidden] {
  display: none !important;
}

[data-z24-calculator] {
  --z24-neon: #80ff00;
  --z24-neon-soft: rgba(128, 255, 0, 0.12);
  --z24-ink: #070908;
  --z24-panel: #111412;
  --z24-panel-2: #171a18;
  --z24-line: rgba(255, 255, 255, 0.13);
  --z24-muted: #a8afa9;
  color: #fff;
  font-family: inherit;
  color-scheme: dark;
}

.z24-calculator-section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem);
  background: #050706;
  overflow: clip;
}

.z24-calculator-section::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 58%;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: rgba(128, 255, 0, 0.08);
  filter: blur(100px);
  pointer-events: none;
}

.z24-calculator-section > [data-z24-calculator] {
  position: relative;
  width: min(1440px, 100%);
  margin: 0 auto;
}

.z24-calc {
  position: relative;
  width: 100%;
  border: 1px solid var(--z24-line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(128, 255, 0, 0.045), transparent 34%),
    var(--z24-ink);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.z24-calc__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--z24-line);
}

.z24-calc__heading > div:first-child {
  max-width: 800px;
}

.z24-calc__kicker {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--z24-neon);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.z24-calc__heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.z24-calc__heading p {
  max-width: 700px;
  margin: 1rem 0 0;
  color: var(--z24-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.z24-calc__source {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.1rem 0.65rem;
  min-width: 250px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(128, 255, 0, 0.25);
  border-radius: 14px;
  background: rgba(128, 255, 0, 0.06);
}

.z24-calc__source > span {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--z24-neon);
  box-shadow: 0 0 18px rgba(128, 255, 0, 0.7);
}

.z24-calc__source small,
.z24-calc__source strong {
  display: block;
  min-width: 0;
}

.z24-calc__source small {
  color: var(--z24-muted);
  font-size: 0.75rem;
}

.z24-calc__source strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.z24-calc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.68fr);
  gap: 0;
  margin: 0;
}

.z24-calc__inputs {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2.5rem);
  border-right: 1px solid var(--z24-line);
}

.z24-calc__block {
  margin: 0 0 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--z24-line);
  border-radius: 20px;
  background: var(--z24-panel);
}

.z24-calc__block:last-child {
  margin-bottom: 0;
}

.z24-calc__block-title {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.z24-calc__block-title > span {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(128, 255, 0, 0.4);
  border-radius: 50%;
  color: var(--z24-neon);
  font-size: 0.75rem;
  font-weight: 900;
}

.z24-calc__block-title h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.z24-calc__block-title p {
  margin: 0.28rem 0 0;
  color: var(--z24-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.z24-calc__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.z24-calc__service {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.z24-calc__service > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.z24-calc__service > span {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.75rem;
  min-height: 92px;
  padding: 1rem;
  border: 1px solid var(--z24-line);
  border-radius: 15px;
  background: var(--z24-panel-2);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.z24-calc__service:hover > span {
  transform: translateY(-1px);
  border-color: rgba(128, 255, 0, 0.35);
}

.z24-calc__service input:focus-visible + span {
  outline: 3px solid rgba(128, 255, 0, 0.45);
  outline-offset: 2px;
}

.z24-calc__service input:checked + span {
  border-color: var(--z24-neon);
  background: var(--z24-neon-soft);
}

.z24-calc__service span > small {
  grid-row: 1 / span 2;
  color: var(--z24-neon);
  font-size: 0.72rem;
  font-weight: 900;
}

.z24-calc__service strong {
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.3;
}

.z24-calc__service em {
  grid-column: 2;
  color: var(--z24-muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.4;
}

.z24-calc__service i {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--z24-line);
  border-radius: 50%;
  color: transparent;
  font-size: 0.76rem;
  font-style: normal;
}

.z24-calc__service input:checked + span i {
  border-color: var(--z24-neon);
  background: var(--z24-neon);
  color: #071006;
}

.z24-calc__hint {
  margin: 0.8rem 0 0;
  color: var(--z24-muted);
  font-size: 0.85rem;
}

.z24-calc__service-panel {
  margin-bottom: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--z24-line);
  border-radius: 15px;
  background: #0a0c0b;
}

.z24-calc__service-panel:last-child {
  margin-bottom: 0;
}

.z24-calc__service-panel > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.z24-calc__service-panel > header span {
  font-size: 1rem;
  font-weight: 800;
}

.z24-calc__service-panel > header small {
  color: var(--z24-muted);
  font-size: 0.75rem;
}

.z24-calc__field-grid,
.z24-calc__access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.z24-calc__access {
  align-items: end;
  margin: 0.9rem 0;
  padding: 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

.z24-calc__field {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

.z24-calc__field--wide {
  width: 100%;
  margin: 0.7rem 0;
}

.z24-calc__field > small,
.z24-calc__vehicle-note {
  color: var(--z24-muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.z24-calc__field input,
.z24-calc__field select,
.z24-calc__field textarea {
  width: 100%;
  min-height: 49px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  outline: 0;
  background: #070908;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.4;
  padding: 0.78rem 0.85rem;
}

.z24-calc__field textarea {
  min-height: 110px;
  resize: vertical;
}

.z24-calc__field input:focus,
.z24-calc__field select:focus,
.z24-calc__field textarea:focus {
  border-color: var(--z24-neon);
  box-shadow: 0 0 0 3px rgba(128, 255, 0, 0.11);
}

.z24-calc__input-unit {
  position: relative;
  display: block;
}

.z24-calc__input-unit input {
  padding-right: 5.6rem;
}

.z24-calc__input-unit small {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  max-width: 4.5rem;
  overflow: hidden;
  color: var(--z24-muted);
  font-size: 0.73rem;
  font-weight: 700;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  white-space: nowrap;
}

.z24-calc__check,
.z24-calc__consent {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 49px;
  cursor: pointer;
}

.z24-calc__check input,
.z24-calc__consent input {
  position: absolute;
  opacity: 0;
}

.z24-calc__check > span,
.z24-calc__consent > span {
  position: relative;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: #070908;
}

.z24-calc__check input:checked + span,
.z24-calc__consent input:checked + span {
  border-color: var(--z24-neon);
  background: var(--z24-neon);
}

.z24-calc__check input:checked + span::after,
.z24-calc__consent input:checked + span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid #071006;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.z24-calc__check input:focus-visible + span,
.z24-calc__consent input:focus-visible + span {
  outline: 3px solid rgba(128, 255, 0, 0.35);
  outline-offset: 2px;
}

.z24-calc__check b {
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.35;
}

.z24-calc__consent {
  align-items: flex-start;
  margin: 1rem 0;
}

.z24-calc__consent small {
  color: var(--z24-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.z24-calc__consent a {
  color: #fff;
  text-decoration-color: var(--z24-neon);
  text-underline-offset: 3px;
}

.z24-calc__base {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--z24-neon);
  background: rgba(255, 255, 255, 0.045);
}

.z24-calc__base small {
  color: var(--z24-muted);
  font-size: 0.75rem;
}

.z24-calc__base strong {
  font-size: 0.9rem;
}

.z24-calc__route-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  margin-top: 1rem;
}

.z24-calc__route-button,
.z24-calc__send {
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  background: var(--z24-neon);
  color: #061005;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 0.8rem 1.15rem;
}

.z24-calc__route-button:disabled,
.z24-calc__send:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.z24-calc__text-button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  padding: 0.6rem 0;
  text-decoration: underline;
  text-decoration-color: rgba(128, 255, 0, 0.55);
  text-underline-offset: 4px;
}

.z24-calc__route-result {
  display: grid;
  gap: 0.25rem;
  margin: 0.8rem 0;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--z24-line);
  border-radius: 11px;
  color: var(--z24-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.z24-calc__route-result.is-success {
  border-color: rgba(128, 255, 0, 0.35);
  background: rgba(128, 255, 0, 0.07);
  color: #eaffdb;
}

.z24-calc__route-result.is-error {
  border-color: rgba(255, 112, 112, 0.45);
  background: rgba(255, 78, 78, 0.08);
  color: #ffd4d4;
}

.z24-calc__route-result strong {
  color: #fff;
  font-size: 1rem;
}

.z24-calc__route-result small,
.z24-calc__route-result em {
  font-size: 0.75rem;
  font-style: normal;
}

.z24-calc__manual {
  max-width: 100%;
  margin-top: 0.8rem;
}

.z24-calc__privacy-route {
  margin: 0.5rem 0 1rem;
  color: var(--z24-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.z24-calc__flat-rate-note {
  margin: 0.9rem 0 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(128, 255, 0, 0.25);
  border-radius: 11px;
  background: rgba(128, 255, 0, 0.06);
  color: #eaffdb;
  font-size: 0.84rem;
  line-height: 1.5;
}

.z24-calc__result {
  align-self: start;
  position: sticky;
  top: 84px;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.z24-calc__result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.z24-calc__result-head > span {
  color: var(--z24-neon);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.z24-calc__result-head small {
  color: var(--z24-muted);
  font-size: 0.72rem;
}

.z24-calc__result-head small.is-ready {
  color: var(--z24-neon);
}

.z24-calc__lines {
  display: grid;
  gap: 0.55rem;
}

.z24-calc__line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--z24-line);
}

.z24-calc__line div {
  display: grid;
  gap: 0.25rem;
}

.z24-calc__line strong,
.z24-calc__line b {
  color: #fff;
  font-size: 0.87rem;
  line-height: 1.35;
}

.z24-calc__line b {
  flex: 0 0 auto;
  white-space: nowrap;
}

.z24-calc__line small {
  color: var(--z24-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.z24-calc__totals {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.4rem;
}

.z24-calc__totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--z24-muted);
  font-size: 0.88rem;
}

.z24-calc__totals strong {
  color: #fff;
}

.z24-calc__totals .z24-calc__gross {
  align-items: center;
  margin-top: 0.4rem;
  padding: 1rem;
  border-radius: 13px;
  background: var(--z24-neon);
  color: #071006;
  font-weight: 900;
}

.z24-calc__gross strong {
  color: #071006;
  font-size: 1.25rem;
}

.z24-calc__missing,
.z24-calc__warnings,
.z24-calc__unavailable,
.z24-calc__empty {
  margin: 0.8rem 0;
  padding: 0.9rem;
  border: 1px solid var(--z24-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.z24-calc__missing {
  border-color: rgba(255, 194, 93, 0.4);
  background: rgba(255, 194, 93, 0.07);
}

.z24-calc__warnings {
  border-color: rgba(128, 255, 0, 0.28);
  background: rgba(128, 255, 0, 0.055);
}

.z24-calc__missing strong,
.z24-calc__warnings strong,
.z24-calc__unavailable strong,
.z24-calc__empty strong {
  color: #fff;
  font-size: 0.84rem;
}

.z24-calc__missing p,
.z24-calc__warnings p,
.z24-calc__unavailable p,
.z24-calc__empty p {
  margin: 0.35rem 0 0;
  color: var(--z24-muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.z24-calc__unavailable a {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--z24-neon);
  font-size: 0.85rem;
}

.z24-calc__disclaimer {
  margin: 1rem 0 0;
  color: #89908a;
  font-size: 0.72rem;
  line-height: 1.55;
}

.z24-calc__send {
  width: 100%;
  min-height: 56px;
  font-size: 0.96rem;
}

.z24-calc__send-status {
  min-height: 0;
  margin: 0.8rem 0;
  color: #ffd4d4;
  font-size: 0.84rem;
  line-height: 1.5;
}

.z24-calc__send-status.is-success,
.z24-calc__send-status.is-error {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(128, 255, 0, 0.35);
  border-radius: 11px;
  background: rgba(128, 255, 0, 0.07);
  color: #efffe2;
}

.z24-calc__send-status.is-error {
  border-color: rgba(255, 112, 112, 0.45);
  background: rgba(255, 78, 78, 0.08);
  color: #ffd4d4;
}

.z24-calc__send-status small {
  color: var(--z24-muted);
  font-size: 0.74rem;
}

.z24-calc__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.z24-calc__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 240px;
  border: 1px solid var(--z24-line);
  border-radius: 24px;
  background: var(--z24-ink);
  color: #fff;
}

.z24-calc__loading span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--z24-neon);
  border-radius: 50%;
  animation: z24-calc-spin 700ms linear infinite;
}

@keyframes z24-calc-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1040px) {
  .z24-calc__layout {
    grid-template-columns: 1fr;
  }

  .z24-calc__inputs {
    border-right: 0;
    border-bottom: 1px solid var(--z24-line);
  }

  .z24-calc__result {
    position: static;
  }
}

@media (max-width: 720px) {
  .z24-calculator-section {
    padding-inline: 0.7rem;
  }

  .z24-calc {
    border-radius: 22px;
  }

  .z24-calc__heading {
    display: grid;
    padding: 1.25rem;
  }

  .z24-calc__source {
    min-width: 0;
    width: 100%;
  }

  .z24-calc__inputs,
  .z24-calc__result {
    padding: 0.75rem;
  }

  .z24-calc__block {
    padding: 1rem;
    border-radius: 16px;
  }

  .z24-calc__services,
  .z24-calc__field-grid,
  .z24-calc__access {
    grid-template-columns: 1fr;
  }

  .z24-calc__service > span {
    min-height: 84px;
  }

  .z24-calc__service-panel > header {
    display: grid;
    gap: 0.2rem;
  }

  .z24-calc__route-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .z24-calc__route-button,
  .z24-calc__text-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .z24-calc__loading span {
    animation: none;
  }

  .z24-calc__service > span {
    transition: none;
  }
}
