/* main.css — SPA documentation hub styles */

:root {
  --navy:   #0a1628;
  --navy2:  #0f1f3d;
  --blue:   #2563eb;
  --blue2:  #1d4ed8;
  --sky:    #38bdf8;
  --light:  #eff6ff;
  --border: #e5e7eb;
  --text:   #1f2937;
  --muted:  #6b7280;
  --white:  #ffffff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(10,22,40,.12);
  --shadow-lg: 0 12px 48px rgba(10,22,40,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #f0f4fa;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ══ Экран пароля ══ */
.auth-bg {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(155deg, #0a1628 0%, #0f2050 55%, #1a3570 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  padding: 44px 40px;
  width: 100%; max-width: 400px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.auth-logo {
  height: 56px; border-radius: 12px;
  background: #fff; padding: 6px 12px;
  margin: 0 auto 20px; display: block;
}
.auth-title {
  font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px;
}
.auth-sub {
  font-size: 13px; color: #93c5fd; margin-bottom: 24px;
}
.auth-divider {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: 2px; margin: 0 auto 28px;
}
.auth-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: #7dd3fc;
  margin-bottom: 12px;
}
.auth-input-wrap {
  position: relative; margin-bottom: 10px;
}
.auth-input {
  width: 100%; padding: 14px 48px 14px 18px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 10px;
  color: #fff; font-family: inherit; font-size: 15px;
  outline: none; transition: .2s;
  letter-spacing: 2px;
}
.auth-input::placeholder { color: rgba(255,255,255,.3); letter-spacing: 0; }
.auth-input:focus {
  border-color: var(--blue);
  background: rgba(37,99,235,.12);
  box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.auth-input-wrap.shake {
  animation: shake .4s ease;
}
.auth-eye {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.4); padding: 4px;
  transition: .2s; display: flex;
}
.auth-eye:hover { color: #fff; }
.auth-error {
  font-size: 12px; color: #f87171;
  margin-bottom: 16px; display: none;
}
.auth-error.visible { display: block; }
.auth-btn {
  width: 100%; padding: 14px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 10px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: .2s; margin-bottom: 28px;
}
.auth-btn:hover { background: var(--blue2); transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }
.auth-footer {
  font-size: 11px; color: rgba(255,255,255,.25); letter-spacing: .5px;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
}

/* ── Шапка ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  height: 64px;
}

.header-logo {
  display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none;
}
.header-logo img {
  height: 36px; border-radius: 8px; background: #fff; padding: 4px 8px;
}
.header-logo span {
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .3px;
}

.header-nav {
  display: flex; gap: 6px;
}
.nav-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.65);
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.nav-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-btn.active { background: var(--blue); color: #fff; }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; transition: .3s;
}

/* ── Мобильное меню ── */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--navy2);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 12px 16px;
  flex-direction: column; gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-btn { text-align: left; padding: 11px 16px; border-radius: 10px; }

/* ── Главный контейнер ── */
main { padding-top: 64px; min-height: 100vh; }

/* ── Экраны ── */
.screen { display: none; }
.screen.active { display: block; }

/* ══════════════════════════════════════
   ГЛАВНАЯ СТРАНИЦА
══════════════════════════════════════ */
#screen-home {
  display: none;
}
#screen-home.active { display: block; }

.hero {
  background: linear-gradient(155deg, var(--navy) 0%, #0f2050 55%, #1a3570 100%);
  padding: 72px 32px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 72px; border-radius: 16px;
  background: #fff; padding: 8px 12px;
  margin: 0 auto 28px;
  display: block;
}
.hero-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--sky);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800; color: #fff; line-height: 1.15;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 16px; color: #93c5fd; line-height: 1.7;
  max-width: 540px; margin: 0 auto 40px;
}
.hero-accent {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: 2px; margin: 0 auto;
}

/* Карточки */
.cards-section {
  padding: 56px 32px;
  max-width: 1120px; margin: 0 auto;
}
.cards-title {
  text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 36px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--border);
  transition: .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before { background: linear-gradient(90deg, var(--blue), var(--sky)); }

/* Партнёрство — выделенная карточка */
.card.featured {
  background: linear-gradient(155deg, var(--navy2) 0%, #1a3060 100%);
  border-color: rgba(37,99,235,.4);
  color: #fff;
}
.card.featured::before {
  background: linear-gradient(90deg, var(--blue), var(--sky));
}
.card.featured:hover { transform: translateY(-8px) scale(1.01); }

.card-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 20px; margin-bottom: 20px;
  background: var(--light); color: var(--blue);
  width: fit-content;
}
.card.featured .card-badge {
  background: rgba(37,99,235,.25); color: var(--sky);
}

.card-icon {
  font-size: 36px; margin-bottom: 16px; line-height: 1;
}

.card h2 {
  font-size: 19px; font-weight: 700; margin-bottom: 10px;
  color: var(--navy2);
  border: none; padding: 0;
}
.card.featured h2 { color: #fff; }

.card-desc {
  font-size: 13.5px; color: var(--muted); line-height: 1.65;
  margin-bottom: 20px; flex: 1;
}
.card.featured .card-desc { color: #93c5fd; }

.card-meta {
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px; margin-top: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.card.featured .card-meta {
  border-color: rgba(255,255,255,.12); color: #7dd3fc;
}

.card-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; padding: 10px 20px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .2s;
  width: fit-content;
}
.card-btn:hover { background: var(--blue2); }
.card.featured .card-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
}
.card.featured .card-btn:hover { background: rgba(255,255,255,.25); }

/* ══════════════════════════════════════
   ПРОСМОТР ДОКУМЕНТА
══════════════════════════════════════ */
.doc-screen { display: none; }
.doc-screen.active { display: block; }

.doc-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2050 100%);
  padding: 40px 32px 48px;
  position: relative; overflow: hidden;
}
.doc-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}
.doc-hero-inner {
  max-width: 860px; margin: 0 auto;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: #93c5fd; font-size: 13px; font-weight: 500;
  background: none; border: none;
  cursor: pointer; margin-bottom: 20px;
  transition: .2s; font-family: inherit;
}
.back-btn:hover { color: #fff; }
.doc-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--sky); margin-bottom: 10px;
}
.doc-hero h1 {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 800; color: #fff; line-height: 1.2;
  margin-bottom: 12px;
}
.doc-hero-sub {
  font-size: 14px; color: #93c5fd; line-height: 1.65;
}
.doc-meta-row {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px;
}
.doc-meta-item { color: #7dd3fc; }
.doc-meta-item strong { color: #fff; }

/* Контент документа */
.doc-body {
  max-width: 860px; margin: 0 auto;
  padding: 48px 32px 72px;
}

.doc-content h1 {
  font-size: 22px; font-weight: 800; color: var(--navy2);
  margin: 0 0 6px; border: none; padding: 0;
}
.doc-content h2 {
  font-size: 15px; font-weight: 700; color: var(--navy2);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}
.doc-content h3 {
  font-size: 13px; font-weight: 700; color: #1e3a6e;
  margin: 22px 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
}
.doc-content h4 {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin: 16px 0 6px;
}
.doc-content p { margin: 0 0 10px; line-height: 1.75; }
.doc-content strong { color: var(--navy2); font-weight: 700; }
.doc-content em { color: #374151; }
.doc-content ul, .doc-content ol {
  margin: 8px 0 14px; padding-left: 22px;
}
.doc-content li { margin-bottom: 5px; line-height: 1.7; }
.doc-content li > ul { margin: 4px 0; }
.doc-content hr {
  border: none; border-top: 1px solid var(--border); margin: 28px 0;
}
.doc-content blockquote {
  margin: 20px 0; padding: 16px 20px;
  background: var(--light);
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  color: #1e3a6e; font-style: italic;
}
.doc-content blockquote p { margin: 0; }
.doc-content table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0; font-size: 13px;
  border-radius: 10px; overflow: hidden;
}
.doc-content th {
  background: var(--navy2); color: #fff;
  font-weight: 600; padding: 11px 14px; text-align: left;
  font-size: 12px;
}
.doc-content td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.doc-content tr:last-child td { border-bottom: none; }
.doc-content tr:nth-child(even) td { background: #f8fafc; }
.doc-content code {
  background: #f1f5f9; padding: 2px 6px;
  border-radius: 4px; font-size: 12px;
  font-family: 'Courier New', monospace; color: #1e3a6e;
}

/* ── Кнопка наверх ── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
  border: none; cursor: pointer;
  font-size: 18px; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  transition: .2s;
}
.scroll-top:hover { background: var(--blue2); transform: translateY(-2px); }
.scroll-top.visible { display: flex; }

/* ── Футер ── */
footer {
  background: var(--navy);
  padding: 32px;
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  line-height: 2;
}
footer a { color: var(--sky); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.signed-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

/* ══════════════════════════════════════
   АДАПТИВ
══════════════════════════════════════ */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .signed-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  header { padding: 0 16px; }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 20px 56px; }
  .cards-section { padding: 40px 16px; }
  .doc-hero { padding: 28px 16px 36px; }
  .doc-body { padding: 32px 16px 56px; }
  .doc-meta-row { gap: 12px; }
  .scroll-top { bottom: 16px; right: 16px; }
}

/* ── Блок скачивания ── */
.download-section {
  max-width: 860px; margin: 0 auto;
  padding: 0 32px 56px;
}
.download-card {
  background: linear-gradient(135deg, var(--navy2) 0%, #1a3060 100%);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.download-card-text h3 {
  font-size: 16px; font-weight: 700; color: #fff;
  margin-bottom: 6px;
  border: none; padding: 0;
}
.download-card-text p {
  font-size: 13px; color: #93c5fd; margin: 0;
}
.download-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--navy2);
  padding: 13px 28px; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: .2s; box-shadow: 0 4px 16px rgba(0,0,0,.2);
  flex-shrink: 0;
}
.download-btn:hover {
  background: var(--light); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.download-btn svg { flex-shrink: 0; }

@media (max-width: 640px) {
  .download-section { padding: 0 16px 48px; }
  .download-card { flex-direction: column; align-items: flex-start; padding: 24px; }
  .download-btn { width: 100%; justify-content: center; }
}

/* ── Анимации ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp .45s ease both; }
.animate-d1 { animation-delay: .1s; }
.animate-d2 { animation-delay: .2s; }
.animate-d3 { animation-delay: .3s; }
.animate-d4 { animation-delay: .4s; }

/* ════════════════════════════════════════
   МЕМОРАНДУМ — стили контента
════════════════════════════════════════ */
.mem-wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 48px; }

.mem-section {
  background: #fff; border-radius: 12px;
  box-shadow: 0 4px 24px rgba(10,22,40,.08);
  padding: 28px 32px; margin-bottom: 20px;
}

.mem-title h1 { font-size: clamp(20px,4vw,30px); font-weight: 800; color: var(--navy2); margin-bottom: 4px; }
.mem-date { color: var(--muted); font-size: 13px; margin-bottom: 4px; }

.highlight-box {
  background: var(--light); border: 1.5px solid #bfdbfe;
  border-radius: 10px; padding: 16px 20px; margin: 14px 0;
}
.highlight-box p { margin: 0; font-size: 14px; }

.feature-box {
  background: linear-gradient(135deg, #0f1f3d 0%, #1e3a6e 100%);
  color: #fff; border-radius: 12px; padding: 20px 24px; margin: 14px 0;
}
.feature-box h3 { color: #38bdf8; border-left-color: #38bdf8; margin-top: 0; }
.feature-box p, .feature-box li { color: #e0f2fe; font-size: 14px; }
.feature-box strong { color: #fff; }
.feature-box ul { margin-top: 10px; }
.big-amount { font-size: clamp(22px,5vw,32px); font-weight: 800; color: #38bdf8; display: block; margin: 8px 0 6px; line-height: 1.1; }

.trust-box {
  background: linear-gradient(135deg, #0a1628 0%, #162544 100%);
  border: 1.5px solid rgba(56,189,248,.4); border-radius: 14px;
  padding: 24px 28px; margin: 14px 0; position: relative; overflow: hidden;
}
.trust-box::before { content:''; position:absolute; top:-40px; right:-40px; width:160px; height:160px; border-radius:50%; background:rgba(37,99,235,.08); }
.trust-box-label { font-size:11px; letter-spacing:2px; text-transform:uppercase; color:#7dd3fc; font-weight:600; margin-bottom:6px; }
.trust-box-amount { font-size: clamp(26px,6vw,38px); font-weight:800; color:#38bdf8; line-height:1.1; margin-bottom:10px; }
.trust-box-desc { font-size:14px; color:#bfdbfe; line-height:1.7; margin-bottom:16px; }
.trust-box-desc strong { color:#fff; }
.trust-rules { display:flex; flex-direction:column; gap:8px; }
.trust-rule { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:#e0f2fe; line-height:1.5; }
.trust-rule-icon { flex-shrink:0; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; margin-top:1px; }
.trust-rule-icon.ok  { background:rgba(34,197,94,.2);  color:#86efac; }
.trust-rule-icon.no  { background:rgba(239,68,68,.2);   color:#fca5a5; }
.trust-rule-icon.inf { background:rgba(56,189,248,.2);  color:#7dd3fc; }

.req-card { background:#f8fafc; border:1.5px solid var(--border); border-radius:10px; padding:18px 20px; margin-top:16px; }
.req-row { display:flex; gap:12px; padding:7px 0; border-bottom:1px solid var(--border); font-size:14px; flex-wrap:wrap; }
.req-row:last-child { border-bottom:none; }
.req-label { color:var(--muted); min-width:130px; flex-shrink:0; font-size:13px; }
.req-value { color:var(--navy2); font-weight:600; }
.req-value.placeholder { color:#9ca3af; font-weight:400; font-style:italic; }

.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; margin:12px 0 16px; border-radius:8px; border:1px solid var(--border); }
.table-wrap table { min-width:380px; width:100%; border-collapse:collapse; font-size:14px; }
.table-wrap th { background:var(--navy2); color:#fff; font-weight:600; padding:10px 14px; text-align:left; font-size:13px; white-space:nowrap; }
.table-wrap td { padding:9px 14px; border-bottom:1px solid var(--border); vertical-align:top; line-height:1.6; }
.table-wrap tr:last-child td { border-bottom:none; }
.table-wrap tr:nth-child(even) td { background:#f8fafc; }

.obligations-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:4px; }

.signatures-title { font-size:12px; font-weight:700; color:var(--navy2); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:16px; padding-bottom:8px; border-bottom:2px solid var(--blue); }
.signatures-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.sig-block { border:1.5px solid var(--border); border-radius:10px; padding:18px 20px; background:#fff; }
.sig-block-badge { font-size:10px; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.sig-block-party { font-size:15px; font-weight:700; color:var(--navy2); margin-bottom:14px; }
.sig-row { display:flex; gap:8px; font-size:13px; margin-bottom:5px; flex-wrap:wrap; }
.sig-label { color:var(--muted); min-width:72px; flex-shrink:0; }
.sig-value { color:var(--navy2); font-weight:600; }
.sig-value.ph { color:#9ca3af; font-weight:400; font-style:italic; }
.sig-line-wrap { margin-top:20px; padding-top:14px; border-top:1.5px solid var(--border); }
.sig-underline { border-bottom:1.5px solid #374151; height:28px; margin-bottom:6px; }
.sig-line-label { font-size:11px; color:#9ca3af; display:flex; justify-content:space-between; }

.mem-docs { max-width:860px; margin:0 auto; padding:0 20px 64px; }
.mem-docs-title { font-size:12px; font-weight:700; color:var(--navy2); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:14px; padding-bottom:8px; border-bottom:2px solid var(--blue); }
.mem-docs-grid { display:flex; flex-direction:column; gap:12px; }
.mem-doc-card { display:flex; align-items:center; gap:16px; background:#fff; border:1.5px solid var(--border); border-radius:12px; padding:16px 20px; text-decoration:none; color:inherit; box-shadow:var(--shadow); transition:box-shadow .2s,border-color .2s,transform .15s; }
.mem-doc-card:hover { border-color:var(--blue); box-shadow:0 8px 32px rgba(37,99,235,.14); transform:translateY(-1px); }
.mem-doc-card--pending { opacity:.65; cursor:default; pointer-events:none; }
.mem-doc-icon { flex-shrink:0; width:52px; height:52px; background:var(--light); border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--blue); }
.mem-doc-icon--muted { background:#f1f5f9; color:var(--muted); }
.mem-doc-body { flex:1; min-width:0; }
.mem-doc-label { font-size:15px; font-weight:700; color:var(--navy2); margin-bottom:3px; }
.mem-doc-meta { font-size:12px; color:var(--muted); line-height:1.4; }
.mem-doc-btn { flex-shrink:0; background:var(--blue); color:#fff; font-size:13px; font-weight:600; padding:8px 16px; border-radius:8px; white-space:nowrap; }
.mem-doc-btn--muted { background:#e5e7eb; color:var(--muted); }

@media (max-width: 640px) {
  .mem-wrap { padding: 20px 14px 40px; }
  .mem-section { padding: 18px 16px; }
  .obligations-grid { grid-template-columns: 1fr; }
  .signatures-grid { grid-template-columns: 1fr; }
  .mem-docs { padding: 0 14px 48px; }
  .mem-doc-card { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .mem-doc-btn { width: 100%; text-align: center; padding: 10px; }
  .req-label { min-width: 100px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .mem-section { padding: 22px 24px; }
  .obligations-grid { grid-template-columns: 1fr; }
}
