/* Оформление отдельных страниц (услуги и статьи). Цвета и шрифты — как на главной. */
:root {
  --bg: #0f1012; --surface: #17181b; --surface-2: #1f2024; --ink: #f3efe7; --muted: #a7a399;
  --line: #2a2b30; --accent: #d4b47c; --accent-soft: rgba(212, 180, 124, .14); --radius: 22px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* якоря не прячутся под липкой шапкой */
[id] { scroll-margin-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Unbounded, sans-serif; font-weight: 700; line-height: 1.18; margin: 0; letter-spacing: -.01em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.section { padding: 80px 0; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); }
.section-head p { color: var(--muted); margin: 14px 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font: 700 16px Manrope, sans-serif; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, #ecd5a6, var(--accent) 55%, #b8945a); color: #16120b; box-shadow: 0 12px 28px -12px rgba(212, 180, 124, .55); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 10; background: rgba(15, 16, 18, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { font: 700 20px Unbounded, sans-serif; text-decoration: none; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #ecd5a6, var(--accent) 55%, #b8945a); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 7px 7px 11px; border: 2.5px solid #16120b; border-radius: 4px; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--ink); }

/* Хлебные крошки */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Первый экран */
.hero { padding: 40px 0 72px; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(30px, 3.6vw, 44px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 22px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts b { display: block; font: 700 24px Unbounded, sans-serif; }
.facts span { color: var(--muted); font-size: 14px; }
.browser { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

/* Карточки «что входит» */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .ico { font-size: 28px; line-height: 1; }
.card h3 { font-size: 18px; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Пример работы */
.example { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.example + .example { margin-top: 20px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: #ecd5a6; margin-bottom: 12px; }
.tag.demo { background: var(--surface-2); color: var(--muted); }
.example h3 { font-size: 22px; margin-bottom: 10px; }
.example p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }

/* Цены */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.price.featured { border-color: var(--accent); background: linear-gradient(160deg, #2a2418 0%, var(--surface) 70%); }
.price h3 { font-size: 18px; }
.price-sum { font: 700 40px Unbounded, sans-serif; margin: 14px 0 4px; }
.price-note { color: var(--muted); font-size: 14px; }
.price ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.price li { padding-left: 26px; position: relative; font-size: 15px; }
.price li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--accent); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step::before { counter-increment: step; content: "0" counter(step); font: 700 14px Unbounded, sans-serif; color: var(--accent); }
.step h3 { font-size: 17px; margin: 10px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Вопросы */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Статья */
.article h1 { font-size: clamp(28px, 4.2vw, 46px); margin-bottom: 18px; }
.article .lead { max-width: none; margin: 0 0 28px; }
.article h2 { font-size: clamp(22px, 3vw, 30px); margin: 48px 0 16px; }
.article h3 { font-size: 19px; margin: 28px 0 10px; }
.article p, .article li { color: #ddd8ce; }
.article ul, .article ol { padding-left: 22px; display: grid; gap: 8px; }
.article strong { color: var(--ink); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin: 0 0 8px; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; color: var(--muted); }
.toc a { color: var(--muted); }
.note { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 20px; margin: 22px 0; color: #ecd5a6; }
.prompt { font-family: ui-monospace, Consolas, monospace; font-size: 15px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); white-space: pre-wrap; }
.funnel { display: grid; gap: 10px; margin: 24px 0; }
.funnel div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-inline: auto; width: 100%; }
.funnel div:nth-child(2) { width: 90%; } .funnel div:nth-child(3) { width: 80%; } .funnel div:nth-child(4) { width: 70%; } .funnel div:nth-child(5) { width: 60%; }
.funnel b { color: var(--accent); }

/* Призыв */
.cta { background: radial-gradient(circle at 85% 0%, rgba(212, 180, 124, .18), transparent 55%), linear-gradient(160deg, #1c1a16 0%, #121214 75%); border: 1px solid #2f2b24; border-radius: 32px; padding: 64px 40px; text-align: center; }
.cta h2 { font-size: clamp(26px, 3.8vw, 40px); }
.cta p { color: #d8d2c6; max-width: 560px; margin: 16px auto 30px; }
.cta .actions { justify-content: center; }

/* Подвал */
.footer { padding: 44px 0; border-top: 1px solid var(--line); margin-top: 80px; }
.footer .container { display: grid; gap: 18px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 10px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; text-decoration: none; color: var(--muted); font-size: 15px; }
.footer-nav a:hover { color: var(--ink); }
.footer-nav .footer-label { color: var(--ink); font-weight: 700; font-size: 14px; padding: 0 6px; display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a[aria-current="page"] { color: var(--accent); }
.footer small { color: var(--muted); }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero .container, .example { grid-template-columns: 1fr; }
  .grid, .prices { grid-template-columns: 1fr; max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .cta { padding: 48px 20px; border-radius: 24px; }
  .header .btn { display: none; }
  .funnel div { width: 100% !important; }
}
