:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #2b2622;
  --muted: #6f655c;
  --line: #e7dfd4;
  --accent: #7a5c45;
  --todo: #fff1a8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
header { border-bottom: 1px solid var(--line); background: var(--card); }
header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-size: 20px; font-weight: 700; letter-spacing: .02em; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
nav a, a { color: var(--accent); }
h1 { font-size: 30px; line-height: 1.25; margin: 36px 0 8px; }
h2 { font-size: 22px; margin: 40px 0 12px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
p, li { color: var(--ink); }
.lead { color: var(--muted); font-size: 18px; margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card h3 { margin-top: 0; }
.price { font-size: 24px; font-weight: 700; margin: 6px 0; }
.small { font-size: 14px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
td, th { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { width: 38%; color: var(--muted); font-weight: 500; }
.pay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0; }
.pay svg { height: 32px; width: auto; }
footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--card); padding: 22px 0 30px; font-size: 14px; color: var(--muted); }
footer .wrap > div { margin-bottom: 8px; }
.doc h2 { font-size: 19px; margin-top: 28px; }
.doc ol { padding-left: 22px; }
mark.todo { background: var(--todo); color: #3d3500; padding: 0 3px; border-radius: 3px; }
.draft { background: var(--todo); color: #3d3500; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-top: 16px; }

/* ---------- Home page ---------- */
.home { --sand: #f6efe6; --clay: #c2714f; --clay-d: #9c5236; --sage: #7f9a7a; --plum: #6b4a5e; --gold: #e2b062; }
.home header.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.logo { color: var(--clay); font-weight: 400; margin-right: 2px; }
.hero { position: relative; overflow: hidden; color: #fff; min-height: 480px; display: flex; align-items: flex-end;
  background:
    radial-gradient(circle at 85% 20%, rgba(226,176,98,.85) 0 90px, transparent 91px),
    radial-gradient(circle at 85% 20%, rgba(226,176,98,.25) 0 160px, transparent 161px),
    linear-gradient(135deg, #6b4a5e 0%, #a35a45 55%, #d08a5c 100%); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,25,30,.05) 30%, rgba(40,25,30,.65) 100%); }
.hero-in { position: relative; padding-top: 80px; padding-bottom: 48px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; opacity: .9; margin: 0; color: #fff; }
.hero h1 { font-size: clamp(40px, 9vw, 72px); margin: 6px 0 10px; color: #fff; letter-spacing: .01em; }
.hero-lead { font-size: 18px; max-width: 560px; color: #fff; opacity: .95; margin: 0 0 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--gold); color: #3a2418; font-weight: 600; text-decoration: none; }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn.small { padding: 9px 16px; font-size: 14px; background: var(--clay); color: #fff; }
.home h2 { font-size: 28px; margin: 56px 0 8px; }
.section-lead { color: var(--muted); max-width: 640px; margin-top: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 20px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; border-top: 5px solid var(--sage); }
.plan.accent { border-top-color: var(--clay); }
.plan.soon { border-top-color: #c9bfd0; background: #fbf9fc; }
.plan h3 { font-size: 22px; margin: 6px 0 6px; }
.plan p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.plan-tag { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); font-weight: 600; }
.plan.accent .plan-tag { color: var(--clay); }
.plan.soon .plan-tag { color: var(--plum); background: #efe6f0; padding: 2px 8px; border-radius: 999px; }
.plan-price { font-size: 17px; font-weight: 600; color: var(--ink); }
.plan-price.muted { color: var(--muted); font-weight: 500; }
.note { font-size: 14px; color: var(--muted); }
.band { background: var(--sand); margin-top: 56px; padding: 8px 0 48px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 10px; margin-top: 18px; }
.g { margin: 0; border-radius: 14px; overflow: hidden; }
.g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g1 { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, #d08a5c, #6b4a5e); }
.g2 { background: linear-gradient(135deg, #e2b062, #c2714f); }
.g3 { background: linear-gradient(135deg, #7f9a7a, #4f6b5a); }
.g4 { background: linear-gradient(135deg, #c9a7b8, #6b4a5e); }
.g5 { grid-column: span 2; background: linear-gradient(135deg, #f0d2a8, #c2714f); }
.g6 { grid-column: span 2; background: linear-gradient(135deg, #a9bfa3, #7f9a7a); }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .g5 { grid-column: span 1; }
  .g6 { grid-column: span 2; }
}
.video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 28px; }
.video-frame { aspect-ratio: 9 / 16; max-height: 520px; border-radius: 18px; overflow: hidden; justify-self: center; width: 100%; max-width: 300px;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.35) 0 34px, transparent 35px), linear-gradient(160deg, #6b4a5e, #c2714f); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .video { grid-template-columns: 1fr; } }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 54px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: var(--clay); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; border-left: 5px solid var(--clay); }
.contact-card h3 { margin-top: 0; }
.price-tree { border-top: 1px dashed var(--line); padding-top: 10px; }
.price-tree summary { cursor: pointer; font-weight: 600; color: var(--clay); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.price-tree summary::-webkit-details-marker { display: none; }
.price-tree summary::before { content: "▸"; transition: transform .15s; }
.price-tree[open] summary::before { transform: rotate(90deg); }
.price-body { margin-top: 8px; background: var(--sand); border-radius: 10px; padding: 10px 12px; }
.price-row { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.hero-img { object-position: center 40%; }
.video-frame { position: relative; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--clay); font-size: 28px; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.video-frame.on { background: #000; max-width: 360px; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
