:root {
  --ink: #17211d;
  --muted: #68736e;
  --paper: #f6f1e8;
  --paper-2: #fffaf1;
  --sage: #8fa88f;
  --olive: #31483a;
  --line: #ded5c4;
  --terracotta: #b8674d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  width: min(1240px, calc(100% - 36px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.logo {
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.12em;
}

nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.language {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.hero {
  width: min(1240px, calc(100% - 36px));
  margin: 56px auto 90px;
}

.hero-label {
  width: fit-content;
  margin-bottom: 28px;
  padding: 9px 14px;
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1160px;
  margin-bottom: 36px;
  font-size: clamp(3.2rem, 8vw, 8.4rem);
  line-height: 0.91;
  letter-spacing: -0.08em;
  font-weight: 500;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.hero-bottom p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.8;
}

.round-link {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  padding: 22px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.focus,
.research,
.advisory,
.magazine,
footer {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto 96px;
}

.focus {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.focus-card {
  min-height: 390px;
  padding: 32px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.focus-card span {
  color: var(--terracotta);
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.focus-card h2 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
  font-weight: 500;
}

.focus-card p,
.research-list p,
.advisory-card p,
.steps p,
.magazine p,
footer p {
  color: var(--muted);
  line-height: 1.72;
}

.primary-card {
  background: var(--olive);
  color: white;
}

.primary-card p {
  color: rgba(255, 255, 255, 0.76);
}

.section-title {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 40px;
  margin-bottom: 32px;
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.section-title p,
footer > div > p:first-child,
.magazine article > p:first-child {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--terracotta);
}

.section-title h2,
.advisory-card h2,
footer h2 {
  font-size: clamp(2.2rem, 4.8vw, 5.5rem);
  line-height: 0.96;
  font-weight: 500;
}

.research-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.quote-block {
  padding: 34px;
  background: var(--sage);
  color: white;
  font-size: 1.7rem;
  line-height: 1.25;
}

.research-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.research-list article {
  padding: 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.research-list h3,
.magazine h3 {
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 500;
}

.advisory {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.advisory-card {
  padding: 34px;
  background: var(--terracotta);
  color: white;
}

.advisory-card p {
  color: rgba(255, 255, 255, 0.82);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.steps li {
  padding: 24px;
  background: var(--paper-2);
  border-left: 5px solid var(--olive);
}

.steps span {
  display: block;
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.magazine {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.magazine article {
  padding: 34px;
  min-height: 300px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

footer {
  margin-bottom: 28px;
  padding: 36px;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.contacts {
  display: grid;
  align-content: center;
  gap: 12px;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

@media (max-width: 860px) {
  .topbar,
  .hero-bottom,
  .focus,
  .section-title,
  .research-grid,
  .research-list,
  .advisory,
  .magazine,
  footer {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .round-link {
    width: 180px;
  }

  footer {
    display: grid;
  }
}
