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

:root {
  --color-bg: #f0f4f8;
  --color-surface: #ffffff;
  --color-primary: #0f6fde;
  --color-primary-hover: #0d5cb8;
  --color-text: #1a2332;
  --color-text-secondary: #4a5568;
  --color-text-muted: #a0aec0;
  --color-border: #e2e8f0;
  --color-trainer: #0f6fde;
  --color-lms: #38a169;
  --color-center: #9f7aea;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* Header */
.header {
  padding: 20px 0;
}

.header-inner {
  display: flex;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Products */
.products {
  padding: 0 0 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

a.card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card--trainer:hover {
  border-color: var(--color-trainer);
}

.card--lms:hover {
  border-color: var(--color-lms);
}

.card--disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.card-icon-img {
  border-radius: 12px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  flex: 1;
  margin-bottom: 16px;
}

.card-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-primary);
  color: white;
}

.badge--muted {
  background: var(--color-border);
  color: var(--color-text-muted);
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.card--lms .card-link {
  color: var(--color-lms);
}

.card-link--muted {
  color: var(--color-text-muted);
}

/* Store badges */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.store-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.store-qr {
  display: none;
}

@media (min-width: 641px) {
  .store-qr {
    display: block;
  }
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-disclaimer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Legal pages */
.legal {
  padding: 48px 0 80px;
  max-width: 720px;
}

.legal-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.legal-updated {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.legal-section {
  margin-top: 32px;
}

.legal-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-section ul {
  margin: 8px 0;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 4px;
}

.legal-section a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.requisites {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 20px 24px;
}

.requisites p {
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

/* Mobile */
@media (max-width: 640px) {
  .hero {
    padding: 48px 0 32px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .legal {
    padding: 32px 0 48px;
  }
}
