:root {
  --bg: #f8eed8;
  --text: #1f3749;
  --muted: #4f6270;
  --accent: #e6af3e;
  --accent-text: #1f3749;
  --link: #2f5b6c;
  --card: #fffaf0;
  --line: #e6dcc4;
  --hero: #1f3749;
  --hero-text: #ffffff;
  --hero-muted: #e9dfc8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15242f;
    --text: #f3ead6;
    --muted: #b9b3a3;
    --accent: #f0bd52;
    --accent-text: #1f3749;
    --link: #f0bd52;
    --card: #1d303d;
    --line: #2c4352;
    --hero: #102029;
    --hero-text: #ffffff;
    --hero-muted: #d9cfb8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.hero { background: var(--hero); color: var(--hero-text); padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.logo { width: min(220px, 60vw); height: auto; justify-self: center; }
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1fr 300px; }
  .hero-grid .logo { order: 2; width: 300px; }
}
.brand { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--hero-muted); margin: 0 0 24px; max-width: 36em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  border: 2px solid var(--accent); border-radius: 10px; padding: 12px 20px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button.ghost { background: transparent; color: var(--accent); }
.button:disabled { opacity: 0.6; cursor: wait; }

section { padding: 40px 16px; }
h2 { font-size: 1.6rem; margin: 0 0 16px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0 0 8px; color: var(--muted); }
.card { border-top: 4px solid var(--accent); }
.card .price { color: var(--text); font-weight: 700; margin: 0; }

.about p { max-width: 40em; }
.area { color: var(--muted); }

.contact { list-style: none; padding: 0; margin: 0 0 24px; }
.contact a { color: var(--link); }

.form { display: grid; gap: 14px; max-width: 520px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--text); width: 100%;
}
.trap { position: absolute; left: -9999px; }
.form-status { min-height: 1.6em; margin: 0; color: var(--muted); }

.footer { padding: 24px 16px 40px; color: var(--muted); border-top: 1px solid var(--line); }
