:root {
  --blue: #1a88d8;
  --blue-dark: #0b508f;
  --cyan: #e9f6fc;
  --yellow: #ffc400;
  --ink: #172032;
  --muted: #5e6b7a;
  --line: #dce8ef;
  --paper: #ffffff;
  --soft: #f5f9fc;
  --radius: 8px;
  --shadow: 0 16px 35px rgba(18, 58, 89, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-y: auto;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
  touch-action: pan-y;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 118px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18, 58, 89, 0.06);
  backdrop-filter: blur(10px);
}

.scroll-controls {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: grid;
  gap: 8px;
}

.scroll-controls button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(18, 58, 89, 0.2);
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
}

.scroll-controls button:hover {
  background: var(--blue);
}

.logo img {
  width: 164px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #111111;
  font: inherit;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: #111111;
  border-radius: 999px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.menu-toggle strong {
  font-size: 14px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px clamp(18px, 2.4vw, 34px);
  padding-top: 0;
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 800;
  color: #111111;
  line-height: 1.2;
}

.nav a,
.nav-group > a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav-group:hover > a {
  border-color: var(--yellow);
}

.nav-group {
  position: relative;
  padding: 8px 0;
}

.nav-group > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 9px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  vertical-align: middle;
}

.subnav {
  position: absolute;
  left: 0;
  top: 36px;
  min-width: 190px;
  display: grid;
  gap: 2px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-group:hover .subnav,
.nav-group:focus-within .subnav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.subnav a {
  padding: 9px 10px;
  color: var(--blue-dark);
  font-size: 15px;
}

.section,
.footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 34px;
  align-items: center;
  min-height: 640px;
  width: 100%;
  padding: 68px clamp(24px, 5vw, 76px) 70px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 39%, rgba(255, 255, 255, 0.55) 72%, rgba(255, 255, 255, 0.95) 100%),
    url("https://farmabol.pl/wp-content/uploads/2021/09/background-1main3.jpg") center / cover no-repeat;
}

.hero-copy {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(42px, 5.2vw, 82px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  color: #102643;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-copy > p:not(.eyebrow),
.section-intro > p,
.section-heading > p,
.split-copy p,
.product-card p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
}

.button.secondary {
  color: #111827;
  background: var(--yellow);
}

.hero-media,
.wide-photo {
  margin: 0;
}

.hero-media {
  display: none;
}

.hero-media img,
.wide-photo img,
.image-pair img,
.product-card img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

.section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.home-intro {
  width: min(1160px, calc(100% - 40px));
  padding: 62px clamp(24px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(255, 255, 255, 0.74) 100%),
    url("https://farmabol.pl/wp-content/uploads/2021/09/background-1main3.jpg") right center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.company-overview {
  display: grid;
  gap: 58px;
}

.company-copy {
  max-width: 1120px;
}

.company-copy h2 {
  margin-bottom: 10px;
  color: #303030;
  font-size: clamp(36px, 4.8vw, 66px);
}

.company-copy h2 span {
  color: #55b9ef;
}

.company-copy p {
  max-width: 1080px;
  margin: 0 0 24px;
  color: #3f3f3f;
  font-size: clamp(19px, 1.7vw, 27px);
  font-weight: 650;
  line-height: 1.45;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 62px);
}

.overview-grid article {
  display: grid;
  align-content: start;
  gap: 18px;
}

.overview-grid img {
  width: 74px;
  height: 74px;
  box-shadow: none;
}

.overview-grid h3 {
  margin: 18px 0 0;
  color: #303030;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 800;
}

.overview-grid h3 a {
  border-bottom: 3px solid transparent;
}

.overview-grid h3 a:hover,
.overview-grid h3 a:focus-visible {
  color: var(--blue-dark);
  border-color: var(--yellow);
  outline: none;
}

.overview-grid p {
  margin: 0;
  color: #3f3f3f;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.55;
}

.linkedin-update {
  padding-bottom: 70px;
}

.linkedin-update > div {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  background: #f3f9fd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.linkedin-update h2 {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.linkedin-update p:not(.eyebrow) {
  max-width: 920px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.55;
}

.linkedin-update a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.linkedin-update a:hover {
  text-decoration: underline;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.split-reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.split-reverse .wide-photo {
  order: -1;
}

.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.image-pair img,
.wide-photo img {
  aspect-ratio: 4 / 3;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue-dark);
  font-weight: 800;
  border-bottom: 2px solid var(--yellow);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.landing-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 320px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.landing-card > p:not(.eyebrow) {
  flex: 1;
}

.landing-card-link {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.landing-card-link:hover,
.landing-card-link:focus-visible {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  outline: none;
}

.landing-card .button {
  width: fit-content;
  margin-top: auto;
}

.page-hero {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  padding: 64px 0 38px;
}

.page-hero h1 {
  max-width: 820px;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.care-content {
  display: grid;
  gap: 30px;
}

.care-content .wide-photo img {
  max-height: 620px;
  object-fit: cover;
}

.care-content > p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.work-closing {
  padding-top: 28px;
  text-align: center;
}

.work-closing a {
  display: inline-block;
  color: #102643;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 750;
  line-height: 1.15;
  border-bottom: 3px solid var(--yellow);
}

.work-closing a:hover,
.work-closing a:focus-visible {
  color: var(--blue-dark);
  outline: none;
}

.test-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.test-info article {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.test-info img {
  width: 96px;
  box-shadow: none;
}

.test-info p {
  margin: 0;
  color: #30363d;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.55;
}

.test-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(1160px, calc(100% - 40px));
  margin: 20px auto 64px;
}

.neosana-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.test-product {
  position: relative;
  display: grid;
  grid-template-rows: 310px minmax(210px, auto);
  min-height: 480px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(18, 58, 89, 0.08);
}

.test-product-media {
  display: grid;
  place-items: center;
  padding: 30px;
  background: #f7fbfd;
}

.test-product-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  box-shadow: none;
}

.test-product-media img.product-image-tight {
  max-width: 82%;
  max-height: 88%;
}

.test-product-copy {
  display: block;
  padding: 22px;
  background: #ffffff;
  transition: background 0.18s ease, color 0.18s ease;
}

.test-product-copy h2 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
}

.test-product-copy p {
  margin: 0;
  color: #5f6874;
  font-size: 16px;
  line-height: 1.45;
}

.test-product-copy a {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.test-product-copy strong {
  font-weight: 800;
}

.test-product-copy p + p {
  display: none;
  margin-top: 12px;
}

.test-product:hover .test-product-copy,
.test-product:focus-within .test-product-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow-y: auto;
  padding: 26px;
  color: #ffffff;
  background: rgba(11, 80, 143, 0.96);
}

.test-product:hover .test-product-copy h2,
.test-product:focus-within .test-product-copy h2,
.test-product:hover .test-product-copy p,
.test-product:focus-within .test-product-copy p,
.test-product:hover .test-product-copy a,
.test-product:focus-within .test-product-copy a,
.test-product:hover .test-product-copy strong,
.test-product:focus-within .test-product-copy strong {
  color: #ffffff;
}

.test-product:hover .test-product-copy p + p,
.test-product:focus-within .test-product-copy p + p {
  display: block;
}

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

.product-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid.compact article {
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--blue-dark);
  font-weight: 800;
  background: var(--cyan);
  border: 1px solid #c8e8f8;
  border-radius: var(--radius);
}

.product-card {
  min-height: 100%;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-card img {
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  background: var(--soft);
}

.legal-content {
  width: min(1040px, calc(100% - 70px));
  color: #526070;
}

.legal-content h2 {
  margin: 38px 0 16px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.15;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 26px 0 12px;
  color: var(--blue-dark);
  font-size: 22px;
  line-height: 1.25;
}

.legal-content p,
.legal-content li {
  font-size: 19px;
  line-height: 1.7;
}

.legal-content ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 24px;
}

.legal-content a {
  color: var(--blue-dark);
  font-weight: 800;
}

.footer {
  width: 100%;
  margin-top: 40px;
  color: #eef4f7;
  background: #30383c;
  border-top: 4px solid #61c4ed;
  border-bottom: 4px solid #61c4ed;
}

.footer-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(34px, 5vw, 70px);
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  padding: 64px 0 54px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
}

.footer-logo img {
  width: 170px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: #0a66c2;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(18, 58, 89, 0.2);
}

.social-link:hover,
.social-link:focus-visible {
  background: #1688d8;
  outline: none;
}

.social-link svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.footer-address {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 58px);
  font-style: normal;
}

.footer-address div {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-address strong {
  min-height: 58px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.35;
}

.footer-address span {
  color: #f1f5f7;
  font-size: 18px;
  line-height: 1.45;
}

.footer-address a,
.footer-menu a {
  color: #65c9f3;
}

.footer-menu {
  display: grid;
  justify-items: center;
  gap: 20px;
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  padding: 54px 0 48px;
  border-top: 1px solid rgba(97, 196, 237, 0.5);
}

.footer-menu strong {
  color: #65c9f3;
  font-size: 28px;
  font-weight: 500;
}

.footer-menu div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
}

.footer-menu a {
  position: relative;
  font-size: 18px;
  line-height: 1.2;
}

.footer-menu a::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #ffffff;
  transform: translateY(-50%);
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .section-intro,
  .split,
  .split-reverse,
  .footer-main,
  .footer-address {
    grid-template-columns: 1fr;
  }

  .site-header {
    min-height: 112px;
  }

  .nav {
    gap: 8px 18px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
    padding: 48px 0 46px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86)),
      url("https://farmabol.pl/wp-content/uploads/2021/09/background-1main3.jpg") center / cover no-repeat;
  }

  .split-reverse .wide-photo {
    order: 0;
  }

  .overview-grid,
  .product-grid,
  .section-cards,
  .test-info,
  .product-grid.compact,
  .test-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-info article {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .test-info img {
    width: 76px;
  }

  .test-product {
    grid-template-rows: 310px minmax(220px, auto);
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    padding-top: 34px;
  }

  .site-header {
    padding: 16px 14px;
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: auto;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }

  .logo img {
    width: 142px;
  }

  .menu-toggle {
    display: inline-grid;
    grid-template-columns: 22px auto;
    grid-template-rows: repeat(3, 3px);
    align-items: center;
    column-gap: 9px;
    row-gap: 3px;
    justify-self: end;
  }

  .menu-toggle strong {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: flex-start;
    width: 100%;
    gap: 0;
    margin-top: 12px;
    padding: 8px 0 0;
    font-size: 16px;
    border-top: 1px solid var(--line);
  }

  .site-header.menu-open .nav {
    display: grid;
  }

  .nav > a,
  .nav-group > a {
    display: block;
    width: 100%;
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
  }

  .nav-group {
    width: 100%;
    padding: 0;
  }

  .subnav {
    position: static;
    display: grid;
    margin-top: 8px;
    padding: 0 0 8px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .subnav a {
    padding: 9px 2px;
    border-bottom: 0;
    font-size: 15px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .overview-grid,
  .product-grid,
  .product-grid.compact,
  .section-cards,
  .test-info,
  .test-showcase,
  .image-pair {
    grid-template-columns: 1fr;
  }

  .test-showcase {
    width: min(100% - 28px, 1160px);
  }

  .test-product {
    grid-template-rows: auto;
    min-height: auto;
  }

  .test-product-media {
    min-height: 220px;
  }

  .test-product-copy p + p {
    display: block;
    margin-top: 12px;
  }

  .test-product:hover .test-product-copy,
  .test-product:focus-within .test-product-copy {
    position: static;
    overflow: visible;
    padding: 22px;
    color: inherit;
    background: #ffffff;
  }

  .test-product:hover .test-product-copy h2,
  .test-product:focus-within .test-product-copy h2 {
    color: var(--blue-dark);
  }

  .test-product:hover .test-product-copy p,
  .test-product:focus-within .test-product-copy p {
    color: #5f6874;
  }

  .test-info article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .test-info p {
    font-size: 18px;
  }

  .landing-card .button {
    width: 100%;
  }

  .footer-main,
  .footer-menu {
    width: min(100% - 28px, 1160px);
  }

  .footer-main {
    padding: 44px 0 34px;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .footer-address strong {
    min-height: auto;
  }

  .footer-menu {
    justify-items: start;
  }

  .footer-menu div {
    justify-content: flex-start;
    gap: 14px 24px;
    padding-left: 14px;
  }
}
