:root {
  --accent: #1f5e3d;
  --ink: #17231c;
  --paper: #fbfcfa;
  --line: #dde6e0;
  --soft: #f2f7f3;
  --measure: 1060px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.57;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .6rem 1rem; z-index: 10; }

/* ---------- Шапка ---------- */

.top-bar {
  border-bottom: 2px solid var(--ink);
  padding: 1.2rem 1rem .8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  max-width: var(--measure);
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}
.top-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-bottom: .2rem;
  border-bottom: 2px solid transparent;
}
.top-nav a:hover, .top-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

/* ---------- Полоса набора ---------- */

.site-main { max-width: var(--measure); margin: 0 auto; padding: 2rem 1rem 3rem; }
.site-main > section, .site-main > article, .site-main > figure { margin: 0 0 2.6rem; }

h1 { font-size: 41px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .6rem; text-wrap: balance; }
h2 { font-size: 25px; font-weight: 700; line-height: 1.25; margin: 2rem 0 .6rem; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 700; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }

.article-body p, .policy-body p { max-width: 68ch; }
.intro-text { font-size: 20px; color: var(--ink); opacity: .85; max-width: 62ch; }
.meta { font-size: 14px; opacity: .6; }

/* ---------- Обложка ---------- */

.page-intro {
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 1rem;
}
.hero-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.2rem; }
.hero-text { max-width: var(--measure); margin: 0 auto; }
.inline-image { margin: 1.4rem 0; border-radius: var(--radius); }

/* ---------- Карточки и ленты ---------- */

.items { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.item { border-top: 3px solid var(--accent); padding-top: .9rem; }
.item .card-image { border-radius: var(--radius); margin-bottom: .7rem; aspect-ratio: 3/2; object-fit: cover; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item h3 a:hover { color: var(--accent); }
.item p { font-size: 16px; opacity: .8; }
.more { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }

.index-list ul { list-style: none; margin: 0; padding: 0; }
.index-list li { display: flex; gap: 1rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.index-list time { flex: none; font-size: 14px; opacity: .55; font-variant-numeric: tabular-nums; }
.index-list a { color: var(--ink); text-decoration: none; }
.index-list a:hover { color: var(--accent); }

/* ---------- Прочие блоки ---------- */

.quote-block { margin: 2rem 0; padding-left: 1.2rem; border-left: 3px solid var(--accent); }
.quote-block blockquote { margin: 0; font-size: 20px; }
.quote-block figcaption { font-size: 14px; opacity: .6; margin-top: .5rem; }

.key-numbers { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.key-numbers div { background: var(--paper); padding: 1rem; }
.key-numbers strong { display: block; font-size: 32px; color: var(--accent); font-variant-numeric: tabular-nums; }
.key-numbers span { font-size: 14px; opacity: .7; }

.qa-list details { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.qa-list summary { cursor: pointer; font-weight: 700; }

.cta, .signup { background: var(--soft); padding: 1.6rem; border-radius: var(--radius); }
.cta a { font-weight: 700; }

.people ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.people li { border-left: 2px solid var(--line); padding-left: .8rem; }
.people span { display: block; font-size: 14px; opacity: .65; }

.map-embed { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.map-embed iframe { width: 100%; min-height: 260px; border: 1px solid var(--line); border-radius: var(--radius); }
.map-embed .hours { list-style: none; margin: .8rem 0 0; padding: 0; font-size: 15px; }

/* ---------- Форма ---------- */

.write-form form { display: grid; gap: 1rem; max-width: 34rem; }
.write-form label { display: grid; gap: .35rem; font-size: 15px; }
.write-form input, .write-form textarea {
  font: inherit;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.write-form input:focus, .write-form textarea:focus { border-color: var(--accent); outline: none; }
.write-form button {
  font: inherit;
  font-weight: 700;
  padding: .7rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  justify-self: start;
}

/* ---------- Подвал ---------- */

.footer { border-top: 1px solid var(--line); background: var(--soft); margin-top: 3rem; }
.footer-cols { max-width: var(--measure); margin: 0 auto; padding: 2rem 1rem 1rem; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-brand { font-weight: 700; font-size: 19px; }
.footer-head { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer a { color: var(--ink); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--accent); }
.footer address { font-style: normal; font-size: 15px; opacity: .8; }
.disclaimer, .rights { max-width: var(--measure); margin: 0 auto; padding: 0 1rem .6rem; font-size: 14px; opacity: .6; }
.rights { padding-bottom: 1.6rem; }

/* ---------- Кукибаннер ---------- */

.cookie-bar {
  position: fixed;
  inset: auto 1rem 1rem;
  max-width: 34rem;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 34px rgba(0,0,0,.16);
  font-size: 15px;
  z-index: 20;
}
.cookie-actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.cookie-actions button { font: inherit; padding: .45rem 1rem; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--paper); cursor: pointer; }
.cookie-actions button[data-consent="all"] { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 640px) {
  .top-bar { flex-direction: column; align-items: flex-start; gap: .7rem; }
  h1 { font-size: 31px; }
  .page-intro { margin-inline: 0; }
}

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