/* ==========================================================================
   B&G Avtomobili – stylesheet
   Barve, tipografija in komponente nove spletne strani.
   ========================================================================== */

:root {
  --ink: #141518;        /* glavna barva besedila */
  --ink-2: #4B5058;      /* sekundarno besedilo */
  --muted: #6B7079;      /* oznake, podnapisi (4.9:1 na beli) */
  --line: #E4E5E8;
  --line-2: #ECEDEF;
  --ground: #F6F6F4;     /* topla svetla podlaga */
  --white: #FFFFFF;
  --accent: #D7222B;     /* B&G rdeča – edina poudarjena barva */
  --accent-dark: #B51B22;
  --accent-soft: #F28B90;/* rdeča za temno podlago */
  --dark: #141518;
  --dark-line: #2A2C31;
  --on-dark: #A8ACB3;
  --on-dark-2: #C4C7CC;
  --border: #D9DBE0;
  --font-display: 'Schibsted Grotesk', 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 22px;
  --radius-lg: 28px;
  --container: 1240px;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 640px) { .container { padding-left: 20px; padding-right: 20px; } }

/* ---------- Odseki ---------- */
.section { padding: 104px 0; }
.section--ground { background: var(--ground); }
.section--dark { background: var(--dark); color: var(--white); }
@media (max-width: 768px) { .section { padding: 72px 0; } }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head > p { max-width: 400px; color: var(--ink-2); line-height: 1.6; }
.section--dark .section-head > p { color: var(--on-dark-2); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 28px; }
.stack--xl { gap: 48px; }
.stack--xxl { gap: 56px; }
.max-680 { max-width: 680px; }
.max-620 { max-width: 620px; }
.max-540 { max-width: 540px; }

/* ---------- Tipografija ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.section--dark .eyebrow { color: var(--accent-soft); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; }

.h1, .h2, .h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; overflow-wrap: break-word; }
.h1 { font-weight: 800; font-size: clamp(44px, 5.6vw, 80px); line-height: 0.98; letter-spacing: -0.03em; }
.h1--md { font-size: clamp(40px, 4.8vw, 68px); line-height: 1; }
.h2 { font-weight: 800; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -0.025em; }
.h2--sm { font-size: 30px; letter-spacing: -0.02em; }
.h3 { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.h3--lg { font-size: 24px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.lead--lg { font-size: 19px; }
.section--dark .lead { color: var(--on-dark-2); }
.text { color: var(--ink-2); line-height: 1.6; }
.section--dark .text { color: var(--on-dark-2); }
.text--lg { font-size: 18px; line-height: 1.7; }
.small { font-size: 13px; color: var(--muted); }

/* ---------- Gumbi in povezave ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #2A2C31; color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn--light:hover { border-color: var(--ink); color: var(--ink); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--ground); color: var(--ink); }
.btn--sm { height: 46px; padding: 0 20px; font-size: 15px; }
.btn--md { height: 54px; padding: 0 26px; }
.btn svg { flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px;
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; align-self: flex-start;
  transition: color .15s ease;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow--sm { font-size: 15px; padding-bottom: 2px; }
.section-head .link-arrow { align-self: flex-end; }
.section--dark .link-arrow { color: var(--white); }
.section--dark .link-arrow:hover { color: var(--accent-soft); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--ground); font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none;
  transition: background-color .15s ease;
}
a.pill:hover { background: var(--line-2); color: var(--ink); }
.pill--sm { font-size: 14px; padding: 8px 14px; }

.phone { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; text-decoration: none; color: inherit; }
.phone--lg { font-size: 34px; }
.phone--xl { font-size: 36px; }
.phone:hover { color: var(--accent); }
.section--dark .phone:hover, .card--dark .phone:hover { color: var(--accent-soft); }

/* ---------- Mreže ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.grid--2-wide { grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid--3-sm { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.grid--4-sm { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grid--center { align-items: center; }
.grid--start { align-items: start; }
.grid--stretch { align-items: stretch; }
.gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-48 { gap: 48px; } .gap-56 { gap: 56px; }

/* ---------- Fotografije ---------- */
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.photo--md { border-radius: 24px; }
.photo--sm { border-radius: 20px; }
.photo--fill { aspect-ratio: auto; height: 100%; min-height: 420px; }

.map { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius-lg); background: var(--ground); }
.map--wide { min-height: 460px; border-radius: var(--radius); }
@media (max-width: 768px) { .map { min-height: 320px; } }

/* ---------- Kartice ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; background: var(--white); }
.card--lg { padding: 32px; }
.card--xl { padding: 36px; border-radius: 24px; }
.card--dark { background: var(--dark); color: var(--white); border: 0; }
.card--shadow { border: 0; border-radius: var(--radius-lg); padding: 36px; box-shadow: 0 20px 48px rgba(20, 21, 24, 0.08); }
.card--on-dark { background: var(--white); color: var(--ink); border: 0; border-radius: var(--radius-lg); padding: 36px; gap: 24px; }
.card .label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card--dark .label { color: var(--on-dark); }
.card--dark .text { color: var(--on-dark-2); }

.icon-box { width: 52px; height: 52px; border-radius: 16px; background: var(--ground); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--ink); }
.icon-box--lg { width: 56px; height: 56px; border-radius: 18px; }
.icon-box--dark { background: var(--dark-line); color: var(--white); }

.avatar {
  width: 64px; height: 64px; border-radius: 999px; background: var(--ground); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--ink);
}
.avatar--xl { width: 88px; height: 88px; font-size: 32px; }
.avatar--lg { width: 80px; height: 80px; font-size: 30px; }
.avatar--md { width: 72px; height: 72px; font-size: 28px; }
.avatar--dark { background: var(--ink); color: var(--white); }

.person { display: flex; align-items: center; gap: 18px; }
.person__name { display: flex; flex-direction: column; gap: 2px; }
.person__name b { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.person__name span { color: var(--muted); font-weight: 600; }

.feature-row { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.feature-row:last-of-type { border-bottom: 1px solid var(--line); }
.feature-row .stack { gap: 6px; }

.num-label { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; color: var(--accent); }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: 56px; letter-spacing: -0.03em; line-height: 1; }
.stat .lbl { font-size: 15px; color: var(--muted); font-weight: 600; }
.stat--sm { gap: 2px; }
.stat--sm .num { font-size: 28px; letter-spacing: -0.02em; }
.stat--sm .lbl { font-size: 13px; }
.trust { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 8px; }
.vdivider { width: 1px; background: var(--border); }

.logo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 12px; }
.logo-tile { background: var(--white); border-radius: 14px; height: 72px; display: flex; align-items: center; justify-content: center; padding: 14px; }
.logo-tile img { max-height: 34px; max-width: 100%; width: auto; }
.logo-tile img.tall { max-height: 44px; }
.logo-tile--lg { height: 140px; border-radius: 20px; padding: 24px; transition: transform .2s ease, box-shadow .2s ease; }
.logo-tile--lg img { max-height: 40px; }
.logo-tile--lg img.tall { max-height: 64px; }
a.logo-tile--lg:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(20, 21, 24, 0.08); }
.logo-tile--inline { height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; display: inline-flex; }
.logo-tile--inline img { max-height: 26px; }
.logo-tile--inline img.tall { max-height: 36px; height: 36px; }

.hours { display: flex; flex-direction: column; gap: 8px; }
.hours--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px 32px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hours-row { display: flex; justify-content: space-between; gap: 16px; }
.hours-row span { color: var(--ink-2); }
.hours-row b { font-weight: 700; }
.card--dark .hours-row span { color: var(--on-dark-2); }

.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.checklist .check { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--ground); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }

.contact-line { display: flex; gap: 14px; align-items: center; }
.contact-line svg { flex: none; }
.contact-line a { font-weight: 700; text-decoration: none; }
.contact-line a:hover { color: var(--accent); }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Glava ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .container { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: flex; align-items: center; padding: 12px 0; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; transition: color .15s ease; }
.nav a:hover, .nav a.is-active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-menu { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }
@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .btn--phone { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(20, 21, 24, 0.08);
  }
  .nav a { padding: 16px 4px; border-top: 1px solid var(--line-2); font-size: 17px; }
  .nav a:first-child { border-top: 0; }
  .site-header.is-open .nav { display: flex; }
}
@media (max-width: 420px) { .header-actions .btn--sm { padding: 0 16px; } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; }
.hero__grid { padding-bottom: 64px; }
.hero--page { padding: 64px 0; }
.hero--page .hero__grid { padding-bottom: 0; } /* enak razmik zgoraj in spodaj */
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 768px) { .hero { padding: 40px 0 0; } .hero__grid { padding-bottom: 40px; } .hero--page { padding: 48px 0; } }

/* ---------- Storitve (kartice s fotografijo) ---------- */
.service-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ink); }
.service-card .photo { border-radius: 20px; transition: transform .35s ease; }
.service-card .photo-wrap { overflow: hidden; border-radius: 20px; }
.service-card:hover .photo { transform: scale(1.03); }
.service-card:hover .h3 { color: var(--accent); }
.service-card .stack { gap: 6px; }

/* ---------- Storitve (vrstice na strani Servis) ---------- */
.service-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service-row__photo { width: 100%; max-width: 260px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.service-row__body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.service-row__time { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.service-row__time svg { flex: none; }
.service-row__cta { justify-self: start; }
.service-row__body p { max-width: 520px; }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 260px 1fr auto; gap: 32px; }
  .service-row__cta { justify-self: end; }
}

/* ---------- Koraki ---------- */
.steps-list { display: flex; flex-direction: column; }
.steps-list > div { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps-list > div:last-child { border-bottom: 1px solid var(--line); }
.steps-list .num-label { padding-top: 4px; font-size: 15px; flex: none; }
.steps-list .h3 { font-size: 20px; }

/* ---------- Obrazci ---------- */
.form-card { background: var(--ground); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 480px) { .form-card { padding: 24px 20px; border-radius: 22px; } }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 52px; border: 1.5px solid var(--border); border-radius: 12px; padding: 0 14px;
  font: inherit; font-size: 15px; background: var(--white); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; }
.select {
  -webkit-appearance: none; appearance: none; padding-right: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23141518' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; background-size: 16px 16px;
}
.select::-ms-expand { display: none; }
.field { min-width: 0; } /* polje v mreži se ne sme razširiti čez okvir */
.input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
.input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 21, 24, 0.08); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.checkbox > span { flex: 1 1 auto; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.form-msg { display: none; padding: 14px 18px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-weight: 600; }
.form-msg.is-visible { display: block; }
.form-msg--error { border-color: var(--accent); color: var(--accent-dark); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.booking { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 960px) { .booking { grid-template-columns: 2fr 1fr; } }

/* ---------- Galerija ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 24px; }
.gallery--tight { gap: 20px; }

/* ---------- Noga ---------- */
.site-footer { background: var(--dark); color: var(--white); }
.site-footer--bordered { border-top: 1px solid var(--dark-line); }
.site-footer .container { padding-top: 52px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col--brand { gap: 20px; }
.footer-col--company { gap: 6px; line-height: 1.45; }
.footer-col--company .footer-title { margin-bottom: 6px; } /* prva vrstica poravnana z ostalimi stolpci */
.footer-col--brand img { height: 22px; width: auto; align-self: flex-start; }
.footer-col--brand p { color: var(--on-dark); line-height: 1.6; max-width: 300px; }
.footer-col a { color: var(--white); text-decoration: none; transition: color .15s ease; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-title { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark); }
.footer-muted { color: var(--on-dark); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-col--brand .footer-slogan { color: var(--white); font-weight: 700; font-size: 18px; line-height: 1.4; max-width: 340px; }
.footer-col--brand .footer-contact { font-weight: 700; align-self: flex-start; }
.footer-col--brand .footer-contact + .footer-contact { margin-top: -10px; }
.footer-col--brand .footer-social { align-self: flex-start; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--white); }
.checkbox a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.checkbox a:hover { color: var(--accent); }

/* ---------- Pravna stran (izjava o varstvu osebnih podatkov) ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; margin: 10px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); font-weight: 600; }
.legal .legal-meta { font-size: 14px; color: var(--muted); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 8px; } }
/* Dolge besede v naslovu (npr. ruščina) morajo na telefonu ostati v okviru zaslona */
@media (max-width: 640px) { .legal .h1 { font-size: clamp(24px, 8vw, 40px); } }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--dark-line); padding-top: 20px; color: var(--on-dark); font-size: 14px; }
.footer-bottom img { height: 48px; width: auto; opacity: 0.9; }

/* ---------- Animacija ob drsenju ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .service-card .photo { transition: none; }
}

/* ---------- WhatsApp / Viber ---------- */
.chat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chat { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.chat svg { flex: none; }
.chat--wa { background: #E7F5EC; color: #136B39; }
.chat--wa:hover { background: #D2EDDC; color: #0E5A2F; }
.chat--vb { background: #EFEBFA; color: #56399E; }
.chat--vb:hover { background: #E1D9F5; color: #452E86; }
.btn--wa { background: #E7F5EC; color: #136B39; }
.btn--wa:hover { background: #D2EDDC; color: #0E5A2F; }
.btn--vb { background: #EFEBFA; color: #56399E; }
.btn--vb:hover { background: #E1D9F5; color: #452E86; }

/* ---------- Poravnave ---------- */
.card--on-dark .text { color: var(--ink-2); }
.card > .link-arrow:last-child, .card > .footer-social:last-child, .card > .chat-row:last-child, .card > .tags:last-child { margin-top: auto; }
.hours-row b { white-space: nowrap; }

/* ---------- Naslovna fotografija (domača stran) ---------- */
.photo-hero { position: relative; overflow: hidden; isolation: isolate; color: var(--white); background: var(--dark); }
.photo-hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.photo-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% 40%);
  opacity: 0; transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1);
}
.photo-hero__img.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .photo-hero__img { transform: scale(1.06); transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1), transform 0s linear 1.2s; }
  .photo-hero__img.is-active { transform: scale(1); transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1), transform 8s cubic-bezier(.2, .6, .3, 1); }
}
.photo-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,15,18,0.86) 0%, rgba(14,15,18,0.66) 38%, rgba(14,15,18,0.22) 72%, rgba(14,15,18,0.08) 100%),
    linear-gradient(0deg, rgba(14,15,18,0.7) 0%, rgba(14,15,18,0) 34%); }
.photo-hero__inner { min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); display: flex; flex-direction: column; justify-content: center; gap: 48px; padding-top: 72px; padding-bottom: 40px; }
.photo-hero__content { max-width: 900px; display: flex; flex-direction: column; gap: 24px; margin-top: auto; }
.photo-hero__chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.photo-hero__chip .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.photo-hero__title { color: var(--white); font-size: clamp(40px, 5vw, 74px); }
@media (min-width: 900px) { .photo-hero__title span { display: block; white-space: nowrap; } }
.photo-hero__lead { font-size: 19px; line-height: 1.6; color: rgba(255,255,255,0.86); max-width: 560px; }
.photo-hero__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.18); }
.photo-hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.photo-hero .stat--sm .num { color: var(--white); }
.photo-hero .stat--sm .lbl { color: rgba(255,255,255,0.72); }
.btn--outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
@media (max-width: 768px) {
  .photo-hero__img { object-position: var(--pos-m, var(--pos, 78% 40%)); }
  .photo-hero::after { background: linear-gradient(180deg, rgba(14,15,18,0.55) 0%, rgba(14,15,18,0.72) 45%, rgba(14,15,18,0.88) 100%); }
  .photo-hero__inner { min-height: calc(100svh - 84px); padding-top: 48px; padding-bottom: 28px; gap: 36px; }
  .photo-hero__lead { font-size: 17px; }
  .photo-hero__stats { gap: 24px; }
}

/* ---------- Delovni čas v naslovni fotografiji ---------- */
.photo-hero__hours { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding-left: 27px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.78); }
.photo-hero__hours svg { position: absolute; left: 0; top: 2px; color: rgba(255,255,255,0.9); }
@media (max-width: 560px) { .photo-hero__hours { flex-direction: column; align-items: flex-start; gap: 2px; } .photo-hero__hours .sep { display: none; } }
.photo-hero__hours b { color: var(--white); font-weight: 700; margin-left: 4px; }
.photo-hero__hours .sep { color: rgba(255,255,255,0.4); }
.photo-hero__foot { justify-content: space-between; }

/* ---------- Menjava fotografij v naslovni fotografiji ---------- */
.hero-dots { display: flex; align-items: center; gap: 0; margin-right: -8px; }
.hero-dots__btn { width: 40px; height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; }
.hero-dots__btn span { position: relative; display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.32); overflow: hidden; transition: background-color .2s ease; }
.hero-dots__btn:hover span { background: rgba(255,255,255,0.6); }
.hero-dots__btn span::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left center; }
.hero-dots__btn.is-active span::after { transform: scaleX(1); }
.photo-hero.is-playing .hero-dots__btn.is-active span::after { animation: heroProgress var(--hero-dur, 6s) linear both; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-dots__pause { width: 44px; height: 44px; margin-left: 4px; border: 0; border-radius: 999px; background: none; color: rgba(255,255,255,0.85); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .15s ease, background-color .15s ease; }
.hero-dots__pause:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.hero-dots__pause .i-play { display: none; }
.photo-hero.is-paused .hero-dots__pause .i-pause { display: none; }
.photo-hero.is-paused .hero-dots__pause .i-play { display: block; }
.hero-dots__btn:focus-visible, .hero-dots__pause:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 6px; }
html:not(.js) .hero-dots, .hero-dots[hidden] { display: none; }
@media (max-width: 560px) {
  .hero-dots { width: 100%; margin: -6px 0 -10px -6px; }
  .hero-dots__btn { width: 34px; padding: 0 5px; }
  .hero-dots__pause { margin-left: auto; margin-right: -10px; }
}

/* ---------- Telefon: dovolj veliki cilji za prst ---------- */
@media (max-width: 768px) {
  .chat { height: 44px; padding: 0 18px; font-size: 14.5px; }
  .chat-row { gap: 10px; }
  .link-arrow { padding-top: 12px; }
  .link-arrow--sm { padding-top: 15px; }
  a.phone { display: inline-block; padding: 4px 0; }
  .contact-line a, .card a[href^="mailto"], .card .footer-social { display: inline-flex; align-items: center; min-height: 44px; }
  .checkbox { align-items: center; }
  .checkbox input { width: 22px; height: 22px; margin: 0; }
}

/* ==========================================================================
   Telefon – kompaktne postavitve
   ========================================================================== */
@media (max-width: 768px) {
  .section { padding: 56px 0; }

  /* Naslovna fotografija */
  .photo-hero__title { font-size: clamp(31px, 8.6vw, 44px); line-height: 1.04; }
  .photo-hero__title span { display: block; }
  .photo-hero__inner { gap: 28px; padding-top: 40px; }
  .photo-hero__content { gap: 20px; }
  .photo-hero .btn-row .btn, .hero .btn-row .btn { flex: 1 1 100%; }
  .photo-hero__stats, .trust { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; }
  .trust .vdivider { display: none; }
  .photo-hero .stat--sm .num, .trust .stat--sm .num { font-size: 24px; }
  .photo-hero .stat--sm .lbl, .trust .stat--sm .lbl { font-size: 12.5px; line-height: 1.3; max-width: 110px; }

  /* Storitve na naslovnici: vrstice s sličico */
  .service-card { display: grid; grid-template-columns: 96px 1fr; gap: 0 16px; align-items: center; }
  .service-card .photo-wrap, .service-card .photo { border-radius: 14px; }
  .service-card .photo { aspect-ratio: 1 / 1; }
  .service-card .h3 { font-size: 18px; }
  .service-card .text { font-size: 14.5px; line-height: 1.5; }
  #storitve .grid--3 { gap: 16px; }

  /* Seznam storitev (stran Servis) */
  .service-row { grid-template-columns: 96px 1fr; gap: 10px 16px; align-items: start; padding: 22px 0; }
  .service-row__photo { grid-row: 1 / span 2; aspect-ratio: 1 / 1; border-radius: 14px; }
  .service-row__body .h3 { font-size: 19px; }
  .service-row__body .text { font-size: 14.5px; line-height: 1.5; }
  .service-row__cta { grid-column: 2; height: 42px; padding: 0 16px; }

  /* Osebe: začetnica levo, podatki desno */
  .person-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 12px; align-items: center; padding: 20px; }
  .person-card > .avatar { width: 52px; height: 52px; font-size: 20px; grid-row: span 1; }
  .person-card > :not(.avatar) { grid-column: 2; }
  .person-card > .chat-row, .person-card > .tags { grid-column: 1 / -1; }
  .person-card .phone { font-size: 22px; }
  .person-card .person__name b { font-size: 19px !important; }
  .person-card > a.phone { grid-column: 1 / -1; }
  .grid--4.gap-20 { gap: 12px; }

  /* Kartice s podatki: ikona levo */
  .info-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 8px; align-items: start; padding: 20px; }
  .info-card > .icon-box { grid-row: 1 / span 4; width: 44px; height: 44px; }
  .info-card > :not(.icon-box) { grid-column: 2; justify-self: start; }
  .info-card > .hours, .info-card > .stack { justify-self: stretch; }
  .info-card .h3 { font-size: 19px; }

  /* Gumbi v karticah: enakomerno */
  .card--on-dark .btn-row, .card--shadow .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .card--on-dark .btn-row > :first-child, .card--shadow .btn-row > :last-child { grid-column: 1 / -1; }
  .card--on-dark .btn-row .btn, .card--shadow .btn-row .btn { width: 100%; padding: 0 12px; }
  .card--on-dark, .card--shadow { padding: 24px; }

  /* Logotipi zavarovalnic 2 × 2 */
  .logo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .logo-grid .logo-tile--lg { height: 92px; }

  /* Noga v dveh stolpcih */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-col--brand, .footer-col--company { grid-column: 1 / -1; }
  .site-footer .container { padding-top: 40px; gap: 32px; }
}

/* ---------- Kartice oseb: številke v isti vrsti, tudi če se oznaka prelomi v dve vrstici ---------- */
.person-card > .stack, .person-card > .person__name { flex: 1 1 auto; }
.person-card > .stack > .phone { margin-top: auto; }
.person-card .pill--sm { height: 36px; padding-top: 0; padding-bottom: 0; }
@media (max-width: 768px) {
  .person-card { grid-template-rows: 1fr; grid-auto-rows: auto; }
  .person-card > .stack { align-self: stretch; }
}
/* Namizje: vrstice kartic (ikona, oznaka, številka, gumbi) poravnane čez celo vrsto */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 769px) {
    .grid--4 > .person-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; }
    .grid--4 > .person-card > .stack { display: contents; }
    .grid--4 > .person-card > .stack > .phone { margin-top: -16px; }
  }
  @media (max-width: 768px) {
    .grid--4 > .person-card { grid-template-rows: subgrid; grid-row: span 3; }
    .grid--4 > .person-card:has(> .stack) > .avatar { grid-row: 1 / span 2; }
    .grid--4 > .person-card > .stack { display: contents; }
    .grid--4 > .person-card > .stack > * { grid-column: 2; }
    .grid--4 > .person-card > .stack > .label { align-self: end; }
    .grid--4 > .person-card > .stack > .phone { align-self: start; margin-top: -8px; }
  }
}

/* ---------- Uvoz vozil ---------- */
.uvoz-steps > div { padding: 24px 0; }
.uvoz-steps .num-label { min-width: 28px; }
#uvoz .checklist li { font-weight: 600; }
#uvoz .label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 768px) { .uvoz-steps > div { padding: 18px 0; gap: 14px; } .uvoz-steps .h3 { font-size: 18px; } }

.brand { flex: none; }
.nav a { white-space: nowrap; }
@media (max-width: 640px) {
  .brand { flex: 0 1 170px; min-width: 0; min-height: 44px; }
  .brand img { width: 100%; height: auto; max-width: 170px; }
  .header-actions { flex: none; gap: 8px; }
  .header-actions .btn--sm { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 768px) { .section .btn-row > .btn { flex: 1 1 auto; } }

/* ---------- Izbira jezika ---------- */
.lbl-short { display: none; }
@media (max-width: 640px) { .lbl-long { display: none; } .lbl-short { display: inline; } }
.lang { position: relative; flex: none; }
.lang > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
  height: 46px; padding: 0 6px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: .04em;
  cursor: pointer; user-select: none; -webkit-user-select: none; transition: color .15s ease;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::marker { content: ''; }
.lang > summary:hover, .lang[open] > summary { color: var(--accent); }
.lang > summary .chev { opacity: .55; transition: transform .15s ease; }
.lang[open] > summary .chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 210px; margin: 0; padding: 6px;
  list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 48px rgba(20, 21, 24, 0.12);
}
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 0 14px;
  border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
}
.lang__menu a:hover { background: var(--ground); }
.lang__menu a[aria-current] { color: var(--accent); }
.lang__menu a span { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.lang__menu a[aria-current] span { color: var(--accent); }
@media (min-width: 1241px) {
  .nav { gap: 24px; }
  .nav a:first-child { display: none; } /* na namizju vodi domov logotip */
}
@media (max-width: 640px) {
  .site-header .container { gap: 12px; }
  .header-actions { gap: 6px; }
  .lang > summary { height: 44px; padding: 0 6px; gap: 3px; font-size: 14px; }
  .lang > summary .globe { display: none; }
}
@media (max-width: 380px) {
  .lang > summary { padding: 0 5px; }
  .header-actions .btn--sm { padding: 0 12px; }
}
@media (max-width: 359px) { .header-actions .btn--primary { display: none; } }

/* Cirilica (ruščina, srbščina): Schibsted Grotesk nima cirilskih črk */
:root:lang(ru), :root:lang(sr) { --font-display: 'Inter Tight', 'Helvetica Neue', Helvetica, sans-serif; }
:root:lang(ru) :is(.h1, .h2, .h2--sm, .phone, .person__name b, .stat .num),
:root:lang(sr) :is(.h1, .h2, .h2--sm, .phone, .person__name b, .stat .num) { letter-spacing: -0.012em; }
:root:lang(ru) .h3, :root:lang(sr) .h3 { letter-spacing: 0; }

/* Telefon: v glavi namesto gumba »Servis« okrogel gumb s slušalko, ki pokliče podjetje */
@media (max-width: 640px) {
  .header-actions .btn--phone { display: inline-flex; width: 46px; height: 46px; padding: 0; border: 0; background: var(--accent); color: var(--white); }
  .header-actions .btn--phone:hover { background: var(--accent-dark); color: var(--white); }
  .header-actions .btn--primary { display: none; }
}
