/* ============================================================
   Besta-Med — original design for besta-med.com
   Palette: red accent, slate text, charcoal footer
   ============================================================ */

:root {
  --red: #c22026;
  --red-dark: #9e1a1f;
  --slate: #37424b;
  --slate-soft: #5b6770;
  --charcoal: #26282e;
  --charcoal-deep: #1d1f24;
  --bg-light: #f4f6f8;
  --line: #e3e6e9;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(38, 40, 46, 0.08);
  --radius: 10px;
  --font: "Mulish", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn--solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--solid:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--outline {
  border-color: var(--red);
  color: var(--red);
  background: transparent;
}
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--outline-white {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn--outline-white:hover { background: #fff; color: var(--slate); }

.link-more {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--red);
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease;
}
.link-more:hover { border-color: var(--red); }

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--slate);
}

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.topbar__inner {
  display: flex;
  align-items: stretch;
  gap: 28px;
  min-height: 48px;
}
.topbar__links,
.topbar__social {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar__links a,
.topbar__social a {
  color: var(--slate-soft);
  transition: color .2s ease;
}
.topbar__links a:hover,
.topbar__social a:hover { color: var(--red); }
.topbar__social { gap: 14px; }
.topbar__cta {
  margin-left: auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  letter-spacing: 2px;
  padding: 10px 34px;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .25s ease, padding .25s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
  transition: padding .25s ease;
}
.header.is-stuck .header__inner { padding-block: 8px; }
.header.is-stuck { box-shadow: 0 6px 24px rgba(38, 40, 46, .1); }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { flex: 0 0 auto; display: block; transition: width .25s ease; }
.logo__mark img {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}
.header.is-stuck .logo__mark img { height: 36px; }
.logo__text { line-height: 1.15; }
.logo__text strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--slate);
}
.logo__text strong::first-letter,
.logo__text strong { color: var(--slate); }
.logo__text small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 2.6px;
  text-transform: lowercase;
  color: var(--slate-soft);
}
.header.is-stuck .logo__text strong { font-size: 22px; }

.nav__list { display: flex; align-items: center; gap: 8px; }
.nav__item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate);
  border-radius: 6px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav__item > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
}
.nav__item > a:hover { color: var(--red); background: #faf6f6; }

.lang-flag {
  display: inline-flex;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  outline: 1px solid rgba(0,0,0,.18);
  outline-offset: -1px;
}
.lang-flag svg { width: 100%; height: 100%; display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Hero features strip + slider
   ============================================================ */
.hero-wrap { background: var(--bg-light); }

.hero-features {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-block: 26px;
}
.hero-feature h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--slate);
  transition: color .2s ease;
}
.hero-feature p { font-size: 13.5px; color: var(--slate-soft); }
.hero-feature:hover h3 { color: var(--red); }

.hero-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 16px 26px;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(194, 32, 38, .35);
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  height: min(78vh, 640px);
  min-height: 460px;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
  display: grid;
  align-items: center;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* Dark overlay so white hero text stays legible over photography */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(105deg, rgba(18,26,32,.62) 0%, rgba(18,26,32,.46) 55%, rgba(18,26,32,.34) 100%);
}
.hero__bg--1 { background-image: url("../img/hero-1-probiotic.jpg"), linear-gradient(105deg, #37424b 0%, #4d5b66 45%, #8fa1ad 100%); }
.hero__bg--2 { background-image: url("../img/hero-2-challenge.jpg"), linear-gradient(105deg, #4d5b66 0%, #6d7d89 50%, #aebac2 100%); }
.hero__bg--3 { background-image: url("../img/hero-3-partner.jpg"), linear-gradient(105deg, #5b6770 0%, #7d8d99 50%, #cdd7dd 100%); }
.hero__bg--4 { background-image: url("../img/hero-4-trust.jpg"), linear-gradient(105deg, #7e2226 0%, #a63a3f 55%, #d98f92 100%); }
.hero__bg--5 { background-image: url("../img/hero-5-strategy.jpg"), linear-gradient(105deg, #37424b 0%, #5b6770 55%, #93a3ae 100%); }
.hero__bg--6 { background-image: url("../img/hero-6-distribution.jpg"), linear-gradient(105deg, #2e3740 0%, #4d5b66 55%, #8fa1ad 100%); }
.hero__bg--7 { background-image: url("../img/hero-7-sustainable.jpg"), linear-gradient(105deg, #3c5a45 0%, #6b8f74 55%, #b7d0bf 100%); }
.hero__bg--8 { background-image: url("../img/hero-8-forest.jpg"), linear-gradient(105deg, #2b4a32 0%, #4d7a58 55%, #a3c9ae 100%); }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.hero__content h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
  transform: translateY(24px);
  opacity: 0;
  transition: transform .8s .25s ease, opacity .8s .25s ease;
}
.hero__content p {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 400;
  margin: 14px auto 30px;
  max-width: 560px;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
  transform: translateY(24px);
  opacity: 0;
  transition: transform .8s .4s ease, opacity .8s .4s ease;
}
.hero__content .btn { transform: translateY(24px); opacity: 0; transition: transform .8s .55s ease, opacity .8s .55s ease, background .25s ease, color .25s ease, border-color .25s ease; }
.hero__slide.is-active h1,
.hero__slide.is-active p,
.hero__slide.is-active .btn { transform: translateY(0); opacity: 1; }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition: background .25s ease;
}
.hero__arrow:hover { background: var(--red); }
.hero__arrow--prev { left: 22px; }
.hero__arrow--next { right: 22px; }

.hero__dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__dots button {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .25s ease;
}
.hero__dots button.is-active { background: #fff; }

/* ============================================================
   Sections — shared
   ============================================================ */
.section { padding-block: 90px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Content is visible by default. Only hide it when JS is confirmed running,
   so a JS failure/block never leaves the page blank. */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; }
.js .reveal.is-visible {
  animation: rise .8s ease forwards;
  animation-delay: var(--delay, 0s);
}
/* Fallback for browsers without IntersectionObserver */
.js.no-io .reveal { opacity: 1; }

/* ============================================================
   Services cards
   ============================================================ */
.services { padding-top: 70px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  text-align: center;
  padding: 46px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card__icon {
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--red);
  background: #fbf1f1;
  transition: background .3s ease, color .3s ease;
}
.service-card:hover .service-card__icon { background: var(--red); color: #fff; }
.service-card h2 { font-size: 21px; font-weight: 700; color: var(--slate); margin-bottom: 12px; }
.service-card p { font-size: 15px; color: var(--slate-soft); margin-bottom: 20px; }

/* ============================================================
   About
   ============================================================ */
.about { background: var(--bg-light); }
.about__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.about__content p { margin-bottom: 16px; color: var(--slate-soft); }
.about__subtitle {
  margin: 26px 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--slate);
}
.about__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 9px;
  font-size: 15px;
  color: var(--slate-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 8px;
  border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}
.about__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.about__media { position: relative; padding-bottom: 60px; }
.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eef1f4;
}
.about__image img {
  display: block;
  width: 100%;
  height: auto;
}
.about__stat {
  position: absolute;
  left: 8%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--red);
  color: #fff;
  padding: 20px 34px;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(194, 32, 38, .4);
}
.about__stat h4 { font-size: 44px; font-weight: 800; line-height: 1; }
.about__stat h5 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  max-width: 150px;
  line-height: 1.4;
}

/* ============================================================
   Mission band
   ============================================================ */
.mission {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 2px, transparent 2px 30px),
    linear-gradient(100deg, var(--red-dark), var(--red) 60%, #d2454a);
  color: #fff;
  text-align: center;
  padding-block: 74px;
}
.mission h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
}
.mission p {
  max-width: 720px;
  margin-inline: auto;
  font-size: 17px;
  opacity: .95;
}

/* ============================================================
   Market leader
   ============================================================ */
.leader__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  margin-bottom: 52px;
}
.leader__kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.leader__head p:not(.leader__kicker) { color: var(--slate-soft); margin-top: 14px; max-width: 720px; }

.leader__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  padding: 36px 30px;
  border-radius: var(--radius);
  background: var(--bg-light);
  border-top: 4px solid var(--red);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 19px; font-weight: 700; color: var(--slate); margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--slate-soft); }

/* ============================================================
   Membership
   ============================================================ */
.membership { background: var(--bg-light); }
.membership__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 44px;
}
.membership__head p { color: var(--slate-soft); margin-top: 12px; max-width: 720px; }
.membership__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.member-chip {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px;
  font-size: 14px;
  color: var(--slate-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.member-chip:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member-chip__logo {
  display: inline-grid;
  place-items: center;
  min-width: 120px;
  height: 52px;
  padding-inline: 18px;
  border-radius: 8px;
  background: #eef1f4;
  color: var(--slate);
  font-weight: 800;
  letter-spacing: 1px;
}

/* ============================================================
   Partners
   ============================================================ */
.partners__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  margin-bottom: 50px;
}
.partners__head p { color: var(--slate-soft); margin-top: 12px; max-width: 760px; }
.partners__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.partner-logo {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-right: 1px solid var(--line);
  transition: opacity .25s ease;
}
.partner-logo:last-child { border-right: 0; }
.partner-logo img {
  max-height: 78px;
  width: auto;
  max-width: 82%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.partner-logo:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }
.partner-logo span {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  color: #b9c1c8;
  filter: grayscale(1);
  transition: color .25s ease;
}
.partner-logo:hover span { color: var(--slate); }

/* ============================================================
   News
   ============================================================ */
.news { background: var(--bg-light); }
.news__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 48px;
}
.news__kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
}
.news__head p { color: var(--slate-soft); margin-top: 12px; max-width: 700px; }
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(38,40,46,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.news-card__thumb {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: #eef1f4;
}
.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-card__thumb img { transform: scale(1.05); }
.news-card__thumb--1 { background: linear-gradient(120deg, #eef1f4, #ffffff); }
.news-card__thumb--2 { background: linear-gradient(120deg, #fbeeee, #ffffff); }
.news-card__thumb--3 { background: linear-gradient(120deg, #eef1f4, #ffffff); }
.news-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(18,26,32,.20) 0%, rgba(18,26,32,0) 45%);
}
.news-card__date {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 62px;
  height: auto;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  line-height: 1.25;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(194,32,38,.35);
}
.news-card__date b { font-size: 20px; }
.news-card__body { padding: 44px 24px 28px; }
.news-card h3 { font-size: 17px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.news-card h3 a { color: var(--slate); transition: color .2s ease; }
.news-card h3 a:hover { color: var(--red); }
.news-card p { font-size: 14.5px; color: var(--slate-soft); margin-bottom: 14px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { color: #b7bcc2; background: var(--charcoal); }
.footer__widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-block: 54px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__widget {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
}
.footer__widget svg { grid-row: span 2; color: var(--red); }
.footer__widget h2 { font-size: 19px; font-weight: 700; color: #fff; }
.footer__widget h4 { font-size: 13.5px; font-weight: 400; color: #9aa0a7; }

.footer__cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-block: 58px;
}
.footer__col h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.footer__col p { font-size: 14.5px; margin-bottom: 12px; }
.footer__col hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-block: 18px;
}
.footer__col ul li { margin-bottom: 12px; font-size: 14.5px; }
.footer__col ul a { transition: color .2s ease; }
.footer__col ul a:hover { color: #fff; }
.footer__date {
  display: block;
  font-size: 12.5px;
  color: #8b9198;
}
.cert-badge {
  display: inline-block;
  padding: 10px 18px;
  border: 2px dashed #5b6770;
  border-radius: 8px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.cert-badge span { font-weight: 400; font-size: 12px; color: #9aa0a7; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  transition: background .25s ease, color .25s ease;
}
.footer__social a:hover { background: var(--red); color: #fff; }

.footer__bottom {
  background: var(--charcoal-deep);
  padding-block: 22px;
  text-align: center;
  font-size: 14px;
}
.footer__bottom p { margin-bottom: 6px; color: #9aa0a7; }
.footer__bottom ul {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer__bottom ul li:not(:last-child)::after { content: "|"; margin-left: 10px; color: #55595f; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  box-shadow: 0 10px 24px rgba(194,32,38,.4);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red-dark); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-features { grid-template-columns: repeat(3, 1fr); }
  .hero-phone { grid-column: 1 / -1; justify-content: center; }
  .about__inner { grid-template-columns: 1fr; gap: 44px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .section { padding-block: 64px; }

  .nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100dvh;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(0,0,0,.15);
    padding: 90px 24px 30px;
    transition: right .3s ease;
    overflow-y: auto;
  }
  .nav.is-open { right: 0; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__item > a { padding: 12px; font-size: 16px; }
  .nav__item > a::after { display: none; }
  .nav-toggle { display: flex; z-index: 110; }

  .topbar__links { display: none; }
  .services__grid, .leader__grid, .membership__row, .news__grid { grid-template-columns: 1fr; }
  .leader__head, .partners__head, .news__head, .membership__head { grid-template-columns: 1fr; }
  .partners__row { grid-template-columns: 1fr; }
  .partner-logo { border-right: 0; border-bottom: 1px solid var(--line); }
  .partner-logo:last-child { border-bottom: 0; }
  .about__lists { grid-template-columns: 1fr; }
  .footer__widgets { grid-template-columns: 1fr; gap: 24px; }
  .footer__cols { grid-template-columns: 1fr; gap: 30px; }
  .hero { min-height: 420px; }
}

@media (max-width: 480px) {
  .hero-features { grid-template-columns: 1fr; text-align: center; }
  .hero-phone { flex-direction: column; text-align: center; white-space: normal; }
  .about__stat { position: static; margin-top: 18px; justify-content: center; }
  .about__media { padding-bottom: 0; }
  .topbar__cta { padding: 10px 18px; letter-spacing: 1px; }
}

/* ============================================================
   Inner pages
   ============================================================ */
.nav__item > a.is-active { color: var(--red); }

/* ---------- Nav dropdowns ---------- */
.nav__item { position: relative; }
.nav__item > a::after { transition: transform .25s ease; }
.nav__item:hover > a::after { transform: rotate(225deg) translateY(-2px); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 8px;
  min-width: 250px;
  padding: 10px 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(38, 40, 46, .16);
  border-top: 3px solid var(--red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 120;
}
.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-soft);
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, padding-left .18s ease;
}
.dropdown li a:hover {
  color: var(--red);
  background: #faf6f6;
  padding-left: 27px;
}
.dropdown li a.is-active { color: var(--red); }

/* dropdowns become an always-expanded indented list in the mobile panel
   (must come after the base .dropdown rules to win the cascade) */
@media (max-width: 820px) {
  .dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 8px 14px;
    border-top: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
  }
  .dropdown li a { padding: 8px 12px; font-size: 14.5px; border-left: 2px solid var(--line); }
  .dropdown li a:hover { padding-left: 16px; background: transparent; }
}

.page-hero {
  position: relative;
  background-image:
    linear-gradient(100deg, rgba(30,39,46,.93) 0%, rgba(46,56,64,.86) 62%, rgba(58,69,78,.80) 100%),
    linear-gradient(100deg, #2e3740, #47545e 65%, #5b6a75);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 58px 0 50px;
}
/* Per-page banner photography (2000x189 strips from the live site) */
.page-hero--about      { background-image: linear-gradient(100deg, rgba(30,39,46,.93) 0%, rgba(46,56,64,.86) 62%, rgba(58,69,78,.80) 100%), url("../img/page-about.jpg"); }
.page-hero--services   { background-image: linear-gradient(100deg, rgba(30,39,46,.93) 0%, rgba(46,56,64,.86) 62%, rgba(58,69,78,.80) 100%), url("../img/page-services.jpg"); }
.page-hero--contacts   { background-image: linear-gradient(100deg, rgba(30,39,46,.93) 0%, rgba(46,56,64,.86) 62%, rgba(58,69,78,.80) 100%), url("../img/page-contacts.jpg"); }
.page-hero--useful     { background-image: linear-gradient(100deg, rgba(30,39,46,.93) 0%, rgba(46,56,64,.86) 62%, rgba(58,69,78,.80) 100%), url("../img/page-useful-links.jpg"); }
.page-hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.15;
}
.page-hero p { margin-top: 12px; max-width: 700px; opacity: .92; font-size: 17px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 12px;
}
.breadcrumb li:not(:last-child)::after { content: "\203A"; margin-left: 6px; opacity: .7; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

.lead { font-size: 18px; color: var(--slate-soft); max-width: 800px; }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head .section-title { margin-bottom: 12px; }
.section-head p { color: var(--slate-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 30px),
    linear-gradient(100deg, var(--red-dark), var(--red) 70%);
  color: #fff;
  text-align: center;
  padding-block: 58px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 10px; }
.cta-band p { opacity: .95; margin-bottom: 26px; }
.cta-band .btn--solid { background: #fff; border-color: #fff; color: var(--red); }
.cta-band .btn--solid:hover { background: transparent; color: #fff; }

/* ---------- About: values, timeline, stats ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.value-card {
  padding: 32px 26px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-top: 4px solid var(--red);
  transition: transform .3s ease, box-shadow .3s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card svg { color: var(--red); margin-bottom: 14px; }
.value-card h3 { font-size: 17px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.value-card p { font-size: 14.5px; color: var(--slate-soft); }

.timeline { position: relative; margin-left: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; padding: 0 0 30px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px #fbf1f1;
}
.timeline h3 { font-size: 17px; font-weight: 700; color: var(--slate); }
.timeline h3 span { color: var(--red); margin-right: 8px; }
.timeline p { font-size: 15px; color: var(--slate-soft); margin-top: 4px; }

.stats-band {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 30px),
    linear-gradient(100deg, var(--red-dark), var(--red) 70%);
  color: #fff;
  padding-block: 52px;
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: center;
}
.stats-band h4 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; line-height: 1.1; }
.stats-band h4 sup { font-size: .55em; }
.stats-band p { font-size: 13.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; opacity: .92; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: start;
}
.side-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.side-card h3 { font-size: 18px; font-weight: 700; color: var(--slate); margin-bottom: 14px; }
.side-card ul li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  color: var(--slate-soft);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.side-card ul li:last-child { border-bottom: 0; }
.side-card ul li b { color: var(--slate); white-space: nowrap; }

/* ---------- Products ---------- */
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-chips button {
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--slate-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  cursor: pointer;
  transition: all .25s ease;
}
.filter-chips button:hover { border-color: var(--red); color: var(--red); }
.filter-chips button.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card.is-hidden { display: none; }
.product-card__thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  background: #f4f6f8;
}
.product-card__thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 14px;
  box-sizing: content-box;
  transition: transform .45s ease;
}
.product-card:hover .product-card__thumb img { transform: scale(1.06); }
.product-card__thumb--1 { background: linear-gradient(120deg, #eef1f4, #ffffff); }
.product-card__thumb--2 { background: linear-gradient(120deg, #fbeeee, #ffffff); }
.product-card__thumb--3 { background: linear-gradient(120deg, #eef1f4, #ffffff); }
.product-card__thumb--4 { background: linear-gradient(120deg, #f3f6f2, #ffffff); }
.product-card__cat {
  display: inline-block;
  margin: 20px 24px 0;
  padding: 4px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  background: #fbf1f1;
  border-radius: 20px;
}
.product-card h3 { font-size: 17px; margin: 10px 24px 6px; line-height: 1.45; }
.product-card h3 a { color: var(--slate); transition: color .2s ease; }
.product-card h3 a:hover { color: var(--red); }
.product-card p { font-size: 14px; color: var(--slate-soft); margin: 0 24px 18px; }

.ph-strip {
  margin-top: 40px;
  padding: 16px 22px;
  border: 1px dashed var(--red);
  border-radius: 8px;
  background: #fdf7f7;
  font-size: 14px;
  color: var(--slate-soft);
}

.product-detail {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: start;
}
.product-detail__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-light);
}
.product-detail__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  padding: 26px;
  background: #fff;
}
.spec-table { width: 100%; border-collapse: collapse; margin-block: 20px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec-table th { color: var(--slate); font-weight: 700; width: 44%; }
.spec-table td { color: var(--slate-soft); }
.product-detail__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.ph-note {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: #fdf7f7;
  border-left: 4px solid var(--red);
  font-size: 14.5px;
  color: var(--slate-soft);
}
.ph-note svg { flex: 0 0 auto; color: var(--red); margin-top: 2px; }

/* ---------- Services detail ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
  padding-block: 46px;
  border-bottom: 1px solid var(--line);
}
.service-block:last-of-type { border-bottom: 0; }
.service-block:nth-child(even) .service-block__visual { order: -1; }
.service-block__visual {
  border-radius: var(--radius);
  min-height: 280px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(120deg, #46535d, #7d8d99);
}
.service-block:nth-child(2) .service-block__visual { background: linear-gradient(120deg, var(--red-dark), #d2454a); }
.service-block:nth-child(3) .service-block__visual { background: linear-gradient(120deg, #37424b, #5b6770); }
.service-block h2 { font-size: 26px; font-weight: 800; color: var(--slate); margin-bottom: 12px; }
.service-block > div > p { color: var(--slate-soft); margin-bottom: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--bg-light);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--slate-soft); }

/* ---------- News page / article ---------- */
.news-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 46px; }
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-soft);
  background: var(--white);
}
.pagination .is-current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a:hover { border-color: var(--red); color: var(--red); }

.article { max-width: 800px; margin-inline: auto; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--slate-soft);
  margin-bottom: 24px;
}
.article__banner {
  height: 320px;
  border-radius: var(--radius);
  margin-bottom: 34px;
  background: linear-gradient(120deg, #46535d, #7d8d99);
  position: relative;
  overflow: hidden;
}
.article__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 24px);
}
.article h2 { font-size: 22px; font-weight: 700; color: var(--slate); margin: 30px 0 12px; }
.article p { color: var(--slate-soft); margin-bottom: 16px; }
.article blockquote {
  margin: 26px 0;
  padding: 22px 28px;
  background: var(--bg-light);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  font-style: italic;
  color: var(--slate);
}
.article__nav { display: flex; justify-content: space-between; margin-top: 40px; }

/* ---------- Useful ---------- */
.link-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.link-card {
  display: block;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.link-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.link-card svg { color: var(--red); margin-bottom: 14px; }
.link-card h3 { font-size: 16px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.link-card p { font-size: 13.5px; color: var(--slate-soft); margin-bottom: 10px; }
.link-card span { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--red); }

.faq { max-width: 820px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  padding: 20px 26px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 54px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--red);
  transition: transform .25s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 26px 22px; font-size: 15px; color: var(--slate-soft); }

/* ---------- Contacts ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: start;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 36px;
  box-shadow: 0 4px 18px rgba(38,40,46,.05);
}
.form-card h2 { font-size: 22px; font-weight: 800; color: var(--slate); margin-bottom: 6px; }
.form-card > p { font-size: 14.5px; color: var(--slate-soft); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--slate);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--slate);
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); background: #fff; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: #8b9198; margin-top: 14px; }
.form-success {
  display: none;
  padding: 26px;
  border-radius: var(--radius);
  background: #eef7ef;
  border: 1px solid #cde5cf;
  color: #2e6b36;
  font-weight: 600;
}
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }

.contact-aside { display: grid; gap: 18px; }
.contact-card {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
}
.contact-card svg { flex: 0 0 auto; color: var(--red); margin-top: 3px; }
.contact-card h3 { font-size: 15.5px; font-weight: 700; color: var(--slate); }
.contact-card p { font-size: 14.5px; color: var(--slate-soft); }
.contact-card a:hover { color: var(--red); }
.map-placeholder {
  height: 220px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #9aa0a7;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, #eef1f4 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #eef1f4 39px 40px);
}

/* ---------- Careers ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.job-list { display: grid; gap: 18px; }
.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.job-card h3 { font-size: 18px; font-weight: 700; color: var(--slate); }
.job-card .job-meta { display: flex; gap: 16px; margin-top: 6px; font-size: 13.5px; color: var(--slate-soft); flex-wrap: wrap; }
.job-card .job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-card .btn { padding: 10px 24px; }

/* ---------- Legal ---------- */
.legal-wrap { max-width: 860px; }
.notice-box {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  margin-bottom: 36px;
  border-radius: var(--radius);
  border: 1px dashed var(--red);
  background: #fdf7f7;
  font-size: 14px;
  color: var(--slate-soft);
}
.notice-box svg { flex: 0 0 auto; color: var(--red); margin-top: 2px; }
.prose h2 { font-size: 20px; font-weight: 700; color: var(--slate); margin: 34px 0 12px; }
.prose p, .prose li { font-size: 15.5px; color: var(--slate-soft); margin-bottom: 12px; }
.prose ul { padding-left: 22px; list-style: disc; }
.ph { color: var(--red); font-weight: 600; }

/* ---------- Inner-page responsive ---------- */
@media (max-width: 1024px) {
  .values-grid, .steps, .benefits-grid, .link-cards { grid-template-columns: repeat(2, 1fr); }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .two-col, .contact-grid, .product-detail, .service-block { grid-template-columns: 1fr; gap: 34px; }
  .service-block:nth-child(even) .service-block__visual { order: 0; }
  .form-row { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 44px 0 40px; }
}
@media (max-width: 560px) {
  .values-grid, .steps, .benefits-grid, .link-cards, .products-grid, .stats-band__grid { grid-template-columns: 1fr; }
}


/* tighter header for longer (BG) labels between mobile and desktop widths */
@media (max-width: 1150px) {
  .header__inner { gap: 12px; }
  .nav__item > a { padding: 12px 9px; font-size: 14px; }
  .logo__text small { display: none; }
  .logo__text strong { font-size: 22px; }
}


/* ============================================================
   Real photography (mirrored from the live bestamed.com site)
   ============================================================ */

/* ---------- Partner logos ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  align-items: center;
  margin-top: 30px;
}
.logo-strip a {
  display: grid;
  place-items: center;
  padding: 16px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.logo-strip a:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: 0 10px 24px rgba(20,28,34,.10);
}
.logo-strip img {
  max-height: 62px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- Service block visuals ---------- */
.service-block__visual {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  background: #eef1f4;
}
.service-block__visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

/* ---------- Editorial / article figure ---------- */
.page-figure {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 26px;
  background: #eef1f4;
}
.page-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Certification badge ---------- */
.cert-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.cert-badge img { display: block; height: 96px; width: auto; }

/* ---------- Article hero on news detail ---------- */
.article-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
  background: #eef1f4;
}
.article-hero img { width: 100%; height: auto; display: block; }

@media (max-width: 560px) {
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Footer brand lockup ---------- */
.footer__brand { margin-bottom: 14px; }
.footer__brand img {
  display: block;
  height: 54px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  box-sizing: content-box;
}


/* ============================================================
   Video gallery
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
.video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,28,34,.14); }
.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f1518;
}
.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-card__body { padding: 22px 24px 26px; }
.video-card__body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 8px;
}
.video-card__body p {
  color: var(--slate-soft);
  font-size: 14.5px;
  margin: 0;
}
.video-note {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--slate-soft);
}

@media (max-width: 820px) {
  .video-grid { grid-template-columns: 1fr; gap: 24px; }
}
