:root {
  --bg: #f4f1ea;
  --paper: #ffffff;
  --text: #1e1f23;
  --muted: #667085;
  --line: #e6e1d8;
  --accent: #111111;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, 100%);
}

.site-header {
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap,
.header-right {
  display: flex;
  align-items: center;
}

.nav-wrap {
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.header-right {
  gap: 18px;
}

.logo {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.logo span {
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.hero {
  padding: 88px 0 48px;
}

.label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.1rem;
}

.intro {
  font-size: 1.12rem;
  color: #444c5c;
  max-width: 720px;
  margin-bottom: 24px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-row span {
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.meta-row span:last-child {
  border-right: 0;
}

.content-block {
  padding: 12px 0 80px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 320px;
  gap: 28px;
  align-items: start;
}

.article-card,
.side-box {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-card {
  border-radius: 24px;
  overflow: hidden;
}

.article-intro,
.article-section {
  padding: 34px;
}

.article-section + .article-section {
  border-top: 1px solid var(--line);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
}

.stats-strip div {
  padding: 24px;
}

.stats-strip div + div {
  border-left: 1px solid var(--line);
}

.stats-strip strong,
.feature-item h3,
.topic-card h3 {
  display: block;
  margin-bottom: 8px;
}

.stats-strip span,
p,
li {
  color: #4d5563;
}

.feature-list,
.topic-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.feature-item,
.topic-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: #fffdfa;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.side-box {
  border-radius: 20px;
  padding: 24px;
}

.side-box ul {
  margin: 0;
  padding-left: 18px;
}

.button {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

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

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

@media (max-width: 960px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stats-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer-inner,
  .nav-wrap,
  .header-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 56px;
  }

  .article-intro,
  .article-section,
  .side-box {
    padding: 24px;
  }

  h1 {
    max-width: none;
  }
}
