/* ============================================================================
   EN-редакция (marketvideo.app): рамка страниц, кнопки, цены, формы.

   Страницы рисует сервер (backend/src/services/editions/en) на классах
   landing.css (.lp-*) и auth.css (.auth-*); здесь — только то, чего там нет.
   styles.css на EN не грузится, поэтому бренд-токены объявлены здесь
   (значения — как в styles.css :root, держать в синхроне).
   Мобильная вёрстка первична: от 320px, кликабельные зоны ≥ 44px.

   Заимствованные классы (при правке landing.css / auth.css проверять EN):
     landing.css — lp-hero, lp-hero-visual, lp-hero-video, lp-hero-note, lp-h1,
       lp-lead, lp-cta, lp-section, lp-section-title, lp-grid, lp-card,
       lp-card-ph, lp-card-title, lp-features, lp-feature, lp-feature-title,
       lp-feature-text, lp-prose;
     auth.css — auth-container, auth-title, auth-subtitle, auth-input-group,
       auth-input, auth-button-primary, auth-button-secondary, auth-message*,
       auth-links, auth-link, auth-forgot-password, auth-checkbox*.
   ============================================================================ */

:root {
  --bg: #0b0b0f;
  --card: #1a1a22;
  --text: #f6f7fb;
  --muted: #8b8d98;
  --primary: #6366f1;
  --accent: #6ce5b1;
  --danger: #ff5c7a;
  --en-accent: #b4ff39;
  --en-line: rgba(255, 255, 255, .09);
}

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

html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body.en {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* :where — нулевая специфичность: цвет кнопок из landing.css (.lp-cta) не перебивается. */
:where(body.en) a { color: inherit; }

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

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.en-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 15, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--en-line);
}

.en-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.en-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.en-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.en-nav-link {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(246, 247, 251, .75);
  text-decoration: none;
  font-size: 15px;
}

.en-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* «Sign in» / «Account» видна всегда, остальная навигация — с планшета. */
.en-nav-link[data-en-auth-link] { display: inline-flex; }

@media (min-width: 720px) {
  .en-nav-link { display: inline-flex; }
}

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.en-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}

.en-btn:active { transform: scale(.98); }

.en-btn-primary {
  background: var(--en-accent);
  color: #0b0b0f;
}

.en-btn-ghost {
  border: 1px solid var(--en-line);
  background: rgba(255, 255, 255, .04);
}

.en-btn-ghost:hover { background: rgba(255, 255, 255, .09); }

/* ── Hero и секции главной ─────────────────────────────────────────────── */
.en-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Текстовый hero без визуала (цены, контакты, документы, 404 — renderCompactHero):
   без высоты «под картинку» из landing.css. */
.en-hero-compact { padding-bottom: 0; }

@media (min-width: 980px) {
  .en-hero-compact {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.en-steps {
  counter-reset: none;
  padding: 0;
  list-style: none;
}

.en-teaser .en-btn { margin-top: 4px; }

/* ── Юридические страницы и контакты ───────────────────────────────────── */
/* Разделы внутри документа — намеренно мельче .lp-section-title: это пункты
   одного текста, а не самостоятельные секции страницы. */
.en-legal h2 {
  margin: 32px 0 12px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
  color: var(--text);
}

.en-legal h2:first-child { margin-top: 0; }

.en-legal p { overflow-wrap: anywhere; }

.en-company {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
  margin: 0;
  max-width: 42em;
}

.en-company dt {
  font-size: 13px;
  color: var(--muted);
}

.en-company dd {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
}

.en-company a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--en-accent);
}

@media (min-width: 720px) {
  .en-company {
    grid-template-columns: 220px 1fr;
    align-items: baseline;
  }

  .en-company dd { margin-bottom: 0; }
}

/* ── Цены ──────────────────────────────────────────────────────────────── */
.en-price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .en-price-grid { grid-template-columns: repeat(3, 1fr); }
}

.en-price-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--en-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .035);
}

.en-price-card .en-btn { margin-top: auto; }

.en-price-name {
  margin: 0;
  font-size: 20px;
}

.en-price-amount {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.en-price-amount span {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

.en-price-stars { margin: 0; color: var(--en-accent); font-weight: 600; }

.en-price-alt { margin: 0; color: var(--muted); font-size: 14px; }

.en-price-perks {
  margin: 4px 0 12px;
  padding-left: 18px;
  color: rgba(246, 247, 251, .8);
  font-size: 14px;
}

/* ── Формы входа и регистрации ─────────────────────────────────────────── */
.en-auth {
  display: flex;
  justify-content: center;
  padding: 32px 0 16px;
}

.en-auth .auth-container { padding: 32px 20px; }

@media (min-width: 480px) {
  .en-auth .auth-container { padding: 48px 40px; }
}

.en-auth .auth-input,
.en-auth .auth-button-primary,
.en-auth .auth-button-secondary { min-height: 44px; }

.en-auth .auth-button-secondary {
  width: 100%;
  margin-top: 12px;
}

.en-auth .auth-link,
.en-auth .auth-forgot-password {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.en-account-ready {
  font-size: 18px;
  color: #fff;
}

/* ── Подвал ────────────────────────────────────────────────────────────── */
.en-footer {
  border-top: 1px solid var(--en-line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.en-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 12px;
}

.en-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: rgba(246, 247, 251, .75);
  text-decoration: none;
}

.en-footer-links a:hover { color: #fff; }

.en-footer-copy { margin: 0; padding: 0 8px; }
