/* ==========================================================================
   Ljekarna Čebulc - početna stranica

   Visual language: medicine packaging and the pharmacy cross.
   - One grotesk family (Archivo) in three widths: condensed bold for names,
     narrow caps for labels, normal width for reading.
   - Shapes come from the pharmacy: capsules (buttons), tablets in a blister
     (lab photos), box fronts with colour bands (hero, pharmacy cards),
     perforation lines (dashed rules).
   Colours and images: the existing brand. Fonts are local (assets/fonts).
   ========================================================================== */

/* ---------- Font ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand colours, taken from the current site */
  --green: #076540;
  --green-deep: #065133;
  --green-fresh: #019961;
  --red: #f71735;
  --red-deep: #d4102a;
  --ink: #171614;
  --slate: #5e5e5e;
  --white: #fff;

  /* Tint of the brand green, and neutral lines */
  --mint: #e9f3ee;
  --line: rgba(7, 101, 64, 0.2);
  --perforation: rgba(23, 22, 20, 0.22);
  --field-line: #6f8f7e;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Width axis: names, labels */
  --w-name: 80%;
  --w-label: 86%;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 132px);

  --r-chip: 3px;
  --r-field: 6px;
  --r-photo: 8px;
  --r-box: 12px;

  --topbar-h: 56px;
  --masthead-h: 68px;
  --logo-h: min(44px, 11.5vw);
}

@media (min-width: 960px) {
  :root {
    --topbar-h: 42px;
    --masthead-h: 92px;
    --logo-h: 62px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + var(--masthead-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: var(--w-name);
  line-height: 1;
  letter-spacing: -0.012em;
  word-spacing: 0.06em;
  color: var(--green-deep);
  text-wrap: balance;
}

h2 {
  font-size: clamp(36px, 5vw, 70px);
  line-height: 0.98;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
figure,
blockquote {
  margin: 0;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--green-fresh);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-field);
  background: var(--white);
  color: var(--green-deep);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Shared pieces ---------- */

/* Small printed tab, like the strength tab on a medicine box */
.kicker {
  display: table;
  margin: 0 0 18px;
  padding: 6px 10px 5px;
  border-radius: var(--r-chip);
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  font-stretch: var(--w-label);
  line-height: 1.15;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kicker--onDark {
  background: var(--white);
  color: var(--green-deep);
}

/* Capsule button: a body and a cap, two tones of one colour.
   The cap slides open on hover. */
.btn {
  --body: var(--green);
  --cap: var(--green-deep);
  --text: var(--white);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12.5 6.5 18 12l-5.5 5.5'/%3E%3C/svg%3E");
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 78px 10px 26px;
  border: 0;
  border-radius: 26px;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.15;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: left;
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
}

.btn::before {
  left: 0;
  right: 55px;
  z-index: -1;
  border-radius: 26px 5px 5px 26px;
  background: var(--body);
}

.btn::after {
  right: 0;
  width: 52px;
  border-radius: 5px 26px 26px 5px;
  background: var(--cap) var(--arrow) center / 20px no-repeat;
  transition: transform 0.18s ease;
}

.btn:hover::after {
  transform: translateX(5px);
}

.btn--red {
  --body: var(--red);
  --cap: var(--red-deep);
}

.btn--light {
  --body: var(--white);
  --cap: var(--mint);
  --text: var(--green-deep);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23065133' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12.5 6.5 18 12l-5.5 5.5'/%3E%3C/svg%3E");
}

.section {
  padding-block: var(--section);
}

.section--mint {
  background: var(--mint);
}

.section--deep {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.86);
}

.section--deep h2 {
  color: var(--white);
}

.section--deep :focus-visible {
  outline-color: var(--white);
}

.section-head {
  max-width: 900px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--split {
  display: grid;
  gap: 20px 72px;
  max-width: none;
}

.section-head__intro {
  max-width: 62ch;
}

.section-cta {
  margin: clamp(32px, 4vw, 56px) 0 0;
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  /* On phones the hours bar scrolls away and the logo bar stays. */
  top: calc(-1 * var(--topbar-h));
  z-index: 60;
}

/* ----- Hours bar ----- */
.topbar {
  background: var(--green-deep);
  color: var(--white);
  font-size: 13px;
  line-height: 1.25;
}

.topbar :focus-visible {
  outline-color: var(--white);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--topbar-h);
}

.topbar__hours {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.hours__icon {
  display: none;
  flex: none;
  opacity: 0.8;
}

.hours {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr;
  gap: 6px;
  flex: 1;
}

.hours__item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 9px;
  border-radius: var(--r-field);
}

.hours dt {
  font-stretch: 92%;
  color: rgba(255, 255, 255, 0.76);
}

.hours dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Today's row (set in main.js) */
.hours__item.is-today {
  background: rgba(255, 255, 255, 0.16);
}

.hours__item.is-today dt {
  color: var(--white);
}

.social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.topbar .social {
  display: none;
}

/* ----- Logo bar ----- */
.masthead {
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled .masthead {
  box-shadow: 0 1px 0 var(--line), 0 18px 30px -24px rgba(6, 81, 51, 0.75);
}

.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--masthead-h);
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  width: auto;
  height: var(--logo-h);
}

/* ----- Navigation: shared ----- */
.nav__list > li > a:not(.nav__pill),
.nav__subtoggle {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  font-size: 16.5px;
  font-weight: 600;
  font-stretch: 96%;
  line-height: 1.2;
  color: var(--green-deep);
  text-decoration: none;
}

.nav__subtoggle svg {
  transition: transform 0.2s ease;
}

.nav__subtoggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.subnav a {
  display: block;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.nav__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.nav__pill--webshop {
  background: var(--green);
}

.nav__pill--webshop:hover {
  background: var(--green-deep);
}

.nav__pill--blog {
  background: var(--red);
}

.nav__pill--blog:hover {
  background: var(--red-deep);
}

/* ----- Navigation: phone and tablet ----- */
@media (max-width: 1099px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: var(--r-photo);
    background: var(--mint);
    color: var(--green-deep);
  }

  .nav-toggle__close,
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    display: none;
    max-height: calc(100dvh - var(--masthead-h) - var(--topbar-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 28px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(6, 81, 51, 0.6);
  }

  .site-header.is-nav-open .nav {
    display: block;
  }

  .nav__list > li > a:not(.nav__pill),
  .nav__subtoggle {
    width: 100%;
    justify-content: space-between;
    padding: 17px 2px;
    font-size: 21px;
    font-weight: 700;
    font-stretch: 88%;
    border-bottom: 1.5px dashed var(--perforation);
  }

  .nav__list > li > a[aria-current="page"] {
    padding-left: 16px;
    box-shadow: inset 4px 0 0 var(--red);
  }

  .subnav {
    display: none;
    padding: 6px 0 6px 16px;
    border-bottom: 1.5px dashed var(--perforation);
  }

  .nav__subtoggle[aria-expanded="true"] + .subnav {
    display: block;
  }

  .subnav a {
    padding: 11px 2px;
  }

  .nav__pill {
    min-height: 54px;
    margin-top: 14px;
    font-size: 14px;
  }

  .nav .social {
    justify-content: center;
    margin-top: 18px;
    color: var(--green-deep);
  }

  .nav .social a:hover {
    background: var(--mint);
  }
}

/* ----- Hours bar: tablet and desktop ----- */
@media (min-width: 960px) {
  .site-header {
    top: 0;
  }

  .topbar {
    font-size: 14px;
  }

  .hours__icon {
    display: block;
  }

  .hours {
    display: flex;
    flex: none;
    gap: 6px;
  }

  .hours__item {
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
    padding: 5px 12px;
  }

  .topbar .social {
    display: flex;
  }

  .nav .social {
    display: none;
  }
}

/* ----- Navigation: desktop ----- */
@media (min-width: 1100px) {
  .nav-toggle {
    display: none;
  }

  .nav__list {
    --nav-gap: clamp(22px, 2.5vw, 38px);
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
  }

  /* A bar grows under the link. The current page keeps a red one. */
  .nav__list > li > a:not(.nav__pill),
  .nav__subtoggle {
    padding: 8px 0;
    background: linear-gradient(var(--green), var(--green)) 0 100% / 0 3px no-repeat;
    transition: background-size 0.22s ease;
  }

  .nav__list > li > a:not(.nav__pill):hover,
  .nav__subtoggle:hover,
  .nav__subtoggle[aria-expanded="true"],
  .nav__item--sub:focus-within .nav__subtoggle {
    background-size: 100% 3px;
  }

  .nav__list > li > a[aria-current="page"] {
    background-image: linear-gradient(var(--red), var(--red));
    background-size: 100% 3px;
  }

  /* Webshop and Blog sit apart from the page links */
  .nav__cta--first {
    padding-left: var(--nav-gap);
    border-left: 1px solid var(--line);
  }

  .nav__cta + .nav__cta {
    margin-left: calc(10px - var(--nav-gap));
  }

  .nav__item--sub {
    position: relative;
  }

  .subnav {
    position: absolute;
    top: calc(100% + 14px);
    left: -18px;
    min-width: 236px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--r-box);
    background: var(--white);
    box-shadow: 0 26px 40px -26px rgba(6, 81, 51, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }

  /* Keeps the menu open while the pointer crosses the gap */
  .subnav::before {
    content: "";
    position: absolute;
    inset: -16px 0 auto;
    height: 16px;
  }

  .nav__item--sub:hover .subnav,
  .nav__item--sub:focus-within .subnav,
  .nav__subtoggle[aria-expanded="true"] + .subnav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .subnav a {
    padding: 11px 14px;
    border-radius: var(--r-field);
  }

  .subnav a:hover {
    background: var(--mint);
  }
}

/* ==========================================================================
   Hero - full-width image, copy on a box front
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
}

.hero__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--green-deep);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 96% 50%;
}

.hero__inner {
  position: relative;
  margin-top: -64px;
}

/* The box front: green band, white face, red strip */
.pack {
  overflow: hidden;
  border-radius: var(--r-box);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(6, 81, 51, 0.12), 0 36px 60px -34px rgba(6, 81, 51, 0.75);
}

.pack__band,
.pack__strip {
  margin: 0;
  padding-inline: clamp(20px, 3vw, 34px);
  color: var(--white);
  font-stretch: var(--w-label);
  text-transform: uppercase;
}

.pack__band {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-block: 14px 13px;
  background: var(--green-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.pack__band svg {
  flex: none;
}

.pack__body {
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 34px) clamp(24px, 3vw, 34px);
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 0.93;
  letter-spacing: -0.015em;
}

.hero__lead {
  max-width: 58ch;
  font-size: clamp(16px, 1.25vw, 18px);
}

.pack__strip {
  padding-block: 12px 11px;
  background: var(--red);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

/* The box overlaps the next section */
.hero + .section {
  padding-top: calc(var(--section) - 8px);
}

@media (min-width: 800px) {
  .hero__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .hero__media img {
    object-position: 74% 30%;
  }

  .hero__inner {
    display: flex;
    align-items: flex-end;
    min-height: clamp(540px, 76vh, 820px);
    margin-top: 0;
    padding-top: 72px;
  }

  .hero__pack {
    width: min(720px, 64%);
    margin-bottom: -60px;
  }

  .hero + .section {
    padding-top: calc(var(--section) + 60px);
  }
}

/* One page-load moment: the photo settles, the box rises. */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img {
    animation: hero-settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__pack {
    animation: hero-rise 0.8s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes hero-settle {
  from { transform: scale(1.06); }
  to { transform: none; }
}

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

/* ==========================================================================
   Blog
   ========================================================================== */
.posts {
  display: grid;
  gap: 44px;
}

.post__media {
  display: block;
  overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--mint);
}

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

.post__title {
  margin: 22px 0 12px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
}

.post__title a {
  text-decoration: none;
}

.post__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.post__meta {
  margin-bottom: 12px;
  font-size: 14px;
  font-stretch: 94%;
}

.post__meta a {
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}

.post__meta a:hover {
  text-decoration: underline;
}

.post__excerpt {
  max-width: 62ch;
}

@media (min-width: 900px) {
  .posts {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 0 64px;
  }

  .post--lead {
    grid-row: span 2;
  }

  .post:not(.post--lead) {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 22px;
    align-content: start;
    padding-block: 28px;
    border-top: 1.5px dashed var(--perforation);
  }

  .post:not(.post--lead) .post__media {
    align-self: start;
  }

  .post:not(.post--lead) .post__media img {
    aspect-ratio: 1;
  }

  .post:not(.post--lead) .post__title {
    margin-top: 0;
    font-size: 24px;
    line-height: 1.06;
  }

  .post:not(.post--lead) .post__excerpt {
    font-size: 16px;
  }
}

/* ----- Newsletter ----- */
.newsletter {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 28px 64px;
  align-items: center;
  overflow: hidden;
  margin-top: clamp(56px, 8vw, 104px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-box);
  background: var(--green);
  color: rgba(255, 255, 255, 0.9);
}

/* A large pharmacy cross, cut by the edge of the panel */
.newsletter::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -70px;
  z-index: -1;
  width: 380px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background:
    linear-gradient(var(--white), var(--white)) center / 34% 100% no-repeat,
    linear-gradient(var(--white), var(--white)) center / 100% 34% no-repeat;
  opacity: 0.07;
}

.newsletter :focus-visible {
  outline-color: var(--white);
}

.newsletter h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 54px);
  color: var(--white);
}

.newsletter__copy p {
  margin-bottom: 4px;
}

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

.newsletter__form input {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-field);
  background: var(--white);
  color: var(--ink);
}

.newsletter__form input::placeholder {
  color: var(--slate);
}

.newsletter__done {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  font-stretch: var(--w-name);
  line-height: 1;
  color: var(--white);
}

@media (min-width: 900px) {
  .newsletter {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

/* ==========================================================================
   Laboratorij - ten photos as ten tablets in a blister
   ========================================================================== */
.blister {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(8px, 1.4vw, 18px);
  border-radius: clamp(16px, 2vw, 26px);
  /* foil */
  background: linear-gradient(118deg, #f8faf9 0%, #dde4e1 24%, #f5f7f6 45%, #d0d9d5 70%, #eef2f0 100%);
  box-shadow:
    inset 0 0 0 1px rgba(23, 22, 20, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 34px 50px -38px rgba(6, 81, 51, 0.65);
}

/* Perforation between the cells */
.blister li {
  padding: clamp(12px, 1.9vw, 26px);
  border: 0 dashed var(--perforation);
}

.blister li:nth-child(odd) {
  border-right-width: 1.5px;
}

.blister li:nth-last-child(n + 3) {
  border-bottom-width: 1.5px;
}

.blister img {
  --ring: clamp(4px, 0.55vw, 8px);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 var(--ring) rgba(255, 255, 255, 0.7),
    0 0 0 calc(var(--ring) + 1px) rgba(23, 22, 20, 0.1),
    0 16px 20px -10px rgba(23, 22, 20, 0.45);
}

@media (min-width: 760px) {
  .blister {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .blister li:nth-child(n) {
    border-width: 0 1.5px 0 0;
  }

  .blister li:nth-child(5n) {
    border-right-width: 0;
  }

  .blister li:nth-child(-n + 5) {
    border-bottom-width: 1.5px;
  }
}

/* ==========================================================================
   Virtualna šetnja
   ========================================================================== */
.tour__frame {
  overflow: hidden;
  height: min(72vh, 540px);
  border-radius: var(--r-box);
  background: #04382a;
}

.tour__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 800px) {
  .tour__frame {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   Webshop - a box with a colour-coded spine
   ========================================================================== */
.webshop {
  padding-bottom: 0;
}

.webshop__panel {
  --pad: clamp(28px, 5vw, 60px);
  position: relative;
  display: grid;
  gap: 24px 72px;
  align-items: center;
  overflow: hidden;
  padding: var(--pad) var(--pad) var(--pad) calc(var(--pad) + 18px);
  border: 2px solid var(--green);
  border-radius: var(--r-box);
}

.webshop__panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 18px;
  background: linear-gradient(var(--red) 0 26%, var(--green) 26% 100%);
}

.webshop__panel h2 {
  font-size: clamp(30px, 3.8vw, 52px);
}

.webshop__body p {
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .webshop__panel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* ==========================================================================
   Usluge
   ========================================================================== */
.services__grid {
  display: grid;
  gap: 48px 28px;
}

.service img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-photo);
}

.service h3 {
  margin: 22px 0 20px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 0.98;
}

.service h3 span {
  display: block;
}

@media (min-width: 760px) {
  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Iskustva kupaca - dispensing labels
   ========================================================================== */
.voices__wall {
  display: flex;
  gap: 14px;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

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

.voices__wall > li {
  flex: 0 0 84%;
  scroll-snap-align: start;
}

.voice {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 26px 26px 20px;
  border-top: 6px solid var(--green);
  border-radius: var(--r-photo);
  background: var(--white);
}

.voice blockquote p {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.42;
  color: var(--ink);
}

.voice--short blockquote p {
  font-size: 32px;
  font-weight: 800;
  font-stretch: var(--w-name);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--green-deep);
}

.voice figcaption {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--perforation);
  font-size: 13px;
  font-weight: 700;
  font-stretch: var(--w-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
}

@media (min-width: 760px) {
  .voices__wall {
    display: block;
    columns: 2;
    column-gap: 22px;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .voices__wall > li {
    margin-bottom: 22px;
    break-inside: avoid;
  }

  .voice {
    display: block;
    height: auto;
  }
}

@media (min-width: 1080px) {
  .voices__wall {
    columns: 3;
  }
}

/* ==========================================================================
   Najčešća pitanja
   ========================================================================== */
:root {
  interpolate-size: allow-keywords;
}

.faq__grid {
  display: grid;
  gap: 40px 72px;
}

.faq__head h2 {
  margin-bottom: 30px;
}

.faq__list details {
  border-top: 1.5px dashed var(--perforation);
}

.faq__list details:first-child {
  border-top: 3px solid var(--green-deep);
}

.faq__list details:last-child {
  border-bottom: 3px solid var(--green-deep);
}

.faq__list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
}

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

.faq__list summary h3 {
  font-size: 20px;
  font-weight: 700;
  font-stretch: 92%;
  line-height: 1.28;
  letter-spacing: 0;
  color: var(--ink);
  text-wrap: pretty;
}

.faq__list details[open] summary h3 {
  color: var(--green);
}

/* The pharmacy cross. It closes to a bar when the answer is open. */
.faq__list summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: -2px;
  background:
    linear-gradient(var(--green), var(--green)) center / 100% 34% no-repeat,
    linear-gradient(var(--green), var(--green)) center / 34% 100% no-repeat;
  transition: background-size 0.2s ease;
}

.faq__list details[open] summary::after {
  background-size: 100% 34%, 34% 0;
}

.faq__answer {
  max-width: 70ch;
  padding: 0 54px 28px 0;
}

.faq__list details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
}

.faq__list details[open]::details-content {
  block-size: auto;
}

@media (min-width: 900px) {
  .faq__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }

  .faq__head {
    position: sticky;
    top: calc(var(--topbar-h) + var(--masthead-h) + 40px);
  }
}

/* ==========================================================================
   Naše ljekarne - three box fronts
   ========================================================================== */
.places__grid {
  display: grid;
  gap: 28px;
}

.place {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-box);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.place__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.place h3 {
  background: var(--green-deep);
  color: var(--white);
  font-size: clamp(26px, 2.5vw, 32px);
}

.place h3 a {
  display: block;
  padding: 16px 22px 15px;
  text-decoration: none;
}

.place h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.place h3 a:focus-visible {
  outline-color: var(--white);
  outline-offset: -5px;
}

.place dl {
  padding: 6px 22px 16px;
}

.place dl > div {
  padding: 13px 0;
  border-bottom: 1.5px dashed var(--perforation);
}

.place dl > div:last-child {
  border-bottom: 0;
}

.place dt {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  font-stretch: var(--w-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.place dd {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.place dd a {
  display: block;
  width: fit-content;
  text-decoration: none;
}

.place dd a:hover {
  color: var(--green);
  text-decoration: underline;
}

@media (min-width: 900px) {
  .places__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .place dl > div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* ----- Program vjernosti ----- */
.loyalty {
  padding-block: clamp(64px, 8vw, 112px);
}

.loyalty__inner {
  display: grid;
  gap: 32px 60px;
  align-items: center;
}

.loyalty__card {
  width: min(300px, 78%);
  transform: rotate(-5deg);
  filter: drop-shadow(0 18px 22px rgba(6, 81, 51, 0.28));
}

.loyalty h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.4vw, 60px);
}

.loyalty h2 span {
  display: block;
}

.loyalty__copy p {
  max-width: 56ch;
}

.loyalty .btn {
  justify-self: start;
}

@media (min-width: 900px) {
  .loyalty__inner {
    grid-template-columns: 300px minmax(0, 1fr) auto;
  }

  .loyalty__card {
    width: 100%;
  }
}

/* ----- Kontakt ----- */
.contact {
  padding-top: var(--section);
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(165deg, rgba(6, 81, 51, 0.97) 0%, rgba(7, 101, 64, 0.94) 60%, rgba(4, 120, 76, 0.9) 100%),
    url("../img/footer-bg.webp") center / cover no-repeat,
    var(--green-deep);
}

.contact__grid {
  display: grid;
  gap: 48px 72px;
}

.contact__info :focus-visible,
.legal :focus-visible {
  outline-color: var(--white);
}

.contact__info h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 3.4vw, 46px);
  color: var(--white);
}

.contact__block + .contact__block {
  margin-top: 44px;
}

.contact__block p {
  margin-bottom: 24px;
}

.hours-full {
  border-block: 3px solid rgba(255, 255, 255, 0.9);
}

.hours-full > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 13px 0;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.4);
}

.hours-full > div:last-child {
  border-bottom: 0;
}

.hours-full dd {
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.hours-full .is-today dt {
  font-weight: 700;
  color: var(--white);
}

.contact__form {
  padding: clamp(24px, 4vw, 52px);
  border-radius: var(--r-box);
  background: var(--white);
  color: var(--slate);
}

.contact__form h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 3.4vw, 46px);
}

.contact__form form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 700;
  font-stretch: var(--w-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1.5px solid var(--field-line);
  border-radius: var(--r-field);
  background: var(--white);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--green);
  outline: 3px solid rgba(1, 153, 97, 0.3);
  outline-offset: 0;
}

.contact__form .btn {
  justify-self: start;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-block: 26px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.legal a {
  font-weight: 700;
  text-underline-offset: 4px;
}

.legal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 620px) {
  .contact__form form {
    grid-template-columns: 1fr 1fr;
  }

  .field--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}
