:root {
  --paper: #f7f3ec;
  --surface: #fffdf8;
  --surface-2: #eee7db;
  --ink: #14211d;
  --muted: #5d6a64;
  --line: #ded6c9;
  --green: #245f4c;
  --green-dark: #143d34;
  --red: #b94036;
  --rose: #9e3153;
  --blue: #2f7899;
  --amber: #b17a2a;
  --olive: #69723c;
  --navy: #435a7f;
  --bronze: #80602a;
  --shadow: 0 20px 55px rgba(27, 36, 32, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(18px, 5vw, 64px);
  background: rgba(247, 243, 236, .94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}

.site-header[data-elevated="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 32px rgba(30, 38, 34, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.12rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 8px;
  font-weight: 800;
  font-size: .96rem;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(34px, 5vw, 68px) clamp(18px, 6vw, 86px);
  overflow: hidden;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,243,236,.98) 0%, rgba(247,243,236,.9) 42%, rgba(247,243,236,.38) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3.05rem, 6.4vw, 5.8rem);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: #364842;
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  line-height: 1.58;
}

.hero-router {
  display: grid;
  grid-template-columns: max-content minmax(260px, 430px);
  align-items: stretch;
  gap: 14px;
  margin-top: 30px;
}

.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(36,95,76,.22);
}

.hero-helper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 12px;
  background: rgba(255, 253, 248, .76);
  border: 1px solid rgba(222, 214, 201, .9);
  border-radius: 8px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 700;
}

.hero-helper b {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
}

.quick-select {
  scroll-margin-top: 90px;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 6vw, 86px);
  background: var(--surface);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .55fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  margin-bottom: 30px;
}

.section-intro p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  --accent: var(--green);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--paper)) 0%, var(--paper) 58%);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}

.category-card.urgent { --accent: var(--red); }
.category-card.rose { --accent: var(--rose); }
.category-card.blue { --accent: var(--blue); }
.category-card.amber { --accent: var(--amber); }
.category-card.olive { --accent: var(--olive); }
.category-card.navy { --accent: var(--navy); }
.category-card.bronze { --accent: var(--bronze); }

.icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, white);
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 900;
}

.copy {
  display: grid;
  gap: 7px;
}

.copy strong {
  font-size: clamp(1.28rem, 2.2vw, 1.72rem);
  line-height: 1.1;
}

.copy small {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.13rem);
  line-height: 1.35;
}

.arrow {
  color: var(--accent);
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 500;
}

.pharmacy-note {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(300px, .7fr);
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 86px);
  background: var(--surface-2);
}

.note-copy {
  display: grid;
  gap: 18px;
}

.note-copy p {
  margin: 0;
  color: #3f4e49;
  font-size: 1.12rem;
  line-height: 1.7;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 clamp(18px, 6vw, 86px);
  background: var(--line);
}

.support-grid article {
  min-height: 190px;
  padding: 28px;
  background: var(--surface);
}

.support-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.support-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.faq {
  scroll-margin-top: 90px;
  padding: clamp(54px, 7vw, 92px) clamp(18px, 6vw, 86px);
  background: var(--surface);
}

#faq-title,
#kategorije {
  scroll-margin-top: 90px;
}

.section-intro.compact {
  display: block;
  max-width: 760px;
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.faq-list article {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 6vw, 86px);
  color: #58635f;
  border-top: 1px solid var(--line);
}

footer strong { color: var(--ink); }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero {
    min-height: auto;
    padding-top: 270px;
  }
  .hero-media {
    height: 330px;
    bottom: auto;
  }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(247,243,236,.1) 0%, rgba(247,243,236,.86) 76%, var(--paper) 100%);
  }
  .hero-content {
    padding-top: 20px;
  }
  .section-intro,
  .pharmacy-note,
  .support-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }
  .category-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 70px;
    padding: 0 14px;
  }
  .brand {
    gap: 9px;
    font-size: 1.02rem;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-mark img {
    width: 34px;
    height: 34px;
  }
  .header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: .86rem;
  }
  .hero {
    padding: 250px 18px 38px;
  }
  h1 {
    font-size: clamp(3.05rem, 16vw, 4.8rem);
  }
  .lead {
    font-size: 1.13rem;
  }
  .hero-router {
    grid-template-columns: 1fr;
  }
  .hero-primary {
    width: 100%;
    min-height: 58px;
  }
  .hero-helper {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .quick-select,
  .pharmacy-note {
    padding-left: 18px;
    padding-right: 18px;
  }
  .category-card {
    grid-template-columns: 50px minmax(0, 1fr) 24px;
    gap: 12px;
    min-height: 108px;
    padding: 16px;
  }
  .icon {
    width: 50px;
    height: 50px;
  }
  .support-grid {
    padding-left: 18px;
    padding-right: 18px;
  }
  .faq {
    padding-left: 18px;
    padding-right: 18px;
  }
  footer {
    flex-direction: column;
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
