:root {
  --bg: #ffffff;
  --bg-elev: #f7f9fc;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: #5b6576;
  --primary: #f59e0b; /* warm amber */
  --primary-600: #d97706;
  --accent: #fde68a; /* light amber */
  --warm: #f59e0b;
  --warm-600: #d97706;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  padding: 0 24px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { font-weight: 700; letter-spacing: 0.2px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform .2s ease;
}

.nav-menu { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.nav-menu a { color: var(--muted); padding: 10px 12px; border-radius: 10px; }
.nav-menu a:hover { color: var(--text); background: rgba(2, 6, 23, 0.04); }

.section { padding: 88px 0; }
.section-title { font-size: 34px; line-height: 1.2; margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.grid { display: grid; gap: 28px; }
.two-col { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.three-col { grid-template-columns: repeat(3, 1fr); }
.pains-grid { grid-template-columns: repeat(2, 1fr); }
.services-grid { grid-template-columns: repeat(4, 1fr); }
.process-grid { grid-template-columns: repeat(2, 1fr); }

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid rgba(2, 6, 23, 0.06);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--primary); color: #fff; border-color: transparent; }
.btn.primary:hover { background: var(--primary-600); box-shadow: var(--shadow-md); }
.btn.secondary { background: var(--surface); color: var(--text); }
.btn.secondary:hover { background: #f3f6fb; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.badge.warm { background: rgba(245, 158, 11, 0.12); color: #92400e; border: 1px solid rgba(245, 158, 11, 0.25); }
.badges-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
}
.hero .card {
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.card-badge {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(90deg, #fde68a, #f59e0b);
  color: #6b4105; font-weight: 700; font-size: 12px; padding: 6px 8px; border-radius: 999px;
}
.hero-content h1 { font-size: 36px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.3px; }
.hero-content p { color: var(--muted); margin: 0 0 16px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.features .feature,
.services-grid .feature,
.process-step,
.team-card {
  background: var(--surface);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.svc-illustration { display: none; }
.emoji { margin-right: 8px; }

.process-highlight { background: #fff7ed; }
.features .feature:hover,
.services-grid .feature:hover,
.process-step:hover,
.team-card:hover { transform: translateY(-3px); border-color: rgba(245, 158, 11, 0.35); box-shadow: var(--shadow-sm); }

/* Pains hover highlight */
.pains-grid .feature:hover { background: #fff7ed; }

.feature-icon { display: none; }
.animated-card { overflow: hidden; }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.dot { position: absolute; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; opacity: 0.85; filter: blur(0.2px); }
.dot.d1 { top: 10%; left: 10%; animation: float1 6s ease-in-out infinite; }
.dot.d2 { top: 50%; left: 80%; animation: float2 7s ease-in-out infinite; background: var(--primary); }
.dot.d3 { top: 80%; left: 30%; animation: float3 8s ease-in-out infinite; background: #8b5cf6; }
@keyframes float1 { 0% { transform: translate(0,0);} 50% { transform: translate(12px,-8px);} 100% { transform: translate(0,0);} }
@keyframes float2 { 0% { transform: translate(0,0);} 50% { transform: translate(-10px,10px);} 100% { transform: translate(0,0);} }
@keyframes float3 { 0% { transform: translate(0,0);} 50% { transform: translate(8px,12px);} 100% { transform: translate(0,0);} }

/* Hero geometric illustration */
.hero-illustration { margin-top: 16px; height: 160px; border-radius: 16px; border: 1px solid rgba(245, 158, 11, 0.25);
  background:
    conic-gradient(from 0deg at 70% 40%, rgba(245, 158, 11, 0.12), transparent 60%),
    radial-gradient(120px 80px at 30% 70%, rgba(253, 230, 138, 0.35), transparent 60%),
    linear-gradient(90deg, rgba(245, 158, 11, 0.10), rgba(253, 230, 138, 0.10));
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid rgba(245, 158, 11, 0.15); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-value { font-size: 28px; font-weight: 700; }
.stat-label { color: var(--muted); }

.list { margin: 0; padding-left: 18px; line-height: 1.6; color: var(--muted); }
.list li { margin: 6px 0; }

.team-grid { align-items: stretch; grid-template-columns: 1fr 1fr; }
.team-card { display: grid; grid-template-columns: 160px 1fr; gap: 16px; height: 100%; }
.team-photo { width: 160px; height: 160px; object-fit: cover; border-radius: 16px; }
.team-role { color: var(--muted); margin: 6px 0 10px; }

.clients .logos-row { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
.logo-img { max-height: 42px; width: auto; opacity: 0.9; filter: grayscale(100%); transition: opacity .2s ease, filter .2s ease; flex: 0 0 auto; }
.logo-img[alt="iSpring"],
.logo-img[alt="ВТБ"] { max-height: 28px; }
.logo-img:hover { opacity: 1; filter: grayscale(0%); }
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-elev);
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 12px;
  padding: 14px;
  min-height: 56px;
  color: var(--muted);
}

.final-cta { background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%); }

/* Decorative shapes */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 80% 10%, rgba(245, 158, 11, 0.10), transparent 60%),
              radial-gradient(400px 240px at 10% 40%, rgba(253, 230, 138, 0.25), transparent 60%);
  pointer-events: none;
}
main { position: relative; z-index: 1; }

.site-footer {
  border-top: 1px solid rgba(2, 6, 23, 0.06);
  background: rgba(255, 255, 255, 0.8);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.to-top { color: var(--muted); }
.to-top:hover { color: var(--text); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Sticky CTA: hidden on desktop, visible on mobile */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; text-align: center; display: none; z-index: 60; }
@media (max-width: 640px) { .sticky-cta { display: inline-block; } }

@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile navigation */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: absolute;
    right: 16px;
    top: 72px;
    background: var(--surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    width: min(90vw, 280px);
    box-shadow: var(--shadow-md);
    z-index: 80;
  }
  .nav-menu.open { display: flex; }
}

@media (max-width: 640px) {
  .three-col { grid-template-columns: 1fr; }
  .clients .logos-row { justify-content: flex-start; }
  .section { padding: 64px 0; }
  .hero-content h1 { font-size: 30px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}

/* Extra small phones */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero-content h1 { font-size: 26px; line-height: 1.15; }
  .actions .btn { width: 100%; text-align: center; }
  .pains-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .team-photo { width: 120px; height: 120px; border-radius: 12px; }
  .logos-row { gap: 24px; }
}

/* Force light theme regardless of OS setting */


