/* =========================================================================
   CleanBot — stil sajta
   ========================================================================= */

:root {
  --navy-900: #0b1826;
  --navy-800: #0f1e2e;
  --navy-700: #13233a;
  --navy-600: #1b2f47;
  --blue: #1f7fe0;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-soft: #e8f1fb;
  --sky: #4aa3ee;

  --ink: #1a2431;
  --muted: #5d6b7c;
  --muted-2: #8a97a6;
  --line: #e6ebf1;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-soft-2: #eef3f9;
  --green: #16a34a;
  --green-soft: #dcfce7;

  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 30, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 30, 46, 0.16);
  --shadow-sm: 0 4px 14px rgba(15, 30, 46, 0.06);
  --island-border: 1px solid rgba(37, 99, 235, 0.3);

  --wrap: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

.section--navy {
  position: relative;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
}

.section--navy .eyebrow {
  color: var(--sky);
}

.section--navy .lead {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.section--navy .link-arrow {
  color: var(--sky);
}

.section--tight {
  padding-top: 32px;
}

/* Popuni ostatak visine ekrana (sprečava da se pozadina "preseče" pre footera
   kad je sadržaj kraći od ekrana — npr. na ekranu potvrde rezervacije) */
.section--grow {
  flex: 1 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
}

.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
}

.script {
  font-family: "Caveat", "Segoe Script", cursive;
  font-weight: 700;
  color: var(--muted-2);
  transform: rotate(-4deg);
  line-height: 1.05;
}

.center {
  text-align: center;
}

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.btn--danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.32);
}

.btn--danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.4);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--light {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn--disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.link-arrow {
  color: var(--blue);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow:hover {
  gap: 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 24, 38, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

.logo__mark svg {
  width: 24px;
  height: 24px;
}

.logo__name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo__sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}

.nav__links a:hover {
  color: #fff;
}

.nav__links a.active {
  color: #fff;
}

.nav__links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.cart-pill svg {
  width: 18px;
  height: 18px;
}

.cart-pill__count {
  background: var(--blue);
  color: #fff;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  padding: 0 5px;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  overflow: hidden;
}

/* Slika robota — puni ceo desni deo hero sekcije, ivica do ivice
   (od vrha sekcije do dna, i do desne ivice ekrana) */
.hero__bg {
  position: absolute;
  inset: 0;
  left: 30%;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* +100px pomera SADRŽAJ slike udesno; prelaz (fade) ostaje na mestu */
  object-position: calc(68% + 100px) 42%;
  /* leva strana slike bledi u NIŠTA (transparent), pa se vidi prava pozadina
     hero sekcije — ista boja/gradijent kao svuda. Solid do 28%, prelaz do 74%. */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 18%,
    #000 58%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 18%,
    #000 58%
  );
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 85% 0%, rgba(31, 127, 224, 0.3) 0%, transparent 60%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 640px;
  align-content: center;
  padding: 72px 0 84px;
}

.hero__text {
  max-width: 560px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
}

.hero h1 .accent {
  color: var(--sky);
  display: block;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  max-width: 480px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero__badge {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 2;
  background: rgba(11, 24, 38, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
}

.hero__badge svg {
  width: 22px;
  height: 22px;
  color: var(--sky);
  flex: none;
}

.hero__badge strong {
  display: block;
  font-size: 14px;
}

.hero__badge span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Traka prednosti */
.features-bar {
  background: #fff;
  border-top: 1px solid var(--line);
}

.features-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 30px 0;
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex: none;
}

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

.feature strong {
  display: block;
  font-size: 15px;
}

.feature span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Placeholder slike ---------- */
.ph {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dbe7f5 0%, #c6d7ec 100%);
  display: grid;
  place-items: center;
  color: #6f8199;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.ph::after {
  content: "Vaša fotografija ovde";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(35, 60, 90, 0.55);
  background: rgba(255, 255, 255, 0.55);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ph svg {
  width: 46%;
  height: 46%;
  opacity: 0.7;
}

.ph--dark {
  background: linear-gradient(135deg, #1a2c42 0%, #0f2035 100%);
  color: rgba(255, 255, 255, 0.55);
}

.ph--dark::after {
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.ph--hero {
  aspect-ratio: 16 / 12;
  border-radius: var(--radius-lg);
}

.ph--tall {
  aspect-ratio: 3 / 4;
}

.ph--thumb {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

/* ---------- Kartice kategorija / proizvoda ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  background: linear-gradient(160deg, #1a2c42 0%, #0f2035 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(74, 163, 238, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-card__img {
  transform: scale(1.05);
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 32, 53, 0.25) 0%,
    rgba(15, 32, 53, 0.92) 100%
  );
  z-index: 1;
}

.cat-card__icon,
.cat-card__body {
  position: relative;
  z-index: 2;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  margin-bottom: auto;
}

.cat-card__icon svg {
  width: 22px;
  height: 22px;
}

.cat-card h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.cat-card p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 14px;
}

.cat-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-card__foot .link-arrow {
  color: var(--sky);
  font-size: 14px;
}

.round-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
}

.round-arrow svg {
  width: 16px;
  height: 16px;
}

/* ---------- Kako funkcioniše ---------- */
.how {
  background: #fff;
  color: var(--ink);
}

.how__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

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

.step {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

.step__num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.step__icon {
  color: var(--blue-600);
  margin-bottom: 8px;
}

.step__icon svg {
  width: 22px;
  height: 22px;
}

.step strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.step span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-600) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta-banner h3 {
  font-size: 22px;
  margin: 0 0 4px;
}

.cta-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Sub-hero (unutrašnje strane) ---------- */
.subhero {
  background: radial-gradient(
      900px 400px at 85% -20%,
      rgba(31, 127, 224, 0.3) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: 40px 0 54px;
}

.crumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.crumbs a:hover {
  color: #fff;
}

.subhero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
}

.subhero__lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
}

.subhero__tags {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.subhero__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.subhero__tag svg {
  width: 20px;
  height: 20px;
  color: var(--sky);
}

/* ---------- Uređaji: kartica proizvoda ---------- */
.prod-card {
  background: #fff;
  color: var(--ink);
  border: var(--island-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.prod-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35),
    0 18px 44px rgba(37, 99, 235, 0.35);
}

.prod-card--clickable {
  cursor: pointer;
}

.prod-card__media {
  position: relative;
}

.prod-card__media .ph {
  border-radius: 0;
  aspect-ratio: 4 / 3;
}

.prod-card__slika {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  display: block;
}

.prod-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: var(--blue-600);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

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

.prod-card h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.prod-card__cat {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.stars__icons {
  color: #f4b400;
  display: inline-flex;
}

.stars__icons svg {
  width: 15px;
  height: 15px;
}

.feat-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

/* Na karticama: lista osobina raste i popunjava prostor, da cena i dugmad
   budu poravnati na istoj visini na svim karticama */
.prod-card__body .feat-list {
  flex: 1 1 auto;
  align-content: start;
}

.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.feat-list svg {
  width: 16px;
  height: 16px;
  color: var(--blue-600);
  flex: none;
  margin-top: 2px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.price {
  font-size: 24px;
  font-weight: 800;
}

.price small {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.price-old {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-2);
  text-decoration: line-through;
}

.discount-badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.price-hint {
  font-size: 12.5px;
  color: var(--blue-600);
  font-weight: 600;
  margin: 0 0 14px;
}

/* Ostvarena stepenica popusta u lestvici (uredjaji.html) */
.feat-list li.tier-achieved {
  color: var(--green);
}

.feat-list li.tier-achieved svg {
  color: var(--green) !important;
}

.deposit-tag {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.prod-card__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

/* ---------- Korpa / paket ---------- */
.cart-box {
  background: #fff;
  border: var(--island-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 92px;
}

.cart-box h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-box h3 svg {
  width: 20px;
  height: 20px;
  color: var(--blue-600);
}

.cart-items {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item__thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbe7f5, #c6d7ec);
  color: #6f8199;
  display: grid;
  place-items: center;
  flex: none;
}

.cart-item__thumb svg {
  width: 26px;
  height: 26px;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__info strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.cart-item__info span {
  font-size: 13px;
  color: var(--muted);
}

.cart-item__remove {
  background: transparent;
  border: none;
  color: var(--muted-2);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.cart-item__remove:hover {
  color: #e11d48;
  background: #fff0f2;
}

.cart-item__remove svg {
  width: 18px;
  height: 18px;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0;
}

.sum-row--total {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.mini-note {
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: center;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mini-note svg {
  width: 14px;
  height: 14px;
}

/* ---------- Filteri (kolona) ---------- */
.layout-2col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  align-items: start;
}

/* ---------- Vodiči ---------- */
.guide {
  background: #fff;
  border: var(--island-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 26px;
}

.guide__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.guide__head .step__num {
  margin: 0;
}

.guide__head h3 {
  margin: 0;
  font-size: 19px;
}

.guide__body {
  padding: 24px;
}

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

/* HOBOT vodič: na PC koraci + saveti levo, video + savet desno (poravnato dole).
   Na telefonu se preuređuje u: koraci → video → saveti (vidi @media dole). */
.guide__grid--reflow .gcol {
  display: flex;
  flex-direction: column;
}
.guide__grid--reflow .gtips {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide ol {
  margin: 0;
  padding-left: 20px;
}

.guide ol li {
  margin-bottom: 10px;
}

.tip {
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.tip svg {
  width: 20px;
  height: 20px;
  color: var(--blue-600);
  flex: none;
}

.video-embed {
  border-radius: 14px;
  overflow: hidden;
  background: #0f2035;
  border: var(--island-border);
  aspect-ratio: 16 / 9;
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-embed .play {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: var(--blue-600);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

.video-embed .play svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.video-embed small {
  font-size: 12px;
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Rezervacija ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  flex-wrap: wrap;
}

.stepper__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 180px;
}

.stepper__num {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  color: var(--muted-2);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}

.stepper__item.active .stepper__num {
  background: var(--blue-600);
  color: #fff;
}

.stepper__item strong {
  display: block;
  font-size: 14px;
}

.stepper__item span {
  font-size: 12.5px;
  color: var(--muted);
}

.panel {
  background: #fff;
  border: var(--island-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  margin-bottom: 24px;
}

.panel h2 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel h2 svg {
  width: 22px;
  height: 22px;
  color: var(--blue-600);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 7px;
}

.input,
select.input,
textarea.input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus,
select.input:focus,
textarea.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 127, 224, 0.14);
}

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

.form-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

select.input:invalid {
  color: var(--muted-2);
}

/* Termini (slotovi) */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.slot {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
}

.slot:hover {
  border-color: var(--blue);
}

.slot.selected {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

.slot:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Kalendar (izbor perioda najma) ---------- */
.calendar {
  background: var(--bg-soft);
  border: var(--island-border);
  border-radius: var(--radius);
  padding: 18px;
}

.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar__head strong {
  font-size: 15px;
  text-transform: capitalize;
}

.calendar__nav {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.calendar__nav:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.calendar__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: 6px;
}

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

.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
}

.cal-day--empty {
  visibility: hidden;
  cursor: default;
}

.cal-day:disabled {
  color: var(--muted-2);
  opacity: 0.4;
  cursor: not-allowed;
}

.cal-day:hover:not(:disabled):not(.cal-day--in-range):not(.cal-day--edge) {
  background: var(--blue-soft);
}

.cal-day--in-range {
  background: var(--blue-soft);
  border-radius: 0;
}

.cal-day--edge {
  background: var(--blue-600);
  color: #fff;
}

.cal-day--edge-start {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.cal-day--edge-end {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.cal-day--single {
  background: var(--blue-600);
  color: #fff;
  border-radius: 10px;
}

.notice {
  display: flex;
  gap: 10px;
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #1a3a5c;
  margin-top: 6px;
}

.notice svg {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
  flex: none;
  margin-top: 1px;
}

.notice--ok {
  background: var(--green-soft);
  color: #14532d;
}

.notice--ok svg {
  color: var(--green);
}

.confirm-box {
  text-align: center;
  padding: 20px;
}

/* Stavke u sažetku potvrđene rezervacije — svaka na svom redu (label iznad
   vrednosti) da ostane uredno i kad ima više uređaja ili dugačka adresa */
.rezime-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rezime-item:last-of-type {
  border-bottom: none;
}

.rezime-item__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.rezime-item__value {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- Tamno-teget "island" boks (paket, popust, rezervacija) --------
   Doda se kao .box-dark na .cart-box ili .panel — sav sadržaj postaje čitljiv
   na tamnoj pozadini (naslovi, tekst, polja, kalendar, termini). */
.box-dark {
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.box-dark h2,
.box-dark h3 {
  color: #fff;
}

.box-dark h2 svg,
.box-dark h3 svg {
  color: var(--sky);
}

.box-dark p,
.box-dark .field label,
.box-dark .calendar__head strong {
  color: rgba(255, 255, 255, 0.92);
}

.box-dark .cart-empty,
.box-dark .sum-row,
.box-dark .mini-note,
.box-dark .cart-item__info span {
  color: rgba(255, 255, 255, 0.62);
}

.box-dark .cart-item__info strong,
.box-dark .sum-row strong {
  color: #fff;
}

.box-dark .sum-row--total {
  color: #fff;
  border-top-color: rgba(255, 255, 255, 0.14);
}

.box-dark .cart-item {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.box-dark .feat-list li {
  color: rgba(255, 255, 255, 0.9);
}

/* Polja za unos */
.box-dark .input,
.box-dark select.input,
.box-dark textarea.input {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.box-dark .input::placeholder,
.box-dark textarea.input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.box-dark .input:focus,
.box-dark select.input:focus,
.box-dark textarea.input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(74, 163, 238, 0.25);
}

.box-dark select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d6e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.box-dark select.input option {
  color: var(--ink);
}

.box-dark select.input:invalid {
  color: rgba(255, 255, 255, 0.42);
}

/* Termini (slotovi) */
.box-dark .slot {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.box-dark .slot:hover:not(:disabled) {
  border-color: var(--sky);
}

.box-dark .slot.selected {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

/* Kalendar */
.box-dark .calendar {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.box-dark .calendar__weekdays {
  color: rgba(255, 255, 255, 0.55);
}

.box-dark .cal-day {
  color: #fff;
}

.box-dark .calendar__nav {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.box-dark .calendar__nav:hover:not(:disabled) {
  border-color: var(--sky);
  background: rgba(255, 255, 255, 0.16);
}

.box-dark .cal-day:hover:not(:disabled):not(.cal-day--in-range):not(.cal-day--edge) {
  background: rgba(255, 255, 255, 0.14);
}

.box-dark .cal-day--in-range {
  background: rgba(74, 163, 238, 0.28);
}

.box-dark .cal-day:disabled {
  color: rgba(255, 255, 255, 0.35);
}

/* Link "Dodaj uređaj" u praznom paketu ostaje svetlo-plav */
.box-dark .link-arrow {
  color: var(--sky);
}

/* Ekran potvrde (rezime porudžbine) na tamnoj podlozi */
.box-dark .rezime-item {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.box-dark .rezime-item__label {
  color: rgba(255, 255, 255, 0.5);
}

.box-dark .rezime-item__value {
  color: #fff;
}

.box-dark .rezime-total {
  border-top-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ---------- Akcenti i sjaj (da tamne kartice "žive") ---------- */
.box-dark {
  box-shadow: 0 22px 50px rgba(6, 14, 24, 0.5);
}

/* Pozicioni kontekst za ::after sjaj — ali NE diramo .cart-box (sticky) */
.box-dark:not(.cart-box) {
  position: relative;
}

/* Tanka svetla linija na vrhu kartice — daje dubinu ("staklo") */
.box-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Ikona u naslovu -> gradijentni "chip" */
.box-dark h2,
.box-dark h3 {
  gap: 12px;
}

.box-dark h2 > span[data-icon],
.box-dark h3 > span[data-icon] {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.5);
  flex: none;
}

.box-dark h2 > span[data-icon] svg,
.box-dark h3 > span[data-icon] svg {
  color: #fff;
  width: 19px;
  height: 19px;
}

/* Glavno dugme unutar tamne kartice — jači sjaj */
.box-dark .btn--primary:not(:disabled) {
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.55);
}

/* Istaknuta ("focal") kartica — Sažetak rezervacije: plavi sjaj odozgo */
.box-accent {
  background: radial-gradient(
      130% 85% at 50% 0%,
      rgba(37, 99, 235, 0.32) 0%,
      transparent 55%
    ),
    linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 100%);
  border: 1px solid rgba(74, 163, 238, 0.38);
  box-shadow: 0 0 0 1px rgba(74, 163, 238, 0.12),
    0 26px 60px rgba(37, 99, 235, 0.3);
}

/* Podloga strane rezervacije — suptilan sjaj da kartice "lebde" */
#rezervacija-strana .section--soft,
#uredjaji-strana .section {
  background: radial-gradient(
      900px 520px at 82% 0%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 55%
    ),
    radial-gradient(
      720px 520px at 0% 42%,
      rgba(74, 163, 238, 0.08) 0%,
      transparent 50%
    ),
    var(--bg-soft);
}

.rezime-item__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rezime-item__list li {
  position: relative;
  padding-left: 16px;
}

.rezime-item__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue-600);
}

/* ---------- Galerija na stranici proizvoda ---------- */
.galerija__glavna {
  position: relative;
  background: #fff;
  border: var(--island-border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.galerija__glavna img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Animacija listanja slika (u smeru strelice) */
@keyframes galKlizDesno {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes galKlizLevo {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.galerija__glavna img.gal-anim-desno {
  animation: galKlizDesno 0.3s ease;
}

.galerija__glavna img.gal-anim-levo {
  animation: galKlizLevo 0.3s ease;
}

.galerija__strelica {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.15s ease;
}

.galerija__strelica:hover {
  background: #fff;
  color: var(--blue-600);
}

.galerija__strelica svg {
  width: 20px;
  height: 20px;
}

.galerija__strelica--levo {
  left: 12px;
}

.galerija__strelica--desno {
  right: 12px;
}

.galerija__brojac {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 30, 46, 0.75);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Specifikacije u 2 kolone (na stranici proizvoda) */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

.specs-grid .rezime-item--puna {
  grid-column: 1 / -1;
}

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

/* ---------- Admin: stanje uređaja (zalihe) ---------- */
.zalihe-red {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.zalihe-red:last-of-type {
  border-bottom: none;
}

.zalihe-red__info strong {
  display: block;
  font-size: 15px;
}

.zalihe-red__info span {
  font-size: 12.5px;
  color: var(--muted);
}

.zalihe-red__unos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.zalihe-red__unos .zalihe-input {
  width: 110px;
  text-align: center;
}

.zalihe-red__jed {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Admin panel ---------- */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-tab {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.filter-tab:hover {
  border-color: var(--blue);
}

.filter-tab.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

.rez-card {
  margin-bottom: 18px;
}

.rez-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.rez-card__head strong {
  display: block;
  font-size: 16px;
}

.rez-card__meta {
  font-size: 13px;
  color: var(--muted);
}

.rez-status {
  flex: none;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.rez-status--novo {
  background: var(--blue-soft);
  color: var(--blue-600);
}

.rez-status--obradjeno {
  background: var(--green-soft);
  color: var(--green);
}

.rez-status--otkazano {
  background: #fff0f2;
  color: #9f1239;
}

.rez-card--otkazano {
  opacity: 0.6;
}

.rez-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}

.rez-card__body .rezime-total {
  grid-column: 1 / -1;
}

.rez-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ---- Raspored po danima (dan → sati → zadaci) ---- */
/* JEDAN DAN — velika, jasna celina (deblja linija/razmak između dana) */
.raspored-dan {
  background: #fff;
  border: var(--island-border);
  border-top: 3px solid var(--blue-600);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  overflow: hidden;
}

.raspored-dan__head {
  padding: 14px 20px;
  background: var(--bg-soft);
  border-bottom: 2px solid var(--line);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  text-transform: capitalize;
}

/* JEDAN SAT (termin) unutar dana — tanja linija između sati */
.raspored-sat {
  border-bottom: 1px solid var(--line);
}

.raspored-sat:last-child {
  border-bottom: none;
}

.raspored-sat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(15, 30, 46, 0.02);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.raspored-sat__vreme {
  font-weight: 700;
  color: var(--ink);
}

/* zadržano zbog kompatibilnosti (stariji prikaz) */
.raspored-grupa {
  background: #fff;
  border: var(--island-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  overflow: hidden;
}

.raspored-grupa__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.raspored-grupa__head strong {
  font-size: 15px;
}

.raspored-grupa__broj {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
}

.raspored-grupa__broj--puno {
  background: #fff0f2;
  color: #9f1239;
}

.raspored-grupa__zadaci {
  display: flex;
  flex-direction: column;
}

.zadatak {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
}

.zadatak:last-child {
  border-bottom: none;
}

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

.zadatak input[type="checkbox"] {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: var(--green);
  cursor: pointer;
}

/* Sadržaj zadatka — sve slagano VERTIKALNO, jedan podatak po redu, da bude
   čitljivo i na uskom telefonskom ekranu (admin panel se najviše koristi
   na telefonu) */
.zadatak__sadrzaj {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zadatak__vrh {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.zadatak__ime {
  font-size: 14.5px;
  color: var(--ink);
}

.zadatak__tip {
  flex: none;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.zadatak__tip--dostava {
  background: var(--blue-soft);
  color: var(--blue-600);
}

.zadatak__tip--preuzimanje {
  background: #f3e8ff;
  color: #7e22ce;
}

.zadatak__telefon {
  display: inline-block;
  width: fit-content;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
}

.zadatak__telefon:hover {
  text-decoration: underline;
}

.zadatak__uredjaji {
  font-size: 13px;
  margin: 0;
}

.zadatak__adresa {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
}

/* "Čipovi" za sprat / stan / interfon — svaki podatak posebno, umesto
   jednog dugačkog spojenog teksta */
.adresa-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.adresa-chips span {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.zadatak--gotovo {
  opacity: 0.45;
}

@media (max-width: 480px) {
  .zadatak {
    padding: 14px;
  }
  .raspored-grupa__head {
    padding: 12px 14px;
  }
}

@media (max-width: 700px) {
  .rez-card__body {
    grid-template-columns: 1fr;
  }
}

.rezime-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
  font-size: 21px;
  font-weight: 800;
}

.confirm-box .tick {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.confirm-box .tick svg {
  width: 38px;
  height: 38px;
}

.hidden {
  display: none !important;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  margin-top: auto;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a:hover {
  color: var(--blue-600);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.footer__social a:hover {
  background: var(--blue-600);
  color: #fff;
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Na računaru: hero zauzima ceo prvi ekran — belo "poglavlje" ispod se ne vidi
   dok se ne skroluje (75px = visina header-a). */
@media (min-width: 981px) {
  .hero__grid {
    min-height: calc(100vh - 75px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid,
  .how__grid,
  .layout-2col,
  .guide__grid {
    grid-template-columns: 1fr;
  }
  /* HOBOT vodič na telefonu: koraci → video → saveti (spljošti kolone i poređaj) */
  .guide__grid--reflow {
    row-gap: 14px;
  }
  /* na telefonu saveti nisu grupisani, pa poništavamo osnovni margin-top da
     razmak dolazi samo iz row-gap-a (bez sabiranja) */
  .guide__grid--reflow .tip {
    margin-top: 0;
  }
  .guide__grid--reflow .gcol,
  .guide__grid--reflow .gtips {
    display: contents;
  }
  .guide__grid--reflow .gi-steps { order: 1; }
  .guide__grid--reflow .gi-video { order: 2; }
  .guide__grid--reflow .gi-t1 { order: 3; }
  .guide__grid--reflow .gi-t2 { order: 4; }
  .guide__grid--reflow .gi-t3 { order: 5; }
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero__bg {
    position: relative;
    left: 0;
    order: -1;
    aspect-ratio: 4 / 3;
  }
  .hero__grid {
    min-height: 0;
    padding: 32px 0 40px;
  }
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .cart-box {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--navy-800);
    padding: 12px 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
  .nav__links.open {
    display: flex;
  }
  .nav__links a {
    width: 100%;
    padding: 15px 16px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    transition: background 0.15s, color 0.15s;
  }
  .nav__links a:hover,
  .nav__links a:active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  /* istaknuta trenutna stranica — plava "pilula" umesto linije */
  .nav__links a.active {
    color: var(--sky);
    background: rgba(31, 127, 224, 0.15);
  }
  .nav__links a.active::after {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
  .nav__cta-text {
    display: none;
  }
  /* Na telefonu: slika (pid.png) na vrhu, natpisi ispod. Hero preko celog
     ekrana (74px = header; dvh = dinamička visina, radi na svim telefonima;
     100vh je rezerva za starije telefone). */
  .hero {
    justify-content: flex-start;
    min-height: calc(100vh - 74px);
    min-height: calc(100dvh - 74px);
  }
  .hero__bg {
    display: block;
    position: relative;
    inset: auto;
    left: 0;
    order: -1;         /* slika ide na vrh */
    flex: 1 1 auto;    /* slika raste i puni gornji deo ekrana */
    min-height: 340px;
    width: 100%;
  }
  .hero__bg img {
    -webkit-mask-image: none;
    mask-image: none;
    object-position: 60% 42%;
  }
  /* dno slike se blago stapa u tamnu pozadinu iznad teksta */
  .hero__bg::after {
    background: linear-gradient(180deg, transparent 70%, var(--navy-900) 100%);
  }
  /* na telefonu skloni bedž "Čisto bez napora" — smeta preko slike */
  .hero__badge {
    display: none;
  }
  .hero__grid {
    flex: 0 0 auto;    /* tekst na dnu, zauzima koliko mu treba */
  }
  /* zbijeniji tekst da slika dobije više prostora */
  .hero__lead {
    font-size: 16px;
  }
  .hero__cta {
    margin-top: 18px;
  }
  /* dugmad preko cele širine — lakše za klik na telefonu */
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
  /* specifičan selektor (.hero .hero__grid) + longhand da .wrap padding ne
     poništi vertikalni razmak; horizontalni razmak ostaje iz .wrap */
  .hero .hero__grid {
    padding-top: 12px;
    padding-bottom: 18px;
  }
  .section {
    padding: 56px 0;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid,
  .slots {
    grid-template-columns: 1fr;
  }
  .slots {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-banner {
    padding: 26px;
  }
}

@media (max-width: 460px) {
  .wrap {
    padding: 0 16px;
  }
  .features-bar {
    padding: 5px 0;
  }
  .features-bar__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
