.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: #2563eb;
  color:#fff;
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
}
.tabUnit{ opacity:.85; font-weight:800; }

/* ================= Grid / Cards ================= */
.calcGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:28px;
  margin-top:24px;
}
.card{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
  padding:22px;
}
.cardTitle{ margin:0 0 14px; font-size:16px; }

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

.field{ 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,
.field select{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  font-size:14px;
}
.field input:focus,
.field select:focus{
  border-color:rgba(37,99,235,.45);
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}
.suffix{
  text-align:center;
  padding:12px 10px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(15,23,42,.04);
  color:#64748b;
  font-weight:800;
  font-size:13px;
}

/* ================= Buttons ================= */
.actions{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.btn{ border-radius:999px; padding:10px 18px; font-weight:700; }
.btn--primary{ box-shadow:0 10px 24px rgba(37,99,235,.22); }
.btn--ghost{ border-width:1px; }
.hint{ margin-top:12px; font-size:12px; color:#94a3b8; }

/* ================= RESULT ================= */

/* 🔵 Головна плашка (міняється JS) */
.badge{
  background:#2563eb;
  color:#fff;
  border-radius:18px;
  padding:18px 16px;
  text-align:center;
  margin:6px 0 16px;
  box-shadow:0 14px 28px rgba(37,99,235,.28);
}
.badgeNum{
  font-size:32px;
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:1.1;
}
.badgeSub{
  margin-top:6px;
  font-size:15px;
  opacity:.92;
  font-weight:700;
}

/* Рядки результату */
.rows{ display:flex; flex-direction:column; }
.row{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  padding:10px 2px;
  border-bottom:1px solid rgba(15,23,42,.08);
}
.row:last-child{ border-bottom:none; }
.row .left{
  font-size:14px;
  font-weight:700;
  color:#0f172a;
}
.row .right{
  font-size:14px;
  font-weight:900;
  color:#0f172a;
  text-align:right;
  white-space:nowrap;
}

/* Акценти */
#vatOut, #totalOut{ color:#2563eb; }
#rateOut{ color:#334155; font-weight:800; }

/* Нижня кнопка */
.actions.bottom{ justify-content:center; margin-top:14px; }
.actions.bottom .btn{ min-width:180px; }

/* ================= Responsive ================= */
@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; }
  .inputWithSuffix{ grid-template-columns:1fr 78px; }
}
