:root {
  --brand: #5e3e26;
  --brand-dark: #3a2a1c;
  --accent: #9c5a2a;
  --accent-hover: #7a4520;
  --bg-page: #faf6ef;
  --bg-card: #ffffff;
  --text-primary: #2b1d15;
  --text-muted: #6d5a4c;
  --line: #e7dccd;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1120px;
  --radius: 0.9rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 0.5em;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
}
.header-phone:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 80px 0 72px;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(156, 90, 42, 0.10), transparent 60%),
    var(--bg-page);
}
.hero-eyebrow {
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  max-width: 14ch;
}
.hero-sub {
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.hero-facts {
  list-style: none;
  display: flex;
  gap: 0;
  padding: 24px 0 0;
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-facts li {
  flex: 1 1 150px;
  min-width: 150px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.hero-facts li + li { border-left: 1px solid var(--line); }
.hero-facts strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brand);
}
.hero-facts span { color: var(--text-muted); font-size: 0.95rem; }

/* Sections */
.section { padding: 72px 0; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.3em;
}
.section-lead {
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 52ch;
}

/* Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(90, 58, 32, 0.16);
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0e6d8;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.25s ease;
}
.card:hover .card-media img { filter: brightness(0.92); }
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(94, 62, 38, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.card-body { padding: 18px 20px 20px; }
.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 0 0 6px;
}
.card-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.card-meta span { white-space: nowrap; }
.card-meta span + span::before { content: " · "; }
.card-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.card-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand);
  transition: color 0.2s ease;
}
.card:hover .card-price { color: var(--accent); }
.card-price small { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.card-stamp {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* Skeleton */
.skeleton {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.skeleton .sk-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(100deg, #efe6d8 40%, #f7f0e4 50%, #efe6d8 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton .sk-line {
  height: 16px;
  margin: 16px 20px 0;
  border-radius: 6px;
  background: #efe6d8;
}
.skeleton .sk-line.short { width: 55%; margin-bottom: 20px; }
@keyframes shimmer {
  to { background-position: -200% 0; }
}

.catalog-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.catalog-state .btn { margin-top: 12px; }

/* How we work */
.how { background: #fff; }
.how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.how-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.how-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.how-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 14px;
  background: linear-gradient(transparent, rgba(58, 42, 28, 0.82));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.step:hover { transform: translateX(4px); }
.step-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.step h3 { margin: 0 0 4px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.how-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--bg-page);
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Lead form */
.lead { background: var(--bg-page); }
.lead-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(90, 58, 32, 0.08);
}
.lead-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.field label span { color: var(--accent); }
.field input {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 90, 42, 0.18);
}
.field input[aria-invalid="true"] {
  border-color: #b3261e;
}
.field-error {
  margin: 0;
  color: #b3261e;
  font-size: 0.88rem;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-hint {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.lead-success {
  text-align: center;
  padding: 20px 0;
}
.lead-success h3 { font-size: 1.5rem; color: var(--brand); }
.lead-success p { color: var(--text-muted); }

/* Contacts */
.contacts { background: var(--brand); color: #f5ede1; }
.contacts .section-title { color: #fff; }
.contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contacts-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contacts-list .ico {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  color: #d9a87c;
}
.contacts-list span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c9b39a;
  margin-bottom: 4px;
}
.contacts-list strong { color: #fff; font-weight: 600; }
.contacts-list a { color: #fff; text-decoration: none; }
.contacts-list a:hover { color: #d9a87c; }

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: #c9b39a;
  padding: 24px 0;
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }

/* Focus visibility */
a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .how-layout { grid-template-columns: 1fr; }
  .contacts-list { grid-template-columns: 1fr; }
  .hero-facts li + li { border-left: none; }
  .hero-facts { gap: 12px 0; }
  .hero-facts li { min-width: 50%; padding: 8px 0; }
  .lead-card { padding: 28px 20px; }
  .header-phone span { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
