:root {
  --page-bg: #ffffff;
  --text-primary: #1a3652;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --line: #e5e7eb;
  --muted-bg: #f8fafc;
  --input-border: #d1d5db;
  --input-bg: #ffffff;
  --button-bg: #1a3652;
  --button-hover: #15304a;
  --button-text: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.container {
  width: min(100%, 56rem);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo {
  width: 2.85rem;
  height: 2.85rem;
  display: block;
  flex: 0 0 auto;
}

.brand {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.page-content {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-title {
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-size: 1.875rem;
  line-height: 1.2;
}

.section-title.large-gap {
  margin-bottom: 2rem;
}

.section-subtitle {
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.section-copy,
.instruction-text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.72;
}

.section-copy {
  margin-bottom: 0.75rem;
}

.section-note,
.price-meta,
.guarantee-note,
.checkout-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.payment-note {
  margin-bottom: 1rem;
  text-align: center;
}

.section-intro {
  margin-bottom: 3rem;
}

.example-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.example-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.example-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.example-link:hover {
  color: var(--text-primary);
}

.example-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.order-form {
  display: block;
}

.form-card {
  margin-bottom: 1.5rem;
  padding: 2rem;
  background: var(--muted-bg);
  border: 1px solid var(--line);
  border-radius: 0.375rem;
}

.field-stack {
  margin-bottom: 1.25rem;
}

.field-stack:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.field-help {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.required {
  color: var(--text-primary);
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  border-radius: 0.125rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

textarea {
  resize: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--text-primary);
}

.checkout-section {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: #ffffff;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.price-label {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.price-meta {
  margin: 0.25rem 0 0;
}

.price-value {
  margin: 0;
  color: var(--text-primary);
  font-size: 2rem;
}

.primary-button {
  width: 100%;
  padding: 0.95rem 1.5rem;
  border: 0;
  border-radius: 0.125rem;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.primary-button:hover {
  background: var(--button-hover);
}

.guarantee-box {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--muted-bg);
  border: 1px solid var(--line);
  border-radius: 0.125rem;
}

.guarantee-title,
.guarantee-item,
.checkout-note {
  margin: 0 0 0.5rem;
  color: var(--text-secondary);
}

.guarantee-item:last-of-type,
.checkout-note:last-child {
  margin-bottom: 0;
}

.guarantee-note {
  margin: 0;
}

.instructions-page {
  max-width: 48rem;
}

.legal-page {
  max-width: 48rem;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.125rem;
  background: #ffffff;
  color: var(--text-primary);
  text-decoration: none;
}

.legal-heading {
  margin-top: 1rem;
}

.download-button:hover {
  border-color: var(--text-primary);
}

.instruction-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.instruction-card,
.instruction-step {
  padding-top: 0.35rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.outro-card {
  margin-top: 0.75rem;
  padding-top: 2.35rem;
  border-bottom: 0;
}

.step-title {
  margin: 0 0 0.7rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.image-caption {
  margin-bottom: 1rem;
}

.instruction-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.instruction-image-grid img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.125rem;
}

.panel {
  padding: 2rem;
  background: var(--muted-bg);
  border: 1px solid var(--line);
  border-radius: 0.375rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

th {
  color: var(--text-muted);
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.error {
  margin: 0 0 1rem;
  color: #b91c1c;
}

@media (max-width: 768px) {
  .page-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .nav-row {
    gap: 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    gap: 1rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .instruction-image-grid {
    grid-template-columns: 1fr;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
