@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #121417;
  --muted: #4d5662;
  --faint: #5b6470;
  --line: #e6e8eb;
  --line-soft: #eef0f2;
  --accent: #0f6b5c;
  --accent-dark: #0a4f44;
  --accent-tint: #e8f3f0;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.band { border-top: 1px solid var(--line); }
.band > .wrap {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
  display: flex;
  flex-direction: column;
}
.band h2 { font-size: 28px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }

.top { border-bottom: 1px solid var(--line); }
.top > .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand span { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nl { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.nl:hover { color: var(--ink); }
.langs { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  border-radius: 8px;
  color: var(--faint);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--line-soft); }

.hero {
  padding-top: clamp(48px, 8vw, 104px);
  padding-bottom: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}
.hero > div { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; }
.lead { max-width: 520px; font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-p { background: var(--accent); color: #ffffff; font-weight: 600; }
.btn-p:hover { background: var(--accent-dark); color: #ffffff; }
.btn-s { border: 1px solid #d3d8de; color: var(--ink); font-weight: 500; }
.btn-s:hover { border-color: #9aa3ad; color: var(--ink); }

.code {
  min-width: 0;
  border-radius: 14px;
  background: #0f1b19;
  color: #d4e2de;
  box-shadow: 0 12px 32px rgba(15, 27, 25, 0.16);
  overflow: hidden;
}
.code figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #22332f;
  font-family: var(--mono);
  font-size: 12px;
  color: #8fa39d;
}
.code pre {
  margin: 0;
  padding: 18px 18px 20px 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  counter-reset: ln;
}
.code code { font: inherit; }
.code .l::before {
  counter-increment: ln;
  content: counter(ln);
  display: inline-block;
  width: 44px;
  padding-right: 14px;
  text-align: right;
  color: #50645e;
  user-select: none;
}
.k { color: #7fd3bf; }
.f { color: #9ecbff; }
.s { color: #f0c674; }

.services { gap: 36px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px 48px;
}
.service { display: flex; flex-direction: column; gap: 10px; }
.service .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service h3 { margin-top: 4px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.service p { font-size: 15px; color: var(--muted); }

.stack { gap: 28px; }
.stack dl { display: flex; flex-direction: column; }
.stack dl > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.stack dt { flex: 0 0 200px; color: var(--muted); font-size: 15px; }
.stack dd { flex: 1 1 280px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  font-size: 15px;
  font-weight: 500;
}
.chip img { display: block; }

.contact { background: #f6f8f7; }
.contact > .wrap { align-items: flex-start; gap: 14px; }
.contact p { max-width: 560px; color: var(--muted); }
.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot { border-top: 1px solid var(--line); }
.foot > .wrap {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--faint);
}

@media (max-width: 640px) {
  .nl { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .nl, .btn, .langs a { transition: none; }
}
