/* ==========================================================================
   AVTOHIŠA KOS
   Barve, oblike in ikone po koncesionarji.citroen.si/ahkos.
   Pisava: CitroenType ni prosto dostopna (strežnik ne dovoli nalaganja z drugih domen),
   zato je do prenosa licenčnih datotek uporabljen Montserrat.
   ========================================================================== */

:root {
  --rdeca: #da291c;
  --tekst: #3b3938;
  --siva: #796f6e;
  --pas: #f2f1f0;
  --noga: #f1f0f0;
  --modrosiva: #57718a;
  --obroba: #d0d3d4;
  --pika: #a19a99;
  --crna: #000;
  --bela: #fff;

  --f-regular: "Citroen Regular", "Montserrat", Verdana, sans-serif;
  --f-bold: "Citroen Bold", "Montserrat", Verdana, sans-serif;
  --f-black: "Citroen Black", "Montserrat", Verdana, sans-serif;

  --okvir: 80rem;
  --rob: 2.5rem;
  --glava: 117px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--glava); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bela);
  color: var(--tekst);
  font-family: var(--f-regular);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--rdeca); outline-offset: 2px; }

.okvir { width: 100%; max-width: var(--okvir); margin-inline: auto; padding-inline: var(--rob); }
.sredina { display: flex; justify-content: center; }

/* --- Ikone (izvirne ikone s strani AH Kos) --------------------------------- */

.ikona-tel, .ikona-pin, .ikona-ura { background-repeat: no-repeat; background-position: left center; padding-left: 26px; }
.ikona-tel { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='13' height='12' viewBox='0 0 13 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.768937 0.576804L3.20639 0.0143156C3.47123 -0.0466206 3.7431 0.0916578 3.85091 0.34009L4.97588 2.96503C5.07432 3.19472 5.00869 3.46424 4.81417 3.62127L3.39388 4.78375C4.23762 6.58137 5.7118 8.07664 7.54692 8.93678L8.7094 7.5165C8.86877 7.32197 9.13595 7.25635 9.36564 7.35479L11.9906 8.47976C12.2414 8.58992 12.3796 8.86178 12.3187 9.12662L11.7562 11.5641C11.6976 11.8172 11.4726 12 11.2078 12C5.20556 12 0.333008 7.13682 0.333008 1.12523C0.333008 0.862735 0.513474 0.635396 0.768937 0.576804Z' fill='%233b3938'/%3e%3c/svg%3e"); background-size: 15px; }
.ikona-pin { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3e%3cpath fill='%233b3938' d='M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z'%3e%3c/path%3e%3c/svg%3e"); background-size: 11px; padding-left: 22px; }
.ikona-ura { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 0C2.68548 0 0 2.68548 0 6C0 9.31452 2.68548 12 6 12C9.31452 12 12 9.31452 12 6C12 2.68548 9.31452 0 6 0ZM6 10.8387C3.32661 10.8387 1.16129 8.67339 1.16129 6C1.16129 3.32661 3.32661 1.16129 6 1.16129C8.67339 1.16129 10.8387 3.32661 10.8387 6C10.8387 8.67339 8.67339 10.8387 6 10.8387ZM7.49516 8.3129L5.44113 6.82016C5.36613 6.76452 5.32258 6.67742 5.32258 6.58548V2.6129C5.32258 2.45323 5.45323 2.32258 5.6129 2.32258H6.3871C6.54677 2.32258 6.67742 2.45323 6.67742 2.6129V6.04113L8.29355 7.21694C8.42419 7.31129 8.45081 7.49274 8.35645 7.62339L7.90161 8.25C7.80726 8.37823 7.62581 8.40726 7.49516 8.3129Z' fill='%233b3938'/%3e%3c/svg%3e"); background-size: 16px; }

.ikona-volan, .ikona-ponudba, .ikona-servis { background-repeat: no-repeat; background-size: 32px; }
.ikona-volan { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3e%3cpath fill='white' d='M16 3.406q2.531 0 4.75 0.938 2.219 0.969 3.875 2.625t2.625 3.875q0.938 2.219 0.938 4.75t-0.938 4.75q-0.969 2.219-2.625 3.875t-3.875 2.625q-2.219 0.938-4.75 0.938t-4.75-0.938q-2.219-0.969-3.875-2.625t-2.625-3.875q-0.938-2.219-0.938-4.75t0.938-4.75q0.969-2.219 2.625-3.875t3.875-2.625q2.219-0.938 4.75-0.938v0zM22.031 18.469q-0.781 0-1.703 0.313t-1.453 0.938q-0.406 0.5-1.453 2.172t-0.609 2.547q0.063 0.156 0.266 0.328t0.609 0.172q0.156 0 0.328-0.031t0.359-0.094q1.813-0.563 3.172-1.609t2.078-2.453q0.25-0.5 0.266-0.891t-0.172-0.703q-0.219-0.344-0.656-0.516t-1.031-0.172v0zM9.969 18.469q-0.594 0-1.031 0.172t-0.656 0.516q-0.188 0.313-0.172 0.703t0.266 0.891q0.719 1.406 2.078 2.453t3.172 1.609q0.188 0.063 0.359 0.094t0.328 0.031q0.406 0 0.609-0.172t0.266-0.328q0.438-0.875-0.609-2.547t-1.453-2.172q-0.531-0.625-1.453-0.938t-1.703-0.313v0zM16 6.25q-1.938 0-3.625 0.75-1.688 0.719-2.953 1.984t-2.016 2.953q-0.719 1.688-0.75 3.625 0 0.375 0.094 0.641t0.281 0.453 0.453 0.281 0.609 0.094q0.281 0 0.656-0.063t0.875-0.188q0.281-0.063 0.563-0.156t0.594-0.188q0.156-0.031 0.328-0.078t0.328-0.078q0.094-0.031 0.203-0.063t0.234-0.063l-0.188 0.031q0-1.719 1.266-2.953t3.047-1.234 3.047 1.234 1.266 2.984v-0.031q0.063 0 0.109 0.016t0.109 0.047v0h0.031q0.188 0.063 0.375 0.109t0.375 0.109q0.281 0.063 0.547 0.141t0.516 0.141q0.531 0.156 0.906 0.219t0.656 0.063q0.344 0 0.594-0.094t0.438-0.25q0.188-0.188 0.281-0.469t0.094-0.656q-0.031-1.938-0.75-3.625-0.75-1.688-2.016-2.953t-2.953-1.984q-1.688-0.75-3.625-0.75v0zM16 13.438q-1.094 0-1.906 0.734t-0.906 1.797v-0.156l0.281-0.031q0.688-0.156 1.313-0.219t1.219-0.063 1.219 0.063 1.313 0.188v0l0.094 0.031q0.063 0 0.094 0.016t0.094 0.016q-0.156-1-0.953-1.688t-1.859-0.688v0z'%3e%3c/path%3e%3c/svg%3e"); }
.ikona-ponudba { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3e%3cpath fill='white' d='M25.531 9.125q1.25 0 2.141 0.891t0.891 2.141v0 6.875q0 1.25-0.891 2.141t-2.141 0.891v0h-15.625l-6.469-6.469 6.719-6.469h15.375zM9.188 13.844q-0.781 0-1.297 0.531t-0.516 1.313 0.516 1.297 1.297 0.516 1.313-0.516 0.531-1.297-0.531-1.313-1.313-0.531v0zM15.281 14.563h8.313v-1.531h-8.313v1.531zM15.281 18.219h8.313v-1.5h-8.313v1.5z'%3e%3c/path%3e%3c/svg%3e"); }
.ikona-servis { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3e%3cpath fill='white' d='M19.563 17.875l-1.5-1.5 1.5-1.5q0.406 0.156 0.859 0.266t0.922 0.109q2.063 0 3.531-1.406t1.594-3.469l-4.688 1.156-0.781-3.094 4.688-1.156q-0.688-1.063-1.813-1.672t-2.531-0.609q-2.125 0-3.625 1.5t-1.5 3.625q0 0.469 0.078 0.922t0.266 0.828l-1.5 1.5-5.031-5.031 0.625-0.625-2.469-2.469-2.469 2.469 2.469 2.5 0.625-0.625 5.031 5.031-8.406 8.469 3 3 8.406-8.375 1.5 1.5-0.875 0.875 6.094 6.094 3-3-6.094-6.188-0.906 0.875z'%3e%3c/path%3e%3c/svg%3e"); }

/* --- Tipografija in gumbi ------------------------------------------------- */

.naslov { font-family: var(--f-black); font-weight: 900; font-size: 34px; line-height: 38px; text-transform: uppercase; color: var(--tekst); }
.naslov--sredina { text-align: center; }
.naslov--manjsi { font-size: 24px; line-height: 28px; }

.gumb {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 39px; padding: 8px 20px;
  border: 0; border-radius: 24px;
  background: var(--rdeca); color: var(--bela);
  font-family: var(--f-bold); font-weight: 700; font-size: 14px; line-height: 21px;
  text-transform: uppercase; text-decoration: none; text-align: center;
  cursor: pointer;
}
.gumb:hover { background: #b8200f; }
.gumb--sirok { width: 100%; }
.gumb--siroko { min-width: 298px; }
.gumb--obroba { background: var(--bela); color: var(--rdeca); box-shadow: inset 0 0 0 2px var(--rdeca); }
.gumb--obroba:hover { background: var(--pas); }

.vec { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: var(--rdeca); font-family: var(--f-bold); font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; }
.vec::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }

/* --- Glava ---------------------------------------------------------------- */

.glava { position: sticky; top: 0; z-index: 50; background: var(--bela); border-bottom: 1px solid var(--rdeca); }
.glava__notranje { display: flex; align-items: center; justify-content: space-between; height: var(--glava); }
.glava__znak { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; }
/* Vse tri slike logotipov so obrezane na vidni del (brez praznega roba), zato ista višina pomeni isto zgornjo in spodnjo črto */
.logotipi { display: flex; align-items: center; justify-content: center; gap: 26px; }
.logotipi__slika { width: auto; height: 46px; object-fit: contain; }
.glava__ime { font-family: var(--f-black); font-weight: 900; font-size: 22px; line-height: 26px; color: var(--crna); letter-spacing: 0.02em; text-align: center; }
.glava__desno { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.glava__kontakti { display: flex; gap: 50px; font-size: 13px; line-height: 18px; }
.glava__kontakti a { display: inline-block; text-decoration: underline; }
.glava__nav { display: flex; gap: 54px; }
.glava__nav a { display: inline-block; padding-bottom: 6px; text-decoration: none; border-bottom: 1px solid transparent; }
.glava__nav a:hover, .glava__nav a[aria-current="true"] { color: var(--rdeca); border-bottom-color: var(--rdeca); }
.glava__meni { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; padding: 12px 8px; border: 0; background: none; cursor: pointer; }
.glava__meni span { display: block; height: 2px; background: var(--tekst); }

/* --- Drsnik --------------------------------------------------------------- */

.drsnik { position: relative; overflow: hidden; background: var(--tekst); }
.drsnik__trak { display: grid; }
.akcija { grid-area: 1 / 1; position: relative; height: min(56.25vw, calc(100vh - var(--glava))); min-height: 420px; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.akcija[data-aktivna] { opacity: 1; visibility: visible; transition: opacity 0.6s ease; z-index: 1; }
.akcija picture, .akcija img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.akcija__besedilo { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 40px; color: var(--bela); }
.akcija__naslov { max-width: 1000px; font-family: var(--f-black); font-weight: 900; font-size: 40px; line-height: 46px; text-transform: uppercase; }
.akcija__podnaslov { max-width: 1040px; font-family: var(--f-bold); font-weight: 700; font-size: 34px; line-height: 40px; }
.akcija__besedilo .gumb { margin-top: 24px; }

.drsnik__nadzor { position: absolute; z-index: 2; left: 0; right: 0; bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.drsnik__pike { display: flex; gap: 18px; }
.drsnik__pika { width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; background: var(--pika); cursor: pointer; }
.drsnik__pika[aria-current="true"] { background: var(--rdeca); }
.drsnik__puscica { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; position: relative; }
.drsnik__puscica::after { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-right: 2px solid var(--pika); border-top: 2px solid var(--pika); transform: rotate(45deg); }
.drsnik__puscica--levo::after { transform: rotate(-135deg); }

/* --- Rdeči gumbi ob robu -------------------------------------------------- */

/* Kot na koncesionarji.citroen.si/ahkos: viden je le ozek pas 84 px (ikona zgoraj, napis 11 px spodaj);
   gumb je širok 228 px in zamaknjen čez desni rob, ob prehodu z miško ali fokusu se izvleče in pokaže napis v eni vrstici. */
.cta-rob { position: fixed; right: 0; top: 232px; z-index: 40; display: flex; flex-direction: column; transform: translateX(144px); filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.16)); }
.cta-rob__gumb {
  position: relative; display: block;
  width: 228px; height: 80px; padding: 0;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background-color: var(--rdeca); background-position: 26px 10px; color: var(--bela);
  font-family: var(--f-bold); font-weight: 700; text-transform: uppercase; text-align: left;
  cursor: pointer; transition: transform 0.3s ease-out;
}
.cta-rob__gumb span { position: absolute; left: 5px; bottom: 7px; width: 74px; font-size: 11px; line-height: 15px; text-align: center; }
.cta-rob__gumb:last-child { border-bottom: 0; }
.cta-rob__gumb:hover, .cta-rob__gumb:focus-visible { transform: translateX(-144px); background-position: 15px center; }
.cta-rob__gumb:hover span, .cta-rob__gumb:focus-visible span { left: 60px; bottom: auto; top: 50%; width: auto; transform: translateY(-50%); font-size: 14px; line-height: 14px; text-align: left; white-space: nowrap; }
.cta-rob__gumb:focus-visible { outline: 2px solid var(--bela); outline-offset: -4px; }

/* --- Iskanje (Preveri ponudbo novih vozil na zalogi) ---------------------- */

.iskanje { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.iskanje__opis { margin: 24px 0 24px; }
.iskanje .filtri { max-width: 298px; }
.iskanje__desno img { width: 100%; }

.filtri { display: flex; flex-direction: column; gap: 24px; }
.filtri select {
  width: 100%; height: 48px; padding: 10px 40px 6px 14px;
  border: 1px solid var(--obroba); border-radius: 12px; background-color: var(--bela);
  color: var(--siva); font-size: 14px;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3938' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.filtri select:focus-visible { outline: 2px solid var(--rdeca); outline-offset: 0; }

.razpon__oznaka { display: block; font-size: 14px; color: var(--siva); }
.razpon__vrednosti { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; color: var(--siva); }
.razpon__drsnik { position: relative; height: 24px; margin-top: 6px; }
.razpon__tir { position: absolute; left: 9px; right: 9px; top: 10px; height: 4px; background: rgba(121, 111, 110, 0.5); }
.razpon__polnilo { position: absolute; top: 0; bottom: 0; background: var(--rdeca); }
.razpon input[type="range"] { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none; }
.razpon input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--rdeca); border: 0; cursor: pointer; }
.razpon input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--rdeca); border: 0; cursor: pointer; }
.razpon input[type="range"]::-moz-range-track { background: none; }
.razpon input[type="range"]:focus-visible { outline: none; }
.razpon input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(218, 41, 28, 0.3); }

/* --- Sekcije -------------------------------------------------------------- */

.sekcija { padding-top: 48px; padding-bottom: 64px; }
.sekcija--brez-vrha { padding-top: 0; }

/* --- Nova vozila po znamkah ----------------------------------------------- */

.znamke { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.znamka { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 24px; border: 1px solid var(--obroba); text-align: center; overflow: hidden; }
.znamka__logo { height: 84px; width: auto; object-fit: contain; }
.znamka__slika { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.znamka__modeli { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.znamka__model { padding: 6px 14px; border: 1px solid var(--obroba); border-radius: 20px; background: var(--bela); font-size: 14px; cursor: pointer; }
.znamka__model:hover { border-color: var(--rdeca); color: var(--rdeca); }
.znamka__slika--forthing { transform: none; }

/* --- Zaloga --------------------------------------------------------------- */

.zaloga { display: grid; grid-template-columns: 334px 1fr; gap: 32px; align-items: start; }
.zaloga__filtri { position: sticky; top: calc(var(--glava) + 24px); padding: 32px 16px 40px; background: var(--pas); }
.zaloga__filtri-glava { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.ponastavi { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; font-family: var(--f-bold); font-weight: 700; font-size: 14px; text-transform: uppercase; cursor: pointer; }
.ponastavi::after { content: "\00d7"; font-size: 26px; line-height: 1; font-weight: 400; }
.zaloga__stevilo { margin-bottom: 16px; font-family: var(--f-bold); font-weight: 700; }

.vozilo { display: grid; grid-template-columns: 260px 1fr 220px; gap: 24px; padding: 24px; border: 1px solid var(--obroba); }
.vozilo + .vozilo { margin-top: 24px; }
.vozilo__slika { position: relative; align-self: start; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.vozilo__slika img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.zaloga__skupina { margin: 32px 0 16px; font-family: var(--f-black); font-weight: 900; font-size: 22px; line-height: 26px; text-transform: uppercase; }
.zaloga__skupina:first-child { margin-top: 0; }
.vozilo__cena--povprasevanje { font-size: 18px; line-height: 24px; }
.vozilo__cene .gumb + .gumb { margin-top: 8px; }
.vozilo__oznaka--novo { background: var(--modrosiva); }
.vozilo__oznaka { position: absolute; left: 0; top: 10px; padding: 3px 10px; background: var(--rdeca); color: var(--bela); font-family: var(--f-bold); font-weight: 700; font-size: 11px; line-height: 16px; text-transform: uppercase; }
.vozilo__naslov { font-family: var(--f-black); font-weight: 900; font-size: 20px; line-height: 24px; text-transform: uppercase; }
.vozilo__naziv { margin-top: 4px; font-size: 16px; }
.vozilo__podatki { margin-top: 16px; font-size: 16px; line-height: 22px; }
.vozilo__cene { display: flex; flex-direction: column; gap: 4px; padding-left: 24px; border-left: 1px solid var(--obroba); }
.vozilo__cena { font-family: var(--f-black); font-weight: 900; font-size: 22px; line-height: 28px; color: var(--rdeca); }
.vozilo__stara { font-size: 16px; color: var(--siva); text-decoration: line-through; }
.vozilo__cene .gumb { margin-top: auto; }
.zaloga__prazno { padding: 32px; border: 1px solid var(--obroba); }
.zaloga__seznam .sredina { margin-top: 32px; }

/* --- Storitve ------------------------------------------------------------- */

.storitve__pas { margin-top: 32px; padding: 48px 0 64px; background: var(--pas); }
.storitve__okvir { position: relative; display: flex; align-items: center; gap: 16px; }
.storitve__trak { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 3); gap: 32px; flex: 1; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.storitve__trak::-webkit-scrollbar { display: none; }
.storitve__trak[data-mreza] { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; row-gap: 48px; overflow: visible; }
.storitev { display: flex; flex-direction: column; align-items: center; gap: 16px; scroll-snap-align: start; text-align: center; }
.storitev img { width: 100%; aspect-ratio: 491 / 288; object-fit: cover; }
.storitev h3 { font-family: var(--f-bold); font-weight: 700; font-size: 24px; line-height: 28px; color: var(--crna); }
.storitev p { flex: 1; }
.kvadrat { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--bela); cursor: pointer; position: relative; }
.kvadrat::after { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-right: 2px solid var(--rdeca); border-top: 2px solid var(--rdeca); transform: translateX(-2px) rotate(45deg); }
.kvadrat--levo::after { transform: translateX(2px) rotate(-135deg); }
.storitve__pas .sredina { margin-top: 48px; }

/* --- Aktualno ------------------------------------------------------------- */

.novice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 16px; margin-top: 40px; }
.novica { display: flex; flex-direction: column; align-items: flex-start; }
.novica--velika { grid-column: span 2; grid-row: span 1; }
.novica img { width: 100%; aspect-ratio: 592 / 336; object-fit: cover; }
.novica__datum { margin-top: 16px; font-size: 14px; color: var(--siva); }
.novica h3 { margin-top: 16px; font-family: var(--f-bold); font-weight: 700; font-size: 24px; line-height: 30px; color: var(--crna); }
.novica p { margin-top: 16px; }
.novica .vec { margin-top: 12px; }

/* --- Kontakt -------------------------------------------------------------- */

.zemljevid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 320px; margin-top: 32px; padding: 32px; background: var(--pas); text-align: center; font-size: 14px; color: var(--siva); }
.zemljevid iframe { width: 100%; height: 420px; border: 0; }
.zemljevid[data-nalozen] { padding: 0; min-height: 0; }
.kontakt__mreza { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.kontakt__naslov { margin: 24px 0 8px; font-family: var(--f-black); font-weight: 900; font-size: 22px; line-height: 26px; text-transform: uppercase; }
.kontakt__naslov:first-child { margin-top: 0; }
.kontakt__oznaka { margin-top: 12px; font-family: var(--f-bold); font-weight: 700; }
.kontakt a { text-decoration: none; }
.kontakt a:hover { color: var(--rdeca); }
.cas { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.cas caption { padding-bottom: 8px; text-align: left; font-family: var(--f-bold); font-weight: 700; font-size: 16px; }
.cas th, .cas td { padding: 4px 0; text-align: left; font-weight: 400; vertical-align: top; }
.cas th { width: 110px; }
.cas tr[data-danes] { color: var(--rdeca); font-family: var(--f-bold); font-weight: 700; }

.stik { margin-top: 64px; }
.stik__opomba { margin: 16px 0 24px; font-size: 14px; color: var(--siva); }

/* --- Obrazci -------------------------------------------------------------- */

.obrazec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
.obrazec__podnaslov { grid-column: 1 / -1; margin-top: 16px; font-family: var(--f-black); font-weight: 900; font-size: 22px; line-height: 26px; text-transform: uppercase; }
.obrazec__polje { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.obrazec__polje--celo, .obrazec__vrsta, .obrazec__potrditev, .obrazec__dno { grid-column: 1 / -1; }
.obrazec input[type="text"], .obrazec input[type="email"], .obrazec input[type="tel"], .obrazec input[type="date"], .obrazec input[type="time"], .obrazec select, .obrazec textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--obroba); border-radius: 12px; background: var(--bela);
  font-size: 14px; color: var(--tekst);
}
.obrazec select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3938' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.obrazec textarea { min-height: 120px; resize: vertical; }
.obrazec [aria-invalid="true"] { border-color: var(--rdeca); }
.obrazec__vrsta { display: flex; gap: 32px; font-size: 14px; }
.obrazec__vrsta label, .obrazec__potrditev { display: flex; align-items: center; gap: 8px; }
.obrazec__potrditev { align-items: flex-start; font-size: 14px; }
.obrazec input[type="radio"], .obrazec input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rdeca); flex: none; }
.obrazec__napaka { grid-column: 1 / -1; color: var(--rdeca); font-family: var(--f-bold); font-weight: 700; font-size: 14px; }
.obrazec__dno { display: flex; justify-content: flex-start; }
.obrazec__dno .gumb { min-width: 298px; }
.obrazec__uspeh { grid-column: 1 / -1; padding: 24px; background: var(--pas); font-family: var(--f-bold); font-weight: 700; }

/* --- Okno ----------------------------------------------------------------- */

.okno { width: min(100% - 32px, 900px); max-height: calc(100vh - 64px); padding: 48px 40px 40px; border: 0; background: var(--bela); color: var(--tekst); overflow-y: auto; }
.okno::backdrop { background: rgba(0, 0, 0, 0.6); }
.okno__zapri { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.okno__zapri::before, .okno__zapri::after { content: ""; position: absolute; left: 8px; right: 8px; top: 19px; height: 2px; background: var(--tekst); transform: rotate(45deg); }
.okno__zapri::after { transform: rotate(-45deg); }
.okno h1 { margin-bottom: 24px; font-family: var(--f-black); font-weight: 900; font-size: 34px; line-height: 38px; text-transform: uppercase; }
.okno__slika { width: 100%; margin-bottom: 24px; }
.clanek h2, .clanek h3, .clanek h4 { margin: 24px 0 8px; font-family: var(--f-bold); font-weight: 700; font-size: 20px; line-height: 26px; }
.clanek p { margin-top: 12px; }
.clanek ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.clanek li { margin-top: 6px; }
.clanek li::marker { color: var(--rdeca); }
.okno .obrazec { margin-top: 8px; }
.okno__cena { margin: 16px 0 8px; font-size: 18px; }
.okno__cena .vozilo__cena { font-size: 28px; line-height: 32px; }
.okno__h2 { margin: 24px 0 8px; font-family: var(--f-bold); font-weight: 700; font-size: 18px; }
.okno__vrstica { margin-top: 16px; }
.okno__opomba { margin-top: 16px; font-size: 13px; color: var(--siva); }
.podatki { width: 100%; border-collapse: collapse; font-size: 14px; }
.podatki th, .podatki td { padding: 6px 8px; border-bottom: 1px solid var(--obroba); text-align: left; vertical-align: top; }
.podatki th { width: 40%; font-weight: 400; color: var(--siva); }
.oprema { margin-top: 16px; }
.oprema summary { cursor: pointer; font-family: var(--f-bold); font-weight: 700; color: var(--rdeca); }
.oprema ul { columns: 2; column-gap: 24px; margin: 12px 0 0; padding-left: 18px; font-size: 14px; }
.oprema li { break-inside: avoid; margin-bottom: 4px; }
.okno__podnaslov { margin: -16px 0 16px; font-family: var(--f-bold); font-weight: 700; font-size: 18px; }
.okno__dejanja { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* --- Pas s hitrimi dejanji in noga --------------------------------------- */

.cta-pas { background: var(--modrosiva); }
.cta-pas__notranje { display: flex; justify-content: center; gap: 80px; }
.cta-pas__gumb { display: flex; align-items: center; min-height: 77px; padding-left: 44px; border: 0; background-color: transparent; background-position: left center; background-size: 28px; color: var(--bela); font-size: 16px; text-transform: uppercase; cursor: pointer; }
.cta-pas__gumb:hover { text-decoration: underline; }

.noga { background: var(--noga); color: var(--crna); font-size: 14px; line-height: 20px; }
.noga__stolpci { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.noga__naslov { margin-bottom: 16px; font-family: var(--f-bold); font-weight: 700; font-size: 14px; color: var(--rdeca); text-transform: uppercase; }
.noga__presledek { margin-top: 16px; }
.noga a { text-decoration: none; }
.noga a:hover { color: var(--rdeca); }
.noga__povezave li + li { margin-top: 12px; }
.noga__dno { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 16px 48px; text-align: center; font-size: 12px; color: var(--siva); }
.logotipi--noga .logotipi__slika { height: 38px; }

/* --- Odzivnost ------------------------------------------------------------ */

@media (max-width: 1199px) {
  .glava__nav { gap: 28px; }
  .glava__kontakti { gap: 24px; }
  .vozilo { grid-template-columns: 240px 1fr; }
  .vozilo__cene { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--obroba); }
  .vozilo__cene .gumb { margin: 0 0 0 auto; }
  .novice { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  :root { --glava: 80px; --rob: 16px; }
  .logotipi { gap: 14px; }
  .logotipi__slika { height: 28px; }
  .glava__ime { font-size: 15px; line-height: 18px; }
  .glava__znak { gap: 7px; }
  .glava__meni { display: flex; }
  .glava__desno { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column-reverse; align-items: stretch; gap: 16px; padding: 16px; background: var(--bela); border-bottom: 1px solid var(--rdeca); }
  .glava__desno[data-odprt] { display: flex; }
  .glava__nav, .glava__kontakti { flex-direction: column; gap: 14px; }

  .akcija { height: auto; min-height: 0; aspect-ratio: 575 / 600; }
  .akcija__besedilo { padding-top: 24px; }
  .akcija__naslov { font-size: 26px; line-height: 32px; }
  .akcija__podnaslov { font-size: 20px; line-height: 26px; }

  .cta-rob { top: auto; bottom: 0; left: 0; flex-direction: row; transform: none; }
  .cta-rob__gumb { flex: 1; width: auto; height: 64px; padding: 34px 4px 6px; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.25); background-position: center 6px; background-size: 26px; font-size: 11px; line-height: 14px; text-align: center; transition: none; }
  .cta-rob__gumb span, .cta-rob__gumb:hover span, .cta-rob__gumb:focus-visible span { position: static; display: block; width: auto; transform: none; font-size: 11px; line-height: 14px; text-align: center; white-space: normal; }
  .cta-rob__gumb:hover, .cta-rob__gumb:focus-visible { transform: none; background-position: center 6px; }
  .cta-rob__gumb:last-child { border-right: 0; }
  body { padding-bottom: 64px; }

  .iskanje { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .iskanje .filtri { max-width: none; }
  .znamke { grid-template-columns: 1fr; }
  .zaloga { grid-template-columns: 1fr; }
  .zaloga__filtri { position: static; }
  .storitve__trak { grid-auto-columns: 85%; }
  .storitve__trak[data-mreza] { grid-template-columns: 1fr; }
  .kvadrat { display: none; }
  .kontakt__mreza, .noga__stolpci { grid-template-columns: 1fr; }
  .cta-pas__notranje { flex-direction: column; align-items: flex-start; gap: 0; }
  .obrazec { grid-template-columns: 1fr; }
  .okno { padding: 48px 16px 24px; }
}

@media (max-width: 599px) {
  .naslov { font-size: 26px; line-height: 30px; }
  .vozilo { grid-template-columns: 1fr; padding: 16px; }
  .novice { grid-template-columns: 1fr; }
  .novica--velika { grid-column: auto; }
  .gumb--siroko, .obrazec__dno .gumb { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.obrazec [data-podjetje] { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
@media (max-width: 991px) { .obrazec [data-podjetje] { grid-template-columns: 1fr; } }

/* --- Galerija v oknu ------------------------------------------------------ */

.galerija__glavna { position: relative; background: var(--pas); }
.galerija__glavna img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.galerija__puscica { position: absolute; top: 50%; left: 8px; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.9); cursor: pointer; }
.galerija__puscica:not(.galerija__puscica--levo) { left: auto; right: 8px; }
.galerija__puscica::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-right: 2px solid var(--rdeca); border-top: 2px solid var(--rdeca); transform: translateX(-2px) rotate(45deg); }
.galerija__puscica--levo::after { transform: translateX(2px) rotate(-135deg); }
.galerija__stevec { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; background: rgba(0, 0, 0, 0.6); color: var(--bela); font-size: 13px; border-radius: 10px; }
.galerija__sličice { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.galerija__sličica { flex: none; width: 96px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.galerija__sličica img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerija__sličica[aria-current="true"] { border-color: var(--rdeca); }

/* --- Drsnik: fotografije vozil z avto.net (800 px) ------------------------- */

.akcija::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0) 70%); pointer-events: none; }
.akcija__besedilo { z-index: 2; }
.akcija--foto .akcija__ozadje { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(0.55); transform: scale(1.15); }
.akcija--foto .akcija__foto { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: 62%; height: 100%; object-fit: contain; object-position: right center; }
.akcija--foto::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 38%, rgba(0, 0, 0, 0) 60%); }
@media (max-width: 991px) {
  .akcija--foto .akcija__foto { width: 100%; object-position: center bottom; }
  .akcija--foto::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0) 70%); }
  .oprema ul { columns: 1; }
}

.okno h1:focus { outline: none; }

/* --- Okno modela: ključni podatki, lastnosti, pogoni, tabele (zgled: modelne strani citroen.si) --- */

.kljucno { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.kljucno li { padding: 14px 10px; background: var(--pas); text-align: center; }
.kljucno strong { display: block; font-family: var(--f-black); font-weight: 900; font-size: 24px; line-height: 28px; color: var(--rdeca); }
.kljucno span { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--siva); text-transform: uppercase; letter-spacing: 0.02em; }
.lastnosti { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.lastnosti li { padding: 16px; border: 1px solid var(--obroba); border-top: 3px solid var(--rdeca); }
.lastnosti h3 { font-family: var(--f-bold); font-weight: 700; font-size: 16px; line-height: 22px; }
.lastnosti p { margin-top: 6px; font-size: 14px; line-height: 20px; }
.pogoni { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.pogoni li { padding: 16px; background: var(--pas); }
.pogoni h3 { font-family: var(--f-bold); font-weight: 700; font-size: 14px; line-height: 18px; text-transform: uppercase; color: var(--siva); }
.pogoni strong { display: block; margin: 4px 0 8px; font-family: var(--f-black); font-weight: 900; font-size: 26px; line-height: 30px; color: var(--rdeca); }
.pogoni span { display: block; font-size: 14px; line-height: 20px; }
.podatki__skupina { margin: 16px 0 6px; font-family: var(--f-bold); font-weight: 700; font-size: 15px; }
.podatki thead th { width: auto; color: var(--tekst); font-family: var(--f-bold); font-weight: 700; background: var(--pas); }
.oprema__skupina { margin: 14px 0 0; font-family: var(--f-bold); font-weight: 700; font-size: 15px; }
.podatki__ovoj { overflow-x: auto; }
.podatki--siroka { min-width: 520px; }
.podatki--siroka th, .podatki--siroka td { white-space: nowrap; }
.vozilo__opomba { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--siva); }
.znamka > .gumb + .gumb { margin-top: -8px; }
.znamka__tip { margin: 0 0 -4px; font-family: var(--f-bold); font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--siva); text-align: center; }
.znamka__tip-povezava { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.znamka__tip-povezava:hover { color: var(--rdeca); }
.cipi { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.cipi li { padding: 4px 10px; border: 1px solid var(--obroba); border-radius: 14px; font-size: 13px; line-height: 18px; color: var(--siva); }
.cipi strong { color: var(--tekst); font-family: var(--f-bold); font-weight: 700; }
@media (max-width: 599px) {
  .kljucno { grid-template-columns: 1fr 1fr; }
  .lastnosti, .pogoni { grid-template-columns: 1fr; }
}

/* Past za spam (polje botcheck, preveri ga poslji.php): ljudje polja ne vidijo */
.obrazec__past { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.obrazec .gumb:disabled { opacity: 0.6; cursor: wait; }
