:root {
  --bg: #F4F1E9;
  --surface: #FFFFFF;
  --ink: #1C2721;
  --muted: #6B7A72;
  --line: #DCDCD2;
  --accent: #A8490F;
  --accent-soft: #F0E4D8;
  --green: #1F6B45;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }

h1, h2, h3, h4 { font-family: 'Commissioner', 'Onest', sans-serif; margin: 0; letter-spacing: -0.01em; }

.muted { color: var(--muted); }

/* ---------- шапка ---------- */

.top {
  background: #14201A;
  color: #F4F7F4;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { border-radius: 10px; }
.brand-txt h1 { font-size: 20px; font-weight: 800; letter-spacing: 0.06em; }
.brand-sub { font-size: 12px; color: #9FB3A8; display: block; }

.call {
  color: #E2701F;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Commissioner', sans-serif;
  font-size: 17px;
  white-space: nowrap;
}

/* ---------- герой ---------- */

.hero { padding: 34px 0 10px; }
.hero h2 { font-size: clamp(26px, 5vw, 40px); }
.lead { color: var(--muted); max-width: 620px; margin: 10px 0 16px; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- секции ---------- */

.sec { padding: 28px 0; }
.sec-title { font-size: 22px; margin-bottom: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-photo { aspect-ratio: 4 / 3; background: #E7E4DA; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; aspect-ratio: 16 / 7; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h4 { font-size: 18px; }
.card-meta { color: var(--muted); font-size: 14px; }
.card-price { font-family: 'Commissioner', sans-serif; font-size: 20px; font-weight: 700; }
.card-price small { font-size: 13px; color: var(--muted); font-weight: 500; }

.btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFF6EE; }
.btn.wide { width: 100%; }

.steps { margin: 0; padding-left: 20px; color: var(--muted); }
.steps li { margin-bottom: 8px; }
.steps b { color: var(--ink); }

.foot { border-top: 1px solid var(--line); padding: 22px 0 40px; margin-top: 20px; font-size: 14px; }
.foot p { margin: 4px 0; }

/* ---------- форма ---------- */

.sheet-bg {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 13, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 0;
}
.sheet-bg.open { display: flex; }

.sheet {
  background: var(--bg);
  width: min(560px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 20px 20px 0 0;
  padding: 22px 20px 28px;
  position: relative;
}

.sheet h3 { font-size: 22px; margin-bottom: 6px; }
.sheet-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink);
}

.pick {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 6px 0 14px;
  font-weight: 600;
  font-size: 15px;
}

.field { margin-bottom: 12px; display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.req { color: var(--accent); }

input, textarea {
  font: inherit;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 76px; resize: vertical; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.agree { font-size: 12px; color: var(--muted); margin: 4px 0 14px; }
.agree a { color: var(--accent); }

.policy { padding: 18px 0 30px; font-size: 15px; }
.policy h2 { font-size: 28px; margin-bottom: 10px; }
.policy h3 { font-size: 18px; margin: 22px 0 8px; }
.policy p, .policy li { margin: 8px 0; }
.policy ul { padding-left: 20px; margin: 8px 0; }
.policy .lead { font-size: 16px; color: var(--muted); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); margin: 4px 0 14px; cursor: pointer; }
.consent input { margin: 2px 0 0; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--accent); }
.consent a { color: var(--accent); }

.actions { display: flex; gap: 10px; }
.actions .btn { flex: 1; }

.ok { text-align: center; padding: 20px 0 6px; }
.ok-mark {
  width: 58px; height: 58px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.ok h4 { font-size: 22px; margin-bottom: 8px; }
.ok p { color: var(--muted); margin-bottom: 18px; }

@media (min-width: 700px) {
  .sheet-bg { align-items: center; padding: 24px; }
  .sheet { border-radius: 20px; }
}

.brand-addr { display: block; font-size: 13px; color: #E2701F; margin-top: 2px; }
.schema { margin: 0; }
.schema img { width: 100%; border-radius: 14px; border: 1px solid var(--line); display: block; }
.schema figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.addr-line { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.addr-line b { color: var(--ink); }

/* оплата по QR */
.paybox {
  margin: 18px 0 16px;
  padding: 16px;
  border-radius: 16px;
  background: #FFF4D6;
  border: 1px solid #F0D89A;
  text-align: center;
}
.paybox h5 { margin: 0 0 6px; font-size: 17px; color: #1B1B1B; }
.pay-sum { margin: 0 0 12px; font-size: 16px; color: #1B1B1B; }
.pay-sum b { font-size: 22px; }
.pay-qr {
  width: 220px; height: 220px;
  background: #fff;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #E5D3A6;
}
.pay-hint { font-size: 13px; line-height: 1.45; margin: 12px 0; }
.payfig { text-align: center; }
.payfig img { width: 220px; height: 220px; background: #fff; padding: 12px; border-radius: 14px; border: 1px solid var(--line, #E4E1DA); }

/* ---------- мобильные устройства ---------- */
@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  body { font-size: 15px; }

  .top { padding: 10px 0; }
  .top-row { flex-wrap: wrap; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-txt h1 { font-size: 17px; }
  .brand-sub { font-size: 11px; }
  .call { font-size: 16px; }

  .hero { padding: 22px 0 6px; }
  .hero h2 { font-size: 27px; }
  .lead { font-size: 15px; margin: 8px 0 12px; }
  .facts span { font-size: 13px; padding: 5px 10px; }

  .sec { padding: 20px 0; }
  .sec-title { font-size: 20px; }

  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card-photo { aspect-ratio: 16 / 10; }
  .card-photo.empty { aspect-ratio: 16 / 7; }
  .card-body { padding: 12px 14px 14px; }
  .card-body h4 { font-size: 17px; }
  .card-price { font-size: 18px; }

  .btn { padding: 14px 16px; min-height: 50px; }
  .btn.primary { width: 100%; }

  .sheet { padding: 18px 14px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .sheet h3 { font-size: 20px; }
  .field input, .field textarea, .field select { font-size: 16px; min-height: 48px; }
  .row2 { grid-template-columns: 1fr; gap: 10px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .agree { font-size: 11.5px; }

  .policy { padding: 16px 0 26px; }
  .policy h2 { font-size: 24px; }
  .policy h3 { font-size: 17px; }

  .pay-qr { width: min(220px, 100%); height: auto; }
  .schema img { max-width: 100%; }
}

@media (max-width: 380px) {
  .hero h2 { font-size: 24px; }
  .facts span { font-size: 12px; }
}

.saved-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(31, 107, 69, .08);
  font-size: 13px;
  color: var(--muted);
}
.saved-note button {
  border: 0; background: none; padding: 0;
  font: inherit; color: var(--accent);
  text-decoration: underline; cursor: pointer;
}

/* ---------- отзывы клиентов ---------- */
.rev-sum {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card, #fff);
  border: 1px solid rgba(0, 0, 0, .08);
  margin-bottom: 14px;
}
.rev-rate { display: flex; align-items: baseline; gap: 10px; }
.rev-rate b { font-size: 34px; font-family: 'Commissioner', sans-serif; }
.stars { color: #e0a12a; letter-spacing: 2px; font-size: 16px; }
.rev-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.rev-src { color: inherit; opacity: .8; }
.rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.rev {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 14px;
  background: var(--card, #fff);
}
.rev-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rev-date { opacity: .6; font-size: 13px; }
.rev-item { font-size: 13px; opacity: .7; margin-top: 4px; }
.rev-text { margin: 8px 0 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }

/* галерея */
.gal { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gal-item { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.gal-item img { width: 100%; height: 220px; object-fit: cover; display: block; background: #f0f2ef; }
.gal-item figcaption { padding: 10px 12px; font-size: 14px; color: #6b6b6b; }
