:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #223D4A;
  background: #F0E7D8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.top {
  height: 68px;
  background: #223D4A;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100% - 1040px) / 2));
  font-size: 13px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.brand img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.layout {
  max-width: 1040px;
  margin: 0 auto;
  padding: 38px 20px 20px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.intro {
  padding: 30px 8px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: #223D4A;
}

.intro h1 {
  font-size: 42px;
  line-height: 1.08;
  margin: 16px 0;
  color: #223D4A;
}

.intro p:not(.eyebrow) {
  line-height: 1.7;
  color: #223D4A;
}

.trust {
  margin-top: 28px;
  font-size: 13px;
  color: #223D4A;
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.trust span {
  color: #17865c;
  font-weight: 900;
}

.panel {
  background: #FFFFF3;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 38px #223D4A0d;
}

.panel h2 {
  font-size: 17px;
  margin: 0 0 18px;
  color: #223D4A;
}

.panel h2:not(:first-child) {
  margin-top: 27px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 12px 0 7px;
  color: #223D4A;
}

input:not([type=radio]), select, textarea {
  display: block;
  width: 100%;
  padding: 13px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #FFFFF3;
  color: #223D4A;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input:focus, select:focus, textarea:focus {
  border-color: #223D4A;
  box-shadow: 0 0 0 3px #223D4A1a;
}

.summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  color: #223D4A;
  font-size: 13px;
}

.summary strong {
  color: #223D4A;
  text-align: right;
}

.total {
  padding-top: 15px;
  border-top: 1px solid #e7edf4;
  font-size: 15px;
}

.total strong {
  font-size: 21px;
  color: #223D4A;
}

.method {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #dce4ed;
  border-radius: 9px;
  padding: 13px;
  margin: 10px 0;
  cursor: pointer;
  background: #FFFFF3;
}

.method input {
  margin-top: 3px;
  accent-color: #223D4A;
}

.method span {
  display: grid;
  gap: 4px;
}

.method small {
  font-size: 12px;
  line-height: 1.45;
  color: #223D4A;
  font-weight: 400;
}

.notice {
  font-size: 11px;
  line-height: 1.6;
  color: #223D4A;
  margin: 17px 0;
}

button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: #223D4A;
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 15px;
  cursor: pointer;
}

button:disabled {
  opacity: .6;
  cursor: wait;
}

.secondary {
  background: #FFFFF3;
  color: #223D4A;
  border: 1px solid #d3deea;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.secondary:hover {
  background: #f7f9fc;
}

#message {
  font-size: 13px;
  line-height: 1.5;
  color: #a12828;
}

footer {
  grid-column: 1/-1;
  text-align: center;
  color: #223D4A;
  font-size: 12px;
  padding: 8px;
}

footer a {
  color: #223D4A;
}

@media(max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 20px;
  }
  .intro {
    padding: 15px 3px;
  }
  .panel {
    padding: 22px 18px;
  }
  .top {
    padding: 0 18px;
  }
  .trust {
    margin-top: 16px;
  }
}

.product-card {
  border: 1px solid #dce4ed;
  border-radius: 10px;
  padding: 15px;
  background: #FFFFF3;
  display: grid;
  gap: 8px;
}

.product-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #223D4A;
}

#product-name {
  font-size: 15px;
  color: #223D4A;
}

details {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #e7edf4;
}

summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #223D4A;
  outline: none;
  user-select: none;
}

details p {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
  color: #223D4A;
  white-space: pre-line;
}

.product-error {
  padding: 12px;
  border: 1px solid #f0c8c4;
  border-radius: 8px;
  background: #fff4f3;
  color: #9b2923;
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0;
}

.consent-block {
  margin: 20px 0 16px;
  padding: 14px;
  border: 1px solid #dce4ed;
  border-radius: 9px;
  background: #FFFFF3;
}

.consent-block .notice {
  margin: 10px 0 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
  color: #223D4A;
}

.consent-label a {
  color: #223D4A;
  text-decoration: underline;
}

.consent-label span {
  display: block;
  min-width: 0;
  flex: 1;
  overflow-wrap: break-word;
}

.consent-label input[type="checkbox"] {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  margin: 3px 0 0;
  border: 1px solid #9aa9ba;
  border-radius: 3px;
  box-shadow: none;
  accent-color: #223D4A;
}