:root {
  --bg: #f7f2ea;
  --ink: #1e2423;
  --muted: #66716f;
  --line: rgba(30,36,35,.12);
  --card: rgba(255,255,255,.72);
  --cream: #fffaf1;
  --accent: #3d7a72;
  --accent-dark: #24524d;
  --gold: #d5a94d;
  --rose: #c56b61;
  --shadow: 0 24px 80px rgba(46, 59, 56, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(213,169,77,.24), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(61,122,114,.22), transparent 30rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 60%, #efe7da 100%);
  min-height: 100vh;
}
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .35; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}
a { color: inherit; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 72px);
  backdrop-filter: blur(18px);
  background: rgba(247, 242, 234, .78);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: var(--shadow);
}
.top-nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.top-nav a { text-decoration: none; }
main { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr); gap: 28px; padding: 78px 0 44px; align-items: stretch; }
.hero-content, .hero-card, .panel, .question-card, .result-card, .resource-card {
  border: 1px solid rgba(255,255,255,.72); background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.hero-content { padding: clamp(32px, 6vw, 72px); border-radius: 40px; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--accent-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
h1 { font-size: clamp(42px, 7vw, 82px); line-height: .92; letter-spacing: -.06em; margin: 0; max-width: 850px; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1; letter-spacing: -.04em; margin: 0 0 14px; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; margin: 28px 0 0; }
.hero-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  border: 0; border-radius: 999px; padding: 14px 20px; font-weight: 800; text-decoration: none; cursor: pointer; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 12px 30px rgba(36,82,77,.24); }
.secondary { color: var(--ink); background: #fff; }
.ghost { background: rgba(255,255,255,.48); border: 1px solid var(--line); }
.ghost.dark { background: rgba(30,36,35,.06); }
.hero-card { border-radius: 36px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; background: linear-gradient(155deg, rgba(61,122,114,.96), rgba(35,72,68,.96)); color: #fff; }
.hero-icon { font-size: 76px; line-height: 1; color: rgba(255,255,255,.65); }
.hero-card p { color: rgba(255,255,255,.78); line-height: 1.6; }
.panel, .question-card, .result-card { border-radius: 32px; padding: clamp(22px, 4vw, 38px); margin: 20px 0; }
.consent-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: center; }
.consent-box { display: flex; gap: 16px; padding: 20px; border-radius: 24px; background: var(--cream); border: 1px solid var(--line); cursor: pointer; line-height: 1.5; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; flex: 0 0 auto; }
.split-section { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; align-items: stretch; margin: 28px 0; }
.muted { background: rgba(255,250,241,.74); }
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.score-grid article { border-radius: 28px; padding: 24px; background: rgba(255,255,255,.65); border: 1px solid var(--line); }
.score-grid strong { display: block; font-size: 42px; color: var(--accent); }
.score-grid span { color: var(--muted); }
.checklist.locked { position: relative; filter: grayscale(.5); opacity: .52; pointer-events: none; }
.checklist.locked::before { content: "Сначала подтвердите добровольное согласие"; position: sticky; top: 92px; display: block; z-index: 3; margin: 18px auto; width: fit-content; padding: 12px 18px; border-radius: 999px; color: #fff; background: var(--accent-dark); box-shadow: var(--shadow); }
.form-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 42px 0 16px; }
.progress-wrap { min-width: 220px; text-align: right; color: var(--muted); font-weight: 800; }
.progress { height: 10px; border-radius: 999px; background: rgba(30,36,35,.08); margin-top: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width .25s ease; }
.question-card legend { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -.04em; }
.question-card legend span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 18px; letter-spacing: 0; }
.question-card p { color: var(--muted); line-height: 1.6; }
.reflection { background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,250,241,.86)); }
.caution { border-color: rgba(197,107,97,.32); }
.options { display: grid; gap: 10px; margin-top: 18px; }
.columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option, .pair-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 15px; border-radius: 18px; background: rgba(255,255,255,.62); border: 1px solid var(--line); cursor: pointer; transition: border .2s ease, background .2s ease, transform .2s ease; }
.option:hover, .pair-card:hover { transform: translateY(-1px); background: #fff; border-color: rgba(61,122,114,.32); }
.paired-options { display: grid; gap: 16px; }
.pair-group { padding: 16px; border-radius: 24px; background: rgba(255,255,255,.42); border: 1px solid var(--line); }
.pair-title { font-weight: 900; margin-bottom: 10px; }
.note-field { display: grid; gap: 8px; margin-top: 18px; color: var(--muted); font-weight: 700; }
textarea { resize: vertical; border: 1px solid var(--line); border-radius: 18px; padding: 14px; font: inherit; background: rgba(255,255,255,.75); color: var(--ink); }
.result-section { padding: 44px 0 18px; }
.result-card { background: linear-gradient(135deg, rgba(36,82,77,.96), rgba(30,36,35,.97)); color: #fff; }
.result-card .section-kicker, .result-card p { color: rgba(255,255,255,.76); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.metrics div { padding: 18px; border-radius: 22px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.metrics span { display: block; font-size: 34px; font-weight: 900; }
.metrics small { color: rgba(255,255,255,.72); }

.telegram-section { padding: 18px 0 10px; }
.telegram-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.telegram-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.telegram-button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.resources { padding: 22px 0 54px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource-card { display: grid; gap: 10px; border-radius: 28px; padding: 24px; text-decoration: none; }
.resource-card span { font-size: 28px; color: var(--accent); }
.resource-card small { color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 30px clamp(18px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; transition: all .25s ease; z-index: 20; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 860px) {
  .top-nav { display: none; }
  .hero, .consent-panel, .split-section { grid-template-columns: 1fr; }
  .columns, .resource-grid, .metrics, .score-grid { grid-template-columns: 1fr; }
  .form-header { align-items: flex-start; flex-direction: column; }
  .progress-wrap { width: 100%; text-align: left; }
  .site-footer { flex-direction: column; }
  .telegram-card { align-items: flex-start; flex-direction: column; }
  .telegram-button { width: 100%; text-align: center; }
}


.content-page { padding: 58px 0 54px; }
.content-hero { padding: clamp(30px, 6vw, 64px) 0 28px; }
.content-hero h1 { max-width: 940px; }
.back-link { display: inline-flex; width: fit-content; margin-bottom: 22px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.58); border: 1px solid var(--line); text-decoration: none; color: var(--accent-dark); font-weight: 800; }
.article-card { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(24px, 5vw, 56px); border: 1px solid rgba(255,255,255,.72); background: rgba(255,255,255,.76); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.article-card::before { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(61,122,114,.18), transparent 68%); }
.article-icon { position: absolute; right: clamp(18px, 4vw, 42px); top: clamp(18px, 4vw, 38px); font-size: clamp(42px, 8vw, 92px); color: rgba(61,122,114,.15); font-weight: 900; pointer-events: none; }
.article-body { position: relative; max-width: 900px; }
.article-body h2 { margin: 38px 0 14px; font-size: clamp(25px, 3.2vw, 38px); line-height: 1.08; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 24px 0 8px; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.24; color: var(--accent-dark); }
.article-body p { margin: 14px 0; color: #34403e; line-height: 1.72; font-size: 17px; }
.article-body .quote-text { padding: 16px 18px; border-left: 4px solid var(--accent); border-radius: 18px; background: rgba(255,250,241,.78); color: var(--ink); }
.flow-arrow { width: fit-content; margin: 12px 0 12px 30px; color: var(--accent); font-size: 26px; font-weight: 900; }
.attention-list { display: grid; gap: 10px; padding: 0; margin: 18px 0; list-style: none; }
.attention-list li { padding: 14px 16px; border-radius: 18px; background: rgba(255,250,241,.82); border: 1px solid var(--line); color: #34403e; line-height: 1.55; }
.resource-card { transition: transform .2s ease, border .2s ease, background .2s ease; }
.resource-card:hover { transform: translateY(-3px); border-color: rgba(61,122,114,.32); background: rgba(255,255,255,.9); }
@media (max-width: 860px) {
  .content-page { padding-top: 24px; }
  .article-card { border-radius: 28px; }
  .article-body p { font-size: 16px; }
}
