/* =========================================================
   Vinnofit public-site chrome — shared by Django pages and the static website.
   Header pill · desktop menu · grid menu sheet · search sheet · bottom bar · footer
   Uses the color tokens from app.css (light / dark), RTL / LTR aware.
   ========================================================= */
:root { --vs-pill: #ffffff; --vs-pill-ink: #2a3340; --vs-pill-soft: #eef1f4; --vs-lime: #d0f252; --vs-ink: #1a2332; --vs-green: #7fad39; }
[data-theme="light"] { --vs-pill-soft: #eef1f4; }

/* ---------- Header pill ---------- */
.vs-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 1000; padding: 0 16px; pointer-events: none; }
.vs-bar {
  pointer-events: auto; max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--vs-pill); color: var(--vs-pill-ink); padding: 10px 14px 10px 24px; border-radius: 50px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
[dir="rtl"] .vs-bar { padding: 10px 24px 10px 14px; }
[data-theme="light"] .vs-bar { box-shadow: 0 6px 24px rgba(17, 24, 35, .10); border: 1px solid rgba(17, 24, 35, .06); }
.vs-logo { display: flex; align-items: center; height: 28px; flex-shrink: 0; }
.vs-logo img { height: 100%; width: auto; display: block; }
.vs-logo:hover { text-decoration: none; }

.vs-nav { display: flex; list-style: none; align-items: center; gap: 18px; flex: 1 1 auto; justify-content: center; min-width: 0; margin: 0; padding: 0; }
.vs-nav > li { position: relative; }
.vs-nav a.vs-link, .vs-nav button.vs-link {
  display: flex; align-items: center; gap: 5px; padding: 8px 0; color: #333; font-weight: 600; font-size: 14px; white-space: nowrap;
  background: none; border: 0; cursor: pointer; text-decoration: none; font-family: inherit;
}
.vs-nav .vs-link:hover { color: var(--vs-green); }
.vs-caret { font-size: 9px; transition: transform .25s; }
.vs-drop {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 290px; list-style: none; margin: 10px 0 0; padding: 8px 0;
  background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .14); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s;
}
.vs-drop a { display: block; padding: 10px 18px; color: #333; font-size: 14px; text-decoration: none; }
.vs-drop a:hover { background: #f4f7ec; }
.vs-nav li:hover > .vs-drop, .vs-nav li:focus-within > .vs-drop { opacity: 1; visibility: visible; transform: none; }
.vs-nav li:hover .vs-caret { transform: rotate(180deg); }

.vs-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.vs-round {
  width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: var(--vs-pill-soft); color: #333; text-decoration: none; flex-shrink: 0;
}
.vs-round:hover { background: #e2e7ec; text-decoration: none; }
.vs-round svg { width: 20px; height: 20px; }
.vs-round.vs-menu { background: var(--vs-lime); color: var(--vs-ink); }
.vs-round.vs-user.is-logged { background: var(--vs-lime); color: var(--vs-ink); }
[data-theme="dark"] .vs-round .i-moon, [data-theme="light"] .vs-round .i-sun { display: none; }
.vs-lang { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d7dbe0; border-radius: 30px; padding: 7px 14px; font-weight: 700; font-size: 13px; line-height: 1; color: #333; }
.vs-lang a { color: inherit; opacity: .45; text-decoration: none; }
.vs-lang a.on { opacity: 1; color: var(--vs-ink); }
.vs-signin { background: var(--vs-lime); color: var(--vs-ink); padding: 10px 22px; border-radius: 30px; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; }
.vs-signin:hover { background: #bce047; text-decoration: none; }
.vs-signin.user-panel-btn { background: var(--vs-green); color: #fff; }
.vs-mobile { display: none; align-items: center; gap: 8px; }

/* ---------- Sheets (menu + search) ---------- */
body.vs-lock { overflow: hidden; }
.vs-sheet { position: fixed; inset: 0; z-index: 3000; display: none; background: var(--overlay); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vs-sheet.open { display: block; animation: vsFade .2s ease; }
.vs-panel {
  position: absolute; top: 10px; left: 10px; right: 10px; margin: 0 auto; max-width: 520px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px);
  overflow-y: auto; background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--text); border: 1px solid var(--line);
  border-radius: 24px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); animation: vsDrop .25s ease;
}
.vs-sheet-search .vs-panel { max-width: 720px; }
@keyframes vsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vsDrop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.vs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.vs-title { font-size: 18px; font-weight: 800; }
.vs-close { width: 46px; height: 46px; border-radius: 14px; border: 0; background: #fff; color: var(--vs-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
[data-theme="light"] .vs-close { background: var(--surface-3); }
.vs-close svg { width: 22px; height: 22px; }
.vs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vs-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 94px; padding: 14px 6px;
  border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 700;
  text-align: center; line-height: 1.4; text-decoration: none; transition: border-color .2s;
}
.vs-tile:hover { border-color: var(--accent-line); text-decoration: none; }
.vs-tile.on { background: var(--accent-soft); border-color: var(--accent-line); }
.vs-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
[data-theme="light"] .vs-ico { color: var(--link); }
.vs-ico svg { width: 21px; height: 21px; }
.vs-ai { position: absolute; top: 7px; inset-inline-start: 8px; font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 800; color: var(--vs-ink); background: var(--vs-lime); border-radius: 10px; padding: 1px 6px; }
.vs-langs { display: flex; gap: 8px; margin: 14px 0; }
.vs-langs a { flex: 1; text-align: center; padding: 11px; border-radius: 14px; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 700; font-size: 14px; text-decoration: none; }
.vs-langs a.on { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }
.vs-row { display: flex; gap: 8px; margin-bottom: 14px; }
.vs-row .vs-theme-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 14px; border: 1px solid var(--line-2); background: none; color: var(--text-2); font-weight: 700; cursor: pointer; font-family: inherit; font-size: 14px; }
.vs-row .vs-theme-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .vs-theme-btn .i-moon, [data-theme="light"] .vs-theme-btn .i-sun { display: none; }
.vs-login { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--vs-lime); color: var(--vs-ink); border-radius: 16px; padding: 16px; font-weight: 800; font-size: 16px; text-decoration: none; }
.vs-login:hover { text-decoration: none; filter: brightness(.97); }
.vs-login svg { width: 22px; height: 22px; }
.vs-login.user-panel-btn { background: var(--vs-green); color: #fff; }

.vs-search { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; }
.vs-search:focus-within { border-color: var(--accent-line); }
.vs-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 16px; padding: 10px 12px; }
.vs-search button { border: 0; cursor: pointer; background: var(--vs-lime); color: var(--vs-ink); width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.vs-search button svg { width: 20px; height: 20px; }
.vs-label { color: var(--muted); font-size: 13px; font-weight: 700; margin: 20px 0 10px; }
.vs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-chips a { color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 30px; padding: 7px 14px; font-size: 14px; text-decoration: none; }
.vs-chips a:hover { border-color: var(--accent-line); color: var(--text); }

/* ---------- Bottom bar (phones) ---------- */
.vs-bottom { display: none; }

/* ---------- Footer ---------- */
.vs-footer { background: var(--bg-2); color: var(--text); padding: 56px 0 26px; border-top: 1px solid var(--line); }
[data-theme="dark"] .vs-footer { background: #05080d; }
.vs-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.vs-fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 34px; }
.vs-fgrid img { height: 36px; width: auto; margin-bottom: 16px; }
.vs-fdesc { color: var(--muted); font-size: 14px; line-height: 1.8; }
.vs-fgrid h4 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.vs-fgrid ul { list-style: none; margin: 0; padding: 0; }
.vs-fgrid li { margin-bottom: 10px; }
.vs-fgrid li a { color: var(--muted); font-size: 14px; text-decoration: none; }
.vs-fgrid li a:hover { color: var(--text); }
.vs-social { display: flex; gap: 10px; }
.vs-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--text); }
.vs-social a:hover { background: var(--vs-lime); color: var(--vs-ink); border-color: var(--vs-lime); }
.vs-social svg { width: 19px; height: 19px; }
.vs-copy { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.vs-copy a { color: var(--link); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .vs-nav { gap: 12px; } .vs-nav .vs-link { font-size: 13px; } }
@media (max-width: 1024px) {
  .vs-nav, .vs-desk { display: none !important; }
  .vs-mobile { display: flex; }
  .vs-bar { padding: 8px 8px 8px 16px; border-radius: 24px; }
  [dir="rtl"] .vs-bar { padding: 8px 16px 8px 8px; }
  .vs-fgrid { grid-template-columns: 1fr 1fr; }
  .vs-fgrid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .vs-header { top: 10px; padding: 0 10px; }
  .vs-has-bottom { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .vs-bottom {
    display: flex; position: fixed; z-index: 999; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    height: 66px; align-items: flex-end; justify-content: space-around; padding: 0 4px 8px; border-radius: 24px;
    background: var(--vs-pill-soft); box-shadow: 0 -2px 24px rgba(0, 0, 0, .28);
  }
  .vs-bi { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #5b6573; font-size: 11px; font-weight: 700; white-space: nowrap; text-decoration: none; }
  .vs-bi:hover { text-decoration: none; }
  .vs-bi svg { width: 22px; height: 22px; }
  .vs-bi.on { color: var(--vs-ink); }
  .vs-bi-c { position: relative; top: -14px; color: var(--vs-ink); }
  .vs-fab { width: 58px; height: 58px; border-radius: 50%; background: var(--vs-lime); border: 4px solid #fff; display: flex; align-items: center; justify-content: center; color: var(--vs-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
  .vs-fab svg { width: 26px; height: 26px; }
  .vs-footer { padding: 40px 0 20px; }
  .vs-fgrid { gap: 26px; }
}
@media (max-width: 380px) { .vs-bi { font-size: 10px; } .vs-tile { min-height: 86px; font-size: 12px; } }

/* ---- search: live results in the header panel + /search/ page ---- */
.vs-results { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vs-results a { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s; }
.vs-results a:hover, .vs-results a:focus-visible, .vs-results a.on { border-color: var(--accent-line); outline: none; }
.vs-results b { font-weight: 700; font-size: 15px; line-height: 1.55; }
.vs-r-cat { align-self: flex-start; font-size: 11.5px; font-weight: 800; color: var(--text-2); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px; padding: 1px 9px; }
.vs-r-d { color: var(--muted); font-size: 13px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vs-r-all { display: block; text-align: center; margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--link); text-decoration: none; }
.vs-r-none { color: var(--muted); font-size: 14px; margin: 14px 2px 0; line-height: 1.8; }
.vs-r-none a { color: var(--link); font-weight: 700; }
.vs-sheet-search.has-q .vs-label, .vs-sheet-search.has-q .vs-chips, .vs-sheet-search.has-q .vs-grid { display: none; }
.vs-sheet-search .vs-results { max-height: min(60vh, 520px); overflow-y: auto; }
.sr-wrap { max-width: 820px; }
.sr-form { margin-top: 18px; }
.sr-note { color: var(--text-2); margin: 6px 0 14px; }
.sr-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sr-cats a { font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); text-decoration: none; }
.sr-cats a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sr-list { margin: 0 0 60px; gap: 10px; }
.sr-list a { padding: 16px 18px; background: var(--surface); }
.sr-none { padding: 30px 0 60px; color: var(--text-2); line-height: 1.9; }
.sr-none .btn { margin-top: 14px; display: inline-flex; }

/* ---- legal pages (privacy, terms) ---- */
.lg-wrap { max-width: 1080px; }
.lg-date { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.lg-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-tabs a { font-size: 14px; font-weight: 700; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); text-decoration: none; }
.lg-tabs a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lg-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; padding-bottom: 70px; }
.lg-toc { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: 14px; }
.lg-toc b { display: block; margin-bottom: 8px; }
.lg-toc ol { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; }
.lg-toc a { color: var(--text-2); text-decoration: none; line-height: 1.6; }
.lg-toc a:hover { color: var(--link); }
.lg-doc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 34px; line-height: 2; color: var(--text-2); font-size: 15.5px; }
.lg-doc h2 { color: var(--text); font-size: 20px; margin: 30px 0 10px; scroll-margin-top: 100px; }
.lg-doc h2:first-of-type { margin-top: 18px; }
.lg-doc p { margin: 0 0 12px; }
.lg-doc ul { margin: 0 0 14px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.lg-doc b { color: var(--text); }
.lg-doc a { color: var(--link); font-weight: 600; }
.lg-lead { font-size: 16.5px; color: var(--text); }
.lg-alert { margin: 18px 0 6px; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); line-height: 1.95; }
.lg-addr { font-style: normal; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 6px 0 14px; color: var(--text); }
@media (max-width: 900px) {
  .lg-grid { grid-template-columns: 1fr; gap: 16px; }
  .lg-toc { position: static; }
  .lg-doc { padding: 20px 18px; font-size: 15px; }
}

/* ---- contact page ---- */
.ct-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 70px; }
.ct-info { display: flex; flex-direction: column; gap: 12px; }
.ct-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.ct-card h2 { font-size: 15px; margin: 0 0 6px; color: var(--text); }
.ct-card address, .ct-card p { font-style: normal; color: var(--text-2); line-height: 1.9; margin: 0; font-size: 14.5px; }
.ct-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--link); }
.ct-ico svg { width: 20px; height: 20px; }
.ct-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--link); }
.ct-phone { font-size: 18px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: .3px; }
.ct-ai { color: var(--muted); font-size: 14px; margin: 4px 4px 0; line-height: 1.8; }
.ct-ai a { color: var(--link); font-weight: 700; }
.ct-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.ct-form-card > h2 { font-size: 20px; margin: 0 0 16px; }
.ct-form { display: flex; flex-direction: column; gap: 14px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-form .field { margin: 0; }
.ct-form textarea.input { resize: vertical; min-height: 140px; line-height: 1.8; }
.ct-form .has-err .input { border-color: #e5484d; }
.ct-err { display: block; color: #e5484d; font-size: 13px; margin-top: 5px; }
.ct-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ct-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 1.8; cursor: pointer; }
.ct-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.ct-check a { color: var(--link); font-weight: 700; }
.ct-send { align-self: flex-start; min-width: 190px; }
.ct-sent { text-align: center; padding: 30px 10px; }
.ct-sent-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); }
.ct-sent-ico svg { width: 30px; height: 30px; }
.ct-sent h2 { margin: 0 0 8px; }
.ct-sent p { color: var(--text-2); margin: 0 0 18px; line-height: 1.9; }
@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-form-card { padding: 18px; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-send { align-self: stretch; }
}

/* ---- anti-robot check ---- */
.vcap { display: flex; flex-direction: column; gap: 6px; }
.vcap-box { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 360px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-align: start; transition: border-color .2s; }
.vcap-box:hover { border-color: var(--accent-line); }
.vcap-tick { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; background: var(--surface); transition: background .2s, border-color .2s; }
.vcap-tick svg { width: 17px; height: 17px; color: var(--accent-ink); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s; }
.vcap-bar { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 100%; background: transparent; }
.vcap-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.vcap[data-state="work"] .vcap-tick { border-color: var(--accent); border-top-color: transparent; border-radius: 50%; animation: vcap-spin .8s linear infinite; }
.vcap[data-state="done"] .vcap-box { border-color: var(--accent-line); cursor: default; }
.vcap[data-state="done"] .vcap-tick { background: var(--accent); border-color: var(--accent); }
.vcap[data-state="done"] .vcap-tick svg { opacity: 1; transform: none; }
.vcap[data-state="done"] .vcap-bar { display: none; }
.vcap[data-state="fail"] .vcap-box, .vcap.err .vcap-box { border-color: #e5484d; }
.vcap-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.vcap-note svg { width: 14px; height: 14px; }
@keyframes vcap-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vcap[data-state="work"] .vcap-tick { animation: none; } }

/* ---- footer legal links ---- */
.vs-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 10px; font-size: 13.5px; }
.vs-legal a { color: var(--text-2); text-decoration: none; }
.vs-legal a:hover { color: var(--link); }
.vs-entity { text-align: center; color: var(--muted); font-size: 12.5px; margin: 0 0 6px; line-height: 1.7; }
.ct-mail { font-weight: 700; color: var(--text); text-decoration: none; font-size: 15px; word-break: break-all; }
