/* === Переменные === */
:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #DBEAFE;
  --primary-50: #EFF6FF;
  --secondary: #10B981;
  --bg: #FAFBFD;
  --bg-white: #FFFFFF;
  --bg-alt: #F1F5F9;
  --text: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
}

/* === Сброс === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* === Контейнер === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* === Навигация === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo img { height: 32px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* === Кнопки === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 0.875rem; cursor: pointer; border: none;
  transition: all 0.2s ease; min-height: 44px; text-decoration: none;
}
.btn-sm { padding: 7px 16px; font-size: 0.8rem; min-height: 36px; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; min-height: 48px; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(59,130,246,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.35); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* === Hero === */
.hero {
  padding: 140px 0 72px;
  background: linear-gradient(180deg, var(--primary-50) 0%, var(--bg) 100%);
}

.hero-content-centered { text-align: center; max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 24px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-content-centered h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat { text-align: center; }
.stat-value { display: block; font-size: 2.75rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* === Секции === */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-white); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
}

/* === Grid === */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === Возможности === */
.feature-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon { margin-bottom: 20px; display: flex; justify-content: center; }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; font-weight: 600; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* === Скриншоты === */
.screenshots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.screenshot-item { text-align: center; }

.screenshot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
  aspect-ratio: 16 / 10;
  position: relative;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}
.screenshot-frame:hover { transform: scale(1.03); }
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; }

.screenshot-placeholder-text {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted); font-weight: 600;
}
.screenshot-frame.placeholder img { display: none; }
.screenshot-frame.placeholder .screenshot-placeholder-text { display: flex; }

/* === Упражнения — Табы === */
.exercise-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.exercise-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  border: 2px solid var(--border);
  background: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.exercise-tab:hover { border-color: var(--primary); color: var(--primary); }
.exercise-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.exercise-tab svg { width: 20px; height: 20px; }

.exercise-panels { min-height: 280px; }

.exercise-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.exercise-panel.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.exercise-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.exercise-info h3 { font-size: 1.4rem; margin-bottom: 12px; font-weight: 700; }
.exercise-info p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

.exercise-domain {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.exercise-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exercise-benefits li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}
.exercise-benefits li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--primary);
}

/* Демо-визуализации упражнений */
.exercise-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 180px;
}
.demo-cell {
  width: 50px; height: 50px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  transition: 0.3s;
}
.demo-cell.target {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(59,130,246,0.3);
}

.demo-words, .demo-digits {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.demo-word, .demo-digit {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
  animation: popIn 0.5s ease both;
}
.demo-digit { font-size: 1.5rem; padding: 16px 22px; border-radius: 12px; }

@keyframes popIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.demo-cards-sort {
  display: flex; gap: 16px;
}
.demo-sort-card {
  width: 64px; height: 88px;
  border-radius: 12px;
  border: 2px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700;
  color: var(--text);
}

.demo-pairs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.demo-pair-card {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  color: var(--text-muted);
  transition: 0.3s;
}
.demo-pair-card.flipped {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* === Показания === */
.exercises-indications {
  margin-top: 40px;
  padding: 32px 40px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.exercises-indications h3 { font-size: 1.1rem; margin-bottom: 20px; text-align: center; font-weight: 600; }

.indications-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.indication { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
.indication svg { flex-shrink: 0; }

/* === Аудитория === */
.audience-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.audience-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.audience-icon { margin-bottom: 20px; }
.audience-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); font-weight: 600; }
.audience-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* === Тарифы === */
.pricing-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 2px solid var(--border);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.pricing-featured { border-color: var(--primary); position: relative; }
.pricing-featured::before {
  content: 'Популярный';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 16px; border-radius: 20px;
}

.pricing-card h3 { font-size: 1.15rem; margin-bottom: 12px; font-weight: 700; }
.pricing-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.pricing-for {
  display: inline-block; font-size: 0.78rem;
  color: var(--primary); font-weight: 600;
  background: var(--primary-50); padding: 4px 14px; border-radius: 20px;
}

.pricing-note {
  margin-top: 48px; padding: 32px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
}
.pricing-note p { font-size: 1rem; color: var(--text-muted); margin-bottom: 16px; }

/* === Безопасность === */
.security-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.25s ease;
}
.security-card:hover { transform: translateY(-6px); }
.security-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.security-card h3 { font-size: 1rem; margin-bottom: 8px; font-weight: 600; }
.security-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* === Интеграции === */
.integration-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.integration-card:hover { transform: translateY(-6px); }
.integration-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); font-weight: 600; }
.integration-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* === Форма заявки === */
.section-contact {
  background: var(--bg-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 56px 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-info h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.contact-info p { font-size: 1rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }

.contact-perks { display: flex; flex-direction: column; gap: 14px; }
.contact-perk { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-status {
  margin-top: 12px; text-align: center;
  font-size: 0.9rem; min-height: 24px;
}
.form-status.success { color: var(--secondary); }
.form-status.error { color: #EF4444; }

/* === Footer === */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* === Страница О компании === */
.about-content { max-width: 800px; margin: 0 auto; }

.about-block { margin-bottom: 48px; }
.about-block:last-child { margin-bottom: 0; }
.about-block h2 {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 16px; color: var(--text);
  padding-bottom: 8px; border-bottom: 2px solid var(--primary-light);
}
.about-block p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }

.about-services { display: flex; flex-direction: column; gap: 12px; }
.about-service { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text); }
.about-service svg { flex-shrink: 0; }

.about-product {
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
}
.about-product.featured { border-color: var(--primary); border-width: 2px; }
.about-product h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--primary); }
.about-product p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

.about-details { display: flex; flex-direction: column; gap: 12px; }
.detail-row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-label { flex-shrink: 0; width: 200px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.detail-value { font-size: 0.95rem; color: var(--text); }

.about-contacts { display: flex; gap: 32px; flex-wrap: wrap; }
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-label { font-size: 0.8rem; color: var(--text-muted); }
.contact-link { font-size: 0.95rem; color: var(--primary); font-weight: 500; }
.contact-link:hover { text-decoration: underline; }

/* === Адаптивность === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid .screenshot-item:last-child { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }
  .indications-grid { grid-template-columns: repeat(2, 1fr); }
  .exercise-panel-inner { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-content-centered h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .stat-value { font-size: 2rem; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .screenshots-grid .screenshot-item:last-child { max-width: none; }
  .indications-grid { grid-template-columns: 1fr; }

  .section-title { font-size: 1.5rem; }
  .section { padding: 56px 0; }

  .exercise-tabs { gap: 6px; }
  .exercise-tab span { display: none; }
  .exercise-tab { padding: 10px 14px; }
  .exercise-panel-inner { padding: 24px; gap: 24px; }

  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: white; flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }

  .contact-wrapper { padding: 32px 24px; }

  .detail-row { flex-direction: column; gap: 4px; }
  .detail-label { width: auto; }
  .about-contacts { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-content-centered h1 { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
}
