:root {
  --bg: #f4efe6;
  --paper: rgba(255, 252, 246, 0.92);
  --paper-solid: #fffaf3;
  --ink: #1f1916;
  --muted: #6f6359;
  --line: #e4d5c3;
  --accent: #b7532e;
  --accent-deep: #7d3218;
  --success: #2c7a52;
  --warn: #b16418;
  --danger: #9d2b2b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(183, 83, 46, 0.14), transparent 22%),
    radial-gradient(circle at right bottom, rgba(125, 50, 24, 0.08), transparent 28%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}

a { color: var(--accent-deep); }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.hero,
.panel,
.card,
.star-card {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(53, 33, 20, 0.08);
}

.hero,
.panel {
  border-radius: 28px;
  padding: 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.hero-home {
  overflow: hidden;
}

.hero-copy {
  position: relative;
}

.hero-panel,
.card,
.star-card {
  border-radius: 22px;
}

.hero-panel {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(248, 236, 223, 0.96));
  border: 1px solid var(--line);
}

.eyebrow,
.mini-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--accent-deep);
  background: rgba(183, 83, 46, 0.12);
  padding: 7px 12px;
  border-radius: 999px;
}

h1, h2, h3 {
  margin: 0 0 14px;
  line-height: 1.08;
}

h1 { font-size: clamp(38px, 7vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 24px; }

p {
  margin: 0 0 14px;
  line-height: 1.58;
}

.lead {
  font-size: 20px;
  max-width: 780px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-point {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(183, 83, 46, 0.08);
  border: 1px solid rgba(183, 83, 46, 0.18);
  color: var(--accent-deep);
}

.hero-offer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.order-hero {
  margin-bottom: 24px;
}

.hero-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid var(--accent);
  color: #fff8f1;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  cursor: pointer;
  font: inherit;
}

.button-secondary {
  color: var(--accent-deep);
  background: transparent;
}

.section {
  margin-top: 24px;
}

.section-contrast .card {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(248, 240, 231, 0.92));
}

.section-head {
  margin-bottom: 16px;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.star-card {
  padding: 24px;
  background: rgba(255, 252, 246, 0.92);
}

.value-card,
.step-card,
.pricing-featured {
  position: relative;
}

.example-card,
.trust-card {
  position: relative;
}

.example-card::before,
.trust-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, rgba(183, 83, 46, 0.85), rgba(125, 50, 24, 0.45));
}

.pricing .price {
  font-size: 38px;
  color: var(--accent-deep);
  margin: 8px 0;
}

.text-link {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.step-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff8f1;
  font-weight: 700;
}

.star-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps {
  margin: 16px 0 0;
  padding-left: 20px;
}

.steps li + li {
  margin-top: 10px;
}

.topbar {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.topbar-wrap {
  flex-wrap: wrap;
}

.backlink {
  text-decoration: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-row-hero {
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.86);
  color: var(--accent-deep);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--accent-deep);
  text-decoration: none;
}

.breadcrumbs span,
.breadcrumbs a::after {
  white-space: nowrap;
}

.breadcrumbs a::after {
  content: "/";
  margin-left: 10px;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.panel-form {
  max-width: 980px;
  margin: 0 auto;
}

.field span,
legend {
  font-weight: 700;
}

input[type="text"],
select,
textarea {
  width: 100%;
  border: 1px solid #d3bfaa;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: var(--paper-solid);
  color: var(--ink);
}

textarea {
  resize: vertical;
  min-height: 180px;
}

.format-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  margin: 8px 0 18px;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 12px;
  background: var(--paper-solid);
}

.radio-card-strong {
  min-height: 88px;
  align-items: flex-start;
  padding: 18px;
}

.radio-card span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-card-strong small {
  color: var(--muted);
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
}

.error {
  color: var(--danger);
}

.error.block {
  display: block;
  margin-top: 8px;
}

.muted {
  color: var(--muted);
}

.status-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.status-badge {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
}

.status-queued,
.status-processing {
  color: var(--warn);
  background: rgba(177, 100, 24, 0.12);
}

.status-done {
  color: var(--success);
  background: rgba(44, 122, 82, 0.12);
}

.status-error {
  color: var(--danger);
  background: rgba(157, 43, 43, 0.12);
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.plain-list li + li {
  margin-top: 8px;
}

.plain-list-tight li + li {
  margin-top: 10px;
}

.result-box {
  margin-top: 18px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.success {
  background: rgba(44, 122, 82, 0.08);
}

.waiting {
  background: rgba(177, 100, 24, 0.08);
}

.error-box {
  background: rgba(157, 43, 43, 0.08);
}

.generated-copy {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-note {
  color: var(--muted);
}

.compact-note {
  text-align: center;
  padding-bottom: 10px;
}

.compact-note p {
  margin-bottom: 0;
}

.seo-links {
  margin-top: 28px;
}

.legal-wrap {
  max-width: 920px;
}

.legal-panel h2 {
  margin-top: 28px;
  font-size: 26px;
}

.legal-panel ul {
  margin: 0 0 14px 20px;
}

.legal-panel li + li {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards.two,
  .cards.three,
  .star-grid,
  .field-grid,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .status-hero {
    flex-direction: column;
  }

  .hero,
  .panel {
    padding: 22px;
    border-radius: 22px;
  }

  .hero-points {
    flex-direction: column;
  }
}
