/* Публичные страницы «Памяти» (лендинг и страницы функций). Палитра — как у приложения. */
:root {
    --bg: #F6EFE3; --surface: #FFFBF4; --surface-2: #EFE5D4; --text: #2A2119; --muted: #6B5C4C;
    --line: #DDCDB5; --accent: #9C4A26; --accent-press: #7F3A1C; --accent-soft: #F3DDCF; --on-accent: #fff;
    --gold: #B7852F; --ok: #3F6B45; --sepia-1: #D8C3A0; --sepia-2: #8A6E4B;
    --radius: 20px; --shadow: 0 6px 24px rgba(60, 40, 20, .10);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1C1814; --surface: #26201A; --surface-2: #322A22; --text: #F3EADC; --muted: #BFAF99;
        --line: #43382C; --accent: #E08A5E; --accent-press: #F0A07A; --accent-soft: #3D2A1F; --on-accent: #1C1814;
        --gold: #D9AE5C; --sepia-1: #5A4A36; --sepia-2: #BFA27A; --shadow: none; color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #1C1814; --surface: #26201A; --surface-2: #322A22; --text: #F3EADC; --muted: #BFAF99;
    --line: #43382C; --accent: #E08A5E; --accent-press: #F0A07A; --accent-soft: #3D2A1F; --on-accent: #1C1814;
    --gold: #D9AE5C; --sepia-1: #5A4A36; --sepia-2: #BFA27A; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 19px/1.55 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .86em; }

/* шапка */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.site-head .wrap { justify-content: flex-start; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; margin-right: auto; }
.brand img { width: 40px; height: 40px; flex: 0 0 40px; }
.site-nav { display: none; gap: 4px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.site-nav a:hover { background: var(--surface-2); color: var(--accent); }
.head-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 12px; white-space: nowrap;
    background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px; text-decoration: none;
}
.head-btn:hover { background: var(--accent-press); }
.head-link { display: none; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.head-link:hover { background: var(--surface-2); color: var(--accent); }
.burger { position: relative; }
.burger summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--text); }
.burger summary::-webkit-details-marker { display: none; }
.burger summary svg { width: 28px; height: 28px; }
.burger[open] summary { background: var(--surface-2); }
.burger-menu {
    position: absolute; right: 0; top: 52px; min-width: 220px; display: flex; flex-direction: column; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.burger-menu a { color: var(--text); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 10px; }
.burger-menu a:hover { background: var(--surface-2); color: var(--accent); }
.burger-menu .burger-cta { background: var(--accent); color: var(--on-accent); text-align: center; margin-bottom: 6px; }
.burger-menu .burger-cta:hover { background: var(--accent-press); color: var(--on-accent); }
@media (max-width: 560px) {
    .brand { font-size: 18px; gap: 8px; }
    .brand img { width: 36px; height: 36px; flex-basis: 36px; }
    .head-btn { display: none; }
}
@media (max-width: 360px) { .brand span { display: none; } }
@media (min-width: 1120px) {
    .site-nav { display: flex; flex: 0 0 auto; }
    .burger { display: none; }
    .head-btn { margin-left: 4px; }
    .head-link { display: inline-flex; margin-left: 8px; }
}

.hero-price { margin: 14px 0 0; font-size: 18px; color: var(--muted); }
.hero-price b { color: var(--text); }
.hero-price a { color: var(--accent); font-weight: 600; }

.ref-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--text); font-weight: 600; }

/* кнопки */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px;
    padding: 14px 26px; border-radius: 16px; font-weight: 700; font-size: 20px; text-decoration: none;
    border: 2px solid transparent; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-press); }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }

/* первый экран */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .02em; margin: 0 0 8px; }
h1 { font-size: clamp(32px, 6vw, 50px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.015em; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 22px; margin: 0 0 8px; }
.lead { font-size: 21px; color: var(--muted); margin: 0 0 8px; max-width: 34em; }
.trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 17px; }
.trust li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* иллюстрация «было / стало» без чужих фото */
.frame-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.frame { border-radius: 14px; padding: 12px 12px 34px; background: var(--surface); box-shadow: var(--shadow); position: relative; }
.frame .pic { aspect-ratio: 3 / 4; border-radius: 6px; position: relative; overflow: hidden; }
.frame .cap { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 15px; color: var(--muted); }
.pic-old {
    background:
        linear-gradient(115deg, transparent 46%, rgba(255,255,255,.55) 47%, transparent 49%),
        linear-gradient(20deg, transparent 70%, rgba(80,60,40,.35) 71%, transparent 73%),
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.35) 0 6%, transparent 7%),
        linear-gradient(180deg, #CDB894, #8C7456);
    filter: saturate(.5) contrast(.85);
}
.pic-new { background: linear-gradient(180deg, #E9D2B7, #B48A62); }
.pic .face {
    position: absolute; left: 50%; top: 22%; width: 44%; aspect-ratio: 4 / 5; transform: translateX(-50%);
    border-radius: 50% 50% 46% 46%; background: rgba(255, 236, 214, .9);
}
.pic .body { position: absolute; left: 50%; bottom: -8%; width: 86%; height: 42%; transform: translateX(-50%); border-radius: 48% 48% 0 0; background: #3F4B5E; }
.pic .face::before {
    content: ""; position: absolute; left: 22%; right: 22%; top: 40%; height: 12%;
    background: radial-gradient(circle at 22% 50%, #4A3A2C 3.5px, transparent 4.5px), radial-gradient(circle at 78% 50%, #4A3A2C 3.5px, transparent 4.5px);
}
.pic .face::after {
    content: ""; position: absolute; left: 34%; right: 34%; top: 62%; height: 12%;
    border-bottom: 3px solid #9C5A44; border-radius: 0 0 50% 50%;
}
.pic .hair { position: absolute; left: 50%; top: 17%; width: 50%; height: 22%; transform: translateX(-50%); border-radius: 50% 50% 20% 20%; background: #6B4A2E; }
.pic-old .face { background: rgba(236, 222, 200, .8); }
.pic-old .hair { background: #5E5348; }
.pic-old .face::before, .pic-old .face::after { opacity: .55; }
.pic-old .body { background: #5B5046; }

/* секции */
section { padding: 40px 0; }
.section-alt { background: var(--surface-2); }
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 979px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
    display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none;
}
a.card:hover { border-color: var(--accent); }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.card .ico svg { width: 30px; height: 30px; }
.card .more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 700; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps li::before {
    counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 10px;
}

/* цены */
.prices { display: grid; gap: 12px; }
@media (min-width: 700px) { .prices { grid-template-columns: repeat(4, 1fr); } }
.price { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.price.best { border-color: var(--gold); }
.price .n { font-size: 20px; font-weight: 700; }
.price .rub { font-size: 32px; font-weight: 700; margin: 6px 0 2px; }
.price .per { color: var(--muted); font-size: 16px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 26px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; }

.prose { max-width: 46em; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.crumbs { font-size: 16px; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--muted); }

.cta-band { background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: 32px 24px; text-align: center; }
.cta-band h2 { color: inherit; }
.cta-band .btn { background: var(--on-accent); color: var(--accent); }

/* подвал */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 16px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.site-foot a { color: var(--muted); }

@media (max-width: 520px) {
    .btn { width: 100%; }
    .head-cta { font-size: 16px; }
}

/* примеры «было / стало» */
.examples { display: grid; gap: 20px; }
@media (min-width: 700px) { .examples { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .examples { grid-template-columns: repeat(3, 1fr); } }
.example { margin: 0; }
.example figcaption { color: var(--muted); font-size: 16px; margin-top: 8px; }
.hero .example { max-width: 400px; justify-self: center; width: 100%; }
.cmp { --pos: 50%; position: relative; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); user-select: none; touch-action: pan-y; }
.cmp img { display: block; width: 100%; height: auto; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-before img { width: 100%; height: 100%; object-fit: cover; }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.35); pointer-events: none; }
.cmp-line::after {
    content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px;
    border-radius: 50%; background: #fff; color: #5a4632; display: grid; place-items: center; font-weight: 700; font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.cmp-tag { position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; pointer-events: none; }
.cmp-tag-l { left: 10px; }
.cmp-tag-r { right: 10px; }
.cmp input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ex-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ex-pair img, .ex-pair video { width: 100%; height: auto; border-radius: 12px; display: block; background: var(--surface-2); object-fit: cover; aspect-ratio: 3 / 4; }

/* баннер cookie (metrika.js) */
.cookie-banner {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.18);
    font-size: 16px;
}
.cookie-banner p { margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { flex: 1 1 160px; min-height: 48px; border-radius: 12px; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); font-weight: 700; font: inherit; font-weight: 700; cursor: pointer; }
.cookie-actions button.primary { background: var(--accent); color: var(--on-accent); }

/* подвал (общий с веб-версией) */
.site-foot .foot-cols { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .site-foot .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.site-foot h4 { margin: 0 0 8px; color: var(--text); font-size: 16px; }
.site-foot .foot-cols a { display: block; padding: 4px 0; text-decoration: none; color: var(--muted); }
.site-foot .foot-cols a:hover { color: var(--accent); }
.site-foot .foot-legal { margin: 22px 0 0; font-size: 14px; line-height: 1.5; }
