/* «Семья» — the public site (stage 5). No scripts, no web fonts, no trackers. */
:root {
  --bg: #f7f6f2; --card: #ffffff; --ink: #1c1c1e; --mute: #5d5d64; --line: #e3e0d8;
  --accent: #1f9bb0; --accent-ink: #ffffff; --soft: #e2f3f6; --green: #2fb85a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151516; --card: #202022; --ink: #f2f2f4; --mute: #a4a4ab; --line: #333336;
          --accent: #4cc3d6; --accent-ink: #0b2126; --soft: #1b3035; --green: #3fcf6c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 18px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
nav.links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 16px; }
nav.links a { color: var(--mute); text-decoration: none; }
nav.links a:hover, nav.links a[aria-current] { color: var(--ink); }
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(19px, 2.6vw, 23px); color: var(--mute); max-width: 680px; margin: 0 0 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 20px; border-radius: 14px;
       font-weight: 600; font-size: 17px; text-decoration: none; background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.off { background: var(--card); color: var(--mute); border: 1.5px dashed var(--line); cursor: default; }
.btn small { font-weight: 500; margin-left: 8px; opacity: 0.8; }
.note { font-size: 15px; color: var(--mute); margin: 8px 0 0; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0 8px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); display: block; background: var(--card); }
.shots figcaption { font-size: 14px; color: var(--mute); text-align: center; margin-top: 8px; }
@media (max-width: 760px) { .shots { grid-template-columns: repeat(2, 1fr); } }
section { padding: 28px 0; }
h2 { font-size: 28px; line-height: 1.2; margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--mute); font-size: 16px; }
.card .ico { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.download { background: var(--soft); border-radius: 22px; padding: 22px; }
.download .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 760px) { .download .row { grid-template-columns: 1fr; } }
.download .row .btn { width: 100%; }
article.doc { max-width: 760px; padding: 32px 0 48px; }
article.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 0 0 8px; }
article.doc h2 { font-size: 23px; margin: 30px 0 10px; }
article.doc p, article.doc li { color: var(--ink); }
article.doc .meta { color: var(--mute); font-size: 15px; margin-bottom: 20px; }
article.doc ul { padding-left: 22px; }
article.doc li { margin: 6px 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
footer.bottom { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 15px; color: var(--mute); }
footer.bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.bottom a { color: var(--mute); }
