/* =========================================================
   «Важен каждый» — многостраничный макет
   Общие стили основного сайта
   ========================================================= */

@font-face {
  font-family: "Matryoshka";
  src: url("../assets/fonts/Matryoshka-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #3c4779;
  --navy-dark: #2e3761;
  --blue: #5782a2;
  --green: #7bbfad;
  --green-soft: #e8f4f0;
  --ink: #222221;
  --paper: #ffffff;
  --soft: #f5f5f3;
  --soft-2: #efefec;
  --line: #e3e3df;
  --muted: #6c6e78;
  --danger: #a13333;
  --ok: #2f7a63;
  --container: 1280px;
  --gutter: 40px;
  --radius: 28px;
  --radius-sm: 16px;
  --font-display: "Matryoshka", "Arial Narrow", sans-serif;
  --font-body: "Comfortaa", "Trebuchet MS", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 22px 60px rgba(34, 34, 33, .12);
}

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

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

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

[hidden] { display: none !important; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.container--narrow { max-width: 900px; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 5vw, 72px);
  line-height: .98;
  letter-spacing: .005em;
  color: var(--ink);
}

.display--navy { color: var(--navy); }

h2.display { font-size: clamp(38px, 4vw, 58px); }

h3 { font-size: 23px; font-weight: 700; line-height: 1.25; }

.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--green);
}

.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--navy); border-color: var(--navy); }
.btn--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--navy:hover, .btn--navy:focus-visible { background: var(--ink); border-color: var(--ink); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); font-weight: 700; }
.btn--light:hover { background: var(--green); border-color: var(--green); }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}
.link-arrow::after {
  content: "→";
  transition: transform .2s ease;
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Верхняя плашка и шапка ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 13px;
  line-height: 1.35;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
  padding-block: 7px;
}
.topbar__contacts { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.topbar a:hover { color: var(--blue); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 rgba(34, 34, 33, 0);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(34, 34, 33, .08); }
.header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}
.header-logo { display: block; flex: 0 0 auto; width: 232px; line-height: 0; }
.header-logo img { display: block; width: 100%; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 28px); }
.main-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 14.5px;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn { min-height: 42px; padding: 10px 20px; font-size: 14px; }
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14px;
}
.cart-link:hover { background: var(--soft); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.cart-count[data-empty="true"] { background: var(--soft-2); color: var(--muted); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px 10px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  padding: 96px 24px 32px;
  background: #fff;
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav a { font-size: 24px; }
.mobile-nav .btn { margin-top: 28px; width: 100%; }
.nav-open .burger { position: relative; z-index: 75; }

/* ---------- Хлебные крошки ---------- */

.breadcrumbs {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: #b8b8b2; }

/* ---------- Главный экран ---------- */

.hero-home {
  position: relative;
  overflow: hidden;
  padding: 58px 0 82px;
}
.hero-home__grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 54px;
  align-items: center;
}
.hero-home h1 { max-width: 690px; }
.hero-home .lead { max-width: 590px; margin-top: 24px; }
.hero-home__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-home__collage {
  position: relative;
  min-height: 520px;
}
.hero-home__img {
  position: absolute;
  display: block;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: 0 18px 50px rgba(34, 34, 33, .12);
}
.hero-home__img--1 { width: 54%; height: 68%; left: 0; top: 0; }
.hero-home__img--2 { width: 44%; height: 48%; right: 0; top: 14%; }
.hero-home__img--3 { width: 50%; height: 38%; left: 40%; bottom: 0; }
.hero-home__star {
  position: absolute;
  width: 120px;
  right: 4%;
  bottom: 4%;
  z-index: 2;
  animation: spin 28s linear infinite;
}
.hero-home__badge {
  position: absolute;
  z-index: 2;
  left: 2%;
  bottom: 9%;
  max-width: 210px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  transform: rotate(-3deg);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Секции ---------- */

.section { padding: 82px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy .display, .section--navy h3 { color: #fff; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}
.section-head__text { max-width: 650px; }
.section-head .lead { margin-top: 14px; }

/* ---------- Статистика ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 400;
  line-height: .9;
  color: var(--navy);
}
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- Карточки проектов ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }

.project-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.project-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-tile__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.project-tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-tile:hover .project-tile__media img { transform: scale(1.04); }
.project-tile__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 24px 26px; }
.project-tile h3 { font-size: 22px; }
.project-tile p { font-size: 15px; font-weight: 300; color: #42423f; }
.project-tile .link-arrow { margin-top: auto; padding-top: 10px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.project-tile__media .tag { position: absolute; top: 14px; left: 14px; }

/* ---------- Новости ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.news-tile { display: flex; flex-direction: column; gap: 14px; }
.news-tile__media { overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 10; background: var(--soft); }
.news-tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-tile:hover .news-tile__media img { transform: scale(1.035); }
.news-tile__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12px; }
.news-tile__meta span { position: relative; }
.news-tile__meta span + span::before { content: "·"; position: absolute; left: -10px; }
.news-tile h3 { font-size: 20px; }
.news-tile p { font-size: 14.5px; font-weight: 300; color: #4a4a47; }

.news-lead {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  border-radius: var(--radius);
  background: var(--soft);
  overflow: hidden;
}
.news-lead__media { height: 100%; min-height: 330px; }
.news-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.news-lead__body { padding: 34px 34px 34px 0; }
.news-lead h3 { font-size: clamp(22px, 2vw, 30px); }
.news-lead p { margin-top: 12px; color: #4a4a47; font-weight: 300; }

/* ---------- Люди ---------- */

.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.person-card { display: flex; flex-direction: column; gap: 12px; }
.person-card__photo {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4 / 4.6;
  background: var(--soft);
}
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card h3 { font-size: 18px; }
.person-card p { font-size: 13px; color: var(--muted); }

/* ---------- CTA ---------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 48px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}
.cta-band h2 { max-width: 650px; color: #fff; }
.cta-band p { max-width: 600px; margin-top: 10px; color: rgba(255, 255, 255, .78); font-weight: 300; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.cta-band .btn--outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta-band .btn--outline:hover { background: #fff; color: var(--navy); }

/* ---------- Партнёры ---------- */

.partner-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.partner-strip li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.partner-strip img { max-width: 100%; max-height: 48px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .25s; }
.partner-strip li:hover img { filter: none; opacity: 1; }

/* ---------- Фильтры ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.chip {
  min-height: 38px;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  transition: .2s;
}
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters__spacer { margin-left: auto; }
.select {
  height: 42px;
  padding: 0 38px 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* ---------- Страница-заголовок ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 52px;
  background: var(--soft);
}
.page-hero h1 { max-width: 920px; font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 4.8vw, 68px); line-height: .99; }
.page-hero .lead { max-width: 720px; margin-top: 18px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.page-hero__doodle { position: absolute; right: 4%; top: 20%; width: 140px; opacity: .9; pointer-events: none; }
.page-hero--plain { background: #fff; border-bottom: 1px solid var(--line); }

/* ---------- Статья / prose ---------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 320px;
  gap: 70px;
  justify-content: center;
}
.prose { font-size: 17px; font-weight: 300; line-height: 1.7; color: #33332f; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 42px; font-family: var(--font-display); font-size: 38px; font-weight: 400; line-height: 1.05; color: var(--navy); }
.prose h3 { margin-top: 32px; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose ol { padding-left: 22px; list-style: decimal; }
.prose blockquote {
  margin: 32px 0;
  padding: 22px 28px;
  border-left: 4px solid var(--green);
  background: var(--soft);
  border-radius: 0 18px 18px 0;
  font-size: 19px;
  color: var(--navy);
}
.prose img { border-radius: 22px; }
.prose a { color: var(--navy); text-decoration: underline; }
.prose table { margin-top: 24px; font-size: 14px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--soft); }

.article-cover { margin: 0 0 34px; overflow: hidden; border-radius: var(--radius); }
.article-cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; }

.aside-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}
.aside-card + .aside-card { margin-top: 18px; }
.aside-card h3 { margin-bottom: 12px; font-size: 17px; }
.aside-card p { font-size: 14px; font-weight: 300; color: var(--muted); }
.aside-card .btn { margin-top: 16px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.share span { font-size: 13px; color: var(--muted); }
.share button, .share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}
.share button:hover, .share a:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Документы ---------- */

.doc-group { margin-top: 38px; }
.doc-group h2 { margin-bottom: 12px; font-family: var(--font-display); font-size: 34px; font-weight: 400; }
.doc-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 130px 130px 130px;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.doc-item:last-child { border-bottom: 1px solid var(--line); }
.doc-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}
.doc-item h3 { font-size: 15px; }
.doc-item p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.doc-item .doc-meta { color: var(--muted); font-size: 13px; }
.doc-item .btn { justify-self: end; }

/* ---------- Формы ---------- */

.form-card {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > span, .field > label { font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  outline: 0;
  transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); }
.field input::placeholder, .field textarea::placeholder { color: #9b9b96; }
.field small { color: var(--muted); font-size: 11.5px; }
.field.is-error input, .field.is-error textarea, .field.is-error select { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 11.5px; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--navy); }
.checkbox a { color: var(--navy); text-decoration: underline; }
.form-note { color: var(--muted); font-size: 12px; }
.form-message { min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--navy); }
.form-message.is-error { color: var(--danger); }
.form-message.is-ok { color: var(--ok); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.contact-list dd { margin: 0; font-size: 18px; }
.contact-list a:hover { color: var(--navy); }

/* ---------- Партнёры / команда / документы ---------- */

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-split .display { max-width: 500px; }
.about-text p + p { margin-top: 18px; }
.about-text { font-weight: 300; color: #3f3f3b; }

.timeline { position: relative; display: grid; gap: 0; margin-top: 38px; }
.timeline__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline__year { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--navy); }
.timeline__item p { max-width: 700px; font-size: 15px; font-weight: 300; color: #4a4a47; }

.quote-block {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--soft);
}
.quote-block img { width: 120px; }
.quote-block blockquote { font-family: var(--font-display); font-size: 30px; line-height: 1.12; color: var(--navy); }
.quote-block cite { display: block; margin-top: 10px; font-family: var(--font-body); font-size: 13px; font-style: normal; color: var(--muted); }

.requisites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 30px;
  padding: 26px;
  border-radius: 22px;
  background: var(--soft);
  font-size: 14px;
}
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; }

/* ---------- Навигация по страницам ---------- */

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.pagination button, .pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}
.pagination .is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination button:hover { border-color: var(--navy); }

/* ---------- Пожертвование ---------- */

.donate-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; }
.donate-form__amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.amount-chip {
  min-height: 52px;
  padding: 10px 8px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-size: 16px;
  transition: .2s;
}
.amount-chip:hover { border-color: var(--navy); }
.amount-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.amount-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 4px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
}
.amount-custom input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 600; -moz-appearance: textfield; }
.amount-custom input::-webkit-outer-spin-button, .amount-custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-custom span { color: var(--muted); font-size: 14px; }
.monthly-toggle { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; cursor: pointer; }
.monthly-toggle input { width: 18px; height: 18px; accent-color: var(--navy); }
.pay-methods { display: grid; gap: 10px; margin-top: 8px; }
.pay-method {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  cursor: pointer;
}
.pay-method:has(input:checked) { border-color: var(--navy); background: var(--green-soft); }
.pay-method input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--navy); }
.pay-method small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; font-weight: 300; }

.donate-aside {
  position: sticky;
  top: 110px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}
.donate-aside h3 { color: #fff; }
.donate-aside p { margin-top: 10px; font-size: 13.5px; font-weight: 300; color: rgba(255, 255, 255, .78); }
.donate-aside ul { display: grid; gap: 9px; margin-top: 18px; font-size: 13px; }
.donate-aside li { padding-left: 20px; position: relative; }
.donate-aside li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.donate-aside .btn { margin-top: 22px; }

/* ---------- Модальное окно ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__overlay { position: absolute; inset: 0; background: rgba(34, 34, 33, .55); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  animation: modal-in .3s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
}
.modal__title { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--navy); }
.modal__text { margin-top: 10px; font-size: 14px; font-weight: 300; color: var(--muted); }
.modal .form-grid { margin-top: 20px; }
.modal__success { text-align: center; padding: 20px 0; }
.modal__success .modal__title { margin-top: 10px; }
.modal__check { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--green-soft); color: var(--ok); font-size: 30px; }

/* ---------- Cookie ---------- */

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
}
.cookie__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  width: min(100%, 1080px);
  margin-inline: auto;
  padding: 18px 22px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 18px 50px rgba(34, 34, 33, .22);
}
.cookie p { font-size: 12.5px; font-weight: 300; line-height: 1.45; }
.cookie a { text-decoration: underline; }
.cookie .btn { flex: 0 0 auto; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 300;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toast-in .25s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Пагинация новостей, пустые состояния ---------- */

.empty-state {
  padding: 60px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-weight: 300; }

.notice {
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--ok);
  font-size: 14px;
}
.notice--warn { background: #fdf1e5; color: #8a4d17; }

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

.site-footer { padding-top: 64px; border-top: 1px solid var(--line); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr .8fr .7fr .9fr 1.2fr;
  gap: 34px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { width: 46px; height: 46px; object-fit: contain; }
.footer-brand p { max-width: 420px; font-size: 13.5px; font-weight: 300; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-col h3 { margin-bottom: 3px; font-size: 14px; }
.footer-col a, .footer-col p { font-size: 13.5px; font-weight: 300; line-height: 1.4; }
.footer-col a:hover { color: var(--navy); }
.footer-socials { display: flex; gap: 8px; margin-top: 6px; }
.footer-socials a { display: inline-flex; color: var(--ink); }
.footer-socials a:hover { color: var(--navy); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a:hover { color: var(--navy); }
.footer-biglogo { display: block; width: min(900px, calc(100% - 80px)); margin: 26px auto 0; line-height: 0; }
.footer-biglogo img { display: block; width: 100%; height: auto; }

.subscribe-form { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.subscribe-form input[type="email"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  outline: 0;
}
.subscribe-form input:focus { border-color: var(--navy); }
.subscribe-form .btn { min-height: 42px; font-size: 13px; }

/* ---------- Мобильное меню / адаптив ---------- */

@media (max-width: 1120px) {
  :root { --gutter: 28px; }
  .header-logo { width: 200px; }
  .main-nav ul { gap: 16px; }
  .main-nav a { font-size: 13.5px; }
  .footer-top { grid-template-columns: 1.3fr .8fr .7fr .9fr; }
  .footer-col:last-child { grid-column: 1 / -1; max-width: 380px; }
  .hero-home__grid { gap: 34px; }
  .hero-home__collage { min-height: 450px; }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 42px; }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn--outline { display: none; }
  .hero-home { padding-top: 40px; }
  .hero-home__grid { grid-template-columns: 1fr; }
  .hero-home__collage { min-height: 420px; width: min(100%, 620px); }
  .grid-3, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .about-split, .contact-layout, .donate-layout { grid-template-columns: 1fr; }
  .donate-aside { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .article-aside .aside-card + .aside-card { margin-top: 0; }
  .news-lead { grid-template-columns: 1fr; }
  .news-lead__media { min-height: 240px; max-height: 320px; }
  .news-lead__body { padding: 0 26px 28px; }
  .partner-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: auto; max-width: none; }
  .footer-biglogo { width: calc(100% - 56px); }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; --radius: 22px; }
  body { font-size: 16px; }
  .topbar__address { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__contacts { gap: 16px; }
  .header-logo { width: 180px; }
  .header-main { min-height: 72px; }
  .header-actions .btn--navy { display: none; }
  .header-actions .btn--ghost { display: none; }
  .display { font-size: clamp(38px, 10.5vw, 50px); }
  h2.display { font-size: clamp(34px, 9vw, 44px); }
  .hero-home { padding: 28px 0 54px; }
  .hero-home__collage { min-height: 350px; }
  .hero-home__star { width: 82px; }
  .hero-home__badge { font-size: 11px; padding: 10px 13px; max-width: 170px; }
  .hero-home__actions .btn { width: 100%; }
  .section { padding: 54px 0; }
  .section--tight { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
  .grid-3, .news-grid, .grid-2, .people-grid { grid-template-columns: 1fr; }
  .stats { margin-top: 34px; }
  .project-tile__body { padding: 18px 20px 22px; }
  .page-hero { padding: 32px 0 38px; }
  .page-hero__doodle { width: 90px; right: 2%; top: 8%; }
  .filters { gap: 8px; }
  .filters__spacer { margin-left: 0; width: 100%; }
  .doc-item { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .doc-item .doc-meta, .doc-item .btn { grid-column: 2; justify-self: start; }
  .doc-item .btn { margin-top: 4px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-layout { gap: 28px; }
  .quote-block { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .quote-block img { width: 90px; }
  .quote-block blockquote { font-size: 24px; }
  .timeline__item { grid-template-columns: 80px 1fr; gap: 16px; }
  .timeline__year { font-size: 28px; }
  .requisites { grid-template-columns: 1fr; }
  .article-aside { grid-template-columns: 1fr; }
  .donate-form__amounts { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 28px 22px; }
  .partner-strip { grid-template-columns: 1fr 1fr; }
  .partner-strip li { height: 82px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand, .footer-col { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 30px; }
  .footer-biglogo { width: calc(100% - 40px); }
  .cookie__inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .cookie__inner .btn { align-self: flex-start; }
  .modal { padding: 10px; }
  .modal__dialog { padding: 26px 20px; }
  .modal__title { font-size: 36px; }
  .toast { left: 16px; right: 16px; bottom: 84px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
