.page { padding: 34px 0 56px; }

.pageHead { text-align: center; margin-bottom: 18px; }
.pageTitle { margin: 0 0 8px; font-size: 34px; letter-spacing: -0.02em; }
.pageSub { margin: 0 auto 14px; max-width: 760px; color: var(--muted); font-size: 14px; }

/* Tabs */
.tabs{
  display:flex;
  justify-content:center;
  gap:10px;
  margin: 0 auto;
  padding: 6px;
  width: fit-content;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.tab{
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color:#0f172a;
  transition:.2s;
}
.tab:hover{
  background: rgba(37, 99, 235, 0.08);
}
.tab.isActive{
  background: #fff;
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}
.tabUnit{ opacity:.75; font-weight:800; }

/* Grid/cards like customs */
.calcGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }

.card {
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 18px;
}
.cardTitle { margin: 0 0 14px; font-size: 16px; }

.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formGrid.oneCol { grid-template-columns: 1fr; }

.field { display: block; width: 100%; }
.field span { display: block; font-size: 12px; color: #475569; margin-bottom: 6px; font-weight: 700; }

.inputWithSuffix{
  display:grid;
  grid-template-columns: 1fr 86px;
  gap:10px;
  align-items:center;
}
.field input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  outline: none;
  font-size: 14px;
  background: white;
}
.field input:focus{
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}
.suffix{
  text-align:center;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
  color:#64748b;
  font-weight:800;
  font-size: 13px;
  white-space: nowrap;
}

.actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hint { margin: 12px 0 0; font-size: 12px; color: #94a3b8; }

/* Result block */
.resultHero{
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.bigRow{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:10px;
  padding: 8px 0;
}
.bigLabel{
  font-size: 16px;
  font-weight: 800;
  color:#0f172a;
}
.bigVal{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.bigVal.blue{ color: var(--blue); }

.formulaBox{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:#fff;
}
.formulaLabel{ font-weight:800; font-size: 12px; color:#475569; }
.formulaText{ display:block; margin-top: 6px; font-size: 13px; color:#334155; }

@media (max-width: 980px) {
  .calcGrid { grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .tabs{ width:100%; justify-content:space-between; }
  .tab{ flex:1; padding:10px 10px; }
  .inputWithSuffix{ grid-template-columns: 1fr 78px; }
}
.autoPriceNote{
  margin: 6px 0 0;
  font-size: 12px;
  color: #94a3b8;
}
