:root {
  --bg: #f8f7f3;
  --surface: #ffffff;
  --text: #1f2a1f;
  --muted: #526052;
  --brand: #d7392f;
  --brand-dark: #b42b23;
  --leaf: #2f7a45;
  --line: #dce3d8;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(18, 26, 18, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

a {
  color: var(--leaf);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 247, 243, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--text);
}

.nav a.current {
  color: var(--brand);
  font-weight: 600;
}

.hero {
  padding: 56px 0 34px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  margin-bottom: 10px;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.button--primary {
  background: var(--brand);
  color: #fff;
}

.button--primary:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.button--ghost {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}

.section {
  padding: 34px 0;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

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

.card img.icon {
  width: 42px;
  height: 42px;
}

.meta {
  color: var(--muted);
  font-size: 0.93rem;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.93rem;
}

.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  display: block;
}

.gallery figcaption {
  padding: 10px;
  font-size: 0.9rem;
}

.article-list {
  display: grid;
  gap: 16px;
}

.article-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.form-row {
  margin-bottom: 14px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfcabf;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.inline-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
}

.status.ok {
  background: #e7f8ed;
  color: #1d6a33;
  display: block;
}

.status.err {
  background: #fdecec;
  color: #8b1f1f;
  display: block;
}

table.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }
}
