:root {
  --navy-1: #0a0a14;
  --navy-2: #141428;
  --navy-3: #1a1a2e;
  --navy:   #1a3c5e;
  --navy-d: #14304b;
  --gold:   #f0a500;
  --gold-d: #d99400;
  --bg:     #f5f5f5;
  --ink:    #2a2a2a;
  --muted:  #666;
  --red:    #e94560;
  --red-d:  #c0392b;
  --green:  #2e9e5b;
  --line:   #e6e8ec;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.08);
  --z-nav: 200;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  width: 42px; height: 42px; flex: none;
  background: var(--navy); border-radius: 9px;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 4px 12px rgba(26,60,94,0.35);
  position: relative; overflow: hidden;
}
.logo__mark svg { width: 24px; height: 24px; }
.logo__mark .chk { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.9s var(--ease) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.logo__mark::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: sheen 4.5s ease-in-out 1.2s infinite;
}
@keyframes sheen { 0%, 60% { left: -120%; } 80%, 100% { left: 130%; } }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.5px; color: var(--navy); }
.logo__name b { color: var(--gold); font-weight: 700; }
.logo__tag { font-size: 0.66rem; letter-spacing: 1px; color: var(--muted); margin-top: 4px; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .logo__mark .chk { animation: none; stroke-dashoffset: 0; } .logo__mark::after { animation: none; } }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.topbar__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 24px;
}
.topbar__nav { display: flex; align-items: center; gap: 26px; }
.topbar__nav a:not(.btn) {
  text-decoration: none; color: var(--navy); font-size: 0.95rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.topbar__nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width 0.25s var(--ease);
}
.topbar__nav a:not(.btn):hover::after,
.topbar__nav a:not(.btn).active::after { width: 100%; }
.topbar__nav a:not(.btn).active { color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #000;
  font-weight: 700; font-size: 1rem;
  padding: 14px 32px; border-radius: 8px;
  text-decoration: none; border: 2px solid var(--gold); cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(240,165,0,0.35); background: var(--gold-d); border-color: var(--gold-d); }
.btn:active { transform: translateY(0); }
.btn.outline { background: transparent; color: var(--gold); }
.btn.outline:hover { background: rgba(240,165,0,0.12); box-shadow: none; color: var(--gold); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-d); border-color: var(--navy-d); box-shadow: 0 10px 24px rgba(26,60,94,0.3); }
.btn.sm { padding: 9px 20px; font-size: 0.9rem; }
.btn.block { width: 100%; justify-content: center; }
.btn svg { transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } .btn:hover svg { transform: none; } }

/* ---------- Page card ---------- */
.page { max-width: 1100px; width: 100%; background: #fff; margin: 24px auto; box-shadow: var(--shadow); border-radius: 6px; overflow: hidden; }
@media (max-width: 640px) { .page { margin: 0 auto; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 40%, var(--navy-3) 100%);
  color: #fff; padding: 64px 70px; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(240,165,0,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(120% 120% at 80% 0%, #000, transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.hero .label { font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: 4px; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; margin: 0 0 8px; line-height: 1.08; letter-spacing: 1px; }
.hero h1 span { color: var(--gold); }
.hero .motto { font-size: 1rem; color: var(--gold); letter-spacing: 2px; font-weight: 600; margin-bottom: 18px; }
.hero .subtitle { font-size: 1.15rem; color: #cfd8dc; margin-bottom: 30px; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); }
.stat b { display: block; font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat span { font-size: 0.85rem; color: #aeb8c2; }

/* Inner-page hero (compact, centered) */
.hero.inner { padding: 56px 70px; text-align: center; }
.hero.inner h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.hero.inner h1 span { color: var(--gold); }
.hero.inner .subtitle { margin: 16px auto 0; max-width: 60ch; }

/* Seal */
.seal-wrap { display: grid; place-items: center; }
.seal { width: min(280px, 64vw); aspect-ratio: 1; filter: drop-shadow(0 16px 36px rgba(0,0,0,0.5)); animation: floaty 7s var(--ease) infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.seal__rot { transform-origin: 150px 150px; animation: spin 38s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal .chk2 { stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw 1.1s var(--ease) 0.6s forwards; }
@media (prefers-reduced-motion: reduce) { .seal, .seal__rot { animation: none; } .seal .chk2 { animation: none; stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
.section { padding: 56px 70px; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; color: var(--navy); margin: 0 0 12px; text-align: center; }
.section .sub { text-align: center; color: var(--muted); font-size: 1rem; margin: 0 auto 36px; max-width: 60ch; }
.section.alt { background: #fafbfc; }

/* Problem */
.problem-grid { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.problem-card { flex: 1 1 280px; background: #fff5f5; border-left: 4px solid var(--red); padding: 22px; border-radius: 8px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(201,57,67,0.16); }
.problem-card strong { display: block; margin-bottom: 8px; color: var(--red-d); font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .problem-card:hover { transform: none; } }

/* Steps */
.steps { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.step { flex: 1 1 200px; text-align: center; padding: 26px 20px; background: #f8fafc; border-radius: 10px; border-top: 3px solid var(--navy); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.step .num { width: 46px; height: 46px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 700; font-size: 1.1rem; box-shadow: 0 6px 16px rgba(26,60,94,0.3); transition: background 0.25s var(--ease), transform 0.25s var(--ease); }
.step:hover .num { background: var(--gold); color: #000; transform: scale(1.08); }
.step strong { color: var(--navy); font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .step:hover { transform: none; } .step:hover .num { transform: none; } }

/* Value */
.value-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.value-card { flex: 1 1 300px; background: #f0f4f8; padding: 28px; border-radius: 10px; text-align: center; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease); }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: #fff; }
.value-card .icon { font-size: 40px; margin-bottom: 12px; display: inline-block; transition: transform 0.3s var(--ease); }
.value-card:hover .icon { transform: scale(1.15) rotate(-4deg); }
.value-card strong { color: var(--navy); font-size: 1.15rem; }
.value-card p { color: var(--muted); font-size: 0.95rem; margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .value-card:hover { transform: none; } .value-card:hover .icon { transform: none; } }

/* Trust */
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 16px 36px; flex-wrap: wrap; }
.trust-logo { font-weight: 700; color: var(--navy); font-size: 1rem; text-align: center; padding: 12px 22px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); opacity: 0.92; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.trust-logo:hover { transform: translateY(-3px); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .trust-logo:hover { transform: none; } }

/* CTA */
.cta-section { background: var(--navy); color: #fff; text-align: center; padding: 56px 70px; position: relative; overflow: hidden; }
.cta-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% -20%, rgba(240,165,0,0.18), transparent 60%); }
.cta-section > * { position: relative; }
.cta-section h2 { color: #fff; }
.cta-section p { color: #d4dde6; margin-bottom: 24px; }
.cta-section .hero__actions { justify-content: center; }

.footer { text-align: center; padding: 26px; color: #9aa3ab; font-size: 0.82rem; background: #fff; border-top: 1px solid var(--line); }
.footer .logo { margin-bottom: 10px; }

/* ---------- Portal entry (two paths) ---------- */
.portal-entry { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.entry-card {
  position: relative; overflow: hidden;
  border-radius: 14px; padding: 32px; color: #fff;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.entry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.entry-card.client { background: linear-gradient(140deg, var(--navy), var(--navy-d)); }
.entry-card.maker  { background: linear-gradient(140deg, #243b20, #1c2f1a); }
.entry-card.expert { background: linear-gradient(140deg, #4a3675, #2f2350); }
.entry-card .e-ic { width: 52px; height: 52px; border-radius: 12px; background: rgba(255,255,255,0.12); display: grid; place-items: center; }
.entry-card h3 { margin: 0; font-size: 1.5rem; color: #fff; }
.entry-card p { margin: 0; color: rgba(255,255,255,0.85); font-size: 0.98rem; flex: 1; }
.entry-card .e-go { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; margin-top: 8px; }
.entry-card .e-go svg { transition: transform 0.2s var(--ease); }
.entry-card:hover .e-go svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .entry-card:hover { transform: none; } }

/* ---------- Webinars ---------- */
.events { display: grid; gap: 18px; max-width: 880px; margin: 0 auto; }
.event {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px;
  box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.event:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d7dbe0; }
.event__date { width: 86px; height: 86px; flex: none; background: var(--navy); color: #fff; border-radius: 12px; display: grid; place-content: center; text-align: center; box-shadow: 0 6px 16px rgba(26,60,94,0.3); }
.event__date b { font-size: 1.9rem; font-weight: 700; line-height: 1; }
.event__date span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-top: 4px; }
.event__body h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.18rem; }
.event__meta { font-size: 0.9rem; color: var(--muted); }
.event__sponsor { font-size: 0.9rem; color: var(--gold-d); font-weight: 700; margin-top: 2px; }
.event__live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--red-d); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.event__live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(233,69,96,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(233,69,96,0); } 100% { box-shadow: 0 0 0 0 rgba(233,69,96,0); } }
@media (prefers-reduced-motion: reduce) { .event:hover { transform: none; } .event__live .pulse { animation: none; } }
@media (max-width: 680px) {
  .event { grid-template-columns: auto 1fr; }
  .event .btn { grid-column: 1 / -1; }
}

/* ---------- Conference pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--gold); }
.plan__badge { align-self: flex-start; background: var(--gold); color: #000; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.plan h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.3rem; text-align: center; }
.plan__price { text-align: center; font-size: 2.1rem; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.plan__price small { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.95rem; color: var(--ink); }
.plan li svg { flex: none; margin-top: 3px; color: var(--green); }
@media (prefers-reduced-motion: reduce) { .plan:hover { transform: none; } }

/* ---------- Portal login page ---------- */
.login-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-sm); }
.login-card.maker { border-top: 4px solid var(--green); }
.login-card.client { border-top: 4px solid var(--navy); }
.login-card.expert { border-top: 4px solid #6b4fa0; }
.login-card .lc-ic { width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.login-card.client .lc-ic { background: var(--navy); }
.login-card.maker .lc-ic { background: var(--green); }
.login-card.expert .lc-ic { background: #6b4fa0; }
.login-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.35rem; }
.login-card .lc-sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; }
.login-card label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.login-card input {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; background: #fafbfc;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.login-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,165,0,0.18); background: #fff; }
.login-card .lc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.login-card .lc-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.lc-perks { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.lc-perks li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; color: var(--ink); }
.lc-perks li svg { flex: none; margin-top: 3px; color: var(--green); }

/* ---------- Catalog (рекламная витрина) ---------- */
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product__shot { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 14px; overflow: hidden; }
.product__shot svg { max-height: 158px; height: 100%; width: auto; filter: drop-shadow(0 10px 18px rgba(20,40,70,0.18)); transition: transform 0.4s var(--ease); }
.product:hover .product__shot svg { transform: translateY(-4px) scale(1.03); }
@media (prefers-reduced-motion: reduce) { .product:hover .product__shot svg { transform: none; } }
.product__badge { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px; background: var(--gold); color: #000; font-size: 0.72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 10px rgba(240,165,0,0.35); z-index: 1; }
.product__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product__brand { font-size: 1.3rem; font-weight: 700; color: var(--navy); letter-spacing: 0.3px; }
.product__cat { font-size: 0.85rem; color: var(--muted); margin-top: -8px; }
.product__body p { margin: 0; color: var(--ink); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 0.78rem; color: var(--navy); background: #eef3f8; border-radius: 999px; padding: 4px 10px; }
.product__maker { font-size: 0.82rem; color: var(--muted); }
.product .btn { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .product:hover { transform: none; } }

/* ---------- НАСП: оргструктура и направления ---------- */
.org { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.org__row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.org-node { background: #f8fafc; border: 2px solid var(--navy); border-radius: 12px; padding: 18px; text-align: center; color: var(--navy); }
.org-node.gold { border-color: var(--gold); background: #fffdf5; }
.org-node.red { border-color: var(--red); background: #fff5f5; text-align: left; }
.org-node.green { border-color: var(--green); background: #f5fff8; text-align: left; }
.org-node b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.org-node ul { margin: 8px 0 0; padding-left: 18px; font-weight: 400; font-size: 0.9rem; color: var(--ink); }
.org-arrow { text-align: center; color: var(--navy); font-size: 20px; line-height: 1; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.dir { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.dir:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dir .icon { font-size: 30px; }
.dir b { display: block; color: var(--navy); margin: 10px 0 6px; font-size: 1.05rem; }
.dir p { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) { .dir:hover { transform: none; } }
@media (max-width: 560px) { .org__row { grid-template-columns: 1fr; } }

/* ---------- Кабинеты (демо-страницы ролей) ---------- */
.cab-banner { background: linear-gradient(135deg, var(--navy-1), var(--navy-2) 45%, var(--navy-3)); color: #fff; padding: 44px 70px; }
.cab-banner .demo { display: inline-flex; align-items: center; gap: 7px; background: rgba(240,165,0,0.15); color: var(--gold); border: 1px solid rgba(240,165,0,0.4); font-size: 0.78rem; font-weight: 700; padding: 5px 13px; border-radius: 999px; margin-bottom: 14px; }
.cab-banner h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 8px; }
.cab-banner h1 span { color: var(--gold); }
.cab-banner > p { color: #cfd8dc; margin: 0; max-width: 62ch; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 28px; }
.metric { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 18px; }
.metric b { display: block; font-size: 1.7rem; font-weight: 700; color: var(--gold); line-height: 1; }
.metric span { font-size: 0.82rem; color: #aeb8c2; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.module { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.module:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d7dbe0; }
.module__ic { width: 50px; height: 50px; border-radius: 12px; background: #eef3f8; color: var(--navy); display: grid; place-items: center; }
.modules.maker .module__ic { background: #eaf3ea; color: var(--green); }
.modules.expert .module__ic { background: #efeaf8; color: #6b4fa0; }
.module h3 { margin: 0; color: var(--navy); font-size: 1.15rem; }
.module p { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.module__tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.module__tag.ready { background: #e8f5ec; color: #2e7d46; }
.module__tag.soon { background: #fff4e0; color: #a86e00; }
@media (prefers-reduced-motion: reduce) { .module:hover { transform: none; } }
@media (max-width: 860px) { .cab-banner { padding: 32px 28px; } }

/* ---------- Форум экспертов ---------- */
.forum-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.forum-tag { font-size: 0.85rem; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: default; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.forum-tag.active, .forum-tag:hover { background: var(--navy); color: #fff; }
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__cat { display: inline-block; align-self: flex-start; margin: 18px 18px 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #6b4fa0; background: #efeaf8; padding: 4px 10px; border-radius: 999px; }
.post__body { padding: 12px 18px 0; flex: 1; }
.post__body h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; }
.post__body p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.post__foot { display: flex; align-items: center; gap: 10px; padding: 16px 18px; margin-top: 14px; border-top: 1px solid var(--line-soft, #f0f2f5); }
.post__ava { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #6b4fa0; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.post__who { line-height: 1.3; }
.post__who b { display: flex; align-items: center; gap: 5px; font-size: 0.9rem; color: var(--navy); }
.post__who span { font-size: 0.78rem; color: var(--muted); }
.post__verif { color: #2e9e5b; display: inline-flex; }
.post__meta { margin-left: auto; text-align: right; font-size: 0.74rem; color: var(--muted); }
.post__doc { display: inline-flex; align-items: center; gap: 4px; color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .post:hover { transform: none; } }
.notice { max-width: 760px; margin: 0 auto 30px; background: #f0f4f8; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--ink); }
.notice svg { flex: none; margin-top: 2px; color: var(--navy); }

/* Карточки верификации экспертов */
.experts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.expert-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.expert-card__photo { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(140deg, #6b4fa0, #3f2f63); color: #fff; display: grid; place-items: center; font-size: 1.7rem; font-weight: 700; position: relative; }
.expert-card__photo .vchk { position: absolute; right: 0; bottom: 2px; width: 28px; height: 28px; background: #2e9e5b; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.expert-card h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--navy); }
.expert-card .role { color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.expert-card .work { color: var(--muted); font-size: 0.88rem; }
.expert-card .spec { margin-top: 12px; font-size: 0.76rem; color: #6b4fa0; background: #efeaf8; display: inline-block; padding: 4px 11px; border-radius: 999px; }
.vbadge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 700; color: #2e7d46; background: #e8f5ec; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .expert-card:hover { transform: none; } }

/* Лента форума: эксперт + публикация в одной карте */
.feed { display: grid; gap: 22px; max-width: 940px; margin: 0 auto; }
.feed-item { display: grid; grid-template-columns: 1fr 250px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.feed-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feed__main { padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.feed__cat { align-self: flex-start; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #6b4fa0; background: #efeaf8; padding: 4px 11px; border-radius: 999px; }
.feed__main h3 { margin: 0; color: var(--navy); font-size: 1.3rem; }
.feed__main p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.feed__doc { margin-top: 4px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: #eef3f8; color: var(--navy); border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; font-size: 0.88rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: background 0.2s var(--ease); }
.feed__doc:hover { background: #e3eaf2; }
.feed__author { background: #f8fafc; border-left: 1px solid var(--line); padding: 28px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.feed__photo { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(140deg, #6b4fa0, #3f2f63); color: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; position: relative; margin-bottom: 12px; }
.feed__photo .vchk { position: absolute; right: -2px; bottom: 0; width: 26px; height: 26px; background: #2e9e5b; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.feed__author h4 { margin: 0 0 3px; font-size: 1rem; color: var(--navy); }
.feed__author .role { font-size: 0.86rem; color: var(--ink); font-weight: 600; }
.feed__author .work { font-size: 0.82rem; color: var(--muted); }
.feed__author .spec { margin-top: 10px; font-size: 0.74rem; color: #6b4fa0; background: #efeaf8; padding: 3px 10px; border-radius: 999px; }
.feed__vauth { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 700; color: #2e7d46; }
.feed__when { margin-top: 8px; font-size: 0.76rem; color: var(--muted); }
@media (max-width: 720px) {
  .feed-item { grid-template-columns: 1fr; }
  .feed__author { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; gap: 4px 14px; text-align: left; align-items: center; }
  .feed__photo { margin-bottom: 0; }
  .feed__author h4 { width: 100%; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .feed-item:hover { transform: none; } }

/* Кнопка открытия документа */
.post__open { margin: 14px 18px 4px; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; background: #eef3f8; color: var(--navy); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 0.85rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: background 0.2s var(--ease); }
.post__open:hover { background: #e3eaf2; }

/* Просмотрщик документа (без скачивания) */
.doc-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(10,16,30,0.72); display: none; align-items: center; justify-content: center; padding: 24px; }
.doc-modal.open { display: flex; }
.doc-modal__panel { background: #fff; width: min(920px, 100%); height: min(86vh, 1100px); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.doc-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; background: var(--navy); color: #fff; }
.doc-modal__head b { font-size: 0.98rem; font-weight: 600; }
.doc-modal__head button { background: rgba(255,255,255,0.16); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 1.15rem; line-height: 1; }
.doc-modal__head button:hover { background: rgba(255,255,255,0.3); }
.doc-modal iframe { flex: 1; width: 100%; border: 0; background: #525659; }
.doc-modal__note { padding: 10px 18px; font-size: 0.82rem; color: var(--muted); background: #f5f7f9; display: flex; align-items: center; gap: 8px; }
.doc-modal__note svg { flex: none; color: var(--navy); }

/* ---------- Формы регистрации / верификации ---------- */
.segmented { display: flex; flex-wrap: wrap; justify-content: center; background: #eef1f5; border-radius: 12px; padding: 5px; gap: 4px; max-width: 640px; margin: 0 auto 30px; }
.segmented button { flex: 1 1 auto; border: 0; background: transparent; font-family: inherit; font-size: 0.94rem; font-weight: 600; color: var(--muted); padding: 11px 18px; border-radius: 9px; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.segmented button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.reg { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-sm); }
.reg[hidden] { display: none; }
.reg.client { border-top: 4px solid var(--navy); }
.reg.maker { border-top: 4px solid var(--green); }
.reg.expert { border-top: 4px solid #6b4fa0; }
.reg__head { display: flex; gap: 14px; align-items: center; }
.reg__ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.reg.client .reg__ic { background: var(--navy); }
.reg.maker .reg__ic { background: var(--green); }
.reg.expert .reg__ic { background: #6b4fa0; }
.reg h3 { margin: 0; color: var(--navy); font-size: 1.3rem; }
.reg__sub { color: var(--muted); font-size: 0.9rem; margin: 2px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; font-size: 0.97rem; font-family: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,165,0,0.18); background: #fff; }
.req { color: var(--red); }
.drop { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; border: 1.5px dashed #c7cdd6; border-radius: 12px; padding: 16px; background: #fafbfc; }
.drop__prev { width: 72px; height: 72px; border-radius: 12px; background: #eef1f5; display: grid; place-items: center; overflow: hidden; flex: none; color: #9aa3ab; }
.drop__prev img { width: 100%; height: 100%; object-fit: cover; }
.drop__txt { font-size: 0.9rem; color: var(--muted); }
.drop__txt b { color: var(--navy); display: block; margin-bottom: 2px; }
.drop__name { font-size: 0.82rem; color: var(--green); margin-top: 4px; }
.drop input[type=file] { display: none; }
.btnf { display: inline-block; margin-top: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--navy); background: #eef3f8; border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; }
.btnf:hover { background: #e3eaf2; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 0.87rem; color: var(--ink); margin-top: 4px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.consent a { color: var(--navy); }
.reg__submit { grid-column: 1 / -1; margin-top: 8px; }
.reg__success { display: none; text-align: center; padding: 26px 10px; }
.reg__success.show { display: block; }
.reg__form.hide { display: none; }
.reg__ok { width: 64px; height: 64px; border-radius: 50%; background: #e8f5ec; color: #2e9e5b; display: grid; place-items: center; margin: 0 auto 16px; }
.reg__success h4 { margin: 0 0 8px; color: var(--navy); font-size: 1.25rem; }
.reg__success p { margin: 0 auto; color: var(--muted); max-width: 46ch; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Главная: полоса доверия и блок выгод ---------- */
.trust-strip { background: var(--gold); color: var(--navy-1); text-align: center; font-weight: 700; font-size: 1.05rem; line-height: 1.5; padding: 16px 26px; border-radius: 12px; max-width: 1000px; margin: 0 auto; box-shadow: 0 8px 22px rgba(240,165,0,0.25); }
.hero__stats .stat.t b { font-size: 1.05rem; color: #fff; }
.hero__stats .stat.t span { color: var(--gold); }
.benefit-box { background: #fef7e8; border: 1px solid #f6e3bd; border-radius: 18px; padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
.benefit-box h3 { color: var(--navy); font-size: 1.45rem; margin: 0 0 14px; }
.benefit-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.benefit-box li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; color: var(--ink); }
.benefit-box li svg { flex: none; margin-top: 3px; color: var(--green); }
.benefit-box .emoji { font-size: 64px; line-height: 1; }
@media (max-width: 640px) { .benefit-box { grid-template-columns: 1fr; } .benefit-box .emoji { display: none; } }
.article-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; color: #b87c10; background: #fdf3df; padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }
.value-card.article { text-align: left; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero, .hero.inner { padding: 48px 28px; }
  .hero__grid { grid-template-columns: 1fr; }
  .seal-wrap { order: -1; }
  .section { padding: 44px 28px; }
  .cta-section { padding: 44px 28px; }
  .portal-entry, .login-split { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .topbar__nav {
    position: absolute; top: 100%; right: 12px; left: 12px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px; box-shadow: var(--shadow); display: none;
  }
  .topbar__nav.open { display: flex; }
  .topbar__nav a:not(.btn) { padding: 10px 12px; border-radius: 8px; }
  .topbar__nav a:not(.btn):hover { background: #f5f7f9; }
  .topbar__nav a:not(.btn)::after { display: none; }
  .topbar__nav .btn { justify-content: center; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
  .logo__tag { display: none; }
}
