/* ============================================================
   ОСФ — Объединённый совет финансистов
   Дизайн-система: dark private banking
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* --- Поверхности (глубокий графит-navy) --- */
  --bg:        #0b0f13;
  --bg-2:      #0e1319;
  --surface:   #131b23;
  --surface-2: #18222c;
  --surface-3: #1d2832;

  /* --- Тёплое золото (только акцент) --- */
  --gold:        #c9a25a;
  --gold-bright: #e3c483;
  --gold-deep:   #9c7c3e;
  --gold-soft:   rgba(201, 162, 90, 0.14);
  --gold-line:   rgba(201, 162, 90, 0.34);

  /* --- Светлый «шампань» (1 акцентная секция) --- */
  --ivory:      #f4efe6;
  --ivory-2:    #ebe3d4;
  --ink:        #1a1f25;

  /* --- Текст --- */
  --text:       #ece7dd;
  --text-2:     #c3c8cd;
  --muted:      #8b949d;
  --muted-2:    #69717a;

  /* --- Линии --- */
  --line:        rgba(255, 255, 255, 0.08);
  --line-2:      rgba(255, 255, 255, 0.14);
  --line-warm:   rgba(201, 162, 90, 0.22);

  /* --- Радиусы (сдержанные, не consumer-pill) --- */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* --- Тени --- */
  --shadow:    0 18px 50px -24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.85);

  /* --- Раскладка --- */
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: #0b0f13; }

/* ============================================================
   Typography
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-size: clamp(46px, 6.4vw, 104px);
  margin: 0;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
  font-size: clamp(38px, 5vw, 72px);
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-size: clamp(30px, 3.8vw, 52px);
  margin: 0;
}
.h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}
.serif { font-family: var(--font-display); }
.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--text-2);
  font-weight: 400;
}
.eyebrow {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-line);
}
.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-line);
}
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-tight { padding: clamp(54px, 7vw, 96px) 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 14px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  padding: 16px 30px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .25s, border-color .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--gold);
  color: #14110a;
  box-shadow: 0 10px 30px -12px rgba(201,162,90,.55);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(201,162,90,.7);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--gold-line);
  color: var(--gold-bright);
  transform: translateY(-2px);
}
.btn-ghost-gold {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold-line);
}
.btn-ghost-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-lg { padding: 19px 38px; font-size: 16.5px; }
.btn-sm { padding: 12px 20px; font-size: 14px; }
.btn .arw { transition: transform .3s; }
.btn:hover .arw { transform: translateX(4px); }

/* link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-bright);
  transition: gap .25s, color .25s;
}
.tlink:hover { gap: 14px; color: var(--gold); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .3s, transform .3s, box-shadow .3s, background .3s;
}
.card:hover {
  border-color: var(--line-warm);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* hairline pill / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.015);
}

/* small stat */
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* ============================================================
   Monogram / mark (лаконичный знак ОСФ, без сложного орла)
   ============================================================ */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  letter-spacing: 0;
}
.mark-emblem {
  width: 38px; height: 38px;
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
}
.mark-emblem svg { width: 100%; height: 100%; display: block; }
.mark-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.mark-word b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.mark-word span {
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
}

/* Компактный eagle-mark ОСФ (header) — орёл + щит, без нижней надписи */
.mark-eagle {
  height: 54px; width: auto; max-width: none; flex: none; display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(201,162,90,.18)) drop-shadow(0 3px 8px rgba(0,0,0,.5));
}

/* Полный герб ОСФ (footer и крупные бренд-блоки, прозрачный PNG) */
.footer-logo {
  height: 116px; width: auto; max-width: none; flex: none; display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(201,162,90,.14)) drop-shadow(0 6px 16px rgba(0,0,0,.5));
}
@media (max-width: 720px) {
  .mark-eagle { height: 46px; }
  .footer-logo { height: 96px; }
}

/* ============================================================
   Icon system — строго геометрия (круг, ромб, линии)
   ============================================================ */
.ico {
  width: 46px; height: 46px;
  border-radius: 11px;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  display: grid; place-items: center;
  flex: none;
}
.ico svg { width: 22px; height: 22px; stroke: var(--gold-bright); fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* watermark монограмма / герб как водяной знак */
.watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  opacity: 0.035;
  line-height: 0.8;
  letter-spacing: -0.02em;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: revIn .75s cubic-bezier(.2,.7,.3,1) both; }
}
@keyframes revIn { from { transform: translateY(16px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* gold gradient hairline rule */
.rule-gold {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold-line) 82%, transparent);
}

/* grain / vignette overlays for depth */
.vignette::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0,0,0,.45) 100%);
}

/* ============================================================
   POLISH LAYER — micro-interactions, glow, a11y (v6)
   ============================================================ */

/* — Accessibility: visible focus ring on keyboard nav only — */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(201,162,90,.18);
}

/* — Premium primary CTA: soft static glow + lift, with sheen sweep — */
.btn-primary {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--gold-bright), var(--gold) 58%, var(--gold-deep));
  box-shadow: 0 10px 30px -12px rgba(201,162,90,.55), 0 0 0 1px rgba(227,196,131,.12) inset;
}
.btn-primary::after {
  content: "";
  position: absolute; top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg);
  transition: left .65s cubic-bezier(.25,.7,.3,1);
  pointer-events: none;
}
.btn-primary:hover::after { left: 135%; }
.btn-primary:hover {
  box-shadow: 0 18px 46px -14px rgba(201,162,90,.78), 0 0 22px -4px rgba(227,196,131,.4), 0 0 0 1px rgba(227,196,131,.2) inset;
}
.btn-primary:active { transform: translateY(0); transition-duration: .08s; }
.btn-ghost:active, .btn-ghost-gold:active { transform: translateY(0); transition-duration: .08s; }

/* — Header phone as link — */
a.nav-phone { transition: color .25s; white-space: nowrap; }
a.nav-phone:hover { color: var(--gold-bright); }
a.nav-phone:hover small { color: var(--gold); }
a.nav-phone small { transition: color .25s; }

/* — Card depth: subtle top sheen on hover for service/advantage cards — */
.svc::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% -10%, rgba(201,162,90,.07), transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.svc:hover::before { opacity: 1; }
.svc:hover { box-shadow: 0 24px 60px -30px rgba(0,0,0,.85), 0 0 0 1px var(--gold-line) inset; }

/* — Links with .tlink get a smoother arrow nudge — */
.tlink span { display: inline-block; transition: transform .3s; }
.tlink:hover span { transform: translateX(4px); }

/* — Reveal: add gentle fade so blocks after hero feel less flat — */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: revIn .8s cubic-bezier(.2,.7,.3,1) both; }
}
@keyframes revIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* — Premium footer: gold hairline accent at the very top — */
.footer { position: relative; }
.footer::before {
  content: "";
  position: absolute; top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 20%, var(--gold) 50%, var(--gold-line) 80%, transparent);
  opacity: .6;
}
.footer ul a { position: relative; }
.footer ul a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold-bright);
  transition: width .28s cubic-bezier(.2,.7,.3,1);
}
.footer ul a:hover::after { width: 100%; }

/* ============================================================
   Mobile menu panel (осф-nav.js)
   ============================================================ */
.nav-mobile {
  position: fixed;
  top: 80px; left: 0; right: 0;
  z-index: 99;
  background: rgba(11,15,19,.96);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  padding: 18px var(--pad) 26px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.7,.3,1);
}
.nav-mobile.show { opacity: 1; transform: none; }
.nav-mobile[hidden] { display: none; }
.nav-mobile .nm-links { display: flex; flex-direction: column; }
.nav-mobile .nm-links a {
  font-size: 17px; font-weight: 500; color: var(--text);
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .2s;
}
.nav-mobile .nm-links a:hover { color: var(--gold-bright); padding-left: 10px; }
.nav-mobile .nm-phone {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 16px; padding: 14px 16px;
  border: 1px solid var(--gold-line); border-radius: var(--r-lg);
  background: var(--gold-soft);
}
.nav-mobile .nm-ph-lab { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.nav-mobile .nm-ph-num { font-size: 20px; font-weight: 700; color: var(--gold-bright); font-family: var(--font-display); }
.nav-mobile .nm-cta { margin-top: 14px; width: 100%; }
@media (min-width: 1041px) { .nav-mobile { display: none !important; } }
@media (max-width: 720px) { .nav-mobile { top: 66px; } }



