/* Рекламная главная страница для неавторизованных посетителей */

* { box-sizing: border-box; }

:root {
    --ink: #1d2433;
    --dark: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-alt: #f5f6f8;
    --green: #27633f;
    --green-hover: #1f5134;
    --green-soft: #e8f1eb;
    --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--dark); letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; }

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1f2937; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-hover); }
.btn-ghost { border: 1px solid #d1d5db; background: #fff; color: var(--dark); }
.btn-ghost:hover { border-color: #9ca3af; }
.btn:focus-visible, .header-nav a:focus-visible { outline: 3px solid rgba(39, 99, 63, .35); outline-offset: 2px; }

/* Шапка */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    flex: none;
    border-radius: 10px;
    background: var(--dark); color: #fff;
    font-size: 18px; font-weight: 800;
}
.brand-text strong, .brand-text small { display: block; line-height: 1.2; }
.brand-text strong { font-size: 16px; color: var(--dark); }
.brand-text small { margin-top: 2px; font-size: 12px; color: var(--muted); }

.header-nav { display: flex; gap: 4px; margin-left: auto; }
.header-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: #374151;
    font-size: 15px;
    font-weight: 550;
    text-decoration: none;
}
.header-nav a:hover { background: var(--bg-alt); color: var(--dark); }
.header-login { margin-left: 8px; }

/* Первый экран */
.hero {
    padding: 72px 0 40px;
    background:
        radial-gradient(900px 420px at 85% 0%, var(--green-soft), transparent 70%),
        linear-gradient(#fff, var(--bg-alt));
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--green);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; }
.lead { margin-top: 20px; max-width: 560px; color: #475569; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-points li { position: relative; padding-left: 22px; }
.hero-points li::before, .checks li::before {
    content: "";
    position: absolute; left: 0; top: .3em;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%2327633f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Иллюстрация интерфейса */
.hero-visual { position: relative; }
.mock-window {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(15, 23, 42, .14), 0 4px 14px rgba(15, 23, 42, .05);
    overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fafafa; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; }
.mock-bar span { margin-left: 10px; font-size: 12px; font-weight: 650; color: var(--muted); }
.mock-body { display: flex; min-height: 300px; }
.mock-side { display: flex; flex-direction: column; gap: 10px; width: 54px; padding: 16px 12px; background: var(--dark); }
.mock-side b { display: block; height: 30px; border-radius: 7px; background: rgba(255, 255, 255, .1); }
.mock-side b.on { background: var(--green); }
.mock-content { flex: 1; min-width: 0; padding: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; }
.mock-kpis small { display: block; color: var(--muted); font-size: 11px; }
.mock-kpis strong { display: block; margin-top: 3px; color: var(--dark); font-size: 16px; white-space: nowrap; }
.mock-table { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12.5px; }
.mock-row { display: grid; grid-template-columns: 1.7fr 1fr .6fr; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); }
.mock-row:first-child { border-top: 0; }
.mock-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row span:last-child { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.mock-row.head { background: #fafafa; color: var(--muted); font-weight: 650; font-size: 11.5px; }
.mock-float {
    position: absolute;
    left: -26px; bottom: -40px;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}
.mock-float .dot { width: 10px; height: 10px; border-radius: 50%; background: #22a35a; box-shadow: 0 0 0 4px rgba(34, 163, 90, .16); }
.mock-float small { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; }
.mock-float strong { display: block; font-size: 14px; color: var(--dark); }
.mock-note { margin-top: 34px; color: #94a3b8; font-size: 12px; text-align: right; }

/* Секции */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p, .split p { margin-top: 16px; color: #475569; font-size: 17px; }
.muted { color: var(--muted) !important; }
.small { font-size: 14px !important; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.feature:hover { border-color: #cbd5e1; box-shadow: 0 14px 34px rgba(15, 23, 42, .07); transform: translateY(-2px); }
.feature .icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 11px; background: var(--green-soft); }
.feature svg { width: 23px; height: 23px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; }
.feature p { margin-top: 8px; color: #475569; font-size: 15px; }

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

.mp-cards { display: grid; gap: 16px; }
.mp-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.mp-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mp-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.mp-logo.ozon { color: #005bff; }
.mp-logo.wb { color: #a73afd; }
.tag { padding: 4px 10px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; }
.mp-card p { color: #475569; font-size: 15px; }

.fifo-visual { display: grid; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.fifo-lot, .fifo-sale { padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.fifo-lot small, .fifo-sale small { display: block; color: var(--muted); font-size: 13px; }
.fifo-lot strong { display: block; margin: 2px 0 10px; font-size: 20px; color: var(--dark); }
.fifo-lot .bar { position: relative; display: block; height: 8px; border-radius: 99px; background: #e5e7eb; overflow: hidden; }
.fifo-lot .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--green); border-radius: inherit; }
.fifo-sale { background: var(--dark); border-color: var(--dark); }
.fifo-sale small { color: #9ca3af; }
.fifo-sale strong { display: block; margin-top: 4px; color: #fff; font-size: 17px; font-variant-numeric: tabular-nums; }

.checks { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 26px; color: #374151; }
.checks li::before { top: .25em; width: 18px; height: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps span { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 800; }
.steps h3 { font-size: 18px; }
.steps p { margin-top: 8px; color: #475569; font-size: 15px; }

/* Финальный призыв */
.cta { padding: 72px 0; }
.cta-box {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding-top: 40px; padding-bottom: 40px;
    border-radius: 22px;
    background: var(--dark);
    background-image: radial-gradient(600px 240px at 100% 0%, rgba(39, 99, 63, .55), transparent 70%);
    width: min(1112px, calc(100% - 48px));
    padding-left: 44px; padding-right: 44px;
}
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cta p { margin-top: 8px; color: #cbd5e1; font-size: 17px; }

/* Подвал */
.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row a:not(.brand) { text-decoration: none; }
.footer-row a:not(.brand):hover { color: var(--dark); }
.brand-small .brand-mark { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
.brand-small strong { color: var(--dark); }

/* Планшет */
@media (max-width: 980px) {
    .header-nav { display: none; }
    .header-login { margin-left: auto; }
    .hero { padding-top: 48px; }
    .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
    .split-reverse > :first-child { order: 2; }
    .hero-visual { max-width: 620px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .mock-float { left: 12px; }
}

/* Телефон */
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .header-row { height: 60px; gap: 12px; }
    .brand-text small { display: none; }
    .header-login { height: 38px; padding: 0 16px; }
    .hero { padding: 36px 0 28px; }
    .lead { font-size: 16px; margin-top: 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .mock-side { display: none; }
    .mock-content { padding: 12px; }
    .mock-kpis { gap: 6px; }
    .mock-kpis div { padding: 8px; }
    .mock-kpis strong { font-size: 13px; }
    .mock-row { font-size: 11.5px; padding: 8px 10px; }
    .mock-body { min-height: 0; }
    .mock-float { position: relative; left: auto; bottom: auto; margin: -18px 12px 0 auto; width: max-content; }
    .mock-note { margin-top: 14px; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 28px; }
    .section-head p, .split p { font-size: 16px; }
    .feature-grid, .steps { grid-template-columns: 1fr; gap: 12px; }
    .feature, .steps li, .mp-card { padding: 20px; }
    .cta { padding: 48px 0; }
    .cta-box { flex-direction: column; align-items: stretch; width: calc(100% - 32px); padding: 28px 22px; text-align: left; }
    .cta-box .btn { width: 100%; }
    .footer-row { flex-direction: column; align-items: flex-start; }
}
