:root {
  --paper: #fffdf9;
  --text: #332f2a;
  --muted: #857d72;
  --line: #e8ddcf;
  --shadow: 0 22px 44px rgba(93, 72, 58, 0.10);
  --radius: 26px;
  --accent: #b5797f;
  --deep: #3f4a3a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.1;
}
p { line-height: 1.65; margin: 0 0 10px; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn:active { transform: scale(.98); }
.btn.primary {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 12px 26px rgba(63,74,58,.22);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost {
  background: rgba(255,255,255,.65);
  color: var(--deep);
  border: 1px solid var(--line);
}
.btn.small { padding: 10px 14px; font-size: 13px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.section-head { margin: 30px 0 12px; }
.section-head h3 { font-size: clamp(22px, 4vw, 28px); margin: 0 0 4px; }
.section-head p { color: var(--muted); margin: 0; }

.inline-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.inline-form input, .modal-card input, .modal-card textarea {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}
.modal-card textarea { resize: vertical; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(40, 35, 32, .6);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 60;
}
.modal.hidden { display: none; }
.modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.modal-card h2 { font-size: 26px; }
.modal-card form { display: grid; gap: 10px; margin-top: 14px; }
.link-btn {
  background: none; border: 0; color: var(--muted);
  font-size: 13px; cursor: pointer; margin-top: 12px;
  font-family: inherit;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: var(--deep);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  z-index: 70;
  max-width: 90vw;
  text-align: center;
}
.toast.hidden { display: none; }

.faq-list { display: grid; gap: 8px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px;
  font-size: 15px;
  font-weight: 650;
  color: var(--deep);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: inherit;
}
.faq-item .answer {
  display: none;
  padding: 0 16px 16px;
  white-space: pre-line;
  color: #554f46;
  font-size: 14px;
  line-height: 1.65;
}
.faq-item.open .answer { display: block; }
.faq-item.open button .chev { transform: rotate(180deg); }
.chev { transition: transform .2s ease; }

.muted { color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); }
.strong { font-weight: 700; }
.skeleton { color: var(--muted); padding: 16px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, .05);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  opacity: .9;
  transition: background .15s ease, opacity .15s ease;
}
.back:hover { opacity: 1; background: rgba(0, 0, 0, .08); }

/* -- общие сетки -- */
.grid-3 { display: grid; gap: 14px; margin: 16px 0; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.two-col { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; } }

.promo-icon { font-size: 26px; margin-bottom: 6px; }
