/* === LANDING.CSS === */
/* assets/css/landing.css */
/* НАЗНАЧЕНИЕ: Стили публичного лендинга. Light тема, корпоративный + современный вид (резервный) */
/* СВЯЗИ: index.php */
/* РАЗМЕР: ~440 строк */

:root {
    --ld-bg: #fff;
    --ld-bg-alt: oklch(0.97 0.005 240);
    --ld-text: oklch(0.18 0.02 240);
    --ld-muted: oklch(0.5 0.02 240);
    --ld-border: oklch(0.92 0.01 240);
    --ld-accent: oklch(0.55 0.18 250);
    --ld-accent-hover: oklch(0.48 0.2 250);
    --ld-accent-soft: oklch(0.96 0.04 250);
    --ld-success: oklch(0.6 0.18 145);

    --ld-radius: 16px;
    --ld-radius-sm: 10px;
    --ld-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --ld-shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --ld-shadow-lg: 0 16px 48px rgba(0,0,0,0.08);

    --ld-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    background: var(--ld-bg);
    color: var(--ld-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html { scroll-behavior: smooth; }

a { color: var(--ld-accent); text-decoration: none; }
a:hover { color: var(--ld-accent-hover); }

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

/* === HEADER === */
.ld-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--ld-border);
    z-index: 100;
}

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

.ld-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ld-text);
    font-weight: 700;
    font-size: 18px;
}

.ld-logo-mark {
    width: 32px;
    height: 32px;
    background: var(--ld-accent);
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.ld-nav {
    display: flex;
    gap: 28px;
}

.ld-nav a {
    color: var(--ld-text);
    font-weight: 500;
    font-size: 14px;
}

.ld-nav a:hover { color: var(--ld-accent); }

.ld-header-cta {
    display: flex;
    gap: 8px;
}

/* === BUTTONS === */
.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--ld-radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s var(--ld-ease);
    white-space: nowrap;
}

.ld-btn-primary {
    background: var(--ld-accent);
    color: #fff;
}
.ld-btn-primary:hover {
    background: var(--ld-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--ld-shadow-md);
}

.ld-btn-ghost {
    background: transparent;
    color: var(--ld-text);
    border-color: var(--ld-border);
}
.ld-btn-ghost:hover {
    border-color: var(--ld-accent);
    color: var(--ld-accent);
}

.ld-btn-lg {
    padding: 14px 26px;
    font-size: 16px;
}

/* === HERO === */
.ld-hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--ld-accent-soft) 0%, var(--ld-bg) 100%);
}

.ld-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ld-badge {
    display: inline-block;
    padding: 6px 14px;
    background: oklch(0.96 0.05 250);
    color: var(--ld-accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.ld-h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.ld-h1-accent {
    background: linear-gradient(120deg, var(--ld-accent) 0%, oklch(0.55 0.22 280) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ld-lead {
    font-size: 18px;
    color: var(--ld-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.ld-hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.ld-hero-stats {
    display: flex;
    gap: 32px;
    border-top: 1px solid var(--ld-border);
    padding-top: 24px;
    flex-wrap: wrap;
}

.ld-stat-num {
    font-weight: 700;
    font-size: 22px;
    color: var(--ld-text);
}

.ld-stat-label {
    font-size: 13px;
    color: var(--ld-muted);
    margin-top: 2px;
}

/* === HERO CARD MOCK === */
.ld-hero-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--ld-shadow-lg);
    border: 1px solid var(--ld-border);
    transform: rotate(-2deg);
    transition: transform 0.3s var(--ld-ease);
}

.ld-hero-card:hover { transform: rotate(0); }

.ld-card-screen {
    background: var(--ld-bg-alt);
    border-radius: var(--ld-radius);
    padding: 24px;
}

.ld-card-amount { text-align: center; margin-bottom: 20px; }

.ld-card-label {
    font-size: 11px;
    color: var(--ld-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ld-card-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--ld-accent);
    letter-spacing: -1px;
}

.ld-card-num span {
    font-size: 18px;
    color: var(--ld-muted);
}

.ld-card-recipient {
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.ld-card-name { font-weight: 600; font-size: 14px; }
.ld-card-edrpou { font-size: 12px; color: var(--ld-muted); margin-top: 2px; }

.ld-card-qr { text-align: center; }

.ld-card-qr-box {
    width: 160px;
    height: 160px;
    margin: 0 auto 8px;
    background:
        repeating-linear-gradient(0deg, var(--ld-text) 0 4px, transparent 4px 8px),
        repeating-linear-gradient(90deg, var(--ld-text) 0 4px, transparent 4px 8px);
    background-blend-mode: multiply;
    border-radius: 8px;
    opacity: 0.85;
}

.ld-card-qr-hint {
    font-size: 12px;
    color: var(--ld-muted);
}

/* === SECTIONS === */
.ld-section {
    padding: 80px 0;
}

.ld-section-alt {
    background: var(--ld-bg-alt);
}

.ld-h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 12px;
}

.ld-section-lead {
    text-align: center;
    color: var(--ld-muted);
    font-size: 17px;
    margin-bottom: 48px;
}

/* === STEPS === */
.ld-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ld-step {
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--ld-radius);
    border: 1px solid var(--ld-border);
    text-align: center;
    transition: transform 0.2s var(--ld-ease);
}

.ld-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--ld-shadow-md);
}

.ld-step-num {
    width: 48px;
    height: 48px;
    background: var(--ld-accent-soft);
    color: var(--ld-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.ld-step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ld-step-text {
    color: var(--ld-muted);
    font-size: 15px;
}

/* === CASES === */
.ld-cases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ld-case {
    background: #fff;
    padding: 28px 22px;
    border-radius: var(--ld-radius);
    border: 1px solid var(--ld-border);
    transition: all 0.2s var(--ld-ease);
}

.ld-case:hover {
    border-color: var(--ld-accent);
    transform: translateY(-2px);
    box-shadow: var(--ld-shadow-md);
}

.ld-case-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.ld-case-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ld-case p {
    font-size: 14px;
    color: var(--ld-muted);
}

/* === API === */
.ld-api-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ld-api-list {
    list-style: none;
    margin: 24px 0;
}

.ld-api-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--ld-text);
}

.ld-api-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    background: var(--ld-success);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.ld-code {
    background: oklch(0.18 0.02 240);
    color: oklch(0.85 0.02 240);
    padding: 24px;
    border-radius: var(--ld-radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.65;
    overflow-x: auto;
    box-shadow: var(--ld-shadow-lg);
}

.ld-code code { color: inherit; background: none; padding: 0; }

/* === FAQ === */
.ld-faq {
    max-width: 780px;
    margin: 0 auto;
}

.ld-faq-item {
    background: #fff;
    border-radius: var(--ld-radius-sm);
    border: 1px solid var(--ld-border);
    margin-bottom: 12px;
    overflow: hidden;
}

.ld-faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ld-faq-item summary::-webkit-details-marker { display: none; }

.ld-faq-item summary::after {
    content: "+";
    font-size: 24px;
    font-weight: 300;
    color: var(--ld-muted);
    transition: transform 0.2s var(--ld-ease);
}

.ld-faq-item[open] summary::after { transform: rotate(45deg); }

.ld-faq-item p {
    padding: 0 22px 18px;
    color: var(--ld-muted);
    font-size: 15px;
}

/* === FOOTER === */
.ld-footer {
    background: oklch(0.18 0.02 240);
    color: oklch(0.85 0.02 240);
    padding: 64px 0 24px;
}

.ld-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 48px;
}

.ld-footer .ld-logo,
.ld-footer .ld-logo-text { color: #fff; }

.ld-footer-brand p {
    color: oklch(0.65 0.02 240);
    margin-top: 12px;
    font-size: 14px;
    max-width: 280px;
}

.ld-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ld-footer-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    font-size: 14px;
}

.ld-footer-cols a {
    display: block;
    color: oklch(0.65 0.02 240);
    font-size: 14px;
    padding: 4px 0;
}

.ld-footer-cols a:hover { color: #fff; }

.ld-footer-bottom {
    text-align: center;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid oklch(0.28 0.02 240);
    font-size: 13px;
    color: oklch(0.55 0.02 240);
}

/* === TABLET === */
@media (max-width: 980px) {
    .ld-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .ld-h1 { font-size: 44px; }
    .ld-h2 { font-size: 32px; }
    .ld-cases { grid-template-columns: repeat(2, 1fr); }
    .ld-api-grid { grid-template-columns: 1fr; gap: 40px; }
    .ld-footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .ld-nav { display: none; }
}

/* === MOBILE === */
@media (max-width: 640px) {
    .ld-h1 { font-size: 36px; }
    .ld-h2 { font-size: 26px; }
    .ld-section { padding: 56px 0; }
    .ld-hero { padding: 56px 0 40px; }
    .ld-steps { grid-template-columns: 1fr; }
    .ld-cases { grid-template-columns: 1fr; }
    .ld-footer-cols { grid-template-columns: 1fr; }
    .ld-header-cta .ld-btn-ghost { display: none; }
    .ld-card-num { font-size: 28px; }
}
