:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #f97316;
  --dark: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

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

header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.logo span { color: var(--secondary); }

nav ul { display: flex; gap: 24px; list-style: none; }

/* Стили ссылок меню + активное состояние */
nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  padding-bottom: 4px;
}
nav a:hover { color: var(--primary); }
nav a.nav-active {
  color: var(--gray);
  font-weight: 600;
}
nav a.nav-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gray);
  transition: width 0.3s;
}

.header-actions { display: none; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { opacity: 0.9; }
.btn-white { border-color: var(--white); color: var(--white); }
.btn-white:hover { background: var(--white); color: var(--dark); }

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  order: 2;
}

.hero, .section, .beta-section, .cta-section {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 1cm;
}

.hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #fffbeb 100%);
  text-align: center;
}
.hero h1 { font-size: 2.2rem; margin: 0; padding: 40px 0; line-height: 1.3; color: var(--dark); }

.beta-section { background: var(--light); display: flex; align-items: center; justify-content: center; }
.beta-card { background: var(--white); border-radius: var(--radius); padding: 32px; max-width: 700px; margin: 0 auto; text-align: center; box-shadow: var(--shadow); border-left: 4px solid var(--secondary); display: flex; flex-direction: column; align-items: center; }
.beta-title { font-size: 1.5rem; margin-bottom: 16px; color: var(--dark); text-align: center; }
.beta-desc { color: var(--gray); margin-bottom: 12px; font-size: 1rem; text-align: center; max-width: 550px; }
.beta-email { display: inline-block; margin-top: 16px; padding: 10px 20px; background: var(--primary); color: var(--white); border-radius: 8px; text-decoration: none; font-weight: 600; transition: background 0.2s; text-align: center; }
.beta-email:hover { background: var(--primary-dark); }

.section-title { text-align: center; font-size: 2rem; margin-bottom: 48px; padding-top: 32px; }
.bg-light { background: var(--light); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding-bottom: 32px; }
.feature-card { background: var(--light); padding: 24px; border-radius: var(--radius); text-align: center; transition: transform 0.2s; }
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; color: var(--primary); }
.feature-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.feature-card p { color: var(--gray); font-size: 0.95rem; }

.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-bottom: 32px; }
.audience-card { background: var(--white); padding: 20px; border-radius: var(--radius); text-align: center; font-weight: 500; box-shadow: var(--shadow); }

.cta-section { background: linear-gradient(135deg, var(--dark) 0%, #334155 100%); color: var(--white); text-align: center; padding-top: 24px; }
.cta-desc { max-width: 600px; margin: 0 auto 24px; opacity: 0.9; }
.contact-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding-bottom: 32px; }

footer { background: var(--dark); color: #cbd5e1; padding: 48px 0 24px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; }
.footer-col a { display: block; color: #cbd5e1; text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-desc { color: #94a3b8; font-size: 0.9rem; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid #334155; font-size: 0.9rem; }

.cookie-overlay { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.4); z-index: 9999; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s ease; }
.cookie-overlay.visible { opacity: 1; visibility: visible; pointer-events: auto; }
.cookie-popup { background: var(--white); width: 100%; height: 2cm; max-height: 2cm; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; box-shadow: 0 -4px 10px rgba(0,0,0,0.15); }
.cookie-popup-text { color: var(--dark); font-size: 0.82rem; line-height: 1.3; margin: 0; flex: 1; padding-right: 16px; }
.cookie-popup-text a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.cookie-accept-btn { padding: 6px 18px; font-size: 0.82rem; border-radius: 6px; flex-shrink: 0; white-space: nowrap; }

@media (max-width: 768px) {
  .menu-toggle { display: block; order: 2; margin-right: 20px; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px; right: 16px;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow);
    gap: 12px;
    z-index: 99;
    border-radius: 8px;
  }
  nav ul.active { display: flex; }
  .mobile-login { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--light); }
  .mobile-login .btn { width: 100%; text-align: center; }
  
  .hero h1 { font-size: 1.8rem; padding: 24px 0; }
  .section-title { font-size: 1.7rem; padding-top: 24px; margin-bottom: 32px; }
  .contact-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; text-align: center; }
  .beta-card { padding: 24px 20px; }
  .beta-title { font-size: 1.3rem; }

  .cookie-popup { height: auto; max-height: none; padding: 12px 16px; flex-direction: column; align-items: stretch; gap: 10px; }
  .cookie-popup-text { font-size: 0.8rem; padding-right: 0; text-align: left; }
  .cookie-accept-btn { width: 100%; padding: 10px 0; font-size: 0.9rem; text-align: center; }
}