* {
  box-sizing: border-box;
}
:root {
  font-family: Inter, Arial, sans-serif;
  color: #18241e;
  background: #f4f6f3;
  font-synthesis: none;
}
body {
  margin: 0;
}
header {
  max-width: 1040px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
}
header img {
  width: 102px;
  height: 70px;
  object-fit: contain;
}
.badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid #9daaa0;
  border-radius: 30px;
  padding: 8px 12px;
}
.layout {
  max-width: 1040px;
  margin: 20px auto 60px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 44px;
  padding: 0 24px;
}
.hero {
  padding-top: 35px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #526454;
}
h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin: 18px 0 25px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
}
.muted,
small {
  color: #526454;
  line-height: 1.6;
}
.price {
  margin: 28px 0;
  border-top: 1px solid #d5ded5;
  padding-top: 22px;
}
.price strong {
  display: block;
  font-size: 34px;
  margin: 6px 0;
}
.card {
  background: white;
  border: 1px solid #dfe5dc;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 15px 45px #12241306;
}
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  list-style: none;
  padding: 0;
}
.steps li {
  height: 4px;
  background: #e1e7df;
  border-radius: 4px;
  flex: 1;
}
.steps li.active {
  background: #284b35;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 18px 0 7px;
}
input,
select,
button {
  font: inherit;
}
input,
select {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid #bcc9bd;
  border-radius: 9px;
  background: #fff;
  color: #17251c;
  min-height: 46px;
}
button,
.button {
  display: inline-block;
  background: #24432e;
  color: white;
  border: 1px solid #24432e;
  border-radius: 10px;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  min-height: 46px;
}
button:hover,
.button:hover {
  background: #365f42;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: white;
  color: #24432e;
}
.secondary:hover {
  background: #edf1eb;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.actions > * {
  flex: 1;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
a {
  color: #24432e;
}
.notice {
  padding: 13px 16px;
  border-radius: 10px;
  background: #eef2ea;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.6;
}
.error {
  background: #fbeae5;
  color: #882b21;
}
.success {
  background: #e3f2e6;
  color: #24432e;
}
[hidden] {
  display: none !important;
}
#qr {
  width: 240px;
  max-width: 100%;
  margin: 15px auto;
  display: block;
}
.payment-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.payment-choice button {
  background: #fff;
  color: #24432e;
  padding: 20px 10px;
}
.payment-choice button.selected {
  border: 2px solid #24432e;
  background: #eef4eb;
}
.payment-choice small {
  display: block;
  margin-top: 8px;
}
.summary {
  padding: 16px;
  background: #f4f6f3;
  border-radius: 12px;
  line-height: 1.8;
  margin: 20px 0;
  white-space: pre-line;
}
.admin {
  max-width: 1380px;
  margin: 20px auto;
  padding: 0 24px 70px;
}
.toolbar,
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.filters > * {
  flex: 1;
  min-width: 140px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.metric {
  padding: 20px;
  background: white;
  border: 1px solid #dfe5dc;
  border-radius: 12px;
}
.metric strong {
  display: block;
  font-size: 28px;
  margin: 10px 0;
}
.tablewrap {
  overflow: auto;
  background: white;
  border: 1px solid #dfe5dc;
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 13px;
  border-bottom: 1px solid #edf1eb;
  white-space: nowrap;
}
th {
  background: #edf1eb;
}
details {
  margin: 18px 0;
  background: white;
  border: 1px solid #dfe5dc;
  border-radius: 12px;
  padding: 18px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
.inline {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  align-items: center;
}
.inline input {
  max-width: 300px;
}
.groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.groups button {
  font-size: 12px;
}
.login {
  max-width: 420px;
  margin: 40px auto;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.footer {
  max-width: 1040px;
  margin: 0 auto 30px;
  padding: 0 24px;
  font-size: 12px;
  color: #526454;
}
:focus-visible {
  outline: 3px solid #58886c;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
  }
  .hero {
    padding-top: 10px;
  }
  h1 {
    font-size: 48px;
  }
  .hero p {
    margin: 10px 0;
  }
  .price {
    margin: 15px 0;
  }
  .price strong {
    font-size: 28px;
  }
  .card {
    padding: 22px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .admin {
    padding: 0 12px;
  }
  .steps {
    margin-bottom: 22px;
  }
  header {
    padding: 12px 24px;
  }
  .hero .muted {
    max-width: 450px;
  }
}

.installment-head,.installment-row { display:grid; grid-template-columns: .7fr 1fr 1.2fr; gap:8px; align-items:center; font-variant-numeric:tabular-nums; }
.installment-head {padding:8px 12px; font-size:.8rem; color:#526554;}
.installment-head > :not(:first-child),.installment-row > :not(:first-child) {text-align:right;white-space:nowrap;}
.installment-row {margin:0 0 5px; padding:10px 12px; border:1px solid #dbe3dc; border-radius:10px; cursor:pointer; font-size:.9rem; font-weight:500;}
.installment-row:has(input:checked) {background:#edf3e9; border-color:#244830;}
.installment-count {display:flex; align-items:center; gap:6px; white-space:nowrap;}
.installment-count input {width:16px; height:16px; margin:0; padding:0; accent-color:#244830;}
#changeMethod {width:100%; margin-top:12px;}
