:root {
    --bg: #f7f1ea;
    --paper: #fffaf3;
    --paper-2: #fdf6ed;
    --text: #2d2823;
    --muted: #776b61;
    --accent: #8a6f55;
    --accent-dark: #5d4734;
    --gold: #c29a5b;
    --line: #e6d7c7;
    --green: #55745e;
    --red: #9a4b40;
    --shadow: 0 18px 50px rgba(73, 55, 39, 0.12);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, #fff8ee 0, var(--bg) 36%, #efe2d4 100%);
    line-height: 1.6;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 250, 243, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(230, 215, 199, 0.82);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand strong { display: block; font-size: 19px; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 10px 13px; border-radius: 999px; font-size: 14px; color: var(--text); }
.main-nav a.active, .main-nav a:hover { background: #efe2d4; text-decoration: none; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; }
.nav-toggle span { display: block; height: 2px; width: 20px; margin: 5px auto; background: var(--accent-dark); }
.hero { padding: 84px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,250,243,.7); color: var(--accent-dark); font-size: 14px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.035em; }
h1 { font-size: clamp(42px, 6vw, 72px); margin-top: 18px; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 24px; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; text-decoration: none; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent-dark); color: #fff; box-shadow: 0 12px 30px rgba(93, 71, 52, 0.22); }
.btn-primary:hover { background: #493725; }
.btn-secondary { border-color: var(--line); background: rgba(255,250,243,.75); color: var(--accent-dark); }
.btn-light { background: #fff; color: var(--accent-dark); }
.hero-card { background: linear-gradient(145deg, #fffaf3, #f1dfcc); border: 1px solid var(--line); border-radius: 34px; padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-card:before { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -80px; background: rgba(194,154,91,.18); border-radius: 50%; }
.phone-mock { position: relative; z-index: 1; max-width: 360px; margin: 0 auto; border: 10px solid #2f2923; border-radius: 38px; background: #fff; overflow: hidden; box-shadow: 0 26px 70px rgba(37, 28, 21, 0.22); }
.phone-top { height: 26px; background: #2f2923; }
.memorial-preview { padding: 18px; }
.avatar { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(145deg, #d8c3ae, #b99776); margin: 0 auto 12px; display: grid; place-items: center; color: #fff; font-size: 42px; }
.memorial-preview h3 { text-align: center; margin-bottom: 4px; font-size: 21px; }
.memorial-preview .years { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.preview-line { height: 9px; background: #eee0d1; border-radius: 999px; margin: 8px 0; }
.preview-line.short { width: 64%; }
.qr-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: #f8efe5; margin-top: 18px; }
.qr-row img { width: 74px; height: 74px; }
.section { padding: 72px 0; }
.section.alt { background: rgba(255,250,243,.5); border-top: 1px solid rgba(230, 215, 199, 0.7); border-bottom: 1px solid rgba(230, 215, 199, 0.7); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: rgba(255,250,243,0.92); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 32px rgba(73,55,39,.06); }
.card .icon { width: 48px; height: 48px; border-radius: 16px; background: #efe2d4; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }
.card h3 { font-size: 22px; }
.muted { color: var(--muted); }
.tariff { display: flex; flex-direction: column; gap: 16px; }
.tariff.featured { border: 2px solid var(--gold); transform: translateY(-8px); }
.price { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); }
ul.clean { padding: 0; margin: 0; list-style: none; }
ul.clean li { padding: 8px 0 8px 26px; position: relative; border-top: 1px solid rgba(230,215,199,.55); }
ul.clean li:before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding-top: 62px; }
.step:before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-dark); color: #fff; display: grid; place-items: center; font-weight: 800; }
.cta { background: linear-gradient(135deg, var(--accent-dark), #8a6f55); color: #fff; border-radius: 34px; padding: 46px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; box-shadow: var(--shadow); }
.cta p { color: rgba(255,255,255,.82); }
.cta .btn-secondary { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 14px; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; color: var(--text); font: inherit; }
textarea { min-height: 132px; resize: vertical; }
.help { font-size: 13px; color: var(--muted); }
.notice { padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; }
.notice.success { background: #e7f0e6; color: #2d5a37; }
.notice.error { background: #f5e2dc; color: #81372d; }
.honeypot { position: absolute; left: -5000px; opacity: 0; }
.sample-hero { padding: 50px 0; background: linear-gradient(135deg, #f8efe5, #fffaf3); border-bottom: 1px solid var(--line); }
.sample-cover { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: center; }
.portrait { width: 220px; height: 220px; border-radius: 34px; background: linear-gradient(145deg, #d8c3ae, #a98461); display: grid; place-items: center; color: #fff; font-size: 88px; box-shadow: var(--shadow); }
.timeline { position: relative; padding-left: 26px; }
.timeline:before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item:before { content: ""; position: absolute; left: -25px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { aspect-ratio: 1; border-radius: 20px; background: linear-gradient(145deg, #e4d2bf, #b59678); display: grid; place-items: center; color: #fff; font-weight: 800; }
.family-tree { display: grid; gap: 16px; }
.tree-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.person { padding: 10px 14px; border: 1px solid var(--line); background: #fffdf8; border-radius: 999px; }
.site-footer { background: #2e2721; color: rgba(255,255,255,.78); padding: 44px 0 24px; }
.site-footer a { color: #fff1dc; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 28px; }
.footer-brand { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 18px; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #efe2d4; color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.comparison { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #efe2d4; }
@media (max-width: 900px) {
    .hero-grid, .grid-3, .grid-2, .steps, .cta, .form-wrap, .footer-grid, .sample-cover { grid-template-columns: 1fr; }
    .tariff.featured { transform: none; }
    .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 72px; flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .hero { padding-top: 48px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .container { width: min(100% - 24px, 1160px); }
    .form-grid { grid-template-columns: 1fr; }
    h1 { font-size: 39px; }
    .actions { flex-direction: column; }
    .btn { width: 100%; }
    .cta { padding: 28px; }
}
