/* ==========================================================================
   Fluid Lab – biohemijska laboratorija Kikinda
   Static one-page site. Palette kept from the original design.
   ========================================================================== */

/* ---------- Fonts (self-hosted variable fonts; only the needed subsets download) ---------- */
/* Inter – cyrillic */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter – latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter – latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-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;
}

/* Work Sans – latin-ext */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/work-sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Work Sans – latin */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/work-sans-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;
}

:root {
  /* Brand */
  --primary: #CB56C6;
  --primary-deep: #84379E;
  --plum: #9E459A;
  --logo-a: #8F3E92;
  --logo-b: #AA57A2;
  --lilac: #E4B3E2;
  --mist: #D0C1D3;
  --gradient: linear-gradient(93deg, #CB56C6 -1%, #84379E 88%);
  --gradient-diag: linear-gradient(135deg, #CB56C6 0%, #9E459A 55%, #84379E 100%);

  /* Neutrals */
  --ink: #1F2630;
  --text: #565E6A;
  --text-strong: #30353D;
  --nav: #3F3A3F;
  --slate: #676E79;
  --bg: #FFFFFF;
  --bg-soft: #F3F8FF;
  --bg-visit: #EBF0F8;
  --line: rgba(132, 55, 158, 0.12);

  /* Tints */
  --tint-1: #FBF1FA;
  --tint-2: #F4E4F3;

  /* Type */
  --font-head: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;

  --shadow-sm: 0 2px 6px rgba(49, 65, 97, 0.06), 0 8px 24px -12px rgba(49, 65, 97, 0.12);
  --shadow: 0 24px 48px -24px rgba(49, 65, 97, 0.25);
  --shadow-brand: 0 18px 40px -18px rgba(132, 55, 158, 0.55);

  /* Offset so edges cut through hexagons instead of starting on a clean row */
  --hex-offset: -14px -38px;
  --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v32' fill='none' stroke='%239E459A' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E");
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

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

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

a {
  color: inherit;
}

address {
  font-style: normal;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Icons ---------- */
.i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Typography helpers ---------- */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary-deep);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(203, 86, 198, 0.16);
}

.eyebrow--light {
  color: #fff;
}

.eyebrow--light .eyebrow__dot {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.section-lead {
  margin-top: 18px;
  max-width: 680px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text);
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 9vw, 128px);
}

.section--tinted {
  background-color: var(--bg-soft);
  background-image: var(--hex-pattern);
  background-position: var(--hex-offset);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--sm {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 15px;
}

.btn--lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 17px;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  box-shadow: 0 22px 44px -16px rgba(132, 55, 158, 0.7);
}

.btn--ghost {
  background: #fff;
  color: var(--plum);
  border-color: var(--lilac);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
}

.btn--light {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 16px 32px -16px rgba(31, 38, 48, 0.5);
}

.btn--light:hover {
  background: var(--tint-1);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(49, 65, 97, 0.08);
}

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

.brand {
  display: inline-flex;
  flex-shrink: 0;
}

.brand__logo {
  width: 132px;
  height: auto;
  aspect-ratio: 171 / 36;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
}

.nav__list a {
  position: relative;
  padding-block: 6px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  color: var(--nav);
  text-decoration: none;
  transition: color .2s;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav__list a:hover {
  color: var(--primary-deep);
}

.nav__list a:hover::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-call span {
  display: none;
}

.header-call {
  width: 42px;
  padding: 0;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(49, 65, 97, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle .i {
  width: 22px;
  height: 22px;
}

@media (min-width: 480px) {
  .header-call {
    width: auto;
    padding: 9px 18px;
  }

  .header-call span {
    display: inline;
  }
}

@media (min-width: 1000px) {
  :root {
    --header-h: 84px;
  }

  .brand__logo {
    width: 160px;
  }

  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }
}

/* Mobile menu (native popover – works without JS) */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 100%);
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 16px var(--gutter) 32px;
  border: 0;
  background: #fff;
  box-shadow: -24px 0 48px -24px rgba(31, 38, 48, 0.3);
  overflow-y: auto;
}

.mobile-menu::backdrop {
  background: rgba(31, 38, 48, 0.35);
}

.mobile-menu:popover-open {
  display: flex;
  flex-direction: column;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  margin-bottom: 24px;
}

.mobile-menu__list li+li {
  border-top: 1px solid rgba(49, 65, 97, 0.08);
}

.mobile-menu__list a {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu__contact {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}

@media (prefers-reduced-motion: no-preference) {
  .mobile-menu {
    transition: transform .3s ease, overlay .3s allow-discrete, display .3s allow-discrete;
    transform: translateX(100%);
  }

  .mobile-menu:popover-open {
    transform: translateX(0);
  }

  @starting-style {
    .mobile-menu:popover-open {
      transform: translateX(100%);
    }
  }
}

/* ---------- Language switcher ---------- */
.lang {
  position: relative;
}

.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(49, 65, 97, 0.12);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--nav);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s, color 0.2s;
}

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

.lang summary:hover,
.lang[open] summary {
  border-color: var(--lilac);
  color: var(--primary-deep);
}

.lang summary .i {
  width: 18px;
  height: 18px;
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lang__menu a,
.mobile-menu__langs a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-strong);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.lang__menu a span,
.mobile-menu__langs a span {
  width: 24px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.lang__menu a:hover {
  background: var(--tint-1);
  color: var(--primary-deep);
}

.lang__menu a[aria-current="page"],
.mobile-menu__langs a[aria-current="page"] {
  background: var(--tint-1);
  color: var(--primary-deep);
}

.lang__menu a[aria-current="page"] span,
.mobile-menu__langs a[aria-current="page"] span {
  color: var(--primary);
}

.mobile-menu__langs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 24px;
}

.mobile-menu__langs a {
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 999px) {

  /* On phones the language choice lives in the menu; keep the header compact. */
  .site-header .lang {
    display: none;
  }
}

/* Work Sans has no Cyrillic – Russian text uses Inter for headings too. */
:lang(ru) {
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
  background:
    radial-gradient(60% 60% at 95% 5%, rgba(228, 179, 226, 0.45) 0%, rgba(228, 179, 226, 0) 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(203, 86, 198, 0.10) 0%, rgba(203, 86, 198, 0) 70%),
    #fff;
  overflow: clip;
}

.hero__grid {
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
}

.hero__title {
  display: block;
}

.hero__title .eyebrow {
  display: flex;
  width: fit-content;
}

.hero__headline {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hours-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 40px;
  padding: 16px 20px;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.hours-strip__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
}

.hours-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.hours-strip__list dt {
  font-size: 13px;
  color: var(--slate);
}

.hours-strip__list dd {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.hero__visual {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
  isolation: isolate;
}

.hero__backdrop {
  position: absolute;
  inset: 8% -6% -6% 10%;
  z-index: -1;
  border-radius: 40px;
  background: var(--gradient-diag);
  transform: rotate(6deg);
  opacity: .95;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v32' fill='none' stroke='%23fff' stroke-opacity='.18' stroke-width='1.2'/%3E%3C/svg%3E");
  background-position: var(--hex-offset);
}

.hero__molecule {
  position: absolute;
  top: -44px;
  left: -40px;
  z-index: -1;
  width: 150px;
  color: var(--lilac);
}

.hero__photo {
  width: 100%;
  border-radius: 40px 40px 40px 140px;
  box-shadow: var(--shadow);
  background: var(--bg-visit);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm), 0 20px 40px -20px rgba(49, 65, 97, 0.35);
  line-height: 1.25;
}

.float-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--ink);
}

.float-card small {
  font-size: 13px;
  color: var(--slate);
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tint-2);
  color: var(--plum);
}

.float-card__icon--solid {
  background: var(--gradient);
  color: #fff;
}

.float-card--visits {
  left: -8px;
  bottom: 12%;
}

.float-card--tests {
  right: -8px;
  top: 10%;
}

@media (min-width: 560px) {
  .float-card--visits {
    left: -40px;
  }

  .float-card--tests {
    right: -36px;
  }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero__visual {
    margin-right: 24px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .float-card--visits {
    animation: float 6s ease-in-out infinite;
  }

  .float-card--tests {
    animation: float 7s ease-in-out -2s infinite;
  }

  .hero__molecule {
    animation: spin 60s linear infinite;
  }
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 7vw, 88px);
  border-radius: var(--radius);
  background: var(--line);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.facts__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  color: var(--slate);
}

.facts__item .i {
  width: 26px;
  height: 26px;
  color: var(--primary);
  margin-top: 1px;
}

.facts__item strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--ink);
}

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

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

  .facts__item {
    padding: 26px 24px;
  }
}

/* ---------- Novo: MxA/CRP ---------- */
.novelty {
  padding-block: clamp(24px, 4vw, 48px) clamp(64px, 9vw, 112px);
}

.novelty__card {
  position: relative;
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(203, 86, 198, 0.35) 0%, rgba(203, 86, 198, 0) 65%),
    radial-gradient(50% 70% at 0% 100%, rgba(132, 55, 158, 0.45) 0%, rgba(132, 55, 158, 0) 65%),
    var(--ink);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 40px 80px -40px rgba(31, 38, 48, 0.6);
  isolation: isolate;
}

.novelty__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v32' fill='none' stroke='%23fff' stroke-opacity='.05' stroke-width='1.2'/%3E%3C/svg%3E");
  background-position: var(--hex-offset);
}

.novelty__media {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.novelty__photo {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0E1B40;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(203, 86, 198, 0.55);
  isolation: isolate;
}

.novelty__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.3) brightness(0.72);
}

/* Blue tint over the (warm) source image */
.novelty__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #5A7BAE 0%, #34507F 50%, #1C2C4E 100%);
  mix-blend-mode: color;
  pointer-events: none;
}

.novelty__badge {
  position: absolute;
  z-index: 2;
  top: -22px;
  left: -14px;
  filter: drop-shadow(0 12px 18px rgba(132, 55, 158, 0.45));
  transform: rotate(-8deg);
}

.novelty__badge span {
  display: grid;
  place-content: center;
  width: 124px;
  height: 108px;
  padding-inline: 14px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--gradient-diag);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #fff;
}

.novelty__badge span {
  overflow-wrap: anywhere;
}

:root:lang(ru) .novelty__badge span {
  font-size: 11px;
}

:root:lang(ru) .novelty__badge strong {
  font-size: 19px;
}

.novelty__badge strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.novelty__text .section-title {
  color: #fff;
}

.novelty__sub {
  margin-top: 8px;
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--lilac);
}

.novelty__text>p:not(.eyebrow):not(.novelty__sub) {
  max-width: 620px;
  margin-top: 14px;
  font-size: 15.5px;
}

.novelty__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.novelty__stats li {
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.6);
}

.novelty__stats li+li {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.novelty__stats strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

@media (max-width: 520px) {
  .novelty__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .novelty__stats li+li {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (min-width: 900px) {
  .novelty__card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .novelty__photo img {
    aspect-ratio: 1 / 1;
  }

  .novelty__badge {
    top: -34px;
    left: -34px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .novelty__badge {
    animation: badge-wobble 5s ease-in-out infinite;
  }
}

@keyframes badge-wobble {
  50% {
    transform: rotate(-3deg) scale(1.04);
  }
}

/* ---------- Analize ---------- */
.tests__layout {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
}

.tests__media {
  position: relative;
  display: none;
}

.tests__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.tests__media::before {
  content: "";
  position: absolute;
  inset: -28px 28px 28px -28px;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(228, 179, 226, 0.9), rgba(228, 179, 226, 0));
}

.tests__media {
  isolation: isolate;
}

.tests__badge {
  position: absolute;
  right: -16px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm), 0 16px 32px -16px rgba(49, 65, 97, 0.35);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.tests__badge .i {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  stroke-width: 2.4;
}

.tests__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.test-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: translate .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.test-card:hover {
  translate: 0 -4px;
  border-color: rgba(203, 86, 198, 0.35);
  box-shadow: 0 24px 40px -24px rgba(132, 55, 158, 0.35);
}

.test-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tint-1), var(--tint-2));
  color: var(--plum);
  transition: background .25s ease, color .25s ease;
}

.test-card__icon .i {
  width: 24px;
  height: 24px;
}

.test-card:hover .test-card__icon {
  background: var(--gradient);
  color: #fff;
}

.test-card h3 {
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.test-card p {
  font-size: 14.5px;
  line-height: 1.55;
}

.test-card--cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: var(--gradient-diag);
  color: rgba(255, 255, 255, 0.88);
}

.test-card--cta h3 {
  color: #fff;
}

.test-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.test-card__link .i {
  transition: transform .2s ease;
}

.test-card__link:hover .i {
  transform: translateX(4px);
}

@media (max-width: 719px) {
  .test-card:not(.test-card--cta) {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    padding: 20px;
  }

  .test-card:not(.test-card--cta) .test-card__icon {
    grid-row: span 2;
    margin: 0;
  }

  .test-card h3 {
    font-size: 17px;
  }
}

@media (min-width: 720px) {
  .tests__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .tests__layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }

  .tests__media {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 48px);
    margin-top: 28px;
  }
}

/* ---------- Kućne posete ---------- */
.visits__card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gradient-diag);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 40px 80px -40px rgba(132, 55, 158, 0.6);
  isolation: isolate;
}

.visits__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v32' fill='none' stroke='%23fff' stroke-opacity='.08' stroke-width='1.2'/%3E%3C/svg%3E");
  background-position: var(--hex-offset);
}

.visits__media {
  position: relative;
  min-height: 260px;
}

.visits__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
}

.visits__text {
  padding: clamp(28px, 5vw, 64px);
}

.visits__text .section-title {
  color: #fff;
}

.visits__sub {
  margin-top: 10px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 600;
  color: #fff;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 24px 0 32px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 500;
}

.checklist .i {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  stroke-width: 2.4;
}

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

  .visits__media {
    min-height: 100%;
  }

  .visits__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(132, 55, 158, 0) 60%, rgba(158, 69, 154, 0.55) 100%);
  }
}

/* ---------- O nama ---------- */
.about {
  padding-top: 0;
}

.about__grid {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.about__text>p:not(.eyebrow) {
  margin-top: 18px;
  max-width: 620px;
}

.about__text .section-title {
  margin-bottom: 4px;
}

.values {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.values li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}

.values strong {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 2px;
}

.values__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tint-1), var(--tint-2));
  color: var(--plum);
}

.about__media {
  position: relative;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 30% center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  line-height: 1.3;
  color: var(--slate);
}

.about__badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--ink);
}

.about__badge-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: 1fr 1.05fr;
  }

  .about__media::before {
    content: "";
    position: absolute;
    top: -24px;
    right: -24px;
    width: 140px;
    height: 140px;
    border-radius: 28px;
    background: var(--hex-pattern), var(--tint-2);
    background-position: var(--hex-offset);
    z-index: -1;
  }

  .about__media {
    isolation: isolate;
  }

  .about__badge {
    left: -24px;
    bottom: 32px;
  }
}

/* ---------- FAQ ---------- */
.faq__inner {
  max-width: calc(860px + 2 * var(--gutter));
}

.faq__list {
  display: grid;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.faq__item[open] {
  border-color: rgba(203, 86, 198, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq__item summary .i {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--tint-2);
  color: var(--plum);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.faq__item[open] summary .i {
  transform: rotate(45deg);
}

.faq__item p {
  padding: 0 24px 22px;
  max-width: 720px;
}

.faq__item a {
  color: var(--plum);
  font-weight: 600;
}

/* ---------- Kontakt ---------- */
.contact__grid {
  display: grid;
  gap: 24px;
}

.contact__card {
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact__list {
  display: grid;
}

.contact__item {
  padding-block: 22px;
  border-bottom: 1px solid rgba(49, 65, 97, 0.08);
}

.contact__item:first-child {
  padding-top: 0;
}

.contact__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.contact__label .i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.contact__value {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.contact__value--link {
  text-decoration: underline;
  text-decoration-color: var(--lilac);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.contact__value--link:hover {
  color: var(--primary-deep);
  text-decoration-color: var(--primary);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
}

.contact__link .i {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.contact__link:hover .i {
  transform: translateX(3px);
}

.contact__phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.phone-chip {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, translate 0.2s;
}

.phone-chip span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
}

.phone-chip--main {
  border-color: rgba(203, 86, 198, 0.3);
  background: var(--tint-1);
  color: var(--primary-deep);
}

.phone-chip:hover {
  translate: 0 -2px;
  border-color: var(--primary);
}

.follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-top: 22px;
}

.follow__label {
  font-size: 14px;
  color: var(--slate);
}

.follow__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.follow__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-strong);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.follow__links a:hover {
  border-color: rgba(203, 86, 198, 0.4);
  background: var(--tint-1);
  color: var(--primary-deep);
}

.follow__links svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  color: var(--plum);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint-2);
  color: var(--plum);
  transition: background .2s, color .2s, transform .2s;
}

.socials a:hover {
  background: var(--gradient);
  color: #fff;
  transform: translateY(-2px);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact__map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-visit);
  box-shadow: var(--shadow-sm);
}

.contact__map-canvas {
  position: absolute;
  inset: 0;
}

.map-pin {
  position: absolute;
  display: block;
  width: 40px;
  height: 47px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 8px 10px rgba(132, 55, 158, 0.4));
  transition: translate 0.2s ease;
}

.map-pin:hover {
  translate: 0 -4px;
}

.map-pin svg {
  display: block;
}

.contact__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85);
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .contact__map {
    min-height: 100%;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  --logo-a: #fff;
  --logo-b: var(--lilac);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: clamp(48px, 6vw, 72px) 36px;
}

.site-footer__brand .brand__logo {
  width: 170px;
  margin-bottom: 16px;
}

.site-footer__brand p {
  max-width: 360px;
}

.footer-hours {
  width: 420px;
  max-width: 100%;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.footer-hours__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.footer-hours__title .i {
  width: 18px;
  height: 18px;
  color: var(--lilac);
}

.footer-hours dl>div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.footer-hours dd {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.socials--dark {
  margin-top: 0;
}

.socials--dark a {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (min-width: 800px) {
  .site-footer__top {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ---------- Scroll reveal (progressive, CSS-only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {

    .test-card,
    .faq__item,
    .values li,
    .facts__item,
    .contact__card,
    .contact__map {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 404 page ---------- */
.nf-page {
  min-height: 100vh;
  background:
    radial-gradient(60% 60% at 95% 5%, rgba(228, 179, 226, 0.45) 0%, rgba(228, 179, 226, 0) 70%),
    var(--hex-pattern),
    var(--bg-soft);
  background-position: 0 0, var(--hex-offset), 0 0;
}

.nf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(40px, 8vw, 96px) var(--gutter);
  text-align: center;
}

.nf__brand .brand__logo {
  width: 150px;
}

.nf__code {
  font-family: var(--font-head);
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nf__langs {
  display: grid;
  gap: 16px;
  width: 100%;
}

.nf__langs section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nf__langs h1,
.nf__langs h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.nf__langs p {
  font-size: 15px;
}

.nf__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
}

.nf__link .i {
  width: 16px;
  height: 16px;
}

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