/* Один файл стилей. Никаких внешних шрифтов и библиотек: сайт работает без
   сети, CSP разрешает только свои файлы. */

:root {
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --ink: #16221c;
  --muted: #5b665f;
  --line: #ddd6c8;
  --green: #1f5c43;
  --green-dark: #164231;
  --sand: #e9dfc9;
  --yellow: #f2c94c;
  --radius: 18px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 650;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0.35em 0; }

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

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 100; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* Header */

.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.top__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 650;
  line-height: 1.15; letter-spacing: -0.01em;
}

.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

.brand__text { max-width: 150px; font-size: 0.92rem; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }

.nav a {
  color: var(--ink); text-decoration: none;
  padding: 8px 0; font-size: 0.95rem; border-bottom: 2px solid transparent;
}
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { border-color: var(--green); font-weight: 600; }

.top__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); padding: 0; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  background: var(--green); color: #fff;
  transition: background 120ms ease, transform 120ms ease;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--sm { padding: 9px 16px; font-size: 0.92rem; }

/* Sections */

.section { padding: 72px 0; }
.section--top { padding-top: 56px; }
.section--muted { background: var(--sand); }
.section--quote { padding: 24px 0 72px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.75rem; font-weight: 650; color: var(--green);
  margin-bottom: 12px;
}

.status {
  display: inline-block; margin-bottom: 18px;
  padding: 7px 14px; border-radius: 999px;
  background: #e3efdf; color: var(--green-dark);
  font-size: 0.85rem; font-weight: 650;
}

.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 62ch; color: #334039; }
.note { font-size: 0.9rem; color: var(--muted); max-width: 70ch; }

blockquote {
  margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line);
}
blockquote p {
  font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25;
  letter-spacing: -0.02em; max-width: 28ch; margin-bottom: 16px;
}
blockquote footer { color: var(--muted); font-size: 0.95rem; }

/* Hero */

.hero { padding: 56px 0 40px; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero__media { margin: 0; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}

/* Facts */

.facts {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts li { padding: 20px 18px 20px 0; margin: 0; }
.facts strong { display: block; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.facts span { color: var(--muted); font-size: 0.92rem; }

/* Cards and grids */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--media { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 36px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h2, .card h3 { margin-bottom: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--accent { border-color: var(--green); }
.grid--media figure { margin: 0; }
.grid--media figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.grid--media img { border-radius: var(--radius); border: 1px solid var(--line); }

.list, .checklist { list-style: none; padding: 0; }
.list li { padding-left: 0; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}

.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 32px;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--muted); max-width: 56ch; }

/* Steps */

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  list-style: none; padding: 0; counter-reset: step;
}
.steps li {
  counter-increment: step; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 0;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 650; font-size: 0.9rem;
  margin-bottom: 12px;
}
.steps strong { display: block; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 0.95rem; }

/* Form */

.form-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }

.form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.field legend { padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; font: inherit; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green); outline: 2px solid rgba(31, 92, 67, 0.18);
}
.choice { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; margin: 6px 0; font-weight: 400; }
.choice input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.choice--consent { color: var(--muted); font-size: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: 0.95rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--green); }
.form__status.is-error { color: #a23030; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Tables */

.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* People and filters */

.filters { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 28px; align-items: end; }
.filters__group { display: grid; gap: 4px; }
.filters__group label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.filters__group select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font: inherit; color: var(--ink); min-width: 170px;
}
.filters__reset { background: none; border: 0; font: inherit; color: var(--green-dark); text-decoration: underline; cursor: pointer; padding: 10px 0; }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.person h2 { font-size: 1.2rem; margin-bottom: 8px; }
.person p { margin: 0; color: #334039; font-size: 0.97rem; }
.person[hidden] { display: none; }

/* Footer */

.footer { background: var(--ink); color: #e9e4d8; margin-top: 40px; }
.footer a { color: #fff; }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px;
  padding: 44px 0 28px;
}
.footer__brand { font-weight: 650; font-size: 1.1rem; margin-bottom: 6px; }
.footer__meta { color: #b9b2a2; font-size: 0.92rem; }
.footer__links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer__links li { margin: 0 0 8px; }
.footer__legal { border-top: 1px solid #3a453e; padding: 16px 0 28px; font-size: 0.82rem; color: #b9b2a2; }
.footer__legal p { margin: 0; }

/* Responsive */

@media (max-width: 960px) {
  .hero__inner, .form-layout, .grid--media { grid-template-columns: 1fr; gap: 28px; }
  .grid--3, .people { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .top__actions { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 20px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .brand__text { max-width: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 32px 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .grid--2, .grid--3, .people, .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 24px; }
  .form { padding: 20px; }
  .footer__inner { grid-template-columns: 1fr; padding-top: 32px; }
  .footer__links { columns: 1; }
  .top__actions .btn--sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
