/* Stage 3.1 — estimate wizard */
.page-raschet .mobile-cta { display: none !important; }
.page-raschet { padding-bottom: 0; }

.est-wrap {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0 3rem;
}
@media (min-width: 980px) {
  .est-wrap { grid-template-columns: minmax(0, 1fr) 280px; gap: 1.75rem; }
}

.est-progress {
  margin-bottom: 1rem;
}
.est-progress-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.est-bar {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.est-bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width .2s ease;
}

.est-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.25rem;
}
.est-card h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--dark);
}
.est-card .est-hint {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.est-field { margin-bottom: 1rem; }
.est-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--dark);
}
.est-field input[type="number"],
.est-field input[type="text"],
.est-field input[type="tel"],
.est-field select,
.est-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--dark);
}
.est-field textarea { min-height: 96px; resize: vertical; }

.est-choices {
  display: grid;
  gap: 0.55rem;
}
@media (min-width: 560px) {
  .est-choices.cols-2 { grid-template-columns: 1fr 1fr; }
}
.est-choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
}
.est-choice:has(input:checked),
.est-choice.is-on {
  border-color: var(--accent);
  background: rgba(232, 160, 32, 0.12);
}
.est-choice input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }

.est-room {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  background: var(--bg-soft);
}
.est-room-head {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.est-room-head input {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-weight: 700;
}
.est-room-head .est-icon-btn {
  min-width: 44px;
  min-height: 44px;
}

.est-counter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.est-counter span { font-weight: 600; color: var(--dark); }
.est-stepper {
  display: inline-grid;
  grid-template-columns: 44px 52px 44px;
  gap: 0.25rem;
  align-items: center;
}
.est-stepper button {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--dark);
}
.est-stepper button:active { background: rgba(232,160,32,.15); }
.est-stepper output {
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.est-appliances {
  display: grid;
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .est-appliances { grid-template-columns: 1fr 1fr; }
}
.est-app {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: #fff;
}
.est-app.is-on { border-color: var(--accent); background: rgba(232,160,32,0.1); }
.est-app-top {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
}
.est-app-top input { margin-top: 0.2rem; accent-color: var(--accent); }
.est-app-extra {
  display: none;
  margin-top: 0.65rem;
  gap: 0.5rem;
}
.est-app.is-on .est-app-extra { display: grid; }
.est-app-extra label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.est-drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
}
.est-drop.is-drag { border-color: var(--accent); background: rgba(232,160,32,0.12); }
.est-drop strong { display: block; margin-bottom: 0.35rem; color: var(--dark); }
.est-drop small { color: var(--muted); }
.est-files {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.est-file {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.est-file img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-soft);
}
.est-file .meta { flex: 1; min-width: 0; }
.est-file .meta strong {
  display: block;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.est-file .meta small { color: var(--muted); }

.est-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.est-nav .btn { min-height: 48px; flex: 1 1 140px; }
.est-link-secondary {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.est-link-secondary:hover { color: var(--accent-hover); }

.est-result-total {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin: 0.35rem 0 0.5rem;
}
.est-breakdown {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}
.est-bd-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.est-bd-row strong { white-space: nowrap; }
.est-unresolved {
  margin-top: 1rem;
  padding: 0.85rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.est-unresolved ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.est-details[open] summary { margin-bottom: 0.75rem; }
.est-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  list-style: none;
}
.est-details summary::-webkit-details-marker { display: none; }

.est-summary {
  position: sticky;
  top: 5.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}
.est-summary h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.est-summary dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.est-summary dt { color: var(--muted); }
.est-summary dd { margin: 0 0 0.35rem; font-weight: 700; color: var(--dark); }
.est-summary .pre {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-weight: 800;
  font-size: 1.15rem;
}
.est-mobile-sum {
  display: none;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(232,160,32,0.14);
  font-weight: 700;
}
@media (max-width: 979px) {
  .est-summary { display: none; }
  .est-mobile-sum { display: block; }
}

.est-error {
  color: #a11919;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.est-ok {
  color: #1a6b2d;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.est-room-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.est-room-presets button {
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.est-room-presets button:hover { border-color: var(--accent); }
