/* Markdownlog: тёмная инженерная тема, моноширинные акценты, зелёный маркер */
:root {
  --bg: #0d1117;
  --bg-alt: #121923;
  --ink: #e6edf3;
  --muted: #9aa7b5;
  --accent: #3ddc97;
  --accent-ink: #06130d;
  --line: #243040;
  --card: #161d27;
  --radius: 10px;
  --mono: "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, "SF Mono", Menlo, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h2::before { content: "## "; color: var(--accent); font-family: var(--mono); font-weight: 500; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
section { padding: 5rem 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin-bottom: 2.5rem; }
.center .intro { margin-inline: auto; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem 1.25rem;
  background: rgba(13, 17, 23, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--mono); font-weight: 700; font-size: 1.1rem; }
.logo svg { width: 1.6em; height: 1.6em; color: var(--accent); }
.menu { display: flex; gap: 1.25rem; margin-left: 1rem; color: var(--muted); font-family: var(--mono); font-size: .9rem; }
.menu a::before { content: "/"; color: var(--accent); margin-right: .15em; }
.menu a:hover { color: var(--ink); }
.right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; gap: .25rem; font-family: var(--mono); }
.lang a { padding: .2rem .45rem; border-radius: 4px; font-size: .8rem; color: var(--muted); }
.lang a[aria-current] { background: var(--accent); color: var(--accent-ink); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.3rem; border-radius: 6px;
  font-weight: 600; border: 1px solid var(--line); white-space: nowrap;
  font-family: var(--mono); font-size: .95rem;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #5ae8ab; }
.btn.ghost { background: transparent; }
.top .btn { padding: .5rem 1rem; font-size: .85rem; }

/* Первый экран */
.hero { padding: 6rem 0 4rem; }
.hero .wrap { max-width: 900px; }
.eyebrow { font-family: var(--mono); font-size: .85rem; color: var(--accent); }
.eyebrow::before { content: "$ "; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2rem 0 3rem; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 1rem; justify-content: start; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; display: flex; flex-direction: column; }
.stats strong { font-family: var(--mono); font-size: 1.3rem; color: var(--accent); }
.stats span { color: var(--muted); font-size: .9rem; }

/* Услуги */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.card:hover { border-color: var(--accent); }
.card p { color: var(--muted); }
.card ul li { position: relative; padding-left: 1.3rem; font-size: .95rem; margin-bottom: .35rem; }
.card ul li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-weight: 700; }
.icon { width: 2.6rem; height: 2.6rem; border-radius: 8px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--accent); margin-bottom: 1rem; }
.icon svg { width: 1.4rem; height: 1.4rem; }
.icon.small { width: 2rem; height: 2rem; margin: 0; flex: none; background: var(--accent); border: 0; color: var(--accent-ink); }

/* Почему мы */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem 3rem; }
.why li { display: flex; gap: 1rem; }
.why p { color: var(--muted); margin: 0; }

/* Процесс */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.steps li { border-left: 2px solid var(--line); padding-left: 1rem; }
.num { font-family: var(--mono); font-size: 1rem; color: var(--accent); display: block; margin-bottom: .5rem; }
.num::before { content: "step_"; color: var(--muted); }
.steps p { color: var(--muted); margin: 0; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 1rem 1.2rem; margin-bottom: .75rem; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: ">"; color: var(--accent); font-family: var(--mono); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq p { color: var(--muted); margin: .75rem 0 0; }

/* Контакты */
.contacts { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0 1.5rem; }
.note { color: var(--muted); font-size: .95rem; font-family: var(--mono); }
.plain { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1.5rem; }
.plain a { text-decoration: underline; color: var(--accent); }

footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .9rem; font-family: var(--mono); background: var(--bg-alt); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
footer .lang a { color: var(--muted); }

@media (max-width: 800px) {
  .menu { display: none; }
  .top .btn { display: none; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .hero { padding-top: 3.5rem; }
}
