/* MONO Shop — сайт на системата. Палитра по mono.lod.bg */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --cream: #fafaf5;
  --ink: #252a32;
  --ink-2: #4b535e;
  --muted: #858d97;
  --line: #e5e8ec;
  --forest: #263829;
  --forest-2: #34503a;
  --green: #6f923f;
  --green-dark: #5b7a31;
  --lime: #d4efac;
  --mint: #eaf0df;
  --rose: #f6d9d4;
  --sky: #dce9f2;
  --sand: #f3ead8;
  --navy: #243347;
  --danger: #ab3835;
  --warn: #b7791f;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 30, 20, .04), 0 8px 28px rgba(20, 30, 20, .06);
  --shadow-lg: 0 20px 60px rgba(20, 40, 20, .14);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
h1, h2, h3, h4 { color: var(--forest); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--mint); padding: .1em .4em; border-radius: 6px; color: var(--forest); }
pre { background: #1e2a20; color: #e7f3d6; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: .88rem; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; }
blockquote { margin: 0 0 1em; padding: 10px 16px; border-left: 4px solid var(--lime); background: var(--cream); border-radius: 0 10px 10px 0; color: var(--ink-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.ic { flex-shrink: 0; vertical-align: middle; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 40px; border: 1.5px solid transparent; font: 600 .98rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; box-shadow: 0 8px 22px rgba(111, 146, 63, .35); }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-2); color: #fff; }
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-lime:hover { background: #c6e895; color: var(--forest); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--forest); }
.btn-ghost:hover { border-color: var(--green); color: var(--forest); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-danger { background: #fff; border-color: #ecc9c8; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-xs { padding: 5px 11px; font-size: .8rem; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-plain { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); text-decoration: none; font-weight: 600; font-size: .95rem; }

/* ---------- header ---------- */
.promo-bar { background: var(--green); text-align: center; font-size: .85rem; font-weight: 600; }
.promo-bar a { display: block; color: #fff; text-decoration: none; padding: 8px 16px; }
.promo-bar a:hover { color: var(--lime); }
.site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(10px); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.logo b { color: var(--green); font-weight: 800; }
.logo-light { color: #fff; }
.logo-light b { color: var(--lime); }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 30px; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--mint); color: var(--forest); }
.main-nav .nav-hot { color: var(--green-dark); }
.main-nav .nav-hot::after { content: "ТОП"; font-size: .62rem; background: var(--lime); color: var(--forest); padding: 2px 6px; border-radius: 10px; margin-left: 6px; vertical-align: 2px; font-weight: 800; }
.nav-mobile-extra { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--forest); cursor: pointer; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--forest); font-size: .92rem; padding: 4px 10px 4px 4px; border-radius: 40px; border: 1px solid var(--line); background: #fff; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-drop { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 250px; padding: 8px; z-index: 50; }
.user-drop a, .user-drop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font: 500 .93rem var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
.user-drop a:hover, .user-drop button:hover { background: var(--mint); }
.avatar { --h: 120; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: hsl(var(--h) 45% 88%); color: hsl(var(--h) 40% 25%); font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.avatar-sm { width: 30px; height: 30px; font-size: .75rem; }
.avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; }

/* ---------- flash ---------- */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 13px 18px; border-radius: 12px; font-weight: 500; border: 1px solid; }
.flash-success { background: var(--mint); border-color: #cfe0b5; color: var(--forest); }
.flash-error { background: #fbeceb; border-color: #f0cbc9; color: var(--danger); }
.flash-info { background: var(--sky); border-color: #c5d9e8; color: var(--navy); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-sm { padding: 48px 0; }
.section-white { background: var(--surface); }
.section-cream { background: var(--cream); }
.section-forest { background: var(--forest); color: #dfe8d6; }
.section-forest h2, .section-forest h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 750; color: var(--green-dark); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-forest .eyebrow { color: var(--lime); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.section-forest .lead { color: #c8d6bd; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.hero-main { background: var(--mint); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 60px); position: relative; overflow: hidden; }
.hero-main::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--lime), transparent 70%); opacity: .7; }
.hero-main > * { position: relative; z-index: 1; }
.hero-main h1 { max-width: 15ch; }
.hero-main .lead { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: .9rem; color: var(--ink-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ic { color: var(--green); }
.hero-side { display: grid; gap: 20px; }
.offer-card { background: var(--forest); color: #dfe8d6; border-radius: var(--radius-lg); padding: 30px; position: relative; overflow: hidden; }
.offer-card::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 200px; height: 200px; border-radius: 50%; border: 36px solid rgba(212, 239, 172, .08); }
.offer-card h2 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.offer-badge { display: inline-block; background: var(--lime); color: var(--forest); font-weight: 800; font-size: .75rem; padding: 5px 11px; border-radius: 20px; letter-spacing: .04em; margin-bottom: 14px; }
.offer-price { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 6px; }
.offer-price strong { font-size: 2.6rem; color: #fff; letter-spacing: -.03em; line-height: 1; }
.offer-price s { color: #9fb092; }
.offer-list { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 7px; font-size: .93rem; }
.offer-list li { display: flex; gap: 8px; align-items: flex-start; }
.offer-list .ic { color: var(--lime); margin-top: 3px; }
.download-card { background: var(--rose); border-radius: var(--radius-lg); padding: 26px 30px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.download-card h3 { margin: 0 0 2px; }
.download-card p { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card-soft { border: 0; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--mint); color: var(--forest); margin-bottom: 16px; }
.feature:nth-child(4n+2) .feature-icon { background: var(--rose); }
.feature:nth-child(4n+3) .feature-icon { background: var(--sky); }
.feature:nth-child(4n+4) .feature-icon { background: var(--sand); }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23263829' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/13px no-repeat; }
.section-forest .check-list li::before { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 30px; font-size: .78rem; font-weight: 650; background: var(--mint); color: var(--forest); }
.pill-gray { background: #eef0f3; color: var(--ink-2); }
.pill-warn { background: #fbefd9; color: #7a5413; }
.pill-red { background: #fbeceb; color: var(--danger); }
.pill-blue { background: var(--sky); color: var(--navy); }
.pill-dark { background: var(--forest); color: var(--lime); }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 22px 0; border-top: 2px solid var(--forest); }
.stat strong { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--forest); letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: .93rem; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-rev > :first-child { order: 2; }

/* admin mockup */
.mock { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); font-size: 12px; }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 11px 14px; background: #f1f3f5; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfe3; }
.mock-bar i:first-child { background: #f1a29a; } .mock-bar i:nth-child(2) { background: #f3d18a; } .mock-bar i:nth-child(3) { background: #a9d48b; }
.mock-bar span { margin-left: 12px; background: #fff; border-radius: 6px; padding: 3px 12px; color: var(--muted); flex: 1; max-width: 260px; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.mock-side { background: var(--forest); color: #c8d6bd; padding: 16px 10px; display: grid; align-content: start; gap: 4px; }
.mock-side b { color: #fff; font-size: 14px; padding: 0 8px 12px; }
.mock-side span { padding: 7px 10px; border-radius: 8px; }
.mock-side span.on { background: rgba(212,239,172,.16); color: var(--lime); }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; background: var(--bg); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: #fff; border-radius: 10px; padding: 12px; border: 1px solid var(--line); }
.mock-kpi small { color: var(--muted); display: block; }
.mock-kpi b { font-size: 18px; color: var(--forest); }
.mock-chart { background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 12px; height: 110px; display: flex; align-items: flex-end; gap: 6px; }
.mock-chart i { flex: 1; background: var(--lime); border-radius: 4px 4px 0 0; }
.mock-chart i:nth-child(3n) { background: var(--green); }
.mock-rows { background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.mock-rows div { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.mock-rows div:last-child { border: 0; }
.mock-rows em { font-style: normal; padding: 1px 8px; border-radius: 10px; background: var(--mint); color: var(--forest); }

/* themes */
.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.theme { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.theme-prev { height: 92px; padding: 10px; display: grid; gap: 6px; grid-template-rows: 10px 1fr; }
.theme-prev i { display: block; border-radius: 4px; }
.theme-prev .t-top { background: rgba(0,0,0,.12); width: 60%; }
.theme-prev .t-body { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; }
.theme-prev .t-body i { background: rgba(255,255,255,.6); }
.theme span { display: block; padding: 8px 10px; font-size: .8rem; font-weight: 650; color: var(--forest); }

/* integrations */
.logos { display: flex; flex-wrap: wrap; gap: 12px; }
.logo-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 10px 18px; font-weight: 650; color: var(--forest); font-size: .93rem; }
.logo-chip .ic { color: var(--green); }

/* pricing */
.billing-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 4px; margin-bottom: 32px; }
.billing-toggle button { border: 0; background: none; padding: 9px 20px; border-radius: 30px; font: 600 .92rem var(--font); color: var(--ink-2); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.billing-toggle small { color: var(--green); font-weight: 750; }
.billing-toggle button[aria-pressed="true"] small { color: var(--lime); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.plan-featured { background: var(--forest); color: #dfe8d6; border-color: var(--forest); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.plan-featured h3, .plan-featured .plan-price strong { color: #fff; }
.plan-badge { position: absolute; top: -13px; left: 28px; background: var(--lime); color: var(--forest); font-size: .75rem; font-weight: 800; padding: 5px 12px; border-radius: 20px; letter-spacing: .03em; }
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan-tag { color: var(--muted); font-size: .92rem; min-height: 2.8em; }
.plan-featured .plan-tag { color: #b3c4a6; }
.plan-price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price strong { font-size: 2.6rem; color: var(--forest); letter-spacing: -.03em; line-height: 1; }
.plan-price s { color: var(--muted); }
.plan-price span { color: var(--muted); }
.plan-note { font-size: .85rem; color: var(--green-dark); font-weight: 600; min-height: 1.4em; }
.plan-featured .plan-note { color: var(--lime); }
.plan ul { margin: 22px 0 28px; flex: 1; }
.plan-featured .check-list li::before { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }

/* compare table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream); color: var(--forest); font-weight: 700; font-size: .85rem; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfa; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; color: var(--forest); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 18px; color: var(--ink-2); }

/* CTA */
.cta { background: var(--lime); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; }
.cta h2 { margin-bottom: 10px; }
.cta p { margin: 0; color: var(--forest-2); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* page header */
.page-head { padding: 52px 0 36px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-head .lead { max-width: 64ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--forest); }

/* docs */
.docs-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.docs-toc { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: .9rem; max-height: calc(100vh - 110px); overflow: auto; }
.docs-toc b { display: block; color: var(--forest); padding: 4px 8px 10px; }
.docs-toc a { display: flex; gap: 8px; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.docs-toc a:hover { background: var(--mint); color: var(--forest); }
.docs-toc a span { color: var(--muted); font-variant-numeric: tabular-nums; }
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 2em; padding-top: .4em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { margin: 1em 0 1.5em; }
.doc-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); margin-bottom: 22px; scroll-margin-top: 90px; }
.doc-num { font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--green); }
.note { background: var(--cream); border: 1px solid #ecebd9; border-left: 4px solid var(--green); border-radius: 10px; padding: 14px 18px; margin: 1em 0; font-size: .95rem; }
.note-warn { border-left-color: var(--warn); background: #fdf8ee; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(s); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: var(--lime); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); }
.auth-wrap { width: min(480px, 100% - 32px); margin: 48px auto 80px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field label, .label { font-weight: 600; font-size: .9rem; color: var(--forest); }
.field small { color: var(--muted); font-size: .82rem; }
/* :where() = нулева специфичност, за да могат .filters/.inline-form да го променят */
:where(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=submit], [type=button], [type=range], [type=color]), select, textarea) {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; font: inherit; font-size: .97rem; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858d97' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/18px no-repeat; padding-right: 40px; }
input::placeholder, textarea::placeholder { color: #a7adb5; }
input:hover:not(:focus):not([disabled]), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: #d3d8de; }
input[disabled] { background: var(--bg); color: var(--muted); }
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(111,146,63,.15); }
input[type=file] { font: inherit; font-size: .9rem; padding: 10px; border: 1.5px dashed #cfd5cc; border-radius: 11px; width: 100%; background: var(--cream); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 12px; cursor: pointer; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--green); flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; margin: 0 0 20px; }
legend { font-weight: 700; color: var(--forest); padding: 0 8px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.radio-card { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card:has(input:checked) { border-color: var(--green); background: var(--mint); }
.radio-card b { display: block; color: var(--forest); }
.radio-card span { font-size: .85rem; color: var(--ink-2); }

/* forum */
.forum-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.forum-cats { display: grid; gap: 12px; }
.forum-cat { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.forum-cat:hover { border-color: #cbd8b9; box-shadow: var(--shadow); }
.forum-cat-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; font-size: 1.4rem; }
.forum-cat h3 { margin: 0 0 2px; font-size: 1.05rem; }
.forum-cat p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.forum-cat-stats { text-align: right; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.forum-cat-stats b { color: var(--forest); font-size: 1rem; }
.topic-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.topic-row { display: grid; grid-template-columns: 40px 1fr 90px 150px; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: #fbfcfa; }
.topic-title { font-weight: 650; color: var(--forest); text-decoration: none; display: block; line-height: 1.35; }
.topic-title:hover { color: var(--green-dark); }
.topic-meta { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.topic-count { text-align: center; font-size: .8rem; color: var(--muted); }
.topic-count b { display: block; font-size: 1.05rem; color: var(--forest); }
.topic-last { font-size: .8rem; color: var(--muted); }
.post { display: grid; grid-template-columns: 170px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; scroll-margin-top: 90px; }
.post-admin { border-color: #c3d6a6; }
.post-answer { border: 2px solid var(--green); }
.post-author { padding: 20px 16px; background: var(--cream); border-right: 1px solid var(--line); text-align: center; font-size: .85rem; }
.post-author a { font-weight: 700; color: var(--forest); text-decoration: none; display: block; margin-top: 8px; word-break: break-word; }
.post-author .pill { margin-top: 6px; }
.post-admin .post-author { background: var(--mint); }
.post-body { padding: 20px 24px; min-width: 0; }
.post-head { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.post-content { overflow-wrap: anywhere; }
.post-content > :last-child { margin-bottom: 0; }
.post-content h3, .post-content h4 { margin-top: 1em; }
.post-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.post-tools form { display: inline; }
.post-tools button, .post-tools a { background: none; border: 0; color: var(--muted); font: 500 .82rem var(--font); cursor: pointer; text-decoration: none; padding: 4px 8px; border-radius: 6px; display: inline-flex; gap: 4px; align-items: center; }
.post-tools button:hover, .post-tools a:hover { background: var(--mint); color: var(--forest); }
.answer-flag { display: inline-flex; gap: 6px; align-items: center; background: var(--green); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.sidebar-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.sidebar-box h3 { font-size: 1rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.editor-help { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.editor-help code { font-size: .78rem; }

/* marketplace */
.market-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 15px; border-radius: 30px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 600; }
.chip:hover { border-color: var(--green); color: var(--forest); }
.chip[aria-current] { background: var(--forest); border-color: var(--forest); color: #fff; }
.search-form { display: flex; gap: 8px; }
.search-form input { min-width: 240px; border-radius: 40px; }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.module-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.module-cover { height: 120px; display: grid; place-items: center; position: relative; --h: 100; background: linear-gradient(135deg, hsl(var(--h) 45% 90%), hsl(calc(var(--h) + 40) 45% 82%)); color: hsl(var(--h) 35% 25%); }
.module-cover .ic { width: 44px; height: 44px; }
.module-cover .pill { position: absolute; top: 12px; right: 12px; }
.module-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.module-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.module-body p { font-size: .9rem; color: var(--ink-2); flex: 1; margin-bottom: 14px; }
.module-foot { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.module-price { font-weight: 800; color: var(--forest); font-size: 1.05rem; }
.module-price.free { color: var(--green); }
.stars { color: #d9a514; letter-spacing: 1px; }
.module-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.buy-box { position: sticky; top: 92px; }
.buy-box .module-price { font-size: 2rem; display: block; margin-bottom: 14px; }
.meta-list { list-style: none; padding: 0; margin: 18px 0 0; font-size: .9rem; display: grid; gap: 8px; }
.meta-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.meta-list span { color: var(--muted); }
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review:last-child { border: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 1.6rem; color: #d6dbe0; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #d9a514; }

/* account */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; padding: 36px 0 80px; }
.account-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 92px; }
.account-nav a { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .93rem; }
.account-nav a:hover { background: var(--mint); color: var(--forest); }
.account-nav a[aria-current] { background: var(--forest); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi small { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi b { font-size: 1.6rem; color: var(--forest); letter-spacing: -.02em; }
.kpi-accent { background: var(--forest); border-color: var(--forest); }
.kpi-accent small { color: #b3c4a6; }
.kpi-accent b { color: #fff; }
.profile-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* pager */
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.pager a { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.pager a:hover { border-color: var(--green); }
.pager-cur { background: var(--forest); color: #fff; }
.pager-gap { color: var(--muted); }

/* download */
.release-hero { background: var(--forest); color: #dfe8d6; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.release-hero h2 { color: #fff; }
.dl-buttons { display: grid; gap: 12px; }
.dl-btn { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 18px; color: #fff; text-decoration: none; transition: background .15s; }
.dl-btn:hover { background: rgba(255,255,255,.13); color: #fff; }
.dl-btn.primary { background: var(--lime); color: var(--forest); border-color: var(--lime); }
.dl-btn.primary:hover { background: #c6e895; color: var(--forest); }
.dl-btn b { display: block; }
.dl-btn small { opacity: .75; font-size: .82rem; }
.hash { font-family: var(--mono); font-size: .72rem; word-break: break-all; color: var(--muted); }

/* footer */
.site-footer { background: #1d2b20; color: #aebda3; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid a:not(.btn):not(.logo) { display: block; color: #aebda3; text-decoration: none; padding: 4px 0; font-size: .92rem; }
.footer-grid a:not(.btn):not(.logo):hover { color: var(--lime); }
.footer-brand p { font-size: .92rem; margin: 16px 0 20px; max-width: 36ch; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; font-size: .82rem; color: #8a9a80; }
.footer-legal p { margin: 0 0 6px; }
.footer-legal a { color: #aebda3; }

/* cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; gap: 14px; align-items: center; z-index: 60; font-size: .88rem; }
.cookie p { margin: 0; }
.cookie .ic { color: var(--green); }

/* empty / error */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: #fff; border: 1px dashed #d5dbd0; border-radius: var(--radius); }
.empty .ic { color: var(--green); margin-bottom: 8px; }
.error-page { text-align: center; padding: 100px 0 120px; }
.error-page .code { font-size: 6rem; font-weight: 800; color: var(--lime); line-height: 1; -webkit-text-stroke: 2px var(--forest); }

/* admin */
.admin-body { background: #f1f3f0; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--forest); color: #c8d6bd; padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .logo { color: #fff; padding: 4px 10px 22px; font-size: 1.1rem; }
.admin-side .logo b { color: var(--lime); }
.admin-side a.nav { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 9px; color: #c8d6bd; text-decoration: none; font-size: .92rem; font-weight: 550; }
.admin-side a.nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side a.nav[aria-current] { background: rgba(212,239,172,.16); color: var(--lime); }
.admin-side .count { background: var(--lime); color: var(--forest); border-radius: 20px; font-size: .72rem; font-weight: 800; padding: 1px 8px; }
.admin-side h4 { color: #7f9473; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; margin: 18px 12px 6px; }
.admin-main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.7rem; margin: 0; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.admin-card h2 { font-size: 1.15rem; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; padding: 7px 10px; font-size: .85rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters input, .filters select { width: auto; padding: 8px 12px; font-size: .9rem; }
.admin-toggle { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .themes { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .main-nav a { padding: 8px 10px; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .release-hero, .module-layout, .forum-layout, .docs-layout, .cta { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 0; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan-featured { transform: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-toc, .buy-box, .account-nav { position: static; max-height: none; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { display: flex; overflow-x: auto; gap: 4px; }
  .account-nav a { white-space: nowrap; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-mobile-extra { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; display: none; }
  .admin-side.open { display: block; }
  .admin-toggle { display: inline-flex; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .topic-row { grid-template-columns: 1fr; gap: 6px; }
  .topic-row > :first-child, .topic-count { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { display: flex; gap: 10px; align-items: center; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .post-author a { margin: 0; }
  .post-author .avatar { width: 32px; height: 32px; font-size: .75rem; }
  .post-author .pill { margin: 0; }
  .post-body { padding: 16px; }
  .forum-cat { grid-template-columns: 44px 1fr; }
  .forum-cat-ic { width: 44px; height: 44px; }
  .forum-cat-stats { display: none; }
  .search-form, .search-form input { min-width: 0; width: 100%; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .cookie { flex-direction: column; align-items: stretch; }
  .header-row { gap: 10px; }
}
@media (max-width: 420px) {
  .hide-xs { display: none !important; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .promo-bar, .cookie, .docs-toc { display: none !important; }
  .docs-layout { grid-template-columns: 1fr; }
}

/* Grid колоните да не се разширяват от дълго съдържание */
.docs-layout > *, .forum-layout > *, .module-layout > *, .account-layout > *, .split > *, .hero-grid > * { min-width: 0; }
.prose code, .note code, td code { overflow-wrap: anywhere; }

/* ---------- auth (вход / регистрация) ---------- */
.auth-page { padding: clamp(24px, 5vw, 56px) 16px clamp(48px, 8vw, 88px); background: radial-gradient(900px 400px at 15% 0%, var(--mint), transparent 70%), var(--bg); }
.auth-split { display: grid; grid-template-columns: 0.9fr 1.1fr; max-width: 980px; margin: 0 auto; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px rgba(20, 40, 20, .12); border: 1px solid var(--line); }
.auth-split-wide { max-width: 1120px; grid-template-columns: 0.75fr 1.25fr; }
.auth-split > * { min-width: 0; }
.auth-side { background: var(--forest); color: #c8d6bd; padding: 40px 36px; display: flex; flex-direction: column; gap: 28px; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 44px solid rgba(212, 239, 172, .07); }
.auth-side-body { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.auth-side h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 10px; }
.auth-side p { color: #b3c4a6; margin-bottom: 26px; }
.auth-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.auth-perks li { display: flex; gap: 14px; align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.auth-perks li > span { width: 38px; height: 38px; border-radius: 11px; background: rgba(212, 239, 172, .12); color: var(--lime); display: grid; place-items: center; flex-shrink: 0; }
.auth-perks b { display: block; color: #fff; font-size: .95rem; }
.auth-side-foot { font-size: .8rem; color: #8ea383; margin: 0; display: flex; gap: 6px; align-items: center; position: relative; z-index: 1; }
.auth-main { padding: clamp(28px, 5vw, 52px); }
.auth-main h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 6px; }
.auth-main > .muted { margin-bottom: 28px; }
.auth-form .field { margin-bottom: 18px; }
.auth-form .btn-lg { margin-top: 6px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.label-row a { text-decoration: none; font-weight: 600; }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9aa3ad; pointer-events: none; transition: color .15s; }
.input-icon input { padding-left: 44px !important; height: 50px; background: var(--bg); border-color: transparent; }
.input-icon input:focus { background: #fff; }
.input-icon:focus-within > .ic { color: var(--green); }
.input-icon .pass-toggle ~ .ic, .input-icon:has(.pass-toggle) input { padding-right: 84px !important; }
.pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: #fff; color: var(--forest); font: 600 .78rem var(--font); padding: 6px 10px; border-radius: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.pass-toggle:hover { background: var(--mint); }
.auth-form > .field > input:not([type=checkbox]) { height: 50px; background: var(--bg); border-color: transparent; }
.auth-form > .field > input:focus, .auth-form .form-row .field > input:focus { background: #fff; border-color: var(--green); }
.auth-form .form-row .field > input { height: 50px; background: var(--bg); border-color: transparent; }
@media (max-width: 820px) {
  .auth-split, .auth-split-wide { grid-template-columns: 1fr; }
  .auth-side { padding: 26px 24px; gap: 14px; }
  .auth-side-body p, .auth-perks, .auth-side-foot { display: none; }
  .auth-side h2 { font-size: 1.3rem; margin: 0; }
}

/* ---------- админ: полета ---------- */
.admin-main :where(input:not([type=checkbox], [type=radio], [type=file], [type=hidden]), select) { height: 44px; padding-top: 9px; padding-bottom: 9px; }
.admin-main .inline-form :where(input, select), .admin-main .filters :where(input, select) { height: 38px; }
.admin-main textarea { background: #fff; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 38px !important; }
.input-suffix > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.toggles { display: grid; gap: 14px; }
.toggle { display: flex; gap: 12px; align-items: center; cursor: pointer; font-weight: 600; color: var(--forest); font-size: .93rem; }
.toggle small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { width: 42px; height: 24px; border-radius: 20px; background: #d6dbd2; position: relative; flex-shrink: 0; transition: background .15s; }
.toggle-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input:checked + .toggle-ui { background: var(--green); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { box-shadow: 0 0 0 4px rgba(111,146,63,.25); }

/* ---------- админ: хостинг планове ---------- */
.plan-edits { display: grid; gap: 14px; }
.plan-edit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan-edit[open] { box-shadow: var(--shadow); border-color: #d3dccb; }
.plan-edit > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; flex-wrap: wrap; }
.plan-edit > summary::-webkit-details-marker { display: none; }
.plan-edit > summary:hover { background: #fbfcfa; }
.plan-edit-title { display: flex; flex-direction: column; gap: 2px; }
.plan-edit-title b { font-size: 1.08rem; color: var(--forest); }
.plan-edit-title .muted { font-size: .88rem; }
.plan-edit-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-edit-chevron { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); position: relative; margin-left: 6px; }
.plan-edit-chevron::after { content: ""; position: absolute; left: 10px; top: 8px; width: 7px; height: 7px; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(45deg); transition: transform .15s; }
.plan-edit[open] .plan-edit-chevron::after { transform: translate(0, 4px) rotate(-135deg); }
.plan-edit-body { border-top: 1px solid var(--line); padding: 22px; }
.plan-edit-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; }
.plan-edit-grid > * { min-width: 0; }
.plan-edit-h { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-dark); margin: 4px 0 12px; }
.plan-edit-h:not(:first-child) { margin-top: 18px; }
.plan-edit-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
@media (max-width: 900px) { .plan-edit-grid { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- бутон „Подкрепи“ и кредити ---------- */
.btn-support { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 40px; border: 1.5px solid #f0c9c3; background: #fff5f3; color: #b4473a; font-weight: 700; font-size: .88rem; text-decoration: none; transition: background .15s, transform .15s; }
.btn-support:hover { background: #fde6e2; color: #9b3427; transform: translateY(-1px); }
.btn-support .ic { animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } 36% { transform: scale(1.14); } 48% { transform: scale(1); } }
.footer-legal .credits a { color: var(--lime); text-decoration: none; font-weight: 600; }
.footer-legal .credits a:hover { text-decoration: underline; }
.footer-legal .credits span { color: #4d5f48; margin: 0 4px; }

/* ---------- подкрепа ---------- */
.support-head { background: radial-gradient(700px 360px at 85% 20%, #fde6e2, transparent 70%), radial-gradient(700px 400px at 0% 0%, var(--mint), transparent 70%); padding-bottom: 64px; }
.donate-card { box-shadow: var(--shadow-lg); }
.donate-card h2 .ic { color: #c0503f; }
.donate-amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0 18px; }
.donate-amount { position: relative; cursor: pointer; }
.donate-amount input { position: absolute; opacity: 0; }
.donate-amount span { display: grid; place-items: center; height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 1.1rem; color: var(--forest); transition: all .15s; }
.donate-amount:hover span { border-color: var(--green); }
.donate-amount input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--lime); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(38,56,41,.25); }
.donate-amount input:focus-visible + span { box-shadow: 0 0 0 4px rgba(111,146,63,.3); }
.supporters { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.supporter { display: flex; gap: 12px; background: var(--cream); border: 1px solid #ecebd9; border-radius: var(--radius); padding: 16px; }
.supporter b { display: block; color: var(--forest); }
@media (max-width: 480px) { .donate-amounts { grid-template-columns: repeat(3, 1fr); } }

/* ---------- начална страница: hero ---------- */
.hero2 { position: relative; overflow: hidden; background: linear-gradient(160deg, #1b2a1e 0%, #263829 45%, #2f4a34 100%); color: #cbd8c0; padding: clamp(48px, 7vw, 96px) 0 clamp(120px, 12vw, 150px); }
.hero2::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(212,239,172,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(212,239,172,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero2-glow { position: absolute; width: 640px; height: 640px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(212,239,172,.28), transparent 65%); filter: blur(10px); animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.12); } }
.hero2-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero2-grid > * { min-width: 0; }
.hero2-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 40px; background: rgba(255,255,255,.07); border: 1px solid rgba(212,239,172,.2); color: #dfe8d6; text-decoration: none; font-size: .85rem; font-weight: 600; margin-bottom: 26px; transition: background .15s; }
.hero2-pill:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero2-pill span { background: var(--lime); color: var(--forest); padding: 3px 10px; border-radius: 30px; font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.hero2 h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 22px; }
.hero2-accent { background: linear-gradient(90deg, #d4efac, #a6d36a 60%, #e7f6cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2-lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: #b9c8ae; max-width: 56ch; margin-bottom: 30px; }
.hero2-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero2-actions .btn-lime { box-shadow: 0 10px 30px rgba(212,239,172,.25); }
.hero2-actions .btn-lg { padding: 15px 22px; font-size: 1rem; }
.hero2-actions .btn-text-light { padding-left: 8px; padding-right: 8px; }
.btn-text-light { color: #dfe8d6; padding-left: 12px; padding-right: 12px; }
.btn-text-light:hover { color: var(--lime); }
.hero2-trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: #a9baa0; }
.hero2-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero2-trust .ic { color: var(--lime); }

.hero2-visual { position: relative; padding: 30px 10px 30px 30px; }
.shop-mock { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.4); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; font-size: 11px; color: var(--ink); animation: mockIn .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mockIn { from { opacity: 0; transform: perspective(1400px) rotateY(-18deg) rotateX(6deg) translateY(30px); } }
.shop-mock-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.shop-mock-head b { font-size: 13px; color: var(--forest); }
.shop-mock-head em { flex: 1; font-style: normal; color: var(--muted); background: var(--bg); border-radius: 20px; padding: 5px 12px; }
.shop-mock-cart { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.shop-mock-banner { margin: 14px 16px; border-radius: 14px; background: var(--mint); padding: 18px; display: flex; justify-content: space-between; align-items: center; min-height: 120px; position: relative; overflow: hidden; }
.shop-mock-banner small { display: block; font-size: 8px; letter-spacing: .12em; color: var(--forest); font-weight: 700; }
.shop-mock-banner strong { display: block; font-size: 18px; line-height: 1.15; color: var(--forest); margin: 6px 0 10px; }
.shop-mock-banner i { font-style: normal; background: var(--green); color: #fff; padding: 5px 10px; border-radius: 6px; font-weight: 700; font-size: 10px; }
.shop-mock-fruit { width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #a6d36a, #5b8a2a 70%); box-shadow: 30px 14px 0 -14px #7fb33d, -10px 30px 0 -20px #6f923f; flex-shrink: 0; }
.shop-mock-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 16px 18px; }
.shop-mock-product span { display: block; height: 64px; border-radius: 10px; margin-bottom: 6px; }
.shop-mock-product small { display: block; color: var(--muted); font-size: 9.5px; }
.shop-mock-product b { color: var(--forest); font-size: 11px; }
.float-card { position: absolute; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: 0 18px 40px rgba(0,0,0,.28); font-size: 12px; color: var(--ink); white-space: nowrap; animation: floatY 6s ease-in-out infinite; }
.float-card b { display: block; color: var(--forest); font-size: 12.5px; }
.float-card small { color: var(--muted); }
.fc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.fc-green { background: var(--mint); color: var(--green-dark); }
.fc-blue { background: var(--sky); color: var(--navy); }
.fc-lime { background: var(--lime); color: var(--forest); }
.fc-1 { left: -6px; top: 4px; animation-delay: 0s; }
.fc-2 { right: -10px; top: 46%; animation-delay: -2s; }
.fc-3 { left: 12%; bottom: -4px; animation-delay: -4s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* лента с офертата под hero */
.offer-band { position: relative; z-index: 2; margin-top: clamp(-96px, -8vw, -70px); padding-bottom: 20px; }
.offer-band-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 18px; }
.offer-band-grid > * { min-width: 0; }
.offer-wide { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.5fr 1fr; overflow: hidden; border: 1px solid var(--line); }
.offer-wide-main { padding: 28px 30px; }
.offer-wide-main h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0 0 6px; }
.offer-wide-main p { color: var(--ink-2); margin-bottom: 16px; font-size: .95rem; }
.offer-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.offer-chips li { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; font-weight: 600; color: var(--forest); background: var(--mint); padding: 6px 11px; border-radius: 30px; }
.offer-wide-price { background: var(--forest); color: #b9c8ae; padding: 26px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; }
.offer-wide-price s { color: #8ea383; font-size: .95rem; }
.offer-wide-price strong { font-size: clamp(2.2rem, 3.2vw, 2.8rem); color: #fff; letter-spacing: -.03em; line-height: 1; }
.offer-wide-price > span { margin-bottom: 14px; font-size: .9rem; }
.offer-wide-price .btn { background: var(--lime); color: var(--forest); }
.offer-wide-price .btn:hover { background: #c6e895; color: var(--forest); box-shadow: none; }
.offer-wide-price a.small { color: #b9c8ae; margin-top: 8px; align-self: center; }
.offer-mini { border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.offer-mini h3 { margin: 12px 0 4px; }
.offer-mini p { font-size: .9rem; color: var(--ink-2); flex: 1; }
.offer-mini-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; }
.offer-mini-dl { background: #fff; }
.offer-mini-dl .offer-mini-ic { background: var(--mint); color: var(--forest); }
.offer-mini-love { background: linear-gradient(160deg, #fff5f3, #fde3de); border-color: #f4d3cd; }
.offer-mini-love .offer-mini-ic { color: #c0503f; }
.offer-mini-love .offer-mini-ic .ic { animation: beat 1.8s ease-in-out infinite; }
.btn-love { background: #c0503f; color: #fff; }
.btn-love:hover { background: #a63f30; color: #fff; }

@media (max-width: 1100px) {
  .offer-band-grid { grid-template-columns: 1fr 1fr; }
  .offer-wide { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero2-grid { grid-template-columns: 1fr; }
  .hero2-visual { max-width: 560px; margin: 10px auto 0; width: 100%; }
  .shop-mock { transform: none; animation: none; }
}
@media (max-width: 640px) {
  .offer-band-grid, .offer-wide { grid-template-columns: 1fr; }
  .hero2-visual { padding: 24px 0 30px; }
  .float-card { font-size: 11px; padding: 8px 10px 8px 8px; }
  .fc-1 { left: -4px; top: 0; } .fc-2 { right: -4px; } .fc-3 { left: 8px; bottom: 0; }
  .shop-mock-products { grid-template-columns: repeat(2, 1fr); }
  .shop-mock-product:nth-child(n+3) { display: none; }
  .hero2-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card, .hero2-glow, .btn-support .ic, .offer-mini-love .ic { animation: none !important; }
}
