/* @font-face GOST fonts commented out - using site default
@font-face {
  font-family: "GOST_AU";
  src: url("/public/home2/fonts/gost/GOST_AU.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "GOST_BU";
  src: url("/public/home2/fonts/gost/GOST_BU.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "GOST";
  src: url("/public/home2/fonts/gost/GOST.ttf") format("truetype");
  font-display: swap;
}
*/

.kzhs-calc {
  --ink: #000000;
  --line: #000000;
  --muted: #4a4a4a;
  --soft: #6b6b6b;
  --grid-axis: #1a4d80;
  --panel-pad: 1rem;
  /* font-family: "GOST_AU", "GOST", "Courier New", monospace; */
  font-size: 15px;
  color: var(--ink);
}

.kzhs-calc .panel {
  padding: var(--panel-pad);
  margin-bottom: 1rem;
}

.kzhs-calc .panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}

.kzhs-calc .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: flex-end;
  margin: 0;
  padding: 0;
}

.kzhs-calc label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.kzhs-calc input, .kzhs-calc select {
  /* font-family: "GOST_AU", "GOST", monospace; */
  font-size: 1rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  min-width: 5.5rem;
}

.kzhs-calc input:focus, .kzhs-calc select:focus {
  outline: none;
  border-color: var(--grid-axis);
}

.kzhs-calc .err {
  color: var(--ink);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background: #fffbe6;
}

.kzhs-calc .views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #ffffff;
}

@media (max-width: 900px) {
  .kzhs-calc .views { grid-template-columns: 1fr; }
}

.kzhs-calc .sheet {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #ffffff;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.kzhs-calc .sheet-title {
  /* font-family: "GOST_BU", "GOST_AU", monospace; */
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.6rem;
}

.kzhs-calc .sheet-body {
  padding: 0.25rem 0.4rem 0.4rem;
  flex: 1;
}

.kzhs-calc .sheet-body svg {
  display: block;
  width: 100%;
  height: auto;
}

.kzhs-calc .sheet-full { grid-column: 1 / -1; }

.kzhs-calc #kzhs-view3d {
  width: 100%;
  height: min(440px, 56vw);
  min-height: 280px;
  background: #ffffff;
  position: relative;
}
.kzhs-calc #kzhs-view3d canvas { display: block; }

.kzhs-calc .spec strong, .kzhs-calc .mount strong {
  /* font-family: "GOST_BU", "GOST_AU", monospace; */
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: normal;
}

.kzhs-calc .spec table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.kzhs-calc .spec th, .kzhs-calc .spec td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
  text-align: left;
}

.kzhs-calc .spec th {
  /* font-family: "GOST_BU", "GOST_AU", monospace; */
  font-weight: normal;
  background: #f7f7f7;
}

.kzhs-calc .spec td:nth-child(2),
.kzhs-calc .spec td:nth-child(3),
.kzhs-calc .spec td:nth-child(4),
.kzhs-calc .spec th:nth-child(2),
.kzhs-calc .spec th:nth-child(3),
.kzhs-calc .spec th:nth-child(4) { text-align: right; white-space: nowrap; }

.kzhs-calc .mount {
  margin-top: 1rem;
}


/* Yellow highlight for "Введите параметры здания" h3 */
.kzhs-calc .kzhs-hint {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(to bottom, #fff176 0%, #ffee58 100%);
  border-radius: 3px;
}

/* Spinner for parameter update (inline with params row) */
.kzhs-spinner-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #555;
  align-self: center;
  margin-left: 0.5rem;
}
.kzhs-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid #e0e0e0;
  border-top-color: #1a4d80;
  border-radius: 50%;
  animation: kzhs-spin 0.7s linear infinite;
}
@keyframes kzhs-spin {
  to { transform: rotate(360deg); }
}
