:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --ink: #1d2126;
  --muted: #5d6670;
  --line: #e2ddd5;
  --accent: #d9661f;
  --accent-ink: #ffffff;
  --accent-hover: #b9531a;
  --dark: #1d2126;
  --ok: #1f7a4a;
  --err: #b3261e;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--dark); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .2px; }
.brand:hover { color: #fff; }
.brand img { display: block; height: 44px; width: auto; }
.header-phone { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .9; }
.header-phone:hover { color: #fff; opacity: 1; }

main { flex: 1; }

/* Contact page */
.contact-wrap {
  max-width: 680px;
  padding: 64px 20px 80px;
}

/* Form card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(29, 33, 38, .06);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .9rem; }
.req { color: var(--accent); }
input, select, textarea {
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #cfc8bd;
  border-radius: 8px;
  padding: 11px 12px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 102, 31, .18); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; accent-color: var(--accent); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  padding: 13px 22px;
  cursor: pointer;
  width: 100%;
  transition: background .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .65; cursor: progress; }

.status { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: .95rem; display: none; }
.status.show { display: block; }
.status.ok { background: #e6f4ec; color: var(--ok); }
.status.err { background: #fbe9e7; color: var(--err); }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .card { max-width: 820px; margin: 0 auto; padding: 40px; }
.legal h1 { margin-top: 0; font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2em; }
.legal .updated { color: var(--muted); margin-top: -8px; }
.legal li { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--dark); color: #b9bec4; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: #e6e8ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 860px) {
  .contact-wrap { padding: 40px 20px 56px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .card, .legal .card { padding: 22px; }
  .header-phone { display: none; }
}
