/* Лендинг Эллис Сейф — перенесено из site/landing-preview/index.html (источник правды по дизайну) */

:root {
    --bg-deep: #0a0f1c;
    --bg-card: #131a2b;
    --bg-card-hover: #1a2238;
    --border: #232c44;
    --accent: #6366f1;
    --accent-hover: #7c80ff;
    --accent-soft: rgba(99, 102, 241, 0.12);
    --teal: #14b8a6;
    --text: #ffffff;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --success: #10b981;
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Manrope', -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* фоновый градиент */
  body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
  }
  body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
  }

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

  /* === HEADER === */
  header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
  }
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
  }
  .logo-mark {
    width: 40px; height: 40px;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
  }
  nav { display: flex; gap: 32px; align-items: center; }
  nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
  }
  nav a:hover { color: var(--text); }
  .btn-primary {
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
  }
  .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  }
  .btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  /* === HERO === */
  .hero {
    padding: 100px 0 80px;
    text-align: center;
  }
  .badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-hover);
    margin-bottom: 24px;
    font-weight: 600;
  }
  h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #b8c5e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-sub {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.5;
  }
  .hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
  }
  .btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 18px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
  }
  .btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

  /* Trust row */
  .trust-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .trust-item svg { width: 18px; height: 18px; color: var(--success); }

  /* === SECTION HEADER === */
  section { padding: 80px 0; }
  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }
  .section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
  }
  .section-sub {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
  }

  /* === ЧТО ЭТО === */
  .why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
  .why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
  }
  .why-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
  }
  .why-icon {
    width: 52px; height: 52px;
    background: var(--accent-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  .why-icon svg { width: 28px; height: 28px; color: var(--accent-hover); }
  .why-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
  .why-desc { color: var(--text-dim); font-size: 0.95rem; }

  /* === ТАРИФЫ === */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
  }
  .price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    position: relative;
    transition: all 0.3s;
  }
  .price-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
  }
  .price-card:hover:not(.featured) {
    border-color: var(--accent);
    transform: translateY(-4px);
  }
  .price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
  }
  .price-period {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
  }
  .price-amount {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -2px;
  }
  .price-amount .currency { font-size: 1.8rem; color: var(--text-dim); }
  .price-per-month {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  .price-save {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
  }
  .price-features {
    list-style: none;
    margin-bottom: 28px;
  }
  .price-features li {
    padding: 8px 0;
    color: var(--text-dim);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .price-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
  }
  .price-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--accent);
    color: white;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
  }
  .price-btn:hover { background: var(--accent-hover); }
  .price-btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
  }
  .price-btn.secondary:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

  /* === КАК РАБОТАЕТ === */
  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: step;
  }
  .step {
    text-align: center;
    padding: 24px;
  }
  .step-num {
    counter-increment: step;
    width: 56px;
    height: 56px;
    background: var(--accent-soft);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--accent-hover);
  }
  .step-num::before { content: counter(step); }
  .step-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
  .step-desc { color: var(--text-dim); font-size: 0.95rem; }

  /* === MASTER PASSWORD WARNING === */
  .master-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(251, 146, 60, 0.04) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 0 auto;
    max-width: 1000px;
  }
  .master-warning-icon {
    flex-shrink: 0;
    width: 80px; height: 80px;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .master-warning-icon svg { width: 44px; height: 44px; color: #fbbf24; }
  .master-warning-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fbbf24;
  }
  .master-warning-content p {
    color: var(--text-dim);
    font-size: 1.02rem;
    line-height: 1.55;
  }
  .master-warning-content p strong { color: var(--text); }

  @media (max-width: 640px) {
    .master-warning { flex-direction: column; text-align: center; padding: 28px; gap: 16px; }
  }

  /* === УСТРОЙСТВА === */
  .devices {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
  }
  .device-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 32px;
  }
  .device {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
  }
  .device svg {
    width: 56px; height: 56px;
    color: var(--accent-hover);
    margin-bottom: 12px;
  }

  /* === БЕЗОПАСНОСТЬ === */
  .security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .security-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  .security-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(20, 184, 166, 0.15));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .security-icon svg { width: 22px; height: 22px; color: var(--teal); }
  .security-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
  .security-content p { color: var(--text-dim); font-size: 0.92rem; }

  /* === FAQ === */
  .faq-list {
    max-width: 760px;
    margin: 0 auto;
  }
  .faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .faq-question {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
  }
  .faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-dim);
    transition: transform 0.3s;
  }
  .faq-item.open .faq-question::after { transform: rotate(45deg); }
  .faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-dim);
    transition: all 0.3s ease;
  }
  .faq-item.open .faq-answer {
    padding: 0 24px 24px;
    max-height: 500px;
  }

  /* === CTA BLOCK === */
  .cta-block {
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0;
  }
  .cta-block h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
  }
  .cta-block p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 32px;
  }
  .cta-block .btn-primary {
    background: white;
    color: var(--accent);
    font-size: 1.1rem;
    padding: 18px 40px;
  }
  .cta-block .btn-primary:hover { background: #f1f5f9; }

  /* === FOOTER === */
  footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
  }
  .footer-about p {
    color: var(--text-dim);
    margin-top: 12px;
    font-size: 0.95rem;
    max-width: 380px;
  }
  .footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
  }
  .footer-col a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.95rem;
  }
  .footer-col a:hover { color: var(--text); }
  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
  }

  @media (max-width: 768px) {
    nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .price-card.featured { transform: scale(1); }
    .trust-row { gap: 20px; }
    section { padding: 60px 0; }
  }

/* Ссылка «Войти» в шапке (добавлена в Rails-версии) */
.nav-login {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-login:hover { color: var(--text); }
