/* NavloPro — маркетингов сайт. Цветовете следват приложението (shadcn-vue тема). */
:root {
    --primary: hsl(179 41% 45%);
    --primary-dark: hsl(179 41% 38%);
    --primary-soft: hsl(179 41% 45% / 0.1);
    --on-primary: #fff;
    --bg: #fff;
    --bg-muted: hsl(0 0% 96.1%);
    --card: #fff;
    --text: hsl(0 0% 3.9%);
    --text-muted: hsl(0 0% 40%);
    --border: hsl(0 0% 89.8%);
    --radius: 12px;
    --shadow: 0 1px 2px hsl(0 0% 0% / 0.04), 0 8px 24px hsl(0 0% 0% / 0.05);
    --max: 1120px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-dark: hsl(179 41% 52%);
        --primary-soft: hsl(179 41% 45% / 0.18);
        --bg: hsl(0 0% 15%);
        --bg-muted: hsl(0 0% 19%);
        --card: hsl(0 0% 17.5%);
        --text: hsl(0 0% 98%);
        --text-muted: hsl(0 0% 70%);
        --border: hsl(0 0% 26%);
        --shadow: none;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 40em; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* Бутони */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 44px; padding: 10px 20px;
    border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: hsl(179 41% 40%); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-muted); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid hsl(179 41% 45% / .5); outline-offset: 2px; }

/* Хедър */
.header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: block; flex: none; }
.logo img { height: 28px; width: auto; }
.nav { display: none; gap: 4px; margin-left: 16px; }
.nav a { color: var(--text-muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-muted); }
.header-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.header-cta .login { display: none; }
.header-cta .btn { min-height: 40px; padding: 8px 14px; font-size: .95rem; }
.menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
    background: transparent; color: var(--text); cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--border); padding: 8px 16px 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 4px; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: 0; }
@media (max-width: 380px) { .logo img { height: 24px; } }
@media (min-width: 900px) {
    .nav { display: flex; }
    .header-cta .login { display: inline-flex; }
    .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* Секции */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-muted { background: var(--bg-muted); }
.eyebrow { display: inline-block; color: var(--primary-dark); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-soft); color: var(--primary-dark);
    padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; margin-bottom: 20px;
}

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 80px 0 96px; } .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.hero h1 .accent { color: var(--primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .hero-actions .btn { flex: 0 0 auto; } }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-muted); font-size: .95rem; }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks svg { color: var(--primary); flex: none; }

/* Макет на курс в hero */
.trip {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow); padding: 20px; font-size: .95rem;
}
.trip-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.trip-route { font-weight: 600; font-size: 1.05rem; }
.trip-meta { color: var(--text-muted); font-size: .85rem; }
.pill { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); white-space: nowrap; }
.trip-rows { border-top: 1px solid var(--border); }
.trip-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.trip-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }
.trip-row.minus span:last-child { color: var(--text-muted); }
.trip-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.trip-total strong { font-size: 1.6rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.trip-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.stat { background: var(--bg-muted); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.stat small { color: var(--text-muted); }

/* Карти и решетки */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 20px; } }
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-muted); }
.icon {
    width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
    background: var(--primary-soft); color: var(--primary-dark); margin-bottom: 16px;
}
.section-head { margin-bottom: 40px; }
.section-head.center { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Болка → решение */
.pain { display: grid; gap: 12px; }
.pain-item { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
@media (min-width: 900px) { .pain { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.pain-item .before { color: var(--text-muted); text-decoration: line-through; text-decoration-color: hsl(0 0% 60% / .6); }
.pain-item .after { font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.pain-item .after svg { color: var(--primary); flex: none; margin-top: 4px; }

/* Стъпки */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 10px;
    background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700;
}

/* Цени */
.toggle {
    display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-muted); border: 1px solid var(--border);
    margin: 0 auto 32px;
}
.toggle button {
    font: inherit; font-weight: 600; font-size: .95rem; border: 0; border-radius: 9px; padding: 8px 16px; min-height: 40px;
    background: transparent; color: var(--text-muted); cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px hsl(0 0% 0% / .1); }
.toggle .save { color: var(--primary-dark); font-size: .8rem; margin-left: 4px; }
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--primary); }
.plan .tag {
    position: absolute; top: -12px; left: 24px; background: var(--primary); color: var(--on-primary);
    font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .for { color: var(--text-muted); font-size: .95rem; margin-bottom: 16px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price .amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--text-muted); }
.price-note { color: var(--text-muted); font-size: .9rem; min-height: 1.5em; margin-bottom: 20px; }
.limits { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.limits span { background: var(--bg-muted); border-radius: 8px; padding: 4px 10px; font-size: .9rem; font-weight: 500; }
.features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features svg { color: var(--primary); flex: none; margin-top: 4px; }
.features .inherit { color: var(--text-muted); font-size: .95rem; }
.plan .btn { margin-top: auto; }
.price-footnote { margin-top: 24px; color: var(--text-muted); font-size: .95rem; }
[data-yearly] { display: none; }
.is-yearly [data-yearly] { display: inline; }
.is-yearly [data-monthly] { display: none; }

/* Таблица за сравнение */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .95rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-weight: 600; background: var(--bg-muted); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--primary); font-weight: 700; }
.compare .no { color: var(--text-muted); }

/* ЧЗВ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg);
    transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--text-muted); padding-bottom: 8px; }

/* Финален призив */
.cta-box {
    background: var(--primary); color: var(--on-primary); border-radius: 20px; padding: 40px 24px; text-align: center;
}
.cta-box h2 { color: var(--on-primary); }
.cta-box p { opacity: .92; max-width: 34em; margin-left: auto; margin-right: auto; }
.cta-box .btn { background: #fff; color: hsl(179 41% 28%); margin-top: 8px; }
.cta-box .btn:hover { background: hsl(0 0% 96%); }
.cta-box small { display: block; margin-top: 12px; opacity: .85; }
@media (min-width: 900px) { .cta-box { padding: 64px 48px; } }

/* Контакти */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list a { font-weight: 600; font-size: 1.1rem; text-decoration: none; }

/* Правни страници */
.page-head { padding: 48px 0 24px; }
@media (min-width: 900px) { .page-head { padding: 72px 0 32px; } }
.prose { max-width: 760px; padding-bottom: 64px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.notice { border: 1px dashed var(--primary); background: var(--primary-soft); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; font-size: .95rem; }

/* Футър */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer h4 { margin: 0 0 12px; font-size: .95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .logo img { height: 24px; margin-bottom: 12px; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.header-cta .btn { white-space: nowrap; }
@media (max-width: 419px) { .hide-xs { display: none; } .logo img { height: 24px; } }
@media (max-width: 639px) {
    .compare { min-width: 0; font-size: .875rem; }
    .compare th, .compare td { padding: 10px 8px; }
    .compare th:first-child, .compare td:first-child { padding-left: 12px; }
}
.compare td:not(:first-child), .compare th { white-space: nowrap; }
