/* ==========================================================================
   M-Kaiser — nadstreški po meri
   Premium dark design system
   ========================================================================== */

:root {
  --red: #f53440;
  --red-dark: #ae0003;
  --red-glow: rgba(245, 52, 64, 0.35);
  --bg: #0a0c10;
  --bg-soft: #0e1117;
  --surface: #12161e;
  --surface-2: #171c26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ecf1;
  --muted: #9aa3b2;
  --heading: #ffffff;
  --header-bg: rgba(10, 12, 16, 0.78);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --wrap: 1180px;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--red);
  color: #fff;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.16;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  color: var(--heading);
}

h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
}

.section--soft { background: var(--bg-soft); }

.section--dark {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(245, 52, 64, 0.08), transparent 65%),
    linear-gradient(160deg, #0d1015 0%, #131822 100%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red));
}

.center .kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 760px;
}

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 30px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(245, 52, 64, 0.12);
}

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.topbar {
  background: #07080b;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a { color: rgba(255, 255, 255, 0.9); font-weight: 500; }
.topbar a:hover { color: var(--red); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  color: var(--heading);
}

.brand img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(245, 52, 64, 0.45));
}

.brand span small {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text);
  transition: color 0.18s ease;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }

.nav .has-sub { position: relative; }

.nav .sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: rgba(18, 22, 30, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav .has-sub:hover .sub,
.nav .has-sub:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav .sub a {
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.nav .sub a:hover { background: rgba(255, 255, 255, 0.05); }

.nav-cta { margin-left: 12px; padding: 12px 24px; color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 46px;
  height: 46px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 80;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--bg);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 18% 28%, rgba(245, 52, 64, 0.14), transparent 65%),
    linear-gradient(100deg, rgba(10, 12, 16, 0.96) 16%, rgba(10, 12, 16, 0.55) 58%, rgba(10, 12, 16, 0.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding: clamp(96px, 13vw, 180px) 0 clamp(84px, 11vw, 160px);
}

.hero p {
  max-width: 620px;
  font-size: 1.16rem;
  color: #c4cad4;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.hero__badges div {
  font-family: var(--font-head);
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.hero__badges strong {
  display: block;
  font-size: 1.65rem;
  background: linear-gradient(120deg, #fff 30%, #f5a0a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__badges span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Page hero (subpages) */

.page-hero {
  position: relative;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 14% 40%, rgba(245, 52, 64, 0.12), transparent 65%),
    linear-gradient(100deg, rgba(10, 12, 16, 0.96) 12%, rgba(10, 12, 16, 0.55) 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 24%);
}

.page-hero .wrap {
  position: relative;
  z-index: 2;
  padding: clamp(76px, 10vw, 130px) 0;
}

.page-hero p {
  max-width: 640px;
  font-size: 1.1rem;
  color: #c4cad4;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.84rem;
  color: #aab1bd;
}

/* heroji ostanejo temni (slika + preliv) tudi v svetlem načinu */
.hero h1, .page-hero h1 { color: #fff; }

.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 26px;
}

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

.card {
  background: linear-gradient(170deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 52, 64, 0.35);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(245, 52, 64, 0.07);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 22, 30, 0.45), transparent 40%);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__media img { transform: scale(1.05); }

.card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body p { color: var(--muted); flex: 1; }

.card__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__link:hover { color: #ff7a82; }

.feature {
  background: linear-gradient(170deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature:hover {
  border-color: rgba(245, 52, 64, 0.3);
  transform: translateY(-4px);
}

.feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(245, 52, 64, 0.18), rgba(174, 0, 3, 0.08));
  border: 1px solid rgba(245, 52, 64, 0.25);
  color: var(--red);
  margin-bottom: 20px;
}

.feature__icon svg { width: 26px; height: 26px; }

.feature p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* checklist */

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 13px;
}

.checks li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}

.checks li strong { color: var(--text); }

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(245, 52, 64, 0.14);
  border: 1px solid rgba(245, 52, 64, 0.3);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 9px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* split layout */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split--rev .split__media { order: 2; }

.split p { color: var(--muted); }
.split p.lead { color: var(--muted); }

/* model showcase (alternating product rows) */

.model {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(40px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
}

.model:first-of-type { border-top: 0; }
.model:nth-of-type(even) .model__media { order: 2; }

.model__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.model__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.model:hover .model__media img { transform: scale(1.03); }

.model__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(245, 52, 64, 0.1);
  border: 1px solid rgba(245, 52, 64, 0.28);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
}

.model p { color: var(--muted); }
.model h3 { font-size: 1.5rem; }

/* stats band */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}

.stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(120deg, var(--red) 20%, #ff8a91 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats span { color: var(--muted); font-size: 0.94rem; }

/* testimonials */

.quote {
  background: linear-gradient(170deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.quote__stars { color: #f5a623; letter-spacing: 3px; font-size: 1.05rem; }
.quote p { color: var(--muted); font-style: italic; margin: 0; flex: 1; }
.quote footer { font-weight: 600; font-family: var(--font-head); font-size: 0.95rem; color: var(--heading); }
.quote footer span { display: block; font-weight: 400; font-family: var(--font-body); color: var(--muted); font-size: 0.84rem; }

/* steps */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  counter-increment: step;
  background: linear-gradient(170deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  background: linear-gradient(120deg, var(--red) 30%, #ff8a91 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* FAQ accordion */

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: linear-gradient(170deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item[open] { border-color: rgba(245, 52, 64, 0.3); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 21px 58px 21px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--heading);
  position: relative;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--red);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item .faq-body {
  padding: 0 26px 24px;
  color: var(--muted);
}

.faq-item .faq-body a { color: var(--red); }
.faq-item .faq-body a:hover { color: #ff7a82; }
.faq-item .faq-body strong { color: var(--text); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* CTA band */

.cta-band {
  position: relative;
  background:
    radial-gradient(500px 280px at 85% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(120deg, var(--red-dark) 0%, var(--red) 90%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(42px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(245, 52, 64, 0.18);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; }

.cta-band .btn--ghost {
  background: #fff;
  border-color: #fff;
  color: var(--red-dark);
  position: relative;
  z-index: 2;
}

.cta-band .btn--ghost:hover { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3); }

/* gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery figure { margin: 0; }

.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.gallery a:hover {
  border-color: rgba(245, 52, 64, 0.4);
  transform: translateY(-4px);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 18px 14px;
  background: linear-gradient(transparent, rgba(7, 8, 11, 0.92));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-head);
}

.gallery figcaption .loc {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.gallery figcaption .loc::before {
  content: "📍 ";
  font-size: 0.7rem;
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 9, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  place-items: center;
  padding: 4vmin;
}

.lightbox.open { display: grid; }

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
}

.lightbox button {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 8px;
  font-family: var(--font-head);
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  background: var(--bg-soft);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder, textarea::placeholder { color: #5d6675; }

select { appearance: none; }

select option { background: var(--surface); color: var(--text); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(245, 52, 64, 0.14);
}

textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 0.82rem; color: var(--muted); }

/* choice chips (radio / checkbox) */

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.fieldset legend {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--font-head);
  color: var(--text);
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  position: relative;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.92rem;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.choice span small {
  font-size: 0.76rem;
  color: #5d6675;
}

.choice:hover span { border-color: var(--red); color: var(--text); }

.choice input:checked + span {
  border-color: var(--red);
  color: #fff;
  background: rgba(245, 52, 64, 0.13);
  box-shadow: 0 0 0 4px rgba(245, 52, 64, 0.1);
}

.choice input:checked + span small { color: #d99a9e; }

.choice input:focus-visible + span {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.form-success { color: #4ade80 !important; }

/* contact cards */

.contact-card {
  background: linear-gradient(170deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contact-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.contact-card a { color: var(--red); font-weight: 600; }
.contact-card a:hover { color: #ff7a82; }
.contact-card p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #07080b;
  color: var(--muted);
  padding: 76px 0 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 54px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.site-footer a:hover { color: var(--red); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 34px;
  filter: drop-shadow(0 0 12px rgba(245, 52, 64, 0.4));
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .topbar { display: none; }

  /* backdrop-filter turns the header into the containing block for the
     fixed-position nav panel, breaking its full-screen sizing — use a
     solid background on mobile instead */
  .site-header {
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .grid--3 { grid-template-columns: 1fr 1fr; }
  .split, .model { grid-template-columns: 1fr; }
  .split--rev .split__media, .model:nth-of-type(even) .model__media { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    background:
      radial-gradient(420px 260px at 85% 8%, rgba(245, 52, 64, 0.1), transparent 60%),
      rgba(8, 9, 12, 0.99);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 28px) 26px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s ease, visibility 0.32s;
    z-index: 65;
  }

  .nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav a {
    padding: 16px 6px;
    font-size: 1.12rem;
    font-family: var(--font-head);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0 0 6px 18px;
    min-width: 0;
  }

  .nav .sub a {
    font-size: 0.98rem;
    font-weight: 400;
    font-family: var(--font-body);
    color: var(--muted);
    padding: 12px 6px;
    border-bottom: 0;
  }

  .nav .sub a:hover { background: none; color: var(--red); }

  .nav-cta {
    margin: 28px 0 0;
    justify-content: center;
    border-bottom: 0 !important;
    font-family: var(--font-head) !important;
  }

  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .gallery, .form-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero__badges div { padding: 14px 16px; }
}

/* reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.posts .card__media img { aspect-ratio: 16 / 9; }

.article { max-width: 780px; margin-inline: auto; }
.article h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 1.8em; }
.article h3 { margin-top: 1.5em; }
.article p, .article li { color: var(--muted); }
.article ul, .article ol { padding-left: 22px; }
.article a { color: var(--red); font-weight: 600; }
.article a:hover { color: #ff7a82; }
.article strong { color: var(--text); }

.article-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  margin: 28px 0;
}

.article-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; font-size: 0.84rem; color: var(--muted); }
.article-meta .idx { color: var(--red); font-weight: 600; }

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 0.94rem;
  background: linear-gradient(170deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.article th, .article td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.article th { background: rgba(245, 52, 64, 0.12); color: var(--heading); font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; }
.article tr:last-child td { border-bottom: 0; }
.article td strong { color: var(--heading); }

.article .note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.93rem;
}

@media (max-width: 880px) {
  .posts { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Svetli način
   -------------------------------------------------------------------------- */

.theme-toggle {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--heading);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover { border-color: var(--red); transform: rotate(15deg); }

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f4;
  --bg-soft: #ededea;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --line: rgba(16, 19, 24, 0.1);
  --line-strong: rgba(16, 19, 24, 0.22);
  --text: #20242b;
  --muted: #5b6370;
  --heading: #14171c;
  --header-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 14px 40px rgba(16, 19, 24, 0.1);
  --shadow-lg: 0 30px 80px rgba(16, 19, 24, 0.16);
}

/* temne pasove (section--dark) pustimo temne tudi v svetlem načinu */
html[data-theme="light"] .section--dark {
  --surface: #12161e;
  --surface-2: #171c26;
  --text: #e9ecf1;
  --muted: #9aa3b2;
  --heading: #ffffff;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

html[data-theme="light"] .form-success { color: #15803d !important; }

html[data-theme="light"] .btn--ghost {
  background: var(--surface);
  color: var(--heading);
  backdrop-filter: none;
}

html[data-theme="light"] .hero__media img { opacity: 0.6; }
html[data-theme="light"] .page-hero__media img { opacity: 0.45; }

@media (max-width: 880px) {
  html[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.98); }

  html[data-theme="light"] .nav {
    background:
      radial-gradient(420px 260px at 85% 8%, rgba(245, 52, 64, 0.06), transparent 60%),
      rgba(248, 248, 246, 0.99);
  }
}
