/* levrazov.ru — общий стиль. Без внешних шрифтов и скриптов. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #141820;
  --muted: #586174;
  --border: #e1e5ec;
  --accent: #0f766e;
  --accent-hover: #0b5f58;
  --accent-contrast: #ffffff;
  --accent-soft: #e3f3f0;
  --code-bg: #10151d;
  --code-text: #d7e0ea;
  --code-dim: #7d8a9c;
  --code-accent: #5eead4;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius: 14px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1015;
    --surface: #151a22;
    --surface-2: #1b212b;
    --text: #e7ebf1;
    --muted: #9ba5b5;
    --border: #262d39;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-contrast: #062a26;
    --accent-soft: #0f2c29;
    --code-bg: #0a0d12;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.bm-bg {
  fill: var(--accent);
}

.bm-fg {
  fill: none;
  stroke: var(--accent-contrast);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav a.nav-cta {
  color: var(--accent-contrast);
  background: var(--accent);
}

.nav a.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast);
}

@media (max-width: 640px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
}

/* Первый экран */

.hero {
  padding: 72px 0 56px;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero {
    padding: 44px 0 36px;
  }
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

@media (max-width: 520px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.facts div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.facts dt {
  font-weight: 700;
  font-size: 15px;
}

.facts dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.terminal {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a4352;
}

.terminal pre {
  margin: 0;
  padding: 18px 20px 22px;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
}

.terminal .prompt {
  color: var(--code-accent);
}

.terminal .dim {
  color: var(--code-dim);
}

/* Секции */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  .section {
    padding: 52px 0;
  }
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(30px, 4.4vw, 40px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}

.section-alt .card {
  background: var(--bg);
}

.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.tags li {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px 10px;
}

.card-link {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  font-size: 15px;
}

/* Подход */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.principles li {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.principles strong {
  display: block;
  margin-bottom: 2px;
}

.principles span {
  color: var(--muted);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 14px;
}

.note {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* Обо мне */

.about-text p {
  font-size: 18px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.timeline li:last-child {
  border-bottom: 0;
}

@media (max-width: 520px) {
  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

.timeline .when {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  padding-top: 1px;
}

.timeline .what {
  font-weight: 600;
}

.timeline .where {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 15px;
}

.subhead {
  font-size: 20px;
  margin: 0 0 8px;
}

.about-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 36px;
}

@media (max-width: 860px) {
  .about-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* Контакты */

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 20px;
}

.contact-actions .btn {
  min-width: 200px;
}

@media (max-width: 520px) {
  .contact-actions .btn {
    width: 100%;
  }
}

.legal-line {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.requisites {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--muted);
}

.requisites p {
  margin: 0 0 4px;
}

/* Подвал */

.site-footer {
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.disclaimer {
  flex-basis: 100%;
  margin: 0;
}

/* Юридические страницы */

.doc {
  max-width: 780px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.doc h1 {
  font-size: clamp(30px, 5vw, 40px);
  margin-bottom: 8px;
}

.doc .doc-date {
  color: var(--muted);
  margin-bottom: 32px;
}

.doc h2 {
  font-size: 21px;
  margin: 32px 0 10px;
}

.doc p,
.doc li {
  font-size: 16px;
}

.doc ul {
  padding-left: 22px;
  margin: 0 0 1em;
}

.doc li {
  margin-bottom: 6px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 15px;
}

.error-page {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.error-page h1 {
  font-size: clamp(36px, 6vw, 52px);
  margin-bottom: 12px;
}
