@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}

/* Токены те же, что у остальных лендингов (sites/engineers) — база знаний не должна
   выглядеть отдельным сайтом. */
:root {
  --bg: #f8f7f3;
  --text: #34312d;
  --text-2: #75726d;
  --invert: #f8f7f3;
  --core: #fe7d31;
  --btn-dark: #34312d;
  --divider: #e6e3de;
  --card: #ffffff;

  --maxw: 1160px;
  --maxw-text: 720px;
  --radius-sm: 14px;
  --radius: 20px;
  --pill: 999px;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

.container--text {
  max-width: calc(var(--maxw-text) + 48px);
}

/* ===== Шапка и подвал ===== */
.header {
  padding-block: 20px;
  border-bottom: 1px solid var(--divider);
  background: var(--bg);
}

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

.logo__img {
  display: block;
  height: 22px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 15px;
  color: var(--text-2);
}

.nav__links a {
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn--dark {
  background: var(--btn-dark);
  color: var(--invert);
}

.footer {
  margin-top: 80px;
  padding-block: 40px 28px;
  border-top: 1px solid var(--divider);
  font-size: 15px;
  color: var(--text-2);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.footer__col {
  max-width: 420px;
}

.footer__note {
  margin: 12px 0 0;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  text-decoration: none;
}

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

.footer__copy {
  margin-top: 28px;
}

/* ===== Индекс ===== */
.hero {
  padding-block: 64px 32px;
}

.hero__title {
  margin: 0;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 16px 0 0;
  max-width: 620px;
  font-size: 19px;
  color: var(--text-2);
}

.list {
  padding-bottom: 8px;
}

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--core);
}

.card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 20px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card__date {
  font-size: 13px;
  color: var(--text-2);
}

.card__title {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.card__lead {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-2);
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--bg);
  border: 1px solid var(--divider);
  font-size: 13px;
  color: var(--text-2);
}

.cards--compact .card__img {
  aspect-ratio: 3 / 1;
}

/* ===== Статья ===== */
.article {
  padding-block: 28px 0;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.breadcrumbs a {
  text-decoration: none;
}

.article__head {
  margin-block: 24px 32px;
}

.article__head h1 {
  margin: 14px 0 0;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.prose > * {
  margin-block: 0 20px;
}

.prose h2 {
  margin-block: 44px 16px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin-block: 32px 12px;
  font-size: 21px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  margin-block: 28px;
}

.prose strong {
  font-weight: 600;
}

.prose a {
  color: var(--core);
}

.cta {
  margin-top: 48px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta__text {
  margin: 0;
  max-width: 420px;
  font-size: 17px;
}

.more {
  margin-top: 64px;
}

.more__title {
  margin: 0 0 20px;
  font-size: 22px;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav__links {
    display: none;
  }

  .hero {
    padding-block: 40px 24px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
