/* ============================================================
   SKOLKOVO HUB — style.css
   Visual system is aligned to the provided redesign:
   - Display font: Unbounded
   - Body font: Manrope
   - Accent: #C6F135
   - Dark ink backgrounds + subtle borders / blur
============================================================ */

/* ── Local Fonts ──────────────────────────────────────────── */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-300.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded-900.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(68px + env(safe-area-inset-top, 0px));
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--footer-bg);
  color-scheme: dark;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #FAFAFA;
  background-color: var(--footer-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Reserve space for fixed header (sticky is unreliable with overflow-x on html/body). */
  padding-top: calc(68px + env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Variables ────────────────────────────────────────────── */
:root {
  --ink: #0A0A0F;
  --ink-2: #16161F;
  --white: #FAFAFA;
  --accent: #C6F135;
  --accent-2: #A8D832;
  --accent-dim: rgba(198,241,53,0.12);
  --accent-border: rgba(198,241,53,0.3);
  --muted: #6B6B7A;

  /* Mapped tokens — page sections share footer flat base; gradients live on layers */
  --footer-bg: #05080F;
  --bg: var(--footer-bg);
  --bg-alt: var(--footer-bg);
  --bg-panel-faq: var(--footer-bg);
  --surface: #111118;
  --surface-2: #151520;
  --surface-3: #1A1A27;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --text: var(--white);
  --text-strong: var(--white);

  /* Back-compat aliases */
  --blue: var(--accent);
  --blue-d: #B6DF2F;
  --blue-l: var(--accent);
  --green: var(--accent);
  --green-l: var(--accent);

  --radius: 16px;
  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --shadow-lg: 0 16px 70px rgba(0,0,0,.55);
  --transition: .25s ease;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-fill-color: currentColor;
}

a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active {
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
}
.btn:active { transform: scale(.97); }
.btn:focus { outline: none; }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 241, 53, 0.2);
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.btn--primary:link,
.btn--primary:visited,
.btn--primary:hover,
.btn--primary:active {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
.btn--primary:hover {
  background: var(--blue-d);
  border-color: var(--blue-d);
  box-shadow:
    0 0 0 10px rgba(198,241,53,.12),
    0 18px 60px rgba(198,241,53,.22);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn--outline:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.22);
}

/* Header CTA ("Получить консультацию") */
.header .btn--outline {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-family: 'Unbounded', sans-serif;
  padding: 8px 16px;
  font-size: 0.75rem;
}
.header .btn--outline:hover {
  background: var(--blue-d);
  border-color: var(--blue-d);
  box-shadow: 0 0 0 6px rgba(198,241,53,.10), 0 14px 50px rgba(198,241,53,.25);
}

.btn--ghost {
  background: rgba(255,255,255,.02);
  color: var(--white);
  border-color: var(--border);
}
.btn--ghost:link,
.btn--ghost:visited,
.btn--ghost:hover,
.btn--ghost:active {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.22);
}

.btn--sm  { padding: 10px 20px; font-size: .875rem; }
.btn--lg  { padding: 16px 32px; font-size: 1rem; border-radius: 14px; }

/* Make the main CTA match the mock */
.btn--primary.btn--lg {
  padding: 24px 60px;
  font-size: 1.45rem;
  border-radius: 20px;
  letter-spacing: .02em;
}

/* ── Section helpers ──────────────────────────────────────── */
.section {
  padding: 96px 0;
  background-color: var(--footer-bg);
}
.section--alt {
  background-color: var(--footer-bg);
}
.section--dark {
  background: var(--footer-bg);
  color: var(--text);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

/* Section eyebrow — same pill as footer «Свяжитесь с нами» */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 241, 53, 0.15);
  animation: eyebrowDotPulse 2.4s ease-in-out infinite;
}
@keyframes eyebrowDotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(198, 241, 53, 0.15);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(198, 241, 53, 0.04);
  }
}
.benefits__head-main .eyebrow,
.why-us__head-main .eyebrow {
  margin-bottom: clamp(20px, 3vw, 32px);
}
.section-header .eyebrow {
  margin-bottom: 16px;
}
.faq-block__intro .eyebrow {
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  color: var(--text-strong);
  font-family: 'Unbounded', sans-serif;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Animation ────────────────────────────────────────────── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-delay-05 { animation-delay: .05s; }
.animate-delay-08 { animation-delay: .08s; }
.animate-delay-10 { animation-delay: .1s; }
.animate-delay-12 { animation-delay: .12s; }
.animate-delay-15 { animation-delay: .15s; }
.animate-delay-16 { animation-delay: .16s; }
.animate-delay-20 { animation-delay: .2s; }
.animate-delay-25 { animation-delay: .25s; }
.animate-delay-30 { animation-delay: .3s; }
/* If scripts are off or blocked, do not keep content invisible. */
html.no-js .animate-fade-up {
  opacity: 1;
  transform: none;
}
