/* ============================================
   IKIGAI · Лендинг «Набор скиллов для ИИ-ассистента руководителя»
   Подарок за видео-отзыв. Дизайн-язык выровнен с intensive.ikigaipromotion.kz
   ============================================ */

/* --- Design Tokens (из эталона intensive-1) --- */
:root {
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-alt: #F8F7FF;
  --bg-dark: #0F0D1A;
  --bg-dark-card: #1A1730;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --text-on-dark: #E5E7EB;
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-light: #EDE9FE;
  --accent-glow: rgba(124, 58, 237, 0.15);
  --lime: #84CC16;
  --lime-light: #ECFCCB;
  --border: #E5E7EB;
  --border-light: #F3F4F6;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --section-py: 96px;
  --section-py-mobile: 56px;
  --container: 1200px;
  --gap: 24px;
  --gap-lg: 48px;

  --radius: 16px;
  --radius-sm: 8px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --shadow-accent: 0 4px 24px rgba(124, 58, 237, 0.2);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: var(--fw-regular);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: var(--section-py) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }

/* --- Typography --- */
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section--dark .section-tag { background: rgba(124, 58, 237, 0.2); color: #C4B5FD; }

h1 { font-size: 52px; font-weight: var(--fw-extrabold); line-height: 1.12; letter-spacing: -0.02em; color: var(--text); }
h2 { font-size: 40px; font-weight: var(--fw-extrabold); line-height: 1.2; letter-spacing: -0.015em; color: var(--text); margin-bottom: 20px; }
h3 { font-size: 22px; font-weight: var(--fw-bold); line-height: 1.3; color: var(--text); margin-bottom: 8px; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-subtitle { font-size: 20px; color: var(--text-muted); line-height: 1.5; max-width: 680px; }
.section-header { text-align: center; margin-bottom: var(--gap-lg); }
.section-header .section-subtitle { margin: 0 auto; }
.highlight { color: var(--accent); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 18px;
  font-weight: var(--fw-bold);
  padding: 18px 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  gap: 10px;
}
.btn svg { flex-shrink: 0; }
.btn--primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 32px rgba(124, 58, 237, 0.3); }
.btn--wa { background: #25D366; color: #fff; box-shadow: 0 4px 24px rgba(37, 211, 102, 0.25); }
.btn--wa:hover { background: #1EBE5A; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 32px rgba(37, 211, 102, 0.35); }
.btn--tg { background: #229ED9; color: #fff; box-shadow: 0 4px 24px rgba(34, 158, 217, 0.25); }
.btn--tg:hover { background: #1B87BB; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 32px rgba(34, 158, 217, 0.35); }
.btn--outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--white); }
.btn--lg { font-size: 20px; padding: 20px 44px; border-radius: 14px; }

/* ============================================
   HEADER
   ============================================ */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: all var(--duration) var(--ease); }
.header--scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 12px rgba(0,0,0,0.06); padding: 12px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header__logo { height: 40px; width: auto; }
.header__nav { display: flex; gap: 32px; }
.header__nav-link { font-size: 15px; font-weight: var(--fw-semibold); color: var(--text); transition: color 0.2s; }
.header__nav-link:hover { color: var(--accent); }
.header__cta { font-size: 15px; font-weight: var(--fw-bold); padding: 10px 24px; border-radius: 10px; }

/* ============================================
   HERO
   ============================================ */
.hero { padding: 120px 0 var(--section-py); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: var(--fw-semibold);
  color: var(--accent); background: var(--accent-light);
  padding: 8px 20px; border-radius: 100px; margin-bottom: 28px;
}
.hero h1 { max-width: 800px; margin-bottom: 24px; }
.hero h1 .highlight { color: var(--accent); }
.hero__sub { font-size: 22px; color: var(--text-muted); max-width: 640px; line-height: 1.5; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 44px; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; }
.hero__meta-item { display: flex; flex-direction: column; }
.hero__meta-item--accent .hero__meta-value { color: var(--accent); font-weight: var(--fw-extrabold); background: var(--accent-light); padding: 2px 12px; border-radius: 6px; display: inline-block; }
.hero__meta-label { font-size: 13px; font-weight: var(--fw-medium); color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.hero__meta-value { font-size: 16px; font-weight: var(--fw-bold); color: var(--text); }

.hero__visual { display: flex; align-items: center; justify-content: center; }
.neural-net { width: 100%; aspect-ratio: 1; max-width: 520px; position: relative; }
.neural-net canvas { width: 100%; height: 100%; }

/* ============================================
   VALUE / MANIFESTO
   ============================================ */
.value__card {
  background: #fff;
  border: 1.5px solid var(--lime);
  border-radius: 24px;
  padding: 48px 44px;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.10), 0 4px 20px rgba(132, 204, 22, 0.10);
  text-align: center;
}
.value__lead { font-size: 21px; line-height: 1.6; color: var(--text); margin-bottom: 16px; }
.value__lead b { color: var(--accent); }
.value__note { font-size: 17px; color: var(--text-muted); line-height: 1.55; max-width: 640px; margin: 0 auto; }

/* ============================================
   CATALOG (масонри-сетка по категориям)
   ============================================ */
.catalog__count {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin: -8px auto 0;
}
.catalog__count-num { font-size: 15px; font-weight: var(--fw-bold); color: var(--lime); }
.catalog__grid {
  columns: 3;
  column-gap: var(--gap);
}
.catalog__cat {
  break-inside: avoid;
  margin-bottom: var(--gap);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 8px;
  box-shadow: var(--shadow-sm);
}
.catalog__cat-title {
  font-size: 16px; font-weight: var(--fw-extrabold);
  color: var(--accent); letter-spacing: -0.01em;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.catalog__skill { margin-bottom: 16px; }
.catalog__skill-name {
  font-family: var(--font-mono);
  font-size: 13.5px; font-weight: var(--fw-medium);
  color: var(--lime); /* lime для скилл-имён, как на референсе */
  word-break: break-word;
}
.catalog__cat--alt .catalog__skill-name { color: var(--accent); }
.catalog__skill-desc { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin-top: 3px; }

/* ============================================
   STEPS (как получить)
   ============================================ */
.steps__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.steps__card {
  position: relative;
  background: var(--bg-alt);
  border: 1.5px solid rgba(124, 58, 237, 0.16);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
}
.steps__card--gift {
  background: linear-gradient(135deg, #1A1730 0%, #2D1B69 100%);
  border-color: rgba(132, 204, 22, 0.45);
  color: #fff;
}
.steps__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  font-size: 18px; font-weight: var(--fw-extrabold);
  color: #fff; background: var(--accent);
  margin-bottom: 16px;
}
.steps__card--gift .steps__num { background: var(--lime); color: #1A1730; }
.steps__card h3 { font-size: 17px; margin-bottom: 8px; }
.steps__card--gift h3 { color: #fff; }
.steps__card p { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.steps__card--gift p { color: rgba(255,255,255,0.86); }
.steps__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.steps__tag {
  font-size: 12.5px; font-weight: var(--fw-semibold);
  color: var(--accent); background: var(--accent-light);
  padding: 4px 10px; border-radius: 100px;
}
.steps__tag:hover { background: var(--accent); color: #fff; }
.steps__inline-link { color: var(--accent); font-weight: var(--fw-semibold); white-space: nowrap; }

/* ============================================
   TESTIMONIALS (карусель видео-отзывов)
   ============================================ */
.testimonials__nav { display: flex; justify-content: flex-end; gap: 12px; max-width: var(--container); margin: 0 auto 16px; padding: 0 24px; }
.testimonials__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--duration) var(--ease);
}
.testimonials__arrow:hover { background: var(--accent); border-color: var(--accent); }
.testimonials__track {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2 + 24px)) 20px;
  cursor: grab; scrollbar-width: none;
}
.testimonials__track::-webkit-scrollbar { display: none; }
.testimonials__track:active { cursor: grabbing; }
.testimonials__card {
  flex: 0 0 280px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-dark-card); border: 2px solid var(--lime); box-shadow: 0 0 20px rgba(132, 204, 22, 0.12);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.testimonials__card:hover { transform: translateY(-4px); box-shadow: 0 0 32px rgba(132, 204, 22, 0.25); }
.testimonials__video { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #000; cursor: pointer; }
.testimonials__video img { width: 100%; height: 100%; object-fit: cover; }
.testimonials__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; background: rgba(0, 0, 0, 0.65); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease); pointer-events: none;
}
.testimonials__card:hover .testimonials__play { background: rgba(124, 58, 237, 0.85); transform: translate(-50%, -50%) scale(1.1); }
.testimonials__play svg { width: 28px; height: 28px; fill: #fff; margin-left: 3px; }
.testimonials__video iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   MAPS (отзыв на картах)
   ============================================ */
.maps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
.maps__card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.maps__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.maps__logo { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: var(--fw-extrabold); font-size: 18px; color: #fff; }
.maps__logo--2gis { background: #41B65C; }
.maps__logo--google { background: #4285F4; }
.maps__logo--yandex { background: #FF3333; }
.maps__info { display: flex; flex-direction: column; }
.maps__name { font-size: 16px; font-weight: var(--fw-bold); color: var(--text); }
.maps__action { font-size: 13px; color: var(--text-muted); }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta { text-align: center; }
.final-cta__card {
  background: linear-gradient(135deg, #1A1730 0%, #2D1B69 100%);
  border-radius: var(--radius-xl); padding: 64px 44px; max-width: 920px; margin: 0 auto;
  box-shadow: 0 24px 64px rgba(124, 58, 237, 0.22);
}
.final-cta__card h2 { color: #fff; }
.final-cta__card p { color: rgba(255,255,255,0.82); font-size: 19px; line-height: 1.55; max-width: 640px; margin: 0 auto 32px; }
.final-cta__buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 48px 0; background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,0.06); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__logo { height: 48px; width: auto; max-width: 280px; }
.footer__text { font-size: 14px; color: rgba(255,255,255,0.5); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--duration) var(--ease); }
.footer__links a:hover { color: var(--white); }

/* ============================================
   STICKY CTA
   ============================================ */
.sticky-cta {
  position: fixed; left: 50%; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 12px 12px 20px; max-width: 720px; width: calc(100% - 32px);
  background: var(--white); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.16);
  transform: translateX(-50%) translateY(140%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  opacity: 0; pointer-events: none;
}
.sticky-cta--visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.sticky-cta__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sticky-cta__title { font-weight: var(--fw-extrabold); font-size: 16px; color: var(--text); line-height: 1.1; }
.sticky-cta__meta { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta__btn { white-space: nowrap; border-radius: 999px; }

/* ============================================
   GLOW CARD (cursor-following) + FADE-UP
   ============================================ */
.glow-card { --mouse-x: 50%; --mouse-y: 50%; position: relative; overflow: hidden; }
.glow-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(300px circle at var(--mouse-x) var(--mouse-y), rgba(124, 58, 237, 0.12), transparent 60%);
  pointer-events: none; z-index: 1;
}
.glow-card:hover::after { opacity: 1; }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .hero { padding: 100px 0 72px; }
  .hero__sub { font-size: 19px; }
  .section { padding: 72px 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .catalog__grid { columns: 2; }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .maps__grid { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; line-height: 1.15; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .container { padding: 0 20px; }
  .section { padding: var(--section-py-mobile) 0; }
  .hero { padding: 88px 0 var(--section-py-mobile); }
  .hero__sub { font-size: 17px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__meta { gap: 18px; }
  .header__nav { display: none; }
  .value__card { padding: 32px 24px; }
  .value__lead { font-size: 18px; }
  .catalog__grid { columns: 1; }
  .steps__grid { grid-template-columns: 1fr; }
  .testimonials__card { flex: 0 0 240px; }
  .final-cta__card { padding: 44px 24px; }
  .final-cta__buttons .btn { width: 100%; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .sticky-cta { left: 8px; right: 8px; bottom: 8px; max-width: none; width: auto; border-radius: 14px; padding: 10px 10px 10px 16px; transform: translateY(140%); gap: 10px; }
  .sticky-cta--visible { transform: translateY(0); }
  .sticky-cta__title { font-size: 15px; }
  .sticky-cta__btn { padding: 10px 16px; font-size: 14px; }
}
