/* Лендинг «/» - та же система, что style.css/chet-elga.css: токены var(--color-*),
   var(--space-*), var(--radius), брендовый градиент #667eea→#764ba2, кнопки
   .btn-primary/.btn-secondary. Один акцент на экран, SVG/цифры вместо эмодзи,
   mobile-first: базовые правила - для 390px, расширения - в @media (min-width). */

.ld { color: var(--color-text); }
.ld h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 var(--space-4); }
.ld h3 { font-size: var(--fs-lg); font-weight: 600; margin: 0 0 var(--space-1); }
.ld p  { line-height: 1.6; }
.ld-section { padding: var(--space-7) 0; }
.ld-section-alt { background: var(--color-bg); }
.ld-sub { font-size: var(--fs-lg); color: var(--color-text-muted); margin: calc(-1 * var(--space-2)) 0 var(--space-5); max-width: 640px; }
.ld-narrow { max-width: 760px; }
.ld-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.ld-btn-lg { padding: 14px 32px; font-size: var(--fs-lg); }

/* Подсказка языка - тонкая полоска, не баннер */
.ld-langhint { display: flex; align-items: center; justify-content: center; gap: var(--space-3); background: #eef0fb; color: var(--color-text); font-size: var(--fs-base); padding: 8px var(--space-4); }
.ld-langhint a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.ld-langhint button { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--color-text-muted); cursor: pointer; padding: 0 4px; }

/* Hero */
.ld-hero { background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%); padding: var(--space-7) 0 var(--space-6); overflow: hidden; }
.ld-hero-grid { display: grid; gap: var(--space-6); align-items: center; }
.ld-eyebrow { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-primary); margin: 0 0 var(--space-3); }
.ld-hero h1 { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 var(--space-4); }
.ld-lead { font-size: var(--fs-lg); color: var(--color-text-muted); margin: 0 0 var(--space-5); max-width: 540px; }
.ld-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.ld-trust { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--fs-base); color: var(--color-text-muted); }
.ld-trust li { display: inline-flex; align-items: center; gap: 6px; }
.ld-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }

/* Веер из трёх шаблонов: лицевой ровно, два за ним - под углом */
.ld-hero-art { display: flex; justify-content: center; }
.ld-fan { position: relative; width: 240px; height: 340px; }
.ld-fan-card { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(29,29,31,.14); transform-origin: 50% 100%; }
.ld-fan-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ld-fan-back { transform: rotate(-10deg) translateX(-34px) scale(.94); opacity: .85; }
.ld-fan-mid  { transform: rotate(8deg) translateX(34px) scale(.97); opacity: .92; }
.ld-fan-front { transform: none; }

/* Шаги */
.ld-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); counter-reset: none; }
.ld-steps li { display: flex; gap: var(--space-4); align-items: flex-start; }
.ld-step-num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ld-steps p { margin: 0; color: var(--color-text-muted); }

/* Шаблоны */
.ld-tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.ld-tpl { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.ld-tpl:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.ld-tpl-img { display: block; aspect-ratio: 794 / 1123; background: #f0f0f3; }
.ld-tpl-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ld-tpl-body { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); }
.ld-tpl-name { font-weight: 600; font-size: var(--fs-base); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ld-tpl-for { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: 1.4; }
.ld-tag { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 980px; letter-spacing: .01em; }
.ld-tag-free { background: #e6f4ea; color: #2e7d4f; }
.ld-tag-premium { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }

/* Карточки (аудитория, преимущества) */
.ld-cards { display: grid; gap: var(--space-3); }
.ld-card { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); padding: var(--space-5) var(--space-4); }
.ld-card p { margin: 0; color: var(--color-text-muted); font-size: var(--fs-base); }
.ld-card-plain { border-top: 3px solid var(--color-primary); }

/* Таблица сравнения */
.ld-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); background: #fff; }
.ld-table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); min-width: 420px; }
.ld-table th, .ld-table td { padding: 12px var(--space-3); text-align: left; border-bottom: 1px solid rgba(0,0,0,.06); vertical-align: top; }
.ld-table thead th { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); font-weight: 600; }
.ld-table tbody th { font-weight: 500; color: var(--color-text); }
.ld-table td { text-align: center; white-space: nowrap; }
.ld-table tr:last-child th, .ld-table tr:last-child td { border-bottom: 0; }
.ld-th-premium { color: var(--color-primary) !important; }
.ld-table td:last-child { font-weight: 600; color: var(--color-primary); }
.ld-note { font-size: var(--fs-base); color: var(--color-text-muted); margin: var(--space-3) 0 0; }

/* Направления «Чет элга» */
.ld-dest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.ld-dest { display: flex; align-items: center; gap: var(--space-3); background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); padding: var(--space-3) var(--space-4); text-decoration: none; color: var(--color-text); font-weight: 500; transition: transform .18s ease, box-shadow .18s ease; }
.ld-dest:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.ld-dest-flag { font-size: 24px; line-height: 1; }
.ld-more { margin: var(--space-4) 0 0; }
.ld-more a { color: var(--color-primary); font-weight: 600; text-decoration: none; }

/* Отзывы - карточки как в App Store: аватар-инициал, имя/дата, звёзды, текст */
.ld-rv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-5); }
.ld-rv-head h2 { margin: 0; }
.ld-rv-score { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 16px 10px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.04); }
.ld-rv-avg { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.02em; color: var(--color-text); font-variant-numeric: tabular-nums; }
.ld-rv-score-side { display: flex; flex-direction: column; gap: 3px; }
.ld-rv-count { font-size: var(--fs-sm); color: var(--color-text-muted); }
.ld-rv-stars { display: inline-flex; gap: 1px; }
.ld-rv-stars svg { width: 16px; height: 16px; fill: #e2e2e7; }
.ld-rv-stars svg.on { fill: #f5a524; }
.ld-rv-grid { display: grid; gap: var(--space-3); }
.ld-rv { margin: 0; background: #fff; border-radius: 16px; padding: var(--space-4) var(--space-4) var(--space-4); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.04); display: flex; flex-direction: column; gap: 10px; }
.ld-rv-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.ld-rv-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0; }
.ld-rv-who { display: flex; flex-direction: column; min-width: 0; }
.ld-rv-name { font-weight: 600; font-size: var(--fs-base); color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-rv-date { font-size: var(--fs-sm); color: var(--color-text-muted); }
.ld-rv-top .ld-rv-stars svg { width: 14px; height: 14px; }
.ld-rv-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-text); }
.ld-rv-tpl { align-self: flex-start; font-size: var(--fs-sm); color: var(--color-text-muted); text-decoration: none; background: var(--color-bg); border-radius: 980px; padding: 3px 10px; }
.ld-rv-tpl::before { content: "✦ "; color: var(--color-primary); }
.ld-rv-tpl:hover { color: var(--color-primary); }

/* FAQ - нативный details, без JS */
.ld-faq { display: grid; gap: var(--space-2); }
.ld-faq-item { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); padding: 0 var(--space-4); }
.ld-faq-item summary { cursor: pointer; list-style: none; font-weight: 600; padding: 14px 28px 14px 0; position: relative; }
.ld-faq-item summary::-webkit-details-marker { display: none; }
.ld-faq-item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 20px; color: var(--color-primary); transition: transform .18s ease; }
.ld-faq-item[open] summary::after { transform: rotate(45deg); }
.ld-faq-item p { margin: 0 0 var(--space-4); color: var(--color-text-muted); }

/* Текстовый блок */
.ld-prose p { font-size: var(--fs-lg); margin: 0 0 var(--space-4); }
.ld-prose h3 { margin-top: var(--space-5); }
.ld-sections { margin: 0; display: grid; gap: var(--space-3); }
.ld-sections-item { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.ld-sections dt { font-weight: 600; margin: 0 0 4px; }
.ld-sections dd { margin: 0; color: var(--color-text-muted); font-size: var(--fs-base); line-height: 1.55; }
.ld-howto { padding-left: 22px; margin: 0; display: grid; gap: var(--space-2); font-size: var(--fs-lg); line-height: 1.55; }

/* Финальный призыв */
.ld-final { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; text-align: center; padding: var(--space-8) 0; }
.ld-final h2 { color: #fff; }
.ld-final p { color: rgba(255,255,255,.88); font-size: var(--fs-lg); margin: 0 auto var(--space-5); max-width: 520px; }
.ld-final .btn-primary { background: #fff; color: var(--color-primary); }
.ld-final .btn-primary:hover { background: #f5f5f7; }

/* Навигация лендинга на телефоне: логотип в одну строку, CTA скрыт (он в hero) */
.landing-page .nav-logo { white-space: nowrap; }
.landing-page .lang-switch { gap: 2px; }
.landing-page .lang-switch a { padding: 4px 6px; }
.ld-section, .ld-final { scroll-margin-top: 72px; }

@media (max-width: 719px) {
    .landing-page .nav-cta { display: none; }
    .ld-fan { width: 220px; height: 312px; }
    .ld-fan-back { transform: rotate(-7deg) translateX(-20px) scale(.94); }
    .ld-fan-mid  { transform: rotate(6deg) translateX(20px) scale(.97); }
    .ld-table { min-width: 0; font-size: 13px; }
    .ld-table th, .ld-table td { padding: 10px 8px; }
    .ld-table td { white-space: normal; }
    .ld-table tbody th { width: 46%; }
}

@media (min-width: 720px) {
    .ld h2 { font-size: 32px; }
    .ld-hero { padding: var(--space-8) 0; }
    .ld-hero-grid { grid-template-columns: 1.2fr 1fr; }
    .ld-hero h1 { font-size: 46px; }
    .ld-fan { width: 300px; height: 424px; }
    .ld-tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
    .ld-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
    .ld-dest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ld-rv-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); }
    .ld-rv { max-width: 460px; }
    .ld-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ld-steps li { flex-direction: column; gap: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
    .ld-tpl, .ld-dest, .ld-faq-item summary::after { transition: none; }
}

/* Hujjatlar: карточки генераторов документов */
.ld-card-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.ld-card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.ld-doc-icon { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.ld-doc h3 { margin: 0; font-size: var(--fs-lg); }
.ld-doc p { flex: 1 1 auto; }
.ld-doc-cta { color: var(--color-primary); font-weight: 600; font-size: var(--fs-base); margin-top: 4px; }
.ld-doc-icon { color: var(--color-primary); }
.ld-doc-icon .ic { width: 30px; height: 30px; }
.ld-dest-flag { display: block; }

/* Тарифы: две карточки. Премиум - градиентная рамка, знак ✦ и одна градиентная
   кнопка (тот же язык, что css/paywall.css: градиент только там, где «премиум»). */
.ld-plans-head { max-width: 640px; }
.ld-plans { display: grid; gap: var(--space-4); align-items: stretch; }
.ld-plan { position: relative; display: flex; flex-direction: column; gap: var(--space-4); background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 18px; padding: var(--space-5) var(--space-4); }
.ld-plan-head { display: flex; flex-direction: column; gap: 4px; }
.ld-plan-head h3 { margin: 0; font-size: var(--fs-lg); }
.ld-plan-price { margin: 4px 0 0; font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--color-text); }
.ld-plan-note { margin: 0; font-size: var(--fs-sm); color: var(--color-text-muted); }
.ld-plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1 1 auto; align-content: start; }
.ld-plan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; }
.ld-plan-list li span { flex: 1 1 auto; }
.ld-plan-ic { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--color-text-muted); }
.ld-plan-premium { border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px rgba(102,126,234,.18); }
.ld-plan-premium::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ld-plan-premium .ld-plan-ic { color: var(--color-primary); }
.ld-plan-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .03em; line-height: 1; box-shadow: 0 6px 16px rgba(102,126,234,.45), inset 0 0 0 1px rgba(255,255,255,.28); margin-bottom: 6px; }
.ld-spark { width: 11px; height: 11px; flex: 0 0 auto; }
.ld-plan-soon { font-size: var(--fs-lg); color: var(--color-text-muted); font-weight: 600; }
.ld-plan-cta { width: 100%; padding: 13px 20px; font-size: 15px; font-weight: 600; border-radius: 12px; gap: 8px; }
.ld-plan-cta-premium { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; box-shadow: 0 10px 24px rgba(102,126,234,.35); transition: transform .18s ease, box-shadow .18s ease; }
.ld-plan-cta-premium:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(102,126,234,.45); color: #fff; }
.ld-plan-cta-premium .ld-spark { width: 14px; height: 14px; }
.ld-plan-secure { display: block; margin: calc(-1 * var(--space-2)) 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--color-text-muted); text-align: center; }
.ld-plan-secure .ld-plan-ic { display: inline-block; width: 14px; height: 14px; margin: 0 3px 0 0; vertical-align: -3px; color: var(--color-text-muted); }
@media (max-width: 719px) { .ld-plan-premium { order: -1; } }
@media (min-width: 720px) {
    .ld-plans { grid-template-columns: 1fr 1.15fr; gap: var(--space-5); max-width: 900px; }
    .ld-plan { padding: var(--space-6) var(--space-5); }
    .ld-plan-price { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { .ld-plan-cta-premium { transition: none; } }
