/* Общие стили всех страниц. Цвета заданы переменными, чтобы менять их в одном месте. */
:root {
  --bg: #f7f6f3;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #5b6168;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --line: #e3e1dc;
  --radius: 10px;
  --wrap: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent-dark); }

.hero { padding-top: 56px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 14px; max-width: 760px; }
.hero p { color: var(--muted); font-size: 19px; max-width: 640px; margin: 0 0 24px; }

.btn { display: inline-block; margin: 0 8px 10px 0; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--accent-dark); border: 1px solid var(--accent); }
.btn-ghost:hover { background: #fff1ea; }

section { padding: 36px 0; }
section h2 { font-size: clamp(22px, 3.5vw, 30px); margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 13px; background: #fff1ea; color: var(--accent-dark); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }

.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); margin: 32px 0; max-width: 780px; }
.article h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin-top: 0; }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.muted { color: var(--muted); }

.form-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); max-width: 640px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #c9c6bf; border-radius: 8px; background: #fff; color: var(--text); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; font-weight: 600; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: #b91c1c; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; margin-top: 40px; }
.site-footer a { color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
