/* Prima pagina pe Bootstrap 5 (views/view_home_v2.php). Mobil intai: o coloana,
   selectorul de masina primul pe ecran; pe desktop selectorul sta langa
   scurtaturi, departamentele pe 3-4 coloane. Clase proprii: prefix h-. */
.h { --hb: #007ce3; --hbi: #005bb0; --hn: #0c1d2e; --hm: #5b6b7c; --hl: #dbe2ea; --hs: #eef3f8; --hx: #ff5a1f; }
.h .ico { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.125em; }
.h h1, .h h2, .h h3 { font-stretch: 112%; letter-spacing: -.01em; text-wrap: balance; }
[data-ascuns] { display: none !important; }

/* hero + selector */
.h-hero { background: var(--hb); color: #fff; position: relative; overflow: hidden; }
.h-hero::after { /* un disc de frana desenat, discret, in colt */
  content: ""; position: absolute; right: -120px; top: -90px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 0 22%, rgba(255,255,255,.08) 22% 24%, transparent 24% 40%, rgba(255,255,255,.07) 40% 41%, transparent 41% 62%, rgba(255,255,255,.06) 62% 70%, transparent 70%); }
.h-inner { position: relative; z-index: 1; padding-block: 22px 26px; }
.h-hero h1 { font-size: clamp(1.6rem, 5.4vw, 2.6rem); font-weight: 800; margin-bottom: .35rem; color: #fff; }
.h-lead { font-size: 1rem; color: #dcecfb; margin-bottom: 1rem; max-width: 36ch; }
.h-finder { background: #fff; color: var(--hn); border-radius: 16px; padding: 14px; box-shadow: 0 18px 40px -18px rgba(0,40,80,.55); }
.h-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--hs); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.h-tabs button { border: 0; background: none; border-radius: 8px; padding: 9px 6px; font-weight: 650; font-size: 14px; color: var(--hm); display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
.h-tabs button[aria-selected="true"] { background: #fff; color: var(--hn); box-shadow: 0 1px 3px rgba(12,29,46,.12); }
.h-current { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #e3f1ff; color: var(--hn); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-weight: 650; font-size: 14px; }
.h-current small { display: block; font-weight: 500; color: var(--hm); font-size: 12px; }
.h-current b { color: var(--hbi); white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.h-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 10px; }
.h-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--hs); color: var(--hm); }
.h-step.h-ready .h-n { background: var(--hb); color: #fff; }
.h-step.h-done .h-n { background: #e3f1ff; color: var(--hbi); }
.h-finder .form-select, .h-finder .form-control { height: 48px; border-radius: 10px; font-size: 15px; border-width: 1.5px; }
.h-finder .form-select:disabled { background-color: #f7f9fb; color: #9aa7b4; }
.h-finder .form-select.h-load { background-image: none; }
/* listele cu cautare (Tom Select, tema Bootstrap 5). Tema deseneaza chenarul pe
   AMBALAJ (.ts-wrapper.form-select, cu sageata lui Bootstrap) si lasa campul din
   interior transparent, cu reguli mai specifice decat orice am scrie pe el --
   deci chenarul, fundalul si focusul se pun aici, pe ambalaj. */
.h-finder .ts-wrapper.form-select { height: auto; min-height: 48px; display: flex; align-items: center; border: 1.5px solid var(--bs-border-color); border-radius: 10px;
  padding: 0; font-size: 15px; background-color: #fff; }
/* la focus doar chenarul albastru, fara umbra */
.h-finder .ts-wrapper.form-select.focus { border-color: var(--hb); }
.h-finder .ts-wrapper.focus, .h-finder .ts-wrapper.focus .ts-control, .h-finder .form-select:focus, .h-finder .form-control:focus { box-shadow: none !important; }
.h-finder .form-select:focus, .h-finder .form-control:focus { border-color: var(--hb); }
.h-finder .ts-wrapper.form-select.disabled { background-color: #f7f9fb; }
.h-finder .ts-wrapper.disabled .ts-control, .h-finder .ts-wrapper.disabled .ts-control input { background: transparent !important; opacity: 1; }
/* spatiul din stanga si cel pentru sageata stau pe campul interior: tema pune
   padding 0 pe ambalaj, cu reguli mai tari */
.h-finder .ts-wrapper .ts-control { padding: 11px 36px 11px 14px !important; min-height: 0; font-size: 15px; width: 100%; }
.h-finder .ts-wrapper .ts-control input { font-size: 15px; }
.h-finder .ts-wrapper .ts-control input::placeholder { color: var(--hm); }
.h-finder .ts-wrapper.disabled .ts-control input::placeholder { color: #9aa7b4; }
/* lista se ataseaza de <body> (hero-ul taie ce iese din el); peste bannerul de
   cookies (1035), sub modale (1050) */
.ts-dropdown { z-index: 1036; border-radius: 10px; border-color: var(--bs-border-color); box-shadow: 0 18px 40px -16px rgba(12,29,46,.35); margin-top: 4px; overflow: hidden; }
.ts-dropdown .ts-dropdown-content { max-height: 320px; }
.ts-dropdown .option { padding: 9px 14px; font-size: 15px; }
.ts-dropdown .active { background: #e3f1ff; color: #0c1d2e; }
.ts-dropdown .highlight { background: rgba(0,124,227,.18); border-radius: 2px; }
.ts-dropdown .no-results { padding: 9px 14px; color: #5b6b7c; }

.h-go { height: 52px; border-radius: 12px; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.h-hint { font-size: 13px; color: var(--hm); min-height: 1em; }
.h-hint:empty { display: none; }
.h-garage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; border: 1.5px dashed var(--hl); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--hm); margin: 12px 0 0; }
.h-garage b { color: var(--hn); font-weight: 650; }
.h-garage a { display: inline-flex; gap: 6px; align-items: center; background: var(--hs); color: var(--hn); border-radius: 999px; padding: 4px 10px; font-weight: 600; }
.h-quick h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #cfe5fb; font-weight: 700; margin: 0 0 10px; font-stretch: 100%; }
.h-quick ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h-quick a { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-weight: 600; font-size: 14px; border: 1px solid rgba(255,255,255,.22); }
.h-quick a:hover { background: #fff; color: var(--hbi); }

/* bannerele de promotie: derulare laterala, cu puncte de pozitie */
.h-promo { margin-bottom: 18px; }
.h-promo-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; }
.h-promo-rail::-webkit-scrollbar { display: none; }
.h-promo-rail a { scroll-snap-align: start; display: block; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.12); box-shadow: 0 14px 30px -18px rgba(0,30,60,.6); }
/* fara proportie fixa: admin-ul cere 848x280 pentru zona A, dar bannerele vechi
   au alta (709x278); fortata, una din ele ar iesi taiata pe margini */
.h-promo-rail img { display: block; width: 100%; height: auto; }
.h-promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.h-promo-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); }
.h-promo-dots button[aria-current="true"] { background: #fff; width: 20px; border-radius: 4px; }

/* argumente */
.h-proof { border-bottom: 1px solid var(--hl); }
.h-proof ul { list-style: none; margin: 0; padding: 14px 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; }
.h-proof ul::-webkit-scrollbar { display: none; }
.h-proof li { display: flex; gap: 10px; align-items: center; }
.h-proof .ico { font-size: 26px; color: var(--hb); }
.h-proof b { display: block; font-size: 14px; font-weight: 700; }
.h-proof span { font-size: 13px; color: var(--hm); }

/* sectiuni */
.h-sec { padding-block: 28px; }
.h-mist { background: var(--hs); }
.h-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.h-head h2 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.h-head a { font-weight: 650; font-size: 14px; color: var(--hbi); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }

.h-brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.h-brands > a { color: var(--hm); }
.h-brand { background: #fff; border: 1px solid var(--hl); border-radius: 12px; aspect-ratio: 1 / 1; max-width: 100%; display: grid; place-items: center; padding: 8px; }
.h-brand img { width: 100%; max-width: 56px; height: auto; mix-blend-mode: multiply; }
.h-brands > a:hover .h-brand { border-color: var(--hb); }
.h-brand-name { display: block; font-size: 11px; text-align: center; margin-top: 4px; font-weight: 600; letter-spacing: .02em; }

.h-deps { display: grid; grid-template-columns: 1fr; gap: 10px; }
.h-dep { background: #fff; border: 1px solid var(--hl); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
.h-tile { width: 44px; height: 44px; border-radius: 12px; background: #e3f1ff; color: var(--hb); display: grid; place-items: center; font-size: 22px; }
.h-dep h3 { font-size: 1.02rem; font-weight: 750; margin: 2px 0 8px; font-stretch: 105%; }
.h-dep h3 a { color: var(--hn); }
.h-dep h3 a:hover { color: var(--hbi); }
.h-dep ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.h-dep li a { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--hs); color: var(--hn); }
.h-dep li a:hover { background: var(--hb); color: #fff; }
.h-dep li.h-more a { background: none; color: var(--hbi); font-weight: 650; padding-inline: 4px; }

.h-uni { display: grid; grid-template-columns: 1fr; gap: 10px; }
.h-uni a { display: grid; grid-template-columns: 1fr auto; align-items: end; min-height: 112px; border-radius: 16px; padding: 16px; color: #fff; }
.h-uni .h-t { display: block; font-size: 1.15rem; font-weight: 800; font-stretch: 112%; line-height: 1.15; }
.h-uni .h-s { display: block; font-size: 13px; opacity: .85; margin-top: 4px; font-weight: 500; }
.h-uni .ico { font-size: 38px; opacity: .9; }
.h-u1 { background: var(--hn); } .h-u2 { background: var(--hb); } .h-u3 { background: #24384d; }

.h-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.h-chips::-webkit-scrollbar { display: none; }
.h-chips button { white-space: nowrap; border: 1px solid var(--hl); background: #fff; color: var(--hn); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.h-chips button[aria-selected="true"] { background: var(--hn); color: #fff; border-color: var(--hn); }
.h-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.h-prod { scroll-snap-align: start; background: #fff; border: 1px solid var(--hl); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.h-ph { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.h-ph img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.h-nm { font-size: 13px; font-weight: 650; line-height: 1.3; margin: 0; font-stretch: 100%; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h-nm a { color: var(--hn); }
.h-pr { margin-top: auto; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.h-pr b { font-size: 1.15rem; font-weight: 800; }
.h-pr s { font-size: 13px; color: var(--hm); }
.h-see { border-radius: 10px; font-weight: 650; }

.h-seo { color: var(--hm); font-size: 14px; max-width: 80ch; }
.h-seo h2 { font-size: 1.2rem; color: var(--hn); font-weight: 750; margin: 1.2rem 0 .5rem; }
.h-seo h2:first-child { margin-top: 0; }
.h-seo h3 { font-size: 1rem; color: var(--hn); font-weight: 700; margin: 1rem 0 .4rem; font-stretch: 100%; }
.h-seo.h-strans { max-height: 15rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

@media (min-width: 576px) {
  .h-brands { grid-template-columns: repeat(8, 1fr); }
  .h-rail { grid-auto-columns: 30%; }
  .h-deps { grid-template-columns: 1fr 1fr; }
  .h-uni { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .h-inner { padding-block: 40px 44px; }
  .h-lead { font-size: 1.1rem; }
  .h-finder { padding: 20px; }
  .h-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .h-step { margin: 0; }
  .h-deps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .h-rail { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; }
  .h-sec { padding-block: 44px; }
  .h-head h2 { font-size: 1.6rem; }
  .h-brands { grid-template-columns: repeat(16, 1fr); }
}
@media (min-width: 1200px) { .h-deps { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .h-brand, .h-dep li a, .h-quick a, .h-prod { transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
  .h-prod:hover { box-shadow: 0 10px 24px -14px rgba(12,29,46,.35); }
}
