/* Avtocenter Mića — mobile-first */

:root {
  color-scheme: dark;
  --gold: #e08524;
  --gold-2: #f3b15a;
  --gold-dim: rgba(224, 133, 36, 0.16);
  --ink: #f3eee6;
  --muted: #b7b0a4;
  --bg: #0c0b09;
  --bg-2: #141310;
  --bg-3: #1c1a16;
  --line: rgba(243, 238, 230, 0.12);
  --shade: rgba(12, 11, 9, 0.55);
  --nav: rgba(12, 11, 9, 0.72);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4.5vw, 2.5rem);
  --max: 1120px;
  --dock: 5.25rem;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: "Figtree", "Outfit", system-ui, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --gold: #c46e12;
  --gold-2: #e08524;
  --gold-dim: rgba(196, 110, 18, 0.12);
  --ink: #161410;
  --muted: #5e584f;
  --bg: #f3eee6;
  --bg-2: #fffaf3;
  --bg-3: #ebe4d8;
  --line: rgba(22, 20, 16, 0.12);
  --shade: rgba(243, 238, 230, 0.2);
  --nav: rgba(243, 238, 230, 0.78);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html.no-js {
  /* JS removes this; without JS, skip intro lock */
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: #0c0b09;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: #0c0b09;
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="light"] .grain {
  opacity: 0.07;
  mix-blend-mode: multiply;
}

.wrap {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 7.4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
}

.body {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 38rem;
}

.gold {
  color: var(--gold);
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin: 1.4rem 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  touch-action: manipulation;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex: none;
}

.btn-gold {
  background: var(--gold);
  color: #0c0b09;
}

.btn-gold:hover {
  transform: translateY(-2px);
  background: var(--gold-2);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(243, 238, 230, 0.06);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Intro */

.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: #0c0b09;
  pointer-events: none;
  animation: introOut 1.15s var(--ease) 0.85s forwards;
}

.intro-star {
  width: 88px;
  color: var(--gold);
  animation: starIn 0.9s var(--ease) both;
  filter: drop-shadow(0 0 24px rgba(224, 133, 36, 0.55));
}

html.is-ready .intro,
html.no-js .intro {
  display: none;
}

@keyframes starIn {
  from { opacity: 0; transform: scale(0.6) rotate(-12deg); }
  to { opacity: 1; transform: none; }
}

@keyframes introOut {
  to { opacity: 0; visibility: hidden; }
}

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem var(--pad);
  padding-top: max(0.85rem, env(safe-area-inset-top));
  color: #f3eee6;
  transition: color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Glass lives on a layer so backdrop-filter cannot trap the mobile drawer. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
}

.nav.is-scrolled {
  color: var(--ink);
}

.nav.is-scrolled::before {
  background: var(--nav);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}

.nav.is-open {
  z-index: 80;
  color: #f3eee6;
}

.nav.is-open::before {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav.is-open .seg {
  border-color: rgba(243, 238, 230, 0.2);
  background: rgba(0, 0, 0, 0.28);
}

.nav.is-open .seg-btn {
  color: rgba(243, 238, 230, 0.72);
}

.nav.is-open .seg-btn.is-on {
  color: #0c0b09;
}

.nav.is-open .icon-btn {
  border-color: rgba(243, 238, 230, 0.2);
}

.nav-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  z-index: 2;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-wordmark {
  max-width: 7.6em;
}

@media (min-width: 480px) {
  .nav-brand {
    font-size: 1.05rem;
  }

  .nav-wordmark {
    max-width: none;
    white-space: nowrap;
  }
}

.nav-links {
  display: none;
}

.nav-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: rgba(0, 0, 0, 0.2);
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 1.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.seg-btn.is-on {
  background: var(--gold);
  color: #0c0b09;
}

.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.icon-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; fill: currentColor; stroke: none; }

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}

.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1079px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: fixed;
    inset: 0;
    z-index: 1;
    padding: calc(5.75rem + env(safe-area-inset-top)) var(--pad) calc(var(--dock) + 1.75rem + env(safe-area-inset-bottom));
    background: #0c0b09;
    color: #f3eee6;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.55s var(--ease), visibility 0.55s;
  }

  .nav-links.is-open {
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    font-family: var(--display);
    font-size: clamp(1.45rem, 6.2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: left;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(243, 238, 230, 0.1);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--gold-2);
  }
}

body.is-menu-open .dock {
  opacity: 0;
  pointer-events: none;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #f3eee6;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken 22s var(--ease) both;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.25) 0%, rgba(12, 11, 9, 0.15) 32%, rgba(12, 11, 9, 0.88) 100%);
}

[data-theme="light"] .hero-shade {
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.2) 0%, rgba(12, 11, 9, 0.12) 28%, rgba(12, 11, 9, 0.78) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad) 5.5rem;
  max-width: 44rem;
}

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.35rem, 10vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.15rem;
}

.hero-title span {
  display: block;
}

.hero-lead {
  color: rgba(243, 238, 230, 0.82);
  margin: 0 0 1.6rem;
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-scroll {
  position: absolute;
  right: var(--pad);
  bottom: 1.6rem;
  z-index: 1;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(243, 238, 230, 0.7);
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.4rem;
  margin: 0.45rem auto 0;
  background: var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes ken {
  from { transform: scale(1.12) translateY(-1.5%); }
  to { transform: scale(1) translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Marquee */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: drift 28s linear infinite;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee-track span::before {
  content: "✦";
  color: var(--gold);
  margin-right: 2.4rem;
}

@keyframes drift {
  to { transform: translateX(-50%); }
}

/* Sections */

.section {
  padding: clamp(3.5rem, 10vw, 6.5rem) 0;
  scroll-margin-top: 4.75rem;
}

.section-head {
  margin-bottom: 2rem;
}

.split {
  display: grid;
  gap: 2rem;
}

.about-visuals {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.7rem;
  align-items: end;
}

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 1.15rem;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 1.1s var(--ease);
}

.shot:hover img {
  transform: scale(1.06);
}

.shot-sub {
  translate: 0 12%;
}

/* Services */

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.35rem 1.3rem 1.5rem;
  min-height: 12.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: inset 3px 0 0 var(--gold);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.service-card .num {
  font-family: var(--display);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  margin-bottom: auto;
}

.service-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 1.4rem 0 0.4rem;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Foreigners */

.foreigners {
  position: relative;
  overflow: hidden;
  color: #f3eee6;
}

.foreign-bg {
  position: absolute;
  inset: 0;
}

.foreign-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.foreigners::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 9, 0.55), rgba(12, 11, 9, 0.88));
}

.foreigners .wrap {
  position: relative;
  z-index: 1;
}

.foreigners .lead {
  color: rgba(243, 238, 230, 0.86);
  font-size: 1.12rem;
  max-width: 36rem;
}

.fx-points {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.fx-points li {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(243, 238, 230, 0.14);
  border-radius: 0.9rem;
  background: rgba(12, 11, 9, 0.35);
  backdrop-filter: blur(10px);
}

.fx-points li::before {
  content: "→  ";
  color: var(--gold-2);
}

.foreigners .note {
  color: rgba(243, 238, 230, 0.75);
}

/* Process */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(var(--gold), transparent);
}

.step {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 1rem;
  padding: 0.35rem 0 1.6rem;
  position: relative;
}

.step-n {
  font-family: var(--display);
  font-weight: 800;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.step h3 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Why */

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  counter-reset: why;
}

.why-list li {
  counter-increment: why;
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 1.1rem 1.15rem 4.2rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.why-list li::before {
  content: counter(why, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--display);
  color: var(--gold);
  font-weight: 800;
}

.why-list strong {
  font-family: var(--display);
  font-size: 1.15rem;
}

.why-list span {
  color: var(--muted);
}

/* Gallery */

.film {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 var(--pad) 0.4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.film::-webkit-scrollbar { display: none; }

.film figure {
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 1.1rem;
}

.film img {
  width: 100%;
  height: 52vw;
  max-height: 420px;
  object-fit: cover;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.2rem 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.05rem;
  color: var(--gold);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

/* Location / map */

.addr {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
}

.addr a {
  border-bottom: 1px solid var(--gold);
}

.map-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  min-height: 240px;
}

.map-facade img,
.map-facade iframe {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.map-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gold);
  color: #0c0b09;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.map-cta svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.map-facade.is-live .map-cta { display: none; }

/* Contact */

.contact-points {
  list-style: none;
  margin: 1.2rem 0;
  padding: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.contact-points a {
  border-bottom: 1px solid transparent;
}

.contact-points a:hover {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.inquiry {
  display: grid;
  gap: 0.85rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  padding: 1.2rem;
}

.inquiry label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.inquiry input,
.inquiry select,
.inquiry textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.8rem 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--ink);
}

.inquiry textarea {
  resize: vertical;
  min-height: 7rem;
}

.inquiry .btn {
  justify-content: center;
  margin-top: 0.3rem;
}

/* Footer */

.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.foot-brand p {
  margin: 0.15rem 0;
}

.foot-note {
  margin: 0;
  opacity: 0.7;
}

/* Dock */

.dock {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: max(0.7rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-2);
  background: color-mix(in srgb, var(--bg-2) 88%, black);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.dock a + a {
  border-left: 1px solid var(--line);
}

.dock svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: var(--gold);
}

/* Reveals — painted by default so content never depends on JS */

.hero .reveal {
  animation: rise 0.9s var(--ease) both;
}
.hero .d1 { animation-delay: 0.15s; }
.hero .d2 { animation-delay: 0.28s; }
.hero .d3 { animation-delay: 0.42s; }
.hero .d4 { animation-delay: 0.55s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html.anim .reveal:not(.is-in),
  html.anim .reveal-stagger:not(.is-in) > * {
    opacity: 0;
    transform: translateY(24px);
  }

  html.anim .reveal,
  html.anim .reveal-stagger > * {
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  }

  html.anim .reveal.is-in,
  html.anim .reveal-stagger.is-in > * {
    opacity: 1;
    transform: none;
  }

  html.anim .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
  html.anim .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
  html.anim .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; }
  html.anim .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.32s; }
  html.anim .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.40s; }
  html.anim .reveal-stagger.is-in > *:nth-child(7) { transition-delay: 0.48s; }
  html.anim .reveal-stagger.is-in > *:nth-child(8) { transition-delay: 0.56s; }

  html.anim .hero .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Tablet+ */

@media (min-width: 720px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .film {
    grid-auto-columns: 42%;
  }

  .film img {
    height: 280px;
  }

  .map-facade img,
  .map-facade iframe {
    height: 340px;
  }

  .fx-points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1080px) {
  body {
    padding-bottom: 0;
  }

  .nav-brand {
    font-size: 1.1rem;
  }

  .dock {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    z-index: auto;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    background: none;
    gap: 0.75rem 0.95rem;
    overflow: visible;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    display: inline;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: rgba(243, 238, 230, 0.82);
    padding: 0;
    border-bottom: 0;
    text-align: center;
  }

  .nav-links a:hover {
    color: var(--gold-2);
  }

  .nav.is-scrolled .nav-links a {
    color: var(--muted);
  }

  .nav.is-scrolled .nav-links a:hover {
    color: var(--ink);
  }

  html.page-inner .nav-links a,
  .nav.is-scrolled .nav-links a.is-on {
    color: var(--ink);
  }

  .menu-btn {
    display: none;
  }

  .hero-copy {
    padding: 0 6vw 6rem;
    max-width: 52rem;
  }

  .split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 4rem;
  }

  .about .split {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-card {
    min-height: 16.5rem;
  }

  .film {
    grid-auto-columns: 28%;
  }

  .why-list {
    grid-template-columns: 1fr 1fr;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro, .intro-star, .hero-media img, .marquee-track, .hero .reveal, .hero-scroll::after,
  .reveal, .reveal-stagger > * {
    animation: none !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Inner pages (zaloga, vozilo, novice) */

.page-hero {
  padding: calc(5.8rem + env(safe-area-inset-top)) 0 2.4rem;
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.35), var(--bg) 78%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}

[data-theme="light"] .page-hero {
  background:
    linear-gradient(180deg, rgba(243, 238, 230, 0.2), var(--bg) 78%),
    var(--bg-2);
}

.page-hero .wrap {
  max-width: 46rem;
}

.page-hero .display {
  margin-bottom: 0.7rem;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.crumb a:hover {
  color: var(--gold);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

a.service-card {
  color: inherit;
}

.service-card .more {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.offer-grid {
  display: grid;
  gap: 0.85rem;
}

.offer-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.4rem 1.3rem 1.5rem;
}

.offer-card h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}

.offer-card p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.partners li {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.addr-block {
  margin: 0 0 1.1rem;
}

.addr-block .label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.addr-block p {
  margin: 0;
  color: var(--muted);
}

.addr-block .addr {
  margin: 0.15rem 0 0.25rem;
}

.inquiry[hidden],
[data-extra-sell][hidden] {
  display: none;
}

.photo-hint {
  margin: 0.2rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
}

.photo-hint a {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.photo-hint a:hover {
  border-bottom-color: var(--gold);
}

/* Stock */

.stock-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.stock-filters {
  display: grid;
  gap: 0.7rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 0.95rem;
}

.stock-filters summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  list-style: none;
}

.stock-filters summary::-webkit-details-marker { display: none; }

.stock-filter-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.stock-filters label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stock-filters input,
.stock-filters select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--ink);
  min-height: 2.8rem;
}

.stock-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.stock-grid {
  display: grid;
  gap: 0.9rem;
}

.stock-card {
  display: grid;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  overflow: hidden;
  color: inherit;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.stock-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.stock-card img,
.stock-card .stock-ph {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-3);
}

.stock-ph {
  display: grid;
  place-items: center;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.stock-card-body {
  padding: 1rem 1.05rem 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.stock-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.stock-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--gold);
}

.stock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.stock-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 2rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: 1.2rem;
  background: var(--bg-2);
  color: var(--muted);
  text-align: center;
}

.stock-empty strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
}

.stock-empty p {
  margin: 0;
  max-width: 38rem;
}

.stock-empty .btn {
  margin-top: 0.35rem;
}

.stock-toolbar[hidden],
.stock-empty[hidden] {
  display: none !important;
}

.page-hero .btn-row {
  margin-top: 1.15rem;
}

.stock-home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Vehicle detail */

.vehicle {
  display: grid;
  gap: 1.5rem;
}

.vehicle-gallery {
  display: grid;
  gap: 0.55rem;
}

.vehicle-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1.1rem;
  background: var(--bg-3);
}

.vehicle-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.vehicle-thumbs button {
  padding: 0;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.vehicle-thumbs img {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.vehicle-thumbs button.is-on {
  border-color: var(--gold);
}

.vehicle-facts {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0;
}

.vehicle-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}

.vehicle-facts dt {
  color: var(--muted);
  margin: 0;
}

.vehicle-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.equip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.equip li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Articles */

.article-grid {
  display: grid;
  gap: 0.9rem;
}

.article-card {
  display: grid;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  overflow: hidden;
  color: inherit;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.article-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-card-body {
  padding: 1.05rem 1.1rem 1.2rem;
}

.article-card time {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.article-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  letter-spacing: -0.03em;
  margin: 2rem 0 0.7rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
}

.prose a:hover {
  border-bottom-color: var(--gold);
}

.hero-cta .btn-ghost {
  color: #f3eee6;
}

@media (min-width: 720px) {
  .offer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stock-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stock-grid,
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vehicle {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 2.2rem;
  }
}

@media (min-width: 1080px) {
  .nav-links {
    gap: 0.55rem 0.8rem;
  }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-card {
    min-height: 13.5rem;
  }

  .stock-filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stock-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .offer-grid.is-three {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media print {
  .nav, .dock, .intro, .grain, .hero-media, .marquee, .film, .map-facade, .inquiry {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
