/* ─────────────────────────────────────────────────────
   Общероссийский профсоюз работников культуры
   Site styles (max 1440px)
   ───────────────────────────────────────────────────── */

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

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-mute: #6e6e73;
  --text-gray: #797979;
  --border: #dadada;
  --border-soft: #ebebeb;
  --border-faint: #e2e2e1;
  --accent: #0b193c;
  --gold: #c8b47a;
  --red: #be2e41;
  --red-bright: #ed1a34;
  --yellow: #fed700;

  --max-w: 1440px;
  --pad-x: 80px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Intel One Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

html, body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.4;
}

body {
  max-width: var(--max-w);
  margin: 0 auto;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
}

/* Layout containers
   ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  padding: 0 var(--pad-x);
}

.section {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ─────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────── */
.site-header {
  padding: 25px var(--pad-x) 25px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}
.logo {
  display: block;
  width: 88px;
  height: auto;
  flex-shrink: 0;
}
.logo svg,
.logo img {
  display: block;
  width: 100%;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  margin-left: 20px;
  list-style: none;
}
.nav-item {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #323232;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-item > a, .nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #323232;
  font: inherit;
  padding: 6px 0;
  transition: color .15s;
}
.nav-item:hover > a, .nav-item:hover > button {
  color: var(--accent);
}
.nav-item .chev {
  width: 8px;
  height: 5px;
  flex-shrink: 0;
  transition: transform .2s;
}
.nav-item.open .chev,
.nav-item:hover .chev,
.nav-item:focus-within .chev {
  transform: rotate(180deg);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 280px;
  padding: 12px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s;
  z-index: 50;
}
.nav-item.open .dropdown,
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 15px;
  color: #323232;
  letter-spacing: -0.01em;
  transition: background .12s, color .12s;
}
.dropdown a:hover {
  background: var(--bg-soft);
  color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.icon-btn {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #000;
}
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid transparent;
  font-size: 16px;
  color: #323232;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.account-btn svg { flex-shrink: 0; }
.account-btn:hover {
  border-color: var(--border);
  background: var(--bg-soft);
}
.account-btn svg {
  width: 22px;
  height: 22px;
  color: #141b34;
}
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #1d1d1f;
  margin: 4px 0;
  border-radius: 1px;
}

/* ─────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 75px var(--pad-x) 30px;
  font-size: 14px;
  color: var(--text);
}
.footer-grid {
  display: grid;
  grid-template-columns: 215px 1fr 1fr 1fr;
  gap: 40px 30px;
}
.footer-brand .logo {
  width: 88px;
}
.footer-info {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  line-height: 1.4;
}
.footer-info .mute { color: var(--text-mute); }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-col h4 {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #000;
  margin-bottom: 5px;
}
.footer-col a {
  font-size: 14px;
  color: #1d1d1f;
  font-weight: 400;
  transition: color .12s;
}
.footer-col a:hover { color: var(--accent); }
.footer-col + .footer-col-section { margin-top: 30px; }
.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 12px;
  color: var(--text-mute);
  align-items: flex-end;
}
.footer-bottom > div:first-child {
  max-width: 350px;
  line-height: 1.5;
}
.footer-bottom a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────────────
   HOMEPAGE — hero
   ───────────────────────────────────────────────────── */
.hero {
  padding: 136px var(--pad-x) 95px;
  position: relative;
  overflow: hidden;
}
.hero-title {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text);
  margin: 0 auto;
  max-width: 720px;
}
.hero-body {
  margin-top: 55px;
  display: grid;
  grid-template-columns: 1.35fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.hero-quote {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--text);
  max-width: 600px;
}
/* enter-стрелка — часть текста (инлайн), перед первым словом */
.hero-enter {
  display: inline-block;
  width: 14px;
  height: 9px;
  margin-right: 10px;
  vertical-align: middle;
}
.hero-photo {
  width: 233px;
  height: 233px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #e0e0e0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.hero-byline {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  max-width: 310px;
}
.hero-byline .role {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-mute);
}

/* ─────────────────────────────────────────────────────
   NEWS CAROUSEL (hero)
   ───────────────────────────────────────────────────── */
.news-carousel {
  margin: 0 var(--pad-x);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.carousel-track {
  position: relative;
  text-align: center;
}
.carousel-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.carousel-slide.active {
  display: flex;
}
.carousel-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border-radius: 30px;
  padding: 15px 22px;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #1c1c1c;
}
.carousel-chip .sep {
  width: 8px;
  height: 1px;
  background: #1c1c1c;
}
.carousel-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--text);
  max-width: 800px;
}
.carousel-desc {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-mute);
  max-width: 800px;
}
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--accent);
  transition: opacity .15s;
}
.btn-more:hover { opacity: .75 }
.arrow-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .15s;
}
.arrow-circle svg { width: 6px; height: 10px; }
.arrow-circle.light { background: #fff; color: #000; }
.arrow-circle.dark { background: #1d1d1f; color: #fff; }
.arrow-circle.outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
a:hover .arrow-circle { transform: translateX(2px); }
.carousel-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.carousel-buttons {
  display: flex;
  gap: 10px;
}
.carousel-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: transparent;
  transition: background .15s, color .15s;
}
.carousel-btn:hover {
  background: var(--accent);
  color: #fff;
}
.carousel-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.carousel-btn.prev svg { transform: rotate(180deg); }
.carousel-count {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #1c1c1c;
}

/* CTA card */
.cta-card {
  margin: 75px var(--pad-x) 0;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg-soft);
  padding: 48px;
  text-align: center;
}
.cta-card h2 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--text);
}
.cta-card p {
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 360px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  padding: 15px 25px;
  background: var(--accent);
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  transition: filter .15s, transform .15s;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary .arrow-circle {
  background: #fff;
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────
   ABOUT row
   ───────────────────────────────────────────────────── */
.about-row {
  margin: 120px var(--pad-x) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.about-row h2 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 30px;
}
.about-row p {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-mute);
}
.history-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #2a2a2a;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 267px;
  color: #fff;
}
.history-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.45)),
              var(--history-img, url('../assets/theatre.jpg')) center/cover no-repeat;
  z-index: 0;
}
.history-card > * { position: relative; z-index: 1; }
.history-card h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.history-card .sub {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #dadada;
}

.stats-grid {
  margin: 60px var(--pad-x) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat .stat-num {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}
.stat .stat-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.stat .stat-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-mute);
}

/* ─────────────────────────────────────────────────────
   2-up cards (mission / tasks)
   ───────────────────────────────────────────────────── */
.two-up {
  margin: 60px var(--pad-x) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bg-card {
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 40px;
  min-height: 350px;
  position: relative;
}
.bg-card h3 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--text);
}
.bg-card .divider {
  margin: 24px 0 28px;
  border: none;
  border-top: 1px dashed var(--border);
}
.bg-card p {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: var(--text);
}
.bg-card .corner-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  color: var(--accent);
  opacity: .9;
}

/* ─────────────────────────────────────────────────────
   Quote block
   ───────────────────────────────────────────────────── */
.quote-section {
  margin: 100px var(--pad-x) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(835px, 60vw);
  gap: 60px;
  align-items: center;
}
.quote-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote-text .big {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--text);
}
.quote-text .small {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-mute);
}
.quote-byline {
  margin-top: 50px;
  font-family: var(--font-mono);
  font-size: 16px;
}
.quote-byline .role {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-mute);
}
.quote-mark {
  margin-bottom: 16px;
  line-height: 0;
}
.quote-mark svg {
  display: block;
  width: 53px;
  height: 41px;
}
.quote-img {
  width: 100%;
  aspect-ratio: 835 / 450;
  border-radius: 10px;
  background-color: #ccc;
  background-size: cover;
  background-position: center;
}

/* News cards section */
.news-section {
  margin: 120px var(--pad-x) 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
/* Полоса под строкой «Новости / Все новости», а не над всем блоком */
.news-section .section-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}
.section-head h2 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 300px;
}
.news-card h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--text);
  flex: 1;
}
.news-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: var(--text-mute);
}


/* ─────────────────────────────────────────────────────
   Partners marquee
   ───────────────────────────────────────────────────── */
.partners-section {
  margin: 120px 0 0;
  padding: 0 var(--pad-x);
}
.partners-section h2 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 40px;
}
.partners-marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 calc(-1 * var(--pad-x));
  overflow: hidden;
  position: relative;
}
.partners-track {
  display: flex;
  gap: 0;
  /* лента дублируется 6 раз (см. шаблон), сдвиг на -50% = 3 копии — всегда шире
     экрана, поэтому без пустого «провала». Длительность масштабирована, чтобы
     скорость осталась прежней. */
  animation: marquee 120s linear infinite;
  width: max-content;
}
.partners-track:hover { animation-play-state: paused; }
.partner {
  width: 229px;
  height: 250px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.partner img {
  max-width: 116px;
  max-height: 116px;
  filter: saturate(.9);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────────────
   Contact form
   ───────────────────────────────────────────────────── */
.contact-card {
  margin: 120px var(--pad-x) 80px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 70px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-card .lhs {
  align-self: center;
}
.contact-card h2 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
}
.contact-card .lhs p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  max-width: 460px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-field {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.form-field:focus { border-color: var(--accent); }
.form-field.phone {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  overflow: hidden;
}
.form-field.phone .flag {
  width: 22px;
  height: 22px;
  margin-left: 14px;
  flex-shrink: 0;
}
.form-field.phone .divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}
.form-field.phone input {
  border: none;
  background: transparent;
  font: inherit;
  flex: 1;
  outline: none;
  padding: 14px 8px 14px 4px;
}
.form-field.message {
  grid-column: 1 / -1;
  min-height: 158px;
  resize: vertical;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
}
.btn-submit {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 18px 25px;
  border-radius: 10px;
  transition: filter .15s;
}
.btn-submit:hover { filter: brightness(1.15); }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.4;
  cursor: pointer;
}
.consent input { margin-top: 3px; accent-color: var(--accent); }

/* ─────────────────────────────────────────────────────
   Subpage layouts (breadcrumb + title + document list)
   ───────────────────────────────────────────────────── */
.page-head {
  padding: 100px var(--pad-x) 60px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
}
.breadcrumb a { color: var(--text-gray); transition: color .12s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 8px; height: 12px; color: var(--text-gray); }
.breadcrumb .current { color: #000; }
.page-title {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}
.page-subtitle {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-mute);
  max-width: 800px;
}

/* Document list */
.doc-list {
  margin: 0 var(--pad-x);
  border-top: 1px solid var(--border-soft);
}
.doc-row {
  display: flex;
  align-items: center;
  gap: 90px;
  padding: 25px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: background .12s;
}
.doc-row:hover { background: rgba(245,245,247,.6); }
.doc-row .file-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}
.doc-row .doc-title {
  flex: 1;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--text);
}
.doc-row .doc-date {
  font-size: 16px;
  color: var(--text-mute);
  flex-shrink: 0;
}
.doc-row .doc-action {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.doc-section + .doc-section { margin-top: 60px; }
.doc-section h2 {
  padding: 0 var(--pad-x);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

/* Documents index grid (frame4) */
.docs-grid {
  margin: 0 var(--pad-x) 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.doc-tile {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  min-height: 130px;
  transition: background .15s, transform .15s;
}
.doc-tile:hover {
  background: #eeeef1;
  transform: translateY(-2px);
}
.doc-tile svg {
  width: 18px;
  height: 18px;
  color: var(--text);
}

/* Region table list (frame10) */
.region-table {
  margin: 0 var(--pad-x) 80px;
  border-top: 1px solid var(--border-soft);
}
.region-row {
  display: grid;
  grid-template-columns: 40px 1fr 1.2fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.region-row .num {
  font-size: 16px;
  color: var(--text);
}
.region-row .name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.region-row .files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.region-row .files .file-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--text);
  transition: color .12s;
}
.region-row .files .file-link:hover { color: var(--accent); }
.region-row .file-icon { width: 22px; height: 22px; object-fit: contain; }

/* Honorary members grid */
.honorary-grid {
  margin: 0 var(--pad-x) 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
}
.honorary-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.honorary-card::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.honorary-card .name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.honorary-card .role {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────
   ABOUT page additional blocks
   ───────────────────────────────────────────────────── */
.about-page-hero h1 {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.about-page-hero .lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-mute);
}
.about-stats {
  margin: 60px var(--pad-x) 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 50px 0;
}
.about-prose {
  margin: 0 var(--pad-x) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.about-prose h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.about-prose p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}
.about-prose p + p { margin-top: 16px; }
.about-prose .mute { color: var(--text-mute); }
.about-prose .pull-quote {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 36px 40px;
  margin-top: 20px;
}
.about-prose .pull-quote .label {
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.about-prose .pull-quote p {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.about-list {
  margin: 0 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.about-list li { margin-bottom: 6px; }

/* Highlight stats (about page) */
.stat-big .stat-num { font-size: 72px; }

/* About intro — статистика колонкой слева + текст справа («О профсоюзе») */
.about-intro {
  margin: 10px var(--pad-x) 70px;
  display: grid;
  /* Левая колонка обнимает статистику, правая — колонка для чтения (не до края) */
  grid-template-columns: 320px minmax(0, 620px);
  gap: 64px;
  align-items: start;
}
.about-intro__stats { display: flex; flex-direction: column; gap: 44px; }
.about-intro__stats .stat-num {
  font-size: 52px; font-weight: 700; line-height: 1;
  letter-spacing: -0.04em; color: var(--text);
}
.about-intro__stats .stat-label {
  margin-top: 12px; font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text);
}
.about-intro__stats .stat-desc {
  margin-top: 8px; font-size: 14px; line-height: 1.45;
  color: var(--text-mute); max-width: 290px;
}
.about-intro__text { font-size: 16px; line-height: 1.55; color: var(--text); }
.about-intro__text p + p { margin-top: 16px; }
.about-intro__text h2 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.2; margin: 30px 0 14px;
}

/* ── «О профсоюзе»: статистика сайдбаром слева + единая правая колонка ── */
.about-layout {
  margin: 10px var(--pad-x) 60px;
  display: grid;
  grid-template-columns: 300px minmax(0, 600px);
  gap: 80px;
  align-items: start;
}
.about-layout__side { display: flex; flex-direction: column; gap: 44px; }
.about-layout__side .stat-num {
  font-size: 52px; font-weight: 700; line-height: 1;
  letter-spacing: -0.04em; color: var(--text);
}
.about-layout__side .stat-label {
  margin-top: 12px; font-size: 16px; font-weight: 700; color: var(--text);
}
.about-layout__side .stat-desc {
  margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--text-mute);
}
.about-layout__intro { font-size: 16px; line-height: 1.55; color: var(--text); }
.about-layout__intro p + p { margin-top: 16px; }
.about-layout__intro h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.25; margin: 28px 0 14px;
}
/* Блоки в правой колонке — без собственных горизонтальных полей и ограничений ширины */
.about-layout__main > section { margin-left: 0; margin-right: 0; max-width: none; }
.about-layout__main .stats-grid {
  margin: 30px 0; grid-template-columns: 1fr 1fr; gap: 30px;
}
.about-layout__main .stats-grid--center {
  display: grid; justify-content: stretch; text-align: left; gap: 30px;
}
.about-layout__main .stat-big .stat-num { font-size: 56px; }
.about-layout__main .about-prose { margin: 26px 0; display: block; }
.about-layout__main .about-prose .prose,
.about-layout__main .about-prose .pull-quote { max-width: none; grid-column: auto; }
.about-layout__main .cta-card,
.about-layout__main .history-card { margin: 36px 0 0; }
.about-layout__main .media-block { margin: 24px 0; max-width: none; padding: 0; }
@media (max-width: 1180px) {
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
}

/* Пара крупных цифр по центру (178 / >7400) */
.stats-grid--center {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 130px; text-align: center;
}

/* Медиа-вставки: видео / аудио (страницы Медиатеки) */
.media-block { max-width: 820px; margin: 36px auto; padding: 0 20px; box-sizing: border-box; }
.video-embed {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: 12px; overflow: hidden; background: #000;
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
/* Сетка видео — три в ряд, с названием и подзаголовком */
.video-grid {
  margin: 36px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.video-card { margin: 0; }
.video-card__title {
  margin-top: 14px; font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.3; color: var(--text);
}
.video-card__sub { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--text-mute); }
@media (max-width: 1100px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .video-grid { grid-template-columns: 1fr; } }
.audio-embed {
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 22px 26px;
}
.audio-embed__title {
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 14px;
}
.audio-embed audio { width: 100%; display: block; }
.media-block__caption { margin-top: 12px; font-size: 14px; color: var(--text-mute); text-align: center; }

/* Пошаговая инструкция (нумерованные шаги) */
.steps-block { margin: 4px var(--pad-x) 56px; max-width: 900px; }
.steps-block__heading {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.3; color: var(--text); margin-bottom: 30px;
}
.steps-list { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 10px;
  margin-bottom: 32px;
  align-items: baseline;
}
.step:last-child { margin-bottom: 0; }
.step__num { font-size: 16px; font-weight: 600; color: var(--text); }
.step__title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.step__text { grid-column: 2; font-size: 15px; line-height: 1.6; color: var(--text-mute); }
.step__text p { margin: 0; }
.step__text p + p { margin-top: 10px; }
.step__text ul { margin: 4px 0 0; padding-left: 18px; }
.step__text li { margin-bottom: 8px; }

/* Контакты: адрес слева + сетка сотрудников справа */
.contacts-row {
  margin: 0 var(--pad-x) 56px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contacts-info__group { margin-bottom: 40px; }
.contacts-info__group:last-child { margin-bottom: 0; }
.contacts-info__label { font-size: 14px; color: var(--text-mute); margin-bottom: 10px; letter-spacing: -0.01em; }
.contacts-info p { font-size: 16px; line-height: 1.5; color: var(--text); }
.contacts-info a { color: var(--text); }
.contacts-info a:hover { color: var(--accent); }
.contacts-people {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}
.contact-person__name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--text); }
.contact-person__role { margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--text-mute); }
.contact-person__phone { display: inline-block; margin-top: 8px; font-size: 15px; color: var(--text); }
.contact-person__phone:hover { color: var(--accent); }

/* Карта-вставка (iframe) */
.map-embed {
  margin: 0 var(--pad-x) 80px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}
.map-embed iframe { width: 100%; border: 0; display: block; }

@media (max-width: 1100px) {
  .contacts-row { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .contacts-people { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
}

/* ─────────────────────────────────────────────────────
   LAPTOP (1101–1366): компактная шапка, чтобы влезала навигация
   ───────────────────────────────────────────────────── */
@media (max-width: 1366px) {
  /* Поля контента оставляем как в макете (--pad-x: 80px) — сужаем только шапку */
  .logo { width: 80px; }
  .header-inner { gap: 16px; }
  .nav { gap: 13px; margin-left: 14px; }
  .nav-item { font-size: 14px; }
  .header-actions { gap: 10px; }
  .account-btn span { display: none; }   /* «Личный кабинет» — только иконка */
}

/* ─────────────────────────────────────────────────────
   MOBILE
   ───────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  :root { --pad-x: 40px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 40px;
    margin: 0;
  }
  .nav.open .nav-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav.open .dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 0;
    min-width: auto;
  }
  .nav.open .dropdown a { padding: 6px 16px; }
  .nav.open .nav-item:not(.open) .dropdown { display: none; }

  .hamburger { display: block; }
  .account-btn span { display: none; }

  .hero { padding-top: 80px; padding-bottom: 60px; }
  .hero-title { font-size: 38px; }
  .hero-body {
    margin-top: 60px;
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 30px;
  }
  .hero-quote { padding-left: 0; }
  .hero-quote::before { display: none; }

  .news-carousel { padding: 24px; }
  .cta-card { padding: 36px; }
  .cta-card h2 { font-size: 30px; }

  .about-row,
  .quote-section,
  .regions-row,
  .about-prose,
  .about-intro,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stats-grid--center { gap: 60px; }
  .stats-grid,
  .two-up,
  .news-grid,
  .docs-grid,
  .honorary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-head h2 { font-size: 32px; }
  .partners-section h2 { font-size: 32px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .page-title { font-size: 38px; }
  .doc-row { gap: 24px; padding: 18px 0; }
  .doc-row .doc-title { font-size: 15px; }

  .quote-img { height: 280px; }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; }
  .hero-title { font-size: 28px; }
  .cta-card h2,
  .about-row h2,
  .section-head h2,
  .partners-section h2,
  .contact-card h2 { font-size: 26px; }
  .page-title { font-size: 30px; }
  .stat .stat-num { font-size: 44px; }
  .bg-card h3 { font-size: 24px; }
  .stats-grid,
  .two-up,
  .news-grid,
  .docs-grid,
  .honorary-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .doc-row { flex-wrap: wrap; gap: 12px 18px; }
  .doc-row .doc-date { font-size: 13px; }
  .region-row { grid-template-columns: 30px 1fr; }
  .region-row .files { grid-column: 2; }
  .map-wrap { aspect-ratio: 1.5; }
  .partner { width: 160px; height: 180px; }
  .partner img { max-width: 90px; max-height: 90px; }
}


/* =====================================================================
   ИНТЕГРАЦИЯ: переменные и компоненты существующего сайта
   (карта регионов, поиск, страницы новостей, кнопки, флеш-сообщения)
   ===================================================================== */
:root {
  --c-ink: #0a1230;
  --c-ink-2: #1a2240;
  --c-navy: #0d1733;
  --c-navy-2: #121c3d;
  --c-muted: #6b7280;
  --c-muted-2: #9aa0ad;
  --c-border: #e6e7ec;
  --c-border-2: #d9dbe1;
  --c-bg: #ffffff;
  --c-bg-soft: #f3f4f6;
  --c-bg-soft-2: #eef0f3;
  --c-gold: #c8b47a;
  --c-gold-2: #8a7340;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 18, 48, 0.04);
  --shadow-md: 0 6px 24px rgba(10, 18, 48, 0.06);
}

/* Флеш-сообщения Django */
.alert-msg {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 10px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  color: var(--c-ink-2);
}
.alert-msg--success { background: #eef7f0; border-color: #cde7d4; color: #1f7a4d; }
.alert-msg--error   { background: #fbeef0; border-color: #f2d2d8; color: #be2e41; }
.alert-msg--warning { background: #fdf6e7; border-color: #f0e2bd; color: #8a6d1a; }

/* Ссылки в карточках новостей */
.news-card h3 a { transition: color .15s; }
.news-card h3 a:hover { color: var(--accent); }

.visually-hidden {
  position: absolute !important;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1.5px solid transparent;
  line-height: 1;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.btn--primary:hover { background: var(--c-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-navy); border-color: transparent; padding: 8px 12px; }
.btn--ghost:hover { color: var(--c-gold); }
.btn--account { font-size: 14px; font-weight: 500; gap: 8px; padding: 8px 12px; color: var(--c-ink); }
.btn--account svg { width: 20px; height: 20px; min-width: 20px; flex-shrink: 0; display: inline-block; }

.btn-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .2s ease, background .2s ease;
}
.btn-circle:hover { background: var(--c-ink); transform: translateX(2px); color: #fff; }

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-navy);
}
.link-pill:hover { color: var(--c-navy); }
.link-pill:hover .btn-circle { background: var(--c-ink); transform: translateX(2px); }
/* ---------- Placeholders ---------- */
.placeholder {
  position: relative;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg,
      rgba(13,23,51,0.06) 0 10px,
      rgba(13,23,51,0.02) 10px 20px),
    #e9ebf0;
  border-radius: inherit;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.placeholder__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--c-navy);
  background: rgba(255,255,255,0.9);
  padding: 4px 8px;
  border-radius: 3px;
}
.placeholder--portrait { border-radius: 50%; }
.placeholder--dark {
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.08) 0 10px,
      rgba(255,255,255,0.02) 10px 20px),
    #1a2240;
}
.placeholder--dark .placeholder__label {
  background: rgba(10,18,48,0.7); color: #dce0ec; border: 1px solid rgba(255,255,255,0.15);
}
/* =====================================================================
   REGIONS
   ===================================================================== */
.regions-section { padding-block: 40px 80px; }
.regions-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) minmax(280px, 340px);
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: nowrap;
}
.regions-section__head h2 {
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 600;
  color: var(--c-navy);
  white-space: nowrap;
}
.search {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
}
.search__icon { position: absolute; left: 18px; color: var(--c-muted); pointer-events: none; }
.search input {
  width: 100%;
  height: 48px;
  padding: 0 18px 0 46px;
  border: 1px solid var(--c-border-2);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  color: var(--c-ink);
  background: #fff;
  transition: border-color .15s ease;
}
.search input:focus {
  outline: none;
  border-color: var(--c-navy);
}

.region-select {
  position: relative;
}
.region-select__btn {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 20px;
  border: 1px solid var(--c-border-2);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--c-ink);
  text-align: left;
  display: flex;
  align-items: center;
}
.region-select__btn .caret {
  position: absolute;
  right: 18px;
  color: var(--c-muted);
  transition: transform .2s ease;
}
.region-select.is-open .region-select__btn .caret { transform: rotate(180deg); }
.region-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 5;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  display: none;
}
.region-select.is-open .region-select__menu { display: block; }
.region-select__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--c-ink-2);
  border-radius: 6px;
  transition: background .12s ease;
}
.region-select__option:hover { background: var(--c-bg-soft); }
.region-select__option.is-active { background: var(--c-bg-soft); color: var(--c-navy); font-weight: 600; }

.regions__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.regions__map {
  padding: 0;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #e1e1e0;
}
.regions__map svg { width: 100%; height: 100%; display: block; cursor: grab; }
.regions__map svg:active { cursor: grabbing; }
.regions__map path { fill: #e1e1e0; stroke: #fff; stroke-width: 0.6; stroke-linejoin: round; transition: fill .15s ease; }
.regions__map .region-dot { fill: var(--c-navy); }
.regions__map .region-land { fill: #e1e1e0; }
.regions__map .region-highlight { fill: #0a183b; }

.region-card {
  background: transparent;
  border-radius: 0;
  padding: 0 0 0 8px;
  min-height: 280px;
}
.region-card h3 {
  font-size: 22px;
  color: var(--c-ink);
  font-weight: 500;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border-2);
  letter-spacing: -0.01em;
}
.region-card__kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 18px;
}
.region-card__dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  font-size: 14px;
}
.region-card__dl dt {
  color: var(--c-muted);
  font-size: 12px;
}
.region-card__dl dd {
  margin: 0;
  color: var(--c-ink-2);
}

/* Список организаций в карточке региона */
.region-orgs dt { color: var(--c-muted); font-size: 12px; margin-bottom: 10px; }
.region-orgs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.region-orgs__item { display: flex; flex-direction: column; gap: 2px; font-size: 13px; padding: 10px 12px; background: var(--c-bg-soft); border-radius: 8px; }
.region-orgs__item strong { color: var(--c-ink); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.region-orgs__item span { color: var(--c-muted); }
.region-orgs__item a { color: var(--c-navy); text-decoration: none; }
.region-orgs__item a:hover { text-decoration: underline; }
/* Статья новости */
.news-article { max-width: 780px; margin: 60px auto 80px; }
.news-article__date { display: block; font-size: 13px; color: var(--c-muted); margin-bottom: 16px; }
.news-article__title { font-size: clamp(26px, 4vw, 42px); line-height: 1.2; margin-bottom: 20px; }
.news-article__intro { font-size: 18px; color: var(--c-muted); line-height: 1.65; margin-bottom: 32px; }
.news-article__image { width: 100%; height: auto; border-radius: 12px; margin-bottom: 36px; display: block; }
.news-article__body { font-size: 16px; line-height: 1.75; margin-bottom: 48px; }
.news-article__back { margin-top: 0; }

/* Пагинация */
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 48px; }
.pagination__link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--c-border); color: var(--c-ink); transition: background .15s; }
.pagination__link:hover { background: var(--c-bg-soft); }
.pagination__info { font-size: 14px; color: var(--c-muted); }
/* =====================================================================
   Поиск по сайту
   ===================================================================== */

.search-title {
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--c-navy);
  margin-bottom: 28px;
}

/* Форма */
.search-form { margin-bottom: 40px; }
.search-form__row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.search-form__input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: #fff;
  transition: border-color .15s;
  min-width: 0;
}
.search-form__input:focus {
  outline: none;
  border-color: var(--c-gold);
}
.search-form__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Подсказки */
.search-hint,
.search-summary {
  color: var(--c-muted);
  font-size: 15px;
  margin-bottom: 32px;
}
.search-summary strong { color: var(--c-ink); }

.search-empty {
  padding: 48px 0;
  text-align: center;
}
.search-empty p { color: var(--c-muted); font-size: 16px; }

/* Секции */
.search-section {
  margin-bottom: 48px;
  border-top: 2px solid var(--c-border);
  padding-top: 28px;
}
.search-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-section__count {
  background: var(--c-gold);
  color: #fff;
  border-radius: 20px;
  padding: 1px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* Список результатов */
.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.search-result {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}
.search-result:last-child { border-bottom: none; }

.search-result__link {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
  text-decoration: none;
  margin-bottom: 4px;
  transition: color .15s;
}
.search-result__link:hover { color: var(--c-gold); }

.search-result__meta {
  display: inline-block;
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 6px;
}
.search-result__snippet {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 4px 0 0;
}
.search-result__addr {
  display: block;
  font-size: 12px;
  color: var(--c-muted-2);
  margin-top: 4px;
}

/* Участники */
.search-result--member { padding-bottom: 16px; }
.search-result__member-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.search-result__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.search-result__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-soft);
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--c-border);
}

/* Пагинация результатов поиска */
.search-pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--c-muted);
}
.search-pagination a {
  color: var(--c-navy);
  text-decoration: none;
  font-weight: 500;
}
.search-pagination a:hover { color: var(--c-gold); }

/* ── Модальное окно поиска ───────────────────────────────────── */

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 32px;
  overflow-y: auto;
}
.search-modal[hidden] { display: none; }

.search-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 48, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.search-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(10, 18, 48, 0.2);
  overflow: hidden;
  animation: modal-in .18s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(-12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.search-modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--c-border);
}
.search-modal__icon {
  flex-shrink: 0;
  color: var(--c-muted);
}

.search-modal__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: transparent;
  min-width: 0;
}
.search-modal__input::placeholder { color: var(--c-muted-2); }

.search-modal__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--c-muted);
  transition: background .12s, color .12s;
}
.search-modal__close:hover {
  background: var(--c-bg-soft);
  color: var(--c-ink);
}

.search-modal__body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px 0 4px;
  overscroll-behavior: contain;
}

.search-modal__hint {
  padding: 24px 20px;
  color: var(--c-muted);
  font-size: 14px;
  text-align: center;
}
.search-modal__hint strong { color: var(--c-ink); }

/* Группы результатов */
.search-modal__group { padding: 4px 0; }
.search-modal__group + .search-modal__group {
  border-top: 1px solid var(--c-border);
  margin-top: 2px;
}

.search-modal__group-title {
  padding: 8px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.search-modal__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--c-ink);
  transition: background .1s;
  border-radius: 0;
}
.search-modal__item:hover {
  background: var(--c-bg-soft);
  color: var(--c-ink);
}

.search-modal__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.search-modal__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-soft-2);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
}

.search-modal__item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.search-modal__item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-modal__item:hover .search-modal__item-title { color: var(--c-gold); }

.search-modal__item-meta {
  font-size: 11px;
  color: var(--c-muted-2);
}
.search-modal__item-snippet {
  font-size: 12px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* «Показать все N результатов» */
.search-modal__more {
  display: block;
  margin: 4px 12px 12px;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  background: var(--c-bg-soft);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .12s, color .12s;
  border-top: 1px solid var(--c-border);
  margin-top: 8px;
}
.search-modal__more:hover {
  background: var(--c-gold);
  color: #fff;
}

@media (max-width: 768px) {
  .search-form__row { flex-direction: column; }
  .search-form__btn { width: 100%; justify-content: center; }
  .search-modal { padding: 56px 8px 16px; }
  .search-modal__panel { border-radius: var(--radius); }
  .search-modal__body { max-height: 70vh; }
}

/* Адаптив перенесенных компонентов */
@media (max-width: 1180px) {
  .regions-section__head { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .regions-section__head h2 { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .regions__grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Страница входа / авторизации
   ===================================================================== */
.auth-page {
  background: var(--bg-soft);
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--pad-x);
}
.auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 14px;
  padding: 48px 56px 40px;
  box-shadow: 0 10px 40px rgba(11, 25, 60, .06);
}
.auth-card__title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text);
}
.auth-card__subtitle {
  margin-top: 12px;
  text-align: center;
  font-size: 15px;
  color: var(--text-mute);
}
.auth-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field { position: relative; }
.auth-input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, background .15s;
}
.auth-input::placeholder { color: var(--text-mute); }
.auth-input:focus { border-color: var(--accent); background: #fff; }
.auth-field--password .auth-input { padding-right: 52px; }
.auth-eye {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--text-mute);
  transition: color .15s;
}
.auth-eye:hover { color: var(--accent); }
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.auth-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.auth-link { font-size: 14px; color: var(--text-mute); transition: color .15s; }
.auth-link:hover { color: var(--accent); }
.auth-link--strong { color: var(--text); font-weight: 600; }
.auth-submit {
  margin-top: 8px;
  width: 100%;
  padding: 16px;
  border-radius: 30px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: filter .15s;
}
.auth-submit:hover { filter: brightness(1.12); }
.auth-card__foot {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--text-mute);
}
.auth-form__error {
  background: #fbeef0;
  border: 1px solid #f2d2d8;
  color: #be2e41;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
}
.auth-field__error { margin-top: 6px; font-size: 13px; color: #be2e41; }

@media (max-width: 560px) {
  .auth-card { padding: 36px 24px 28px; }
  .auth-card__title { font-size: 26px; }
}

/* =====================================================================
   Фото-галерея (блок gallery)
   ===================================================================== */
.gallery-grid {
  margin: 0 var(--pad-x) 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}
.gallery-item { display: flex; flex-direction: column; }
.gallery-item__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
}
.gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}
.gallery-item__media:hover img { transform: scale(1.04); }
.gallery-item__caption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Карточки разделов документов (страница «Документы»)
   ===================================================================== */
.hub-grid {
  margin: 0 var(--pad-x) 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 40px;
  min-height: 285px;
  color: var(--text);
  transition: background .18s, border-color .18s, transform .15s, box-shadow .15s;
}
.hub-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 28px;
  transition: background .18s, color .18s;
}
.hub-card h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 85%;
}
.hub-card .sub {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-mute);
}
.hub-card .arrow-circle {
  position: absolute;
  right: 32px;
  bottom: 32px;
  width: 34px;
  height: 34px;
  color: #fff;                 /* белая стрелка на синем кружке (без наведения) */
  transition: background .18s, color .18s;
}
.hub-card .arrow-circle svg { width: 7px; height: 12px; }

/* Карточка под курсором — темная */
.hub-card:hover,
.hub-card:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(11, 25, 60, .18);
}
.hub-card:hover h3,
.hub-card:focus-visible h3 { color: #fff; }
.hub-card:hover .sub,
.hub-card:focus-visible .sub { color: rgba(255, 255, 255, .72); }
.hub-card:hover .hub-icon,
.hub-card:focus-visible .hub-icon {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.hub-card:hover .arrow-circle,
.hub-card:focus-visible .arrow-circle {
  background: #fff;
  color: var(--accent);
}

@media (max-width: 1100px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card { min-height: 220px; padding: 32px; }
}

