/* NutriAI — базовые стили сайта */
:root {
  --accent: #2ECC71;
  --accent-dark: #27ae60;
  --accent-bg: #e9faf0;
  --bg: #F7F8FA;
  --text: #1a1f2e;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 16px rgba(46, 204, 113, 0.12);
  --radius: 14px;
}

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

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 720px; }

/* Header */
.header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header__inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 20px;
}
.logo__mark { font-size: 24px; }
.header__nav { display: flex; gap: 24px; }
.nav-link {
  color: var(--text-secondary);
  font-weight: 600; font-size: 14px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }

/* Main */
.main { min-height: calc(100vh - 64px - 80px); }

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-bg) 0%, transparent 100%);
}
.hero__title {
  font-size: 44px; font-weight: 800;
  line-height: 1.2; margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 18px; color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero__cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700; font-size: 15px;
  cursor: pointer; border: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--text {
  background: transparent; color: var(--text-secondary); padding: 8px 12px;
}
.btn--text:hover { color: var(--accent); }
.btn--full { width: 100%; }

/* Features */
.features { padding: 60px 0; }
.section-title {
  font-size: 32px; font-weight: 800;
  text-align: center; margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; color: var(--text-secondary);
  margin-bottom: 40px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.feature {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}
.feature__icon { font-size: 32px; margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--text-secondary); font-size: 14px; }

/* Pricing */
.pricing { padding: 60px 0 100px; }
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 40px auto 0;
}
.plan {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
}
.plan--popular {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.plan__badge {
  position: absolute; top: -10px; right: 20px;
  background: var(--accent); color: white;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.plan__name { font-size: 18px; margin-bottom: 10px; }
.plan__price {
  font-size: 20px; color: var(--accent);
  font-weight: 700; margin-bottom: 4px;
}
.plan__price span { font-size: 36px; }
.plan__period { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.plan__features {
  list-style: none; margin: 16px 0 20px; padding: 0;
}
.plan__features li {
  padding: 6px 0; font-size: 14px;
  padding-left: 24px; position: relative;
}
.plan__features li::before {
  content: "✓";
  position: absolute; left: 0; color: var(--accent);
  font-weight: 700;
}
.pricing__note {
  text-align: center; color: var(--text-secondary);
  margin-top: 24px; font-size: 14px;
}

/* Cabinet */
.cabinet { padding: 40px 0 80px; }
.cabinet__title { font-size: 28px; margin-bottom: 6px; }
.cabinet__email { color: var(--text-secondary); margin-bottom: 24px; }

.status-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.status-card--premium { background: linear-gradient(135deg, var(--accent-bg), white); border-color: var(--accent); }
.status-card--trial { background: #fff8e6; border-color: #f5c542; }
.status-card--free { background: white; }
.status-card__label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-secondary); margin-bottom: 6px;
}
.status-card__value { font-size: 22px; font-weight: 800; }
.status-card__expires { color: var(--text-secondary); font-size: 14px; margin-top: 6px; }

.plans--cabinet { margin-top: 20px; }
.cabinet__note {
  color: var(--text-secondary); font-size: 13px;
  margin-top: 24px; text-align: center;
}
.cabinet__note p { margin-bottom: 4px; }
.cabinet__logout { text-align: center; margin-top: 40px; }

.payments {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 20px;
}
.payment {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.payment:last-child { border-bottom: none; }
.payment__meta { color: var(--text-secondary); font-size: 12px; }

.pay-error {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  background: #fef2f2; color: #991b1b;
  border: 1px solid #fecaca;
  padding: 12px 20px; border-radius: 10px;
}

/* Login screen */
.login-card {
  background: white;
  border-radius: var(--radius);
  padding: 48px 32px;
  border: 1px solid var(--border);
  text-align: center;
  margin-top: 40px;
}
.login-card__icon { font-size: 48px; margin-bottom: 16px; }
.login-card__title { font-size: 22px; margin-bottom: 12px; }
.login-card__text { color: var(--text); margin-bottom: 12px; }
.login-card__sub { color: var(--text-secondary); font-size: 14px; }

/* Status pages */
.status-page { padding: 80px 0; text-align: center; }
.status-page__icon {
  width: 72px; height: 72px; line-height: 72px;
  margin: 0 auto 20px;
  background: var(--accent); color: white;
  border-radius: 50%; font-size: 36px;
}
.status-page__icon--fail { background: #ef4444; }
.status-page__title { font-size: 28px; margin-bottom: 16px; }
.status-page__text { color: var(--text); margin-bottom: 10px; font-size: 17px; }
.status-page__sub { color: var(--text-secondary); margin-bottom: 28px; }

/* Footer */
.footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__links a { color: var(--accent); }

/* Mobile */
@media (max-width: 640px) {
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 16px; }
  .section-title { font-size: 26px; }
  .header__nav { gap: 12px; }
  .nav-link { font-size: 13px; }
}
