/* ============================================
   VARIABLES & RESET
   ============================================ */
@import url('/assets/css/brand.css?v=20260906b');

:root {
  /* Legacy theme slots remapped to the Calendula Medical palette (LIGHT site).
     New work should use the semantic tokens from brand.css. */
  --color-1: var(--brand-charcoal);   /* "the dark" — dark fills, text on gold */
  --color-2: var(--charcoal-700);     /* strong / bold text         */
  --color-3: var(--brand-charcoal);   /* headings / links           */
  --color-4: var(--charcoal-500);     /* muted                      */
  --color-5: var(--brand-gold);       /* accent / secondary nav     */
  --color-6: var(--charcoal-500);     /* muted paragraph text       */
  --color-7: var(--brand-charcoal);   /* near-black                 */
  --radius-pill: 999px;
  --transition-fast: 0.2s ease-in-out;
  --header-h: 72px;
  --fs-10: 0.56rem; --fs-12: 0.67rem; --fs-14: 0.78rem;
  --fs-16: 0.89rem; --fs-18: 1rem;   --fs-20: 1.11rem;
  --fs-22: 1.22rem; --fs-24: 1.33rem; --fs-26: 1.44rem;
  --fs-28: 1.56rem; --fs-30: 1.67rem; --fs-32: 1.78rem;
  --fs-34: 1.89rem; --fs-36: 2rem;   --fs-38: 2.11rem;
  --fs-40: 2.22rem;
  --ord-badge-size: 260px;
  --ord-border-color: var(--charcoal-500);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
@font-face {
  font-family: 'Mulish';
  src: url('/assets/fonts/Mulish.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
   font-display: optional;
}

/* Fallback з точними метриками Mulish */
@font-face {
  font-family: 'Mulish Fallback';
  src: local('Arial');
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 99.4%;
}
html {
  font-size: clamp(14px, 0.9375vw, 18px);
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  background: var(--sage-100);
  color: var(--text-on-light);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  font-weight: 400;
  color: var(--brand-charcoal);
}

a { text-decoration: none; color: var(--color-3); }
b { color: var(--color-2); }
p { color: var(--color-6); line-height: 30px; padding-bottom: 16px; }



/* ============================================
   LAYOUT
   ============================================ */
.container { margin-inline: 90px; }
.container-fluid {
  width: 100%;
  max-width: clamp(1000px, 80vw, 1290px);
  margin-inline: auto;
}

.no-scroll { overflow: hidden; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: var(--fs-18);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  box-sizing: border-box;
  line-height: var(--fs-24);
  width: max-content;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--sage-400);
  box-sizing: border-box;
  color: var(--brand-charcoal);
  font-size: var(--fs-18);
  font-weight: 600;
  text-decoration: none;
  line-height: var(--fs-24);
  width: max-content;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.btn-outline:hover { border-color: var(--accent); background: var(--sage-100); }
.btn-outline:active { transform: translateY(1px); }
.btn-outline:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  inset-inline: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--sage-300);
  transition: box-shadow 0.25s ease;
}
.header--blur { box-shadow: 0 6px 24px -12px rgba(52,52,52,.25); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  min-height: 72px; /* CLS FIX — резервує висоту одразу */
}

.header__nav {
  display: flex;
  gap: 30px;
  font-size: var(--fs-22);
  white-space: nowrap;
}
.header__nav a {
  color: var(--brand-charcoal);
  line-height: 24px;
  font-size: var(--fs-18);
  transition: color var(--transition-fast);
}
.header__nav a:hover { color: var(--accent); }

.nav__link {
  background: none;
  border: none;
  color: var(--brand-charcoal);
  font-size: var(--fs-18);
  transition: color var(--transition-fast);
}
.nav__link:hover { color: var(--accent); }
.nav__link-arrow { font-size: 0.7rem; }

.header__logo svg { width: clamp(70px, 7vw, 130px); height: auto; }
.header__logo-link { display: inline-flex; align-items: center; }
.header__logo-img { height: clamp(28px, 3.4vw, 42px); width: auto; display: block; }

.header__right {
  display: flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
}

.header__phones {
  display: flex;
  flex-direction: row;
  gap: 23px;
  font-size: var(--fs-20);
  position: relative;
}
.header__phones a {color: var(--brand-charcoal);text-decoration: none;display: flex;font-weight: 600;}
.header__phones a:hover { color: var(--accent); }
.header__phones a svg { fill: var(--accent); }

/* header contact stack: address / phone+icon / callback */
.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.header__phones .header__address {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-12);
  font-weight: 400;
  color: var(--charcoal-500);
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.header__phones .header__address:hover { color: var(--accent); }
.header__addr-ic { color: var(--accent); flex-shrink: 0; }
.header__contact .header__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--brand-charcoal);
  line-height: 1.15;
}
.header__contact .header__phone:hover { color: var(--accent); }
.header__phone-ic { color: var(--accent); flex-shrink: 0; }
.header__callback {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: var(--fs-12);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.header__callback:hover { color: var(--gold-600); }
.header__msgrs { display: inline-flex; gap: 12px; align-items: center; }

.header__lang {
  background: transparent;
  border: none;
  color: var(--brand-charcoal);
  font-size: var(--fs-18);
  cursor: pointer;
}

.header__burger {
  display: none;
  width: 32px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

/* Phones */
.phones-desktop {display: flex;gap: 16px;justify-content: flex-end;align-items: center;}
.phones-mobile { display: none; }
.phones-mobile summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--accent);
}
.phones-mobile summary::-webkit-details-marker { display: none; }
.phones-mobile__list {
  position: absolute;
  top: 120%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--sage-300);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(52,52,52,.15);
  padding: 8px 0;
  min-width: 180px;
  z-index: 100;
}
.phones-mobile__list a {display: flex;padding: 10px 16px;color: var(--brand-charcoal);white-space: nowrap;font-size: 16px;}
.phones-mobile__list a:hover { background: var(--sage-100); }

/* Logo animation */
.header__logo .logo-anim {
  width: 100px;
  height: auto;
  display: block;
  transform-origin: 50% 50%;
  overflow: visible;
}
.header__logo .logo-anim path {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(-10px) scale(0.985);
  transition: none;
  will-change: transform, opacity, filter;
}
.header__logo .logo-anim.is-animated {
  animation: logoPop 600ms cubic-bezier(.2,.8,.2,1) both;
}
.header__logo .logo-anim.is-animated path {
  animation-name: logoPathIn;
  animation-duration: 700ms;
  animation-timing-function: cubic-bezier(.2,.8,.2,1);
  animation-fill-mode: forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes logoPop {
  from { transform: translateY(-8px) scale(.99); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes logoPathIn {
  0%   { opacity: 0; transform: translateY(-10px) scale(0.985); }
  60%  { opacity: 1; transform: translateY(1px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Burger */
.burger {
  width: 44px; height: 44px;
  border: 0; background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}
.burger__line {
  height: 2px; width: 100%;
  background: var(--brand-charcoal);
  border-radius: var(--radius-pill);
  transition: transform 260ms ease, opacity 180ms ease, width 260ms ease;
  transform-origin: center;
}
.burger.is-active .burger__line:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger.is-active .burger__line:nth-child(2) { opacity: 0; width: 0; }
.burger.is-active .burger__line:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
.phones-mobile__list a svg {
    margin-right: 10px;
}
/* Mobile menu */
.mobile-menu {
  position: fixed;
  left: 0; right: 0;
  top: calc(var(--header-h, 72px) + env(safe-area-inset-top, 0));
  z-index: 40;
  background: var(--white);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms ease, opacity 260ms ease;
  border-top: 1px solid var(--sage-300);
  box-shadow: 0 20px 40px -20px rgba(52,52,52,.25);
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu__inner {
  max-height: calc(100vh - var(--header-h, 72px));
  overflow: auto;
  padding: 14px 16px 24px;
}
.mobile-nav { display: grid; gap: 10px; }
.mobile-item__row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: center; }
.mobile-item__link {
  display: block; padding: 14px;
  color: var(--brand-charcoal); text-decoration: none;
  border-radius: 9px;
  font-size: 16px;
}
.mobile-item__link--sub { margin-top: 8px; margin-left: 18px; padding-left: 16px; opacity: 0.95; }
.mobile-item__toggle {
  width: 44px; height: 44px;
  border-radius: 32px; border: none;
  background: var(--sage-100);
  position: relative; cursor: pointer;
}
.mobile-item__toggle::before {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 220ms ease;
}
.mobile-item.is-open > .mobile-item__row .mobile-item__toggle::before { transform: rotate(-135deg); }
.mobile-item.is-open > .mobile-item__row .mobile-item__toggle { background-color: var(--sage-200); }
.mobile-sub { padding-left: 15px; }
.mobile-sub .mobile-item__link,
.mobile-sub .mobile-item__toggle { margin-top: 8px; }

/* Services dropdown — simple single-column list anchored under the nav link */
.nav__item { position: relative; }
.services-menu {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-6px);
  z-index: 19;
  width: 260px;
  background: var(--white);
  border: 1px solid var(--sage-300);
  border-radius: 16px;
  box-shadow: 0 20px 40px -18px rgba(52,52,52,.25);
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.services-menu--open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.services-menu__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.services-menu__item { color: var(--brand-charcoal); }
.services-menu__link {
  display: block; padding: 12px 16px; border-radius: 10px;
  color: var(--brand-charcoal); font-size: var(--fs-16);
  transition: background 0.15s ease, color 0.15s ease;
}
.services-menu__link:hover { background: var(--sage-100); color: var(--accent); }

@media (max-width: 1024px) {
  .services-menu { display: none; }
}

/* ============================================
   HERO 2 — Calendula Medical
   ============================================ */
.hero2 {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h, 88px) + 56px) 0 64px;
  color: var(--text-on-light);
  background: var(--sage-100);
  overflow: hidden;
}
.hero2__bg { position: absolute; inset: 0; z-index: -2; }
.hero2__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero2__textcard {
  position: relative;
  z-index: 1;
  display: inline-block;
}
.hero2__textcard::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30px;
  background: var(--white);
  border-radius: 50%;
  filter: blur(50px);
}

.hero2__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero2__left { max-width: 640px; }

.hero2__eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  color: var(--accent);
  font-size: var(--fs-16);
  margin: 0 0 18px;
}

/* Google rating chip */
.hero2__rating {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 8px 16px 8px 12px;
  background: var(--white);
  border: 1px solid var(--sage-300);
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 8px 22px -12px rgba(52,52,52,.28);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.hero2__rating:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 26px -12px rgba(52,52,52,.32);
  transform: translateY(-1px);
}
.hero2__rating-g { flex-shrink: 0; }
.hero2__rating-score {
  font-weight: 700;
  font-size: var(--fs-18);
  color: var(--brand-charcoal);
  line-height: 1;
}
.hero2__rating-stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: var(--fs-14);
  line-height: 1;
}
.hero2__rating-label {
  font-size: var(--fs-12);
  color: var(--charcoal-500);
  white-space: nowrap;
}
@media (max-width: 400px) {
  .hero2__rating-label { display: none; }
}

.hero2__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 400;
  color: var(--brand-charcoal);
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  line-height: 1.1;
  text-wrap: balance;
  margin: 0 0 18px;
}
.hero2__title b { color: var(--accent); font-weight: 400; }
.hero2__subtitle {
  color: var(--charcoal-600);
  font-size: var(--fs-18);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0;
  padding: 0;
}

.hero2__services {
  list-style: none;
  margin: 26px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 28px;
}
.hero2__services li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-18);
  color: var(--charcoal-700);
  padding: 12px 16px;
  background: #ffffffc9;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}
.hero2__services li::before {
  content: "";
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.55 17.6 4.4 12.45l1.4-1.4 3.75 3.75 8.25-8.25 1.4 1.4z'/%3E%3C/svg%3E") center / 78% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.55 17.6 4.4 12.45l1.4-1.4 3.75 3.75 8.25-8.25 1.4 1.4z'/%3E%3C/svg%3E") center / 78% no-repeat;
}

/* right — lead form card */
.hero2__card {
  background: #f1f4eccc;
  color: var(--text-on-light);
  border: 1px solid var(--sage-300);
  border-radius: 22px;
  padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 24px 50px -28px rgba(52,52,52,.35);
  backdrop-filter: blur(6px);
}
.hero2__card-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 400;
  color: var(--brand-charcoal);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin: 0 0 8px;
}
.hero2__card-note { color: var(--charcoal-500); font-size: var(--fs-16); margin: 0 0 22px; padding: 0; }

.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form input[type="text"],
.lead-form input[type="tel"] {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #ffffff;
  font: inherit;
  color: var(--brand-charcoal);
}
.lead-form input::placeholder { color: var(--charcoal-400); }
.lead-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.lead-form .btn-primary { width: 100%; text-align: center; margin-top: 4px; }
.lead-form__policy {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--fs-12); color: var(--charcoal-500); line-height: 1.4;
}
.lead-form__policy input { margin-top: 2px; accent-color: var(--accent); }
.lead-form__policy a { color: var(--gold-500); text-decoration: underline; }

@media (max-width: 960px) {
  .hero2__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero2__services { max-width: 520px; }
}
@media (max-width: 560px) {
  .hero2 { padding-top: calc(var(--header-h, 88px) + 36px); }
  .hero2__services { grid-template-columns: 1fr; }
}

/* ============================================
   HERO / HEADER SLIDE
   ============================================ */
.header-slide {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 600px;
  background: #343434BF;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero__bigtext, .hero__bigsmile { position: absolute; pointer-events: none; }

.hero__bigtext {
  display: inline-block;
  white-space: nowrap;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-size: 5.3vw;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(210,217,201,.25) 0%, rgba(210,217,201,.25) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .25;
  -webkit-text-stroke: 0.5px var(--sage-300);
}
.hero__bigtext-letter, .hero__bigtext-space {
  display: inline-block;
  background: linear-gradient(90deg, rgba(210,217,201,.25) 0%, rgba(210,217,201,.25) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .25;
  -webkit-text-stroke: 0.5px var(--sage-300);
  pointer-events: none;
}
.hero__bigsmile {
  top: 370px; left: 50%;
  transform: translateX(-50%);
  width: 50%;
}
.hero__bigsmile svg { width: 100%; transform-origin: center; will-change: transform, opacity; }
.hero__h1 {
  position: absolute;
  bottom: 150px; left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-40);
  color: var(--color-3);
  font-weight: 600;
  width: 66%;
  text-align: center;
  will-change: transform, opacity;
}
.video-bg { position: relative; overflow: hidden; z-index: -1; }
.video-bg__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================
   PROMO SLIDER
   ============================================ */
section.promo {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--sage-100);
  overflow: hidden;
}
.promo__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(28px, 4vw, 48px);
}
.promo__carousel { position: relative; }
.promo__eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  color: var(--accent);
  font-size: var(--fs-16);
  margin: 0 0 12px;
}
.promo__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 400;
  color: var(--brand-charcoal);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0;
}

.promo-slider { position: relative; overflow: hidden; width: 100%; padding: 14px 0; }
.promo-slider .swiper-wrapper { align-items: stretch; }
.promo-slider .swiper-slide {
  height: auto !important;      /* override swiper's height:100% so align-items:stretch equalises */
  width: min(760px, 88vw);
  flex-shrink: 0;
  display: flex;
}
.promo-slider:not(.swiper-initialized) .swiper-wrapper { gap: 20px; }

.promo-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  width: 100%;
  min-height: 360px;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
}
.promo-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.promo-badge {
  align-self: flex-start;
  padding: 6px 16px;
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-contrast);
  background: var(--accent);
  border-radius: var(--radius-pill);
}
.promo-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 400;
  color: var(--brand-charcoal);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin: 0;
}
.promo-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.promo-price__old { color: var(--charcoal-400); text-decoration: line-through; font-size: var(--fs-20); }
.promo-price__new { color: var(--brand-charcoal); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.promo-price__off {
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--sage-300); color: var(--gold-600);
  font-weight: 700; font-size: var(--fs-14);
}
.promo-desc { color: var(--charcoal-600); font-size: var(--fs-18); line-height: 1.55; margin: 0; padding: 0; }

.promo-doctor { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.promo-doctor__name { font-weight: 600; color: var(--brand-charcoal); font-size: var(--fs-16); }
.promo-doctor__role { color: var(--charcoal-500); font-size: var(--fs-14); }

.promo-feature {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--sage-100); border-radius: 14px;
  padding: 14px 18px;
}
.promo-feature__icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); position: relative; margin-top: 2px;
}
.promo-feature__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 14px; height: 14px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.promo-feature__title { font-weight: 600; color: var(--brand-charcoal); font-size: var(--fs-16); }
.promo-feature__items { color: var(--charcoal-600); font-size: var(--fs-14); margin-top: 2px; }

.promo-feature--list { background: transparent; padding: 0; align-items: center; }
.promo-feature--list .promo-feature__icon { width: 24px; height: 24px; background: var(--sage-100); margin-top: 0; }
.promo-feature--list .promo-feature__icon::after {
  width: 12px; height: 12px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.promo-feature--list .promo-feature__title { font-size: var(--fs-16); font-weight: 400; line-height: 1.4; }

.promo-percent { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.promo-percent__value {
  font-family: var(--font-display); font-weight: 400; color: var(--accent);
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1;
}
.promo-percent__value small { font-size: 0.5em; margin-left: 2px; }
.promo-percent__label { color: var(--charcoal-600); font-size: var(--fs-16); text-transform: uppercase; letter-spacing: .03em; }

.promo-audience { color: var(--charcoal-500); font-size: var(--fs-14); margin: -8px 0 0; }

.promo-duration { display: flex; align-items: center; gap: 8px; color: var(--charcoal-600); font-size: var(--fs-16); }
.promo-duration svg { color: var(--accent); flex-shrink: 0; }

.promo-limited {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  color: var(--brand-charcoal);
  font-size: var(--fs-14); font-weight: 600;
}
.promo-limited svg { color: var(--accent); flex-shrink: 0; }

.promo-card__btn { margin-top: 6px; }
.promo-card__more { color: var(--gold-500); font-size: var(--fs-14); text-decoration: underline; }

.promo-card:not(:has(.promo-card__media)) { grid-template-columns: 1fr; }
.promo-card:not(:has(.promo-card__media)) .promo-card__body { text-align: center; align-items: center; }
.promo-card:not(:has(.promo-card__media)) .promo-badge { align-self: center; }
.promo-card:not(:has(.promo-card__media)) .promo-price { justify-content: center; }

.promo-card__media { position: relative; min-height: 300px; }
.promo-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.promo-slide__content, .promo-slide__image, .promo-stats { /* legacy — no-op */ }

@media (max-width: 720px) {
  .promo-slide { width: 88vw; }
  .promo-card { grid-template-columns: 1fr; min-height: 0; }
  .promo-card__media { height: 200px; order: -1; }
  .promo-card__media img { position: static; }
  .promo-card__body { justify-content: flex-start; }
}
/* ============================================
   SWIPER NAV (спільне)
   ============================================ */
.promo-nav, .services-nav, .team-nav {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 10; min-height: 0 !important;
}

.promo-prev, .promo-next,
.services-prev, .services-next,
.team-prev, .team-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  pointer-events: auto;
  width: 52px !important; height: 52px !important;
  margin-top: 0;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  transition: .25s;
  visibility: hidden;
}
.swiper-initialized .promo-prev,  .swiper-initialized .promo-next,
.swiper-initialized .services-prev,.swiper-initialized .services-next,
.swiper-initialized .team-prev,   .swiper-initialized .team-next { visibility: visible; }

.promo-prev:hover, .promo-next:hover,
.services-prev:hover, .services-next:hover,
.team-prev:hover, .team-next:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-50%) scale(1.05);
}

.promo-prev::after, .promo-next::after,
.services-prev::after, .services-next::after,
.team-prev::after, .team-next::after {
  font-size: 18px !important; color: #fff;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

/* Swiper перебиває margin-top — скидаємо */
.swiper-button-prev.promo-prev,
.swiper-button-next.promo-next {
  width: 52px !important; height: 52px !important;
  margin-top: 0 !important;
  top: 50% !important; transform: translateY(-50%) !important;
}
.swiper-button-prev.promo-prev:hover,
.swiper-button-next.promo-next:hover { transform: translateY(-50%) scale(1.05) !important; }

.promo-prev, .services-prev, .team-prev { left: 20px; }
.promo-next, .services-next, .team-next { right: 20px; }

/* Pagination */
.swiper-pagination-bullet {
  position: relative;
  width: 48px; height: 48px;
  display: inline-flex; justify-content: center; align-items: center;
  background: transparent; margin: 0 4px;
}
.swiper-pagination-bullet::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(255,255,255,.5);
}
.swiper-pagination-bullet-active { opacity: 1; }
.swiper-pagination-bullet.swiper-pagination-bullet-active::before { background: #fff; }

span.swiper-pagination-bullet.swiper-pagination-bullet-active {
  width: 24px; height: 10px;
  border-radius: 20px;
  background-color: var(--color-3) !important;
}

.promo-slider .swiper-wrapper,
.team-slider .swiper-wrapper { padding-bottom: 40px; }

/* ============================================
   ABOUT
   ============================================ */
.about__inner { display: flex; position: relative; padding: 90px 0 60px; }
.about__photo-col {
  display: flex; width: 50%;
  justify-content: center; align-items: center;
  position: relative; max-height: 645px;
}
.about__text-col { width: 50%; padding: 30px 0 30px 140px; }

.about__photo-wrapper,
.about__photo-wrapper-2 { display: none; }
.about__photo-wrapper-3 {
  position: relative; width: 100%;
  z-index: 3;
  overflow: hidden; border-radius: 24px;
  max-width: 340px;
  box-shadow: 0 30px 60px -30px rgba(52,52,52,.35);
}

.about__photo {
  width: 100%; height: auto; display: block;
}

/* bottom name/role overlay on the doctor photo */
.about__photo-caption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(166,147,89,.62), rgba(105,92,55,.62));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 16px 36px -18px rgba(52,52,52,.5);
  color: var(--white);
}
.about__photo-name {
  font-family: var(--font-display);
  letter-spacing: .02em;
  font-size: var(--fs-24);
  line-height: 1.2;
}
.about__photo-role { font-size: var(--fs-14); color: rgba(255,255,255,.9); margin-top: 6px; }
.about__photo-mark {
  flex-shrink: 0; width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
}

p.about__eyebrow { color: var(--color-3); font-size: var(--fs-18); padding: 0; margin: 0; text-transform: uppercase; }

.about__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--sage-100);
  color: var(--gold-600);
  font-size: var(--fs-12); font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 20px;
}
.about__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

h2.about__title {
  color: var(--color-3);
  font-size: clamp(36px, calc(36px + (48 - 36) * ((100vw - 1024px) / (1920 - 1024))), 48px);
  font-weight: 500; margin-top: 0; margin-bottom: 20px;
  line-height: 1.1; text-transform: uppercase;
}

.about__subtitle {
  color: var(--charcoal-600);
  font-size: var(--fs-18);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0 0 30px;
  padding: 0;
}

.about__points { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.about__points li { display: flex; align-items: center; gap: 14px; font-size: var(--fs-18); color: var(--charcoal-700); font-weight: 600; }
.about__point-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--sage-300);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -10px rgba(52,52,52,.25);
}

.about__cta { display: inline-flex; align-items: center; gap: 10px; }
.about__cta-icon { color: var(--white); flex-shrink: 0; }


/* ============================================
   PHILOSOPHY
   ============================================ */
section#philosophy { padding: 90px 0 130px; }

h2.philosophy__title {
  color: var(--color-3); font-size: var(--fs-32);
  text-align: center; font-weight: 500;
  line-height: 48px; margin-bottom: 8px;
}
p.philosophy__subtitle { color: var(--color-2); text-align: center; line-height: 30px; }
.philosophy__items { display: flex; margin-top: 100px; }
.philosophy__item { position: relative; padding: 30px; }
.philosophy__letter {
  background: linear-gradient(90deg, rgba(210,217,201,.25) 0%, rgba(210,217,201,0) 58.02%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-size: 140px; font-weight: 900;
  position: absolute; z-index: -1; top: -60px; left: 0;
  opacity: 0; transform: translateY(40px) scale(0.9);
  -webkit-text-stroke: 0.5px var(--sage-300);
}
h3.philosophy__item-title { color: var(--color-3); font-size: var(--fs-28); line-height: 40px; margin-bottom: 8px; }
p.philosophy__description { color: var(--color-3); font-size: var(--fs-24); line-height: 40px; padding: 60px; text-align: center; }
.philosophy__bottom { text-align: center; }
.philosophy__header, .philosophy__bottom { opacity: 0; transform: translateY(20px); }
.philosophy__item-title, .philosophy__item-text { opacity: 0; transform: translateX(24px); }

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--white);
  color: var(--text-on-light);
  position: relative;
  overflow: hidden;
}
.services__header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.services__label {
  font-family: var(--font-display);
  font-size: var(--fs-16); letter-spacing: var(--tracking-display);
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; line-height: 1.2;
}
.services__title {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400; margin: 0; line-height: 1.1;
  color: var(--brand-charcoal);
}
.services__all-link {
  font-size: var(--fs-16); color: var(--gold-500); text-decoration: none;
  border-bottom: 1px solid var(--sage-400); padding-bottom: 2px;
  white-space: nowrap; transition: color var(--transition-fast), border-color var(--transition-fast);
}
.services__all-link:hover { color: var(--accent); border-color: var(--accent); }

/* carousel lives in .container-fluid — same left/right margins as every other section */
.services__carousel { position: relative; }

.services-slider {
  overflow: hidden;              /* cards clipped exactly at the container edges */
  padding: 14px 0 14px;         /* headroom for the hover lift + shadow */
}
.services-slider .swiper-slide { height: 400px; flex-shrink: 0; }
/* pre-init fallback so there's no full-width flash before Swiper runs */
.services-slider:not(.swiper-initialized) .swiper-wrapper { gap: 20px; }
.services-slider:not(.swiper-initialized) .swiper-slide { width: calc((100% - 60px) / 4); }
@media (max-width: 1280px) { .services-slider:not(.swiper-initialized) .swiper-slide { width: calc((100% - 40px) / 3); } }
@media (max-width: 900px)  { .services-slider:not(.swiper-initialized) .swiper-slide { width: calc((100% - 20px) / 2); } }
@media (max-width: 560px)  { .services-slider:not(.swiper-initialized) .swiper-slide { width: 82%; } }

/* side arrows — outside the container, in the gutter, symmetric (services + promo + social + reviews) */
.services-prev, .services-next,
.promo-prev, .promo-next,
.social-prev, .social-next,
.reviews-prev, .reviews-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; margin: 0;
  width: 48px !important; height: 48px !important;
  border-radius: 50%;
  background: var(--white); border: 1px solid var(--sage-400);
  backdrop-filter: none; visibility: visible;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(52,52,52,.4);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.services-prev, .promo-prev, .social-prev, .reviews-prev { left: -68px; right: auto; }
.services-next, .promo-next, .social-next, .reviews-next { right: -68px; left: auto; }
.services-prev:hover, .services-next:hover,
.promo-prev:hover, .promo-next:hover,
.social-prev:hover, .social-next:hover,
.reviews-prev:hover, .reviews-next:hover { border-color: var(--accent); background: var(--sage-100); transform: translateY(-50%); }
.services-prev::after, .services-next::after,
.promo-prev::after, .promo-next::after,
.social-prev::after, .social-next::after,
.reviews-prev::after, .reviews-next::after { content: "‹"; font-size: 24px !important; color: var(--brand-charcoal); line-height: 1; }
.services-next::after, .promo-next::after, .social-next::after, .reviews-next::after { content: "›"; }
.services-prev.swiper-button-disabled, .services-next.swiper-button-disabled,
.promo-prev.swiper-button-disabled, .promo-next.swiper-button-disabled,
.social-prev.swiper-button-disabled, .social-next.swiper-button-disabled,
.reviews-prev.swiper-button-disabled, .reviews-next.swiper-button-disabled { opacity: .3; cursor: default; }
/* arrows only where there's real gutter room */
@media (max-width: 1280px) {
  .services-prev, .services-next,
  .promo-prev, .promo-next,
  .social-prev, .social-next,
  .reviews-prev, .reviews-next { display: none !important; }
}

/* pagination — always static, centered, under the carousel (services + promo + social + reviews) */
.services__foot, .promo__foot, .social__foot, .reviews__foot { margin-top: 28px; }
.services-pagination, .promo-pagination, .social-pagination, .reviews-pagination {
  position: static !important;
  width: 100% !important;
  display: flex; justify-content: center; gap: 8px;
}
.services-pagination .swiper-pagination-bullet,
.promo-pagination .swiper-pagination-bullet,
.social-pagination .swiper-pagination-bullet,
.reviews-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage-400); opacity: 1; margin: 0 !important;
  transition: width var(--transition-fast), background var(--transition-fast);
}
.services-pagination .swiper-pagination-bullet-active,
.promo-pagination .swiper-pagination-bullet-active,
.social-pagination .swiper-pagination-bullet-active,
.reviews-pagination .swiper-pagination-bullet-active { background: var(--accent); width: 24px; border-radius: 4px; }

/* every card identical: fixed image band + fixed title band */
.service-card {
  display: block;
  border-radius: 20px;
  background: var(--sage-200);
  border: none;
  overflow: hidden; position: relative;
  height: 100%;
  min-height: 380px;
  box-shadow: 0 14px 32px -16px rgba(52,52,52,.3);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.service-card:hover {
  box-shadow: 0 20px 40px -18px rgba(52,52,52,.35);
}
.service-card__image {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--sage-300);
}
.service-card__image img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.service-card:hover .service-card__image img { transform: scale(1.07); }
.service-card__corners { display: none; }
/* placeholder mark when a service has no photo yet */
.service-card__image:not(:has(img))::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 46px; height: 46px;
  background: var(--sage-400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2c.6 0 1 .4 1 1v3.1a6 6 0 0 1 4.9 4.9H21c.6 0 1 .4 1 1s-.4 1-1 1h-3.1a6 6 0 0 1-4.9 4.9V21c0 .6-.4 1-1 1s-1-.4-1-1v-3.1A6 6 0 0 1 6.1 13H3c-.6 0-1-.4-1-1s.4-1 1-1h3.1A6 6 0 0 1 11 6.1V3c0-.6.4-1 1-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2c.6 0 1 .4 1 1v3.1a6 6 0 0 1 4.9 4.9H21c.6 0 1 .4 1 1s-.4 1-1 1h-3.1a6 6 0 0 1-4.9 4.9V21c0 .6-.4 1-1 1s-1-.4-1-1v-3.1A6 6 0 0 1 6.1 13H3c-.6 0-1-.4-1-1s.4-1 1-1h3.1A6 6 0 0 1 11 6.1V3c0-.6.4-1 1-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.service-card__body {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  background: #f1f4ec;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 10px 24px -10px rgba(52,52,52,.3);
}
.service-card__title {
  margin: 0; font-size: var(--fs-18); line-height: 1.3;
  color: var(--brand-charcoal); font-weight: 500;
  font-family: var(--font-body);
  text-transform: none; letter-spacing: normal;
}
.service-card__body::after {
  content: "→"; color: var(--accent); font-size: var(--fs-20); flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.service-card:hover .service-card__body::after { transform: translateX(4px); }
.service-card__video, .service-card__video-mp4, .service-card__gif {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0; display: block;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.service-card--video-active .service-card__video,
.service-card--video-active .service-card__video-mp4,
.service-card--video-active .service-card__gif { opacity: 1; }

/* ============================================
   WHY
   ============================================ */
section.why { padding: 90px 0; }
.why-photos { position: relative; padding: 60px 110px; }
.why-photo-big, .why-photo-big-2, .why-photo-big-3 {
  background: linear-gradient(0deg, rgba(188,198,173,.25), rgba(188,198,173,.25)),
              radial-gradient(169.41% 100% at 0% 0%, rgba(210,217,201,.25) 0%, rgba(210,217,201,0) 58.02%);
  backdrop-filter: blur(16px);
  padding: 15px; border-radius: 16px;
  border: 0.5px solid var(--sage-300); position: relative; overflow: hidden;
}
.why-photo-big-grad {
  position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px;
  background: linear-gradient(0deg, rgba(210,217,201,.1), rgba(210,217,201,.1)),
              radial-gradient(100% 259.57% at 0% 0%, rgba(210,217,201,0) 64.01%, rgba(210,217,201,.25) 100%);
  border-radius: 16px; z-index: 2;
}
img.why-photo { position: relative; width: 100%; display: block; z-index: 1; border-radius: 9px; }
.why-photo-big-2 { width: 362px; position: absolute; right: 0; top: 0; opacity: 0; transform: translateY(30px); }
.why-photo-big-3 { width: 362px; position: absolute; left: 0; bottom: 0; opacity: 0; transform: translateY(30px); }
.why-text { text-align: center; margin-top: -30px; }
.why-text h2 { font-size: clamp(36px, 3vw, 48px); color: var(--color-3); margin-top: -30px; font-weight: 400; text-transform: uppercase; }
.why-text p { padding: 32px 110px 50px; line-height: 30px; }
.why-photo-img { width: 100%; height: 100%; object-fit: cover; }
.why-photo--big { width: 901px; height: 451px; }
.why-photo--mid { width: 331px; height: 221px; }

/* Stats */
.stats { display: flex; justify-content: space-between; align-items: flex-start; color: #fff; gap: 30px; text-align: left; }
.stat-item { display: flex; flex-direction: column; gap: 8px; }
.stat-number { font-size: 48px; color: var(--color-3); opacity: 0; }
.stat-title { font-size: var(--fs-24); color: var(--color-3); }
.stat-sub { color: var(--color-6); }
.divider { width: 0; height: 0; background: rgba(255,255,255,.2); align-self: center; }

/* Ord badge */
.ord-badge {
  position: absolute; width: var(--ord-badge-size); height: var(--ord-badge-size);
  right: -40px; bottom: -71px;
  display: flex; justify-content: center; align-items: center; overflow: hidden;
}
.ord-badge__logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3; }
.ord-badge__logo img { max-width: 55%; height: auto; }
.ord-badge__text-ring { position: absolute; inset: 0; z-index: 2; animation: ord-rotate 22s linear infinite; padding: 20px; }
.ord-badge__text-ring img { width: 100%; height: 100%; object-fit: contain; }
.ord-badge__circle { position: absolute; border-radius: 50%; border: 3px dashed var(--ord-border-color); opacity: 0.6; }
.ord-badge__circle--inner {
  width: calc(var(--ord-badge-size) * 0.57); height: calc(var(--ord-badge-size) * 0.57);
  top: calc((var(--ord-badge-size) - var(--ord-badge-size) * 0.57) / 2);
  left: calc((var(--ord-badge-size) - var(--ord-badge-size) * 0.57) / 2);
}
.ord-badge__circle--outer { width: 100%; height: 100%; top: 0; left: 0; opacity: 0.4; }
@keyframes ord-rotate { to { transform: rotate(360deg); } }
.circle-svg-wrapper { position: absolute; display: flex; }

/* Hover blocks */
.hover-blocks { width: 100%; display: flex; flex-direction: column; padding: 160px 0 200px; }
.hover-item {
  position: relative; display: flex; justify-content: space-between;
  padding: 60px 30px; border-bottom: 1px solid rgba(255,255,255,.15);
  align-items: center; transition: opacity .3s ease, transform .3s ease;
}
.hover-item:last-child { border-bottom: none; }
.hover-item__text { width: 75%; font-size: 24px; line-height: 32px; color: var(--color-6); transition: color .3s ease; }
.hover-item__image {
  width: 300px; height: 400px; border-radius: 20px; overflow: hidden;
  opacity: 0; transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
  position: absolute; right: 0;
}
.hover-item__image img { width: 100%; height: 100%; object-fit: cover; }
.hover-item:hover .hover-item__image { opacity: 1; transform: translateY(0) rotate(-3deg); }
.hover-item:hover .hover-item__text { color: var(--color-3); }

/* ============================================
   LEAD MAGNIT
   ============================================ */
.lead-magnit {
  width: 100%;
  background: radial-gradient(117.29% 249.67% at -17.29% -12.21%, rgba(210,217,201,.25) 0%, rgba(188,198,173,.25) 49.79%);
  border: 0.5px solid var(--sage-300); border-radius: 16px;
  position: relative; padding: 60px;
}
.lead-magnit-back {
  background-image: url(/assets/img/home/lead-back.webp);
  background-size: cover; background-repeat: no-repeat;
  opacity: 0.1; background-position: 60% 0;
  position: absolute; width: 100%; height: 100%;
  left: 0; top: 0; z-index: -1;
  background-attachment: fixed; border-radius: 16px;
}
.hero-gnatolog__title {
  font-size: clamp(36px, calc(36px + (54 - 36) * ((100vw - 1024px) / (1920 - 1024))), 54px);
  font-weight: 600; color: var(--color-3); margin-bottom: 16px;
}
.hero-gnatolog__subtitle {
  font-size: clamp(18px, calc(18px + (24 - 18) * ((100vw - 1024px) / (1920 - 1024))), 24px);
  line-height: 32px; margin-bottom: 86px;
}
.hero-gnatolog__tag { text-transform: uppercase; }
.hero-gnatolog__content { width: 70%; }
.hero-gnatolog__photo-wrap { position: absolute; right: 90px; bottom: 0; }
.hero-gnatolog__photo-wrap img { max-height: 600px; width: auto; }

/* Lead magnit animation states */
.hero-gnatolog__tag, .hero-gnatolog__title, .hero-gnatolog__subtitle,
.hero-gnatolog__photo, .lead-magnit .btn-primary { opacity: 0; }
.hero-gnatolog__tag { transform: translateX(-30px); }
.hero-gnatolog__title { transform: translateY(40px); }
.hero-gnatolog__subtitle { transform: translateX(30px); }
.hero-gnatolog__photo { transform: translateX(60px); }
.lead-magnit .hero-gnatolog__content > * { opacity: 0; transform: translateY(24px); }
.lead-magnit .hero-gnatolog__photo { opacity: 0; transform: translateX(40px); }

/* ============================================
   TEAM
   ============================================ */
.team-section { padding: 90px 0; }
.team-subtitle { text-align: center; font-size: var(--fs-18); margin-bottom: 16px; color: var(--color-3); line-height: 20px; }
.team-title {
  text-align: center;
  font-size: clamp(36px, calc(36px + (48 - 36) * ((100vw - 1024px) / (1920 - 1024))), 48px);
  font-weight: 400; margin-bottom: 60px; line-height: 48px;
  color: var(--color-3); text-transform: uppercase;
}
.team-slider { padding-bottom: 40px; }
.team-card {
  background: #fff;
  border-radius: 16px;
  padding: 15px; text-align: center; height: 100%;
  opacity: 0; transform: translateY(24px);
  will-change: transform, opacity;
  transition: transform .4s ease;
}
.team-photo img { width: 100%; height: auto; border-radius: 16px; margin-bottom: 20px; transition: transform .5s ease; }
.team-name {
  font-size: calc(17px + (24 - 18) * ((100vw - 1024px) / (1920 - 1024)));
  font-weight: 400; margin-bottom: 6px; color: var(--color-3); line-height: 20px; margin-top: 10px;
}
.team-role { font-size: 17px; color: var(--color-5); padding-bottom: 5px; line-height: 20px; }
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.team-head .team-title { margin-bottom: 0; }
.team-all { transition: 0.3s; color: var(--color-3); font-weight: 600; text-decoration: underline; white-space: nowrap; }
.team-all:hover { color: var(--accent); }
.team-photo {
  background: radial-gradient(183% 137.25% at -36.33% -37.25%, rgba(210,217,201,.3) 0%, rgba(188,198,173,.3) 73.05%);
  border-radius: 9px; overflow: hidden; position: relative; aspect-ratio: 4 / 5; flex: none;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-photo-back {
  position: absolute; width: 100%; height: 100%;
  z-index: 1;
}
.team-card .team-photo img { opacity: 1; }
.team-subtitle, .team-title { opacity: 0; transform: translateY(16px); will-change: transform, opacity; }

.swiper-pagination-bullets .swiper-pagination-bullet {
  background: transparent; width: 9px; height: 9px;
  border: 1px solid var(--color-3); opacity: 1;
}
.swiper-pagination-bullet-active { background: #fff !important; }

/* ============================================
   TREATMENT STEPS
   ============================================ */
.treatment-steps { margin-top: 120px; }
.treatment-steps__title {
  font-size: var(--fs-28); line-height: 40px; margin-bottom: 60px;
  font-weight: 400; color: var(--color-3);
  opacity: 0; transform: translateY(20px); will-change: transform, opacity;
}
.treatment-steps__grid { display: flex; gap: 80px; justify-content: center; }
.treatment-steps__col { width: 50%; display: flex; flex-direction: column; }
.treatment-step {
  display: flex; align-items: flex-start; gap: 45px; position: relative;
  opacity: 0; transform: translateY(24px); will-change: transform, opacity;
}
.treatment-step__number {
  width: 56px; height: 56px; min-width: 56px;
  border-radius: 50%; border: 1px solid var(--brand-charcoal);
  display: flex; justify-content: center; align-items: center;
  font-size: var(--fs-24); position: relative;
  color: var(--color-3); line-height: 30px;
}
.treatment-step__number::before {
  content: ""; position: absolute;
  right: -28px; top: 50%; width: 15px; height: 0.5px;
  background: rgba(210,217,201,.4); transform: translateY(-50%);
}
.treatment-step__number::after {
  content: ""; position: absolute; inset: -12px;
  border-radius: 50%; border: 0.5px solid var(--charcoal-500);
}
.treatment-step__content { padding-top: 10px; }
.treatment-step__content h3 { font-size: var(--fs-24); margin-bottom: 8px; color: var(--color-3); line-height: 36px; font-weight: 400; }
.treatment-step__content p { line-height: 30px; }

/* ============================================
   CASES
   ============================================ */
.cases { padding: 90px 0; }
.cases__tag { text-align: center; font-size: var(--fs-18); margin-bottom: 16px; color: var(--color-3); line-height: 20px; }
.cases__title { text-align: center; font-size: 48px; font-weight: 600; margin-bottom: 60px; line-height: 48px; text-transform: uppercase; color: var(--color-3); }
.cases__grid { display: flex; gap: 30px; justify-content: space-between; }
.cases__more { display: block; text-align: center; margin-top: 50px; transition: .3s; color: var(--color-3); border-bottom: 0.5px solid var(--charcoal-500); padding-bottom: 50px; margin-bottom: 90px; }
.cases__tag, .cases__title, .cases__more { opacity: 0; transform: translateY(20px); will-change: opacity, transform; }
.case-card { opacity: 0; transform: translateY(30px); will-change: opacity, transform; width: 50%; }

.case-card__compare { position: relative; width: 100%; overflow: hidden; border-radius: 16px; }
.case-compare {
  position: relative; width: 100%; height: 350px;
  cursor: grab; overflow: hidden; border-radius: 16px;
}
.case-compare::after {
  content: ""; position: absolute;
  left: var(--divider-left, 50%); top: 0;
  width: 4px; height: 100%;
  background: rgb(27 40 56); z-index: 3;
  transform: translateX(-1px); pointer-events: none;
}
.case-compare__image { position: absolute; inset: 0; }
.case-compare__image img { width: 100%; height: 100%; object-fit: cover; }
.case-compare__image--before { z-index: 1; }
.case-compare__image--after { z-index: 2; clip-path: inset(0 50% 0 0); background: #343434; }
.case-compare__image.case-compare__image--after img { opacity: 0.8; }
.case-compare__divider {
  position: absolute; left: 50%; top: 0;
  width: 2px; height: 100%;
  background: rgba(255,255,255,.8); z-index: 3; transform: translateX(-1px);
}
.case-compare__handle {
  position: absolute; left: var(--handle-left, 50%); top: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  border: none; background: transparent;
  display: flex; justify-content: space-around; align-items: center;
  z-index: 4; cursor: pointer;
}
.case-compare__arrow { width: 18px; height: 18px; border-top: 2px solid #343434; border-right: 2px solid #343434; }
.case-compare__arrow--left { transform: rotate(-135deg); }
.case-compare__arrow--right { transform: rotate(45deg); }
.case-compare__label {
  position: absolute; bottom: 20px; left: 15px;
  padding: 8px 16px; background: #34343440;
  border-radius: 9px; font-size: 17px; z-index: 5;
  backdrop-filter: blur(9px); color: var(--color-3);
  line-height: 24px; font-weight: 600;
}
.case-compare__label--after { left: auto; right: 12px; }
.case-card__title { margin-top: 24px; font-size: var(--fs-24); line-height: 36px; color: var(--color-3); }
.case-card__text { margin-top: 15px; line-height: 30px; }
.case-compare--single::after { content: none !important; }
.case-compare__image--single { position: relative; width: 100%; height: 350px; }

/* ============================================
   ABOUT CLINIC
   ============================================ */
section.about-clinic { padding: 90px 0; border-bottom: 0.5px solid var(--charcoal-500); }
p.about-clinic__tag { color: var(--color-3); font-size: 18px; text-align: center; }
h2.about-clinic__title { font-size: 48px; line-height: 56px; text-align: center; color: var(--color-3); font-weight: 500; margin-bottom: 32px; }
p.about-clinic__text { text-align: center; padding: 0 100px; }
h3.about-clinic__subtitle { font-size: 24px; font-weight: 400; line-height: 36px; text-align: center; color: var(--color-3); padding: 30px 0; }
.about-clinic__items { display: flex; gap: 30px; }
.about-clinic__image { position: relative; }
.about-clinic__image img { width: 100%; border-radius: 16px; object-fit: cover; height: 136px; }
.about-clinic__image__back {
  border-radius: 16px;
  background: linear-gradient(0deg, rgba(188,198,173,.15), rgba(188,198,173,.15)),
              radial-gradient(100% 259.57% at 0% 0%, rgba(210,217,201,0) 64.01%, rgba(210,217,201,.25) 100%);
  position: absolute; width: 100%; height: 100%;
}
p.about-clinic__item-text { text-align: center; margin-top: 24px; }
.about-clinic__tag, .about-clinic__title, .about-clinic__text, .about-clinic__subtitle, .about-clinic__item {
  opacity: 0; transform: translateY(20px); will-change: transform, opacity;
}

/* ============================================
   EQUIPMENT — обладнання клініки
   ============================================ */
.equipment { padding: 100px 0; background: var(--white); }
.equipment__header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.equipment__eyebrow {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: var(--tracking-display); color: var(--accent);
  font-size: var(--fs-16); margin: 0 0 14px;
}
.equipment__title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-weight: 400; color: var(--brand-charcoal);
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin: 0 0 18px;
}
.equipment__subtitle { color: var(--charcoal-600); font-size: var(--fs-18); line-height: 1.6; margin: 0; }

.equip-card { margin: 0; background: var(--sage-100); border-radius: 16px; padding: 12px 12px 18px; }
.equip-card--wide { }
.equip-card__media { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--white); }
.equip-card--wide .equip-card__media { aspect-ratio: 8 / 5; }
.equip-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.equip-card figcaption { padding: 14px 6px 0; text-align: center; }
.equip-card__name { display: block; font-size: 17px; font-weight: 600; color: var(--brand-charcoal); }
.equip-card__sub { display: block; margin-top: 4px; font-size: 14px; color: var(--charcoal-600); }

.equip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.equip-grid .equip-card--wide { grid-column: span 2; }

@media (max-width: 900px) {
  .equip-grid--scroll {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 14px;
    scrollbar-width: none;
  }
  .equip-grid--scroll::-webkit-scrollbar { display: none; }
  .equip-grid--scroll .equip-card { flex: 0 0 78%; scroll-snap-align: start; }
  .equip-grid--scroll .equip-card--wide { flex-basis: 78%; }
  .equip-grid--scroll .equip-card:last-child { margin-right: 15px; }
  .equip-grid--scroll .equip-card__media, .equip-grid--scroll .equip-card--wide .equip-card__media { aspect-ratio: 4 / 5; }
}
@media (max-width: 480px) {
  .equip-grid--scroll .equip-card, .equip-grid--scroll .equip-card--wide { flex-basis: 82%; }
}

@media (max-width: 640px) {
  .equipment { padding: 64px 0; }
}
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews { padding: 90px 0; border-top: 1px solid var(--sage-300); border-bottom: 1px solid var(--sage-300); position: relative; overflow: hidden; }
.reviews__top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 50px; }
.reviews__tag { text-transform: uppercase; color: var(--color-3); line-height: 20px; }
.reviews__title { font-size: 48px; font-weight: 400; margin-bottom: 0; line-height: 48px; text-transform: uppercase; color: var(--color-3); }
.reviews__subtitle { line-height: 30px; margin-top: 16px; }
.reviews__head-right { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.reviews__rating { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 0; }
.reviews__stars { letter-spacing: 2px; color: var(--accent); display: inline-block; transform-origin: center center; transform: scale(0.6); opacity: 0; }
.reviews__rating-value { font-weight: 600; font-size: 48px; line-height: 48px; color: var(--color-3); }
.reviews__google-link {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sage-400);
  background: var(--white);
  color: var(--brand-charcoal); text-decoration: none; transition: .25s;
}
.reviews__google-link:hover { background: var(--sage-100); border-color: var(--accent); transform: translateY(-1px); }
.reviews__carousel { position: relative; }
.reviews-slider { overflow: hidden; }
.reviews-slider .swiper-wrapper { align-items: stretch; }
.reviews-slider .swiper-slide { height: auto; display: flex; }
.reviews-slider .review-card { width: 100%; }
.reviews__head-left, .reviews__head-right { opacity: 0; transform: translateY(24px); }

.review-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--sage-300);
  padding: 30px; position: relative;
  min-height: 190px; display: flex; flex-direction: column; justify-content: space-between;
  color: var(--charcoal-600);
  opacity: 0; transform: translateY(30px);
  will-change: opacity, transform;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(52,52,52,.3);
  border-color: var(--accent);
}
.review-card--cta { display: flex; flex-direction: column; justify-content: space-between; }
.review-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.review-card__author { display: flex; align-items: flex-start; gap: 10px; }
.review-card__avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.review-card__name { font-weight: 500; font-size: 17px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; color: var(--color-6); }
.review-card__text { line-height: 30px; padding: 0; color: var(--charcoal-600); max-height: 140px; overflow: hidden; position: relative; transition: max-height 0.3s ease; }
.review-card__text.expanded { max-height: 1000px; }
.review-card__ar { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.review-card__toggle { margin-top: 20px; background: none; color: var(--color-4); border: none; cursor: pointer; font-size: 15px; padding: 0; text-align: left; transition: color .2s ease, transform .2s ease; }
.review-card__toggle:hover { transform: translateY(-1px); color: var(--brand-charcoal); }
.review-card__btn {
  margin-top: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sage-400);
  background: var(--white);
  color: var(--brand-charcoal); text-decoration: none; transition: .25s;
}
.review-card__btn:hover { background: var(--sage-100); border-color: var(--accent); transform: translateY(-1px); }
span.review-card__rating { color: var(--accent); letter-spacing: 5px; }
.google-review__date { color: var(--color-6); text-align: right; margin-top: 15px; }

/* ============================================
   SOCIAL
   ============================================ */
.social { background: var(--white); padding: 90px 0; position: relative; border-bottom: 0.5px solid var(--sage-300); }
.social__header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 44px; }
.social__tag { text-transform: uppercase; color: var(--color-3); }
.social__title { font-size: 48px; font-weight: 400; margin-bottom: 0; line-height: 48px; text-transform: uppercase; color: var(--color-3); }
.social__follow-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.social__follow {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sage-400);
  background: var(--white);
  color: var(--brand-charcoal); text-decoration: none; transition: .25s;
}
.social__follow svg { flex-shrink: 0; color: var(--accent); }
.social__follow:hover { background: var(--sage-100); border-color: var(--accent); transform: translateY(-1px); }
.social__tag, .social__title { opacity: 0; transform: translateY(20px); }

.social__carousel { position: relative; }
.social-slider { padding-bottom: 0; }
.social-slider .swiper-wrapper { align-items: stretch; }
.social-slider .swiper-slide { height: auto; }
.social-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sage-200);
  display: block;
}
.social-image { aspect-ratio: 9 / 16; }
.social-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.social-item:hover .social-image img { transform: scale(1.04); }
.social-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--accent);
  box-shadow: 0 6px 16px -6px rgba(52,52,52,.35);
}
.social-slider .swiper-pagination-bullet { background: var(--sage-400); opacity: 1; }
.social-slider .swiper-pagination-bullet-active { background: var(--accent); }

/* ============================================
   CONSULT
   ============================================ */
.consult { padding: 90px 0; }
.consult__inner { display: flex; flex-direction: row; flex-wrap: wrap; gap: 24px; }
.consult__map { position: relative; min-height: 360px; width: calc(50% - 12px); border-radius: 16px; overflow: hidden; border: 0.5px solid var(--sage-300); order: 2; }
.consult__map iframe, .consult__map > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.consult__form {
  width: calc(50% - 12px); padding: 60px; color: var(--brand-charcoal); order: 1;
  background: var(--white);
  border-radius: 16px; overflow: hidden; border: 0.5px solid var(--sage-300);
}
.consult__title { font-size: 48px; font-weight: 600; line-height: 54px; color: var(--color-3); }
.consult__subtitle { margin-bottom: 46px; color: var(--color-2); margin-top: 8px; }
.consult-form { display: flex; flex-direction: column; gap: 30px; }
.consult-form__field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.consult-form__label { font-size: 13px; opacity: 0.7; }
.consult-form input[type="text"],
.consult-form input[type="tel"] {
  background: transparent; border: none;
  border-bottom: 1px solid var(--color-2);
  padding: 18px 0; font-size: var(--fs-18); color: var(--color-3); outline: none;
}
.consult-form input[type="text"]::placeholder,
.consult-form input[type="tel"]::placeholder { color: var(--color-6); }
.consult-form__checkbox { display: flex; align-items: center; gap: 10px; color: var(--color-6); }
.consult-form__checkbox input { width: 16px; height: 16px; }
.consult-form__checkbox a { color: var(--color-3); text-decoration: underline; }
.consult-form__btn {
  margin-top: 10px; border: none; border-radius: var(--radius-pill);
  padding: 12px 28px;
  background: var(--accent);
  color: var(--white); font-size: 15px; font-weight: 600;
  cursor: pointer; align-self: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.consult-form__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(0,0,0,.45); }

/* Phone input (custom-placeholder widget only, e.g. .consult-phone) */
.consult-phone input[name="phone"] { color: #fff; font-size: 20px; font-weight: 400; letter-spacing: 1px; }
.consult-phone input[name="phone"]::placeholder, .consult-phone input[name="phone"]::-ms-input-placeholder { color: transparent; }
.phone-placeholder {
  position: absolute; top: 0; left: 0; pointer-events: none;
  transition: opacity 0.2s ease; font-size: 20px; color: rgba(255,255,255,.35);
}
.phone-placeholder b { color: #fff; }
.consult-phone { position: relative; }
.consult-phone input { position: relative; background: transparent; color: #fff; font-size: 20px; z-index: 2; }
.consult-phone input::placeholder { color: transparent; }

.consult__map, .consult__form { opacity: 0; will-change: transform, opacity; }
.consult__map  { transform: translateX(-40px); }
.consult__form { transform: translateX(40px); }

/* ============================================
   MODAL
   ============================================ */
.modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10,18,28,.55); backdrop-filter: blur(10px); }
.modal__dialog {
  position: relative; width: min(520px, calc(100% - 32px));
  margin: 8vh auto 0; padding: 26px 22px 22px;
  border-radius: 18px; background: var(--sage-100);
  border: 1px solid var(--sage-300);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  transform: translateY(12px); opacity: 0;
}
.modal.is-open .modal__dialog { animation: modalIn .22s ease-out forwards; }
.modal__dialog--wide { width: min(860px, calc(100% - 32px)); }
.online-booking__frame {
  min-height: 480px;
  border-radius: 14px;
  background: var(--white);
  border: 1px dashed var(--sage-300);
  display: flex; align-items: center; justify-content: center;
}
.online-booking__frame iframe { width: 100%; height: 100%; min-height: 480px; border: 0; border-radius: 14px; }
@keyframes modalIn { to { transform: translateY(0); opacity: 1; } }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--sage-300);
  background: var(--white); color: var(--brand-charcoal); cursor: pointer;
}
.modal__title { margin: 0 0 8px; color: var(--brand-charcoal); font-size: clamp(20px, 2vw, 28px); font-weight: 600; }
.modal__subtitle { margin: 0 0 18px; color: var(--brand-charcoal); opacity: .65; line-height: 1.6; font-size: 14px; }
.modal__form { display: grid; gap: 14px; }
.modal__submit { height: 50px; justify-content: center; }
.modal__note { margin: 2px 0 0; color: var(--brand-charcoal); opacity: .5; font-size: 12px; line-height: 1.5; }
.field { display: grid; gap: 8px; }
.field__label { color: var(--brand-charcoal); opacity: .75; font-size: 13px; }
.field__input {
  width: 100%; height: 48px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--sage-300);
  background: var(--white); color: var(--brand-charcoal); outline: none;
}
.field__input::placeholder { color: var(--brand-charcoal); opacity: .4; }
.field__input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(166,147,89,.15); }
body.is-modal-open { overflow: hidden; }

/* Video modal */
.video-modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 1200; }
.video-modal__inner { position: relative; width: min(90vw, 900px); aspect-ratio: 16 / 9; background: #000; }
.video-modal__inner iframe { width: 100%; height: 100%; border: 0; }
.video-modal__close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 72px 0 0;
  background: var(--brand-charcoal);
  color: var(--sage-300);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__logo { display: inline-block; margin-bottom: 18px; }
.footer__logo img { display: block; height: 40px; width: auto; }
.footer__tagline { font-size: var(--fs-16); line-height: 1.6; color: var(--sage-300); opacity: .85; max-width: 34ch; margin: 0 0 20px; }
.footer__socials { display: flex; gap: 10px; }
.footer-social {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sage-300); transition: .25s;
}
.footer-social:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,255,255,.06); }

.footer__title { font-size: var(--fs-16); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; color: var(--white); }
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__list a { font-size: var(--fs-16); color: var(--sage-300); opacity: .85; text-decoration: none; transition: .2s; }
.footer__list a:hover { opacity: 1; color: var(--accent); }

.footer__contact-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 14px; }
.footer__contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-16); color: var(--sage-300); opacity: .9; }
.footer__contact-list svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.footer__contact-list a { color: var(--sage-300); text-decoration: none; }
.footer__contact-list a:hover { color: var(--accent); }
.footer__cta { width: 100%; text-align: center; }

.footer__bottom {
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: var(--fs-14); color: var(--sage-300); opacity: .7;
}
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-links a { color: var(--sage-300); text-decoration: none; }
.footer__bottom-links a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 991.98px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   MISC
   ============================================ */
.service-slide-2 { aspect-ratio: 16 / 4; min-height: 418px; }

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media (min-width: 769px) {
  .about__photo-wrapper-3 { max-width: 570px; }
}

@media (min-width: 1025px) {
  .mobile-menu, .burger { display: none; }
}

@media (max-width: 1800px) { .container { margin-inline: 40px; } }

@media (max-width: 1599.98px) {
  .container { margin-inline: 20px; }
  .btn-primary, .btn-outline { padding: 16px 22px; }
  .hero__bigtext { top: 100px; }
  .hero__bigsmile { top: 300px; }
  .header-slide { aspect-ratio: 16 / 9; min-height: 600px; }
  .hover-item__text { width: 60%; font-size: 18px; }
  .hover-item__image { width: 260px; height: 360px; right: 5%; }
}

@media (max-width: 1399.98px) {
  .container { margin-inline: 15px; }
  .header__nav, .header__right { gap: 25px; }
  .header__phones { gap: 20px; font-size: var(--fs-18); }
  p { line-height: 24px; }
  .why-photo-big-2 { right: -6%; top: -4%; }
  .why-photo-big-3 { left: -6%; bottom: -4%; }
}

@media (max-width: 1199.98px) {
  .header__nav a, .nav__link { line-height: 20px; font-size: var(--fs-16); }
  .header__phones { gap: 20px; font-size: var(--fs-16); }
  .header__right .btn-primary { padding: 14px 20px; }
  .header__lang { font-size: var(--fs-16); }
  .header__nav, .header__right { gap: 20px; }
  .hero__bigsmile { top: 210px; }
  .header-slide { min-height: 680px; }
}


@media (max-width: 992px) {
  .services__header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header__inner { padding-block: 10px; }
  .treatment-steps__grid { flex-direction: column; gap: 60px; }
  .treatment-steps__col { width: 100%; }
  .case-card { width: 100% !important; }
  .consult__map { min-height: 280px; }
  .consult__form { padding: 30px 24px 36px; }
}

.btn-primary__short { display: none; }
@media (max-width: 991.98px) {
  .header__nav { display: none; }
  .header-slide { aspect-ratio: 435 / 600; min-height: 600px; }
  .header__nav a, .nav__link { font-size: var(--fs-14); }
  .header__phones { gap: 20px; font-size: var(--fs-14); }
  .header__right .btn-primary { padding: 10px 14px; font-size: 12px; }
  .header__right .btn-primary__full { display: none; }
  .header__right .btn-primary__short { display: inline; }
  .header__nav, .header__right { gap: 15px; }
  .header__burger { display: flex; width: 32px; height: 24px; flex-direction: column; justify-content: space-between; cursor: pointer; background: none; border: none; padding: 0; z-index: 200; margin-left: 15px; }
  .header__burger span { display: block; height: 3px; background: var(--brand-charcoal); border-radius: 3px; transition: 0.35s ease; }
  .header__burger.header__burger--active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .header__burger.header__burger--active span:nth-child(2) { opacity: 0; }
  .header__burger.header__burger--active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
  body.no-scroll { overflow: hidden; }
}

@media (max-width: 900px) {
  .hover-item { flex-direction: column; gap: 20px; }
  .hover-item__text { width: 100%; }
  .hover-item__image { width: 100%; height: 300px; }
}

@media (max-width: 768px) {
  .promo-prev, .promo-next, .services-prev, .services-next, .team-prev, .team-next, .social-prev, .social-next { display: none !important; }
  .reviews__top { flex-direction: column; align-items: center; }
  .reviews__head-right { text-align: center; }
  .reviews__title { font-size: 30px; line-height: 36px; }
}

@media (max-width: 767.98px) {
  .container-fluid { padding: 0 15px; }
  .about__photo-col { width: 100%; }
  .about__photo-wrapper-3 { max-width: none; }
  .team-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .team-title { font-size: 26px; line-height: 32px; text-align: left; margin-bottom: 0; }
  .header__nav { display: none; }
  .philosophy__items { flex-direction: column; margin-top: 60px; }
  .stats { flex-direction: column; align-items: center; text-align: center; }
  .about-clinic__items { flex-direction: column; }
  .about__inner { padding: 50px 15px 30px; flex-direction: column; }
  .about__text-col { width: 100%; padding: 30px 0; }
  .ord-badge { right: 0; bottom: -135px; }
  .why-photo-big-2 { width: 100%; position: relative; right: 0; top: 0; }
  .why-photo-big-3 { width: 100%; position: relative; left: 0; bottom: 0; }
  .hero__h1 { width: 100%; font-size: 20px; padding: 0 15px; }
  .video-bg { height: 600px; }
  section.promo { padding: 48px 0; }
  .about__signature-card { padding: 15px; max-width: 154px; right: -100px; bottom: -40px; }
  .about__signature-image svg {
    width: 100%;
}
  section#philosophy { padding: 30px 15px 130px; }
  p.philosophy__description { padding: 0; }
  .why-text p { padding: 32px 0 50px; line-height: 24px; }
  .why-photos { padding: 60px 0; }
  section.why { padding: 30px 0; }
  .hover-item { padding: 15px 0; }
  .hover-item__text { width: 100%; font-size: 18px; }
  .hover-item__image { position: relative; opacity: 1; transform: translateY(0) rotate(-3deg); }
  .lead-magnit { padding: 15px; overflow: hidden; }
  .hero-gnatolog__photo-wrap { position: absolute; right: 0; bottom: 0; }
  .hero-gnatolog__title { font-size: 20px; }
  .hero-gnatolog__subtitle { line-height: 18px; margin-bottom: 10px; font-size: 14px; }
  .hero-gnatolog__photo-wrap img { max-height: 260px; }
  .hero-gnatolog__tag { font-size: 12px; }
  .hero-gnatolog__content { width: 60%; margin-bottom: 5px; }
  p.about-clinic__tag { font-size: 14px; }
  h2.about-clinic__title { font-size: 24px; line-height: 28px; }
  p.about-clinic__text { padding: 0; }
  .cases__grid { flex-direction: column; }
  .header__lang { display: none; }
  .none { display: none; }
  .philosophy__item { padding: 30px; margin-bottom: 20px; }
  .consult__inner { flex-direction: column; }
  .consult__form, .consult__map { width: 100%; }
  .service-card__image { position: relative; overflow: hidden; }
  .service-card__image img, .service-card__video-mp4 { display: block; width: 100%; height: 100%; object-fit: cover; }
  .service-card__video-mp4 { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
  .service-card--video-active .service-card__video-mp4 { opacity: 1; }
  .phones-desktop { display: none; }
  .phones-mobile { display: block; }
}

@media (max-width: 767px) {
  .why-photo--big { width: 100%; height: 220px; }
  .why-text { padding-top: 199px; }
  .treatment-step__content { padding-top: 0; padding-left: 28px; }
  img.hero-gnatolog__photo { width: auto; }
  .team-slider { padding-bottom: 40px; padding-left: 15px !important; }
  .team-role { min-height: 20px; display: block; text-align: center; }
  .team-name { min-height: 0 !important; }
  .why-photo--mid { width: 48%; height: 150px; }
  .about-clinic__image img { height: auto; }
}

@media (max-width: 600px) {
  .review-card { padding: 20px 18px 22px; }
}

@media (max-width: 576px) {
  .services { padding: 60px 0 50px; }
  .consult { padding: 60px 0 80px; }
  .consult__title { font-size: 24px; }
  .treatment-step { gap: 15px; }
  .treatment-steps__grid { flex-direction: column; gap: 0; }
  .cases__title { font-size: 28px !important; }
  .treatment-step__number { width: 38px; height: 38px; min-width: 38px; font-size: 16px; }
  .treatment-step__content h3 { font-size: 18px; }
  .treatment-step__content p { font-size: 14px; }
}

@media (max-width: 640px) {
  .footer__bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .header__logo .logo-anim, .header__logo .logo-anim path {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
.page-404 h1 {
    font-size: 8rem;
    font-weight: 100;
}
.page-404 {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ============================================
   PROCESS — "Три кроки до результату"
   ============================================ */
.process { padding: 90px 0; background: var(--white); }
.process__header { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.process__eyebrow {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: var(--tracking-display); color: var(--accent);
  font-size: var(--fs-16); margin: 0 0 14px;
}
.process__title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-weight: 400; color: var(--brand-charcoal);
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin: 0;
}
.process__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.process__item {
  position: relative;
  background: var(--sage-100);
  border-radius: 20px;
  padding: 48px 28px 32px;
  text-align: center;
  margin-top: 28px;
}
.process__number {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--accent);
  font-size: var(--fs-20);
  box-shadow: 0 10px 22px -10px rgba(52,52,52,.3);
}
.process__icon { color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 8px 0 18px; }
.process__item-title { font-size: var(--fs-20); font-weight: 600; color: var(--brand-charcoal); margin: 0 0 8px; }
.process__item-text { font-size: var(--fs-16); color: var(--charcoal-600); line-height: 1.5; margin: 0; }

@media (max-width: 860px) {
  .process__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   STATS — цифри-факти про клініку
   ============================================ */
.stats-block { padding: 56px 0; background: var(--sage-100); }
.stats-block__grid {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.stats-block__item { text-align: center; min-width: 160px; }
.stats-block__number {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 4vw, 52px); line-height: 1; color: var(--accent);
  margin-bottom: 8px;
}
.stats-block__title { font-size: var(--fs-18); font-weight: 600; color: var(--brand-charcoal); }
.stats-block__sub { font-size: var(--fs-14); color: var(--charcoal-600); margin-top: 2px; }
.stats-block__divider { width: 1px; height: 64px; background: var(--sage-400); flex-shrink: 0; }

@media (max-width: 860px) {
  .stats-block__grid { gap: 28px 20px; }
  .stats-block__divider { display: none; }
  .stats-block__item { width: calc(50% - 10px); min-width: 0; }
}
/* ============================================
   NEWS — новини клініки (головна)
   ============================================ */
.news { background: var(--white); padding: 90px 0; }
.news__header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 32px;
}
.news__title { font-size: 48px; font-weight: 400; margin: 0; line-height: 48px; text-transform: uppercase; color: var(--color-3); }
.news__all-link {
  font-size: var(--fs-16); color: var(--brand-charcoal); text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid var(--sage-400); white-space: nowrap;
}
.news__all-link:hover { color: var(--accent); border-color: var(--accent); }

.news__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.news-card {
  display: block; text-decoration: none; background: var(--sage-100);
  border-radius: 16px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -18px rgba(52,52,52,.25); }
.news-card__media { aspect-ratio: 16/10.3; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__placeholder { width: 100%; height: 100%; background: var(--sage-300); position: relative; }
.news-card__placeholder::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px;
  background: var(--white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.6 12.6 12.7 4.7a2 2 0 0 0-1.4-.6H5a2 2 0 0 0-2 2v6.3c0 .5.2 1 .6 1.4l7.9 7.9a2 2 0 0 0 2.8 0l6.3-6.3a2 2 0 0 0 0-2.8ZM7.5 9.5A1.5 1.5 0 1 1 7.5 6.5a1.5 1.5 0 0 1 0 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.6 12.6 12.7 4.7a2 2 0 0 0-1.4-.6H5a2 2 0 0 0-2 2v6.3c0 .5.2 1 .6 1.4l7.9 7.9a2 2 0 0 0 2.8 0l6.3-6.3a2 2 0 0 0 0-2.8ZM7.5 9.5A1.5 1.5 0 1 1 7.5 6.5a1.5 1.5 0 0 1 0 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.news-card__body { padding: 20px 22px 24px; }
.news-card__title { font-size: var(--fs-18); font-weight: 600; color: var(--brand-charcoal); margin-bottom: 8px; line-height: 1.3; }
.news-card__lead { font-size: var(--fs-14); color: var(--charcoal-600); line-height: 1.5; }

@media (max-width: 1024px) {
  .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .news { padding: 60px 0; }
  .news__grid { grid-template-columns: 1fr; }
  .news__title { font-size: 32px; line-height: 36px; }
}

/* ============================================
   TEAM PHOTO PLACEHOLDER — коли немає фото лікаря
   ============================================ */
.team-photo__placeholder {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.team-photo__placeholder::after {
  content: ""; width: 64px; height: 64px;
  background: var(--sage-400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.4 0-9 2.2-9 5v3h18v-3c0-2.8-4.6-5-9-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.4 0-9 2.2-9 5v3h18v-3c0-2.8-4.6-5-9-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.doc2__photo-placeholder { aspect-ratio: 3/4; background: var(--sage-100); }

/* Entrance animations start with translateX(...) — don't let them widen the page on mobile */
main, .consult { overflow-x: clip; }

/* ============================================
   RESULTS — до/після
   ============================================ */
.results { background: var(--sage-100); padding: 90px 0; }
.results__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.results__title { font-size: 48px; font-weight: 400; margin: 0; line-height: 48px; text-transform: uppercase; color: var(--color-3); }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.results-grid--page { margin: 8px 0 40px; }
.result-card { display: block; text-decoration: none; background: var(--white); border-radius: 16px; padding: 12px 12px 20px; }
.result-card__title { margin: 16px 8px 6px; font-size: var(--fs-18); font-weight: 600; color: var(--brand-charcoal); line-height: 1.3; }
.result-card__text { margin: 0 8px; font-size: var(--fs-14); color: var(--charcoal-600); line-height: 1.5; }
.result-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 10px; overflow: hidden; }
.result-ba--single { grid-template-columns: 1fr; }
.result-ba__half { position: relative; margin: 0; aspect-ratio: 4 / 5; background: var(--sage-100); }
.result-ba--single .result-ba__half { aspect-ratio: 1 / 1; }
.result-ba__half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-ba__half figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.88); font-size: 13px; color: var(--brand-charcoal); }
.result-ba--big { max-width: 900px; margin: 8px 0 32px; }
.result-ba--big .result-ba__half { aspect-ratio: auto; }
.result-ba--big .result-ba__half img { height: auto; }
.results-hero { padding: calc(var(--header-h, 88px) + 32px) 0 16px; background: var(--white); }
.results-hero h1 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; text-transform: uppercase; color: var(--brand-charcoal); margin: 24px 0 12px; }
.results-hero__text { max-width: 760px; color: var(--charcoal-600); font-size: 17px; line-height: 1.6; margin: 0; }
.results-page { padding-top: 24px; }
.results-empty { padding: 32px; background: var(--white); border-radius: 16px; color: var(--charcoal-600); max-width: 760px; }
.results-back { margin-top: 32px; }
.results-back a { color: var(--brand-charcoal); border-bottom: 1px solid var(--sage-400); text-decoration: none; }
@media (max-width: 1024px) { .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .results { padding: 60px 0; } .results__title { font-size: 32px; line-height: 36px; } .results-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Results cards (MIGX-driven) ---- */
.res-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; }
.res-filter { border: 0.5px solid var(--sage-400); background: var(--white); color: var(--brand-charcoal); padding: 12px 22px; border-radius: 999px; font-size: 15px; cursor: pointer; transition: background .2s, color .2s; }
.res-filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.res-card { background: var(--white); border-radius: 16px; padding: 12px 12px 22px; }
.res-card[hidden] { display: none; }
.res-card__media { border-radius: 10px; overflow: hidden; background: var(--sage-100); position: relative; }
.res-card__cat { margin: 16px 8px 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.res-card__title { margin: 8px 8px 6px; font-size: var(--fs-18); font-weight: 600; color: var(--brand-charcoal); line-height: 1.3; }
.res-card__cat + .res-card__title { margin-top: 0; }
.res-card__text { margin: 0 8px; font-size: var(--fs-14); color: var(--charcoal-600); line-height: 1.5; }
.res-photo, .res-compare, .res-video { aspect-ratio: 1 / 1; position: relative; background: var(--sage-100); }
.res-video { aspect-ratio: 4 / 5; background: #000; }
.res-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.res-video video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.res-single { aspect-ratio: 1 / 1; }
.res-compare { overflow: hidden; --pos: 50%; }
.res-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.res-compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.res-compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255,255,255,.95); box-shadow: 0 0 8px rgba(0,0,0,.3); pointer-events: none; }
.res-compare__line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--brand-charcoal); display: flex; align-items: center; justify-content: center; font-size: 18px; letter-spacing: 2px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.res-compare__label { position: absolute; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.88); font-size: 13px; color: var(--brand-charcoal); pointer-events: none; }
.res-compare__label--before { left: 12px; }
.res-compare__label--after { right: 12px; }
.res-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.res-swiper { position: relative; }
.res-prev, .res-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 4px 12px rgba(0,0,0,.2); cursor: pointer; font-size: 22px; line-height: 1; color: var(--brand-charcoal); }
.res-prev { left: 10px; } .res-next { right: 10px; }
.res-prev::after { content: "‹"; } .res-next::after { content: "›"; }
.res-prev.swiper-button-disabled, .res-next.swiper-button-disabled { opacity: .35; cursor: default; }
.res-swiper .swiper-pagination { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 5; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.res-swiper .swiper-pagination-bullet { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 0 4px rgba(0,0,0,.3); pointer-events: auto; cursor: pointer; }
.res-swiper .swiper-pagination-bullet-active { background: var(--accent); }

/* Results lightbox */
.res-photo img { cursor: zoom-in; }
.res-zoom { position: absolute; top: 10px; right: 10px; z-index: 4; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 4px 12px rgba(0,0,0,.25); font-size: 18px; line-height: 1; cursor: zoom-in; color: var(--brand-charcoal); }
.res-lb { position: fixed; inset: 0; z-index: 10000; background: rgba(20,20,20,.92); display: flex; align-items: center; justify-content: center; }
.res-lb[hidden] { display: none; }
.res-lb__img { max-width: min(92vw, 1100px); max-height: 88vh; object-fit: contain; border-radius: 8px; user-select: none; }
.res-lb__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; cursor: pointer; }
.res-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; cursor: pointer; }
.res-lb__prev { left: 16px; } .res-lb__next { right: 16px; }
.res-lb.is-single .res-lb__nav { display: none; }
.res-lb__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: 14px; }
html.res-lb-open { overflow: hidden; }
@media (max-width: 640px) { .res-lb__nav { width: 40px; height: 40px; } .res-lb__prev { left: 8px; } .res-lb__next { right: 8px; } }

/* Doctor cards (listing / about) — same look as the homepage slider */
.team-card-1 { display: flex; flex-direction: column; background: #fff; border-radius: 16px; padding: 15px; text-align: center; height: 100%; text-decoration: none; }
.team-card-1 .team-photo img { opacity: 1; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1200px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
