@import url('https://googleapis.com');

:root {
  --bg-color: #F8F9FA;
  --text-color: #2D3436;
  --text-light: #636E72;
  --accent-color: #2B5B84;
  --accent-hover: #1E4466;
  --card-bg: #FFFFFF;
  --border-color: #DFE6E9;
  --dark-hero-bg: radial-gradient(circle at top right, #1E3A8A 0%, #0F172A 100%);
  --text-muted: #94A3B8;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --section-pad: 80px;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  font-family: var(--font-main); 
  background: var(--bg-color); 
  color: var(--text-color); 
  line-height: 1.6; 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-color); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

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

/* === КНОПКИ === */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; transition: 0.3s; font-family: var(--font-main); gap: 8px; text-align: center; }
.btn-primary { background: var(--accent-color); color: #fff; border: 2px solid var(--accent-color); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(43, 91, 132, 0.4); }
.btn-outline { background: transparent; color: var(--accent-color); border: 2px solid var(--accent-color); }
.btn-outline:hover { background: var(--accent-color); color: #fff; }
.btn-full { width: 100%; }

.hero-dark .btn-outline { color: #ffffff; border-color: #475569; }
.hero-dark .btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: #94a3b8; transform: translateY(-2px); color: #fff; }

/* === ШАПКА === */
.header { background: #fff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-color); }
.logo span { color: var(--accent-color); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-weight: 500; color: var(--text-light); }
.nav-links a:hover, .nav-links a.active { color: var(--text-color); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { width: 24px; height: 2px; background: var(--text-color); transition: 0.3s; }

/* === HERO СЕКЦИЯ === */
.hero { padding: 100px 0; text-align: center; }
.badge { display: inline-block; padding: 6px 14px; background: rgba(43,91,132,0.1); color: var(--accent-color); border: 1px solid var(--accent-color); border-radius: 20px; font-size: 0.85rem; margin-bottom: 16px; }

.hero.hero-dark {
  background: var(--dark-hero-bg);
  color: #ffffff;
  text-align: left;
  padding: 120px 0 100px 0;
  display: flex;
  align-items: center;
}
.hero-dark .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-dark .badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
  font-weight: 600;
}
.hero-dark h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-dark p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 36px 0;
  line-height: 1.6;
}
.hero-dark .hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* 3D Визуализатор */
.hero-visual-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  text-align: center;
  padding: 24px;
  width: 100%;
}
.hero-visual-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: vpFloat 4s ease-in-out infinite;
}
.hero-visual-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0;
}

@keyframes vpFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* === СЕКЦИИ И СЕТКИ === */
.section { padding: var(--section-pad) 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.label { display: block; color: var(--accent-color); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 8px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.2rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.card { background: var(--card-bg); padding: 32px; border-radius: var(--radius); border: 1px solid var(--border-color); transition: 0.3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-color: var(--accent-color); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--text-light); flex-grow: 1; }
.card-link { color: var(--accent-color); font-size: 0.9rem; font-weight: 600; margin-top: 16px; display: inline-block; }

.bg-light { background-color: #F8FAFC; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; text-align: center; }
.trust-number { font-size: 2.2rem; color: var(--accent-color); font-weight: 700; font-family: var(--font-heading); margin-bottom: 8px; }
.trust-item h4 { font-size: 1.1rem; margin-bottom: 8px; }
.trust-item p { color: var(--text-light); font-size: 0.9rem; }

/* === ФУТЕР === */
.footer { background: #1A1D23; color: #fff; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 12px; }
.footer-logo span { color: var(--accent-color); }
.footer-links h4 { color: var(--accent-color); margin-bottom: 16px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links p, .footer-links a { color: rgba(255,255,255,0.7); margin-bottom: 8px; display: block; }
.footer-links a:hover { color: #fff; }
.copyright { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* === МОБИЛЬНЫЙ АДАПТИВ (ПОЛНОСТЬЮ ИСПРАВЛЕН) === */
@media (max-width: 900px) {
  .nav { position: fixed; top: 73px; left: -100%; width: 100%; height: calc(100vh - 73px); background: #fff; flex-direction: column; padding: 32px; transition: 0.3s; z-index: 99; }
  .nav.active { left: 0; }
  .nav-links { flex-direction: column; width: 100%; text-align: center; margin-bottom: 24px; }
  .nav-btn { width: 100%; }
  .burger { display: flex; }
  
  .hero.hero-dark { text-align: center; padding: 60px 0; }
  .hero-dark .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-dark .hero-actions { justify-content: center; }
  .hero-visual-card { height: 300px; }

  .grid-3, .trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
