html { font-size: 15px; }
.konf-viewer { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #f8f9fa; overflow: hidden; }
.konf-viewer canvas { display: block; }
/* 076: arvutuse ülekate – vana mudel jääb tuhmilt näha */
.konf-busy { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(var(--bs-body-bg-rgb), .6); pointer-events: none; font-weight: 500; }
.konf-viewer .end-label { font-style: italic; opacity: .85; }
/* 081: veateates nimetatud vastuolus parameetrid */
.konf-field-invalid .form-label, .konf-field-invalid .form-label span:first-child { color: var(--bs-danger); }
.konf-field-invalid .form-range::-webkit-slider-thumb { background: var(--bs-danger); }
.konf-field-invalid .form-range::-moz-range-thumb { background: var(--bs-danger); }
.konf-field-invalid .konf-mirror, .konf-field-invalid .btn-group { outline: 2px solid var(--bs-danger); outline-offset: 1px; border-radius: var(--bs-border-radius); }
.dim-label { font: 12px/1 system-ui, sans-serif; color: #212529; background: rgba(255,255,255,.85); padding: 2px 4px; border-radius: 3px; white-space: nowrap; }
.konf-mirror { text-align: right; }
.konf-field-disabled { opacity: .45; }
/* 155: ainult failile muudetav väli – lukus olles on liugur tuhm, selgitus jääb loetavaks */
.konf-file-only-locked > :not(.konf-file-only-note) { opacity: .45; }

/* Tellimuse edenemine (056) */
.order-progress { display: flex; flex-wrap: wrap; gap: .25rem 0; margin-bottom: 1rem; font-size: .875rem; }
.order-progress-step { display: flex; align-items: center; color: #6c757d; }
.order-progress-step:not(:last-child)::after { content: "→"; margin: 0 .4rem; color: #adb5bd; }
.order-progress-step.done { color: #198754; }
.order-progress-step.done::before { content: "✓"; margin-right: .2rem; }
.order-progress-step.current { color: #212529; font-weight: 600; }

/* Kujundus (068): avalik pood, hele ja tume teema (html.vj[data-bs-theme]). Haldus seda ei kasuta. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

html.vj {
  --vj-accent: #3D5CFF; --vj-accent-rgb: 61, 92, 255; --vj-accent-hover: #2F4BE0;
  --bs-body-font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-primary: var(--vj-accent); --bs-primary-rgb: var(--vj-accent-rgb);
  --bs-border-radius: .75rem; --bs-border-radius-lg: 1.25rem; --bs-border-radius-xl: 1.75rem;
}
html.vj[data-bs-theme="light"] {
  --vj-bg: #F7F7F5; --vj-surface: #FFFFFF; --vj-surface-2: #F0F0EC; --vj-border: #E3E3DE;
  --vj-text: #18191D; --vj-muted: #5F626B; --vj-link: #2F4BE0; --vj-link-hover: #1E36B8;
  --vj-viewer-bg: #F0F0EC; --vj-dim-line: #495057; --vj-dots: rgba(24, 25, 29, .10);
  --vj-hero-shapes: .55; --vj-hero-fade: 247, 247, 245;
}
html.vj[data-bs-theme="dark"] {
  --vj-bg: #18191D; --vj-surface: #1F2126; --vj-surface-2: #2A2D34; --vj-border: #2C2F36;
  --vj-text: #F2F1EE; --vj-muted: #A9ABB2; --vj-link: #8FA3FF; --vj-link-hover: #B9C6FF;
  --vj-viewer-bg: #15161A; --vj-dim-line: #A9ABB2; --vj-dots: rgba(242, 241, 238, .09);
  --vj-hero-shapes: .8; --vj-hero-fade: 24, 25, 29;
}
html.vj[data-bs-theme] {
  --bs-body-bg: var(--vj-bg); --bs-body-color: var(--vj-text); --bs-emphasis-color: var(--vj-text);
  --bs-secondary-color: var(--vj-muted); --bs-border-color: var(--vj-border);
  --bs-tertiary-bg: var(--vj-surface-2); --bs-secondary-bg: var(--vj-surface-2);
  --bs-link-color: var(--vj-link); --bs-link-color-rgb: var(--vj-accent-rgb); --bs-link-hover-color: var(--vj-link-hover);
}
html.vj body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-size: 16px; }
html.vj .text-muted { color: var(--vj-muted) !important; }
html.vj h1, html.vj h2, html.vj .h1, html.vj .h2, html.vj .h3, html.vj .display-6 { font-weight: 700; letter-spacing: -0.03em; }
html.vj .card { --bs-card-bg: var(--vj-surface); --bs-card-border-color: var(--vj-border); --bs-card-cap-bg: var(--vj-surface-2); }
html.vj .table { --bs-table-bg: transparent; }
html.vj .form-control, html.vj .form-select { background-color: var(--vj-surface); border-color: var(--vj-border); }
/* Linnuke ja raadionupp: tumedas teemas oli ääris (--vj-border) taustast vaevu eristatav. */
html.vj .form-check-input { background-color: var(--vj-surface); border-color: var(--vj-muted); }
html.vj[data-bs-theme="dark"] .form-check-input { border-width: 1.5px; }
html.vj .form-check-input:checked { background-color: var(--vj-accent); border-color: var(--vj-accent); }
html.vj .form-check-input:focus { border-color: var(--vj-accent); box-shadow: 0 0 0 .25rem rgba(var(--vj-accent-rgb), .3); }
html.vj .bg-white, html.vj .bg-light { background-color: var(--vj-surface) !important; }
html.vj .btn { --bs-btn-border-radius: 999px; --bs-btn-font-weight: 600; }
html.vj .btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .85rem; --bs-btn-font-size: 1rem; }
html.vj .btn-primary { --bs-btn-bg: var(--vj-accent); --bs-btn-border-color: var(--vj-accent); --bs-btn-hover-bg: var(--vj-accent-hover);
  --bs-btn-hover-border-color: var(--vj-accent-hover); --bs-btn-active-bg: var(--vj-accent-hover); --bs-btn-active-border-color: var(--vj-accent-hover);
  --bs-btn-disabled-bg: var(--vj-accent); --bs-btn-disabled-border-color: var(--vj-accent); }
html.vj .btn-outline-primary { --bs-btn-color: var(--vj-link); --bs-btn-border-color: var(--vj-accent); --bs-btn-hover-bg: var(--vj-accent);
  --bs-btn-hover-border-color: var(--vj-accent); --bs-btn-active-bg: var(--vj-accent); --bs-btn-active-border-color: var(--vj-accent); }
html.vj .vj-btn-ghost { --bs-btn-color: var(--vj-text); --bs-btn-bg: rgba(var(--vj-hero-fade), .5); --bs-btn-border-color: var(--vj-border);
  --bs-btn-hover-color: var(--vj-text); --bs-btn-hover-bg: var(--vj-surface-2); --bs-btn-hover-border-color: var(--vj-muted);
  --bs-btn-active-color: var(--vj-text); --bs-btn-active-bg: var(--vj-surface-2); }
html.vj .konf-viewer { background: var(--vj-viewer-bg); border-radius: var(--bs-border-radius); }
html.vj .dim-label { color: var(--vj-text); background: rgba(var(--vj-hero-fade), .85); }
html.vj .order-progress-step.current { color: var(--vj-text); }

/* Päis ja menüü */
.vj-navbar { background: var(--vj-bg); --bs-navbar-color: var(--vj-muted); --bs-navbar-hover-color: var(--vj-text); --bs-navbar-active-color: var(--vj-text); }
.vj-navbar .nav-link { border-radius: 999px; padding-left: .9rem !important; padding-right: .9rem !important; font-weight: 500; }
.vj-navbar .nav-link:hover { background: var(--vj-surface-2); }
.vj-navbar .dropdown-menu { --bs-dropdown-bg: var(--vj-surface); --bs-dropdown-border-color: var(--vj-border); --bs-dropdown-link-color: var(--vj-text);
  --bs-dropdown-link-hover-bg: var(--vj-surface-2); --bs-dropdown-link-active-bg: var(--vj-surface-2); --bs-dropdown-link-active-color: var(--vj-text);
  border-radius: 1rem; padding: .5rem; box-shadow: 0 20px 40px rgba(0, 0, 0, .18); }
.vj-navbar .dropdown-item { border-radius: .6rem; padding: .55rem .75rem; }
.vj-logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.035em; color: var(--vj-text) !important; }
.vj-logo span { color: var(--vj-muted); font-weight: 600; }
.vj-theme-toggle { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--vj-border); background: transparent; color: var(--vj-text);
  display: inline-flex; align-items: center; justify-content: center; }
.vj-theme-toggle:hover { background: var(--vj-surface-2); }
/* 110: ostukorvi ikoon päises */
.vj-cart-link { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--vj-border); color: var(--vj-text);
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.vj-cart-link:hover { background: var(--vj-surface-2); color: var(--vj-text); }
.vj-cart-link .badge { font-size: .7rem; }
/* menüü ikoonid (Bootstrap Icons, Pood.Web/Services/Icons.cs) */
.vj-nav-ico { width: 1em; height: 1em; margin-right: .4em; vertical-align: -.125em; flex-shrink: 0; opacity: .8; }
.vj-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.vj[data-bs-theme="dark"] .vj-ico-moon, html.vj[data-bs-theme="light"] .vj-ico-sun { display: none; }

/* Jalus */
.vj-footer { border-top: 1px solid var(--vj-border); padding: 3rem 0 2rem; margin-top: 4rem; color: var(--vj-muted); font-size: .95rem; }
.vj-footer h2 { font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--vj-text); margin-bottom: .75rem; }
.vj-footer ul { list-style: none; padding: 0; margin: 0; }
.vj-footer li { margin-bottom: .4rem; }
.vj-footer a { color: var(--vj-muted); text-decoration: none; }
.vj-footer a:hover { color: var(--vj-text); text-decoration: underline; text-underline-offset: 4px; }

/* Avalehe päis: hägused hõljuvad detailid */
.vj-hero { position: relative; overflow: hidden; min-height: clamp(520px, 52vw, 760px); display: flex; align-items: center; margin-top: -1rem; }
.vj-hero-shapes { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 0 10px;
  filter: blur(4px); opacity: var(--vj-hero-shapes); pointer-events: none; }
.vj-hero-row { height: clamp(130px, 15vw, 220px); display: flex; align-items: center; }
.vj-hero-fade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--vj-hero-fade), .6) 0%, rgba(var(--vj-hero-fade), 0) 16%, rgba(var(--vj-hero-fade), 0) 70%, rgb(var(--vj-hero-fade)) 100%),
    radial-gradient(ellipse 60% 52% at 26% 52%, rgba(var(--vj-hero-fade), .65) 0%, rgba(var(--vj-hero-fade), 0) 100%); }
.vj-hero-body { position: relative; z-index: 2; padding-top: 3rem; padding-bottom: 5rem; }
.vj-hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; max-width: 12em; }
.vj-hero .lead { max-width: 28em; font-size: clamp(1.05rem, 1.45vw, 1.3rem); margin-top: 1.75rem; text-shadow: 0 1px 16px rgba(var(--vj-hero-fade), .8); }
.vj-text-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--vj-muted); }
.vj-text-link:hover { color: var(--vj-text); text-decoration-color: currentColor; }
@keyframes vj-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes vj-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
/* Rida = jada kaks korda järjest, animatsioon nihutab -50% → katkestuseta ring. */
.vj-track { display: flex; width: max-content; will-change: transform; animation: vj-left 90s linear infinite; }
.vj-track.vj-right { animation-name: vj-right; }
.vj-seq { display: flex; align-items: center; gap: 80px; padding-right: 80px; }
.vj-seq img { display: block; width: auto; flex: none; user-select: none; -webkit-user-drag: none; }
.vj-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--vj-border); }
.vj-xl { height: 172px; } .vj-l { height: 164px; } .vj-m { height: 156px; } .vj-s { height: 148px; }
.vj-mini .vj-seq { gap: 56px; padding-right: 56px; }
.vj-mini .vj-xl { height: 120px; } .vj-mini .vj-l { height: 114px; } .vj-mini .vj-m { height: 108px; } .vj-mini .vj-s { height: 102px; }
@media (max-width: 700px) {
  .vj-xl { height: 112px; } .vj-l { height: 107px; } .vj-m { height: 102px; } .vj-s { height: 96px; }
  .vj-seq { gap: 40px; padding-right: 40px; }
}
@media (prefers-reduced-motion: reduce) { .vj-track { animation-play-state: paused; } }

/* Avalehe plokid */
.vj-section { padding: 4rem 0 2rem; }
.vj-section h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.032em; text-wrap: balance; }
.vj-panel { background: var(--vj-surface); border: 1px solid var(--vj-border); border-radius: 1.75rem; padding: 1.5rem; height: 100%; }
.vj-stage { border-radius: 1.1rem; background-color: var(--vj-viewer-bg); background-image: radial-gradient(circle, var(--vj-dots) 1.2px, transparent 1.7px);
  background-size: 22px 22px; display: flex; align-items: center; justify-content: center; }
.vj-option { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem .5rem; border-top: 1px solid var(--vj-border); color: inherit; text-decoration: none; border-radius: .75rem; }
.vj-option:hover { background: var(--vj-surface-2); color: inherit; }
.vj-option-ico { flex: none; width: 44px; height: 44px; border-radius: .75rem; background: var(--vj-surface-2); display: inline-flex; align-items: center; justify-content: center; }
.vj-steps { border-top: 1px solid var(--vj-border); padding-top: 1.25rem; }
.vj-steps .vj-num { font-size: 3.5rem; font-weight: 300; line-height: 1; }
.vj-cta { background: var(--vj-surface); border: 1px solid var(--vj-border); border-radius: 1.75rem; padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4rem) 2rem; overflow: hidden; }
.vj-cta h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.04em; }

/* Detailimallide kaardid */
.vj-templates { border-radius: 1.75rem; border: 1px solid var(--vj-border); padding: 1rem;
  background-color: var(--vj-viewer-bg); background-image: radial-gradient(circle, var(--vj-dots) 1.2px, transparent 1.7px); background-size: 22px 22px; }
.vj-tcard { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; border-radius: 1.25rem; color: inherit; text-decoration: none; height: 100%; }
.vj-tcard:hover { background: rgba(var(--vj-hero-fade), .6); color: inherit; }
.vj-tcard-img { height: 170px; display: flex; align-items: center; justify-content: center; }
.vj-tcard-img img { max-height: 160px; max-width: 90%; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.vj-tcard:hover .vj-tcard-img img { transform: translateY(-8px) rotate(-3deg); }
.vj-tcard-more .vj-tcard-img span { width: 100%; height: 150px; border: 2px dashed var(--vj-border); border-radius: 1rem; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 300; color: var(--vj-muted); }
.vj-tcard-more:hover .vj-tcard-img span { border-color: var(--vj-muted); color: var(--vj-text); }
.vj-tcard h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .35rem; letter-spacing: -0.01em; }
.vj-tcard p { font-size: .92rem; color: var(--vj-muted); margin: 0; }
@media (max-width: 575.98px) {
  .vj-tcard { flex-direction: row; align-items: center; padding: .9rem; }
  .vj-tcard-img { flex: none; width: 36%; height: 110px; }
  .vj-tcard-img img { max-height: 100px; }
  .vj-tcard-more .vj-tcard-img span { height: 90px; }
}
