/* Дом легче — стили сайта. Палитра и шрифты из «Дизайн_система_Надя». */
:root {
  --cream: #FAF8F4;
  --linen: #EEE7DE;
  --sand: #E8E2D9;
  --ink: #2B2621;
  --stone: #6E655C;
  --sage: #6F8F72;
  --sage-deep: #5B7A5F;
  --sage-light: #8FB192;
  --sage-wash: #E9EFE7;
  --terra: #C0714F;
  --terra-deep: #A95C3C;
  --terra-light: #E08D68;
  --terra-wash: #F6E7DE;
  --white: #FFFDF9;
  --radius: 28px;
  --radius-s: 16px;
  --wrap: 1200px;
  --read: 720px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; color: var(--ink); }
h1 { font-size: clamp(34px, 5.4vw, 60px); }
h2 { font-size: clamp(27px, 3.4vw, 38px); }
h3 { font-size: clamp(21px, 2.2vw, 25px); }
h1 em, h2 em, .accent { font-style: italic; font-weight: 600; color: var(--terra); }
p { margin: 0 0 1em; }
.kicker {
  font-family: var(--sans); font-weight: 600; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage-deep); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--stone); max-width: 640px; }
.muted { color: var(--stone); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px; text-decoration: none; line-height: 1.2;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terra-deep); color: #fff; }
.btn-primary:hover { background: #95502f; color: #fff; }
.btn-sage { background: var(--sage-deep); color: #fff; }
.btn-sage:hover { background: #4b6a50; color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--sand); }
.btn-light:hover { border-color: var(--ink); color: var(--ink); }
.btn-vk { background: #0077FF; color: #fff; }
.btn-vk:hover { background: #0062d1; color: #fff; }
.btn-max { background: var(--ink); color: #fff; }
.btn-max:hover { background: #111; color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Шапка ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--terra); z-index: 60; transition: width .1s linear; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 2px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--sand); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 38px; height: 38px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -.01em; }
.logo-name em { color: var(--terra); font-weight: 600; }
.logo-sub { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); font-weight: 600; margin-top: 4px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15px;
  transition: background .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--linen); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 2px solid var(--sand);
  background: transparent; color: var(--ink); text-decoration: none;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.header-cta { min-height: 44px; padding: 8px 18px; font-size: 14.5px; }
.menu-toggle { display: none; }

@media (max-width: 1060px) {
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--cream); border-bottom: 2px solid var(--sand);
    padding: 12px 20px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s; max-height: calc(100vh - 72px); overflow: auto;
  }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { font-size: 18px; padding: 14px 12px; border-radius: 14px; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .logo-sub { display: none; }
  .logo-name { font-size: 21px; }
}

/* ---------- Главная: первый экран ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero-media { position: relative; }
.hero-frame {
  position: relative; border-radius: 36px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--linen);
  box-shadow: 0 0 0 2px var(--sand);
}
.hero-frame img, .hero-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-frame video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-frame video.ready { opacity: 1; }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px; background: var(--white); border-radius: 22px; padding: 14px 18px;
  box-shadow: 0 0 0 2px var(--sand); display: flex; gap: 12px; align-items: center; max-width: 290px;
  animation: floaty 6s ease-in-out infinite;
}
.hero-badge b { font-family: var(--serif); font-size: 19px; display: block; line-height: 1.1; }
.hero-badge span { font-size: 13px; color: var(--stone); line-height: 1.35; display: block; }
.hero-badge .dot { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--sage-wash); display: grid; place-items: center; color: var(--sage-deep); }
.hero-badge .dot svg { width: 22px; height: 22px; }
.hero-note { position: absolute; right: -10px; top: 26px; background: var(--terra-deep); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 13.5px; animation: floaty 7s ease-in-out -2s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips-label { width: 100%; font-size: 13px; color: var(--stone); font-weight: 600; letter-spacing: .04em; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--white);
  border: 2px solid var(--sand); color: var(--ink); text-decoration: none; font-weight: 550; font-size: 14.5px;
  transition: border-color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: var(--sage); color: var(--ink); transform: translateY(-2px); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-frame { aspect-ratio: 16 / 12; border-radius: 28px; }
  .hero-badge { left: 12px; bottom: 12px; max-width: 250px; padding: 10px 14px; }
  .hero-badge b { font-size: 16px; }
  .hero-note { right: 12px; top: 12px; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-alt { background: var(--linen); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 720px; }
.section-head .more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-head .more::after { content: " →"; }

/* Карточки статей */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 2px var(--sand); transition: transform .35s var(--ease), box-shadow .35s;
  text-decoration: none; color: var(--ink); position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--sage-light); color: var(--ink); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--linen); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.045); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-rubric { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--sage-deep); }
.card h3 { font-size: 22px; margin: 0; }
.card p { margin: 0; color: var(--stone); font-size: 15px; line-height: 1.55; }
.card-meta { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--stone); display: flex; gap: 14px; }
.card-big { grid-column: span 2; }
.card-big .card-img { aspect-ratio: 16 / 8.2; }
.card-big h3 { font-size: clamp(24px, 2.6vw, 31px); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card-big { grid-column: auto; } .card-big .card-img { aspect-ratio: 16 / 10; } }

/* Выбор проблемы */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--white);
  box-shadow: 0 0 0 2px var(--sand); text-decoration: none; color: var(--ink); transition: box-shadow .25s, transform .25s var(--ease);
}
.pain:hover { box-shadow: 0 0 0 2px var(--terra-light); transform: translateY(-3px); color: var(--ink); }
.pain-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--sage-wash); color: var(--sage-deep); display: grid; place-items: center; flex: none; transition: background .25s, color .25s; }
.pain:hover .pain-ico { background: var(--terra-wash); color: var(--terra-deep); }
.pain-ico svg { width: 26px; height: 26px; }
.pain-text b { display: block; font-size: 17px; line-height: 1.3; margin-bottom: 4px; }
.pain-text span { font-size: 14.5px; color: var(--stone); line-height: 1.45; display: block; }
@media (max-width: 900px) { .pains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pains { grid-template-columns: 1fr; } }

/* Рубрики */
.rubrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.rubric {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; display: block;
  background: var(--ink);
}
.rubric img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.rubric::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,38,33,0) 35%, rgba(43,38,33,.82) 100%); }
.rubric:hover img { transform: scale(1.06); }
.rubric-text { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.rubric-text b { font-family: var(--serif); font-size: 23px; display: block; line-height: 1.1; color: var(--cream); }
.rubric-text span { font-size: 13px; color: var(--sand); display: block; margin-top: 6px; }
.rubric:hover { color: #fff; }
@media (max-width: 1000px) { .rubrics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .rubrics { grid-template-columns: repeat(5, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -20px; padding-right: 20px; }
  .rubric { scroll-snap-align: start; aspect-ratio: 4 / 4.6; }
}

/* Инструменты */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool {
  border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink);
  background: var(--white); box-shadow: 0 0 0 2px var(--sand); transition: transform .3s var(--ease), box-shadow .3s; min-height: 280px;
}
.tool:hover { transform: translateY(-5px); box-shadow: 0 0 0 2px var(--ink); color: var(--ink); }
.tool.t-sage { background: var(--sage-deep); color: #fff; box-shadow: none; }
.tool.t-sage p, .tool.t-sage .tool-tag { color: #E6EEE4; }
.tool.t-terra { background: var(--terra-wash); box-shadow: 0 0 0 2px #EED6C8; }
.tool-tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); }
.tool h3 { font-size: 26px; margin: 0; color: inherit; }
.tool p { margin: 0; color: var(--stone); font-size: 15.5px; }
.tool .go { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.tool .go::after { content: "→"; transition: transform .25s var(--ease); }
.tool:hover .go::after { transform: translateX(5px); }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } .tool { min-height: 0; } }

/* Блок о Наде */
.about-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-photo { border-radius: 36px; overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.principles { display: grid; gap: 14px; margin: 26px 0 30px; padding: 0; list-style: none; counter-reset: pr; }
.principles li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; counter-increment: pr; }
.principles li::before {
  content: counter(pr); width: 46px; height: 46px; border-radius: 50%; background: var(--terra-deep); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.principles b { display: block; font-size: 17.5px; }
.principles span { color: var(--stone); font-size: 15.5px; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } .about-photo { max-width: 460px; } }

/* Подписка */
.subscribe {
  border-radius: 40px; background: var(--ink); color: var(--cream); overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: stretch; position: relative;
}
.subscribe-text { padding: clamp(32px, 5vw, 64px); position: relative; z-index: 2; }
.subscribe h2 { color: var(--cream); }
.subscribe h2 em { color: var(--terra-light); }
.subscribe .kicker { color: var(--sage-light); }
.subscribe p { color: #D9D1C6; max-width: 520px; }
.subscribe-list { list-style: none; padding: 0; margin: 20px 0 30px; display: grid; gap: 10px; }
.subscribe-list li { display: flex; gap: 12px; align-items: baseline; color: var(--sand); }
.subscribe-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--terra-light); flex: none; transform: translateY(-2px); }
.subscribe-media { position: relative; min-height: 320px; }
.subscribe-media img, .subscribe-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.subscribe-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 0%, rgba(43,38,33,0) 35%); }
.sub-small { font-size: 13px; color: #B8AFA4; margin-top: 16px; }
@media (max-width: 860px) {
  .subscribe { grid-template-columns: 1fr; border-radius: 30px; }
  .subscribe-media { min-height: 280px; order: -1; }
  .subscribe-media::before { background: linear-gradient(0deg, var(--ink) 0%, rgba(43,38,33,0) 45%); }
}

/* ---------- Статья ---------- */
.crumbs { font-size: 13.5px; color: var(--stone); margin: 22px 0 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--sand); }
.crumbs a { color: var(--stone); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.article-head { max-width: 860px; }
.article-head h1 { font-size: clamp(32px, 4.8vw, 54px); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; color: var(--stone); margin: 18px 0 26px; }
.author-mini { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.author-mini img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.meta-dot::before { content: "·"; margin-right: 18px; color: var(--sand); }
@media (max-width: 560px) { .meta-dot::before { display: none; } .article-meta { gap: 6px 16px; } }
.article-hero { border-radius: var(--radius); overflow: hidden; margin: 0 0 8px; background: var(--linen); aspect-ratio: 16 / 9; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.img-note { font-size: 12.5px; color: var(--stone); margin: 0 0 26px; }

.article-layout { display: grid; grid-template-columns: minmax(0, var(--read)) 300px; gap: 56px; align-items: start; justify-content: space-between; }
.article-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.toc-mobile { display: none; margin: 0 0 28px; }
@media (max-width: 1080px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-aside { display: none; } .toc-mobile { display: block; } }

.answer {
  background: var(--sage-wash); border-radius: 22px; padding: 22px 26px; margin: 8px 0 30px; position: relative;
  border-left: 5px solid var(--sage);
}
.answer-title { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 8px; }
.answer p:last-child, .answer ul:last-child, .answer ol:last-child { margin-bottom: 0; }
.answer ul, .answer ol { padding-left: 20px; margin: 6px 0 0; }

.toc { background: var(--white); border-radius: 22px; padding: 20px 22px; box-shadow: 0 0 0 2px var(--sand); }
.toc summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 22px; font-weight: 500; color: var(--stone); transition: transform .25s; }
.toc[open] summary::after { transform: rotate(45deg); }
.toc ol { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 2px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 8px; border-radius: 10px; color: var(--stone); text-decoration: none; font-size: 14.5px; line-height: 1.4; transition: background .2s, color .2s; }
.toc a::before { content: counter(t, decimal-leading-zero); font-size: 12px; font-weight: 600; color: var(--sand); padding-top: 2px; }
.toc a:hover { background: var(--linen); color: var(--ink); }
.toc a.active { color: var(--ink); background: var(--linen); font-weight: 600; }
.toc a.active::before { color: var(--terra-deep); }

.aside-sub { background: var(--terra-wash); border-radius: 22px; padding: 22px; display: grid; gap: 12px; }
.aside-sub b { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.aside-sub p { margin: 0; font-size: 14.5px; color: var(--stone); }
.aside-sub .btn { min-height: 44px; font-size: 14.5px; width: 100%; }

/* Текст статьи */
.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 0; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(26px, 3vw, 34px); scroll-margin-top: 90px; }
.prose h3 { margin: 1.6em 0 .5em; font-size: clamp(21px, 2.2vw, 24px); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--terra-deep); font-weight: 700; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--terra); font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ink); }
.prose hr { border: 0; height: 2px; background: var(--sand); margin: 2.4em 0; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 22px; width: 100%; }
.prose figcaption { font-size: 14px; color: var(--stone); margin-top: 10px; line-height: 1.5; }
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border-radius: 18px; box-shadow: 0 0 0 2px var(--sand); background: var(--white); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
@media (max-width: 600px) { .prose table { font-size: 14px; } .prose th, .prose td { padding: 10px 12px !important; } }
.prose th { background: var(--linen); text-align: left; font-weight: 700; padding: 12px 16px; font-size: 14px; }
.prose td { padding: 12px 16px; border-top: 2px solid var(--sand); vertical-align: top; }
.prose tr:nth-child(even) td { background: #FCFAF6; }

.note { border-radius: 20px; padding: 20px 24px 20px 64px; margin: 1.6em 0; position: relative; font-size: 16.5px; line-height: 1.65; }
.note::before { content: ""; position: absolute; left: 20px; top: 22px; width: 28px; height: 28px; background-repeat: no-repeat; background-size: contain; }
.note p:last-child, .note ul:last-child, .note ol:last-child { margin-bottom: 0; }
.note-title { font-weight: 700; display: block; margin-bottom: 4px; font-size: 16px; }
.note-tip { background: var(--terra-wash); }
.note-tip::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A95C3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.3 1 2.3h6c0-1 .4-1.8 1-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.note-warn { background: #FBF1E0; box-shadow: inset 0 0 0 2px #EFD9B0; }
.note-warn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A6A12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.note-nadya { background: var(--sage-wash); }
.note-nadya::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B7A5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }

/* Чек-лист */
.checklist { background: var(--white); border-radius: 24px; box-shadow: 0 0 0 2px var(--sand); padding: 24px 26px 20px; margin: 1.8em 0; }
.checklist-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.checklist-head h3, .checklist-head .cl-title { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 700; }
.cl-count { font-size: 14px; font-weight: 600; color: var(--sage-deep); white-space: nowrap; }
.cl-bar { height: 8px; background: var(--linen); border-radius: 999px; overflow: hidden; margin: 12px 0 14px; }
.cl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sage), var(--sage-deep)); border-radius: 999px; transition: width .5s var(--ease); }
.checklist ul { list-style: none; padding: 0 !important; margin: 0 !important; }
.checklist li { margin: 0 !important; border-top: 2px solid var(--linen); }
.checklist li:first-child { border-top: 0; }
.checklist label { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 11px 4px; cursor: pointer; font-size: 16.5px; line-height: 1.55; border-radius: 10px; }
.checklist label:hover { background: #FCFAF6; }
.checklist input { position: absolute; opacity: 0; pointer-events: none; }
.checklist .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--sage); display: grid; place-items: center; margin-top: 1px; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.checklist .box svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s var(--ease); }
.checklist input:checked + .box { background: var(--sage-deep); border-color: var(--sage-deep); transform: scale(1.06); }
.checklist input:checked + .box svg { stroke-dashoffset: 0; }
.checklist input:checked ~ .txt { color: var(--stone); text-decoration: line-through; text-decoration-color: var(--sage-light); }
.checklist input:focus-visible + .box { outline: 3px solid var(--terra-light); outline-offset: 2px; }
.cl-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 12px; }
.cl-foot button { background: none; border: 0; color: var(--stone); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.cl-done { display: none; background: var(--sage-wash); border-radius: 14px; padding: 12px 16px; font-weight: 600; color: var(--sage-deep); margin-top: 12px; font-size: 15.5px; }
.checklist.complete .cl-done { display: block; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* Встроенный призыв */
.cta-inline {
  display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; background: var(--linen); border-radius: 24px;
  padding: 20px 24px; margin: 2em 0;
}
.cta-inline > img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.cta-inline b { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.2; margin-bottom: 4px; }
.cta-inline p { margin: 0 0 12px; font-size: 15px; color: var(--stone); line-height: 1.5; }
.cta-inline .btn { min-height: 42px; padding: 8px 16px; font-size: 14.5px; }
@media (max-width: 560px) { .cta-inline { grid-template-columns: 1fr; } .cta-inline > img { width: 60px; height: 60px; } }

/* FAQ */
.faq { margin: 2.4em 0 1em; }
.faq details { border-top: 2px solid var(--sand); }
.faq details:last-child { border-bottom: 2px solid var(--sand); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 650; font-size: 17.5px; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 12px; height: 12px; border-right: 2px solid var(--terra-deep); border-bottom: 2px solid var(--terra-deep); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq .faq-a { padding: 0 0 18px; color: var(--ink); font-size: 16.5px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* Конец статьи */
.end-cta { margin: 3em 0 1em; }
.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start; padding: 26px; border-radius: 26px; box-shadow: 0 0 0 2px var(--sand); background: var(--white); margin: 2.4em 0; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-box b { font-family: var(--serif); font-size: 22px; display: block; }
.author-box p { margin: 6px 0 0; font-size: 15px; color: var(--stone); line-height: 1.55; }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; } }
.updated-note { font-size: 14px; color: var(--stone); border-top: 2px solid var(--sand); padding-top: 16px; margin-top: 2em; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 1.8em 0; font-size: 14.5px; color: var(--stone); }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--sand); background: none; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.share a:hover, .share button:hover { border-color: var(--ink); }

/* Хабы и каталог */
.page-head { padding: clamp(20px, 3vw, 36px) 0 clamp(24px, 3vw, 40px); }
.page-head .lead { max-width: 760px; }
.hub-intro { max-width: 760px; font-size: 17px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filter button { border: 2px solid var(--sand); background: var(--white); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.list-rows { display: grid; gap: 0; }
.row-item { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-top: 2px solid var(--sand); text-decoration: none; color: var(--ink); align-items: center; }
.row-item:last-child { border-bottom: 2px solid var(--sand); }
.row-item img { border-radius: 16px; aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.row-item h3 { font-size: 22px; margin: 4px 0 6px; transition: color .2s; }
.row-item:hover h3 { color: var(--terra-deep); }
.row-item p { margin: 0; color: var(--stone); font-size: 15px; }
@media (max-width: 600px) { .row-item { grid-template-columns: 110px 1fr; gap: 14px; } .row-item h3 { font-size: 18px; } .row-item p { display: none; } }

/* Тест */
.quiz { background: var(--white); border-radius: 32px; box-shadow: 0 0 0 2px var(--sand); padding: clamp(24px, 4vw, 48px); max-width: 820px; margin: 0 auto; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--stone); font-weight: 600; }
.quiz-bar { height: 8px; background: var(--linen); border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--terra); transition: width .45s var(--ease); }
.quiz-q { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.2; margin: 0 0 22px; }
.quiz-opts { display: grid; gap: 12px; }
.quiz-opt { text-align: left; background: var(--cream); border: 2px solid var(--sand); border-radius: 18px; padding: 16px 20px; font-size: 16.5px; line-height: 1.45; color: var(--ink); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.quiz-opt:hover { border-color: var(--sage); background: var(--white); transform: translateX(4px); }
.quiz-step { animation: slidein .45s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.quiz-back { background: none; border: 0; color: var(--stone); text-decoration: underline; margin-top: 18px; padding: 0; font-size: 14px; }
.quiz-result h2 { margin-bottom: 12px; }
.result-type { display: inline-block; background: var(--terra-wash); color: var(--terra-deep); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 14px; margin-bottom: 14px; }
.result-steps { counter-reset: s; list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.result-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.result-steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--sage-deep); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Марафон */
.weeks { display: grid; gap: 24px; }
.week-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.week-title span { font-size: 14px; color: var(--stone); font-weight: 600; }
.big-progress { position: sticky; top: 80px; z-index: 5; background: var(--cream); padding: 14px 0; margin-bottom: 10px; }
.big-progress .cl-bar { height: 12px; margin: 8px 0 0; }

/* Поиск */
.search-box { display: flex; gap: 10px; max-width: 720px; }
.search-box input { flex: 1; min-height: 56px; border-radius: 999px; border: 2px solid var(--sand); padding: 0 24px; font: inherit; font-size: 17px; background: var(--white); color: var(--ink); }
.search-box input:focus { outline: none; border-color: var(--sage); }
.search-results { margin-top: 28px; }
.search-empty { color: var(--stone); }

/* Мобильная плашка подписки */
.sticky-sub {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--ink); color: var(--cream);
  border-radius: 22px; padding: 12px 12px 12px 18px; display: flex; align-items: center; gap: 12px;
  transform: translateY(140%); transition: transform .5s var(--ease); box-shadow: 0 10px 30px rgba(43,38,33,.25);
  max-width: 640px; margin: 0 auto;
}
.sticky-sub.show { transform: none; }
.sticky-sub p { margin: 0; font-size: 14px; line-height: 1.35; flex: 1; }
.sticky-sub b { color: #fff; }
.sticky-sub .btn { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.sticky-sub .x { background: none; border: 0; color: #B8AFA4; width: 32px; height: 32px; font-size: 22px; line-height: 1; flex: none; }
@media (max-width: 480px) { .sticky-sub .btn-max { display: none; } }

/* Подвал */
.site-footer { background: var(--ink); color: #D9D1C6; padding: 64px 0 28px; margin-top: 40px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--terra-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-light); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-brand .logo { color: var(--cream); }
.footer-brand p { font-size: 14.5px; margin: 16px 0; max-width: 340px; }
.footer-bottom { border-top: 1px solid #45403A; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #A39A8F; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Анимации появления */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.hero-anim > * { animation: rise .9s var(--ease) both; }
.hero-anim > *:nth-child(2) { animation-delay: .08s; } .hero-anim > *:nth-child(3) { animation-delay: .16s; }
.hero-anim > *:nth-child(4) { animation-delay: .24s; } .hero-anim > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.underline-draw { background-image: linear-gradient(var(--terra-light), var(--terra-light)); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 92%; animation: draw 1.2s .7s var(--ease) forwards; }
@keyframes draw { to { background-size: 100% 3px; } }

/* Бегущая строка тем */
.ticker { overflow: hidden; border-top: 2px solid var(--sand); border-bottom: 2px solid var(--sand); background: var(--white); padding: 14px 0; }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.ticker a::after { content: "✦"; font-style: normal; font-size: 14px; color: var(--terra); }
.ticker a:hover { color: var(--terra-deep); }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .sticky-sub, .article-aside, .cta-inline, .end-cta, .share, .progress, .crumbs, .author-box { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .article-layout { display: block; }
  .checklist { box-shadow: none; border: 1px solid #ccc; }
}

/* Кнопки внутри тёмного подвала сохраняют свои цвета */
.site-footer .btn-light { color: var(--ink); }
.site-footer .btn-light:hover { color: var(--ink); border-color: var(--terra-light); }
.site-footer .btn-vk, .site-footer .btn-vk:hover { color: #fff; }

/* Официальный логотип MAX в кнопках */
.ico-max { width: 22px; height: 22px; flex: none; display: inline-block; }
.btn .ico-max { margin: -2px 0; }

/* ---------- Доработки v2 ---------- */
/* Рубрик теперь шесть */
.rubrics { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .rubrics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .rubrics { grid-template-columns: repeat(6, 72%); } }
/* Меню из семи пунктов: бургер раньше */
@media (max-width: 1180px) {
  .main-nav { position: fixed; inset: 72px 0 auto 0; background: var(--cream); border-bottom: 2px solid var(--sand); padding: 12px 20px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; max-height: calc(100vh - 72px); overflow: auto; }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { font-size: 18px; padding: 14px 12px; border-radius: 14px; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
/* Четыре инструмента */
.tools-4 { grid-template-columns: repeat(4, 1fr); }
.tools-4 .tool { min-height: 250px; padding: 26px; }
.tools-4 .tool h3 { font-size: 23px; }
@media (max-width: 1100px) { .tools-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tools-4 { grid-template-columns: 1fr; } .tools-4 .tool { min-height: 0; } }

/* Схемы */
.prose figure.scheme img, figure.scheme img { border-radius: 18px; box-shadow: 0 0 0 2px var(--sand); background: var(--cream); }
figure.scheme { margin: 2em 0; }
figure.scheme figcaption { font-size: 15px; color: var(--stone); margin-top: 10px; }
figure.scheme .zoom { font-weight: 600; white-space: nowrap; }

/* Клипы ВК */
.vk-clip { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 26px; align-items: center; background: var(--linen); border-radius: 26px; padding: 18px; margin: 2em 0; }
.vk-facade { position: relative; border: 0; padding: 0; background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 9 / 16; width: 100%; cursor: pointer; }
.vk-facade img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .6s var(--ease), opacity .3s; }
.vk-facade:hover img { transform: scale(1.03); opacity: .92; }
.vk-play { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: rgba(250, 248, 244, .92); display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); animation: pulse 2.4s ease-in-out infinite; }
.vk-play svg { width: 34px; height: 34px; fill: var(--terra-deep); margin-left: 5px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.vk-frame { width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 18px; background: #000; }
.vk-clip figcaption { font-size: 16px; color: var(--stone); margin: 0; }
.vk-clip figcaption b { display: block; font-family: var(--serif); font-size: 23px; color: var(--ink); line-height: 1.2; margin-bottom: 8px; }
.vk-clip figcaption span { display: block; margin-bottom: 16px; line-height: 1.5; }
.vk-clip .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }
@media (max-width: 640px) { .vk-clip { grid-template-columns: 1fr; } .vk-facade, .vk-frame { max-width: 320px; margin: 0 auto; } }

/* Руководство на странице рубрики */
.hub-guide-wrap { padding-top: clamp(40px, 6vw, 72px); }
.hub-guide > .kicker { margin-bottom: 4px; }
.hub-guide h2:first-of-type { margin-top: .4em; }
.narrow-prose { max-width: 760px; }

/* Инструменты: формы и результат */
.tool-box { background: var(--white); border-radius: 32px; box-shadow: 0 0 0 2px var(--sand); padding: clamp(22px, 4vw, 40px); }
.tool-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 20px; align-items: end; }
.tool-form label { display: grid; gap: 8px; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.tool-form select, .tool-form input[type=number] { min-height: 52px; border-radius: 14px; border: 2px solid var(--sand); background: var(--cream); padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); }
.tool-form select:focus, .tool-form input:focus { outline: none; border-color: var(--sage); }
.tool-form label.check { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: var(--cream); border: 2px solid var(--sand); cursor: pointer; font-weight: 550; }
.tool-form label.check input { width: 22px; height: 22px; accent-color: var(--sage-deep); }
.tool-form .btn { min-height: 52px; }
.tool-out:empty { display: none; }
.tool-result { margin-top: 30px; border-top: 2px solid var(--sand); padding-top: 26px; animation: pop .45s var(--ease); }
.tool-result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-result h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); }
.tool-result h3 { font-size: 21px; margin: 26px 0 10px; }
.tool-result ul.daily { padding-left: 22px; margin: 0; display: grid; gap: 6px; font-size: 17px; }
.tool-result ul.daily li::marker { color: var(--terra-deep); }
.grafik-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.grafik-table th { width: 170px; text-align: left; vertical-align: top; padding: 14px 16px; background: var(--linen); font-size: 16px; }
.grafik-table th span { display: block; font-weight: 500; font-size: 14px; color: var(--stone); margin-top: 4px; }
.grafik-table td { padding: 14px 16px; border-top: 2px solid var(--sand); vertical-align: top; }
.grafik-table td b { display: block; margin-bottom: 4px; }
.grafik-table td ul { margin: 0 0 8px; padding-left: 18px; }
.grafik-table td p { margin: 0; color: var(--stone); }
@media (max-width: 600px) { .grafik-table th { width: 110px; padding: 12px; } .grafik-table td { padding: 12px; } }
.big-answer { display: flex; gap: 18px; align-items: center; background: var(--sage-wash); border-radius: 20px; padding: 18px 22px; margin: 18px 0; }
.big-answer .num { font-family: var(--serif); font-size: 56px; font-weight: 700; color: var(--sage-deep); line-height: 1; }
.big-answer b { display: block; font-size: 19px; }
.big-answer span { color: var(--stone); font-size: 15px; }
.shelf-viz { display: flex; gap: 6px; padding: 10px; border: 3px solid var(--ink); border-top-width: 5px; border-bottom-width: 5px; border-radius: 6px; height: 96px; background: var(--cream); max-width: 560px; }
.shelf-viz i { flex: 1; background: #D9C9B3; border: 2px solid #BFA98C; border-radius: 5px; animation: rise .5s var(--ease) both; }
.shelf-viz i:nth-child(2) { animation-delay: .06s; } .shelf-viz i:nth-child(3) { animation-delay: .12s; } .shelf-viz i:nth-child(4) { animation-delay: .18s; } .shelf-viz i:nth-child(5) { animation-delay: .24s; }

/* ---------- Читаемость на телефоне (ЦА 30–55) ---------- */
@media (max-width: 640px) {
  body { font-size: 18px; }
  .prose { font-size: 18.5px; line-height: 1.75; }
  .prose h2 { font-size: 27px; }
  .prose h3 { font-size: 22px; }
  .lead { font-size: 18px; line-height: 1.6; }
  .card p, .row-item p, .pain-text span, .tool p { font-size: 16px; }
  .card h3 { font-size: 23px; }
  .card-meta, .crumbs, .article-meta, .img-note, .prose figcaption { font-size: 14.5px; }
  .kicker, .card-rubric { font-size: 13px; }
  .answer { padding: 18px 20px; }
  .note { font-size: 17px; padding: 18px 18px 18px 56px; }
  .note::before { left: 16px; }
  .checklist label { font-size: 17.5px; }
  .faq summary { font-size: 18px; }
  .faq .faq-a { font-size: 17.5px; }
  .prose table { font-size: 15.5px; }
  .chip { font-size: 15.5px; padding: 10px 16px; }
  .btn { font-size: 16.5px; }
  .toc a { font-size: 16px; padding: 9px 8px; }
  .footer-grid ul { font-size: 16px; gap: 12px; }
  .sticky-sub p { font-size: 15px; }
}
.prose a { text-decoration-thickness: 1.5px; }
@media (min-width: 1101px) { .rubric-text b { font-size: 20px; } .rubric-text span { font-size: 12.5px; } .rubric-text { left: 14px; right: 14px; bottom: 14px; } }

/* ---------- Лендинги /max/ ---------- */
.lp { padding-bottom: 0; }
.lp-top { border-bottom: 2px solid var(--sand); background: var(--cream); }
.lp-top-in { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.lp-top-note { font-size: 13px; font-weight: 600; color: var(--sage-deep); letter-spacing: .04em; }
.lp-hero { padding: clamp(22px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); }
.lp-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.lp-hero h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 14px; }
.lp-hero .lead { margin-bottom: 16px; }
.lp-ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.lp-ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 16.5px; font-weight: 550; line-height: 1.45; }
.lp-ticks li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--sage-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; }
.lp-answer { background: var(--white); border-radius: 20px; box-shadow: 0 0 0 2px var(--sage-light); padding: 18px 20px 14px; margin: 0 0 20px; }
.lp-answer ol { margin: 6px 0 8px; padding-left: 22px; display: grid; gap: 6px; font-size: 16.5px; line-height: 1.5; }
.lp-answer ol li::marker { color: var(--terra-deep); font-weight: 700; }
.lp-answer p { margin: 0; font-size: 14.5px; color: var(--stone); }
.lp-cta-row { display: grid; gap: 10px; justify-items: start; }
.lp-cta { background: linear-gradient(135deg, #1D9BFF, #5C3BFF 60%, #8B3DFF); color: #fff; min-height: 62px; padding: 14px 28px; font-size: 18px; border-radius: 999px; box-shadow: 0 10px 26px rgba(92, 59, 255, .28); }
.lp-cta:hover { color: #fff; filter: brightness(1.06); }
.lp-cta .ico-max { width: 28px; height: 28px; background: #fff; border-radius: 50%; padding: 3px; }
.lp-micro { font-size: 13.5px; color: var(--stone); }
.lp-hero-visual { position: relative; min-height: 460px; }
.lp-stack { position: relative; height: 460px; }
.lp-sheet { position: absolute; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(43, 38, 33, .18), 0 0 0 1px rgba(43, 38, 33, .06); background: #fff; }
.lp-sheet img { display: block; width: 100%; height: auto; }
.lp-sheet.s1 { width: 58%; left: 22%; top: 0; z-index: 3; animation: floaty 7s ease-in-out infinite; }
.lp-sheet.s2 { width: 48%; left: 0; top: 60px; z-index: 2; transform: rotate(-7deg); }
.lp-sheet.s3 { width: 48%; right: 0; top: 80px; z-index: 1; transform: rotate(6deg); }
.lp-free { position: absolute; right: 4%; top: -6px; z-index: 5; background: var(--terra-deep); color: #fff; font-weight: 700; padding: 8px 16px; border-radius: 999px; font-size: 14px; transform: rotate(4deg); }
.lp-author { position: absolute; left: 2%; bottom: 10px; z-index: 5; display: flex; gap: 10px; align-items: center; background: var(--white); padding: 8px 14px 8px 8px; border-radius: 999px; box-shadow: 0 0 0 2px var(--sand); }
.lp-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.lp-author span { font-size: 13px; color: var(--stone); line-height: 1.25; }
.lp-author b { display: block; color: var(--ink); font-size: 15px; }
.lp-sec { padding: clamp(40px, 6vw, 72px) 0; }
.lp-alt { background: var(--linen); }
.lp-h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }
.lp-lead { color: var(--stone); font-size: 17px; margin-bottom: 24px; max-width: 700px; }
.lp-center { display: flex; justify-content: center; margin-top: 26px; }
.lp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.lp-q { background: var(--white); border-radius: 20px; padding: 18px 20px; box-shadow: 0 0 0 2px var(--sand); }
.lp-q b { font-family: var(--serif); font-size: 20px; display: block; margin-bottom: 6px; }
.lp-q p { margin: 0; font-size: 16px; line-height: 1.55; }
.lp-zones { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-zone { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; border: 2px solid var(--sand); background: var(--white); font-weight: 600; font-size: 16px; color: var(--ink); transition: border-color .2s, background .2s; }
.lp-zone .pain-ico { width: 38px; height: 38px; border-radius: 50%; }
.lp-zone .pain-ico svg { width: 20px; height: 20px; }
.lp-zone[aria-pressed="true"] { border-color: var(--sage-deep); background: var(--sage-wash); }
.lp-tip { margin-top: 20px; background: var(--white); border-radius: 22px; padding: 20px 22px; box-shadow: 0 0 0 2px var(--sage-light); animation: pop .4s var(--ease); }
.lp-tip p { font-size: 17px; font-weight: 550; margin: 0 0 14px; }
.lp-pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-page { margin: 0; }
.lp-page img { border-radius: 8px; box-shadow: 0 8px 22px rgba(43, 38, 33, .12), 0 0 0 1px rgba(43, 38, 33, .06); background: #fff; width: 100%; height: auto; }
.lp-page figcaption { font-size: 14px; color: var(--stone); margin-top: 8px; text-align: center; }
.lp-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.lp-list { list-style: none; padding: 0; margin: 14px 0 24px; display: grid; gap: 12px; font-size: 16.5px; line-height: 1.5; }
.lp-list li { padding-left: 22px; position: relative; }
.lp-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--terra); }
.lp-video { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; }
.lp-video img, .lp-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-video video { opacity: 0; transition: opacity 1s; }
.lp-video video.ready { opacity: 1; }
.lp-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: st; }
.lp-steps li { counter-increment: st; background: var(--white); border-radius: 22px; padding: 22px; box-shadow: 0 0 0 2px var(--sand); }
.lp-steps li::before { content: counter(st); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--terra-deep); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.lp-steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.lp-steps span { color: var(--stone); font-size: 15.5px; line-height: 1.5; }
.lp-about-photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; }
.lp-about-photo img { width: 100%; height: 100%; object-fit: cover; }
.lp-small { font-size: 14px; color: var(--stone); }
.lp-final { background: var(--ink); color: var(--cream); text-align: center; padding: clamp(48px, 7vw, 88px) 0; }
.lp-final h2 { color: var(--cream); font-size: clamp(28px, 4vw, 44px); }
.lp-final h2 em { color: var(--terra-light); }
.lp-final p { color: #D9D1C6; font-size: 17px; margin-bottom: 26px; }
.lp-others-sec { padding-top: 40px; }
.lp-others-h { font-size: 22px; margin-bottom: 16px; }
.lp-others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lp-other { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; background: var(--white); border-radius: 16px; padding: 10px; box-shadow: 0 0 0 2px var(--sand); text-decoration: none; color: var(--ink); }
.lp-other img { width: 56px; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(43, 38, 33, .1); }
.lp-other b { display: block; font-size: 14.5px; line-height: 1.3; }
.lp-other span { font-size: 13px; color: var(--stone); }
.lp-foot { padding: 24px 0 110px; font-size: 13.5px; color: var(--stone); text-align: center; border-top: 2px solid var(--sand); }
.lp-foot a { color: var(--stone); }
.lp-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; justify-content: center; transform: translateY(150%); transition: transform .45s var(--ease); pointer-events: none; }
.lp-sticky.show { transform: none; pointer-events: auto; }
.lp-sticky .lp-cta { width: 100%; max-width: 520px; }
@media (max-width: 900px) {
  .lp-hero-grid, .lp-two { grid-template-columns: 1fr; }
  .lp-hero-visual { min-height: 0; order: 2; }
  .lp-stack { height: 330px; max-width: 420px; margin: 0 auto; }
  .lp-pages { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-others { grid-template-columns: 1fr 1fr; }
  .lp-video { max-width: 460px; }
}
@media (max-width: 560px) {
  .lp-top-note { display: none; }
  .lp-hero h1 { font-size: 31px; }
  .lp-hero .lead { font-size: 17px; }
  .lp-cta { width: 100%; font-size: 17px; }
  .lp-cta-row { justify-items: stretch; text-align: center; }
  .lp-pages { grid-template-columns: repeat(8, 62%); overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -20px; padding: 4px 20px 10px 0; }
  .lp-page { scroll-snap-align: start; }
  .lp-others { grid-template-columns: 1fr; }
  .lp-stack { height: 300px; }
}

/* ---------- Мобильная читаемость v3: минимум 14 px для подписей, 44 px для касаний ---------- */
.cl-foot button { min-height: 44px; padding: 10px 4px; }
.sticky-sub .x { width: 44px; height: 44px; }
@media (max-width: 640px) {
  .kicker, .card-rubric, .chips-label, .lp-top-note { font-size: 14px; letter-spacing: .14em; }
  .lp-micro, .lp-small, .sub-small, .img-note { font-size: 15px; }
  .hero-badge span, .rubric-text span, .hero-note, .lp-author span { font-size: 14px; }
  .lp-page figcaption, .lp-other span { font-size: 14.5px; }
  .lp-pages { grid-template-columns: repeat(2, 1fr); overflow: visible; margin-right: 0; padding: 0; }
  .lp-answer ol { font-size: 17px; }
  .lp-q p, .lp-steps span, .lp-list { font-size: 17px; }
  .lp-q b { font-size: 21px; }
}
@media (max-width: 640px) { .tool-tag { font-size: 14px; letter-spacing: .1em; } }

/* Источники в конце статьи */
.sources { font-size: 15px; color: var(--stone); padding-left: 1.2em; }
.sources li { margin: 6px 0; }
.sources a { color: inherit; text-decoration-color: rgba(91,122,95,.4); word-break: break-word; }

/* Страница скачивания гайда */
.guide-dl { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
.guide-dl-cover img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 40px rgba(60,50,40,.18); }
.guide-dl .btn { font-size: 18px; padding: 16px 28px; }
@media (max-width: 760px) { .guide-dl { grid-template-columns: 1fr; gap: 24px; } .guide-dl-cover { max-width: 260px; margin: 0 auto; } }
