/* ==========================================================================
   Lazy Bee — Складской учёт автозапчастей в Битрикс24
   Дизайн-система лендинга (без внешних CSS-фреймворков ради скорости и SEO)
   ========================================================================== */

:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --orange: #f97316;
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --green: #16a34a;
    --amber: #d97706;
    --red: #dc2626;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow: 0 12px 30px -10px rgba(15, 23, 42, .18);
    --shadow-lg: 0 30px 60px -18px rgba(15, 23, 42, .28);
    --maxw: 1120px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }

p { margin: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img, iframe { max-width: 100%; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow { max-width: 760px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 12px 0;
    z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 14px 22px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--sm { padding: 10px 16px; font-size: 15px; border-radius: 12px; }
.btn--lg { padding: 17px 30px; font-size: 18px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1e293b; }

/* ---------- Шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__logo { font-size: 26px; line-height: 1; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-weight: 700; font-size: 17px; }
.brand__sub { font-size: 12px; color: var(--muted); }
.nav__links {
    display: flex;
    gap: 26px;
    margin-left: auto;
}
.nav__links a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--blue); text-decoration: none; }
.nav__cta { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 460px at 85% -10%, rgba(249, 115, 22, .12), transparent 60%),
        radial-gradient(900px 500px at 0% 0%, rgba(37, 99, 235, .12), transparent 55%),
        var(--bg-alt);
    padding: 72px 0 84px;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, .1);
    color: var(--blue-dark);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.hero__title {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 20px;
}
.hero__title .accent {
    background: linear-gradient(120deg, var(--blue), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead {
    font-size: 19px;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__trust {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-wrap: wrap;
    gap: 8px 22px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}

/* ---------- Mockup (UI приложения) ---------- */
.hero__mockup { display: flex; justify-content: center; }
.mockup {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(.4deg);
}
.mockup__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.mockup__dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mockup__url { margin-left: 10px; font-size: 12px; color: var(--muted); }
.mockup__body { padding: 18px 18px 20px; }
.mockup__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
    font-size: 16px; color: var(--ink);
}
.mockup__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 9px;
    background: #fff;
}
.mockup__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.mockup__qty { font-size: 13px; color: var(--muted); min-width: 56px; text-align: right; }
.mockup__total {
    display: flex; justify-content: space-between; align-items: center;
    margin: 14px 2px 16px;
    font-size: 14px; color: var(--text);
}
.mockup__sum { font-size: 18px; font-weight: 800; color: var(--ink); }
.mockup__actions { display: flex; gap: 10px; }
.mockup__btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 11px;
    border-radius: 11px;
    border: 1px solid var(--line);
    color: var(--text);
    background: #fff;
}
.mockup__btn--accent { background: var(--blue); color: #fff; border-color: var(--blue); }

.chip {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.chip--blue { background: rgba(37, 99, 235, .12); color: var(--blue-dark); }
.chip--green { background: rgba(22, 163, 74, .12); color: var(--green); }
.chip--amber { background: rgba(217, 119, 6, .14); color: var(--amber); }
.chip--red { background: rgba(220, 38, 38, .12); color: var(--red); }

/* ---------- Секции ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--cta {
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(37, 99, 235, .1), transparent 60%),
        var(--bg);
}
.section__kicker {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 12px;
}
.section__title {
    text-align: center;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}
.section__intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
    font-size: 17px;
    color: var(--muted);
}

/* ---------- Сетки ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Карточки проблем ---------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card--plain { text-align: left; }
.card__icon { font-size: 38px; margin-bottom: 14px; }
.card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card__text { color: var(--muted); font-size: 15px; }

/* ---------- Возможности ---------- */
.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    font-size: 26px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(249, 115, 22, .12));
    margin-bottom: 16px;
}
.feature__title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature__text { color: var(--muted); font-size: 15.5px; }

/* ---------- Шаги ---------- */
.steps {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    counter-reset: step;
}
.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 22px;
}
.step__num {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 14px;
}
.step__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: 15px; }

/* ---------- Форма ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 44px 40px;
}
.form-card__title { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.form-card__sub { text-align: center; color: var(--muted); margin-bottom: 28px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.input {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
.form__note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item[open] { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq__q {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "+";
    font-size: 24px;
    font-weight: 400;
    color: var(--blue);
    transition: transform .2s ease;
    line-height: 1;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ---------- Опрос ---------- */
.survey { text-align: center; }
.survey__frame { display: flex; justify-content: center; }
.survey__frame iframe { width: 100%; max-width: 650px; min-height: 520px; border: 0; }

/* ---------- Popup ---------- */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}
.popup.active { display: flex; animation: popupFade .25s ease forwards; }
.popup__content {
    background: #fff;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.popup__emoji { font-size: 56px; margin-bottom: 16px; }
.popup__text { font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 26px; }
@keyframes popupFade {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 40px 0 28px;
}
.footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.footer__brand { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.footer__muted { color: var(--muted); font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-link { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-link:hover { color: var(--blue); text-decoration: none; }
.footer__copy { padding-top: 18px; color: var(--muted); font-size: 13px; text-align: center; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__mockup { order: -1; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .nav__links { display: none; }
}

@media (max-width: 600px) {
    .section { padding: 56px 0; }
    .hero { padding: 48px 0 60px; }
    .grid--4, .grid--3, .steps { grid-template-columns: 1fr; }
    .form-card { padding: 32px 22px; }
    .hero__actions .btn { width: 100%; }
    .nav__cta { margin-left: auto; }
}

/* ==========================================================================
   Юридические страницы (license.html / privacy.html) — используют Tailwind CDN
   Ниже сохранены кастомные классы этих страниц.
   ========================================================================== */
.tailwind-config { font-family: var(--font); }

.legal-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}
.legal-back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    transition: color 0.2s;
}
.legal-back-link:hover { color: white; }
.legal-content { line-height: 1.75; color: #334155; }
.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-intro {
    font-size: 0.95rem;
    color: #475569;
    border-left: 4px solid #2563eb;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}
