:root {
  --primary: #ff6b1a;
  --primary-strong: #e95408;
  --primary-soft: rgba(255, 107, 26, 0.12);
  --page: #080c14;
  --panel: #0e1420;
  --panel-soft: #141c2a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --success: #4ade80;
  --danger: #fda4af;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 107, 26, 0.14), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.08), transparent 32%),
    var(--page);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.calculator {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  min-height: 760px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 38px;
  background: rgba(9, 14, 24, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.intro-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(255, 107, 26, 0.18), transparent 42%),
    linear-gradient(180deg, #111827 0%, #0b1019 100%);
}

.intro-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.025),
    0 0 0 84px rgba(255, 255, 255, 0.018);
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 14px 30px rgba(255, 107, 26, 0.26);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong {
  font-size: 16px;
  letter-spacing: 0.03em;
}

.brand__text small {
  color: var(--muted);
  font-size: 12px;
}

.intro-panel__content {
  position: relative;
  z-index: 1;
  max-width: 430px;
  padding: 54px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffb784;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.intro-panel h1 {
  max-width: 500px;
  margin: 18px 0 20px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.intro-panel__content > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.7;
}

.benefits {
  display: grid;
  gap: 12px;
  margin-top: 38px;
}

.benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.benefit span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.benefit p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.45;
}

.intro-panel__footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.wizard-panel {
  display: flex;
  flex-direction: column;
  padding: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 107, 26, 0.08), transparent 28%),
    var(--panel);
}

.wizard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.wizard-topbar > div {
  display: grid;
  gap: 4px;
}

.wizard-topbar__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-topbar strong {
  font-size: 17px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.09);
}

.progress {
  padding: 24px 0;
}

.progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.progress__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ff9b58);
  box-shadow: 0 0 22px rgba(255, 107, 26, 0.40);
  transition: width 0.38s cubic-bezier(.22,.9,.32,1);
}

.card {
  flex: 1;
  min-height: 440px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
    var(--panel-soft);
}

.question {
  animation: questionIn 0.34s ease both;
}

@keyframes questionIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question__title {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.option {
  position: relative;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.option::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 107, 26, 0.08);
  transform: scale(0.8);
  transition: transform 0.22s ease;
}

.option:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 26, 0.45);
  background: rgba(255, 255, 255, 0.065);
}

.option:hover::after {
  transform: scale(1.05);
}

.option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow:
    0 0 0 3px rgba(255, 107, 26, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.18);
}

.option__icon {
  position: relative;
  z-index: 1;
  margin-bottom: auto;
  font-size: 34px;
}

.option__title {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 850;
}

.number-field {
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: rgba(5, 9, 16, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.number-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.08);
}

.number-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 38px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.number-field input::placeholder {
  color: #5f6c7e;
}

.number-field span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.contacts {
  display: grid;
  gap: 14px;
  max-width: 650px;
}

.contacts input,
.contacts textarea {
  width: 100%;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 17px;
  outline: 0;
  color: var(--text);
  background: rgba(5, 9, 16, 0.48);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contacts .contacts-consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.contacts .contacts-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--primary);
}

.contacts .contacts-consent span {
  font-size: 12px;
  line-height: 1.55;
}

.contacts-consent a,
.sales-lead-consent a {
  color: var(--primary);
}

.contacts input:focus,
.contacts textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.08);
}

.contacts textarea {
  min-height: 128px;
  resize: vertical;
}

.controls {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.button {
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.button--primary {
  margin-left: auto;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 16px 34px rgba(255, 107, 26, 0.22);
}

.button--primary:hover {
  box-shadow: 0 20px 42px rgba(255, 107, 26, 0.28);
}

.error {
  min-height: 22px;
  margin-top: 14px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 750;
}

.privacy-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.result {
  max-width: 680px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.result p {
  margin: 0 0 12px;
  color: var(--muted-strong);
}

.result strong {
  color: var(--text);
}

.result hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.debug {
  margin-top: 24px;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid rgba(255, 107, 26, 0.30);
  border-radius: 16px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.92);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .calculator {
    align-items: start;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .intro-panel__content {
    padding: 40px 0;
  }

  .intro-panel h1 {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 20px, 1240px);
  }

  .calculator {
    padding: 10px 0;
  }

  .app-shell {
    border-radius: 24px;
  }

  .intro-panel,
  .wizard-panel {
    padding: 22px;
  }

  .intro-panel__content {
    padding: 34px 0 24px;
  }

  .intro-panel h1 {
    font-size: 42px;
  }

  .benefits {
    margin-top: 28px;
  }

  .intro-panel__footer {
    flex-direction: column;
  }

  .card {
    min-height: 390px;
    padding: 22px;
    border-radius: 24px;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .option {
    min-height: 112px;
  }

  .controls {
    position: sticky;
    bottom: 10px;
    z-index: 5;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 15, 24, 0.88);
    backdrop-filter: blur(16px);
  }

  .button {
    flex: 1;
    padding-inline: 16px;
  }
}

.wizard-content{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start}.live-summary{position:sticky;top:18px;padding:20px;border:1px solid var(--border);border-radius:24px;background:rgba(5,9,16,.42)}.live-summary__head{display:grid;gap:4px;padding-bottom:16px;border-bottom:1px solid var(--border)}.live-summary__head span{font-weight:850}.live-summary__head small{color:var(--muted);font-size:11px}.live-summary__rows{display:grid;gap:12px;padding:18px 0}.live-summary__rows div{display:flex;justify-content:space-between;gap:12px}.live-summary__rows span{color:var(--muted);font-size:12px}.live-summary__rows strong{max-width:145px;font-size:12px;text-align:right}.live-summary__price{display:grid;gap:8px;padding-top:16px;border-top:1px solid var(--border)}.live-summary__price span{color:var(--muted);font-size:11px}.live-summary__price strong{color:#ffb784;font-size:18px;line-height:1.2}.result__eyebrow{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.result__price{margin:10px 0 24px;color:#ffb784;font-size:clamp(36px,6vw,64px);font-weight:900;line-height:1;letter-spacing:-.045em}.result__included{padding:18px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.035)}.result__included ul{display:grid;gap:8px;margin:14px 0 0;padding:0;list-style:none;color:var(--muted-strong)}.result__details{display:grid;gap:8px;margin-top:20px}.result__details p{margin:0}.result__note{margin-top:20px!important;color:var(--muted)!important;font-size:13px;line-height:1.6}@media(max-width:1180px){.wizard-content{grid-template-columns:1fr}.live-summary{position:static;order:-1}}


.question__description {
  max-width: 660px;
  margin: -14px 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

.option__check {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  opacity: 0;
  transform: scale(.7);
  transition: .2s ease;
}

.option.selected .option__check {
  opacity: 1;
  transform: scale(1);
}

.option__hint {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.field-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contacts label {
  display: grid;
  gap: 8px;
}

.contacts label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-dropzone {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 26px;
  border: 1.5px dashed rgba(255, 107, 26, .45);
  border-radius: 24px;
  background: rgba(255, 107, 26, .055);
  cursor: pointer;
  text-align: center;
  transition: .2s ease;
}

.photo-dropzone:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(255, 107, 26, .09);
}

.photo-dropzone__icon {
  font-size: 42px;
}

.photo-dropzone strong {
  font-size: 18px;
}

.photo-dropzone span,
.photo-dropzone small {
  color: var(--muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.photo-item {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  background-size: cover;
  background-position: center;
}

.photo-item__name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-item small {
  color: var(--muted-strong);
  font-size: 10px;
}

.photo-item--preview {
  color: #fff;
}

.result__accuracy {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.result__accuracy > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.result__accuracy strong {
  color: var(--text);
}

.result__accuracy-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.result__accuracy-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ffb784);
}

@media (max-width: 720px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.estimate-card {
  display: grid;
  gap: 18px;
}

.estimate-card__price {
  display: grid;
  gap: 9px;
  padding: 22px;
  border: 1px solid rgba(255, 107, 26, .30);
  border-radius: 22px;
  background: rgba(255, 107, 26, .075);
}

.estimate-card__price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.estimate-card__price strong {
  color: #ffb784;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.045em;
}

.estimate-card__included,
.estimate-card__accuracy,
.estimate-card__cta {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,.03);
}

.estimate-card__included > span {
  font-size: 13px;
  font-weight: 850;
}

.estimate-card__included ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--muted-strong);
  list-style: none;
}

.estimate-card__accuracy {
  display: grid;
  gap: 12px;
}

.estimate-card__accuracy > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.estimate-card__accuracy strong {
  color: var(--text);
}

.estimate-card__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.estimate-card__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ffb784);
}

.estimate-card__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.estimate-card__cta-icon {
  font-size: 34px;
}

.estimate-card__cta div {
  display: grid;
  gap: 4px;
}

.estimate-card__cta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.photo-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.photo-clear {
  border: 0;
  color: #fda4af;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.photo-item {
  position: relative;
}

.photo-item__info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.photo-item__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(5,9,16,.74);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.success-card {
  max-width: 670px;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(74, 222, 128, .24);
  border-radius: 24px;
  background: rgba(74, 222, 128, .055);
}

.success-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #07110a;
  background: var(--success);
  font-size: 28px;
  font-weight: 900;
}

.success-card__eyebrow {
  color: var(--success);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.success-card h3 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -.04em;
}

.success-card > p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.65;
}

.success-card__notice {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(255,255,255,.035);
}

.success-card__notice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}


.photo-status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.photo-item__badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  max-width: calc(100% - 54px);
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(5,9,16,.72);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-item--loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5,9,16,.54);
}

.photo-item--loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(255,255,255,.22);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: photoSpin .8s linear infinite;
}

.photo-item--error {
  background:
    linear-gradient(145deg, rgba(253,164,175,.08), rgba(255,255,255,.025));
}

.photo-item--error .photo-item__badge {
  color: #fecdd3;
  border-color: rgba(253,164,175,.28);
}

@keyframes photoSpin {
  to {
    transform: rotate(360deg);
  }
}


.button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.is-submitting .card {
  pointer-events: none;
}

.success-card__contact {
  color: var(--muted) !important;
  font-size: 13px;
}


.progress-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: -4px 0 22px;
}

.progress-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 1px;
  background: var(--border);
}

.progress-step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  background: var(--panel);
  font-size: 10px;
  font-weight: 850;
  transition: .25s ease;
}

.progress-step.is-active .progress-step__dot {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(255, 107, 26, .09);
}

.progress-step.is-active .progress-step__label {
  color: var(--text);
  font-weight: 800;
}

.progress-step.is-complete .progress-step__dot {
  color: #07110a;
  border-color: var(--success);
  background: var(--success);
}

.progress-step.is-complete:not(:last-child)::after {
  background: linear-gradient(90deg, var(--success), var(--border));
}

#v2Question {
  transition:
    opacity .18s ease,
    transform .18s ease,
    filter .18s ease;
}

#v2Question.question-leave {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(2px);
}

#v2Question.question-enter {
  animation: v2QuestionEnter .34s cubic-bezier(.22,.9,.32,1) both;
}

@keyframes v2QuestionEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.option {
  will-change: transform;
}

.option.selected {
  animation: selectedPulse .28s ease both;
}

.option.is-muted:not(.selected) {
  opacity: .58;
  transform: scale(.985);
}

@keyframes selectedPulse {
  0% { transform: scale(1); }
  55% { transform: scale(1.018); }
  100% { transform: scale(1); }
}

.live-summary__rows strong,
.live-summary__price strong {
  transition: color .2s ease;
}

.live-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.live-price b {
  color: #ffb784;
  font-size: 19px;
}

.live-price span {
  color: var(--muted);
  font-size: 11px;
}

.button--primary {
  position: relative;
  overflow: hidden;
}

.button--primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -65%;
  width: 34%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.25),
    transparent
  );
  transform: rotate(18deg);
  transition: left .55s ease;
}

.button--primary:hover::after {
  left: 130%;
}

@media (max-width: 720px) {
  .progress-steps {
    grid-template-columns: repeat(6, 72px);
    overflow-x: auto;
    justify-content: start;
    padding: 4px 2px 10px;
    scrollbar-width: none;
  }

  .progress-steps::-webkit-scrollbar {
    display: none;
  }

  .progress-step:not(:last-child)::after {
    width: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


.service-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 18px 0 4px;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: .2s ease;
}

.service-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255,107,26,.40);
}

.service-chip.is-active {
  color: #fff;
  border-color: var(--primary);
  background: rgba(255,107,26,.14);
  box-shadow: 0 0 0 3px rgba(255,107,26,.07);
}

.service-chip span {
  font-size: 17px;
}

.service-chip strong {
  font-size: 12px;
}

.options--multi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option--multi {
  min-height: 118px;
}

@media (max-width: 920px) {
  .options--multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .options--multi {
    grid-template-columns: 1fr;
  }

  .service-selector {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .service-selector::-webkit-scrollbar {
    display: none;
  }

  .service-chip {
    flex: 0 0 auto;
  }
}


.calculator-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--muted-strong);
  background: rgba(14, 20, 32, .97);
  text-align: center;
}

.wizard-panel {
  position: relative;
}

.calculator-loading__spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255,255,255,.14);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: photoSpin .8s linear infinite;
}

.calculator-loading span,
.calculator-loading small {
  max-width: 520px;
  color: var(--muted);
}

.calculator-loading.is-error {
  color: #fda4af;
}

.calculator.is-ready .calculator-loading {
  display: none;
}


.service-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-tools .service-selector {
  flex: 1;
}

.service-master-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(255,107,26,.38);
  border-radius: 999px;
  color: #ffb784;
  background: rgba(255,107,26,.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.service-master {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2,6,23,.78);
  backdrop-filter: blur(16px);
}

.service-master[hidden] {
  display: none !important;
}

.service-master__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,107,26,.10), transparent 28%),
    var(--panel);
  box-shadow: 0 30px 90px rgba(0,0,0,.48);
}

.service-master__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.05);
  cursor: pointer;
  font-size: 24px;
}

.service-master__header {
  max-width: 650px;
  margin-bottom: 26px;
}

.service-master__header h2 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.05em;
}

.service-master__header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-master__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.service-master__card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: #fff;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  text-align: left;
  transition: .22s ease;
}

.service-master__card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,107,26,.45);
  background: rgba(255,107,26,.08);
}

.service-master__icon {
  margin-bottom: auto;
  font-size: 36px;
}

.service-master__card strong {
  font-size: 18px;
}

.service-master__card small {
  color: var(--muted);
  line-height: 1.45;
}

.service-master__arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: var(--primary);
  font-size: 20px;
}

.service-master__back {
  margin-bottom: 22px;
  border: 0;
  color: var(--muted-strong);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.service-master-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .service-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .service-master-button {
    width: 100%;
  }

  .service-master__dialog {
    padding: 24px;
    border-radius: 24px;
  }

  .service-master__grid {
    grid-template-columns: 1fr;
  }

  .service-master__card {
    min-height: 140px;
  }
}


.order-tray {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255,107,26,.30);
  border-radius: 20px;
  background: rgba(255,107,26,.065);
}

.order-tray__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.order-tray__head > div {
  display: grid;
  gap: 3px;
}

.order-tray__head span {
  color: var(--muted);
  font-size: 11px;
}

.order-tray__head strong {
  font-size: 13px;
}

.order-tray__total {
  color: #ffb784;
  text-align: right;
}

.order-tray__items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.order-tray__item {
  display: grid;
  grid-template-columns: 28px 1fr 30px;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.order-tray__item > div {
  display: grid;
  gap: 2px;
}

.order-tray__item strong {
  font-size: 12px;
}

.order-tray__item small {
  color: var(--muted);
  font-size: 10px;
}

.order-tray__item button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fda4af;
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.estimate-card__actions {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255,107,26,.26);
  border-radius: 20px;
  background: rgba(255,107,26,.055);
}

.estimate-secondary {
  min-height: 48px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,107,26,.14);
  cursor: pointer;
  font-weight: 850;
}

.estimate-card__actions small {
  color: var(--muted);
  text-align: center;
}

.success-order-list {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.success-order-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.success-order-list span {
  color: var(--muted-strong);
  font-size: 12px;
}

.success-order-list strong {
  font-size: 12px;
  text-align: right;
}

@media (max-width: 620px) {
  .order-tray__head,
  .success-order-list div {
    flex-direction: column;
  }

  .order-tray__total,
  .success-order-list strong {
    text-align: left;
  }
}


/* =========================================================
   V6.1 — адаптация по высоте экрана и независимая прокрутка
   ========================================================= */

@media (min-width: 981px) {
  html,
  body {
    height: 100%;
  }

  body {
    overflow: hidden;
  }

  .page,
  .calculator,
  .container {
    height: 100%;
    min-height: 0;
  }

  .calculator {
    min-height: 0;
    padding: 16px 0;
  }

  .container {
    display: flex;
    align-items: stretch;
  }

  .app-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: calc(100dvh - 32px);
  }

  .intro-panel {
    height: 100%;
    min-height: 0;
  }

  .wizard-panel {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-bottom: 28px;
  }

  .wizard-panel::-webkit-scrollbar {
    width: 10px;
  }

  .wizard-panel::-webkit-scrollbar-track {
    background: transparent;
  }

  .wizard-panel::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    background-clip: padding-box;
  }

  .wizard-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .25);
    background-clip: padding-box;
  }

  .order-tray:not([hidden]) {
    position: sticky;
    top: 0;
    z-index: 12;
    box-shadow: 0 12px 32px rgba(5, 9, 16, .38);
    backdrop-filter: blur(18px);
  }

  .controls {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 18px -8px 0;
    padding: 12px 8px;
    border-top: 1px solid var(--border);
    background:
      linear-gradient(
        180deg,
        rgba(14, 20, 32, 0),
        rgba(14, 20, 32, .94) 28%,
        rgba(14, 20, 32, .99)
      );
    backdrop-filter: blur(16px);
  }

  .privacy-note {
    padding-bottom: 4px;
  }
}

/* Компактный режим для ноутбуков с небольшой полезной высотой. */
@media (min-width: 981px) and (max-height: 900px) {
  .calculator {
    padding: 10px 0;
  }

  .app-shell {
    max-height: calc(100dvh - 20px);
    border-radius: 28px;
  }

  .intro-panel {
    padding: 26px;
  }

  .intro-panel__content {
    padding: 28px 0;
  }

  .intro-panel h1 {
    margin: 14px 0 16px;
    font-size: clamp(38px, 4.4vw, 58px);
  }

  .intro-panel__content > p {
    font-size: 14px;
    line-height: 1.55;
  }

  .benefits {
    gap: 6px;
    margin-top: 24px;
  }

  .benefit {
    padding: 9px 0;
  }

  .benefit p {
    font-size: 12px;
  }

  .wizard-panel {
    padding: 22px 24px 24px;
  }

  .wizard-topbar {
    padding-bottom: 16px;
  }

  .service-selector {
    padding-top: 12px;
  }

  .progress {
    padding: 16px 0;
  }

  .progress-steps {
    margin-bottom: 14px;
  }

  .card {
    min-height: 340px;
    padding: 24px;
  }

  .question__title {
    margin-bottom: 20px;
    font-size: clamp(28px, 3.3vw, 42px);
  }

  .option {
    min-height: 118px;
    padding: 18px;
  }

  .option__icon {
    font-size: 29px;
  }

  .estimate-card {
    gap: 12px;
  }

  .estimate-card__price,
  .estimate-card__included,
  .estimate-card__accuracy,
  .estimate-card__cta,
  .estimate-card__actions {
    padding: 15px;
  }

  .estimate-card__price strong {
    font-size: clamp(32px, 4vw, 48px);
  }

  .live-summary {
    padding: 16px;
  }

  .live-summary__rows {
    gap: 9px;
    padding: 13px 0;
  }
}

/* На планшетах и телефонах возвращаем обычную прокрутку страницы. */
@media (max-width: 980px) {
  html,
  body {
    height: auto;
  }

  body {
    overflow: auto;
  }

  .page,
  .calculator,
  .container {
    height: auto;
    min-height: 0;
  }

  .app-shell {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .wizard-panel {
    height: auto;
    overflow: visible;
  }

  .order-tray:not([hidden]) {
    position: static;
  }
}

/* =========================================================
   V6.2 — исправление перекрытия панели услуг
   ========================================================= */

@media (min-width: 981px) {
  /* Корзина больше не наползает на кнопки услуг при прокрутке. */
  .order-tray:not([hidden]) {
    position: relative;
    top: auto;
    z-index: 1;
    box-shadow: none;
  }

  .service-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    min-width: 0;
  }

  .service-tools .service-selector {
    min-width: 0;
  }

  .service-master-button {
    align-self: start;
    margin-top: 12px;
  }
}

/* На невысоких ноутбуках услуги идут одной аккуратной горизонтальной строкой. */
@media (min-width: 981px) and (max-height: 900px) {
  .service-selector {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    padding: 12px 3px 10px;
    scroll-padding-inline: 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .service-selector::-webkit-scrollbar {
    display: none;
  }

  .service-chip {
    flex: 0 0 auto;
  }

  .service-master-button {
    margin-top: 12px;
  }
}


/* Dynamic service finder */
.service-finder {
  display: grid;
  gap: 14px;
}

.service-finder__search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.service-finder__search > span {
  color: var(--orange, #ff6b1a);
  font-size: 25px;
}

.service-finder__search textarea {
  min-width: 0;
  resize: none;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: 1.45;
}

.service-finder__search textarea::placeholder {
  color: #778397;
}

.service-finder__search button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--orange, #ff6b1a);
  cursor: pointer;
  font-weight: 800;
}

.service-finder__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.service-finder__categories button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: #929daf;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

.service-finder__categories button.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--orange, #ff6b1a);
}

.service-finder__status {
  color: #7f8b9d;
  font-size: 10px;
}

.service-master__content {
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: left;
}

.service-master__content small {
  color: var(--orange, #ff6b1a);
  font-size: 8px;
  font-style: normal;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.service-master__content em {
  color: #7f8b9d;
  font-size: 9px;
  font-style: normal;
}

@media (max-width: 620px) {
  .service-finder__search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .service-finder__search button {
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* Smart service assistant */
.service-assistant__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.service-assistant__tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  color: #8995a8;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.service-assistant__tabs button.is-active {
  color: #fff;
  background: var(--orange, #ff6b1a);
}

.service-wizard,
.service-recommendations {
  display: grid;
  gap: 18px;
}

.service-wizard__progress {
  display: grid;
  gap: 7px;
}

.service-wizard__progress > div {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.service-wizard__progress > div > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange, #ff6b1a);
  transition: width .25s ease;
}

.service-wizard__progress small {
  color: #788499;
  font-size: 9px;
}

.service-wizard__question h3 {
  margin: 0;
  color: #f5f7fb;
  font-size: clamp(20px, 3vw, 28px);
}

.service-wizard__question p {
  margin: 7px 0 0;
  color: #808ca0;
  font-size: 11px;
}

.service-wizard__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.service-wizard__options button {
  min-height: 74px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  color: #f2f4f8;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  text-align: left;
}

.service-wizard__options button:hover,
.service-wizard__options button:focus-visible {
  outline: 0;
  border-color: rgba(255,107,26,.55);
  background: rgba(255,107,26,.07);
}

.service-wizard__options button > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  font-size: 20px;
}

.service-wizard__options strong {
  font-size: 11px;
}

.service-wizard__options em {
  color: var(--orange, #ff6b1a);
  font-style: normal;
}

.service-wizard__back {
  justify-self: start;
  border: 0;
  color: #8a96a8;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.service-recommendations__list {
  display: grid;
  gap: 9px;
}

.service-recommendation {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  color: #f3f5f9;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  text-align: left;
}

.service-recommendation.is-best {
  border-color: rgba(255,107,26,.52);
  background: rgba(255,107,26,.065);
}

.service-recommendation__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--orange, #ff6b1a);
  font-size: 21px;
}

.service-recommendation__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.service-recommendation__content small {
  color: var(--orange, #ff6b1a);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.service-recommendation__content strong {
  font-size: 13px;
}

.service-recommendation__content em {
  color: #808ca0;
  font-size: 9px;
  font-style: normal;
}

.service-recommendation > span:last-child {
  color: var(--orange, #ff6b1a);
  font-size: 9px;
  font-weight: 850;
}

@media (max-width: 620px) {
  .service-wizard__options {
    grid-template-columns: 1fr;
  }

  .service-recommendation {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .service-recommendation > span:last-child {
    grid-column: 2;
  }
}


/* Sprint 20.7 — rule engine recommendations */
.service-related {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.service-related__heading {
  display: grid;
  gap: 3px;
}

.service-related__heading strong {
  color: #f4f6fa;
  font-size: 12px;
}

.service-related__heading span {
  color: #7f8a9c;
  font-size: 9px;
}

.service-related__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.service-related__item {
  min-height: 82px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: #f4f6fa;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  text-align: left;
}

.service-related__item:hover,
.service-related__item:focus-visible {
  outline: 0;
  border-color: rgba(255,107,26,.52);
  background: rgba(255,107,26,.06);
}

.service-related__item > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,107,26,.12);
}

.service-related__item strong {
  font-size: 10px;
}

.service-related__item em {
  grid-column: 2;
  color: var(--orange, #ff6b1a);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 620px) {
  .service-related__list {
    grid-template-columns: 1fr;
  }
}


/* Sprint 21.0 — AI Sales Assistant */
.service-sales-result {
  gap: 14px;
}

.sales-result-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 107, 26, .42);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 107, 26, .09), rgba(255, 255, 255, .018) 45%),
    rgba(255, 255, 255, .02);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .22);
}

.sales-result-card__head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.sales-result-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--orange, #ff6b1a);
  box-shadow: 0 12px 28px rgba(255, 107, 26, .24);
  font-size: 24px;
}

.sales-result-card__head small {
  display: block;
  margin-bottom: 5px;
  color: var(--orange, #ff6b1a);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sales-result-card__head h3 {
  margin: 0;
  color: #f7f8fb;
  font-size: clamp(20px, 3vw, 30px);
}

.sales-result-card__head p {
  margin: 7px 0 0;
  color: #8995a7;
  font-size: 10px;
  line-height: 1.6;
}

.sales-result-card__metrics {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 8px;
}

.sales-result-card__metrics article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.sales-result-card__metrics span,
.sales-result-card__metrics small {
  display: block;
  color: #778498;
  font-size: 8px;
}

.sales-result-card__metrics strong {
  display: block;
  margin: 6px 0 4px;
  color: #fff;
  font-size: 13px;
}

.sales-result-card__metrics article:first-child strong {
  color: #ff8a49;
  font-size: 18px;
}

.sales-result-card__included {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 14px;
  padding: 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .025);
}

.sales-result-card__included > div {
  display: grid;
  align-content: start;
  gap: 4px;
}

.sales-result-card__included strong {
  color: #f4f6f9;
  font-size: 11px;
}

.sales-result-card__included span {
  color: #758297;
  font-size: 8px;
}

.sales-result-card__included ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sales-result-card__included li {
  position: relative;
  padding-left: 19px;
  color: #aeb7c5;
  font-size: 9px;
}

.sales-result-card__included li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange, #ff6b1a);
  font-weight: 900;
}

.sales-result-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sales-action,
.sales-result-card__calculator {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  color: #e9edf3;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.sales-action:hover,
.sales-action:focus-visible,
.sales-result-card__calculator:hover,
.sales-result-card__calculator:focus-visible {
  outline: 0;
  border-color: rgba(255, 107, 26, .58);
  background: rgba(255, 107, 26, .09);
}

.sales-action--primary {
  border-color: var(--orange, #ff6b1a);
  color: #fff;
  background: var(--orange, #ff6b1a);
}

.sales-action--primary:hover,
.sales-action--primary:focus-visible {
  background: #ff7c34;
}

.sales-action--ghost {
  color: #98a4b5;
  background: transparent;
}

.sales-result-card__calculator {
  min-height: auto;
  justify-self: start;
  border: 0;
  color: var(--orange, #ff6b1a);
  background: transparent;
}

.service-alternatives {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.sales-result-card__explanation {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-left: 2px solid var(--orange, #ff6b1a);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 107, 26, .045);
}

.sales-result-card__explanation strong {
  color: #f1f4f8;
  font-size: 10px;
}

.sales-result-card__explanation span {
  color: #7e8a9e;
  font-size: 8px;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .sales-result-card {
    padding: 14px;
  }

  .sales-result-card__metrics {
    grid-template-columns: 1fr;
  }

  .sales-result-card__included {
    grid-template-columns: 1fr;
  }

  .sales-result-card__actions {
    grid-template-columns: 1fr;
  }
}


/* Sprint 21.1 — Sales lead capture */
body.sales-lead-open {
  overflow: hidden;
}

.sales-lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 7, 11, .78);
  backdrop-filter: blur(10px);
}

.sales-lead-modal {
  position: relative;
  width: min(470px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 107, 26, .38);
  border-radius: 21px;
  background:
    linear-gradient(145deg, rgba(255, 107, 26, .08), transparent 38%),
    #111822;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

.sales-lead-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #9aa5b5;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  font-size: 20px;
}

.sales-lead-modal > small {
  color: #ff7e37;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sales-lead-modal h3 {
  margin: 7px 42px 7px 0;
  color: #fff;
  font-size: 25px;
}

.sales-lead-modal > p {
  margin: 0 0 16px;
  color: #8895a8;
  font-size: 10px;
  line-height: 1.6;
}

.sales-lead-modal form {
  display: grid;
  gap: 10px;
}

.sales-lead-modal label {
  display: grid;
  gap: 5px;
}

.sales-lead-modal label span {
  color: #78869a;
  font-size: 8px;
  font-weight: 800;
}

.sales-lead-modal .sales-lead-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
}

.sales-lead-modal .sales-lead-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--primary);
}

.sales-lead-modal input,
.sales-lead-modal textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  color: #eef1f6;
  background: rgba(255,255,255,.035);
  padding: 11px 12px;
  font: inherit;
  font-size: 10px;
}

.sales-lead-modal input:focus,
.sales-lead-modal textarea:focus {
  outline: 0;
  border-color: rgba(255,107,26,.68);
}

.sales-lead-modal button[type="submit"] {
  min-height: 46px;
  margin-top: 3px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #ff6b1a;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.sales-lead-modal button[type="submit"]:disabled {
  opacity: .65;
  cursor: wait;
}

.sales-lead-modal__status {
  min-height: 16px;
  color: #ff8c55;
  font-size: 9px;
  line-height: 1.5;
}

.sales-lead-modal__status.is-success {
  color: #79d29a;
}
