/* Блог: отдельный лёгкий стиль без сборки Tailwind и без скриптов. Палитра как на главной. */
:root {
  --paper: #faf9f5; --sand: #f3f1ea; --line: #e6e3da; --line-strong: #d6d2c6;
  --ink: #1f1e1d; --muted: #6b6760; --clay: #c96442; --clay-strong: #b4532f; --clay-deep: #93421f; --clay-wash: #fbf1ea;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", serif; /* у Instrument Serif нет кириллицы */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--clay-strong); text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgb(250 249 245 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--clay); color: #fff; font: 18px/1 "Instrument Serif", Georgia, serif; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; margin-left: 8px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--clay-strong); color: #fff !important; font-weight: 500;
  text-decoration: none; border-radius: 12px; padding: 12px 20px; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--clay-deep); }
.btn-sm { margin-left: auto; padding: 9px 14px; font-size: 14px; border-radius: 10px; }
@media (max-width: 640px) { .nav { display: none; } }

/* хлебные крошки */
.crumbs { font-size: 14px; color: var(--muted); margin: 22px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* список статей */
.blog-head { margin: 26px 0 18px; max-width: 760px; }
.blog-head h1, .post-head h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.08; margin: 0; }
.blog-head h1 { font-size: clamp(38px, 6vw, 60px); }
.blog-head p { color: var(--muted); font-size: 18px; margin: 12px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chips a { font-size: 14px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; background: #fff; }
.chips a:hover { border-color: var(--line-strong); color: var(--ink); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; margin-bottom: 64px; }
.card { display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: var(--sand); border: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-ph { display: grid; place-items: center; height: 100%; font: 26px/1.1 var(--serif); color: var(--clay-strong); padding: 20px; text-align: center;
  background: linear-gradient(135deg, var(--clay-wash), var(--sand)); }
.card .meta { margin: 14px 0 4px; }
.card h3 { font-size: 20px; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--clay-strong); }
.card > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 8px 0 0; }
.meta { font-size: 13px; color: var(--muted); }
.meta a { color: var(--clay-strong); text-decoration: none; font-weight: 500; }
.empty { color: var(--muted); }

/* статья */
.post article { max-width: none; }
.post-head { margin: 24px 0 26px; }
.post-head.has-cover { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; }
@media (max-width: 860px) { .post-head.has-cover { grid-template-columns: 1fr; gap: 20px; } .post-head .cover { order: -1; max-width: 420px; } }
.post-head h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 10px; text-wrap: balance; }
.byline { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.cover { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 2; background: var(--sand); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lead { background: var(--clay-wash); border: 1px solid #f1dccd; border-radius: 16px; padding: 18px 22px; margin: 0 0 24px; }
.lead-h { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--clay-deep); margin: 0 0 6px; }
.lead p:last-child { margin: 0; font-size: 18px; line-height: 1.6; }
.toc { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 22px; margin: 0 0 32px; }
.toc summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.toc ol { margin: 10px 0 4px; padding-left: 22px; font-size: 15px; line-height: 1.6; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--clay-strong); text-decoration: underline; }

.content h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.015em; margin: 48px 0 12px; }
.content h3 { font-size: 21px; line-height: 1.3; margin: 32px 0 8px; }
.content h4 { font-size: 18px; margin: 24px 0 6px; }
.content p { margin: 0 0 16px; }
.content ul, .content ol { padding-left: 24px; margin: 0 0 18px; }
.content li { margin: 6px 0; }
.content li::marker { color: var(--clay); }
.content strong { font-weight: 600; }
.content code { font-size: .88em; background: var(--sand); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.content pre { background: var(--ink); color: #f4f1ea; border-radius: 14px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.content pre code { background: none; border: 0; padding: 0; color: inherit; }
.content img { border-radius: 14px; border: 1px solid var(--line); display: block; margin: 8px 0 20px; }
.content .table { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.content table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.content th, .content td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.content th { background: var(--sand); font-weight: 600; white-space: nowrap; }
.content tr:last-child td { border-bottom: 0; }
.note { margin: 0 0 20px; padding: 14px 18px; border-left: 3px solid var(--clay); background: #fff; border-radius: 0 12px 12px 0; }
.note p { margin: 0; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin: 0 0 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 17px; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 22px; color: var(--clay); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 4px; }

.cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--ink); color: var(--paper);
  border-radius: 18px; padding: 22px 24px; margin: 32px 0; }
.cta p { margin: 0; color: rgb(250 249 245 / .75); font-size: 15px; line-height: 1.5; max-width: 470px; }
.cta .cta-title { color: var(--paper); font: 26px/1.15 var(--serif); margin-bottom: 6px; }

.related { max-width: 1120px; margin: 56px auto 0; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-size: 26px; margin: 0 0 22px; letter-spacing: -.01em; }

/* подвал */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 28px; font-size: 14px; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.foot-cols a:not(.brand) { display: block; color: var(--muted); text-decoration: none; margin: 4px 0; }
.foot-cols a:not(.brand):hover { color: var(--ink); }
.foot-cols p { margin: 10px 0 0; max-width: 320px; line-height: 1.55; }
.foot-h { font-weight: 600; color: var(--ink); margin: 0 0 8px !important; }
.foot-note { font-size: 12px; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:first-child { grid-column: 1 / -1; } }

/* блоки захвата: три вида, чередуются внутри статьи */
.cta { gap: 22px 28px; }
.cta-body { flex: 1 1 340px; min-width: 0; }
.cta-act { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cta ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 15px; line-height: 1.45; }
.cta li { position: relative; padding-left: 24px; }
.cta li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .85; }
.cta-note { font-size: 13px !important; opacity: .8; margin: 0 !important; }
.cta-v0 { background: var(--ink); color: var(--paper); }
.cta-v0 li { color: rgb(250 249 245 / .88); }
.cta-v0 li::before { color: var(--clay); }
.cta-v1 { background: var(--clay-strong); color: #fff; }
.cta-v1 p { color: rgb(255 255 255 / .85); }
.cta-v1 .cta-title { color: #fff; }
.cta-v1 li { color: rgb(255 255 255 / .92); }
.cta-v1 .btn { background: #fff; color: var(--clay-deep) !important; }
.cta-v1 .btn:hover { background: var(--clay-wash); }
.cta-v2 { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgb(31 30 29 / .35); }
.cta-v2 .cta-title { color: var(--ink); }
.cta-v2 p { color: var(--muted); }
.cta-v2 li { color: var(--ink); }
.cta-v2 li::before { color: var(--clay-strong); }

/* посадочные страницы */
.landing .crumbs, .landing .hero, .landing .content, .landing > .cta, .landing .hero-cover { max-width: 880px; margin-left: auto; margin-right: auto; }
.hero { margin-top: 26px; margin-bottom: 28px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-strong); margin: 0 0 12px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 18px 0 0; max-width: 680px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn-ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--sand); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 8px 0 28px; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 20px; }
.plan-hot { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.plan-badge { position: absolute; top: -11px; left: 18px; background: var(--clay-strong); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan h3 { margin: 0 !important; font-size: 18px !important; }
.plan-price { font: 36px/1.1 var(--serif); margin: 10px 0 0 !important; }
.plan-price s { font-size: 20px; color: var(--muted); }
.plan-price span { font: 14px var(--sans); color: var(--muted); }
.plan-models { font-size: 13px; line-height: 1.45; color: var(--clay-deep); margin: 10px 0 0 !important; }
.plan ul { list-style: none; padding: 0 !important; margin: 14px 0 18px !important; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); flex: 1; }
.plan li { margin: 0 !important; padding-left: 18px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--clay-strong); font-weight: 600; }
.plan li::marker { content: none; }
.plan .btn { width: 100%; }
.hero-cover { margin-bottom: 28px; }
