/* Токени (:root) — у css/tokens.css; підключайте tokens.css перед цим файлом */

/* Основний текст лишається Manrope; заголовки — Montserrat */
h1,
h2,
h3,
h4,
h5,
h6,
.cta-card__badge-title,
.doctors__bg-title {
  font-family: var(--font-heading);
}

/* Stop horizontal scrollbars caused by full-bleed/transforms (mobile/tablet). */
html,
body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

h2 {
  color: var(--text-h2);
}

.eyebrow {
  font-family: var(--font-heading);
}

.page {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3F%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E"),
    radial-gradient(circle at 5% 18%, var(--warm-glow-2) 0%, transparent 42%),
    radial-gradient(circle at 94% 42%, var(--brand-glow) 0%, transparent 38%),
    radial-gradient(
      circle at 72% 88%,
      var(--bg-spot-mint-soft) 0%,
      transparent 46%
    ),
    radial-gradient(circle at 50% 80%, var(--warm-glow) 0%, transparent 48%),
    linear-gradient(165deg, #fafcfd 0%, var(--bg) 42%, #f3f8f9 100%);

  background-attachment: fixed;
  background-size: cover;

  /* Prevent accidental horizontal scrolling on mobile (full-bleed 100vw blocks). */
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .page {
    overflow-x: hidden;
  }
}

/* Page load animation */
.page.page--preload .site-header,
.page.page--preload .hero__content,
.page.page--preload .hero__media {
  opacity: 0;
  transform: translateY(-6px);
}

.page.page--preload .hero::before {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.025);
}

.page.page--loaded .site-header,
.page.page--loaded .hero__content,
.page.page--loaded .hero__media {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 820ms cubic-bezier(0.33, 1, 0.68, 1),
    transform 820ms cubic-bezier(0.33, 1, 0.68, 1);
}

.page.page--loaded .hero__content {
  transition-delay: 110ms;
}

.page.page--loaded .hero__media {
  transition-delay: 170ms;
}

.page.page--loaded .hero::before {
  opacity: 0.78;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 780ms cubic-bezier(0.33, 1, 0.68, 1);
  transition-delay: 40ms;
  animation: hero-watermark-in 1.1s cubic-bezier(0.33, 1, 0.68, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .page.page--preload .site-header,
  .page.page--preload .hero__content,
  .page.page--preload .hero__media,
  .page.page--preload .hero::before,
  .page.page--preload .hero::after,
  .page.page--loaded .site-header,
  .page.page--loaded .hero__content,
  .page.page--loaded .hero__media,
  .page.page--loaded .hero::before,
  .page.page--loaded .hero::after {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

.page__main {
  overflow: clip;
}

.container {
  width: min(100% - 30px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.92);
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Reusable section skeleton (Elementor-friendly) */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

/* Scroll reveal (played once on first view; JS adds .reveal) */
.section.reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 900ms cubic-bezier(0.33, 1, 0.68, 1),
    transform 900ms cubic-bezier(0.33, 1, 0.68, 1);
  will-change: opacity, transform;
}

.section.reveal.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .section.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section__header {
  --section-header-gap: 12px;
  --section-header-after: 32px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  margin-bottom: var(--section-header-after);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-header-gap);
}

.section__header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--muted);
  font-size: 13px;
  width: fit-content;
}

.section__title {
  margin: 0;
  font-size: clamp(28px, 2.2vw + 18px, 44px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  padding-bottom: 12px;
}

.section__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  padding-bottom: 26px;
  line-height: 1.6;
}

/* Check-up: підзаголовок — від світлішого (--soft) до --muted, заливка зліва направо (див. main.js) */
.section.checkup .section__subtitle[data-subtitle-reveal] {
  --subtitle-reveal: 0;
}

@supports (-webkit-background-clip: text) {
  .section.checkup .section__subtitle[data-subtitle-reveal] {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(
      90deg,
      var(--muted) 0%,
      var(--muted) calc(var(--subtitle-reveal) * 100%),
      var(--soft) calc(var(--subtitle-reveal) * 100%),
      var(--soft) 100%
    );
  }
}

/* Кольорові акценти на фонах секцій (бірюза + теплий тон бренду) */
.section.doctor-philosophy {
  background:
    radial-gradient(
      ellipse 78% 52% at 100% 8%,
      var(--bg-spot-mint) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 65% 48% at 0% 92%,
      var(--bg-spot-warm) 0%,
      transparent 55%
    ),
    linear-gradient(180deg, #f7fbfc 0%, var(--bg) 55%, #f4f7f9 100%);
}

.section.doctors {
  background:
    radial-gradient(
      ellipse 95% 70% at 50% -5%,
      var(--bg-spot-mint) 0%,
      transparent 52%
    ),
    radial-gradient(circle at 12% 55%, var(--bg-spot-teal) 0%, transparent 44%),
    radial-gradient(circle at 88% 35%, var(--bg-spot-warm) 0%, transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, #eef5f7 50%, var(--bg-2) 100%);
}

.section.services {
  background:
    radial-gradient(
      ellipse 110% 75% at 50% 105%,
      var(--bg-spot-mint-soft) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 55% 45% at 18% 25%,
      var(--bg-spot-warm) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 82% 70%,
      rgba(92, 129, 149, 0.1) 0%,
      transparent 45%
    ),
    linear-gradient(195deg, #f5f9fa 0%, var(--bg-2) 40%, #f0f6f8 100%);
}

.section.testimonials {
  background:
    radial-gradient(
      ellipse 70% 50% at 0% 30%,
      var(--bg-spot-mint-soft) 0%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 80% 55% at 100% 75%,
      var(--bg-spot-warm) 0%,
      transparent 54%
    ),
    linear-gradient(180deg, var(--bg-2) 0%, #f8fafc 48%, var(--bg) 100%);
}

/* Services header: centered & slightly lower on Y */
.services__header {
  position: relative;
  margin-top: 24px;
  transform: translateY(22px);
}

@media (max-width: 920px) {
  .services__header {
    margin-top: 12px;
    transform: translateY(10px);
  }

  .services__header::before {
    height: 160px;
    opacity: 0.55;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bg-spot {
  position: absolute;
  max-width: 500px;
  width: 100%;
  height: 500px;
  background: var(--brand-glow);
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background:
    radial-gradient(
      160px 90px at 30% 18%,
      rgba(255, 255, 255, 0.42),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(120, 224, 238, 0.98), rgba(11, 74, 95, 0.92));
  border-color: rgba(11, 74, 95, 0.18);
  color: rgba(255, 255, 255, 0.94);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 12px 34px rgba(8, 42, 58, 0.16),
    0 6px 16px rgba(17, 166, 184, 0.14);
}

.button--primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.55;
}

.button--primary::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 70%;
  height: 200%;
  transform: rotate(22deg) translateX(-20%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  opacity: 0.35;
  filter: blur(0.2px);
  transition:
    transform 220ms ease,
    opacity 220ms ease;
  pointer-events: none;
}

.button--primary:hover {
  background:
    radial-gradient(
      180px 95px at 30% 18%,
      rgba(255, 255, 255, 0.48),
      transparent 64%
    ),
    linear-gradient(180deg, rgba(142, 236, 248, 1), rgba(8, 42, 58, 0.94));
  transform: translateY(-1px);
  box-shadow:
    0 16px 44px rgba(8, 42, 58, 0.2),
    0 8px 20px rgba(17, 166, 184, 0.18);
}

.button--primary:hover::after {
  transform: rotate(22deg) translateX(55%);
  opacity: 0.46;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(15, 23, 42, 0.1);
}

.button--secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

/* Головна: кнопки переходу на team / services / about у секціях */
.button--section-go {
  position: relative;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(8, 42, 58, 0.94);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(244, 251, 252, 0.92) 48%,
    rgba(236, 248, 250, 0.88) 100%
  );
  border-color: rgba(11, 95, 108, 0.26);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    0 6px 18px rgba(8, 42, 58, 0.07),
    0 16px 36px rgba(17, 166, 184, 0.1);
  gap: 8px;
}

.button--section-go::after {
  content: "→";
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1;
  opacity: 0.5;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}

.button--section-go:hover {
  color: rgba(5, 32, 44, 0.98);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(232, 250, 253, 0.96) 52%,
    rgba(220, 245, 248, 0.94) 100%
  );
  border-color: rgba(11, 95, 108, 0.38);
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(8, 42, 58, 0.1),
    0 22px 48px rgba(17, 166, 184, 0.16);
}

.button--section-go:hover::after {
  opacity: 0.85;
  transform: translateX(4px);
}

.button--section-go:focus-visible {
  outline: 2px solid rgba(17, 166, 184, 0.45);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .button--section-go:hover,
  .button--section-go:hover::after {
    transform: none;
  }
}

.button--ghost {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.14);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Header + nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Повна висота шапки (padding + ряд) — для fixed mobile menu top */
  --header-stack-height: calc(var(--header-h) + 24px);
  padding: 12px 0;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  /* Seamless glass that blends with page/hero palette */
  background:
    radial-gradient(
      720px 280px at 18% 110%,
      rgba(152, 131, 131, 0.18),
      transparent 62%
    ),
    radial-gradient(
      820px 320px at 82% 110%,
      rgba(152, 131, 131, 0.14),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(249, 250, 251, 0.46) 55%,
      rgba(249, 250, 251, 0.14) 100%
    );
  border-bottom: 1px solid transparent;
  box-shadow: 0 10px 34px rgba(8, 42, 58, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.site-header--scrolled {
  --header-stack-height: calc(var(--header-h) + 16px);
  background:
    radial-gradient(
      720px 280px at 18% 110%,
      rgba(152, 131, 131, 0.06),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 255, 255, 0.32)
    );
  padding: 8px 0;
  border-bottom-color: rgba(152, 131, 131, 0.06);
  box-shadow:
    0 8px 18px rgba(8, 42, 58, 0.04),
    0 4px 12px rgba(152, 131, 131, 0.03);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
  padding: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.brand__mark {
  width: 55px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
  transition: transform 0.3s ease;
}

.brand:hover .brand__mark {
  transform: scale(1.05);
}

.brand__text {
  display: grid;
  line-height: 1.05;
}

.brand__name {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__tagline {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.site-header__nav {
  justify-self: end;
}

.site-nav {
  position: relative;
  z-index: 70;
}

.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(20, 160, 178, 0.28);
  background:
    radial-gradient(
      120px 70px at 30% 25%,
      rgba(255, 255, 255, 0.85),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(250, 251, 253, 0.62),
      rgba(250, 251, 253, 0.34)
    );
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow:
    0 14px 34px rgba(20, 31, 46, 0.08),
    0 10px 22px rgba(20, 160, 178, 0.08);
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.site-nav__toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 160, 178, 0.42);
  box-shadow:
    0 18px 44px rgba(20, 31, 46, 0.1),
    0 12px 26px rgba(20, 160, 178, 0.1);
}

.site-nav__toggle-lines {
  width: 18px;
  height: 14px;
  position: relative;
  background: linear-gradient(rgba(12, 78, 99, 0.82), rgba(12, 78, 99, 0.82))
    center / 100% 2px no-repeat;
  transition: background-size 220ms ease;
}

.site-nav__toggle-lines span {
  display: none;
}

.site-nav__toggle-lines::before,
.site-nav__toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 10px;
  background: rgba(12, 78, 99, 0.82);
  transition:
    transform 220ms ease,
    top 220ms ease,
    bottom 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease;
}

.site-nav__toggle-lines::before {
  top: 0;
  box-shadow: none;
}

.site-nav__toggle-lines::after {
  bottom: 0;
}

.site-nav__toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav.is-open .site-nav__toggle-lines::before {
  top: 50%;
  box-shadow: none;
  transform: translateY(-50%) rotate(45deg);
}

.site-nav.is-open .site-nav__toggle-lines::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.site-nav.is-open .site-nav__toggle-lines {
  background-size: 0 2px;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  width: 100%;
}

.site-nav__list {
  margin-right: auto;
}

.site-nav__actions {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(152, 131, 131, 0.16);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav__list::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      220px 110px at 18% 30%,
      rgba(20, 160, 178, 0.1),
      transparent 60%
    ),
    radial-gradient(
      220px 110px at 82% 60%,
      rgba(12, 78, 99, 0.06),
      transparent 62%
    );
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 180ms ease;
}

.site-header.site-header--scrolled .site-nav__list {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(20, 31, 46, 0.1);
  box-shadow:
    0 16px 40px rgba(20, 31, 46, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.site-header.site-header--scrolled .site-nav__list::before {
  opacity: 1;
}

.site-nav__item {
  position: relative;
  z-index: 1;
}

.site-nav__item + .site-nav__item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 1px;
  height: 14px;
  transform: translateY(-50%);
  background: rgba(152, 131, 131, 0.15);
}

.site-nav__link {
  display: inline-flex;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  position: relative;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  height: 1.5px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(20, 160, 178, 0),
    rgba(20, 160, 178, 0.9),
    rgba(20, 160, 178, 0)
  );
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.site-nav__link:hover {
  color: var(--shirt-tone);
  background: rgba(152, 131, 131, 0.08);
  box-shadow: none;
  transform: translateY(-1px);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Desktop header alignment: same height for nav list + buttons */
@media (min-width: 1025px) {
  .site-nav__list,
  .site-nav__actions .button {
    height: 44px;
  }

  .site-nav__list {
    padding-block: 0;
  }

  .site-nav__link {
    padding-block: 0;
    height: 36px;
    align-items: center;
  }

  .site-nav__actions .button {
    padding-block: 0;
  }
}

.site-nav__actions .button {
  padding-block: 10px;
  border-radius: 10px;
}

.site-nav__actions .button--ghost {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(152, 131, 131, 0.2);
  color: var(--brand);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 10px 22px rgba(8, 42, 58, 0.06);
}

.site-nav__actions .button--ghost:hover {
  background: var(--surface-2);
  border-color: var(--shirt-tone);
  color: var(--shirt-tone);
  transform: translateY(-1px);
}

/* Binotel GetCall button (header) */
.site-nav__actions .bingc-action-open-passive-form {
  border-color: rgba(17, 166, 184, 0.28);
  background: rgba(17, 166, 184, 0.08);
  color: rgba(8, 42, 58, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-nav__actions .bingc-action-open-passive-form::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: rgba(17, 166, 184, 0.14);
  border: 1px solid rgba(17, 166, 184, 0.22);
  box-shadow: 0 10px 18px rgba(8, 42, 58, 0.06);
  flex: 0 0 auto;
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27%23000%27%20d%3D%27M22%2016.9v3a2%202%200%200%201-2.18%202%2019.8%2019.8%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.8%2019.8%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72%2012.8%2012.8%200%200%200%20.7%202.81%202%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45%2012.8%2012.8%200%200%200%202.81.7A2%202%200%200%201%2022%2016.92z%27/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 12px 12px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27%23000%27%20d%3D%27M22%2016.9v3a2%202%200%200%201-2.18%202%2019.8%2019.8%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.8%2019.8%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72%2012.8%2012.8%200%200%200%20.7%202.81%202%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45%2012.8%2012.8%200%200%200%202.81.7A2%202%200%200%201%2022%2016.92z%27/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 12px 12px;
  background-color: rgba(17, 166, 184, 0.95);
}

.site-nav__actions .bingc-action-open-passive-form:hover {
  background: rgba(17, 166, 184, 0.12);
  border-color: rgba(17, 166, 184, 0.38);
  color: rgba(8, 42, 58, 0.92);
}

/* Hero */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 1;
  height: calc(100svh - var(--header-h));
  padding: 0 0 max(clamp(28px, 5vw, 56px), env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.hero__content {
  align-self: flex-end;
  width: 100%;
  max-width: min(44rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.hero--v6 .hero__lead {
  font-weight: 500;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.88),
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 12px rgba(255, 255, 255, 0.65);
}

.hero--v6 .hero__title {
  position: relative;
  margin-top: 12px;
  color: white;
  font-weight: 600;
  font-size: clamp(28px, 2.2vw + 16px, 42px);
  letter-spacing: 0.06em;
  line-height: 1.08;
  text-transform: none;
  text-wrap: balance;
  background:
    radial-gradient(
      180px 120px at 22% 28%,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.05) 58%,
      transparent 75%
    ),
    linear-gradient(
      130deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(186, 220, 226, 0.92) 36%,
      rgba(255, 255, 255, 0.96) 68%,
      rgba(255, 255, 255, 0.9) 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.18);
  text-shadow:
    0 18px 46px rgba(0, 0, 0, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.08),
    0 0 22px rgba(255, 255, 255, 0.22);
  filter: none;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero--v6 .hero__title {
    color: rgba(255, 255, 255, 0.98);
    background: none;
    -webkit-text-stroke: 0;
    text-shadow:
      0 18px 46px rgba(0, 0, 0, 0.22),
      0 2px 0 rgba(255, 255, 255, 0.08),
      0 0 22px rgba(255, 255, 255, 0.22);
  }
}

.hero--v3 {
  background-image:
    radial-gradient(
      520px 320px at 22% 30%,
      rgba(20, 160, 178, 0.14),
      transparent 60%
    ),
    radial-gradient(
      520px 320px at 78% 38%,
      rgba(12, 78, 99, 0.1),
      transparent 62%
    ),
    radial-gradient(
      800px 420px at 50% 85%,
      rgba(217, 225, 233, 0.7),
      transparent 62%
    );
  background-repeat: no-repeat;
}

.hero--v3::before {
  -webkit-text-stroke: 1px rgba(12, 78, 99, 0.1);
  opacity: 0.8;
  letter-spacing: 0.22em;
}

.hero--v3::after {
  background:
    radial-gradient(
      860px 460px at 12% 10%,
      rgba(20, 160, 178, 0.26),
      transparent 62%
    ),
    radial-gradient(
      860px 460px at 88% 12%,
      rgba(12, 78, 99, 0.14),
      transparent 62%
    ),
    radial-gradient(
      740px 420px at 52% 36%,
      rgba(250, 251, 253, 0.96),
      transparent 62%
    );
}

.hero--v4 {
  background-image:
    linear-gradient(rgba(12, 78, 99, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 78, 99, 0.035) 1px, transparent 1px),
    radial-gradient(
      680px 380px at 18% 34%,
      rgba(20, 160, 178, 0.12),
      transparent 62%
    ),
    radial-gradient(
      680px 380px at 82% 40%,
      rgba(12, 78, 99, 0.09),
      transparent 62%
    );
  background-size:
    56px 56px,
    56px 56px,
    auto,
    auto;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0;
}

.hero--v4::before {
  transform: translateX(-50%) rotate(-2deg);
  -webkit-text-stroke: 1px rgba(12, 78, 99, 0.14);
  opacity: 0.85;
}

.hero--v4::after {
  background:
    linear-gradient(
      90deg,
      rgba(20, 160, 178, 0.08),
      transparent 35%,
      transparent 65%,
      rgba(12, 78, 99, 0.06)
    ),
    radial-gradient(
      760px 420px at 50% 32%,
      rgba(250, 251, 253, 0.96),
      transparent 62%
    );
  opacity: 0.88;
}

.hero--v5::before {
  background: linear-gradient(
    180deg,
    rgba(20, 160, 178, 0.18),
    rgba(12, 78, 99, 0.06)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
  filter: blur(0.25px);
  opacity: 0.8;
}

.hero--v5::after {
  background:
    conic-gradient(
      from 210deg at 50% 35%,
      rgba(20, 160, 178, 0.18),
      transparent 35%,
      rgba(12, 78, 99, 0.1),
      transparent 72%
    ),
    radial-gradient(
      820px 420px at 50% 28%,
      rgba(250, 251, 253, 0.96),
      transparent 62%
    );
  opacity: 0.9;
}

/* Фото героя — у розмітці (.hero__bg-media > img), не background-image */
.hero__bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero--v6 .hero__bg-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(
      ellipse 118% 82% at 50% 34%,
      rgba(255, 252, 248, 0.18) 0%,
      rgba(255, 255, 255, 0.08) 38%,
      rgba(255, 255, 255, 0.02) 58%,
      transparent 76%
    ),
    radial-gradient(
      ellipse 95% 42% at 50% 0%,
      rgba(255, 255, 255, 0.07) 0%,
      transparent 50%
    ),
    radial-gradient(
      780px 420px at 14% 30%,
      rgba(255, 255, 255, 0.04),
      transparent 62%
    ),
    radial-gradient(
      780px 420px at 88% 32%,
      rgba(20, 22, 26, 0.09),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(22, 26, 30, 0.24) 0%,
      rgba(22, 26, 30, 0.14) 26%,
      rgba(22, 26, 30, 0.09) 40%,
      rgba(22, 26, 30, 0.04) 56%,
      rgba(249, 250, 251, 0.28) 74%,
      rgba(249, 250, 251, 0.78) 86%,
      var(--bg) 100%
    );
  background-repeat: no-repeat;
  background-size: auto, auto, auto, auto, cover;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0;
}

.hero--v6 .hero__intro,
.hero--v6 .hero__bottom,
.hero--v6 .hero__bg-wrap {
  position: relative;
  z-index: 3;
  align-self: center;
}

/* Десктоп: фон на весь герой — перебиваємо ширину .container у обгортки */
@media (min-width: 1025px) {
  .hero.hero--v6 .hero__bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    height: 100%;
    align-self: stretch;
  }
}

.hero--v6 .hero__intro {
  margin-top: auto;
  padding-bottom: 18px;
}

.hero--v6 .hero__bottom {
  padding-bottom: max(
    clamp(28px, 5vw, 56px),
    env(safe-area-inset-bottom, 0px)
  );
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.hero--v6 .hero__bottom .hero__cta {
  max-width: min(44rem, 100%);
  width: 100%;
  margin-inline: auto;
}

.hero--v6 {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
  /* Full-bleed background: seamless continuation of .site-header */
  background:
    radial-gradient(
      720px 280px at 18% 110%,
      rgba(152, 131, 131, 0.18),
      transparent 62%
    ),
    radial-gradient(
      820px 320px at 82% 110%,
      rgba(152, 131, 131, 0.14),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(249, 250, 251, 0.46) 55%,
      rgba(249, 250, 251, 0.14) 100%
    );
  background-color: var(--bg);
  background-repeat: no-repeat;
}

.hero--v6 .hero__content {
  position: relative;
  padding-inline: 0;
}

.hero--v6 .hero__eyebrow {
  background:
    radial-gradient(
      120px 60px at 30% 30%,
      rgba(255, 255, 255, 0.85),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(250, 251, 253, 0.82), rgba(230, 236, 242, 0.6));
  border-color: rgba(20, 160, 178, 0.18);
  box-shadow:
    0 14px 34px rgba(20, 31, 46, 0.06),
    0 10px 22px rgba(20, 160, 178, 0.08);
}

.hero--v6 .hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.9),
    rgba(20, 160, 178, 0.9)
  );
  box-shadow: 0 10px 22px rgba(20, 160, 178, 0.18);
}

.hero__eyebrow {
  background: rgba(255, 255, 255, 0.9);
}

.hero__title {
  margin-top: 16px;
  font-size: clamp(30px, 2.4vw + 14px, 38px);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero__title-break {
  display: block;
  font-weight: 700;
}

.hero__title-accent {
  display: inline-block;
  background:
    radial-gradient(
      160px 90px at 30% 18%,
      rgba(255, 255, 255, 0.35),
      transparent 62%
    ),
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(214, 238, 242, 0.96) 42%,
      rgba(255, 255, 255, 0.98) 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  -webkit-text-stroke: 0 transparent;
}

.hero--v6 .hero__title-accent {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92em;
  -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.28);
  text-shadow:
    0 18px 46px rgba(0, 0, 0, 0.2),
    0 0 26px rgba(255, 255, 255, 0.55),
    0 0 10px rgba(186, 220, 226, 0.45);
  filter: none;
}

.hero__title-accent::after {
  content: "";
  display: block;
  height: 3px;
  max-width: 16.5rem;
  margin-top: 8px;
  margin-inline: auto;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(72, 98, 102, 0),
    rgba(255, 255, 255, 0.92),
    rgba(214, 238, 242, 0.88),
    rgba(255, 255, 255, 0.92),
    rgba(72, 98, 102, 0)
  );
  opacity: 1;
}

.hero__lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero--v6 .hero__lead {
  margin-inline: auto;
}

.hero--v6 .hero__lead--mobile {
  display: none;
}

.hero__cta {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero--v6 .hero__cta {
  justify-content: center;
}

.hero__cta .button--primary {
  padding-inline: 22px;
  font-size: 15px;
}

.hero__cta .button--secondary {
  padding-inline: 18px;
}

.hero__highlights {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero__highlight {
  padding: 14px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hero__highlight-value {
  display: block;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.hero__highlight-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* Make hero highlights feel "in the background" (v6 only) */
.hero--v6 .hero__highlights {
  opacity: 0.82;
  filter: saturate(0.95);
}

.hero--v6 .hero__highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background:
    radial-gradient(
      140px 70px at 24% 24%,
      rgba(255, 255, 255, 0.78),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(250, 251, 253, 0.74),
      rgba(230, 236, 242, 0.44)
    );
  border-color: rgba(20, 160, 178, 0.1);
  box-shadow:
    0 12px 30px rgba(20, 31, 46, 0.06),
    0 10px 22px rgba(20, 160, 178, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.1);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.hero--v6 .hero__highlight:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 160, 178, 0.14);
  box-shadow:
    0 16px 40px rgba(20, 31, 46, 0.07),
    0 12px 26px rgba(20, 160, 178, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.hero--v6 .hero__highlight-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background:
    radial-gradient(
      160px 90px at 30% 18%,
      rgba(255, 255, 255, 0.42),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(86, 198, 214, 0.98), rgba(12, 78, 99, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero--v6 .hero__highlight-value::before {
  content: none;
}

.hero--v6 .hero__highlight-label {
  margin-top: 0;
  font-size: 13px;
  color: rgba(20, 31, 46, 0.6);
  line-height: 1.3;
}

/* Highlights variants (optional presets)
   Usage: <section class="hero hero--v6 hero--hl-ghost"> ... */
.hero--v6.hero--hl-ghost .hero__highlights {
  opacity: 0.58;
  filter: saturate(0.88);
}

.hero--v6.hero--hl-ghost .hero__highlight {
  background: transparent;
  border-color: rgba(20, 31, 46, 0.07);
  box-shadow: none;
  backdrop-filter: none;
}

.hero--v6.hero--hl-ghost .hero__highlight-value {
  font-size: 15px;
  color: rgba(20, 31, 46, 0.8);
}

.hero--v6.hero--hl-ghost .hero__highlight-label {
  color: rgba(20, 31, 46, 0.5);
}

/* Usage: <section class="hero hero--v6 hero--hl-inline"> ... */
.hero--v6.hero--hl-inline .hero__highlights {
  opacity: 0.76;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero--v6.hero--hl-inline .hero__highlight {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(250, 251, 253, 0.44);
  border-color: rgba(20, 31, 46, 0.08);
  box-shadow: none;
}

.hero--v6.hero--hl-inline .hero__highlight-value {
  display: inline;
  font-size: 14px;
  margin-right: 8px;
}

.hero--v6.hero--hl-inline .hero__highlight-label {
  display: inline;
  margin-top: 0;
  font-size: 13px;
  color: rgba(20, 31, 46, 0.56);
}

/* Usage: <section class="hero hero--v6 hero--hl-blur"> ... */
.hero--v6.hero--hl-blur .hero__highlights {
  opacity: 0.7;
}

.hero--v6.hero--hl-blur .hero__highlight {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(20, 160, 178, 0.1);
  box-shadow:
    0 18px 55px rgba(20, 31, 46, 0.07),
    0 10px 26px rgba(20, 160, 178, 0.06);
  backdrop-filter: blur(16px) saturate(1.1);
}

.hero__media {
  position: relative;
  align-self: end;
  transform: translateY(0);
}

.hero::before {
  content: "MAGICONE";
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: clamp(72px, 11vw, 132px);
  line-height: 0.8;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    rgba(12, 78, 99, 0.16),
    rgba(20, 160, 178, 0.06)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(12, 78, 99, 0.12);
  opacity: 0.78;
  filter: blur(0.12px) drop-shadow(0 14px 30px rgba(20, 160, 178, 0.1))
    drop-shadow(0 8px 18px rgba(12, 78, 99, 0.06));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35));
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.35)
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* v6: водяний MAGICONE (нейтральний, без бірюзового фону тексту) */
.hero.hero--v6::before {
  z-index: 2;
  display: block;
  background: linear-gradient(
    180deg,
    rgba(56, 60, 66, 0.14),
    rgba(110, 114, 120, 0.05)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0 transparent;
  opacity: 0.76;
  letter-spacing: 0.24em;
  transform: translateX(-50%) translateY(2px);
  filter: blur(0.35px);
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.72) 45%,
    rgba(0, 0, 0, 0.38) 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.72) 45%,
    rgba(0, 0, 0, 0.38) 100%
  );
  mix-blend-mode: multiply;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 10% -12% auto -12%;
  background:
    radial-gradient(
      920px 520px at 14% 6%,
      rgba(20, 160, 178, 0.4),
      transparent 62%
    ),
    radial-gradient(
      920px 520px at 88% 8%,
      rgba(12, 78, 99, 0.26),
      transparent 62%
    ),
    radial-gradient(
      720px 420px at 50% 32%,
      rgba(250, 251, 253, 0.96),
      transparent 62%
    ),
    radial-gradient(
      680px 360px at 52% 60%,
      rgba(20, 160, 178, 0.16),
      transparent 62%
    ),
    linear-gradient(
      90deg,
      rgba(20, 160, 178, 0.12),
      transparent 34%,
      transparent 66%,
      rgba(12, 78, 99, 0.1)
    );
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* v6: перебиває загальний .hero::after (там сильні бірюзові radial) */
.hero.hero--v6::after {
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(
      ellipse 105% 70% at 50% 32%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 58%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 52%,
      rgba(249, 250, 251, 0.22) 70%,
      rgba(249, 250, 251, 0.72) 84%,
      var(--bg) 100%
    ),
    radial-gradient(
      780px 360px at 12% 4%,
      rgba(255, 255, 255, 0.03),
      transparent 58%
    ),
    radial-gradient(
      780px 360px at 88% 5%,
      rgba(28, 32, 36, 0.06),
      transparent 58%
    );
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-watermark-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.028);
    filter: blur(0.22px) drop-shadow(0 18px 36px rgba(0, 0, 0, 0.06))
      drop-shadow(0 8px 18px rgba(0, 0, 0, 0.04));
  }
  55% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1.008);
    filter: blur(0.14px) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.055))
      drop-shadow(0 6px 14px rgba(0, 0, 0, 0.035));
  }
  100% {
    opacity: 0.98;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0.1px) drop-shadow(0 12px 28px rgba(0, 0, 0, 0.05))
      drop-shadow(0 7px 16px rgba(0, 0, 0, 0.035));
  }
}

/* (Glow animation removed — animation applies only to MAGICONE text) */

/* (Removed extra hero background overlay) */

.doctor-philosophy .media-card {
  overflow: hidden;
  position: relative;
}

.doctor-philosophy .media-card__image {
  width: 100%;

  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
  filter: blur(0px) saturate(1.02) contrast(1.01);
}

/* Image is graded in the PNG itself */

.hero__floating-card {
  position: absolute;
  left: -16px;
  bottom: 24px;
  pointer-events: none;
}

.floating-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  max-width: 270px;
}

.floating-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(
      12px 12px at 30% 30%,
      rgba(255, 255, 255, 0.85),
      transparent 55%
    ),
    linear-gradient(135deg, rgba(20, 160, 178, 0.95), rgba(12, 78, 99, 0.75));
}

.floating-card__title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.floating-card__desc {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* Checkup intro – dark image section */
.checkup-intro {
  position: relative;
  padding: 68px 0;
  min-height: 80vh;
  color: #fff;
  overflow: hidden;
}

.checkup-intro__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.checkup-intro__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: blur(1px) saturate(1.02) contrast(1.02);
  transform: scale(1.02);
  transform-origin: center;
}

.checkup-intro__overlay {
  position: relative;
  z-index: 1;
  background: transparent;
}

.checkup-intro__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
}

.checkup-intro__content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.checkup-intro__media::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    280.78deg,
    rgba(86, 198, 214, 0.35) 0%,
    rgba(250, 251, 253, 0.22) 26%,
    rgba(107, 116, 138, 0.78) 60%,
    rgb(29, 59, 69) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.checkup-intro__eyebrow {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.5);
  color: rgba(226, 232, 240, 0.9);
}

.checkup-intro__title {
  margin-top: 16px;
  font-size: clamp(28px, 2.1vw + 18px, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.checkup-intro__text {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.9);
  max-width: 52ch;
}

/* Check-up: світліший фон + бірюзово-теплі акценти */
.checkup {
  background-color: var(--bg-2);
  background-image:
    radial-gradient(
      ellipse 88% 58% at 6% 18%,
      var(--bg-spot-mint) 0%,
      transparent 54%
    ),
    radial-gradient(
      ellipse 72% 48% at 94% 82%,
      var(--bg-spot-teal) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 48% 0%, var(--bg-spot-warm) 0%, transparent 42%),
    linear-gradient(180deg, #ecf4f6 0%, var(--bg-2) 38%, #eef2f5 100%);
}

/* Checkup – grid cards (variant 1, refined) */
.checkup__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: stretch;
  margin: 0;
  padding-left: 0;
}

.checkup__item {
  list-style: none;
  height: 100%;
}

.checkup-card {
  --checkup-teal: rgb(11, 74, 95);
  --checkup-silver-border: rgba(196, 208, 220, 0.72);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--checkup-silver-border);
  box-shadow:
    0 10px 40px rgba(8, 42, 58, 0.07),
    0 4px 14px rgba(11, 74, 95, 0.04);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.checkup-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(
    90deg,
    rgba(203, 213, 225, 0.5),
    rgba(186, 220, 226, 0.85),
    rgba(17, 166, 184, 0.48)
  );
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.checkup-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 16px;
  margin-bottom: 12px;
}

.checkup-card__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: rgba(11, 74, 95, 0.88);
  background: linear-gradient(
    160deg,
    rgba(248, 250, 252, 0.98),
    rgba(226, 232, 240, 0.75)
  );
  border: 1px solid rgba(196, 208, 220, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(120, 224, 238, 0.12);
}

.checkup-card__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-top: 2px;
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--checkup-teal);
}

.checkup-card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.checkup-card:hover {
  border-color: rgba(120, 224, 238, 0.45);
  box-shadow:
    0 18px 50px rgba(8, 42, 58, 0.1),
    0 8px 22px rgba(17, 166, 184, 0.08);
  transform: translateY(-2px);
}

/* Checkup – alternative card skins
   Switch by adding class to the section:
   <section class="section checkup checkup--v2"> ... */

.checkup.checkup--v2 .checkup-card {
  padding: 18px 18px 18px 26px;
  background:
    radial-gradient(
      220px 120px at 10% 0%,
      rgba(86, 198, 214, 0.22),
      transparent 62%
    ),
    radial-gradient(
      260px 160px at 110% 20%,
      rgba(12, 78, 99, 0.1),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.9);
  border-color: rgba(12, 78, 99, 0.12);
  box-shadow:
    0 18px 55px rgba(20, 31, 46, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.checkup.checkup--v2 .checkup-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(86, 198, 214, 0.9),
    rgba(12, 78, 99, 0.25),
    rgba(12, 78, 99, 0)
  );
  opacity: 0.9;
}

.checkup.checkup--v2 .checkup-card__head {
  flex-direction: row-reverse;
}

.checkup.checkup--v2 .checkup-card__num {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(12, 78, 99, 0.12);
  color: rgba(12, 78, 99, 0.72);
}

.checkup.checkup--v2 .checkup-card__title {
  padding-top: 0;
}

.checkup.checkup--v2 .checkup-card:hover {
  border-color: rgba(20, 160, 178, 0.22);
  box-shadow:
    0 24px 70px rgba(20, 31, 46, 0.1),
    0 12px 28px rgba(20, 160, 178, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.checkup.checkup--v3 .checkup-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(20, 31, 46, 0.1);
  box-shadow:
    0 18px 55px rgba(20, 31, 46, 0.08),
    0 10px 24px rgba(20, 160, 178, 0.05);
}

.checkup.checkup--v3 .checkup-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 10px 10px 999px 999px;
  background:
    radial-gradient(
      240px 60px at 20% 50%,
      rgba(255, 255, 255, 0.55),
      transparent 62%
    ),
    linear-gradient(90deg, rgba(86, 198, 214, 0.95), rgba(12, 78, 99, 0.92));
  opacity: 0.9;
}

.checkup.checkup--v3 .checkup-card__num {
  background:
    radial-gradient(
      120px 70px at 30% 25%,
      rgba(255, 255, 255, 0.6),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(250, 251, 253, 0.92),
      rgba(230, 236, 242, 0.62)
    );
  border-color: rgba(20, 160, 178, 0.18);
}

.checkup.checkup--v3 .checkup-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 160, 178, 0.22);
  box-shadow:
    0 28px 80px rgba(20, 31, 46, 0.1),
    0 14px 32px rgba(20, 160, 178, 0.1);
}

.checkup.checkup--v4 .checkup-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.82)
  );
  border-color: rgba(20, 31, 46, 0.1);
  box-shadow:
    0 14px 40px rgba(20, 31, 46, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.checkup.checkup--v4 .checkup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      220px 110px at 18% 10%,
      rgba(20, 160, 178, 0.14),
      transparent 62%
    ),
    radial-gradient(
      260px 140px at 86% 0%,
      rgba(12, 78, 99, 0.08),
      transparent 60%
    );
  opacity: 0.9;
  pointer-events: none;
}

.checkup.checkup--v4 .checkup-card__num {
  background: rgba(250, 251, 253, 0.98);
}

.checkup.checkup--v4 .checkup-card:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 78, 99, 0.18);
  box-shadow:
    0 18px 55px rgba(20, 31, 46, 0.09),
    0 10px 26px rgba(12, 78, 99, 0.06);
}

/* Index: перехід на повні сторінки з секцій */
.index-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding: 10px 0 6px;
}

.doctors__wrap > .index-section-cta + .doctors-carousel {
  margin-top: 36px;
}

.index-section-cta--services {
  margin-top: 36px;
  margin-bottom: 22px;
  padding-bottom: 10px;
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: stretch;
}

/* Головна: мінімальна висота рядка — інакше картки з лише position:absolute зсередини стискаються до «таблеток» */
.section.services .services__grid {
  grid-auto-rows: minmax(280px, auto);
}

/* Center last row when grid is 4 columns (only on homepage section) */
.section.services .services__grid > :nth-last-child(2):nth-child(4n + 1) {
  grid-column: 2;
}

.section.services .services__grid > :last-child:nth-child(4n + 1) {
  grid-column: 2 / span 2;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(
      300px 160px at 14% 0%,
      rgba(20, 160, 178, 0.24),
      transparent 62%
    ),
    radial-gradient(
      320px 180px at 110% 10%,
      rgba(12, 78, 99, 0.14),
      transparent 58%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.84)
    );
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  min-height: 170px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.service-card:visited {
  color: inherit;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

/* keep :before free (we use it for subtle shine elsewhere) */

/* hover image (in HTML) */
.service-card__hover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  transform: scale(1.12);
  filter: blur(12px) saturate(1.05) contrast(1.03);
  will-change: opacity, transform, filter;
  transition:
    opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.12) 0%,
    rgba(15, 23, 42, 0.56) 72%,
    rgba(15, 23, 42, 0.72) 100%
  );
  opacity: 0.55;
  transition: opacity 220ms ease;
}

.service-card:hover .service-card__hover-image {
  opacity: 1;
  transform: scale(1.03);
  filter: blur(0px) saturate(1.05) contrast(1.04) brightness(0.82);
}

.service-card:hover::after {
  opacity: 0.78;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  transition:
    opacity 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, filter;
}

.service-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Bottom-aligned content like reference */
.service-card__content {
  margin-top: 22px;
  position: relative;
  z-index: 2;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* Service icons (PNG via HTML) */
/* (legacy) */
.service-card__icon-img {
  display: none;
}

.service-card__icon--accent {
  border-color: transparent;
}

.service-card__icon--mint {
  border-color: transparent;
}

.service-card__icon--rose {
  border-color: transparent;
}

.service-card__title {
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: rgb(12 18 26 / 92%);
  min-height: calc(1.2em * 2);
  max-height: calc(1.2em * 2);
  display: block;
  overflow: hidden;
  text-shadow: none;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-end;
  margin-top: auto;
  justify-content: center;
}

.service-card__tag {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.32);

  border-radius: 10px;
  padding: 6px 9px;
  backdrop-filter: blur(1px) saturate(-1.05);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  animation: serviceTitlePop 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.service-card:hover .service-card__text {
  color: rgba(15, 23, 42, 0.72);
  text-shadow: none;
  opacity: 0;
  transform: translateY(6px);
}

/* No background panel for content on hover */

@keyframes serviceTitlePop {
  0% {
    transform: translateZ(0) scale(1);
  }
  55% {
    transform: translateZ(0) scale(1.035);
  }
  100% {
    transform: translateZ(0) scale(1);
  }
}

.service-card:hover .service-card__icon {
  opacity: 0;
  transform: translateY(-12px) scale(0.92);
  filter: blur(2px);
}

.service-card:hover .service-card__content {
  transform: translateY(-6px);
}

.service-card__link {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
  letter-spacing: -0.02em;
}

.service-card__link:hover {
  text-decoration: underline;
}

/* Doctor */
.doctor__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 34px;
  align-items: center;
}

.doctor__media-card .media-card__image {
  height: 460px;
  object-position: center bottom;
}

.doctor-philosophy .doctor__media-card .media-card__image {
  object-position: center top;
  filter: saturate(1.03) contrast(1.04);
  transform: scale(1.01);
}

.doctor__bullets {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.doctor__bullet {
  padding: 14px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.86);
  line-height: 1.6;
}

.doctor__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.doctor__cards {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.doctor-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.76)
  );
  border: 1px solid rgba(11, 74, 95, 0.12);
  box-shadow:
    0 14px 34px rgba(8, 42, 58, 0.08),
    0 6px 14px rgba(17, 166, 184, 0.08);
}

.doctor-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;

  color: rgba(11, 74, 95, 0.72);
}

.doctor-card__icon svg {
  width: 26px;
  height: 26px;
}

.doctor-card__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: rgba(15, 23, 42, 0.92);
}

.doctor-card__text {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.doctor__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.doctor-philosophy .doctor__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  column-gap: 34px;
  row-gap: 0px;
  align-items: start;
  grid-template-areas:
    "header lead"
    "list media";
}

.doctor-philosophy__header {
  grid-area: header;
  gap: 15px;
}

.doctor-philosophy__lead {
  grid-area: lead;
}

.doctor-philosophy__media {
  grid-area: media;
}

.doctor-philosophy__list {
  grid-area: list;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-height: 100%;
}

.doctor-philosophy__lead {
  position: static;
  margin: 0;
  padding: 0;
  border-radius: 0;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.62);
  background: transparent;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
  text-align: left;
}

.doctor-philosophy .section__title {
  margin: 0;
}

.doctor-philosophy .doctor__cards {
  margin-top: 22px;
  gap: 12px;
}

.doctor-philosophy .doctor-card {
  grid-template-columns: 42px 1fr;
  padding: 16px 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.78)
  );
  align-items: center;
  border: 1px solid rgba(11, 74, 95, 0.12);
  box-shadow:
    0 12px 28px rgba(8, 42, 58, 0.07),
    0 6px 14px rgba(17, 166, 184, 0.06);
}

.doctor-philosophy .doctor-card__icon {
  width: 37px;
  height: 37px;
  color: rgba(11, 74, 95, 0.68);
}

.doctor-philosophy .doctor-card__icon svg {
  width: 22px;
  height: 22px;
}

.doctor-philosophy .doctor-card__title {
  font-size: 15.5px;
}

.doctor-philosophy .doctor-card__text {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
}

.doctor-philosophy .doctor__media {
  display: grid;
}

.doctor-philosophy .doctor__media-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 26px 80px rgba(8, 42, 58, 0.14),
    0 14px 34px rgba(17, 166, 184, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  isolation: isolate;
}

/* Оверлей у стилі hero v6: легке світло в центрі + нейтральне затемнення + м’який низ */
.doctor-philosophy .doctor__media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    radial-gradient(
      ellipse 125% 88% at 50% 36%,
      rgba(255, 252, 248, 0.11) 0%,
      rgba(255, 255, 255, 0.05) 40%,
      rgba(255, 255, 255, 0.015) 62%,
      transparent 78%
    ),
    radial-gradient(
      ellipse 92% 48% at 50% 0%,
      rgba(255, 255, 255, 0.055) 0%,
      transparent 52%
    ),
    radial-gradient(
      560px 320px at 14% 45%,
      rgba(255, 255, 255, 0.035),
      transparent 62%
    ),
    radial-gradient(
      560px 320px at 86% 48%,
      rgba(20, 22, 26, 0.18),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(22, 26, 30, 0.28) 0%,
      rgba(22, 26, 30, 0.16) 28%,
      rgba(22, 26, 30, 0.09) 52%,
      transparent 68%
    );
}

.doctor-philosophy .doctor__media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 100% 72% at 50% 34%,
    rgba(255, 255, 255, 0.035) 0%,
    transparent 58%
  );
}

@media (max-width: 920px) {
  .doctor__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .doctor-philosophy .doctor__inner {
    grid-template-columns: 1fr;
    row-gap: 14px;
    grid-template-areas:
      "header"
      "lead"
      "media"
      "list";
  }

  .doctor-philosophy__lead {
    margin: 0;
  }

  .doctor__media-card .media-card__image,
  .doctor-philosophy .doctor__media-card .media-card__image {
    height: 420px;
    object-position: center bottom;
  }

  .doctor-philosophy .doctor__media-card .media-card__image {
    object-position: center top;
  }
}

/* Doctors carousel (like CodePen) */
.doctors__wrap {
  position: relative;
}

.doctors__bg-title {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  background: linear-gradient(
    to bottom,
    rgba(20, 160, 178, 0.22) 30%,
    rgba(255, 255, 255, 0) 76%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 0;
}

.doctors-carousel {
  width: 100%;
  max-width: 1200px;
  /* height is driven by content; track gets fixed height */
  height: auto;
  min-height: 520px;
  margin-top: 64px;
  position: relative;
  perspective: 1000px;
  overflow: clip;
}

@supports not (overflow: clip) {
  .doctors-carousel {
    overflow: hidden;
  }
}

.doctors-carousel__track {
  width: 100%;
  height: 410px;
  position: relative;
  transform-style: preserve-3d;
  overflow: hidden;
}

.doctors-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 22px 45px rgba(12, 78, 99, 0.14);
  transition:
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.doctors-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;

  transition: filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.doctors-card.center {
  z-index: 10;
  transform: translate(-50%, -50%) scale(1.12) translateZ(0);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 45px rgba(12, 78, 99, 0.14);
  isolation: isolate;
}

/* Той самий оверлей, що на фото в блоці «Філософія клініки» */
.doctors-card:not(.center)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    radial-gradient(
      ellipse 125% 88% at 50% 36%,
      rgba(255, 252, 248, 0.11) 0%,
      rgba(255, 255, 255, 0.05) 40%,
      rgba(255, 255, 255, 0.015) 62%,
      transparent 78%
    ),
    radial-gradient(
      ellipse 92% 48% at 50% 0%,
      rgba(255, 255, 255, 0.055) 0%,
      transparent 52%
    ),
    radial-gradient(
      560px 320px at 14% 45%,
      rgba(255, 255, 255, 0.035),
      transparent 62%
    ),
    radial-gradient(
      560px 320px at 86% 48%,
      rgba(20, 22, 26, 0.18),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(22, 26, 30, 0.28) 0%,
      rgba(22, 26, 30, 0.16) 28%,
      rgba(22, 26, 30, 0.09) 52%,
      transparent 68%
    );
}

.doctors-card:not(.center)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 100% 72% at 50% 34%,
    rgba(255, 255, 255, 0.035) 0%,
    transparent 58%
  );
}

.doctors-card.center img {
  position: relative;
  z-index: 0;
  filter: saturate(0.98) contrast(0.98) brightness(0.98);
  transform: scale(1.01);
}

.doctors-card.right-2 {
  z-index: 1;
  transform: translate(-50%, -50%) translateX(420px) scale(0.8)
    translateZ(-300px);
  opacity: 0.7;
  box-shadow:
    0 34px 110px rgba(8, 42, 58, 0.18),
    0 22px 64px rgba(17, 166, 184, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.doctors-card.left-2 {
  z-index: 1;
  transform: translate(-50%, -50%) translateX(-420px) scale(0.8)
    translateZ(-300px);
  opacity: 0.7;
  box-shadow:
    0 34px 110px rgba(8, 42, 58, 0.18),
    0 22px 64px rgba(17, 166, 184, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.doctors-card.right-1 {
  z-index: 5;
  transform: translate(-50%, -50%) translateX(220px) scale(0.9)
    translateZ(-100px);
  opacity: 0.9;
  box-shadow:
    0 34px 110px rgba(8, 42, 58, 0.18),
    0 22px 64px rgba(17, 166, 184, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.doctors-card.left-1 {
  z-index: 5;
  transform: translate(-50%, -50%) translateX(-220px) scale(0.9)
    translateZ(-100px);
  opacity: 0.9;
  box-shadow:
    0 34px 110px rgba(8, 42, 58, 0.18),
    0 22px 64px rgba(17, 166, 184, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.doctors-card:not(.center) img {
  filter: saturate(1.08) contrast(1.07) brightness(1.02);
}

.doctors-card.hidden {
  opacity: 0;
  pointer-events: none;
}

.doctors-member {
  text-align: center;
  margin-top: 18px;
  transition: opacity 0.25s ease;
}

.doctors-member__name {
  color: var(--brand);
  font-size: clamp(22px, 2vw + 10px, 34px);
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
}

.doctors-member__name::before,
.doctors-member__name::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 120px;
  height: 2px;
  background: rgba(20, 160, 178, 0.85);
}

.doctors-member__name::before {
  left: -140px;
}

.doctors-member__name::after {
  right: -140px;
}

.doctors-member__role {
  color: rgba(20, 31, 46, 0.65);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.doctors-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  padding: 2px 0 6px;
  align-items: center;
}

.doctors-dot {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 12px;
  height: 12px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 160, 178, 0.22);
  cursor: pointer;
  transition: all 0.25s ease;
}

.doctors-dot.active {
  background: var(--brand-2);
  transform: scale(1.2);
}

.doctors-nav {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 160, 178, 0.25);
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.doctors-nav:hover {
  background: rgba(12, 78, 99, 0.7);
  transform: translateY(-50%) scale(1.08);
}

.doctors-nav--left {
  left: 20px;
}

.doctors-nav--right {
  right: 20px;
}

/* Results gallery */
.results__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.result-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.result-card__media {
  position: relative;
}

.result-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.8);
}

.result-card__caption {
  padding: 14px 14px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Testimonials */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.testimonial-card {
  padding: 18px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.testimonial-card__text {
  line-height: 1.75;
  color: rgba(15, 23, 42, 0.86);
}

.testimonial-card__footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background:
    radial-gradient(
      12px 12px at 30% 30%,
      rgba(255, 255, 255, 0.85),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.testimonial-card__name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.testimonial-card__detail {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial-card__stars {
  letter-spacing: 0.08em;
  color: rgba(245, 158, 11, 0.95);
  font-size: 12px;
  line-height: 1;
}

.testimonial-card__when {
  color: rgba(15, 23, 42, 0.55);
  font-size: 12px;
}

/* FAQ accordion */
.section.faq {
  position: relative;
}

.section.faq .container {
  position: relative;
  z-index: 1;
  padding: 100px 15px;
  margin: 0 auto;
}
.section.faq .container::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 12px;
  bottom: -8px;
  left: 12px;
  z-index: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(3px) saturate(1.1);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.section.faq .container > * {
  position: relative;
  z-index: 1;
}

/* FAQ background (image via HTML <img>) */
.faq-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.faq-bg__image {
  position: absolute;
  inset: -30px;
  filter: saturate(1.02) contrast(1.02);
}

.faq-bg__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.faq-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 80% at 85% 30%,
      rgba(17, 166, 184, 0.22) 0%,
      transparent 55%
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(12, 78, 99, 0.62) 42%,
      rgba(15, 23, 42, 0.8) 100%
    );
  opacity: 0.85;
}

.faq__list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.section.faq .faq__list {
  position: relative;
  z-index: 1;
}

.faq-item {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(1.1);
}

.faq-item__title {
  margin: 0;
  font: inherit;
}

.faq-item__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px;
  background: rgba(255, 255, 255, 0.28);
  border: 0;
  font-size: 16px;
  text-align: left;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.faq-item__button:hover {
  background: rgba(20, 160, 178, 0.08);
  color: rgba(12, 78, 99, 0.92);
  transform: translateY(-1px);
}

.faq-item__button:focus-visible {
  outline: 2px solid rgba(20, 160, 178, 0.35);
  outline-offset: -2px;
}

.faq-item__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15, 23, 42, 0.55);
  border-bottom: 2px solid rgba(15, 23, 42, 0.55);
  transform: rotate(45deg);
  transition: transform 140ms ease;
  flex: 0 0 auto;
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(-135deg);
}

.faq-item__panel {
  padding: 0 16px 16px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: none;
  background: rgba(255, 255, 255, 0.18);
  transition:
    max-height 260ms ease,
    opacity 180ms ease;
}

.faq-item__text {
  color: var(--muted);
  line-height: 1.75;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__panel {
    transition: none;
  }
}

/* Contact form (after FAQ) */
.contact-form {
  overflow: hidden;
  padding-bottom: 0;
}

.contacts-page__body {
  position: relative;
  background:
    radial-gradient(
      ellipse 70% 60% at 10% 0%,
      rgba(17, 166, 184, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 55% at 90% 25%,
      rgba(152, 131, 131, 0.1) 0%,
      transparent 58%
    ),
    linear-gradient(
      180deg,
      rgba(248, 252, 252, 0.96) 0%,
      rgba(255, 255, 255, 0.9) 45%,
      rgba(236, 245, 246, 0.94) 100%
    );
}

/* Contacts page: make form column wider */
.contacts-page__panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

@media (max-width: 900px) {
  .contacts-page__panel-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.contact-form__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.02) brightness(1.02);
  transform: scale(1.05);
}

.contact-form__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 55% at 0% 20%,
      rgba(17, 166, 184, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 50% at 100% 80%,
      rgba(152, 131, 131, 0.1) 0%,
      transparent 52%
    ),
    linear-gradient(
      180deg,
      rgba(248, 252, 252, 0.94) 0%,
      rgba(255, 255, 255, 0.76) 48%,
      rgba(236, 245, 246, 0.9) 100%
    );
  opacity: 1;
}

.contact-form .container > * {
  position: relative;
  z-index: 1;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.contact-form__card,
.contact-form__details {
  padding: clamp(20px, 2.8vw, 28px);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0.95;
}

.contact-form__card {
  background: rgba(229, 241, 238, 0.92);
}

.contact-form__details {
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.contact-form__card-title,
.contact-form__details-title {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(15, 23, 42, 0.9);
}

.contact-form__card-title {
  margin-bottom: 14px;
}

.contact-form__details-text {
  margin: -4px 0 16px;
  color: rgba(15, 23, 42, 0.66);
  line-height: 1.65;
  max-width: 52ch;
}

.contact-form__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.contact-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(15, 23, 42, 0.6);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.98);
  color: rgba(15, 23, 42, 0.92);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(15, 23, 42, 0.38);
}

.contact-form__input:hover,
.contact-form__textarea:hover {
  border-color: rgba(152, 131, 131, 0.28);
}

.contact-form__input:focus-visible,
.contact-form__textarea:focus-visible {
  outline: none;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: none;
}

/* Field errors (browser validation) */
.contact-form__input[data-touched="1"]:invalid,
.contact-form__textarea[data-touched="1"]:invalid {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}

.contact-form__input[data-touched="1"]:invalid:focus-visible,
.contact-form__textarea[data-touched="1"]:invalid:focus-visible {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.contact-form__input[data-touched="1"]:invalid::placeholder,
.contact-form__textarea[data-touched="1"]:invalid::placeholder {
  color: rgba(153, 27, 27, 0.55);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.contact-form__checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: rgba(17, 166, 184, 0.95);
  cursor: pointer;
}

.contact-form__consent-label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.contact-form__footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.booking-modal .contact-form__footer {
  align-items: center;
}

.contact-form .button--primary,
.booking-modal .button--primary {
  width: min(260px, 100%);
  justify-content: center;
  background: rgba(11, 74, 95, 0.96);
  border-color: rgba(11, 74, 95, 0.2);
  box-shadow: none;
}

.contact-form .button--primary.is-shaking,
.booking-modal .button--primary.is-shaking {
  animation: form-shake 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes form-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-6px);
  }
  30% {
    transform: translateX(6px);
  }
  45% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
  90% {
    transform: translateX(3px);
  }
}

.contact-form .button--primary::before,
.contact-form .button--primary::after,
.booking-modal .button--primary::before,
.booking-modal .button--primary::after {
  display: none;
}

.contact-form .button--primary:hover,
.booking-modal .button--primary:hover {
  background: rgba(8, 42, 58, 0.96);
  box-shadow: none;
}

.contact-form__status {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(12, 78, 99, 0.92);
}

/* Модальне вікно запису (форма в стилі contact-form) */
.booking-modal {
  padding: 0;
  border: 0;
  max-width: calc(100vw - 28px);
  width: min(500px, 100%);
  background: transparent;
  color: var(--text);
}

.booking-modal::backdrop {
  background: rgba(8, 42, 58, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (prefers-reduced-motion: reduce) {
  .booking-modal::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.booking-modal__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 24px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 28px 70px rgba(8, 42, 58, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  background: rgba(255, 255, 255, 0.98);
}

.booking-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.75);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(8, 42, 58, 0.12);
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.booking-modal__close:hover {
  background: #fff;
  color: rgba(15, 23, 42, 0.95);
}

.booking-modal__close:focus-visible {
  outline: 2px solid rgba(17, 166, 184, 0.65);
  outline-offset: 2px;
}

.booking-modal__content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 26px) clamp(18px, 4vw, 26px) clamp(22px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: rgba(229, 241, 238, 0.96);
  border: 0;
  box-shadow: none;
}

.booking-modal__eyebrow {
  margin: 0;
  width: fit-content;
}

.booking-modal__title {
  margin: 12px 0 0;
  font-size: clamp(20px, 1.4vw + 14px, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.booking-modal__lead {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

.booking-modal .contact-form__form {
  margin-top: 18px;
}

.contact-form__details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.contact-form__detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.contact-form__detail-body {
  min-width: 0;
}

.contact-form__detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(11, 74, 95, 0.95);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.92);
  flex: 0 0 auto;
}

.contact-form__detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-form__detail-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(15, 23, 42, 0.86);
}

.contact-form__detail-value {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.58);
}

.contact-form__detail-link {
  display: inline;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-form__detail-link:hover {
  text-decoration: underline;
  text-decoration-color: rgba(17, 166, 184, 0.45);
}

.contact-form__details-social {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.contact-form__details-social-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(15, 23, 42, 0.66);
  margin-bottom: 10px;
}

.contacts-page__meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 16px;
}

.contacts-page__meta--form {
  margin-top: 0;
}

.contacts-page__meta--standalone {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  margin-bottom: 18px;
  padding: 18px 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      ellipse 70% 90% at 0% 0%,
      rgba(17, 166, 184, 0.14) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 90% at 100% 0%,
      rgba(152, 131, 131, 0.12) 0%,
      transparent 58%
    ),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    0 22px 52px rgba(8, 42, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.contacts-page__meta--standalone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(17, 166, 184, 0.18) 0%,
    transparent 35%,
    transparent 65%,
    rgba(152, 131, 131, 0.16) 100%
  );
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.contacts-page__meta--standalone {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.contacts-page__meta--standalone .contacts-page__meta-block {
  position: relative;
  z-index: 1;
  padding: 0;
}

@media (min-width: 860px) {
  .contacts-page__meta--standalone {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 0;
  }

  .contacts-page__meta--standalone .contacts-page__meta-block {
    padding: 0 18px;
  }

  .contacts-page__meta--standalone .contacts-page__meta-block:first-child {
    padding-left: 0;
  }

  .contacts-page__meta--standalone .contacts-page__meta-block:last-child {
    padding-right: 0;
  }

  .contacts-page__meta--standalone
    .contacts-page__meta-block
    + .contacts-page__meta-block {
    padding-left: 18px;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
  }
}

.contacts-page__meta-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(15, 23, 42, 0.92);
}

.contacts-page__hours-status {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

.contacts-page__hours-status[data-status="open"] {
  border-color: rgba(17, 166, 184, 0.32);
  background: rgba(17, 166, 184, 0.12);
  color: rgba(8, 42, 58, 0.92);
}

.contacts-page__hours-status[data-status="closed"] {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
  color: rgba(153, 27, 27, 0.92);
}

.contacts-page__hours {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.contacts-page__hours-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.74);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.contacts-page__hours-day {
  font-weight: 650;
  color: rgba(15, 23, 42, 0.86);
}

.contacts-page__tips {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.contacts-page__tip {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.74);
  padding-left: 14px;
  position: relative;
}

.contacts-page__tip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 166, 184, 0.65);
}

.contacts-page__tip::after {
  content: none;
}

.contact-form__map {
  width: 100vw;
  max-width: none;
  margin: 76px 0 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(152, 131, 131, 0.14);
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: 0 24px 60px rgba(8, 42, 58, 0.1);
}

.contact-form__map iframe {
  width: 100%;
  height: clamp(240px, 34vw, 360px);
  border: 0;
  display: block;
}

/* Address card over full-bleed map — aligned with .container (Google’s in-iframe UI cannot be moved) */
.map-embed {
  position: relative;
}

.map-embed__overlay {
  position: absolute;
  inset: 0 0 auto 0;
  top: 12px;
  z-index: 3;
  pointer-events: none;
}

.map-embed__overlay .container {
  pointer-events: none;
}

.map-embed__card {
  pointer-events: auto;
  max-width: min(300px, calc(100vw - 40px));
  padding: 12px 14px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.12);
}

.map-embed__card-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: rgba(15, 23, 42, 0.92);
  text-shadow: none;
}

.map-embed__card-meta {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.58);
  text-shadow: none;
}

.map-embed__directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 750;
  color: rgba(11, 74, 95, 0.95);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.map-embed__directions:hover {
  border-bottom-color: rgba(11, 74, 95, 0.35);
}

.map-embed__iframe {
  position: relative;
  z-index: 1;
  display: block;
}

/* Hide Google’s default top-left place card (can’t style inside iframe) */
.map-embed__iframe-shim {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: min(360px, 90vw);
  height: 132px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 52%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Visually merge map into footer */
.contact-form + .site-footer {
  border-top-color: transparent;
  margin-top: -1px;
}

@media (max-width: 560px) {
  .contact-form__fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  /* Форма зверху, блок контактів нижче */
  .contact-form__card {
    order: -1;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .contact-form__details {
    border-right: 0;
    border-bottom: 0;
  }

  .contact-form__details-social {
    margin-top: 16px;
  }

  .contact-form__footer {
    margin-top: 20px;
    padding-top: 0;
  }

  .contact-form__details-grid {
    grid-template-columns: 1fr;
  }
}

/* Booking CTA */
.booking {
  overflow: hidden;
}

.booking__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
}

.booking__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* 50% → 30% по Y: кадр трохи вище (~на 20 п.п.) */
  object-position: center 30%;
}

/* Тон над фото: трохи темніше за попередній варіант, фото ще видно */
.booking::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      900px 420px at 20% 30%,
      rgba(152, 131, 131, 0.18),
      transparent 58%
    ),
    radial-gradient(
      900px 420px at 80% 50%,
      rgba(17, 166, 184, 0.15),
      transparent 56%
    ),
    radial-gradient(
      720px 380px at 50% 100%,
      rgba(92, 129, 149, 0.08),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(228, 236, 238, 0.58),
      rgba(210, 226, 232, 0.42)
    );
  opacity: 0.84;
  pointer-events: none;
}

.booking .container {
  position: relative;
  z-index: 1;
}

.cta-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  background:
    radial-gradient(
      900px 340px at 18% 20%,
      rgba(20, 160, 178, 0.18),
      transparent 58%
    ),
    radial-gradient(
      900px 360px at 90% 30%,
      rgba(15, 23, 42, 0.08),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.92fr);
  grid-template-areas: "main aside";
  gap: clamp(28px, 4vw, 52px);
  align-items: stretch;
}

.cta-card__content {
  grid-area: main;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cta-card__title {
  font-size: clamp(22px, 1.8vw + 12px, 34px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-card__text {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}

.cta-card__social {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.cta-card__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.cta-card__social-link:hover {
  border-color: rgba(17, 166, 184, 0.28);
  color: rgba(15, 23, 42, 0.92);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(8, 42, 58, 0.1);
}

.cta-card__social-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;

  color: rgba(11, 74, 95, 0.72);
}

.cta-card__social-icon svg {
  width: 22px;
  height: 22px;
}

.cta-card__actions {
  grid-area: actions;
  margin-top: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-card__aside {
  grid-area: aside;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  align-self: stretch;
  min-width: 0;
}

.cta-card__badge {
  width: 100%;
  flex: 1 1 auto;
  min-height: 100%;
  padding: 16px 14px 18px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 35px;
  background:
    radial-gradient(
      220px 140px at 22% 10%,
      rgba(17, 166, 184, 0.16),
      transparent 62%
    ),
    radial-gradient(
      220px 140px at 88% 70%,
      rgba(152, 131, 131, 0.14),
      transparent 62%
    ),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(152, 131, 131, 0.18);
  box-shadow:
    0 18px 44px rgba(8, 42, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(1.06);
}

.cta-card__badge-title {
  margin: 0;
  padding-bottom: 2px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: left;
  color: rgba(15, 23, 42, 0.88);
}

.cta-card__badge-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cta-card__badge-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-card__badge-meta-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.cta-card__badge-meta-item--stack {
  align-items: flex-start;
}

.cta-card__badge-meta-item--stack .cta-card__badge-meta-icon {
  margin-top: 1px;
}

.cta-card__badge-meta-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      120% 120% at 20% 18%,
      rgba(17, 166, 184, 0.16),
      transparent 56%
    ),
    radial-gradient(
      120% 120% at 90% 80%,
      rgba(152, 131, 131, 0.12),
      transparent 58%
    ),
    rgba(8, 42, 58, 0.05);
  box-shadow: inset 0 0 0 1px rgba(152, 131, 131, 0.12);
  color: rgba(11, 74, 95, 0.78);
}

.cta-card__badge-meta-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.cta-card__badge-meta-text {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(15, 23, 42, 0.86);
}

.cta-card__badge-address {
  margin-top: 8px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.86);
  letter-spacing: -0.01em;
}

.cta-card__badge-text {
  margin-top: 6px;
  color: var(--muted);
}

.cta-card__badge-hours {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 2px 0 0;
  list-style: none;
  display: grid;
  gap: 4px;
  color: rgba(15, 23, 42, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

.cta-card__badge-hour {
  line-height: 1.35;
}

/* Booking CTA — glass-картка в ритмі сайту (токени + contact-form) */
.booking .booking__card {
  border-radius: 10px;
  padding: clamp(22px, 3.2vw, 32px);
  background:
    radial-gradient(
      780px 300px at 10% 0%,
      rgba(17, 166, 184, 0.14),
      transparent 58%
    ),
    radial-gradient(
      640px 260px at 92% 100%,
      rgba(152, 131, 131, 0.11),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    var(--shadow-soft),
    0 28px 70px rgba(8, 42, 58, 0.09);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.booking .booking__card .cta-card__title {
  font-size: clamp(24px, 1.75vw + 14px, 36px);
  line-height: 1.12;
  color: var(--text-h2);
}

.booking .booking__card .cta-card__text {
  margin-top: 12px;
  max-width: 52ch;
}

/* Ліва колонка: дзвінок + месенджери на всю ширину grid-клітинки (десктоп) */
.booking .booking__card .cta-card__content {
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}

.booking .booking__card .cta-card__contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  margin-top: 20px;
  gap: 22px;
}

.booking .cta-card__call {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
}

/* Соцмережі: окремий блок під кнопкою — єдина «капсула», без «плаваючих» кіл */
.booking .cta-card__social-strip {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: none;
}

.booking .cta-card__social-hint {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.42);
  font-family: var(--font-heading);
}

.booking .booking__card .cta-card__social--tray,
.contact-form .cta-card__social--tray,
.contacts-page__side .cta-card__social--tray,
.site-footer .cta-card__social--tray {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  padding: 4px;
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(248, 252, 253, 0.88) 100%
  );
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 28px rgba(8, 42, 58, 0.06);
}

@media (min-width: 921px) {
  .booking .cta-card__call {
    max-width: 300px;
  }

  /* Підказка + трей однієї ширини з кнопкою дзвінка */
  .booking .cta-card__social-strip {
    max-width: 300px;
  }

  .booking .booking__card .cta-card__social--tray {
    max-width: 300px;
  }
}

.booking .booking__card .cta-card__social--tray .cta-card__social-link,
.contact-form .cta-card__social--tray .cta-card__social-link,
.contacts-page__side .cta-card__social--tray .cta-card__social-link,
.site-footer .cta-card__social--tray .cta-card__social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    transform 0.16s ease;
}

.booking
  .booking__card
  .cta-card__social--tray
  .cta-card__social-link:not(:last-child)::after,
.contact-form
  .cta-card__social--tray
  .cta-card__social-link:not(:last-child)::after,
.contacts-page__side
  .cta-card__social--tray
  .cta-card__social-link:not(:last-child)::after,
.site-footer
  .cta-card__social--tray
  .cta-card__social-link:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(15, 23, 42, 0.12) 20%,
    rgba(15, 23, 42, 0.12) 80%,
    transparent
  );
}

.booking .booking__card .cta-card__social--tray .cta-card__social-link:hover,
.contact-form .cta-card__social--tray .cta-card__social-link:hover,
.contacts-page__side .cta-card__social--tray .cta-card__social-link:hover,
.site-footer .cta-card__social--tray .cta-card__social-link:hover {
  background: rgba(17, 166, 184, 0.1);
  transform: translateY(-1px);
  box-shadow: none;
}

.booking .booking__card .cta-card__social--tray .cta-card__social-icon,
.contact-form .cta-card__social--tray .cta-card__social-icon,
.contacts-page__side .cta-card__social--tray .cta-card__social-icon,
.site-footer .cta-card__social--tray .cta-card__social-icon {
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.booking .booking__card .cta-card__social--tray .cta-card__social-icon img,
.contact-form .cta-card__social--tray .cta-card__social-icon img,
.contacts-page__side .cta-card__social--tray .cta-card__social-icon img,
.site-footer .cta-card__social--tray .cta-card__social-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

/* Кнопка дзвінка: скляний pill у ритмі капсули месенджерів (без глянцевого primary) */
.booking .cta-card__call .button--booking-call {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  max-width: none;
  justify-content: center;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-h2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(17, 166, 184, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 10px 30px rgba(8, 42, 58, 0.07);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.booking .cta-card__call .button--booking-call:hover {
  transform: translateY(-1px);
  background: rgba(17, 166, 184, 0.12);
  border-color: rgba(11, 74, 95, 0.32);
  color: rgb(8, 42, 58);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 14px 38px rgba(8, 42, 58, 0.1);
}

.booking .cta-card__call .button--booking-call:focus-visible {
  outline: 2px solid rgba(17, 166, 184, 0.45);
  outline-offset: 3px;
}

.booking .cta-card__call .button--booking-call:active {
  transform: translateY(1px);
}

/* Правий блок — щільна біла картка як у формі контактів */
.booking .booking__card .cta-card__badge {
  border-radius: 10px;
  gap: 26px;
  padding: 20px 18px 22px;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 14px 36px rgba(8, 42, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.booking .booking__card .cta-card__badge-title {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--text-h2);
}

.booking .booking__card .cta-card__badge-meta-text {
  font-weight: 600;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.88);
  padding-top: 2px;
}

.booking .booking__card .cta-card__badge-hours {
  color: rgba(15, 23, 42, 0.58);
  font-size: 13px;
}

/* Footer */
.site-footer {
  padding: 64px 0 28px;
  /* У ритмі з .button--primary: бірюза → rgb(11,74,95) */
  border-top: 1px solid rgba(120, 224, 238, 0.22);
  background:
    radial-gradient(
      560px 220px at 82% 0%,
      rgba(120, 224, 238, 0.2) 0%,
      transparent 62%
    ),
    radial-gradient(
      720px 320px at 18% 8%,
      rgba(17, 166, 184, 0.18) 0%,
      transparent 55%
    ),
    radial-gradient(
      880px 360px at 14% 0%,
      rgba(152, 131, 131, 0.16) 0%,
      transparent 56%
    ),
    linear-gradient(
      165deg,
      rgb(8, 42, 58) 0%,
      rgb(11, 74, 95) 28%,
      rgb(22, 95, 108) 52%,
      rgb(18, 78, 90) 78%,
      rgb(10, 38, 48) 100%
    );
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .brand__name {
  color: rgba(255, 255, 255, 0.98);
}

.site-footer .brand__tagline {
  color: rgba(255, 255, 255, 0.62);
}

/* Світлий варіант марки на темному футері (оригінал — чорний/сірий на прозорості) */
.site-footer .brand__mark {
  width: 56px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));
  transition: filter 0.2s ease;
}

.site-footer .brand:hover .brand__mark {
  filter: brightness(0) invert(1)
    drop-shadow(0 2px 18px rgba(120, 224, 238, 0.35));
}

.site-footer__inner {
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.site-footer__inner::before {
  content: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.12fr repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__col {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.site-footer__col--brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.site-footer__brand {
  width: fit-content;
}

.site-footer__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  max-width: 44ch;
}

.site-footer__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 4 00;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(196, 208, 220, 0.82);
}

.site-footer__list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.site-footer__link,
.site-footer__contact-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-footer__link:hover,
.site-footer__contact-link:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
  text-decoration-color: rgba(196, 208, 220, 0.55);
}

.site-footer__text {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__messenger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 28px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.site-footer__messenger .site-footer__title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
  text-align: center;
}

.site-footer__messenger .cta-card__social--tray {
  width: 100%;
  max-width: 360px;
}

/* Трей у футері: світліше скло + крупні іконки — щоб не зливалося з бірюзовим тлом */
.site-footer .cta-card__social--tray {
  padding: 6px 5px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(236, 252, 254, 0.2) 45%,
    rgba(120, 224, 238, 0.14) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 10px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(8, 42, 58, 0.15);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
}

.site-footer
  .cta-card__social--tray
  .cta-card__social-link:not(:last-child)::after {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.45) 18%,
    rgba(255, 255, 255, 0.45) 82%,
    transparent
  );
}

.site-footer .cta-card__social--tray .cta-card__social-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.site-footer .cta-card__social--tray .cta-card__social-icon img {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.site-footer__contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__contact-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}

.site-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__contact-icon svg {
  width: 18px;
  height: 18px;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: none;
  box-shadow: none;
}

.site-footer__social-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  color: inherit;
  flex: 0 0 auto;
}

.site-footer__social-icon svg {
  width: 18px;
  height: 18px;
}

.site-footer__social-link:hover {
  border-color: rgba(196, 208, 220, 0.65);
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  transform: translateY(-1px);
}

.site-footer__bottom {
  margin-top: 0;
  padding-top: 22px;
  border-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.site-footer__copyright {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
}

.site-footer__mozh-order {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.site-footer__legal .site-footer__link {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.site-footer__legal .site-footer__link:hover {
  color: rgba(255, 255, 255, 0.92);
}

/* Form status (success / error) — keep layout stable */
.contact-form__status,
.contacts-page__status {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.01em;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 23, 42, 0.78);
  min-height: 44px; /* reserve space so the form doesn't jump */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
  transition:
    opacity 300ms ease-in-out,
    transform 300ms ease-in-out,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.contact-form__status[hidden],
.contacts-page__status[hidden] {
  display: block !important; /* override [hidden]{display:none} */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-2px);
}

.contact-form__status[data-status],
.contacts-page__status[data-status] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.contact-form__status[data-status="success"],
.contacts-page__status[data-status="success"] {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.1);
  color: rgba(6, 95, 70, 0.92);
}

.contact-form__status[data-status="error"],
.contacts-page__status[data-status="error"] {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.1);
  color: rgba(127, 29, 29, 0.94);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.84) inset,
    0 18px 44px rgba(239, 68, 68, 0.12);
}

.contact-form__status[data-status="pending"],
.contacts-page__status[data-status="pending"] {
  border-color: rgba(17, 166, 184, 0.22);
  background: rgba(17, 166, 184, 0.1);
  color: rgba(8, 42, 58, 0.9);
}

/* Honeypot: hide accessibly */
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 920px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__contact-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__social {
    justify-content: center;
  }

  .cta-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "aside";
    align-items: stretch;
  }

  .cta-card__aside {
    justify-content: stretch;
    align-self: stretch;
  }

  .cta-card__badge {
    max-width: none;
  }
}

/* (removed) temporary screenshot overrides */

/* Index (main) services cards: keep legacy look */
/* Іконка над заголовком, по центру картки */
/* Абсолютні діти не задають висоту — ::before у потоці тримає min-height картки в сітці */
.section.services .service-card {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 280px;
  padding: 18px 18px 22px;
  align-self: stretch;
}

.section.services .service-card::before {
  content: "";
  flex: 0 0 auto;
  width: 100%;
  min-height: 220px;
  pointer-events: none;
}

.section.services .service-card__meta {
  position: absolute;
  inset: 0;
  padding: 18px 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 10px;
  box-sizing: border-box;
  transform: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.section.services .service-card__content {
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.section.services .service-card__hover-image {
  filter: blur(6px) saturate(1.04) contrast(1.03);
  transform: scale(1.07);
}

.section.services .service-card:hover .service-card__hover-image {
  filter: blur(0px) saturate(1.04) contrast(1.03) brightness(0.92);
  transform: scale(1.02);
}

/* Головна: опис прихований до hover; при наведенні — анімація появи, іконка ховається */
@keyframes serviceCardTextIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.section.services .service-card:hover .service-card__text,
.section.services .service-card:focus-within .service-card__text {
  max-height: 10em;
  margin: 10px 0 0;
  opacity: 1;
  pointer-events: auto;
  text-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.2);
  animation: serviceCardTextIn 0.55s cubic-bezier(0.16, 1, 0.32, 1) both;
}

.section.services .service-card:hover .service-card__icon,
.section.services .service-card:focus-within .service-card__icon {
  width: 0;
  min-width: 0;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-6px) scale(0.88);
  filter: blur(4px);
  pointer-events: none;
  border: 0;
  transition:
    opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease,
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    min-width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.section.services .service-card:hover .service-card__content,
.section.services .service-card:focus-within .service-card__content {
  width: 100%;
  max-width: 100%;
}

.section.services .service-card:hover .service-card__meta,
.section.services .service-card:focus-within .service-card__meta {
  transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
  .section.services .service-card:hover .service-card__text,
  .section.services .service-card:focus-within .service-card__text {
    animation: none;
  }

  .section.services .service-card:hover .service-card__icon,
  .section.services .service-card:focus-within .service-card__icon {
    width: 0;
    min-width: 0;
    height: 0;
    min-height: 0;
    opacity: 0;
    transform: none;
    filter: none;
    transition: opacity 0.2s ease;
  }
}

/* Readability on index.html service cards */
.section.services .service-card::after {
  opacity: 0.72;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.22) 0%,
    rgba(15, 23, 42, 0.64) 62%,
    rgba(15, 23, 42, 0.76) 100%
  );
}

.section.services .service-card__title {
  margin: 0;
  max-height: none;
  overflow: visible;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 2px 8px rgba(0, 0, 0, 0.28);
}

/* Опис не бере участі в потоці, поки прихований — інакше «тягне» іконку вниз від заголовка */
.section.services .service-card__text {
  display: block;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none;
  filter: none;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  transition:
    opacity 0.32s ease,
    filter 0.32s ease,
    max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.32s ease;
}

.section.services .service-card__icon {
  margin: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s ease,
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    min-width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.section.services .service-card__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: invert(1) brightness(1.1);
  opacity: 0.92;
}
