/* ============================================
   MASTERMIND PRO — MAIN STYLESHEET v1.0
   Premium SaaS · McKinsey × Notion × Linear
   ============================================ */

/* Шрифт подключается в functions.php с preconnect: @import внутри CSS
   сериализует загрузку и задерживает первую отрисовку. */

:root {
  --bg: #f5f7fb;
  --ink: #14213d;
  --muted: #5C6B80;
  --blue: #0b5cad;
  --blue2: #143b77;
  --cyan: #17b7c8;
  --card: #ffffff;
  --line: #e2e8f0;
  --orange: #ff9a2f;
  --purple: #7c3aed;
  --green: #16a34a;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(15,23,42,.12);
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(23,183,200,.18), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(124,58,237,.13), transparent 30%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.wrap { max-width: none; margin: 0 auto; padding: 0 clamp(22px, 3.6vw, 84px); }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  /* Тёмная шапка на всём сайте: тема «ночь» сделала ссылки белыми,
     и на прежней светлой подложке они пропадали на внутренних
     страницах (политика, заявка). Грунт тот же, что у лендинга. */
  background: rgba(10,9,8,.92);
  border-bottom: 1px solid rgba(255,255,255,.11);
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .03em; }
.gem {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg,#06233f,#0b5cad 55%,#17b7c8);
  box-shadow: 0 10px 25px rgba(11,92,173,.25);
  display: grid; place-items: center; color: white; font-weight: 900; font-size: 13px;
}
.navlinks { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.navlinks a:hover { color: var(--blue); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: white; font-weight: 800; border: 0; cursor: pointer; font-size: 15px;
  box-shadow: 0 14px 36px rgba(11,92,173,.25);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(11,92,173,.32); color: white; }
.btn.secondary { background: white; color: var(--blue); border: 1px solid var(--line); box-shadow: none; }
.btn.secondary:hover { background: #f0f6ff; }
.btn.danger { background: linear-gradient(135deg,#dc2626,#991b1b); }
.btn.success { background: linear-gradient(135deg,#16a34a,#14532d); }
.btn.sm { padding: 9px 16px; font-size: 13px; }

/* ── HERO ── */
.hero { padding: 84px 0 54px; }
.grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 38px; align-items: center; }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.75);
  color: var(--blue); font-weight: 800; font-size: 13px;
}
h1 { font-size: 64px; line-height: .96; margin: 24px 0 18px; letter-spacing: -.055em; }
.lead { font-size: 21px; line-height: 1.55; color: #334155; max-width: 680px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ── HERO CARD / DASHBOARD PREVIEW ── */
.hero-card {
  background: rgba(255,255,255,.75); border: 1px solid rgba(226,232,240,.9);
  border-radius: 34px; padding: 24px; box-shadow: var(--shadow);
}
.dashboard-preview {
  background: #0f172a; color: white; border-radius: 28px; padding: 24px;
  overflow: hidden; position: relative;
}
.dashboard-preview::before {
  content: ""; position: absolute; inset: -80px -80px auto auto;
  width: 220px; height: 220px; background: rgba(23,183,200,.35); filter: blur(55px);
}
.dash-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.pill { font-size: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: #dbeafe; }
.score { font-size: 54px; font-weight: 900; margin: 28px 0 4px; }
.score span { font-size: 18px; color: #93c5fd; }
.bars { display: grid; gap: 13px; margin-top: 26px; }
.bar-row { display: grid; grid-template-columns: 115px 1fr 36px; gap: 12px; align-items: center; font-size: 13px; color: #cbd5e1; }
.bar { height: 9px; background: rgba(255,255,255,.13); border-radius: 999px; overflow: hidden; }
.fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#17b7c8,#60a5fa); }

/* ── STAT CARDS ── */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 34px; }
.mini { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.mini b { display: block; font-size: 34px; color: var(--blue); margin-bottom: 8px; }

/* ── SECTIONS ── */
section { padding: 70px 0; }
.section-title { font-size: 42px; line-height: 1.05; margin: 0 0 14px; letter-spacing: -.04em; }
.section-lead { font-size: 18px; color: var(--muted); line-height: 1.55; max-width: 760px; }

/* ── FEATURES ── */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 30px; }
.feature {
  background: white; border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; box-shadow: 0 10px 36px rgba(15,23,42,.06);
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(15,23,42,.1); }
.icon {
  width: 44px; height: 44px; border-radius: 15px; background: #e0f2fe;
  color: var(--blue); display: grid; place-items: center; font-weight: 900; margin-bottom: 16px;
}

/* ── BUSINESS MRI QUIZ ── */
.quiz {
  background: white; border: 1px solid var(--line); border-radius: 34px;
  padding: 28px; box-shadow: var(--shadow); margin-top: 30px;
}
.quiz-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
label { display: block; font-size: 13px; font-weight: 800; color: #334155; margin-bottom: 7px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: #f8fafc; font-size: 15px; color: var(--ink); outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: white; }
.person-card { background: #f8fafc; border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin-top: 14px; }
.person-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 900; }

/* ── RESULTS ── */
.results { display: none; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.result-card { border-radius: 24px; border: 1px solid var(--line); background: #fff; padding: 22px; }
.big-index { font-size: 58px; font-weight: 900; color: var(--blue); letter-spacing: -.04em; }
.muted { color: var(--muted); }
.rec {
  background: linear-gradient(135deg,#eff6ff,#f8fafc);
  border: 1px solid #bfdbfe; border-radius: 22px; padding: 20px; margin-top: 16px;
}
.locked { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }
.locked div { padding: 16px; border-radius: 18px; background: #f1f5f9; color: #475569; font-weight: 700; }

/* ── PROGRAM TABLE ── */
.program-table { display: grid; gap: 12px; margin-top: 30px; }
.week { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 12px; align-items: stretch; }
.week > * { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.week .num { background: #0f172a; color: white; font-weight: 900; }

/* ── PRICING ── */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 30px; }
.price {
  background: white; border: 1px solid var(--line); border-radius: 28px;
  padding: 26px; box-shadow: 0 10px 36px rgba(15,23,42,.06);
  display: flex; flex-direction: column;
}
.price.featured { border: 2px solid var(--blue); transform: translateY(-8px); }
.price h3 { font-size: 28px; margin: 0 0 8px; }
.amount { font-size: 42px; font-weight: 900; color: var(--blue); margin: 14px 0; }
.price ul { padding-left: 20px; color: #334155; line-height: 1.7; flex: 1; }
.price .btn { margin-top: 20px; width: 100%; }

/* ── CTA BLOCK ── */
.cta {
  background: linear-gradient(135deg,#0f172a,#143b77);
  color: white; border-radius: 36px; padding: 44px;
  margin: 40px 0 70px; position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -90px; top: -90px;
  width: 280px; height: 280px; background: rgba(23,183,200,.35);
  border-radius: 999px; filter: blur(40px);
}
.cta h2 { font-size: 44px; margin: 0 0 12px; letter-spacing: -.04em; position: relative; }
.cta p { color: #dbeafe; font-size: 18px; position: relative; max-width: 720px; }

/* ── FOOTER ── */
footer { padding: 30px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* ── APPLY FORM ── */
.apply-form {
  background: white; border: 1px solid var(--line); border-radius: 34px;
  padding: 36px; box-shadow: var(--shadow); max-width: 680px; margin: 30px auto 0;
}
.apply-form h3 { font-size: 28px; margin: 0 0 6px; }
.apply-form .sub { color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.mp-notice {
  padding: 18px 22px; border-radius: 16px; font-size: 14px; margin-bottom: 16px;
  display: none;
}
.mp-notice.success { background: #dcfce7; border: 1px solid #86efac; color: #166534; display: block; }
.mp-notice.error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; display: block; }

/* ── DASHBOARD / MEMBER AREA ── */
.mp-dashboard { min-height: 100vh; }
.mp-sidebar {
  width: 260px; background: #0f172a; color: white;
  position: fixed; top: 0; left: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 28px 20px;
  overflow-y: auto;
}
.mp-sidebar .brand { color: white; margin-bottom: 36px; }
.mp-sidebar .gem { flex-shrink: 0; }
.mp-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 600;
  color: #94a3b8; text-decoration: none; margin-bottom: 4px;
  transition: background .15s, color .15s;
}
.mp-nav-item:hover, .mp-nav-item.active {
  background: rgba(255,255,255,.08); color: white;
}
.mp-nav-item.active { background: rgba(11,92,173,.4); color: #60a5fa; }
.mp-nav-section { font-size: 11px; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: .08em; padding: 12px 14px 6px; margin-top: 8px; }
.mp-main { margin-left: 260px; padding: 36px 40px; min-height: 100vh; }
.mp-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.mp-topbar h1 { font-size: 28px; margin: 0; }
.mp-user-badge { display: flex; align-items: center; gap: 10px; }
.mp-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--cyan)); display: grid; place-items: center; color: white; font-weight: 800; font-size: 14px; }

/* Dashboard cards */
.mp-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 28px; }
.mp-stat { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.mp-stat .val { font-size: 36px; font-weight: 900; color: var(--blue); margin-bottom: 4px; }
.mp-stat .lbl { font-size: 13px; color: var(--muted); }

.mp-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 24px; margin-bottom: 20px; }
.mp-card h2 { font-size: 20px; margin: 0 0 16px; }

/* Week progress */
.week-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.week-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  position: relative; overflow: hidden;
}
.week-card.unlocked { background: white; }
.week-card.locked { background: #f8fafc; }
.week-card.completed { border-color: #86efac; background: #f0fdf4; }
.week-badge {
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  margin-bottom: 10px; display: inline-block;
}
.week-badge.open { background: #dbeafe; color: var(--blue); }
.week-badge.done { background: #dcfce7; color: #166534; }
.week-badge.lock { background: #f1f5f9; color: #94a3b8; }
.week-card h4 { margin: 0 0 6px; font-size: 15px; }
.week-card p { margin: 0; font-size: 13px; color: var(--muted); }

/* ── ADMIN PANEL ── */
.mp-admin-table { width: 100%; border-collapse: collapse; }
.mp-admin-table th {
  text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 800;
  color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 2px solid var(--line); background: #f8fafc;
}
.mp-admin-table td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.mp-admin-table tr:hover td { background: #f8fafc; }
.status-badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.status-new { background: #dbeafe; color: #1e40af; }
.status-contacted { background: #fef9c3; color: #854d0e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-active { background: #e0f2fe; color: #0369a1; }
.status-paid { background: #f3e8ff; color: #6b21a8; }
.pkg-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pkg-basic { background: #f1f5f9; color: #475569; }
.pkg-premium { background: #dbeafe; color: var(--blue); }
.pkg-vip { background: #fef9c3; color: #854d0e; }

/* Filters bar */
.admin-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.filter-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: white; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.filter-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

/* ── LEAD DETAIL MODAL ── */
.mp-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.mp-modal-overlay.open { display: flex; }
.mp-modal {
  background: white; border-radius: 28px; padding: 32px; max-width: 640px; width: 100%;
  box-shadow: 0 40px 100px rgba(15,23,42,.25); max-height: 90vh; overflow-y: auto;
}
.mp-modal h2 { margin: 0 0 4px; }
.mp-modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.detail-row { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-row:last-of-type { border-bottom: none; }
.detail-label { color: var(--muted); font-weight: 700; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ── STATUS PAGE (after submit) ── */
.status-page { max-width: 560px; margin: 80px auto; text-align: center; padding: 0 22px; }
.status-icon { font-size: 64px; margin-bottom: 16px; }
.status-page h2 { font-size: 32px; margin: 0 0 10px; }
.status-page p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.status-page .ref { display: inline-block; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 10px 20px; font-weight: 800; color: var(--blue); margin: 16px 0; }

/* ── ACCESS DENIED ── */
.access-denied {
  max-width: 500px; margin: 100px auto; text-align: center; padding: 44px;
  background: white; border-radius: 32px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.access-denied .icon-big { font-size: 56px; margin-bottom: 16px; }
.access-denied h2 { font-size: 26px; margin: 0 0 10px; }
.access-denied p { color: var(--muted); margin-bottom: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .grid, .quiz-grid, .result-grid, .features, .pricing, .cards { grid-template-columns: 1fr; }
  h1 { font-size: 46px; }
  .week { grid-template-columns: 1fr; }
  /* RN8.1b: navlinks stay visible on a wrapped row (see RN8 shell layer below) */
  .locked, .week-grid { grid-template-columns: 1fr 1fr; }
  .mp-stat-grid { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .mp-sidebar { width: 220px; }
  .mp-main { margin-left: 220px; padding: 24px; }
}
@media (max-width: 640px) {
  h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .locked { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: 1fr; }
  .mp-sidebar { display: none; }
  .mp-main { margin-left: 0; }
  .mp-stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Mastermind Pro v2.0 — Product Platform Blocks
   ============================================================ */
.mp-v2 .wrap{max-width:none;margin:0 auto;padding-left:clamp(22px,3.6vw,84px);padding-right:clamp(22px,3.6vw,84px)}
.v2-hero{padding:78px 0 64px;background:radial-gradient(circle at 15% 15%, rgba(23,183,200,.18), transparent 33%),radial-gradient(circle at 90% 0, rgba(124,58,237,.14), transparent 34%)}
.v2-hero-grid{display:grid;grid-template-columns:1.03fr .97fr;gap:34px;align-items:center}
.v2-hero-copy h1{font-size:64px;line-height:.96;letter-spacing:-.06em;margin:24px 0 18px;max-width:760px}
.v2-product-map{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.v2-product-map span{padding:10px 13px;border:1px solid var(--line);background:rgba(255,255,255,.74);border-radius:999px;font-size:13px;font-weight:800;color:#334155}
.v2-hero-visual{position:relative;background:rgba(255,255,255,.78);border:1px solid rgba(226,232,240,.9);border-radius:34px;padding:14px;box-shadow:var(--shadow)}
.v2-hero-visual img{width:100%;display:block;border-radius:26px;min-height:360px;object-fit:cover;background:#e2e8f0}
.v2-floating-dashboard{position:relative;margin:-82px 24px 10px;background:#0f172a;color:#fff;border-radius:26px;padding:22px;box-shadow:0 22px 65px rgba(15,23,42,.34)}
.v2-floating-dashboard .score{font-size:52px;margin:18px 0 5px}.v2-floating-dashboard .score span{font-size:18px;color:#93c5fd}
.v2-suite{padding:70px 0}.v2-suite-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:32px}
.v2-suite-card{display:block;background:#fff;border:1px solid var(--line);border-radius:26px;padding:24px;box-shadow:0 12px 38px rgba(15,23,42,.06);transition:.25s ease}
.v2-suite-card:hover{transform:translateY(-4px);box-shadow:0 20px 55px rgba(15,23,42,.12)}
.v2-suite-card div{width:50px;height:50px;border-radius:18px;background:#e0f2fe;display:grid;place-items:center;font-size:24px;margin-bottom:14px}.v2-suite-card h3{margin:0 0 8px;font-size:22px}.v2-suite-card p{margin:0;color:#5C6B80;line-height:1.5}
.v2-module{padding:74px 0}.v2-module.alt{background:rgba(255,255,255,.6);border-top:1px solid rgba(226,232,240,.75);border-bottom:1px solid rgba(226,232,240,.75)}
.v2-two-col{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}.v2-checks{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:10px}.v2-checks li{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 15px;color:#334155;font-weight:750}.v2-checks li:before{content:'✓';color:#0b5cad;font-weight:950;margin-right:9px}
.v2-panel{background:#fff;border:1px solid var(--line);border-radius:30px;padding:26px;box-shadow:var(--shadow)}.v2-panel.dark{background:linear-gradient(135deg,#0f172a,#143b77);color:#fff}.v2-panel.dark p{color:#dbeafe}
.v2-role-row{display:grid;grid-template-columns:120px 42px 1fr;gap:10px;align-items:center;margin:15px 0;color:#334155}.v2-role-row div{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden}.v2-role-row i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#18b7c7,#0b5cad)}.v2-insight{margin-top:18px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:18px;padding:16px;color:#143b77;font-weight:750}
.v2-energy-score{font-size:76px;font-weight:950;letter-spacing:-.05em}.v2-energy-score span{font-size:22px;color:#93c5fd}.v2-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.v2-mini-grid div{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:14px;color:#dbeafe;font-weight:800}
.v2-workbook-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:30px}.v2-page-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:24px;box-shadow:0 12px 38px rgba(15,23,42,.06)}.v2-page-card span{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#0f172a;color:white;font-weight:950;margin-bottom:14px}.v2-page-card h3{margin:0 0 8px}.v2-page-card p{color:#5C6B80;margin:0;line-height:1.5}
.v2-program .week{transition:.2s ease}.v2-program .week:hover{transform:translateX(4px)}
.v2-chat{background:#0f172a;border-radius:30px;padding:24px;box-shadow:var(--shadow);display:grid;gap:14px}.v2-msg{max-width:88%;padding:15px 17px;border-radius:18px;line-height:1.45}.v2-msg.user{justify-self:end;background:#dbeafe;color:#143b77}.v2-msg.bot{justify-self:start;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);color:#e2e8f0}
.v2-cabinet-demo{display:grid;grid-template-columns:240px 1fr;background:#0f172a;border-radius:34px;overflow:hidden;box-shadow:var(--shadow);margin-top:30px}.v2-cabinet-demo aside{padding:24px;background:#08111f;color:white;display:grid;align-content:start;gap:10px}.v2-cabinet-demo aside b{margin-bottom:16px}.v2-cabinet-demo aside a{padding:13px 14px;border-radius:14px;background:rgba(255,255,255,.08);color:#dbeafe;font-weight:800}.v2-cabinet-demo main{padding:26px;background:#f8fafc}.v2-cab-top{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px}.v2-cab-top h3{margin:0}.v2-cab-top p{margin:4px 0 0;color:#5C6B80}.v2-cab-top span{background:#dbeafe;color:#143b77;padding:8px 12px;border-radius:999px;font-weight:850}.v2-kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.v2-kpi-grid div{background:white;border:1px solid var(--line);border-radius:18px;padding:18px}.v2-kpi-grid b{display:block;font-size:30px;color:#0b5cad}.v2-kpi-grid span{color:#5C6B80;font-size:13px}.v2-cab-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.v2-cab-columns div{background:white;border:1px solid var(--line);border-radius:20px;padding:18px}.v2-cab-columns h4{margin-top:0}
.v2-crm-table{background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:var(--shadow)}.v2-crm-table>div{display:grid;grid-template-columns:1.3fr .7fr .9fr .9fr;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line)}.v2-crm-table>div:first-child{background:#0f172a;color:#fff}.v2-crm-table>div:last-child{border-bottom:0}.v2-crm-table span:nth-child(3){font-weight:850;color:#0b5cad}
@media(max-width:980px){.v2-hero-grid,.v2-two-col,.v2-cabinet-demo{grid-template-columns:1fr}.v2-suite-grid{grid-template-columns:1fr 1fr}.v2-workbook-grid{grid-template-columns:1fr 1fr}.v2-kpi-grid{grid-template-columns:1fr 1fr}.v2-hero-copy h1{font-size:46px}.v2-floating-dashboard{margin:14px 0 0}.v2-cabinet-demo aside{grid-template-columns:1fr 1fr}.v2-cabinet-demo aside b{grid-column:1/-1}}
@media(max-width:640px){.v2-suite-grid,.v2-workbook-grid,.v2-cab-columns,.v2-mini-grid,.v2-kpi-grid{grid-template-columns:1fr}.v2-cabinet-demo aside{grid-template-columns:1fr}.v2-crm-table{font-size:12px}.v2-crm-table>div{grid-template-columns:1fr 50px 70px 70px}.v2-hero-copy h1{font-size:38px}}

/* === MasterMind Pro — branding / copy cleanup === */
.brand-logo{height:54px;width:auto;display:block}
.brand-name{font-weight:950;line-height:1.02;letter-spacing:.02em}
.v2-hero-centered{max-width:920px;margin:0 auto;text-align:center}
.v2-hero-centered .lead{margin-left:auto;margin-right:auto}
.v2-hero-centered .hero-actions{justify-content:center}
.v2-hero-centered .v2-product-map{justify-content:center}
.v2-founders{display:flex;gap:24px;justify-content:center;align-items:flex-end;flex-wrap:wrap;margin:36px 0 30px}
.v2-founders img{width:230px;max-width:42vw;height:auto;border-radius:22px;box-shadow:var(--shadow,0 24px 80px rgba(15,23,42,.12));background:#fff}
.v2-card-sub{display:block;font-size:12px;font-weight:600;letter-spacing:.02em;color:var(--muted,#5C6B80);margin:2px 0 8px}
.v2-suite-card h3{margin-bottom:2px}
@media(max-width:560px){.v2-founders img{width:44vw}}

/* === Landing hero polish (premium, two-column) === */
.v2-hero{background:linear-gradient(180deg,#f3f7ff 0%,#f6f2ff 60%,#fff 100%)}
.mmp-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;padding:30px 0 18px}
.mmp-hero-copy{text-align:left}
.mmp-hero-copy .eyebrow{display:inline-block;background:rgba(11,92,173,.08);color:var(--blue2,#143b77);padding:8px 16px;border-radius:999px;font-weight:700;font-size:13px;letter-spacing:.02em}
.mmp-hero-copy h1{max-width:16ch;margin:18px 0 14px;font-size:clamp(32px,3.6vw,50px);line-height:1.08;letter-spacing:-.03em}
.mmp-hero-copy .lead{max-width:54ch;font-size:18px;color:#475569;margin:0 0 26px}
.mmp-hero-copy .hero-actions{justify-content:flex-start}
.mmp-hero-media{display:flex;justify-content:center}
.mmp-hero-brand{display:flex;justify-content:center;align-items:center;width:100%;max-width:460px;padding:44px;border-radius:32px;background:linear-gradient(135deg,#e9f1fe,#f1ecff);box-shadow:var(--shadow,0 24px 80px rgba(15,23,42,.12))}
.mmp-hero-brand img{height:210px;width:auto;display:block;filter:drop-shadow(0 18px 42px rgba(11,92,173,.28))}
@media(max-width:900px){.mmp-hero-grid{grid-template-columns:1fr;gap:26px}.mmp-hero-copy{text-align:center}.mmp-hero-copy h1,.mmp-hero-copy .lead{margin-left:auto;margin-right:auto}.mmp-hero-copy .hero-actions{justify-content:center}}
@media(max-width:560px){.mmp-hero-brand img{height:150px}}

/* === Founder story / landing expansion === */
.mmp-hero-photo-wrap{position:relative;width:100%;max-width:470px;padding:18px;border-radius:34px;background:linear-gradient(160deg,rgba(255,255,255,.72),rgba(233,241,254,.5));border:1px solid rgba(255,255,255,.7);box-shadow:0 30px 80px rgba(15,23,42,.16)}
.mmp-hero-photo-wrap::after{content:"";position:absolute;inset:-26% -18% auto auto;width:58%;height:58%;background:radial-gradient(circle,rgba(124,58,237,.18),transparent 70%);filter:blur(10px);z-index:0;pointer-events:none}
.mmp-hero-photo{position:relative;z-index:1;width:100%;height:auto;display:block;border-radius:24px}
.mmp-founders{padding:62px 0}
.mmp-founders-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:38px}
.mmp-founder-card{position:relative;display:flex;gap:26px;align-items:center;background:linear-gradient(180deg,#fff,#fbfcff);border:1px solid var(--line,#e2e8f0);border-radius:30px;padding:30px;box-shadow:0 20px 60px rgba(15,23,42,.08);overflow:hidden;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease,border-color .35s ease}
.mmp-founder-card::before{content:"";position:absolute;inset:-40% -30% auto auto;width:55%;height:72%;background:radial-gradient(circle,rgba(11,92,173,.14),transparent 70%);opacity:0;transition:opacity .4s ease;pointer-events:none}
.mmp-founder-card:hover{transform:translateY(-6px);box-shadow:0 36px 92px rgba(15,23,42,.16);border-color:rgba(11,92,173,.28)}
.mmp-founder-card:hover::before{opacity:1}
.mmp-founder-photo{flex:0 0 168px;width:168px;height:200px;border-radius:24px;overflow:hidden;background:linear-gradient(135deg,#e9f1fe,#f1ecff);box-shadow:0 14px 36px rgba(11,92,173,.16)}
.mmp-founder-photo img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;transition:transform .5s ease}
.mmp-founder-card:hover .mmp-founder-photo img{transform:scale(1.04)}
.mmp-founder-photo--ph{display:flex;align-items:center;justify-content:center;font-weight:900;font-size:44px;color:var(--blue2,#143b77)}
.mmp-founder-body{position:relative;z-index:1}
.mmp-founder-body h3{margin:0 0 5px;font-size:25px;letter-spacing:-.01em}
.mmp-founder-role{font-size:13px;font-weight:800;color:var(--blue,#0b5cad);margin-bottom:12px;letter-spacing:.02em}
.mmp-founder-body p{margin:0;color:#475569;line-height:1.6;font-size:15.5px}
@media(prefers-reduced-motion:reduce){.mmp-founder-card,.mmp-founder-photo img{transition:none}.mmp-founder-card:hover{transform:none}.mmp-founder-card:hover .mmp-founder-photo img{transform:none}}
@media(max-width:560px){.mmp-founder-card{flex-direction:column;text-align:center;gap:18px}.mmp-founder-photo{flex:0 0 auto;width:200px;height:230px}}
.mmp-why{padding:8px 0 64px}
.mmp-why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}
.mmp-why-item{background:#fff;border:1px solid var(--line,#e2e8f0);border-radius:22px;padding:24px;box-shadow:0 12px 38px rgba(15,23,42,.06)}
.mmp-why-item span{font-size:26px;display:block;margin-bottom:12px}
.mmp-why-item p{margin:0;color:#334155;font-weight:600;line-height:1.5}
@media(max-width:820px){.mmp-founders-grid{grid-template-columns:1fr}.mmp-why-grid{grid-template-columns:1fr}}

/* === Landing expansion v2 (founder cards, problems, trends, idea) === */
/* hero photo as a clean framed image (no cut-out / glass glow) */
.mmp-hero-photo-wrap{position:relative;width:100%;max-width:460px;padding:0;border:1px solid rgba(255,255,255,.7);border-radius:28px;overflow:hidden;background:#eef3fb;box-shadow:0 30px 80px rgba(15,23,42,.16)}
.mmp-hero-photo-wrap::after{content:none}
.mmp-hero-photo{width:100%;height:auto;display:block;border-radius:0}

/* founder cards: photo column + structured body */
.mmp-founders-grid{grid-template-columns:1fr 1fr;gap:30px}
.mmp-founder-card{display:grid;grid-template-columns:230px 1fr;gap:0;align-items:stretch;padding:0;overflow:hidden}
.mmp-founder-photo{flex:none;width:100%;height:100%;min-height:340px;border-radius:0;background:#eef3fb}
.mmp-founder-photo img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}
.mmp-founder-ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:340px;font-weight:900;font-size:44px;color:var(--blue2,#143b77)}
.mmp-founder-body{padding:26px 28px}
.mmp-founder-head{margin-bottom:14px}
.mmp-founder-body h3{font-size:24px;margin:0 0 4px;letter-spacing:-.01em}
.mmp-founder-role{font-size:13px;font-weight:800;color:var(--blue,#0b5cad);letter-spacing:.02em}
.mmp-founder-facts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.mmp-founder-facts span{background:#f1f6ff;border:1px solid #e0ebfb;border-radius:999px;padding:6px 11px;font-size:12px;color:#334155}
.mmp-founder-facts b{color:var(--blue,#0b5cad)}
.mmp-founder-sec{margin-bottom:14px}
.mmp-founder-sec h4{margin:0 0 7px;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8}
.mmp-founder-sec ul{margin:0;padding-left:18px}
.mmp-founder-sec li{color:#475569;line-height:1.5;font-size:14px;margin-bottom:4px}
@media(max-width:900px){.mmp-founders-grid{grid-template-columns:1fr}}
@media(max-width:560px){.mmp-founder-card{grid-template-columns:1fr}.mmp-founder-photo{min-height:300px}}

/* problems */
.mmp-why{padding:8px 0 56px}
.mmp-problems{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:30px}
.mmp-problem{background:#fff;border:1px solid var(--line,#e2e8f0);border-radius:20px;padding:20px;box-shadow:0 12px 38px rgba(15,23,42,.06)}
.mmp-problem .n{display:inline-block;font-weight:900;color:var(--blue,#0b5cad);font-size:13px;background:#eef4ff;border-radius:8px;padding:3px 9px;margin-bottom:10px}
.mmp-problem h4{margin:0 0 6px;font-size:15px;line-height:1.25}
.mmp-problem p{margin:0;color:#5C6B80;font-size:13px;line-height:1.45}
.mmp-research{margin-top:18px;color:#94a3b8;font-size:13px}
@media(max-width:980px){.mmp-problems{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:640px){.mmp-problems{grid-template-columns:1fr}}

/* trends */
.mmp-trends{padding:8px 0 56px}
.mmp-trends-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:30px}
.mmp-trend-card{background:linear-gradient(180deg,#fff,#fbfcff);border:1px solid var(--line,#e2e8f0);border-radius:24px;padding:24px;box-shadow:0 16px 48px rgba(15,23,42,.07)}
.mmp-stats{list-style:none;margin:0 0 16px;padding:0}
.mmp-stats li{padding:10px 0;border-bottom:1px solid #eef2f7;color:#334155;font-size:14px;line-height:1.4}
.mmp-stats li:last-child{border-bottom:0}
.mmp-stats b{color:var(--blue,#0b5cad);font-size:20px;font-weight:900;margin-right:6px}
.mmp-trend-out{background:#0f172a;color:#dbeafe;border-radius:14px;padding:14px 16px;font-weight:700;font-size:13.5px;line-height:1.45}
@media(max-width:900px){.mmp-trends-grid{grid-template-columns:1fr}}

/* main idea */
.mmp-idea{padding:8px 0 64px}
.mmp-pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:30px}
.mmp-pillar{background:#fff;border:1px solid var(--line,#e2e8f0);border-radius:24px;padding:26px;box-shadow:0 14px 44px rgba(15,23,42,.06);text-align:center}
.mmp-pillar .ic{font-size:30px;margin-bottom:12px}
.mmp-pillar h4{margin:0 0 8px;font-size:18px}
.mmp-pillar p{margin:0;color:#5C6B80;font-size:14px;line-height:1.5}
.mmp-idea-core{margin-top:24px;background:linear-gradient(135deg,#0b5cad,#143b77);color:#fff;border-radius:28px;padding:30px;box-shadow:var(--shadow,0 24px 80px rgba(15,23,42,.12))}
.mmp-idea-core h3{margin:0 0 16px;font-size:24px;text-align:center}
.mmp-idea-points{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.mmp-idea-points li{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:14px 16px;font-weight:600;font-size:14px}
@media(max-width:900px){.mmp-pillars{grid-template-columns:1fr}.mmp-idea-points{grid-template-columns:1fr}}

/* ============================================================
   RN8.1b — Additive RN8 design token layer + public shell
   Additive only: existing tokens and selectors are unchanged.
   ============================================================ */
:root {
  --rn8-bg-ivory: #F4F1EA;
  --rn8-bg-porcelain: #FAF8F4;
  --rn8-surface: #FFFFFF;
  --rn8-surface-glass: rgba(255,255,255,0.72);
  --rn8-grid: rgba(144,112,80,0.10);
  --rn8-line-structure: #D8D2C6;
  --rn8-line-measure: rgba(32,32,32,0.18);
  --rn8-ink-900: #1B1B1D;
  --rn8-ink-500: #3D3D42;
  --rn8-ink-400: #5E5E66;
  --rn8-bronze-500: #8A5A32;
  --rn8-copper-600: #7A4A28;
  --rn8-champagne-300: #D9C7A7;
  --rn8-smoke: rgba(32,32,32,0.05);
  --rn8-fn-info: #2C5C87;
  --rn8-status-available: #2E6B4F;
  --rn8-status-connected: #2C5C87;
  --rn8-status-demo: #7A4A28;
  --rn8-status-development: #8A6A22;
  --rn8-status-planned: #5E5E66;
  --rn8-focus: #8A5A32;
  --rn8-font-display: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --rn8-font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --rn8-font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "DejaVu Sans Mono", monospace;
}

/* RN8 typography roles (additive utility layer; no global element override) */
.rn8-h1 { font-family: var(--rn8-font-display); font-size: 44px; line-height: 1.15; font-weight: 800; }
.rn8-h2 { font-family: var(--rn8-font-display); font-size: 32px; line-height: 1.20; font-weight: 700; }
.rn8-h3 { font-family: var(--rn8-font-display); font-size: 22px; line-height: 1.30; font-weight: 600; }
.rn8-body { font-family: var(--rn8-font-body); font-size: 17px; line-height: 1.65; font-weight: 400; }
.rn8-small { font-family: var(--rn8-font-body); font-size: 15px; line-height: 1.55; font-weight: 400; }
.rn8-caption { font-family: var(--rn8-font-body); font-size: 14px; line-height: 1.50; font-weight: 400; }
.rn8-data-label {
  font-family: var(--rn8-font-mono);
  font-size: 12px; line-height: 1.40; font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}
.rn8-min-text { font-size: 14px; }

/* RN8 header brand lockup */
.rn8-brand { display: inline-flex; align-items: center; gap: 14px; letter-spacing: normal; color: var(--rn8-ink-900); }
.rn8-glyph { display: none; }
.rn8-lockup { display: inline-flex; align-items: center; gap: 14px; line-height: 1.12; }
.rn8-name { font-family: var(--rn8-font-display); font-weight: 800; font-size: 34px; letter-spacing: .01em; color: var(--rn8-ink-900); }
.rn8-name-8 { color: var(--rn8-bronze-500); }
.rn8-tag {
  font-family: var(--rn8-font-body); font-weight: 500; font-size: 13px;
  color: var(--rn8-ink-500); padding-left: 14px;
  border-left: 1px solid var(--rn8-champagne-300);
}

/* RN8 shell navigation: readable size + adequate targets */
/* Шапка тёмная всюду: белые ссылки, янтарь на ховере. */
header { border-bottom: 1px solid rgba(255,255,255,.11); }
header .nav { height: 88px; }
header .navlinks { gap: 30px; color: var(--rn8-ink-500); }
header .navlinks a { color: var(--rn8-ink-500); font-weight: 500; }
header .navlinks a:hover { color: var(--rn8-bronze-500); }
header .btn.secondary {
  background: transparent;
  color: var(--rn8-ink-500);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: none;
}
header .btn.secondary:hover { border-color: var(--rn8-bronze-500); color: var(--rn8-bronze-500); }

header .navlinks { font-size: 15px; }
header .navlinks a { display: inline-flex; align-items: center; min-height: 44px; }

/* RN8 :focus-visible ring (shell scope) */
.rn8-brand:focus-visible,
header .navlinks a:focus-visible,
header .btn:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--rn8-focus);
  outline-offset: 2px;
}

/* RN8 CSS-only responsive header shell (no JavaScript) */
@media (max-width: 960px) {
  .nav { flex-wrap: wrap; height: auto; row-gap: 12px; padding: 12px 0; }
  /* Row 1: brand + auth; row 2: navigation. `order` keeps nav visually last
     while DOM/keyboard focus order stays brand -> nav -> auth. `flex-wrap` +
     min/max-width keep the five links bounded by the container (no overflow). */
  header .navlinks {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    gap: 12px 18px;
  }
  header .navlinks a { min-height: 44px; }
}
@media (max-width: 400px) {
  header .navlinks { gap: 12px 16px; }
}

/* Поля формы заявки: карточка белая, а цвет текста наследовался от
   тёмной темы страницы — выбор в селекте был белым по белому (PO 23.08).
   Прописываем цвета явно, не полагаясь на наследование. */
.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; font-size: 15px; font-family: inherit;
  color: #131318; background: #fff;
  border: 1px solid #d6dbe4; border-radius: 12px;
}
.apply-form select { cursor: pointer; }
.apply-form select option { color: #131318; background: #fff; }
.apply-form input::placeholder,
.apply-form textarea::placeholder { color: #9aa2b1; }
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: 2px solid #E0913F; outline-offset: 1px; border-color: #E0913F;
}
.apply-form label { color: #131318; font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }

/* Логотип в тёмной шапке — на всех страницах, не только на лендинге
   (раньше эти правила жили под body:has(main.mp-v2)). */
header .rn8-name { color: #fff; }
header .rn8-name-8 { color: #F0A85C; }
header .rn8-tag { color: rgba(255,255,255,.5); }
header .rn8-lockup { border-left-color: rgba(255,255,255,.16); }
.apply-form h3 { color: #131318; }
/* ── Согласие в форме заявки ──
   Чекбокс крупный и с большой зоной нажатия: без него заявка не уходит,
   поэтому промахнуться по нему человек не должен. Текст — обычного
   размера и цвета, не серая приписка: это то, под чем подписываются. */
.apply-form .apply-consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 4px 0 18px; font-size: 14px; line-height: 1.5; color: #131318;
  cursor: pointer;
}
.apply-form .apply-consent input[type="checkbox"] {
  width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0;
  accent-color: #B87450; cursor: pointer;
}
.apply-form .apply-consent a { color: #8A5A32; text-decoration: underline; }
.apply-form .apply-consent a:hover { color: #131318; }
.apply-form .apply-note {
  font-size: 13px; color: #585863; margin-top: 12px; line-height: 1.5;
}
