:root {
  --color-bg: #faf7f2;
  --color-text: #2b2119;
  --color-accent: #a9713c;
  --color-border: #ddd0bf;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

.site-header { padding: 1rem; border-bottom: 1px solid var(--color-border); }

.main-nav a {
  margin-right: 1rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

main { max-width: 960px; margin: 0 auto; padding: 1rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.gallery-item img { width: 100%; height: auto; border-radius: 6px; }

.like-button {
  background: none;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { padding: 0.75rem 1rem; margin: 0.5rem 1rem; border-radius: 4px; }
.flash-success { background: #dff5df; }
.flash-error { background: #fbdede; }

.order-form textarea,
.order-form input[type="text"],
.order-form input[type="tel"] {
  width: 100%;
  max-width: 400px;
  display: block;
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .main-nav a { display: inline-block; margin-bottom: 0.5rem; }
  main { padding: 0.5rem; }
}

/* админка */
body.admin { font-family: system-ui, sans-serif; padding: 1rem; }
.admin-nav a { margin-right: 1rem; }
.login-form label { display: block; margin-bottom: 0.75rem; }

.compare-slider { position: relative; max-width: 500px; }
.compare-before, .compare-after { width: 100%; }
.compare-after { position: absolute; top: 0; left: 0; overflow: hidden; }
.compare-after img, .compare-before img { width: 100%; display: block; }
.compare-range { width: 100%; margin-top: 0.5rem; }
