/* ============================================================
   ДИЗАЙН-СИСТЕМА «ЖЕНЩИНЫ ЛИДЕРЫ» — стиль Telegram
   Светлый интерфейс, крупная типографика, один акцентный цвет,
   скругления, карточки на сером фоне. Доступность: WCAG 2.2 AA.
   ============================================================ */

:root {
  /* цвета — светлая тема */
  --bg: #e7ebf0;            /* фон страницы (как в Telegram) */
  --surface: #ffffff;        /* карточки, шапка */
  --surface-2: #eef1f5;      /* вторичная заливка */
  --surface-3: #f6f8fa;      /* мягкая подложка полей */
  --border: #d5dbe3;         /* границы */
  --border-strong: #b9c2cd;
  --text: #0f1419;           /* основной текст */
  --text-2: #53606f;         /* вторичный текст */
  --text-3: #7e8a97;         /* подписи, примеры */
  --accent: #2f80ed;         /* акцент — голубой Telegram */
  --accent-dark: #1d66c8;
  --accent-soft: #e5f0fd;    /* мягкая подложка акцента */
  --accent-text: #17549b;
  --danger: #d5484a;
  --danger-soft: #fdecec;
  --ok: #27a35c;
  --ok-soft: #e5f6ec;
  --link: #2f80ed;

  /* типографика */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-base: 17px;
  --fs-sm: 15px;
  --fs-xs: 13px;
  --fs-title: 15px;
  --fs-h1: 30px;
  --fs-h2: 24px;
  --fs-h3: 19px;
  --lh: 1.55;

  /* геометрия */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shell: 1080px;
  --space: 24px;

  --shadow-card: 0 1px 2px rgba(15, 20, 25, .06);
  --shadow-pop: 0 4px 16px rgba(15, 20, 25, .16);
  --ease: cubic-bezier(.2, .8, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s var(--ease); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 .55em;
}
h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; top: -9999px; }
.skip:focus {
  left: 12px; top: 12px;
  background: var(--accent); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-sm);
  z-index: 300; font-weight: 600;
}

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

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
.btn:hover { filter: brightness(.97); }
.btn:active { transform: scale(.98); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; filter: none; }
.btn--outline { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-dark); filter: none; }
.btn--ghost { background: transparent; color: var(--link); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-dark); filter: none; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #b93a3c; filter: none; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 14px 28px; font-size: 17px; }
.btn--block { width: 100%; }

/* ============================================================
   ШАПКА
   ============================================================ */
.topline { display: none; }

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 80;
}
.header__inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__logo { height: 48px; width: auto; max-width: 170px; object-fit: contain; display: block; }
.brand__mark {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 18px; letter-spacing: .02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name { font-weight: 700; color: var(--text); font-size: 16px; }
.brand__tagline { font-size: 13px; color: var(--text-2); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.nav a {
  display: block;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

.header__cta { margin-left: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 12px 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 4px 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   КОНТЕНТ: карточки и секции
   ============================================================ */
.page-wrap { padding: 26px 0 60px; }

.section { padding: 34px 0; }
.section + .section { padding-top: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card--pad { padding: 26px; }

.page-head {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}
.page-head h1 { margin-bottom: 8px; }
.page-head p { margin: 0; color: var(--text-2); max-width: 62ch; font-size: 16px; }

.breadcrumbs { font-size: 14px; color: var(--text-3); margin-bottom: 14px; }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); }
.breadcrumbs span { margin: 0 7px; color: var(--border-strong); }

.section-head { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 6px; }
.section-head__sub { color: var(--text-2); font-size: 16px; margin: 0; max-width: 60ch; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.head-row .section-head { margin-bottom: 0; }

/* сетки */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============================================================
   ГЕРОЙ (блок «Обложка»)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #2f80ed 0%, #1d66c8 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 44px 44px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .14);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 34px; line-height: 1.15; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: rgba(255, 255, 255, .85); }
.hero__text { font-size: 17px; color: rgba(255, 255, 255, .92); max-width: 52ch; margin-bottom: 24px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn--accent { background: #fff; color: var(--accent-dark); }
.hero .btn--accent:hover { background: rgba(255, 255, 255, .9); filter: none; }
.hero .btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .12); filter: none; }
.hero__media img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 380px; }

/* ============================================================
   СТАТИСТИКА
   ============================================================ */
.stats {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stats__item { padding: 24px 22px; border-right: 1px solid var(--border); }
.stats__item:last-child { border-right: 0; }
.stats__value { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; margin-bottom: 6px; }
.stats__value span { color: var(--accent); }
.stats__label { font-size: 14px; color: var(--text-2); }

/* ============================================================
   КАРТОЧКИ НОВОСТЕЙ / ПРОЕКТОВ / УЧАСТНИЦ / ПАРТНЁРОВ
   ============================================================ */
.news-grid, .members-grid, .member-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.news-card, .project-card, .member, .partner, .doc-row, .event-row__card, .contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.news-card:hover, .project-card:hover, .member:hover, .partner:hover { box-shadow: var(--shadow-pop); transform: translateY(-2px); border-color: var(--border-strong); }

.news-card__media img, .project-card__media img { width: 100%; height: 190px; object-fit: cover; }
.news-card__body, .project-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__date, .project-card__label { font-size: 13px; font-weight: 600; color: var(--accent-text); margin-bottom: 8px; }
.news-card h3, .project-card h3 { font-size: 18px; margin-bottom: 8px; }
.news-card h3 a, .project-card h3 a { color: var(--text); text-decoration: none; }
.news-card h3 a:hover, .project-card h3 a:hover { color: var(--accent-dark); }
.news-card p, .project-card p { color: var(--text-2); font-size: 15px; margin-bottom: 14px; }
.news-card .card__link, .project-card .card__link { margin-top: auto; align-self: flex-start; }

.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--link); text-decoration: none;
}
.card__link::after { content: "→"; transition: transform .15s var(--ease); }
.card__link:hover { color: var(--accent-dark); }
.card__link:hover::after { transform: translateX(3px); }

/* участницы */
.member { padding: 24px; }
.member__head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.member__avatar {
  width: 52px; height: 52px; flex: 0 0 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700; font-size: 18px;
}
.member__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.member__name { font-size: 17px; margin: 0 0 3px; }
.member__role { font-size: 14px; color: var(--accent-text); line-height: 1.4; }
.member__text { font-size: 15px; color: var(--text-2); margin-bottom: 12px; }
.member__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.member__tag { font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; }
.member__link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }

/* партнёры */
.partner { padding: 22px; }
.partner__mono {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text);
  font-weight: 700; font-size: 15px;
  margin-bottom: 14px;
}
.partner h3 { font-size: 16px; margin-bottom: 6px; }
.partner p { font-size: 14px; color: var(--text-2); margin: 0; }

/* мини-карточки участниц (блок на главной) */
.member-mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-card); }
.member-mini__name { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.member-mini__role { font-size: 14px; color: var(--text-2); }

/* ============================================================
   МЕРОПРИЯТИЯ
   ============================================================ */
.event-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: center; padding: 18px 20px; }
.event-row + .event-row { border-top: 1px solid var(--border); }
.event-row__date { text-align: center; border-right: 1px solid var(--border); padding-right: 18px; }
.event-row__day { font-size: 26px; font-weight: 800; line-height: 1; }
.event-row__month { font-size: 13px; font-weight: 600; color: var(--accent-text); text-transform: uppercase; }
.event-row__year { font-size: 12px; color: var(--text-3); }
.event-row h3 { font-size: 17px; margin-bottom: 4px; }
.event-row p { margin: 0 0 6px; color: var(--text-2); font-size: 15px; }
.event-row__meta { font-size: 14px; color: var(--text-3); }
.badge {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  background: var(--ok-soft); color: #1a7a45;
}
.badge--past { background: var(--surface-2); color: var(--text-3); }

/* ============================================================
   ДОКУМЕНТЫ
   ============================================================ */
.doc-group { margin-bottom: 34px; }
.doc-group__title { font-size: 19px; margin-bottom: 12px; }
.doc-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; padding: 16px 20px; margin-bottom: 10px; }
.doc-row__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
}
.doc-row__title { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.doc-row__meta { font-size: 13px; color: var(--text-3); }
.doc-row__link { font-weight: 600; font-size: 15px; white-space: nowrap; }

/* ============================================================
   КОНТАКТЫ / РЕКВИЗИТЫ
   ============================================================ */
.contact-card { padding: 24px; }
.contact-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-text);
  font-weight: 700; font-size: 16px;
  margin-bottom: 14px;
}
.contact-card h3 { font-size: 17px; margin-bottom: 8px; }
.contact-card p { font-size: 15px; margin: 0 0 6px; }

.req { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.req__row { display: grid; grid-template-columns: minmax(190px, 30%) 1fr; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 15px; }
.req__row:last-child { border-bottom: 0; }
.req__key { color: var(--text-2); }
.req__val { font-weight: 600; word-break: break-word; }
.copy {
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-2); font-size: 13px; padding: 4px 10px;
  border-radius: var(--radius-sm); margin-left: 8px; cursor: pointer; font-family: var(--font);
}
.copy:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ============================================================
   СТАТЬЯ / НОВОСТЬ
   ============================================================ */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.article__body { font-size: 16.5px; line-height: 1.65; }
.article__body h2 { margin-top: 1.3em; }
.article__body img { border-radius: var(--radius); margin: 20px 0; }
.article__body blockquote { margin: 22px 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--accent); color: var(--text-2); font-size: 18px; }
.aside-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); }
.aside-box + .aside-box { margin-top: 18px; }
.aside-box h3 { font-size: 16px; }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.aside-list li:last-child { border-bottom: 0; }
.aside-list a { text-decoration: none; color: var(--text); font-size: 15px; }
.aside-list a:hover { color: var(--link); }
.aside-list time { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 2px; }

/* лайки */
.likes { margin-top: 30px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.likes__label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.likes__row { display: flex; gap: 4px; }
.likes__heart {
  background: none; border: 0; padding: 6px; cursor: pointer;
  width: 40px; height: 40px; color: var(--border-strong);
  transition: color .15s var(--ease), transform .1s var(--ease);
}
.likes__heart svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.likes__heart:hover { color: var(--accent); transform: scale(1.12); }
.likes__heart:active { transform: scale(.92); }
.likes__heart.is-on { color: var(--accent); }
.likes__meta { margin-top: 8px; font-size: 14px; color: var(--text-2); }

/* ============================================================
   ФОРМЫ
   ============================================================ */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-card); }
.form-card h2 { margin-bottom: 6px; }
.form-card .sub { color: var(--text-2); margin-bottom: 24px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

.field { margin-bottom: 18px; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--text-2); font-size: 13.5px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field--error input, .field--error textarea { border-color: var(--danger); }
.field__error { display: none; color: var(--danger); font-size: 14px; margin-top: 5px; }
.field--error .field__error { display: block; }
.fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.fieldset legend { font-size: 18px; font-weight: 700; color: var(--text); padding: 0; margin-bottom: 12px; }
.check-line { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.check-line input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.form-note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; color: var(--text-2); margin-bottom: 24px; }
.honeypot { position: absolute; left: -9999px; }

.success { background: var(--ok-soft); border: 1px solid #b9e4c9; border-radius: var(--radius); padding: 36px; }
.success h2 { color: #1a7a45; }

/* ============================================================
   ПРОЧЕЕ
   ============================================================ */
.prose { font-size: 16.5px; line-height: 1.65; }
.prose h2 { margin-top: 1.3em; }
.prose h2:first-child { margin-top: 0; }
.prose .notice { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0; color: var(--text-2); }

.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: var(--text-2); max-width: 56ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.empty, .empty-box { padding: 46px 24px; text-align: center; color: var(--text-2); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }

.pagination { display: flex; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: var(--text); font-size: 15px; }
.pagination a:hover { border-color: var(--accent); color: var(--accent-dark); }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* инструменты участниц */
.members-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input { width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-family: var(--font); font-size: 15px; }
.search::before { content: "🔍"; position: absolute; left: 13px; top: 50%; transform: translateY(-52%); font-size: 16px; opacity: .7; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.members-count { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }

/* различные утилиты */
.muted { color: var(--text-2); }
.block { display: block; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { background: #17212b; color: rgba(255, 255, 255, .72); margin-top: 50px; padding: 46px 0 22px; font-size: 15px; }
.footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__brand .brand__mark--light { background: rgba(255, 255, 255, .14); color: #fff; }
.footer__name { font-weight: 700; color: #fff; font-size: 16px; margin-bottom: 4px; }
.footer__tagline { font-size: 13.5px; color: rgba(255, 255, 255, .55); max-width: 40ch; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer__title { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { display: inline-block; padding: 4px 0; }
.footer__req li { color: rgba(255, 255, 255, .55); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: 13.5px; color: rgba(255, 255, 255, .45); }
.footer__legal { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   ФЛЕШ-СООБЩЕНИЯ
   ============================================================ */
.flash-wrap { margin-top: 20px; }
.flash {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.flash--success { border-color: #b9e4c9; background: var(--ok-soft); color: #1a7a45; }
.flash--error { border-color: #f0c0c1; background: var(--danger-soft); color: #9c2f31; }

/* ============================================================
   РАЗНОЕ: блоки конструктора
   ============================================================ */
.section--tight { padding-top: 20px; padding-bottom: 20px; }
.section--ivory { background: var(--surface-2); border-radius: var(--radius-lg); margin: 0 0 24px; }
.section--navy { background: #17212b; color: rgba(255, 255, 255, .85); border-radius: var(--radius-lg); }
.section--navy h2 { color: #fff; }
.block-image__fig { margin: 0; text-align: center; }
.block-image__fig img { border-radius: var(--radius); margin: 0 auto; max-width: 100%; }
.block-image__fig figcaption { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.block-image--wide img { width: 100%; }

.block-gallery h2 { margin-bottom: 18px; }
.block-gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.block-gallery__item img { width: 100%; height: 220px; object-fit: cover; transition: transform .2s var(--ease); }
.block-gallery__item:hover img { transform: scale(1.03); }

.block-video h2 { margin-bottom: 18px; }
.block-video__wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.block-video__wrap iframe, .block-video__wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.block-divider__line { border: 0; border-top: 1px solid var(--border); margin: 0; }
.block-divider--narrow .block-divider__line { max-width: 120px; margin: 0 auto; }

.block-button .btn { min-width: 180px; }

.block-quote__box { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-card); }
.block-quote__box p { font-size: 19px; line-height: 1.6; color: var(--text); margin-bottom: 12px; }
.block-quote__box footer { font-size: 15px; color: var(--accent-text); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.split .block-image__fig img { margin: 0; width: 100%; }
@media (max-width: 840px) {
  .split { grid-template-columns: 1fr; }
}

.section-head--center { text-align: center; }
.section-head--center .eyebrow, .section-head--center h2 { margin-left: auto; margin-right: auto; display: table; }

/* ============================================================
   ОШИБКА 404
   ============================================================ */
.error-page { padding: 80px 0; text-align: center; }
.error-page__code { font-size: 72px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 12px; }

/* ============================================================
   ПОДПИСКА (в подвале)
   ============================================================ */
.subscribe { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 0 30px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.subscribe__title { color: #fff; font-weight: 700; font-size: 16px; }
.subscribe__note { font-size: 14px; color: rgba(255, 255, 255, .55); margin-top: 4px; max-width: 460px; }
.subscribe__fields { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe input[type="email"] { min-width: 250px; padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 15px; }
.subscribe input[type="email"]::placeholder { color: rgba(255, 255, 255, .45); }
.subscribe input[type="email"]:focus { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
.subscribe .btn--accent { background: #fff; color: #17212b; }
.subscribe .btn--accent:hover { background: rgba(255, 255, 255, .9); filter: none; }

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header__cta { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    box-shadow: var(--shadow-pop);
  }
  .nav.is-open a { padding: 13px 12px; border-radius: var(--radius-sm); }
}

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 32px 24px; }
  .article { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .members-grid, .member-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(1), .stats__item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .cta { grid-template-columns: 1fr; padding: 26px 24px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { padding: 0 14px; }
  .page-wrap { padding: 16px 0 40px; }
  .page-head { padding: 22px 20px; }
  .brand__tagline { display: none; }
  .news-grid, .members-grid, .member-strip, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .event-row { grid-template-columns: 1fr; gap: 10px; }
  .event-row__date { border-right: 0; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 10px; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .event-row__day { font-size: 20px; }
  .doc-row { grid-template-columns: 44px 1fr; }
  .doc-row__link { grid-column: 2; justify-self: start; }
  .req__row { grid-template-columns: 1fr; gap: 2px; }
  .footer__cols { grid-template-columns: 1fr; gap: 20px; }
  .form-card { padding: 22px 18px; }
  .hero h1 { font-size: 27px; }
}

@media print {
  .header, .footer, .flash-wrap, .no-print, .subscribe { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  a { color: #000; text-decoration: none; }
}

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