* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #eef2f5;
  color: #15202b;
}
.page { max-width: 1240px; margin: 0 auto; padding: 24px; }
.hero {
  background: linear-gradient(135deg, #f8f8f8, #eef2f5);
  color: white;
  border-radius: 24px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  box-shadow: 0 12px 34px rgba(0,0,0,.15);
}
.eyebrow { margin: 0 0 8px; color: #96d7ff; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); }
.lead { max-width: 760px; color: #dbe7ef; font-size: 18px; line-height: 1.45; }
.badge { background: #ffd84d; color: #111; padding: 10px 14px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.configurator { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr); gap: 22px; align-items: start; }
.panel {
  background: white;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.preview-panel { position: sticky; top: 16px; }
h2 { margin: 4px 0 16px; font-size: 21px; }
h3 { margin: 0 0 12px; }
label {
  display: block;
  margin-bottom: 14px;
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #c8d2da;
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  background: #fbfdff;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(31,111,235,.18);
  border-color: #1f6feb;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #1f6feb;
  color: white;
  padding: 16px 18px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.button:hover { background: #1759c7; }
.small, .hint { color: #687680; font-size: 13px; line-height: 1.4; }
.hint {
  background: #fff8db;
  border: 1px solid #f0dd8b;
  border-radius: 12px;
  padding: 10px 12px;
}
#preview {
  width: 100%;
  height: auto;
  border: 1px solid #d8e0e6;
  border-radius: 18px;
  background: linear-gradient(#f8fbfd, #eef5f9);
}
.result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.result div {
  background: #f3f7fa;
  border-radius: 14px;
  padding: 14px;
}
.result span { display: block; color: #687680; font-size: 14px; margin-bottom: 4px; }
.result strong { font-size: 24px; }
.summary {
  margin-top: 15px;
  background: #111820;
  color: white;
  padding: 16px;
  border-radius: 16px;
  line-height: 1.55;
}
.calcbox {
  margin-top: 15px;
  background: #f6f8fa;
  border: 1px solid #d8e0e6;
  padding: 16px;
  border-radius: 16px;
  line-height: 1.55;
}
.calc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}
.calc-table th, .calc-table td {
  border-bottom: 1px solid #dde5ec;
  padding: 8px 6px;
  text-align: left;
}
.calc-table th { color: #52616d; font-size: 13px; }
@media (max-width: 900px) {
  .configurator { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .hero { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
}
