/* ==========================================================================
   Targetologist.kz - Light Clean Corporate / Medical Theme
   Inspired by Soft Blue Gradients & Light Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette (Light & Clean) */
  --bg-dark: #f4f7fc;               /* Общий светлый фон страницы */
  --bg-deep: #ffffff;               /* Чистый белый для блоков */
  --bg-card: #ffffff;               /* Карточки */
  --bg-card-hover: #f0f5ff;         /* Легкий голубоватый оттенок при ховере */
  --bg-glass-light: rgba(235, 243, 255, 0.6);
  
  /* Primary Blue & Accent Gradients */
  --accent-blue-bright: #3b82f6;
  --accent-blue-electric: #2563eb;
  --accent-cyan: #60a5fa;
  
  --grad-electric: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --grad-cyan-blue: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  --grad-glow: linear-gradient(180deg, rgba(219, 234, 254, 0.5) 0%, rgba(244, 247, 252, 0) 100%);
  --grad-card-border: linear-gradient(135deg, rgba(219, 234, 254, 0.8) 0%, rgba(147, 197, 253, 0.5) 100%);

  /* Text Colors */
  --text-main: #0f172a;             /* Темно-синий для отличной читаемости */
  --text-muted: #475569;            /* Вторичный серый текст */
  --text-subtle: #64748b;           /* Мелкие подписи */

  /* Fonts & Shadows */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --glow-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.25);
  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  position: relative;
  overflow-x: hidden;
  background: var(--bg-dark);
}

/* Light Dynamic Glowing Background Effect */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: 
    radial-gradient(circle at 50% -5%, rgba(191, 219, 254, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 90% 25%, rgba(219, 234, 254, 0.6) 0%, transparent 35%),
    radial-gradient(circle at 10% 60%, rgba(224, 242, 254, 0.5) 0%, transparent 40%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.4) 0px,
      rgba(255, 255, 255, 0.4) 40px,
      rgba(239, 246, 255, 0.6) 40px,
      rgba(239, 246, 255, 0.6) 80px
    );
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  position: relative;
}

/* Typography */
h1, h2, h3 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #0f172a;
}

h2 {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--accent-blue-electric);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.section-title p {
  font-size: 1.15rem;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid #e2e8f0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-blue-electric);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--accent-blue-electric);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--grad-electric);
  color: #ffffff;
  box-shadow: var(--glow-shadow);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -5px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--accent-blue-electric);
}

/* Hero Section */
.hero {
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.metric {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.metric:hover {
  border-color: #bfdbfe;
  background: #f8fafc;
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent-blue-electric);
  margin-bottom: 4px;
}

.metric span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero Card (Avatar / Profile) */
.hero-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.hero-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

.hero-avatar {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: var(--grad-cyan-blue);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #ffffff;
}

.hero-caption {
  text-align: left;
}

.hero-caption strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.2;
}

.hero-caption span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Card Grid Styles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-cyan-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  color: var(--text-main);
}

/* Split Section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--card-shadow);
}

.panel h3 {
  color: var(--accent-blue-electric);
  margin-bottom: 16px;
}

.panel ul {
  list-style: none;
  margin-top: 16px;
}

.panel ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.panel ul li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: bold;
}

/* Timeline / Steps */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step {
  background: #ffffff;
  padding: 28px 20px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.step:hover {
  border-color: #bfdbfe;
  background: #f8fafc;
}

.step .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--grad-electric);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 16px;
}

/* Case Studies */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.case {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid #dbeafe;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.case:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.meta {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pill {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill:nth-child(1) {
  background: #f1f5f9;
  color: var(--text-muted);
}

.pill:nth-child(2) {
  background: #eff6ff;
  color: var(--accent-blue-electric);
  border: 1px solid #bfdbfe;
}

.case h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.case p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.stats {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* FAQ Accordion */
.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: #bfdbfe;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
}

.faq-question span {
  font-size: 1.4rem;
  color: var(--accent-blue-electric);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-muted);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

/* Contact Card (CTA Banner) */
.contact-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 50px 32px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.contact-card h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #0f172a;
}

.contact-card p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-size: 1.05rem;
}

.contact-card .actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  padding: 32px 0;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid, .split {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .nav-links a:not(.btn) {
    display: none;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .contact-card {
    padding: 32px 16px;
  }
}