:root {
  --bg: #f7f4ef;
  --paper: #fffaf2;
  --ink: #171411;
  --muted: #746d64;
  --line: rgba(23, 20, 17, 0.12);
  --line-strong: rgba(23, 20, 17, 0.2);
  --accent: #ff4f5e;
  --accent-dark: #d93446;
  --blue: #4169e1;
  --shadow: 0 24px 70px rgba(45, 33, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 79, 94, 0.16), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(65, 105, 225, 0.12), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: blur(18px);
}

.top-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff4f5e, #ffb347 48%, #4169e1);
  box-shadow: 0 8px 18px rgba(255, 79, 94, 0.26);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav a,
.lang {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  background: transparent;
}

.top-nav a:hover,
.lang:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.lang {
  cursor: pointer;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(45, 33, 22, 0.06);
}

.btn:hover {
  border-color: rgba(23, 20, 17, 0.34);
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

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

.btn svg {
  width: 19px;
  height: 19px;
}

.block {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.block-soft {
  background: rgba(255, 250, 242, 0.5);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.block-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

kbd {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.72);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88em;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 24px, 1120px);
  }

  .top-inner {
    min-height: 62px;
  }

  .top-nav {
    gap: 2px;
  }

  .top-nav a {
    display: none;
  }

  .block {
    padding: 54px 0;
  }

  .footer {
    flex-direction: column;
  }
}
