:root {
  --bg: #faf5ec;
  --bg-alt: #f4ecdb;
  --surface: #fffdf8;
  --ink: #33241a;
  --muted: #7d6b57;
  --accent: #b0521f;
  --accent-dark: #8f3f14;
  --accent-soft: #f6e7d2;
  --line: #e9dcc6;
  --footer-bg: #2e2013;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(51, 36, 26, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -52px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 2px;
}

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}
.kicker-light { color: #ffcf96; }

.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 9px 15px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--accent-soft); }
.nav a.active { background: var(--accent); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-toggle:hover { background: var(--accent-soft); }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: min(640px, 82vh);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 17, 8, 0.74), rgba(28, 17, 8, 0.38) 55%, rgba(28, 17, 8, 0.68));
}
.hero-content { position: relative; z-index: 1; max-width: 660px; padding: 90px 0; }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero-text {
  color: #f7ead9;
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding: 60px 0 10px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 0 0 14px; }

.prose { width: min(760px, 92%); margin: 0 auto; padding: 56px 0 72px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 18px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.prose p, .prose li { color: #54432f; }
.prose ul { padding-left: 20px; }
.prose .update { color: var(--muted); font-size: 0.9rem; margin-top: 36px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: #ffe9d2; }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(51, 36, 26, 0.16);
}
.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.card-title { font-size: 1.05rem; font-weight: 700; }
.card-desc { color: var(--muted); font-size: 0.95rem; margin: 0; }
.price { color: var(--accent); font-weight: 800; white-space: nowrap; }

.benefit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.benefit h3 { margin-bottom: 8px; font-size: 1.08rem; }
.benefit p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}

/* ---------- Секции с фото и текстом ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.split h2 { margin-bottom: 16px; }
.split p { color: #54432f; }
.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Цифры ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 28px 18px;
}
.stat b { display: block; font-size: 2.1rem; color: var(--accent); margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Принципы ---------- */
.values { display: grid; margin-top: 8px; }
.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.value:last-child { border-bottom: 0; }
.value h3 { margin-bottom: 4px; font-size: 1.06rem; }
.value p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.value-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--accent);
  color: #fff;
  border-radius: 26px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #ffe9d2; max-width: 520px; }

/* ---------- Меню ---------- */
.menu-category { margin-top: 54px; }
.menu-category:first-child { margin-top: 8px; }
.menu-cat-title { font-size: 1.5rem; margin-bottom: 22px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 28px;
  box-shadow: var(--shadow);
}
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-weight: 600;
}
.price-list li:last-child { border-bottom: 0; }
.price-list .dots {
  flex: 1;
  border-bottom: 2px dotted #d9c9ae;
  transform: translateY(-4px);
}
.menu-note {
  margin-top: 56px;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
}
.menu-note a { color: var(--accent); font-weight: 700; }

/* ---------- Контакты ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-panel h2 { margin-bottom: 6px; }
.badge {
  display: inline-block;
  background: #fff3d6;
  border: 1px solid #ecd39a;
  color: #8a6a1f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.demo-note { color: var(--muted); font-size: 0.88rem; }
.contact-list { margin-top: 20px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.ci-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 19px;
}
.ci-label { font-size: 0.8rem; color: var(--muted); margin: 0 0 2px; }
.ci-value { font-weight: 700; margin: 0; }
.ci-value a { color: var(--ink); text-decoration: none; }
.ci-value a:hover { color: var(--accent); }
.contact-sub { margin: 20px 0 6px; font-size: 1.05rem; }

/* ---------- Форма заявки ---------- */
.lead-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.lead-form h2 { margin-bottom: 8px; }
.form-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.form-grid { display: grid; gap: 16px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9c9ae;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 1px;
  border-color: var(--accent);
}
.lead-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
}
.lead-consent input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: none;
}
.lead-consent a { color: var(--accent); }
.lead-form .btn { margin-top: 2px; }
[data-pulse-lead-status]:not([hidden]) {
  margin: 14px 0 0;
  font-weight: 700;
  color: var(--accent-dark);
}

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #f4ead9;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer-brand { font-weight: 800; font-size: 1.1rem; color: #fff; margin: 0 0 10px; }
.footer-note { color: #cbbba0; font-size: 0.92rem; max-width: 320px; }
.footer-title { font-weight: 800; color: #fff; margin: 0 0 12px; }
.footer-links { display: grid; gap: 8px; font-size: 0.95rem; }
.footer-links a { color: #ecdccb; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(244, 234, 217, 0.18);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #cbbba0;
}
.footer-bottom a { color: #ecdccb; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- Адаптив ---------- */
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(51, 36, 26, 0.14);
    flex-direction: column;
    padding: 12px 4%;
    gap: 4px;
  }
  body.nav-open .nav { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-content { padding: 72px 0; }
  .cta { padding: 32px 24px; }
  .contact-panel, .lead-form { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .card:hover { transform: none; }
}
