/* Демо-калькулятор натяжного потолка. Светлый фон, один акцентный цвет,
   крупные кнопки, системный шрифт. Мобильная версия — от 360px. */

:root {
  --accent: #2f6fed;
  --accent-dark: #1f4fb0;
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1c2230;
  --muted: #6b7280;
  --border: #e4e7ec;
  --danger: #d1453b;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.demo-banner {
  background: #fff4d6;
  color: #7a5b00;
  text-align: center;
  font-size: 13px;
  padding: 8px 12px;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

header.firm {
  text-align: center;
  padding: 12px 0 20px;
}

header.firm h1 {
  font-size: 22px;
  margin: 4px 0 2px;
}

header.firm .city {
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
}

.field .hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

input[type="number"],
input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  color: var(--text);
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.row-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-inline input[type="number"] {
  width: 90px;
  flex: none;
}

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

.stepper button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}

.stepper span {
  min-width: 28px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

button.btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

button.btn-primary {
  background: var(--accent);
  color: #fff;
}

button.btn-primary:active {
  background: var(--accent-dark);
}

button.btn-secondary {
  background: #eef2fb;
  color: var(--accent-dark);
  margin-top: 8px;
}

button.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  margin-top: 8px;
}

.result {
  text-align: center;
}

.result .range {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 6px 0 10px;
}

.result .lines {
  text-align: left;
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.result .lines div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}

.estimated-note {
  background: #fff4d6;
  color: #7a5b00;
  font-size: 13px;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
}

.actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-hidden {
  display: none;
}

.form-hidden.open {
  display: block;
  margin-top: 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
}

.checkbox-row input {
  margin-top: 3px;
}

.checkbox-row a {
  color: var(--accent-dark);
}

.error-text {
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
  min-height: 16px;
}

.success-box {
  text-align: center;
  padding: 20px 10px;
}

.success-box .check {
  font-size: 40px;
  margin-bottom: 8px;
}

footer.made-by {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}

/* Ловушка от ботов: реальные пользователи её не видят */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.not-found {
  max-width: 420px;
  margin: 60px auto;
  text-align: center;
  padding: 0 16px;
}

.not-found .code {
  font-size: 56px;
  margin-bottom: 8px;
}

@media (max-width: 380px) {
  .wrap {
    padding: 12px 10px 40px;
  }
  .result .range {
    font-size: 24px;
  }
}

[hidden] { display: none !important; }
