/* === VARIABLES === */
:root {
  --accent: #6495ED;
  --accent-hover: #4F7FE0;
  --accent-light: rgba(100, 149, 237, 0.12);
  --dark: #0f1729;
  --dark-card: #182038;
  --dark-border: #2a3352;
  --light-bg: #f8f9fc;
  --white: #ffffff;
  --text: #1a1f36;
  --text-secondary: #5a6178;
  --text-light: #c4cad8;
  --text-on-dark: #e8ecf4;
  --border: #e2e6ef;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
  --max-width: 1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease; border: none; font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(100,149,237,0.3); }
.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* === HEADER === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; transition: all 0.3s ease;
}
.header.scrolled { background: rgba(15, 23, 41, 0.95); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--dark-border); }
.nav { display: flex; align-items: center; height: 72px; gap: 32px; }
.logo { font-size: 28px; font-weight: 800; color: var(--white); letter-spacing: -1px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-light); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 16px; margin-left: 32px; }
.nav-phone { color: var(--text-light); font-size: 14px; font-weight: 500; }
.nav-phone:hover { color: var(--white); }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--white); position: absolute; left: 0; transition: all 0.3s ease; }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

.mobile-nav {
  display: none; flex-direction: column; gap: 0;
  background: var(--dark); border-top: 1px solid var(--dark-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.mobile-nav.open { max-height: 400px; }
.mobile-nav a { padding: 14px 24px; color: var(--text-light); font-size: 15px; border-bottom: 1px solid var(--dark-border); }
.mobile-nav a:hover { color: var(--white); background: var(--dark-card); }

/* === HERO === */
.hero {
  position: relative; padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--dark) 0%, #141e3a 50%, #1a2744 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 600px 400px at 70% 40%, rgba(100,149,237,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 20% 80%, rgba(100,149,237,0.05) 0%, transparent 70%);
}
.hero-content { position: relative; max-width: 700px; }
.hero h1 { font-size: 52px; font-weight: 800; color: var(--white); line-height: 1.15; letter-spacing: -1px; margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--text-light); line-height: 1.7; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 12px; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 48px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-size: 28px; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 13px; color: var(--text-light); margin-top: 2px; }

/* === SECTIONS === */
.section { padding: 96px 0; }
.section-dark { background: var(--dark); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-header h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; }
.section-dark .section-header h2 { color: var(--white); }
.section-desc { font-size: 17px; color: var(--text-secondary); margin-top: 12px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* === SERVICES GRID === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: all 0.25s ease;
}
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* === WHY US === */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card {
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: all 0.25s ease;
}
.why-card:hover { border-color: var(--accent); }
.why-num { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.why-card h3 { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* === CTA === */
.cta-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cta-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-text p { font-size: 16px; color: var(--text-secondary); margin-bottom: 28px; }
.cta-channels { display: flex; flex-direction: column; gap: 12px; }
.cta-channel {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-secondary); font-size: 15px; font-weight: 500;
  transition: color 0.2s;
}
.cta-channel:hover { color: var(--accent); }
.cta-channel svg { width: 20px; height: 20px; flex-shrink: 0; }

.cta-form {
  background: var(--light-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.form-group { margin-bottom: 14px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--text);
  background: var(--white); transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-checkbox { margin-bottom: 10px; }
.form-checkbox label {
  display: flex; align-items: flex-start; gap: 8px;
  cursor: pointer; font-size: 0.85rem; color: #666; line-height: 1.4;
}
.form-checkbox input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.form-checkbox a { color: var(--accent); text-decoration: underline; }
.form-checkbox a:hover { color: var(--accent-hover); }

/* === LEGAL PAGES === */
.legal-page { background: var(--white); }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal-content h2 { font-size: 22px; font-weight: 700; margin-top: 36px; margin-bottom: 12px; }
.legal-content h3 { font-size: 17px; font-weight: 600; margin-top: 20px; margin-bottom: 8px; }
.legal-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.legal-content ul { margin: 8px 0 16px 24px; list-style: disc; }
.legal-content ul li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 4px; }
.legal-content a { color: var(--accent); transition: color 0.2s; }
.legal-content a:hover { color: var(--accent-hover); }
.legal-meta { font-size: 14px; color: var(--text-light); margin-bottom: 32px; }

/* Legal hub cards */
.legal-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px; }
.legal-card {
  display: block; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; transition: all 0.25s ease;
}
.legal-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.legal-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--accent);
}
.legal-card-icon svg { width: 24px; height: 24px; }
.legal-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.legal-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.legal-info { padding: 28px; background: var(--light-bg); border-radius: var(--radius); }
.legal-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.legal-info p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 4px; }
.legal-info a { color: var(--accent); }
.legal-info a:hover { color: var(--accent-hover); }

/* === FOOTER === */
.footer { background: var(--dark); padding: 48px 0 24px; border-top: 1px solid var(--dark-border); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 32px; }
.footer-brand p { color: var(--text-light); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-light); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contacts { display: flex; flex-direction: column; gap: 6px; }
.footer-contacts a { color: var(--text-light); font-size: 14px; transition: color 0.2s; }
.footer-contacts a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--dark-border); padding-top: 20px; }
.footer-bottom p { color: var(--text-light); font-size: 13px; opacity: 0.6; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .mobile-nav { display: flex; }

  .hero { padding: 120px 0 64px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 22px; }

  .section { padding: 64px 0; }
  .section-header h2 { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-block { grid-template-columns: 1fr; gap: 32px; }
  .legal-cards { grid-template-columns: 1fr; }

  .footer-content { flex-direction: column; gap: 24px; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .container { padding: 0 16px; }
}

/* === COOKIE BANNER === */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 16px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
}
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner a:hover { color: var(--accent-hover); }
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; }
}
