@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@700&family=Golos+Text:wght@400;500;600;700&display=swap');

:root {
  --ink: #101410;
  --paper: #f4f5f0;
  --white: #ffffff;
  --line: #dfe2d8;
  --muted: #5c6157;
  --lime: #c6f24e;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lime); }
img { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* шапка */
.top { background: var(--ink); color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 16px; }
.top nav a { text-decoration: none; color: #c9cec4; }
.top nav a:hover, .top nav a[aria-current] { color: var(--white); }

.logo {
  display: inline-flex; align-items: center; gap: .12em;
  font-family: 'Unbounded', 'Arial Black', sans-serif; font-weight: 700;
  font-size: 24px; line-height: 1; letter-spacing: -.01em;
  text-decoration: none; color: var(--white);
}
.logo b {
  position: relative; font-weight: 700;
  background: var(--lime); color: var(--ink);
  padding: .2em .26em .26em; border-radius: .32em;
}
.logo b::after {
  content: ''; position: absolute; left: .32em; bottom: -.26em;
  border-style: solid; border-width: .28em .3em 0 0;
  border-color: var(--lime) transparent transparent transparent;
}

/* главная */
.hero { background: var(--ink); color: var(--white); padding: 64px 0 88px; }
.hero h1 {
  margin: 0; max-width: 860px;
  font-family: 'Unbounded', 'Arial Black', sans-serif; font-weight: 700;
  font-size: clamp(34px, 6vw, 64px); line-height: 1.08; letter-spacing: -.03em;
}
.hero h1 span { background: var(--lime); color: var(--ink); padding: 0 .18em .06em; border-radius: .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p { max-width: 640px; margin: 28px 0 0; font-size: 21px; color: #c9cec4; }
.ai-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding: 0; list-style: none; }
.ai-list li { border: 1px solid #3a4036; border-radius: 999px; padding: 6px 16px; font-size: 16px; color: #dfe2d8; }

.btn {
  display: inline-block; margin-top: 36px; padding: 16px 28px; border-radius: 14px;
  background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none;
}

section.block { padding: 72px 0 0; }
section.block:last-of-type { padding-bottom: 80px; }
h2 { margin: 0 0 28px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.3; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 28px; }
.card p { margin: 0; color: var(--muted); }
.card .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px;
  background: var(--lime); font-weight: 700;
}
.card.dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.card.dark p { color: #c9cec4; }

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lime); font-weight: 700; }
.steps b { display: block; }
.steps span { color: var(--muted); }

.note { margin-top: 20px; color: var(--muted); font-size: 16px; }

/* документ */
.doc { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 48px 56px; margin: 40px auto 80px; max-width: 880px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: -.02em; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: 0; }
.doc p, .doc li { margin: 0 0 10px; }
.doc ol { padding-left: 0; list-style: none; margin: 0; }
.doc ol > li { padding-left: 3.2em; text-indent: -3.2em; }
.doc ol > li > b:first-child { display: inline-block; min-width: 3.2em; text-indent: 0; font-weight: 600; }
.doc ul { padding-left: 1.2em; text-indent: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 16px; }
.doc td, .doc th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper); }
.toc { background: var(--paper); border-radius: 16px; padding: 18px 22px; margin-bottom: 8px; font-size: 16px; columns: 2; column-gap: 32px; }
.toc a { display: block; text-decoration: none; padding: 2px 0; }
.toc a:hover { text-decoration: underline; }
mark.todo { background: #f8e2dd; color: #3a201b; padding: 0 .25em; border-radius: 4px; }

/* подвал */
footer { background: var(--ink); color: #a3a99a; font-size: 15px; padding: 40px 0; }
footer .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer b { color: var(--white); font-weight: 600; }
footer a { color: #dfe2d8; }
footer p { margin: 0 0 6px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .doc { padding: 28px 20px; margin: 16px 12px 48px; border-radius: 16px; }
  .doc ol > li { padding-left: 2.6em; text-indent: -2.6em; }
  .doc ol > li > b:first-child { min-width: 2.6em; }
  .toc { columns: 1; }
  .doc table { font-size: 14px; }
  .doc td, .doc th { padding: 8px; }
}

@media print {
  .top, footer, .toc { display: none; }
  body { background: #fff; font-size: 12pt; }
  .doc { border: 0; padding: 0; margin: 0; max-width: none; }
  mark.todo { background: none; }
}

/* цены */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.price { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.price.dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.price .tag { font-size: 15px; color: var(--muted); margin: 0 0 6px; }
.price.dark .tag, .price.dark li { color: #c9cec4; }
.price .sum { font-family: 'Unbounded', 'Arial Black', sans-serif; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 18px; }
.price .sum small { font-family: 'Golos Text', sans-serif; font-size: 17px; font-weight: 500; letter-spacing: 0; }
.price ul { margin: 0; padding-left: 1.1em; }
.price li { margin-bottom: 6px; color: var(--muted); }

/* страница с заголовком */
.page-head { background: var(--ink); color: var(--white); padding: 48px 0 56px; }
.page-head h1 { margin: 0; font-family: 'Unbounded', 'Arial Black', sans-serif; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; letter-spacing: -.03em; }
.page-head p { margin: 18px 0 0; max-width: 680px; color: #c9cec4; font-size: 20px; }

/* вопросы */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 600; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 16px; font-size: 26px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 0 20px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }

/* статьи */
.posts { display: grid; gap: 16px; }
.post-card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; }
.post-card:hover { border-color: var(--ink); }
.post-card time { font-size: 15px; color: var(--muted); }
.post-card h3 { margin: 6px 0 8px; font-size: 23px; }
.post-card p { margin: 0; color: var(--muted); }
.article { max-width: 760px; margin: 0 auto; padding: 48px 24px 24px; }
.article h2 { font-size: 27px; margin: 40px 0 14px; }
.article p, .article li { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 1.3em; }
.article .lead { font-size: 21px; }
.article .box { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin: 24px 0; }
.article .box p:last-child { margin: 0; }
.article time { color: var(--muted); font-size: 15px; }

/* мессенджеры */
.msgr { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.msgr a { display: inline-block; padding: 12px 20px; border-radius: 12px; background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none; }
.msgr a.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.cta { background: var(--ink); color: var(--white); border-radius: 26px; padding: 36px; margin: 56px 0 0; }
.cta h2 { margin: 0 0 8px; }
.cta p { margin: 0; color: #c9cec4; }

@media (max-width: 640px) {
  .top .wrap { padding-top: 14px; padding-bottom: 12px; row-gap: 10px; }
  .top nav { gap: 6px 16px; font-size: 15px; }
  .cta { padding: 26px 20px; }
}
