* { box-sizing: border-box; }

:root {
  --ink: #2b2118;
  --muted: #5f5248;
  --soft: #8a7461;
  --accent: #f2610c;
  --accent-dark: #d8530a;
  --line: #f3e3d3;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, #ffe6cf 0%, transparent 60%),
    radial-gradient(700px 420px at -10% 110%, #ffd9c4 0%, transparent 55%),
    #fffaf4;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page {
  width: min(1060px, 100% - 40px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-block: 20px 16px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.brand { font-weight: 700; }
.top-note { color: var(--soft); font-size: 14px; }

h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 18px 0 12px;
  max-width: 20ch;
}
.hl {
  background: linear-gradient(120deg, #ffe08a, #ffc46b);
  padding: 0 0.15em;
  border-radius: 8px;
  white-space: nowrap;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 26px;
}

.advantages {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.advantages li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(66, 40, 16, 0.08);
  display: grid;
  gap: 6px;
  align-content: start;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
.advantages strong { font-size: 16px; color: var(--ink); }
.ico { font-size: 22px; }

.signup {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px clamp(18px, 3vw, 28px);
  box-shadow: 0 14px 40px rgba(66, 40, 16, 0.12);
  max-width: 760px;
}
.signup h2 {
  margin: 0 0 4px;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}
.signup-note {
  margin: 0 0 16px;
  color: var(--soft);
  font-size: 14px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #4a3d32;
}
.opt { font-weight: 400; color: #a08c79; }

input, textarea {
  width: 100%;
  border: 1.5px solid #e8d5c2;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  background: #fffdfb;
  color: inherit;
}
input:focus-visible, textarea:focus-visible {
  outline: 3px solid #ffcf9c;
  border-color: var(--accent);
}

.lead-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0;
}
.lead-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.lead-consent a { color: var(--accent-dark); }

button {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
button:hover { background: var(--accent-dark); }
button:focus-visible {
  outline: 3px solid #ffb27a;
  outline-offset: 2px;
}

[data-pulse-lead-status] {
  margin: 10px 0 0;
  font-size: 14px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  font-size: 13px;
  border-top: 1px solid #f0e0cf;
  padding-top: 14px;
  margin-top: 26px;
}
footer a { color: var(--soft); }

/* Страница политики конфиденциальности */
.page-doc { max-width: 760px; }
.back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-dark);
}
.doc h2 { font-size: 1.15rem; margin: 22px 0 6px; }
.doc p, .doc li {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 8px;
}
.doc ul { padding-left: 20px; margin: 0 0 8px; }
.doc-date { color: var(--soft); font-size: 14px; }
.demo-note { color: var(--accent-dark); font-size: 13px; }

@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .top-note { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  h1, .lead, .signup { animation: rise 0.45s ease both; }
  .advantages li { animation: rise 0.45s ease both; }
  .advantages li:nth-child(2) { animation-delay: 0.06s; }
  .advantages li:nth-child(3) { animation-delay: 0.12s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}
