:root {
  --navy: #1B3A5C;
  --navy-dark: #142C47;
  --terra: #C4743E;
  --terra-light: #D08A4E;
  --steel: #5B7A99;
  --sage: #8A9A7B;
  --bg-warm: #F7F6F4;
  --text: #2E2E2E;
  --text-muted: #5A5A5A;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

.section-label {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 16px;
  font-weight: 500;
}

h2 { font-size: 34px; line-height: 1.2; font-weight: 700; margin-bottom: 20px; }
h2 + .lead { font-size: 18px; color: var(--text-muted); max-width: 640px; }
p.body-text { color: var(--text-muted); max-width: 640px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header and language switcher ---------- */
.site-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 32px 24px 0;
}

.topline-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.brand span { color: var(--terra-light); }

/* По умолчанию сайт одноязычный: переключатель скрыт.
   settings.js добавляет класс body.multilang, когда в настройках
   index.html включён режим нескольких языков. */
.language-switcher {
  display: none;
  align-items: center;
  gap: 8px;
}

body.multilang .language-switcher { display: flex; }

.language-link {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.language-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.language-link:active { transform: translateY(0); }

.language-link:focus-visible {
  outline: 3px solid var(--terra-light);
  outline-offset: 3px;
}

.language-link.is-active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.flag-icon {
  width: 26px;
  height: 19px;
  display: block;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* ---------- 1. Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 160px 24px 120px;
  max-width: 1120px;
  margin: 0 auto;
}

.hero h1 { font-size: 52px; line-height: 1.12; font-weight: 700; max-width: 720px; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--terra-light); }
.hero p { font-size: 19px; color: rgba(255,255,255,0.78); max-width: 560px; }
.hero-rule { width: 64px; height: 4px; background: var(--terra); margin-bottom: 32px; }

/* ---------- 2. People ---------- */
.people { background: var(--white); }
.people-grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }

/* ---------- 3. Directions ---------- */
.directions { background: var(--bg-warm); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px 36px;
  border-top: 4px solid var(--steel);
  box-shadow: 0 1px 3px rgba(27,58,92,0.06);
}

.card.c2 { border-top-color: var(--terra); }
.card.c3 { border-top-color: var(--sage); }
.card-mark { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.card.c1 .card-mark { color: var(--steel); }
.card.c2 .card-mark { color: var(--terra); }
.card.c3 .card-mark { color: var(--sage); }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.card p { font-size: 15px; color: var(--text-muted); }

/* ---------- 4. Process ---------- */
.process { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; position: relative; }
.step { padding-top: 28px; position: relative; }

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 24px;
  height: 2px;
  background: #E4E1DC;
}

.step:first-child::before { background: var(--terra); }

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin: -14px 0 20px;
  position: relative;
  z-index: 1;
}

.step:first-child .step-num { background: var(--terra); }
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.step p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- 5. Principles ---------- */
.principles { background: var(--navy); color: var(--white); }
.principles .section-label { color: var(--terra-light); }
.principles h2 { color: var(--white); }
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }

.principle {
  border-left: 3px solid var(--terra);
  padding-left: 28px;
}

.principle h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.principle p { color: rgba(255,255,255,0.75); font-size: 15.5px; max-width: 460px; }

/* ---------- 6. Participation ---------- */
.participate { background: var(--bg-warm); text-align: center; }
.participate p { margin: 0 auto; }

/* ---------- 7. Contacts ---------- */
.contacts { background: var(--white); }

.contacts-box {
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.contacts-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.contacts-box dl { font-size: 15.5px; }
.contacts-box dt { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; margin-top: 18px; }
.contacts-box dt:first-child { margin-top: 0; }
.contacts-box dd { font-weight: 500; }
.contacts-box a { color: var(--terra); text-decoration: none; font-size: 20px; font-weight: 700; }
.contacts-box a:hover { text-decoration: underline; }
.contacts-box a:focus-visible, .participate a:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.62);
  font-size: 13.5px;
  padding: 28px 0;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero h1 { font-size: 36px; }
  .hero-inner { padding: 120px 24px 80px; }
  .people-grid, .principles-grid, .contacts-box { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  h2 { font-size: 28px; }
}

@media (max-width: 560px) {
  .site-topline { padding-top: 24px; }
  .topline-inner { gap: 12px; }
  .language-switcher { gap: 4px; }
  .steps { grid-template-columns: 1fr; }
  .contacts-box { padding: 32px 24px; }
}
