:root {
  color-scheme: light;
  --bg-base: #f8f7f7;
  --bg-subtle: #eeeced;
  --bg-card: #ffffff;
  --bg-contrast: #1d1a1c;
  --text-primary: #1d1a1c;
  --text-secondary: #514b4f;
  --text-muted: #777075;
  --text-on-contrast: #f8f7f7;
  --border-subtle: #dedadd;
  --border-strong: #c7c1c5;
  --accent-primary: #1f5a45;
  --accent-secondary: #b56b3c;
  --accent-soft: #e7f0ec;
  --brand-whatsapp: #25d366;
  --brand-telegram: #2aabee;
  --brand-max: #2f5cff;
  --state-warning: #b7791f;
  --gradient-accent: linear-gradient(135deg, #1f5a45 0%, #141312 55%, #2a241f 100%);
  --gradient-warm: radial-gradient(60% 60% at 30% 20%, rgba(211, 202, 207, 0.42) 0%, rgba(248, 247, 247, 0) 60%);
  --font-sans: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Golos Text", "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --font-h1: "Lora", "Georgia", "Times New Roman", serif;
  --radius-sm: 14px;
  --radius-md: 14px;
  --radius-lg: 14px;
  --radius-xl: 14px;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --container-width: 1200px;
  --section-pad: 96px;
  --section-pad-mobile: 64px;
  --transition: 0.25s ease;
  --admin-bar-offset: 0px;
  --lh-title: 1.3;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

noindex {
  display: contents;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--lh-title);
}

h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
}

h1,
h2 {
  font-family: var(--font-h1);
  font-weight: 500;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  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;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
}

a:visited,
a:hover,
a:active,
a:focus {
  -webkit-text-fill-color: currentColor;
}

.page--legal main .legal-list a,
.page--legal main .legal-meta a,
.page--legal main .legal-note a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page--legal main .legal-list a:visited,
.page--legal main .legal-meta a:visited,
.page--legal main .legal-note a:visited {
  color: var(--accent-secondary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.container {
  width: min(100% - 40px, var(--container-width));
  margin: 0 auto;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: var(--admin-bar-offset);
  z-index: 50;
  background: rgba(238, 236, 237, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.is-scrolled {
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.header__mobile-phone {
  display: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  flex-shrink: 0;
  min-width: max-content;
}

.logo__image {
  width: auto;
  height: 35px;
  max-width: none;
  aspect-ratio: 1008 / 150;
  display: block;
}

.logo__image--light {
  aspect-ratio: 590 / 195;
  filter: none;
}

.nav {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.nav__link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav__link.is-active,
.nav__link:hover {
  color: var(--text-primary);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #f2f0f1;
}

.header-phone__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.header-phone__icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.header-phone__toggle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.header-phone__toggle:hover,
.header-phone__toggle:focus-visible {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.header-phone__chevron {
  transition: transform var(--transition);
}

.header-phone__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: max-content;
  min-width: 280px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(55, 46, 51, 0.14);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.header-phone__dropdown::before {
  /* Hover bridge so the dropdown doesn't collapse while moving the mouse down. */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.header-phone:hover .header-phone__dropdown,
.header-phone:focus-within .header-phone__dropdown,
.header-phone.is-open .header-phone__dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-phone:hover .header-phone__chevron,
.header-phone:focus-within .header-phone__chevron,
.header-phone.is-open .header-phone__chevron {
  transform: rotate(180deg);
}

.header-phone__hours {
  display: grid;
  gap: 8px;
}

.header-phone__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.header-phone__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.header-phone__social {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.messenger-dot--sm {
  width: 38px;
  height: 38px;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.messenger-dot--sm img {
  width: 18px;
  height: 18px;
}

.messenger-switch {
  display: inline-flex;
  position: relative;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.messenger-switch__pill {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transform: translateX(0);
  transition: transform var(--transition), width var(--transition);
  pointer-events: none;
}

.messenger-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.messenger-switch__btn.is-active {
  color: var(--text-primary);
}

.messenger-switch__btn:hover,
.messenger-switch__btn:focus-visible {
  color: var(--text-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.btn--primary {
  background: var(--accent-primary);
  color: #fff;
}

.btn--primary:visited,
.btn--primary:hover,
.btn--primary:active,
.btn--primary:focus {
  color: #fff;
}

.btn--primary * {
  color: inherit;
}
.btn--primary:hover {
  background: #194b39;
}

.btn--outline {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn--ghost {
  border-color: transparent;
  color: var(--text-secondary);
}

.btn--ghost:hover {
  color: var(--text-primary);
}

.btn--light {
  background: var(--bg-card);
  color: var(--accent-primary);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn--lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 13px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  /* Match mobile container padding from UI direction (20px). */
  padding: 20px 0 32px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-menu__nav {
  display: grid;
  gap: 6px;
  padding: 0 20px 16px;
}

.mobile-menu__link {
  display: block;
  color: var(--text-secondary);
  font-size: 16px;
  padding: 6px 0;
}

.mobile-menu__cta {
  display: grid;
  gap: 12px;
  padding: 0 20px;
}

.mobile-menu__contacts {
  display: grid;
  gap: 14px;
  padding: 8px 20px 0;
}

.mobile-menu__phones {
  display: grid;
  gap: 8px;
}

.mobile-menu__phone {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu__messengers {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero {
  padding: 80px 0 40px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero__desktop-bg {
  display: none;
}

.hero__photo-background {
  display: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 32px;
  row-gap: 20px;
  align-items: center;
}

.hero__intro,
.hero__details {
  grid-column: 1 / span 6;
  display: grid;
  gap: 20px;
}

.hero__eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-muted);
}

.hero__title {
  font-family: var(--font-h1);
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: var(--lh-title);
  margin: 0;
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
  }
}

.hero__lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

.hero__lead:empty {
  display: none;
}

.hero__lead--promo {
  color: var(--text-primary);
}

.hero__lead--promo .promo-discount {
  color: var(--accent-primary);
  font-weight: 750;
  text-decoration: none;
}

.quiz-promo__title .promo-discount {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__badges .chip {
  font-size: 14px;
  border-radius: var(--radius-md);
  background: #f2f0f1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 500;
  /* iOS Safari can render button text in system blue unless both color and text-fill-color are forced. */
  -webkit-appearance: none;
  appearance: none;
  color: var(--text-primary, #1d1a1c) !important;
  -webkit-text-fill-color: var(--text-primary, #1d1a1c) !important;
}

.chip--filter {
  cursor: pointer;
  transition: var(--transition);
}

.chip--filter.is-active {
  border-color: var(--accent-primary);
  color: var(--accent-primary) !important;
  -webkit-text-fill-color: var(--accent-primary) !important;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__mobile-actions {
  display: none;
}

.hero__mini-quiz {
  display: none;
}

.hero__badge-icon {
  display: none;
}

.hero__badge-line-break::before {
  content: " ";
}

.hero__messenger-actions {
  display: none;
  width: 100%;
  gap: 12px;
}

.hero-contact-inline {
  display: none;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.hero-contact-inline__intro {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-contact-inline__intro h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

.hero-contact-inline--modal {
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.hero__messenger-actions .qr-link {
  min-width: 0;
}

.hero__messenger-actions .qr-link__body {
  gap: 0;
}

.hero__messenger-actions .qr-link__body strong {
  font-size: 16px;
}

.hero-contact-desktop {
  display: inline-flex;
  gap: 14px;
  padding-right: 14px;
}

.hero__action-arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.14);
}

.hero__action-arrow svg {
  width: 18px;
  height: 18px;
}

.hero__cta > .btn--primary {
  position: relative;
  overflow: hidden;
  animation: hero-cta-breathe 3.8s ease-in-out infinite;
}

.hero__cta > .btn--primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  animation: hero-cta-glow 3.8s ease-in-out infinite;
  pointer-events: none;
}

.hero__cta > .hero-contact-desktop {
  animation: none;
  box-shadow: none;
}

.hero__cta > .hero-contact-desktop::after {
  content: none;
  animation: none;
}

@keyframes hero-cta-breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow-sm);
  }
  50% {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 14px 28px rgba(31, 90, 69, 0.22);
  }
}

@keyframes hero-cta-glow {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta > .btn--primary,
  .hero__cta > .btn--primary::after {
    animation: none;
  }
}

.hero__messengers {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.contacts__messengers {
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.messenger-dot {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.messenger-dot img {
  width: 20px;
  height: 20px;
  display: block;
}

.messenger-dot:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.messenger-dot:focus-visible {
  outline: 2px solid rgba(31, 90, 69, 0.5);
  outline-offset: 3px;
}

.messenger-dot--wa {
  background: var(--brand-whatsapp);
}

.messenger-dot--tg {
  background: var(--brand-telegram);
}

.messenger-dot--max {
  background: var(--brand-max);
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.hero__meta-tooltips {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}

.hero__offer {
  display: contents;
}

.hero__promo {
  display: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(31, 90, 69, 0.18);
  border-radius: 14px;
  background: rgba(31, 90, 69, 0.06);
}

.hero__promo-label {
  color: var(--accent-primary);
  white-space: nowrap;
}

.hero__promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(31, 90, 69, 0.18);
  border-radius: 50%;
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 20px rgba(31, 90, 69, 0.13);
}

.hero__promo-icon svg {
  width: 19px;
  height: 19px;
}

.hero__promo-text {
  min-width: 0;
  color: var(--text-secondary);
}

@media (min-width: 1025px) {
  .hero {
    min-height: min(850px, calc(100vh - 77px - var(--admin-bar-offset)));
    min-height: min(850px, calc(100svh - 77px - var(--admin-bar-offset)));
    padding: 64px 0 42px;
  }

  .hero--background::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -180px;
    left: -320px;
    width: 1250px;
    height: 1250px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
  }

  .hero__bg {
    display: none;
  }

  .hero__desktop-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .hero__grid {
    z-index: 2;
    min-height: min(654px, calc(100vh - 183px - var(--admin-bar-offset)));
    min-height: min(654px, calc(100svh - 183px - var(--admin-bar-offset)));
    align-content: center;
    align-items: start;
    grid-template-rows: auto auto;
    row-gap: 28px;
  }

  .hero__intro,
  .hero__details {
    grid-column: 1 / span 7;
    gap: 22px;
    align-content: start;
  }

  .hero__intro {
    gap: 24px;
    max-width: 680px;
  }

  .hero__title {
    max-width: 680px;
    font-size: clamp(48px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .hero__lead {
    max-width: 530px;
    font-size: 17px;
    line-height: 1.55;
  }

  .hero__lead--promo .promo-discount {
    color: var(--accent-primary);
    font-weight: 750;
    text-decoration: none;
  }

  .hero__media {
    position: static;
  }

  .hero__media .media-card,
  .hero__media .media-card__visual {
    display: contents;
  }

  .hero__media .media-card__image,
  .hero__media .media-card__overlay {
    display: none;
  }

  .hero__badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 22px;
    max-width: 650px;
  }

  .hero__badges .chip {
    min-width: 0;
    gap: 11px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
  }

  .hero__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(31, 90, 69, 0.12);
    border-radius: 50%;
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.72);
  }

  .hero__badge-icon svg {
    width: 20px;
    height: 20px;
  }

  .hero__badge-text {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hero__badge-text strong {
    font-weight: 650;
  }

  .hero__cta {
    width: auto;
    max-width: 100%;
  }

  .hero__cta > .hero-contact-desktop {
    width: auto;
    min-height: 62px;
    justify-content: flex-start;
    gap: 22px;
    padding: 15px 14px 15px 22px;
    border-radius: 14px;
    font-size: 16px;
  }

  .hero__action-arrow {
    width: 34px;
    height: 34px;
  }

  .hero__meta {
    gap: 0;
  }

  .hero__meta-tooltips {
    gap: 10px;
  }

  .hero__meta-tooltips .tooltip__button {
    min-height: 38px;
    padding: 8px 13px;
    border-color: rgba(199, 193, 197, 0.82);
    border-radius: 999px;
    background: rgba(238, 236, 237, 0.9);
    backdrop-filter: blur(8px);
  }

  #cases.section--contrast {
    position: relative;
    z-index: 3;
    margin-top: -72px;
    padding-top: calc(var(--section-pad) + 72px);
    clip-path: polygon(0 72px, 100% 0, 100% 100%, 0 100%);
  }
}

.text-link {
  color: var(--accent-primary);
  text-decoration: underline;
}

button.text-link {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.fit-card__link {
  display: inline-flex;
  margin-top: 8px;
}

.contraindications__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-top: 14px;
}

.license-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.license-modal__card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
}

.license-modal__card h4 {
  margin: 0 0 8px;
}

.license-modal__card p {
  margin: 0;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .license-modal__grid {
    grid-template-columns: 1fr;
  }
}

.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  /* In flex columns, flex items are blockified and can stretch; keep tooltip size to content. */
  width: fit-content;
  align-self: flex-start;
}

.tooltip__button {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: none;
  background: var(--bg-subtle);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  font: inherit;
  color: var(--text-primary, #1d1a1c) !important;
  -webkit-text-fill-color: var(--text-primary, #1d1a1c) !important;
}

.tooltip__content {
  position: absolute;
  bottom: 120%;
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: var(--transition);
}

.tooltip__button:hover + .tooltip__content,
.tooltip__button:focus-visible + .tooltip__content,
.tooltip__content:hover,
.tooltip:focus-within .tooltip__content,
.tooltip.is-active .tooltip__content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero__media {
  grid-column: 7 / span 6;
  /* Keep the media visually centered next to the combined (intro + details) column. */
  grid-row: 1 / span 2;
  align-self: center;
}

.media-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.media-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.media-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-card__overlay {
  position: static;
  padding: 0;
  display: grid;
  gap: 8px;
  background: transparent;
}

.media-card__badge {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 0 0 14px 14px;
  background: rgba(29, 26, 28, 0.75);
  border: none;
  backdrop-filter: blur(6px);
}

.media-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.media-card__name {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 13px;
}

.media-card__role {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  margin-top: 4px;
}

.media-card__doctor {
  display: none;
}

.section {
  padding: var(--section-pad) 0;
  scroll-margin-top: calc(90px + var(--admin-bar-offset));
}

.admin-bar {
  --admin-bar-offset: 32px;
}

@media (max-width: 782px) {
  .admin-bar {
    --admin-bar-offset: 46px;
  }
}

.section--tint {
  background: var(--bg-subtle);
}

.section--contrast {
  background: var(--gradient-accent);
  color: var(--text-on-contrast);
}

.section--contrast .lead {
  color: rgba(255, 255, 255, 0.7);
}

.section--macro {
  background: linear-gradient(120deg, rgba(31, 90, 69, 0.08), rgba(248, 247, 247, 0.62));
}

.section__head {
  max-width: 680px;
  margin-bottom: 32px;
}

.section__head h2 {
  font-family: var(--font-h1);
  font-size: clamp(28px, 3vw, 36px);
  margin: 0 0 12px;
}

.section__head--light h2,
.section__head--light .lead {
  color: var(--text-on-contrast);
}

.lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

.section__cta {
  margin-top: 32px;
  text-align: center;
}

.section__cta--left {
  text-align: left;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.fit-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.fit-card__icon {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(31, 90, 69, 0.2);
  box-shadow: var(--shadow-sm);
}

.fit-card__media {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fit-card__media--cycle {
  position: relative;
  width: 110px;
  height: 110px;
  display: block;
}

.fit-card__media--cycle .fit-card__icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fit-card-cycle 8s ease-in-out infinite;
}

.fit-card__media--cycle .fit-card__icon:nth-child(1) {
  animation-delay: 0s;
}

.fit-card__media--cycle .fit-card__icon:nth-child(2) {
  animation-delay: 4s;
}

.fit-card--warn {
  background: #f2eff1;
  border-color: #d9cfd4;
}

.fit-card ul {
  margin: 16px 0 0;
  padding-left: 0;
}

.fit-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.fit-list li {
  position: relative;
  padding-left: 30px;
  margin: 0;
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

.fit-list--ok li::before {
  background-image: url("https://hairzona.ru/wp-content/themes/hairzona/assets/img/icons/fit-ok.svg");
}

.fit-list--no li::before {
  background-image: url("https://hairzona.ru/wp-content/themes/hairzona/assets/img/icons/fit-no.svg");
}

.fit-card h3 {
  margin: 12px 0 8px;
}

.muted {
  color: var(--text-muted);
}

@keyframes fit-card-cycle {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  47% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fit-card__media--cycle .fit-card__icon {
    animation: none;
    opacity: 0;
  }

  .fit-card__media--cycle .fit-card__icon:first-child {
    opacity: 1;
  }
}

.process {
  display: grid;
  gap: 20px;
  counter-reset: process-step;
}

.process__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: stretch;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  counter-increment: process-step;
}

.process__item > div {
  display: grid;
  gap: 14px;
}

.process__item > div > h3,
.process__item > div > p {
  margin: 0;
}

.process__item > div > h3::before {
  content: counter(process-step) ". ";
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

.process__note {
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.process__note strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.process__media-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(31, 90, 69, 0.25), rgba(248, 247, 247, 0));
  align-self: start;
}

.process__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 1025px) {
  .process__item {
    width: 100%;
    /* On desktop, media size follows the content height (set via JS on --process-media-size). */
    grid-template-columns: var(--process-media-size, 220px) 1fr;
  }

  .process__item:nth-child(odd) {
    margin-right: auto;
  }

  .process__item:nth-child(even) {
    margin-left: auto;
  }

  .process__media {
    border-radius: 0;
  }

  .process__media-wrap {
    aspect-ratio: 1 / 1;
    width: var(--process-media-size, 220px);
    height: var(--process-media-size, 220px);
    max-width: 220px;
    max-height: 220px;
    min-height: 0;
    align-self: center;
  }
}

.timeline {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

.timeline::-webkit-scrollbar {
  height: 10px;
}

.timeline::-webkit-scrollbar-track {
  background: rgba(29, 26, 28, 0.08);
  border-radius: 999px;
}

.timeline::-webkit-scrollbar-thumb {
  background: rgba(29, 26, 28, 0.25);
  border-radius: 999px;
}

.timeline__scroller {
  position: relative;
}

.scroller-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 124px;
  pointer-events: none;
  z-index: 1;
  display: none;
}

.scroller-fade--left {
  left: -12px;
}

.scroller-fade--right {
  right: -12px;
}

.timeline__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(238, 236, 237, 0.94);
  color: var(--text-primary);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.timeline__nav svg {
  width: 20px;
  height: 20px;
}

.timeline__nav--prev {
  left: -12px;
}

.timeline__nav--prev svg {
  transform: rotate(180deg);
}

.timeline__nav--next {
  right: -12px;
}

.timeline__nav:hover {
  background: rgba(229, 225, 227, 0.96);
  transform: translateY(-50%) scale(1.02);
}

.timeline__item {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: grid;
  gap: 12px;
  flex: 0 0 320px;
  scroll-snap-align: start;
  align-content: start;
}

.timeline__media-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
}

.timeline__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline__item h3 {
  margin: 12px 0 6px;
}

.timeline__item p {
  margin: 0;
}
.timeline__badge {
  display: inline-flex;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.timeline__callout {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.timeline__callout ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.cases {
  margin-top: 24px;
}

.cases__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.cases-page__filters {
  margin-bottom: 28px;
}

.cases__scroller {
  position: relative;
}

.cases__grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 8px;
  scroll-behavior: smooth;
}

.cases-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.case-card {
  flex: 0 0 320px;
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: var(--transition);
  scroll-snap-align: start;
}

.cases-page__card {
  flex: initial;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-card__media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.case-card__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.case-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-card__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: rgba(29, 26, 28, 0.6);
  color: var(--text-on-contrast);
  border-radius: 999px;
  font-size: 12px;
  position: absolute;
  top: 8px;
  left: 8px;
}

.case-card__label--after {
  background: rgba(31, 90, 69, 0.8);
  left: auto;
  right: 8px;
}

.case-card__body {
  padding: 16px;
  color: var(--text-on-contrast);
}

.case-card__tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.case-card--cta {
  text-decoration: none;
  color: inherit;
  padding: 0;
  color: var(--text-on-contrast);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  background: radial-gradient(circle at 30% 20%, rgba(31, 90, 69, 0.45) 0%, rgba(255, 255, 255, 0.08) 58%, rgba(255, 255, 255, 0.06) 100%);
}

.case-card--cta:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.case-card__cta {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  justify-content: center;
}

.case-card__cta-main h3 {
  margin: 10px 0 6px;
}

.case-card__cta-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.case-card__cta-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.case-card__topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(29, 26, 28, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.case-card__cta-bottom {
  display: grid;
  gap: 12px;
}

.case-card__cta-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-card__cta-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(29, 26, 28, 0.35);
  color: var(--text-on-contrast);
  flex: 0 0 auto;
}

.case-card__cta-arrow svg {
  width: 18px;
  height: 18px;
}

.case-card__cta-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.case-card__cta-preview img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}

.case-card__cta-preview img:nth-child(n + 5) {
  display: none;
}

#cases .case-card {
  background: #f8f7f7;
  border-color: rgba(29, 26, 28, 0.12);
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(55, 46, 51, 0.11);
  backdrop-filter: none;
}

#cases .case-card__media {
  background: #e7e3e5;
  padding: 0;
}

#cases .case-card__photo {
  border-radius: 0;
}

#cases .case-card__body {
  color: var(--text-primary);
}

#cases .case-card__body--before-media {
  border-bottom: 1px solid rgba(29, 26, 28, 0.08);
}

#cases .case-card__body--before-media p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

#cases .case-card__body p {
  color: var(--text-secondary);
}

#cases .case-card__tag {
  color: var(--accent-primary);
}

#cases .case-card--cta {
  background: #f8f7f7;
  border-color: rgba(31, 90, 69, 0.32);
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(55, 46, 51, 0.11);
}

#cases .case-card--cta:hover {
  border-color: rgba(31, 90, 69, 0.48);
  box-shadow: 0 14px 34px rgba(55, 46, 51, 0.17);
}

#cases .case-card__cta-main p {
  color: var(--text-secondary);
}

#cases .case-card__topic {
  border-color: rgba(31, 90, 69, 0.16);
  background: var(--accent-soft);
  color: var(--accent-primary);
}

#cases .case-card__cta-arrow {
  border-color: rgba(31, 90, 69, 0.2);
  background: var(--accent-soft);
  color: var(--accent-primary);
}

#cases .case-card__cta-preview {
  background: #e7e3e5;
  border-color: rgba(29, 26, 28, 0.08);
}

.cases__note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.cases-page .cases__note {
  margin-top: 20px;
}

.cases__empty {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
}

.cases__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(29, 26, 28, 0.8);
  color: var(--text-on-contrast);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.cases__nav svg {
  width: 20px;
  height: 20px;
}

.cases__nav--prev {
  left: -12px;
}

.cases__nav--prev svg {
  transform: rotate(180deg);
}

.cases__nav--next {
  right: -12px;
}

.cases__nav:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) scale(1.02);
}

.cases__grid::-webkit-scrollbar {
  height: 6px;
}

.cases__grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.cases__grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.cases__title {
  white-space: nowrap;
}

.macro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.macro__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: var(--radius-xl);
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(31, 90, 69, 0.2);
}

.macro__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--text-muted);
}

.team {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.team::-webkit-scrollbar {
  height: 10px;
}

.team::-webkit-scrollbar-track {
  background: rgba(29, 26, 28, 0.08);
  border-radius: 999px;
}

.team::-webkit-scrollbar-thumb {
  background: rgba(29, 26, 28, 0.25);
  border-radius: 999px;
}

.process::-webkit-scrollbar,
.video-grid::-webkit-scrollbar {
  height: 10px;
}

.process::-webkit-scrollbar-track,
.video-grid::-webkit-scrollbar-track {
  background: rgba(29, 26, 28, 0.08);
  border-radius: 999px;
}

.process::-webkit-scrollbar-thumb,
.video-grid::-webkit-scrollbar-thumb {
  background: rgba(29, 26, 28, 0.25);
  border-radius: 999px;
}

.pricing::-webkit-scrollbar {
  height: 10px;
}

.pricing::-webkit-scrollbar-track {
  background: rgba(29, 26, 28, 0.08);
  border-radius: 999px;
}

.pricing::-webkit-scrollbar-thumb {
  background: rgba(29, 26, 28, 0.25);
  border-radius: 999px;
}

.team__scroller {
  position: relative;
}

.team__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(238, 236, 237, 0.94);
  color: var(--text-primary);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.team__nav svg {
  width: 20px;
  height: 20px;
}

.team__nav--prev {
  left: -12px;
}

.team__nav--prev svg {
  transform: rotate(180deg);
}

.team__nav--next {
  right: -12px;
}

.team__nav:hover {
  background: rgba(229, 225, 227, 0.96);
  transform: translateY(-50%) scale(1.02);
}

.team-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.team-card p {
  margin: 4px 0;
}

.team-card--cta {
  border: 1px dashed rgba(31, 90, 69, 0.25);
  background: radial-gradient(circle at 25% 18%, rgba(31, 90, 69, 0.18) 0%, rgba(248, 247, 247, 0.92) 50%, rgba(238, 236, 237, 0.96) 100%);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  justify-content: center;
}

.team-card--cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 90, 69, 0.38);
}

.team-card__cta-media {
  display: flex;
  align-items: center;
  height: 104px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(31, 90, 69, 0.12) 0%, rgba(248, 247, 247, 0.88) 60%, rgba(238, 236, 237, 0.96) 100%);
  border: 1px solid rgba(31, 90, 69, 0.14);
  overflow: hidden;
  margin-top: 14px;
  padding: 14px 16px;
}

.team-card__cta-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(248, 247, 247, 0.96);
  box-shadow: var(--shadow-sm);
  margin-left: -14px;
}

.team-card__cta-avatar:first-child {
  margin-left: 0;
}

.team-card__cta-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 90, 69, 0.18);
  background: rgba(238, 236, 237, 0.94);
  color: var(--text-primary);
  flex: 0 0 auto;
}

.team-card__cta-arrow svg {
  width: 18px;
  height: 18px;
}

.team-card__cta-body h3 {
  margin: 0 0 6px;
}

.team-card__cta-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.team-card__topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 90, 69, 0.14);
  background: rgba(31, 90, 69, 0.08);
  color: var(--text-primary);
  font-size: 12px;
}

.team-card__cta-action {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-card--featured {
  border: 1px solid rgba(31, 90, 69, 0.35);
}

.team-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

.team-card__info {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(31, 90, 69, 0.3);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 700;
}

.team-card--interactive {
  cursor: pointer;
}

.team-card--interactive:focus-visible {
  outline: 3px solid rgba(31, 90, 69, 0.35);
  outline-offset: 3px;
}

.team-card__meta {
  color: var(--text-muted);
  margin-top: 2px;
}

.team-card__specialties {
  color: var(--text-muted);
}

.team-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.team-card__facts li {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 9px 8px;
  border: 1px solid rgba(31, 90, 69, 0.14);
  border-radius: 12px;
  background: rgba(31, 90, 69, 0.06);
}

.team-card__facts strong {
  color: var(--accent-primary);
  font-size: 14px;
  line-height: 1.2;
}

.team-card__facts span {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.3;
}

.doctor-modal__header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.doctor-modal__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
}

.doctor-modal__meta {
  color: var(--text-secondary);
  margin-top: 8px;
}

.doctor-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.doctor-modal__card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
}

.doctor-modal__card h4 {
  margin-top: 0;
}

.doctor-modal__card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.doctor-bio__body p {
  margin: 10px 0 0;
}

.doctor-bio__body p:first-child {
  margin-top: 0;
}

.doctor-modal__accordion {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 12px;
  background: var(--bg-card);
}

.doctor-modal__accordion summary {
  cursor: pointer;
  font-weight: 600;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-subtle);
}

.team-card__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center top;
  margin-bottom: 12px;
  background: var(--bg-subtle);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.team-grid__featured {
  grid-column: span 1;
  box-shadow: none;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.safety__clinic-copy {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.safety__clinic-copy p {
  margin: 0;
}

@media (max-width: 768px) {
  .safety--landing .split__media {
    order: -1;
  }

  .safety__clinic-name {
    display: block;
  }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: start;
}

.checklist li::before {
  content: "✓";
  color: var(--accent-primary);
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery__item {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(31, 90, 69, 0.2);
}

.pricing-section {
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-section .section__head {
  max-width: 960px;
}

.pricing-heading__desktop-break {
  display: none;
}

@media (min-width: 769px) {
  .pricing-heading__desktop-break {
    display: initial;
  }
}

.pricing-alt {
  display: grid;
  gap: 22px;
}

.pricing-alt__included h3,
.pricing-alt__plan h3 {
  margin: 0;
}

.pricing-alt__city-note {
  width: fit-content;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.pricing-alt__eyebrow {
  margin: 0 0 8px;
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-alt__included {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.6fr);
  gap: 28px;
  align-items: start;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid rgba(31, 90, 69, 0.16);
}

.pricing-alt__included-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-alt__included-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text-primary);
  line-height: 1.45;
}

.pricing-alt__included-list .icon-check {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: var(--bg-card);
}

.pricing-alt__plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pricing-alt__plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.pricing-alt__currency,
.pricing-alt__technology-mobile,
.pricing-alt__mobile-details,
.pricing-alt__mobile-summary {
  display: none;
}

.pricing-alt__plan-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.pricing-alt__plan-head {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(31, 90, 69, 0.1), rgba(255, 255, 255, 0.9));
}

.pricing-alt__city-badge {
  width: fit-content;
  margin: 0 0 2px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.pricing-alt__plan h3 {
  font-size: 22px;
}

.pricing-alt__price {
  margin: 0;
  color: var(--accent-primary);
  font-size: 24px;
  font-weight: 700;
}

.pricing-alt__price-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.pricing-alt__price-note span {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.pricing-alt__price-note strong {
  color: var(--accent-primary);
}

.pricing-alt__details {
  margin: 0;
  padding: 0 22px;
}

.pricing-alt__details > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--border-subtle);
}

.pricing-alt__details dt {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.pricing-alt__details dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.pricing-alt__plan-action {
  margin-top: auto;
  padding: 6px 22px 22px;
}

.pricing-alt__plan-action .btn {
  width: 100%;
}

.pricing-alt__conditions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pricing-alt__conditions > div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.pricing-alt__conditions strong {
  color: var(--text-primary);
}

.pricing-alt__conditions span {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.pricing-alt__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 2px;
}

.pricing-alt__cta p {
  max-width: 440px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.pricing-task-picker {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.68fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 16px 44px rgba(55, 46, 51, 0.07);
}

.pricing-task-picker__choices {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pricing-task-picker__choices legend {
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.pricing-task-picker__hint {
  margin: 6px 0 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.pricing-task-picker__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pricing-task-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.pricing-task-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.pricing-task-option__card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.pricing-task-option:hover .pricing-task-option__card {
  border-color: rgba(31, 90, 69, 0.38);
  transform: translateY(-1px);
}

.pricing-task-option input:focus-visible + .pricing-task-option__card {
  outline: 3px solid rgba(31, 90, 69, 0.18);
  outline-offset: 2px;
}

.pricing-task-option input:checked + .pricing-task-option__card {
  border-color: var(--accent-primary);
  background: #f1f6f3;
  box-shadow: inset 0 0 0 1px var(--accent-primary);
}

.pricing-task-option__indicator {
  display: grid;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-card);
  place-items: center;
  transition: border-color var(--transition), background-color var(--transition);
}

.pricing-task-option__indicator::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-card);
  content: "";
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--transition), transform var(--transition);
}

.pricing-task-option input:checked + .pricing-task-option__card .pricing-task-option__indicator {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
}

.pricing-task-option input:checked + .pricing-task-option__card .pricing-task-option__indicator::after {
  opacity: 1;
  transform: scale(1);
}

.pricing-task-option__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pricing-task-option__body strong {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.3;
}

.pricing-task-option__body small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.pricing-task-option__price {
  display: grid;
  gap: 2px;
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.pricing-task-option__price s {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  text-decoration-thickness: 1px;
}

.pricing-task-picker__result {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(31, 90, 69, 0.18);
  border-radius: 18px;
  background: #f1f6f3;
}

.pricing-task-picker__result-label {
  margin: 0 0 9px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.pricing-task-picker__price {
  display: block;
  min-height: 1.12em;
  color: var(--accent-primary);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.pricing-task-picker__selected {
  margin: 11px 0 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.pricing-task-picker__city-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 13px;
  font-size: 12px;
  line-height: 1.4;
}

.pricing-task-picker__city-breakdown[hidden] {
  display: none;
}

.pricing-task-picker__city-breakdown span {
  color: var(--text-muted);
}

.pricing-task-picker__city-breakdown s {
  text-decoration-thickness: 1px;
}

.pricing-task-picker__city-breakdown strong {
  color: var(--accent-primary);
}

.pricing-task-picker__explanation {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  margin: 26px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(31, 90, 69, 0.16);
  border-bottom: 1px solid rgba(31, 90, 69, 0.16);
  color: var(--text-secondary);
}

.pricing-task-picker__explanation > span {
  display: grid;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--accent-primary);
  border-radius: 50%;
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  place-items: center;
}

.pricing-task-picker__explanation p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.pricing-task-picker__action {
  margin-top: auto;
}

.pricing-task-picker__action > p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.pricing-task-picker__action .btn {
  width: 100%;
  min-height: 54px;
}

.pricing-task-picker__action > span {
  display: block;
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pricing-table__wrap {
  margin-top: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: middle;
}

.pricing-table thead th {
  border-top: none;
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
}

.pricing-table tbody td:not(:first-child) {
  text-align: left;
}

.pricing-table tbody th {
  font-weight: 600;
  color: var(--text-primary);
  width: 30%;
}

.pricing-table tbody tr:nth-child(even) {
  background: rgba(31, 90, 69, 0.03);
}

.icon-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-weight: 700;
  line-height: 1;
}

.pricing-table__divider th,
.pricing-table__divider td {
  border-top: 2px solid var(--border-subtle);
  padding-top: 18px;
}

.pricing-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg-card);
  display: grid;
  gap: 12px;
}

.pricing-card ul {
  margin: 0;
  padding-left: 18px;
}

.pricing-card--accent {
  border-color: rgba(31, 90, 69, 0.4);
  box-shadow: var(--shadow-md);
}

.pricing-card__note {
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-card__price {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pricing__footnote {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.pricing__footnote ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.pricing-page {
  display: grid;
  gap: 24px;
}

.pricing-page__plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-page__plans--summary {
  margin-top: 4px;
}

.pricing-page__plans--summary .pricing-page__plan {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
}

.pricing-page__plans--summary .pricing-page__price {
  color: var(--accent-primary);
}

.pricing-page__plans--summary .btn {
  justify-self: start;
}

.pricing-page__plan {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: grid;
  gap: 12px;
}

.pricing-page__plan h3 {
  margin: 0;
  font-size: 24px;
}

.pricing-page__price {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-primary);
}

.pricing-page__limit {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.pricing-page__matrix {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing-page__head,
.pricing-page__row {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(0, 1fr));
}

.pricing-page__cell {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.pricing-page__row:last-child .pricing-page__cell {
  border-bottom: 0;
}

.pricing-page__cell:last-child {
  border-right: 0;
}

.pricing-page__cell--head {
  font-weight: 700;
  background: var(--bg-subtle);
}

.pricing-page__cell--label {
  font-weight: 600;
}

.pricing-page__footnote ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  display: grid;
  gap: 8px;
}

@media (max-width: 768px) {
  .pricing-alt {
    gap: 16px;
  }

  .pricing-alt__included {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .pricing-alt__included-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pricing-alt__plans,
  .pricing-alt__conditions {
    grid-template-columns: 1fr;
  }

  .pricing-alt__plans {
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: var(--bg-card);
  }

  .pricing-alt__plan {
    position: relative;
    display: block;
    overflow: visible;
    border-radius: 18px;
  }

  .pricing-alt__plan-content {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 3px 12px;
    min-height: 132px;
    padding: 15px 14px;
    border-radius: inherit;
  }

  .pricing-alt__currency {
    display: inline-grid;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    background: var(--bg-subtle);
    color: var(--accent-primary);
    font-size: 27px;
    font-weight: 600;
    line-height: 1;
    place-items: center;
  }

  .pricing-alt__plan-head {
    grid-column: 2;
    gap: 2px;
    padding: 0;
    background: transparent;
  }

  .pricing-alt__plan h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .pricing-alt__price {
    font-size: 22px;
    line-height: 1.25;
  }

  .pricing-alt__city-badge {
    margin-bottom: 4px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .pricing-alt__price-note {
    gap: 2px 8px;
    font-size: 10px;
  }

  .pricing-alt__details {
    display: none;
  }

  .pricing-alt__technology-full {
    display: none;
  }

  .pricing-alt__technology-mobile {
    display: inline;
  }

  .pricing-alt__mobile-details {
    display: block;
    grid-column: 2;
    align-self: start;
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
  }

  .pricing-alt__plan-action {
    display: none;
  }

  .pricing-alt__mobile-summary {
    display: grid;
    gap: 14px;
    padding-top: 4px;
  }

  .pricing-alt__mobile-summary::before {
    display: block;
    height: 1px;
    margin-bottom: 2px;
    background: var(--border-subtle);
    content: "";
  }

  .pricing-alt__mobile-summary p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
  }

  .pricing-alt__mobile-summary .btn {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
  }

  .pricing-alt__cta {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-alt__cta .btn {
    width: 100%;
  }

  .pricing-alt__cta {
    display: none;
  }

  .pricing-task-picker {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(55, 46, 51, 0.06);
  }

  .pricing-task-picker__choices legend {
    font-size: 17px;
  }

  .pricing-task-picker__hint {
    margin-bottom: 14px;
  }

  .pricing-task-picker__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .pricing-task-option__card {
    min-height: 74px;
    padding: 12px;
  }

  .pricing-task-option__body strong {
    font-size: 14px;
  }

  .pricing-task-option__price {
    font-size: 12px;
  }

  .pricing-task-picker__result {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .pricing-task-picker__price {
    font-size: clamp(32px, 10vw, 40px);
  }

  .pricing-task-picker__explanation {
    margin: 22px 0;
  }

  .pricing-task-picker__action .btn {
    min-height: 52px;
    font-size: 15px;
  }

  .pricing-task-picker__action > p {
    font-size: 12px;
  }

  .quiz fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
  }

  .quiz legend {
    padding: 0;
    margin: 0 0 10px;
  }

  .quiz__zone-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quiz__zone-grid .option--zone {
    margin-bottom: 0;
    padding: 12px;
  }

  .quiz__zone-grid .option--zone input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
  }

  .pricing-table__wrap {
    margin-top: 16px;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .pricing-table {
    width: 100%;
    min-width: 0;
    display: block;
    border-collapse: separate;
    border-spacing: 0;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table tbody {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .pricing-table tbody tr {
    flex: 0 0 calc(50% - 5px);
    width: calc(50% - 5px);
    display: grid;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px;
  }

  .pricing-table th,
  .pricing-table td {
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .pricing-table tbody th {
    width: auto;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 2px;
  }

  .pricing-table tbody td {
    display: grid;
    grid-template-columns: minmax(90px, 38%) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    min-width: 0;
  }

  .pricing-table tbody td.pricing-table__cell--text {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pricing-table tbody td::before {
    content: attr(data-plan-label-short);
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 0;
    white-space: nowrap;
  }

  .pricing-table tbody td .icon-check {
    justify-self: start;
  }

  .pricing-table tbody td > * {
    min-width: 0;
  }

  .pricing-table__value {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .pricing-table tbody tr:nth-child(even) {
    background: var(--bg-card);
  }

  .pricing-table__divider th,
  .pricing-table__divider td {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 1024px) {
  .pricing-page__plans {
    grid-template-columns: 1fr;
  }

  .pricing-page__head {
    display: none;
  }

  .pricing-page__matrix {
    border: 0;
    display: grid;
    gap: 12px;
  }

  .pricing-page__row {
    grid-template-columns: 1fr;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .pricing-page__cell {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .pricing-page__row .pricing-page__cell:last-child {
    border-bottom: 0;
  }

  .pricing-page__cell:not(.pricing-page__cell--label)::before {
    content: attr(data-plan-label);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

.quiz {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.quiz-promo {
  position: relative;
  display: grid;
  gap: 6px;
  max-width: 680px;
  margin: -12px 0 6px;
  padding: 16px 64px 16px 18px;
  border: 1px solid rgba(31, 90, 69, 0.24);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}

.quiz-promo__title {
  margin: 0;
}

.quiz-promo__title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.quiz-promo__icon {
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(139, 33, 28, 0.28);
  border-radius: 50%;
  color: #fff;
  background: #c53d36;
  box-shadow: 0 8px 20px rgba(197, 61, 54, 0.28);
}

.quiz-promo__icon svg {
  width: 19px;
  height: 19px;
}

.quiz-promo__note {
  max-width: 680px;
  margin: 0 0 20px;
  padding: 0 4px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

#quiz .quiz--pricing {
  box-shadow: none;
}

#quiz .quiz-promo,
#quiz .quiz-promo__note {
  max-width: none;
}

.pricing-quiz-support {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.quiz__progress {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--text-primary);
  font-size: 15px;
}

.quiz__progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quiz__progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border-subtle);
}

.quiz__progress-track > span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-primary);
  transition: width 220ms ease;
}

.quiz__progress-note {
  color: var(--text-muted);
  font-size: 14px;
}

.quiz__error {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(180, 68, 60, 0.1);
}

.quiz__step {
  display: none;
}

.quiz__step.is-active {
  display: block;
  animation: quiz-step-in 220ms ease both;
}

.quiz__step.is-active.is-leaving {
  animation: quiz-step-out 180ms ease both;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.lead-smart-captcha {
  min-width: 0;
  margin: 12px 0;
}

.lead-smart-captcha[hidden],
.lead-smart-captcha__retry[hidden] {
  display: none !important;
}

.lead-smart-captcha__widget {
  min-height: 100px;
  max-width: 100%;
  overflow-x: auto;
}

.lead-smart-captcha__error {
  color: #b42318;
  font-size: 0.875rem;
  line-height: 1.4;
}

.lead-smart-captcha__error:empty {
  display: none;
}

.lead-smart-captcha__retry {
  margin-top: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent, #7d3654);
  text-decoration: underline;
  cursor: pointer;
}

@keyframes quiz-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes quiz-step-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz__step.is-active {
    animation: none;
  }

  .quiz__step.is-active.is-leaving {
    animation: none;
  }
}

.quiz__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.quiz__title {
  margin: 0 0 8px;
}

.photo-quiz__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.photo-quiz__dropzone {
  margin-top: 12px;
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.photo-quiz__dropzone:hover {
  border-color: var(--accent-primary);
}

.photo-quiz__dropzone.is-dragover {
  border-color: var(--accent-primary);
  background: rgba(31, 90, 69, 0.08);
}

.photo-quiz__dropzone.has-files {
  border-color: rgba(31, 90, 69, 0.45);
  background: rgba(31, 90, 69, 0.08);
  color: var(--text-primary);
}

.photo-quiz__dropzone.is-invalid {
  border-color: #b4443c;
  background: rgba(180, 68, 60, 0.08);
}

.photo-quiz__files {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.photo-quiz__step-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.photo-quiz__guide {
  margin: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-subtle);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.photo-quiz__guide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.photo-quiz__guide figcaption {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .photo-quiz__step-grid {
    grid-template-columns: 1fr;
  }

  [data-modal="quiz"] .photo-quiz__dropzone {
    display: none;
  }

  .option--zone {
    padding: 44px 10px 10px;
  }
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}

.option--zone {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
  padding: 44px 12px 12px;
  min-height: 0;
}

.option__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.option--zone > span {
  display: block;
  line-height: 1.3;
}

.option--zone input[type="radio"] {
  position: absolute;
  top: 12px;
  left: 12px;
}

.quiz__zone-options {
  display: contents;
}

@media (min-width: 1025px) {
  .quiz__zone-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .quiz__zone-grid legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .quiz__zone-grid .option--zone {
    margin-bottom: 0;
  }
}

.option input {
  accent-color: var(--accent-primary);
}

.option:has(input:checked) {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
}

.option:has(input:focus-visible) {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .quiz {
    padding: 22px 20px 24px;
  }

  .quiz-promo {
    margin-top: -16px;
    margin-bottom: 6px;
    padding: 14px 58px 14px 16px;
  }

  .quiz-promo__icon {
    top: 12px;
    right: 14px;
  }

  .quiz-promo__note {
    margin-bottom: 16px;
  }

  .quiz__progress {
    margin-bottom: 22px;
  }

  .quiz__zone-grid {
    display: block;
  }

  .quiz__zone-grid legend {
    width: 100%;
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
  }

  .quiz__zone-options {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
  }

  .quiz__zone-grid .option--zone {
    grid-template-columns: 64px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 12px;
    min-height: 80px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
  }

  .quiz__zone-grid .option--zone:last-of-type {
    border-bottom: 0;
  }

  .quiz__zone-grid .option--zone:has(input:checked) {
    box-shadow: inset 3px 0 0 var(--accent-primary);
  }

  .quiz__zone-grid .option__thumb {
    grid-column: 1;
    grid-row: 1;
    width: 64px;
    height: 64px;
    aspect-ratio: 1;
    border: 0;
    border-radius: 12px;
  }

  .quiz__zone-grid .option__label {
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
  }

  .quiz__zone-grid .option--zone input[type="radio"] {
    position: static;
    grid-column: 3;
    grid-row: 1;
    width: 24px;
    height: 24px;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
  }

  .quiz__zone-grid .option--zone input[type="radio"]:focus-visible {
    outline: 0;
  }

  .quiz__zone-grid .option--zone:has(input:focus-visible) {
    outline: 0;
    box-shadow: inset 0 0 0 2px var(--accent-primary);
  }

  .quiz__zone-grid .option--zone:has(input:checked):has(input:focus-visible) {
    box-shadow: inset 3px 0 0 var(--accent-primary), inset 0 0 0 2px var(--accent-primary);
  }

  .quiz__actions--sticky-mobile {
    position: sticky;
    z-index: 3;
    bottom: 0;
    margin: 0 -20px -24px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 20px rgba(55, 46, 51, 0.09);
  }
}

.quiz--pricing .quiz__zone-grid {
  display: block;
}

.quiz--pricing .quiz__zone-grid legend {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.quiz--pricing .quiz__zone-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quiz--pricing .option--priced {
  grid-template-columns: 22px 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 94px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
}

.quiz--pricing .option--priced .option__thumb {
  display: block;
  grid-column: 2;
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
}

.quiz--pricing .option--priced input[type="radio"] {
  position: static;
  grid-column: 1;
  width: 22px;
  height: 22px;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
}

.quiz--pricing .option__body {
  display: grid;
  grid-column: 3;
  gap: 3px;
  min-width: 0;
}

.quiz--pricing .option__label {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

.quiz--pricing .option__description {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.quiz--pricing .option__price {
  grid-column: 4;
  color: var(--accent-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.pricing-ranges {
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-ranges > .section-anchor {
  display: block;
  scroll-margin-top: calc(90px + var(--admin-bar-offset));
}

.pricing-ranges__quiz-intro {
  margin: 28px 0 20px;
}

.pricing-ranges__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pricing-ranges__card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(31, 90, 69, 0.16);
  border-radius: var(--radius-lg);
  background: #fff;
}

.pricing-ranges__volume,
.pricing-ranges__price {
  margin: 0;
}

.pricing-ranges__volume {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.pricing-ranges__card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.pricing-ranges__price {
  color: var(--accent-primary);
  font-size: 24px;
  font-weight: 700;
}

.pricing-ranges__promo {
  max-width: none;
  margin: 20px 0 6px;
}

.pricing-ranges__promo-note {
  max-width: none;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .pricing-quiz-support {
    gap: 12px;
    margin-top: 16px;
  }

  .quiz--pricing .quiz__zone-grid legend {
    margin-bottom: 6px;
    font-size: 20px;
  }

  .quiz--pricing .quiz__zone-options {
    display: block;
  }

  .quiz--pricing .option--priced {
    grid-template-columns: 56px minmax(0, 1fr) 24px;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    min-height: 82px;
    padding: 8px 12px;
  }

  .quiz--pricing .option--priced .option__thumb {
    display: block;
    grid-column: 1;
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
  }

  .quiz--pricing .option__body {
    display: block;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .quiz--pricing .option__description {
    display: none;
  }

  .quiz--pricing .option__price {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 13px;
  }

  .pricing-ranges__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pricing-ranges__card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 18px;
  }

  .pricing-ranges__volume,
  .pricing-ranges__card h3 {
    grid-column: 1;
  }

  .pricing-ranges__price {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 20px;
    white-space: nowrap;
  }

  .pricing-ranges__promo {
    margin-top: 16px;
  }

  .quiz--pricing .option--priced input[type="radio"] {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    width: 24px;
    height: 24px;
  }
}

.option.is-invalid {
  border-color: #b4443c;
  background: rgba(180, 68, 60, 0.08);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  /* Prevent long native controls (e.g. iOS file inputs) from forcing horizontal scroll. */
  min-width: 0;
}

.field input,
.field textarea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.field input[type="file"] {
  /* iOS Safari can render a file input wider than its container; keep it contained. */
  overflow: hidden;
}

@media (max-width: 768px) {
  .quiz .field input,
  .quiz .field textarea {
    /* iOS Safari auto-zooms focused controls when their text is smaller than 16px. */
    font-size: 16px;
  }
}

.field.is-invalid input,
.field.is-invalid textarea,
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b4443c;
  box-shadow: 0 0 0 2px rgba(180, 68, 60, 0.18);
}

.field__error {
  min-height: 16px;
  margin-top: -2px;
  font-size: 12px;
  line-height: 1.35;
  color: #b4443c;
}

.field__error:empty {
  display: none;
}

.field__hint {
  font-size: 12px;
  color: var(--text-muted);
}

.checkbox {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 12px 0;
}

.checkbox.is-invalid {
  border: 1px solid rgba(180, 68, 60, 0.45);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(180, 68, 60, 0.06);
}

.field__error--checkbox {
  padding-left: 2px;
  margin-top: -6px;
}

.quiz__screenout,
.quiz__success {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.prp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.prp h2 {
  margin-top: 0;
  color: var(--text-on-contrast);
}

.prp p {
  color: rgba(255, 255, 255, 0.7);
}

.prp__cta {
  flex-shrink: 0;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion__item {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
}

.accordion__item summary {
  cursor: pointer;
  font-weight: 600;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.video-card {
  border: 0;
  border-radius: var(--radius-md);
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.video-card__poster {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: linear-gradient(140deg, rgba(31, 90, 69, 0.25), rgba(248, 247, 247, 0.68));
  display: grid;
  place-items: center;
  margin-bottom: 0;
}

.video-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.video-card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29, 26, 28, 0.6);
  color: var(--text-on-contrast);
  z-index: 1;
}

.video-card__play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1f5a45 0%, #184737 100%);
  color: var(--text-on-contrast);
  border: 1px solid rgba(248, 247, 247, 0.48);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.video-card__play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 2px;
}

.modal__dialog--video {
  width: min(92%, 520px);
}

.video-modal__frame {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.video-modal__placeholder {
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
}

.video-modal__player {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  background: #000;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.contacts__item {
  margin: 8px 0;
}

.contacts__city-consult-note {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.contacts__city-consult-link {
  display: inline-flex;
  margin-bottom: 12px;
}

.contacts__cta {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


.contacts__map {
  display: grid;
  gap: 12px;
}

.contacts__schedule {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.schedule__row,
.contacts__schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.schedule__row {
  font-size: 14px;
  color: var(--text-secondary);
}

.schedule__row span:first-child {
  color: var(--text-primary);
}

.map-placeholder {
  height: 260px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  display: grid;
  place-items: center;
  background: var(--bg-card);
  color: var(--text-muted);
}

.map-placeholder--image {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  height: auto;
}

.map-placeholder--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
}

.map-placeholder__label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 26, 28, 0.65);
  color: var(--text-on-contrast);
  font-size: 12px;
}

.map-modal__frame {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.map-modal__frame iframe,
.map-modal__frame img {
  width: 100%;
  display: block;
  border: 0;
}

.map-modal__frame iframe {
  height: 400px;
}

.footer {
  padding: 64px 0 32px;
  background: #121110;
  color: rgba(255, 255, 255, 0.8);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer a {
  display: block;
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer__note {
  font-size: 12px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
}

.modal.is-active {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 26, 28, 0.6);
}

.modal__dialog {
  position: relative;
  display: grid;
  align-content: start;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  width: min(90%, 420px);
  max-height: min(90vh, 820px);
  overflow: auto;
  z-index: 1;
}

.modal__dialog--wide {
  width: min(92%, 860px);
}

.modal__dialog--contact {
  width: min(92%, 620px);
}

.modal__dialog--quiz {
  width: min(92%, 760px);
}

[data-modal="quiz"] .quiz {
  box-shadow: none;
}

.modal__dialog--messenger-choice {
  width: min(92%, 440px);
}

.messenger-choice__lead {
  margin: 8px 0 20px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.messenger-choice__form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.messenger-choice__form .field,
.messenger-choice__form .checkbox {
  margin: 0;
}

.messenger-choice__form textarea {
  min-height: 96px;
  resize: vertical;
}

.messenger-choice__form .btn {
  width: 100%;
  min-height: 50px;
}

.messenger-choice__channels {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.messenger-choice__channels legend {
  margin-bottom: 8px;
  font-weight: 600;
}

.messenger-choice__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.messenger-choice__channel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.messenger-choice__channel:hover {
  border-color: rgba(31, 90, 69, 0.35);
  transform: translateY(-1px);
}

.messenger-choice__channel:has(input:checked) {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(31, 90, 69, 0.12);
}

.messenger-choice__channel:has(input:focus-visible) {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.messenger-choice__channel input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.messenger-choice__channels.is-invalid .messenger-choice__list {
  padding: 2px;
  border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(180, 68, 60, 0.2);
}

.messenger-choice__option-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.messenger-choice__option-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.messenger-choice__channel--telegram .messenger-choice__option-icon {
  background: #229ed9;
}

.messenger-choice__channel--max .messenger-choice__option-icon {
  background: #6d5cff;
}

.messenger-choice__channel--whatsapp .messenger-choice__option-icon {
  background: #25d366;
}

.quiz__contact-step--direct {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 24px;
  border: 1px solid rgba(31, 90, 69, 0.2);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}

.quiz__direct-contact-intro h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.2;
}

.quiz__direct-contact-intro p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.quiz__contact-step--direct .field--phone {
  margin-top: 22px;
}

.quiz__contact-step .messenger-choice__channels {
  margin-bottom: 16px;
}

.quiz__contact-step .messenger-choice__channels legend {
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
}

.quiz__contact-step .field {
  margin-bottom: 12px;
}

.quiz__contact-step .checkbox {
  margin-top: 2px;
}

@media (max-width: 768px) {
  .quiz__contact-step--direct {
    padding: 16px;
  }

  .quiz__contact-step--direct .quiz__actions .btn {
    width: 100%;
  }
}

.mobile-messenger-dock {
  display: none;
}

@media (min-width: 1025px) {
  .modal__dialog--contact {
    width: min(92%, 434px);
  }
}

.modal__dialog--reconstruction {
  width: min(92%, 560px);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--text-secondary);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.modal__close::before {
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

.modal__close:hover {
  background: rgba(31, 90, 69, 0.08);
  color: var(--accent-primary);
}

.modal__close:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .modal__dialog {
    padding: 28px 18px 20px;
    width: min(94%, 420px);
  }

  .modal__dialog--wide,
  .modal__dialog--contact {
    width: min(94%, 860px);
  }

  .modal__dialog--quiz {
    width: min(96%, 760px);
    max-height: 94svh;
    padding: 38px 10px 10px;
  }

  .modal__close {
    top: 8px;
    right: 8px;
  }
}

.modal__content h3 {
  margin-top: 0;
}

.modal__content h3:first-of-type {
  padding-right: 32px;
}

.metrika-gate {
  z-index: 120;
}

.metrika-gate__backdrop {
  background: rgba(29, 26, 28, 0.64);
}

.metrika-gate__dialog {
  width: min(90%, 430px);
}

.metrika-gate__content {
  display: grid;
  gap: 16px;
  text-align: center;
}

.metrika-gate__content h3 {
  margin: 0;
  font-size: clamp(28px, 8vw, 40px);
}

.metrika-gate__content p {
  margin: 0;
  color: var(--text-secondary);
}

.metrika-gate__button {
  justify-self: center;
  margin-top: 4px;
}

.modal__success {
  text-align: center;
}

.lead-submitted-notice {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 620px);
  margin: 18px auto 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(37, 112, 89, 0.2);
  border-radius: var(--radius-md);
  background: rgba(37, 112, 89, 0.08);
  text-align: center;
}

.lead-submitted-notice h3,
.lead-submitted-notice p {
  margin: 0;
}

.lead-submitted-notice p {
  max-width: 540px;
  color: var(--text-secondary);
}

.lead-submitted-notice .btn {
  margin-top: 4px;
}

.success-followup {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 560px);
  margin: 22px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.success-followup h4 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.2;
}

.success-followup p {
  max-width: 520px;
  margin: 0;
  color: var(--text-secondary);
}

.success-followup__channel {
  margin-top: 2px;
}

.success-followup__phone {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 500;
  letter-spacing: 0;
}

.success-followup__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.success-followup__social-link {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.success-followup__social-link:hover,
.success-followup__social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.success-followup__social-link img {
  width: 24px;
  height: 24px;
  display: block;
}

.success-followup__social-link--wa {
  background: var(--brand-whatsapp);
}

.success-followup__social-link--tg {
  background: var(--brand-telegram);
}

.success-followup__social-link--max {
  background: var(--brand-max);
}

.success-followup + .btn {
  margin-top: 16px;
}

.contact-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.contact-choice__col {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-choice__buttons {
  display: grid;
  gap: 12px;
}

.contact-choice__form--simple {
  display: grid;
  gap: 10px;
  width: min(100%, 560px);
  max-width: 100%;
  margin-top: 8px;
}

.contact-choice__form--simple .field {
  margin-bottom: 0;
}

.contact-choice__form--simple .checkbox {
  margin: 4px 0 0;
  align-items: flex-start;
}

.contact-choice__form--simple .field__error--checkbox {
  margin-top: -2px;
}

.mobile-questions-cta {
  display: none;
}

.field.field--photo input.callback-photo__input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  max-width: none;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.callback-photo__picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px dashed rgba(31, 90, 69, 0.45);
  border-radius: 14px;
  background: rgba(31, 90, 69, 0.06);
  color: var(--accent-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.callback-photo__picker:hover,
.callback-photo__picker:focus-visible {
  border-color: var(--accent-primary);
  background: rgba(31, 90, 69, 0.1);
}

.callback-photo__picker svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.callback-photo__status {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .contact-choice__form--simple {
    max-width: none;
    width: 100%;
  }

  .mobile-questions-cta {
    display: block;
    margin: 32px 0 28px;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background:
      radial-gradient(circle at 88% 12%, rgba(94, 226, 141, 0.18), transparent 34%),
      var(--accent-primary);
    color: var(--text-on-contrast);
  }

  .mobile-questions-cta__form {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
  }

  .mobile-questions-cta__form .hero-contact-inline__intro {
    display: grid;
    gap: 8px;
    margin: 0;
  }

  .mobile-questions-cta__form .hero-contact-inline__intro h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.05;
  }

  .mobile-questions-cta__form .hero-contact-inline__intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.45;
  }

  .mobile-questions-cta__form .contact-choice__form--simple {
    gap: 12px;
    margin: 18px 0 0;
  }

  .mobile-questions-cta__form .field {
    gap: 6px;
  }

  .mobile-questions-cta__form .field > span:first-child {
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-questions-cta__form .field__required-mark {
    color: #fff;
  }

  .mobile-questions-cta__form .field input {
    min-height: 52px;
    border-color: rgba(255, 255, 255, 0.24);
    background: #fff;
    color: var(--text-primary);
  }

  .mobile-questions-cta__form .checkbox {
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.4;
  }

  .mobile-questions-cta__form .checkbox a {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.5);
  }

  .mobile-questions-cta__form .field__error {
    color: #ffe0da;
  }

  .mobile-questions-cta__form .modal__success h4,
  .mobile-questions-cta__form .modal__success p {
    color: inherit;
  }

  .mobile-questions-cta__submit {
    position: relative;
    min-height: 54px;
    padding-right: 42px;
    border-color: #fff;
    background: #fff;
    color: var(--accent-primary);
    line-height: 1.25;
  }

  .mobile-questions-cta__submit:hover,
  .mobile-questions-cta__submit:focus,
  .mobile-questions-cta__submit:active {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-primary);
  }

  .mobile-questions-cta__submit::after {
    content: "";
    position: absolute;
    right: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5ee28d;
    box-shadow: 0 0 0 2px rgba(94, 226, 141, 0.2), 0 0 8px rgba(94, 226, 141, 0.7);
  }

  .mobile-questions-cta .success-followup {
    border-top-color: rgba(255, 255, 255, 0.2);
  }

  .mobile-questions-cta .success-followup p,
  .mobile-questions-cta .success-followup__phone {
    color: rgba(255, 255, 255, 0.82);
  }

  .pricing-messenger-cta {
    display: grid;
    gap: 18px;
    margin: 16px 0 28px;
  }

  .pricing-messenger-cta__intro h3 {
    margin: 0;
    color: inherit;
    font-family: var(--font-h1);
    font-size: clamp(28px, 8.5vw, 38px);
    font-weight: 500;
    line-height: 1.08;
  }

  .pricing-messenger-cta__form {
    display: grid;
    gap: 14px;
  }

  .pricing-messenger-cta .messenger-choice__list {
    gap: 10px;
  }

  .pricing-messenger-cta .messenger-choice__channel {
    min-height: 82px;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
  }

  .pricing-messenger-cta .messenger-choice__channel:hover {
    border-color: rgba(255, 255, 255, 0.42);
  }

  .pricing-messenger-cta .messenger-choice__channel:has(input:checked) {
    border-color: #fff;
    background: #fff;
    color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  }

  .pricing-messenger-cta .messenger-choice__channels.is-invalid .messenger-choice__list {
    box-shadow: 0 0 0 2px rgba(255, 224, 218, 0.45);
  }

  .pricing-messenger-cta__details {
    display: grid;
    gap: 12px;
    padding-top: 4px;
  }

  .pricing-messenger-cta__details[hidden] {
    display: none;
  }

  .pricing-messenger-cta__details .field {
    gap: 6px;
    margin: 0;
  }

  .pricing-messenger-cta__details .field > span:first-child {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
  }

  .pricing-messenger-cta__details .field__required-mark {
    color: #fff;
  }

  .pricing-messenger-cta__details .field input {
    min-height: 52px;
    border-color: rgba(255, 255, 255, 0.24);
    background: #fff;
    color: var(--text-primary);
  }

  .pricing-messenger-cta__details .checkbox {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.4;
  }

  .pricing-messenger-cta__details .checkbox a {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.5);
  }

  .pricing-messenger-cta .field__error {
    color: #ffe0da;
  }

  .pricing-messenger-cta__submit {
    width: 100%;
    min-height: 54px;
    border-color: #fff;
    background: #fff;
    color: var(--accent-primary);
  }

  .pricing-messenger-cta__submit:hover,
  .pricing-messenger-cta__submit:focus,
  .pricing-messenger-cta__submit:active {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-primary);
  }

  .pricing-messenger-cta .modal__success h4,
  .pricing-messenger-cta .modal__success p {
    color: inherit;
  }
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.messenger-btn:visited,
.messenger-btn:hover,
.messenger-btn:focus,
.messenger-btn:active {
  color: #fff;
}

.messenger-btn__icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.messenger-btn__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.messenger-btn--wa {
  background: var(--brand-whatsapp);
}

.messenger-btn--tg {
  background: var(--brand-telegram);
}

.messenger-btn--max {
  background: var(--brand-max);
}

@media (max-width: 1024px) {
  .header__inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
  }

  .nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__mobile-phone {
    grid-column: 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text-primary);
    transition: var(--transition);
  }

  .header__mobile-phone:hover,
  .header__mobile-phone:focus-visible {
    background: transparent;
    color: var(--text-primary);
  }

  .header__mobile-phone:active {
    background: transparent;
  }

  .header__mobile-phone svg {
    width: 20px;
    height: 20px;
  }

  .burger {
    grid-column: 4;
    display: inline-flex;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero--background {
    padding-top: 0;
  }

  .hero--background .hero__bg {
    display: none;
  }

  .hero--background .hero__photo-background {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    height: clamp(430px, min(125vw, 68svh), 650px);
    overflow: hidden;
    background: var(--bg-base);
    pointer-events: none;
  }

  .hero--background .hero__photo-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(248, 247, 247, 0) 0%,
      rgba(248, 247, 247, 0) 36%,
      rgba(248, 247, 247, 0.25) 50%,
      rgba(248, 247, 247, 0.78) 62%,
      rgba(248, 247, 247, 0.96) 74%,
      var(--bg-base) 84%,
      var(--bg-base) 100%
    );
  }

  .hero--background .hero__photo-background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center top;
  }

  .hero--background .hero__grid {
    padding-top: clamp(285px, min(100vw, 45svh), 430px);
  }

  .hero--background .hero__intro {
    position: relative;
    z-index: 1;
  }

  .hero__intro,
  .hero__media {
    grid-column: 1 / -1;
  }

  .hero__intro {
    order: 1;
  }

  .hero__details {
    display: contents;
  }

  .hero__badges {
    grid-column: 1 / -1;
    order: 4;
  }

  .hero__media {
    grid-row: auto;
    order: 3;
  }

  .hero__mobile-actions {
    grid-column: 1 / -1;
    order: 2;
  }

  .hero__cta {
    grid-column: 1 / -1;
    order: 5;
  }

  .hero__meta {
    grid-column: 1 / -1;
    order: 6;
  }

  .prp {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card {
    flex: 0 0 72%;
  }

  .cases-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero--background {
    --hero-intro-shift: max(112px, calc(100svh - 702px));
  }

  .header {
    position: relative;
    top: auto;
    background: var(--bg-base);
    border-bottom: 0;
  }

  .header__inner {
    padding: 12px 0 0;
  }

  .hero--background .hero__photo-background {
    position: relative;
    z-index: 1;
    inset: auto;
    width: min(100% - 40px, var(--container-width));
    height: auto;
    aspect-ratio: 1;
    margin: 16px auto 0;
    border-radius: var(--radius-lg);
    background: transparent;
  }

  .hero--background .hero__photo-background::after {
    inset: auto 0 0;
    height: 24%;
    background: linear-gradient(
      to bottom,
      rgba(248, 247, 247, 0) 0%,
      rgba(248, 247, 247, 0.1) 100%
    );
  }

  .hero--background .hero__photo-background img {
    object-fit: cover;
  }

  .hero--background .hero__grid {
    padding-top: 20px;
    row-gap: 24px;
  }

  .hero--background .hero__intro {
    gap: 12px;
    transform: translateY(var(--hero-intro-shift));
  }

  .mobile-messenger-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: none;
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 8px;
    align-items: center;
    min-height: 76px;
    padding: 8px 10px 8px 8px;
    border: 1px solid rgba(31, 90, 69, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(55, 46, 51, 0.2);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(calc(100% + 28px));
    pointer-events: none;
    transition: opacity 220ms ease, transform 260ms ease;
  }

  .mobile-messenger-dock.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  @supports selector(body:has(.local-theme-switcher)) {
    body:has(.local-theme-switcher) .mobile-messenger-dock {
      bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    body:has(.local-theme-switcher) .modal__dialog--messenger-choice {
      padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    }
  }

  body.modal-open .mobile-messenger-dock {
    opacity: 0;
    transform: translateY(calc(100% + 28px));
    pointer-events: none;
  }

  body:has(.pricing-messenger-cta:focus-within) .mobile-messenger-dock {
    opacity: 0;
    transform: translateY(calc(100% + 28px));
    pointer-events: none;
  }

  .mobile-messenger-dock__main {
    min-width: 0;
    min-height: 58px;
    display: grid;
    place-content: center start;
    gap: 2px;
    padding: 10px 18px;
    border: 0;
    border-radius: 17px;
    background: var(--accent-primary);
    color: var(--text-on-contrast);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(31, 90, 69, 0.28);
  }

  .mobile-messenger-dock__main span {
    font-size: 16px;
    font-weight: 750;
    line-height: 1.15;
  }

  .mobile-messenger-dock__main small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    line-height: 1.2;
  }

  .mobile-messenger-dock__main small::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #5ee28d;
    box-shadow: 0 0 0 2px rgba(94, 226, 141, 0.2), 0 0 8px rgba(94, 226, 141, 0.7);
  }

  .mobile-messenger-dock__cluster {
    position: relative;
    width: 78px;
    height: 60px;
  }

  .mobile-messenger-dock__cluster::before {
    content: "";
    position: absolute;
    inset: 7px 4px 7px 8px;
    border-radius: 999px;
    background: rgba(31, 90, 69, 0.1);
    animation: messenger-dock-pulse 2.6s ease-in-out infinite;
  }

  .mobile-messenger-dock__icon {
    position: absolute;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 5px 12px rgba(55, 46, 51, 0.2);
    transition: transform 180ms ease;
  }

  .mobile-messenger-dock__icon:active {
    transform: scale(0.92);
  }

  .mobile-messenger-dock__icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  .mobile-messenger-dock__icon--telegram {
    left: 0;
    top: 13px;
    background: #229ed9;
  }

  .mobile-messenger-dock__icon--max {
    right: 0;
    top: 0;
    background: #6d5cff;
  }

  .mobile-messenger-dock__icon--whatsapp {
    right: 12px;
    bottom: 0;
    background: #25d366;
  }

  .modal--messenger-choice {
    align-items: flex-end;
  }

  .modal__dialog--messenger-choice {
    width: 100%;
    max-height: min(92vh, 760px);
    margin-top: auto;
    padding: 28px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    border-radius: 26px 26px 0 0;
  }

  .messenger-choice__form input,
  .messenger-choice__form textarea {
    font-size: 16px;
  }

  @keyframes messenger-dock-pulse {
    0%, 100% {
      opacity: 0.45;
      transform: scale(0.92);
    }
    50% {
      opacity: 0.9;
      transform: scale(1.08);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-messenger-dock,
    .mobile-messenger-dock__icon {
      transition: none;
    }

    .mobile-messenger-dock__cluster::before {
      animation: none;
    }
  }

  .header.is-scrolled {
    border-bottom: 0;
  }

  .hero__eyebrow {
    display: none;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__media {
    order: 0;
    width: calc(100% + 40px);
    margin-left: -20px;
  }

  .hero__media .media-card {
    border: 0;
    border-radius: 0;
  }

  .hero__media .media-card__visual {
    aspect-ratio: 6 / 5;
  }

  .hero__media .media-card__image {
    object-position: center;
  }

  .hero__media .media-card__visual::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 46%;
    background: linear-gradient(
      to bottom,
      rgba(29, 26, 28, 0) 0%,
      rgba(29, 26, 28, 0.08) 38%,
      rgba(29, 26, 28, 0.48) 100%
    );
    pointer-events: none;
  }

  .hero__media .media-card__overlay {
    display: none;
  }

  .media-card__doctor {
    position: absolute;
    z-index: 1;
    right: 20px;
    bottom: 18px;
    left: 20px;
    display: grid;
    gap: 4px;
    color: #fff;
    text-shadow: 0 1px 8px rgba(55, 46, 51, 0.72);
  }

  .media-card__doctor-name {
    font-family: var(--font-h1);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.15;
  }

  .media-card__doctor-role {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
  }

  .media-card__doctor-role span {
    margin: 0 5px;
    color: #76c59d;
  }

  .lead {
    font-size: 16px;
  }

  .logo__image {
    height: 30px;
  }

  .section {
    padding: var(--section-pad-mobile) 0;
  }

  .hero__badges {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    order: 2;
  }

  .hero__badges .chip {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    min-height: 104px;
    height: auto;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid rgba(31, 90, 69, 0.14);
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
  }

  .hero__badge-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 200px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero__badge-text strong {
    font-weight: inherit;
  }

  .hero__badge-line-break {
    display: block;
  }

  .hero__badge-line-break::before {
    content: none;
  }

  .hero__badge-icon {
    position: static;
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    transform: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    background: rgba(31, 90, 69, 0.08);
    border: 1px solid rgba(31, 90, 69, 0.16);
  }

  .hero__badge-icon svg {
    width: 30px;
    height: 30px;
  }

  .hero__badge-icon svg [stroke] {
    stroke-width: 1.45;
  }

  .hero__badges .hero__badge--mobile-hidden {
    display: none;
  }

  .hero__offer {
    display: grid;
    order: -1;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(31, 90, 69, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 32px rgba(31, 90, 69, 0.1);
  }

  .hero__mobile-contact {
    display: block;
    width: auto;
    margin: 0 12px;
    padding: 14px 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero__mobile-contact .hero-contact-inline__intro {
    display: block;
    margin: 0 2px 12px;
  }

  .hero__mobile-contact .hero-contact-inline__intro h3 {
    color: var(--text-primary);
    font-size: 19px;
    line-height: 1.22;
  }

  .hero__mobile-contact .hero-contact-inline__intro p:empty {
    display: none;
  }

  .hero__mobile-contact .contact-choice__form--simple {
    gap: 8px;
    width: 100%;
    margin-top: 0;
  }

  .hero__mobile-contact .field {
    gap: 5px;
  }

  .hero__mobile-contact .field > span:first-child {
    padding-left: 2px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
  }

  .hero__mobile-contact .field__required-mark {
    display: inline;
    margin-left: 2px;
    color: #a4473b;
    font-size: 15px;
    font-weight: 800;
    line-height: 0;
    vertical-align: 1px;
  }

  .hero__mobile-contact .field input {
    min-height: 48px;
    border-color: rgba(31, 90, 69, 0.22);
    background: #fff;
    font-size: 16px;
  }

  .hero__mobile-contact .checkbox {
    margin: 2px 0 0;
    font-size: 11px;
    line-height: 1.35;
  }

  .hero__mobile-contact .checkbox input {
    flex: 0 0 auto;
    margin-top: 2px;
  }

  .hero__mobile-contact .btn {
    margin-top: 2px;
    box-shadow: 0 12px 24px rgba(31, 90, 69, 0.2);
  }

  .hero__mini-quiz {
    display: grid;
    order: -2;
    gap: 12px;
    width: 100%;
  }

  .hero__mini-quiz-head {
    display: grid;
    gap: 6px;
    padding: 0 4px;
  }

  .hero__mini-quiz-kicker {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .hero__mini-quiz-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.18;
  }

  .hero__mini-quiz-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
  }

  .hero__mini-quiz .quiz {
    padding: 18px 14px 16px;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(31, 90, 69, 0.1);
  }

  .hero__mini-quiz .quiz__progress {
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
  }

  .hero__mini-quiz .quiz__progress-note {
    font-size: 12px;
  }

  .hero__mini-quiz .quiz__zone-grid legend {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .hero__mini-quiz .quiz__zone-options {
    border-radius: 14px;
  }

  .hero__mini-quiz .quiz__zone-grid .option--zone {
    grid-template-columns: 52px minmax(0, 1fr) 22px;
    gap: 10px;
    min-height: 68px;
    padding: 7px 10px;
  }

  .hero__mini-quiz .quiz__zone-grid .option__thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }

  .hero__mini-quiz .quiz__zone-grid .option__label {
    font-size: 14px;
  }

  .hero__mini-quiz .quiz__zone-grid .option--zone input[type="radio"] {
    width: 22px;
    height: 22px;
  }

  .hero__mini-quiz .quiz__actions--sticky-mobile {
    position: static;
    margin: 14px 0 0;
    padding: 0;
    border-top: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero__mini-quiz .quiz__actions .btn {
    min-height: 48px;
  }

  .hero__promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    order: 0;
    margin-top: -8px;
    padding: 24px 14px 14px;
    border: 0;
    border-radius: 0;
    background: rgba(31, 90, 69, 0.07);
    font-size: 14px;
    line-height: 1.45;
  }

  .hero__promo-text {
    grid-column: 1 / -1;
  }

  .hero__promo-icon {
    grid-column: 2;
    grid-row: 1;
  }

  .hero__meta-tooltips {
    display: none;
  }

  .hero__mobile-actions {
    position: relative;
    display: grid;
    gap: 10px;
    order: 2;
    min-height: calc(62px + var(--hero-intro-shift));
    padding-top: var(--hero-intro-shift);
    margin-bottom: 8px;
  }

  .hero__mobile-messenger-cta {
    position: relative;
    width: 100%;
    min-height: 62px;
    padding: 14px 54px 14px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(29, 26, 28, 0.1);
  }

  .hero__mobile-messenger-cta .hero__action-arrow {
    position: absolute;
    right: 14px;
  }

  .hero__mobile-consultation-cta {
    width: 100%;
    min-height: 48px;
    border-color: var(--accent-primary);
    border-radius: 14px;
    color: var(--accent-primary);
    font-size: 15px;
  }

  .hero--background .hero__grid--messenger-cta {
    align-items: stretch;
  }

  .hero--background .hero__grid--messenger-cta .hero__intro {
    grid-row: 1;
  }

  .hero--background .hero__grid--messenger-cta .hero__badges {
    grid-row: 3;
  }

  .hero__badges {
    order: 3;
  }

  .process__item {
    align-items: start;
  }

  .process__item > div > h3 {
    line-height: var(--lh-title);
    height: 2.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .media-card {
    min-height: auto;
  }

  .media-card__visual {
    min-height: 0;
  }

  .media-card__image {
    height: 100%;
    object-fit: cover;
  }

  .media-card__overlay {
    min-height: 0;
  }

  .media-card__badge {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(29, 26, 28, 0.82);
    backdrop-filter: none;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-choice {
    grid-template-columns: 1fr;
  }

  .doctor-modal__header {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }

}

@media (max-width: 768px) and (max-height: 740px) {
  .hero--background .hero__photo-background::after {
    height: 64%;
    background: linear-gradient(
      to bottom,
      rgba(248, 247, 247, 0) 0%,
      rgba(248, 247, 247, 0.36) 40%,
      rgba(248, 247, 247, 0.86) 72%,
      var(--bg-base) 100%
    );
  }

  .hero--background .hero__grid {
    z-index: 2;
    margin-top: clamp(-180px, calc(100svh - 820px), -80px);
    padding-top: 12px;
  }

}

@media (max-width: 375px) {
  .hero--background {
    --hero-intro-shift: max(97px, calc(100svh - 703px));
  }
}

@media (max-width: 768px) and (min-height: 741px) {
  .hero--background .hero__photo-background {
    height: calc(100vw - 52px + var(--hero-intro-shift));
    aspect-ratio: auto;
  }

  .hero--background .hero__grid {
    margin-top: calc(12px - var(--hero-intro-shift));
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 0;
    padding-bottom: 24px;
  }

  #cases.section--contrast,
  main > #cases ~ .section,
  main > #cases ~ noindex > .section {
    border-radius: 28px 28px 0 0;
  }

  main > #cases ~ .section,
  main > #cases ~ noindex > .section {
    position: relative;
    z-index: 1;
    margin-top: -28px;
    background: var(--bg-base);
  }

  main > #cases ~ .section.section--tint,
  main > #cases ~ noindex > .section.section--tint {
    background: var(--bg-subtle);
  }

  main > #cases ~ .section.section--macro,
  main > #cases ~ noindex > .section.section--macro {
    background-color: var(--bg-base);
    background-image: linear-gradient(120deg, rgba(31, 90, 69, 0.08), rgba(248, 247, 247, 0.62));
  }

  .hero__cta {
    display: none;
  }

  .hero__eyebrow {
    /* Reduce the vertical "air" around the eyebrow on small screens. */
    margin-bottom: -8px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__messenger-actions {
    display: grid;
    grid-template-columns: 1fr;
    order: -1;
  }

  .macro__messenger-actions {
    margin-top: 12px;
  }

  .hero-contact-inline {
    display: block;
  }

  .hero__cta .hero-contact-inline {
    display: none;
  }

  .hero-contact-desktop {
    display: none;
  }

  .hero__messengers {
    width: 100%;
    justify-content: center;
  }

  .mobile-menu__messengers.hero__messengers {
    width: auto;
    justify-content: flex-start;
  }

  .contacts__messengers.hero__messengers {
    width: auto;
    justify-content: flex-start;
  }

  .mobile-menu__cta {
    padding-top: 12px;
  }

  .btn {
    width: 100%;
  }

  .quiz__actions {
    flex-direction: column;
  }

  #cases .section__head .lead,
  #fit_check .section__head .lead,
  #video_stories .section__head .lead,
  #pricing .section__head .lead,
  #team .section__head .lead,
  #faq .section__head .lead {
    display: none;
  }

  .mobile-title-line {
    display: block;
  }

  .contacts__cta {
    flex-direction: column;
  }

  .process {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .process__item {
    grid-template-columns: 1fr;
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .process__media {
    height: 100%;
  }

  .fit-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    row-gap: 10px;
    padding: 16px;
  }

  .fit-card > .fit-card__media,
  .fit-card > .fit-card__icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 88px;
    height: 88px;
  }

  .fit-card__media--cycle {
    overflow: hidden;
  }

  .fit-card h3,
  .fit-card ul,
  .fit-card__link {
    grid-column: 2;
  }

  .fit-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
  }

  .fit-card ul {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .fit-card__link {
    justify-self: start;
    font-size: 13px;
  }

  .fit-card__media--cycle .fit-card__icon {
    width: 100%;
    height: 100%;
  }

  .pricing {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .pricing-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .video-card {
    flex: initial;
    width: 100%;
    scroll-snap-align: none;
  }

  .case-card {
    flex: 0 0 82%;
  }

  .cases-page__grid {
    gap: 16px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline__item {
    flex: 0 0 82%;
  }
}

@media (min-width: 1025px) {
  .cases__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    scrollbar-gutter: auto;
    scrollbar-width: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cases__grid::-webkit-scrollbar {
    height: 0;
  }

  .case-card {
    flex: initial;
    width: 100%;
  }

  .team {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    scrollbar-gutter: auto;
    scrollbar-width: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .team::-webkit-scrollbar {
    height: 0;
  }

  .team-card {
    flex: initial;
    width: 100%;
  }

  .timeline__nav {
    display: inline-flex;
  }

  .timeline {
    padding-inline: 44px;
    padding-bottom: 0;
    scrollbar-gutter: auto;
    scrollbar-width: none;
  }

  .timeline::-webkit-scrollbar {
    height: 0;
  }

  /* Fade cards at edges without painting over section backgrounds (works with gradients). */
  .timeline {
    --mask-left: 0px;
    --mask-right: 0px;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 var(--mask-left),
      #000 calc(100% - var(--mask-right)),
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 var(--mask-left),
      #000 calc(100% - var(--mask-right)),
      transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

.process--stack {
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
  scroll-snap-type: none;
  scroll-behavior: auto;
  scrollbar-gutter: auto;
  gap: 20px;
  scrollbar-width: none;
  padding: 0;
}

.process--stack .process__item {
  flex: initial;
  width: 100%;
  max-width: none;
  scroll-snap-align: none;
}

.process--stack .process__item:nth-child(odd),
.process--stack .process__item:nth-child(even) {
  margin-left: 0;
  margin-right: 0;
}

.process--stack::-webkit-scrollbar {
  height: 0;
}

@media (max-width: 768px) {
  #video_stories .video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  #video_stories .video-card {
    flex: initial;
    width: 100%;
    scroll-snap-align: none;
    padding: 0;
    overflow: hidden;
  }

  #video_stories .video-grid::-webkit-scrollbar {
    height: 0;
  }

  #video_stories .video-card__poster {
    margin-bottom: 0;
    border-radius: var(--radius-md);
  }

  #team .team--stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
    scrollbar-gutter: auto;
    padding: 0;
  }

  #team .team--stack .team-card {
    flex: initial;
    min-width: 0;
    width: 100%;
    scroll-snap-align: none;
  }

  #team .team--stack > .team-card:not(.team-card--cta):nth-of-type(n + 5),
  #team .team--stack > .team-card--cta {
    display: none;
  }

  #team .team--stack .team-card:not(.team-card--cta) {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    padding: 12px;
    overflow: visible;
  }

  #team .team-card:not(.team-card--cta) .team-card__avatar {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 96px;
    height: 112px;
    aspect-ratio: auto;
    margin: 0;
  }

  #team .team-card__header {
    grid-column: 2;
    align-items: flex-start;
    min-width: 0;
    gap: 8px;
    min-height: 0;
  }

  #team .team-card__header h3 {
    min-width: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
  }

  #team .team-card__info {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
  }

  #team .team-card:not(.team-card--cta) > p {
    grid-column: 2;
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
  }

  #team .team-card:not(.team-card--cta) .team-card__meta {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 13px;
    line-height: 1.4;
  }

  #team .team--stack .team-card.team-card--featured {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    row-gap: 6px;
    padding: 14px;
  }

  #team .team-card.team-card--featured .team-card__avatar {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    margin: 0 0 8px;
    object-position: center;
  }

  #team .team-card.team-card--featured .team-card__header {
    grid-column: 1;
    grid-row: 2;
    align-items: center;
  }

  #team .team-card.team-card--featured > p {
    grid-column: 1;
  }

  #team .team-card.team-card--featured .team-card__specialties {
    font-size: 14px;
    line-height: 1.45;
  }

  #team .team-card.team-card--featured .team-card__facts {
    grid-column: 1;
    margin-top: 4px;
  }

  .cases__scroller--stack .cases__nav,
  .cases__scroller--stack .scroller-fade,
  .team__scroller--stack .team__nav,
  .team__scroller--stack .scroller-fade {
    display: none !important;
  }

  .cases__grid--stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
    scrollbar-gutter: auto;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0;
  }

  .cases__grid--stack .case-card,
  .team--stack .team-card {
    flex: initial;
    width: 100%;
    max-width: none;
    scroll-snap-align: none;
  }

  #cases.cases--mobile-load .case-card--cta,
  #cases.cases--mobile-load .cases__note,
  #cases.cases--mobile-load .section__cta {
    display: none;
  }

  #cases .case-card.is-mobile-peek {
    position: relative;
    max-height: 260px;
    overflow: hidden;
  }

  #cases .case-card.is-mobile-peek::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 72%;
    background: linear-gradient(180deg, rgba(31, 90, 69, 0) 0%, rgba(31, 90, 69, 0.82) 58%, #1f5a45 100%);
    pointer-events: none;
  }

  #cases .cases__mobile-load-more {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 20px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--accent-primary);
    font: inherit;
    font-weight: 750;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(55, 46, 51, 0.24);
    transform: translateX(-50%);
    cursor: pointer;
  }

  #cases .cases__mobile-load-more[hidden] {
    display: none;
  }

  #cases .cases__mobile-load-more-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--text-on-contrast);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
  }

  .cases__grid--stack::-webkit-scrollbar,
  .team--stack::-webkit-scrollbar {
    height: 0;
  }

  .team--stack {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0 0 6px;
  }

  .team--stack .team-card {
    flex: 0 0 82%;
    width: auto;
    scroll-snap-align: start;
  }

  .team--stack::-webkit-scrollbar {
    height: 0;
  }

  .process--stack {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0 0 6px;
  }

  .process--stack .process__item {
    flex: 0 0 82%;
    width: auto;
    max-width: none;
    scroll-snap-align: start;
  }

  .process--stack .process__item:nth-child(odd),
  .process--stack .process__item:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
  }

  .process--stack::-webkit-scrollbar {
    height: 0;
  }

  #timeline_0_12 .timeline__nav,
  #timeline_0_12 .scroller-fade {
    display: none !important;
  }

  #timeline_0_12 .timeline {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0 0 6px;
  }

  #timeline_0_12 .timeline__item {
    flex: 0 0 82%;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 0 20px 20px;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #timeline_0_12 .timeline__media-frame {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0 -20px;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    overflow: hidden;
  }

  #timeline_0_12 .timeline__media {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
  }

  #timeline_0_12 .timeline::-webkit-scrollbar {
    height: 0;
  }
}

.page--legal main {
  flex: 1;
  background: #eeeced;
}

.legal-hero {
  padding: 72px 0 36px;
  background: #f8f7f7;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero h1 {
  margin: 12px 0 12px;
  font-family: var(--font-h1);
  font-size: 40px;
  line-height: var(--lh-title);
}

.legal-hero .lead {
  margin: 0;
  color: var(--text-secondary);
  max-width: 720px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs__sep {
  opacity: 0.6;
}

.legal-section {
  padding: 48px 0;
  background: #eeeced;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--border-subtle);
}

/* Last legal block is a recommendation/CTA block with lighter background. */
.legal-section--final {
  background: #f8f7f7;
}

.legal-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
}

.legal-card h3 {
  margin: 0;
  font-size: 18px;
}

.legal-doc {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.legal-doc__icon {
  width: 48px;
  height: 56px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg-subtle);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--text-secondary);
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.legal-note {
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: var(--text-secondary);
}

.legal-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--text-secondary);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-cta {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-nav a.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contact-layout__card {
  display: grid;
  gap: 14px;
}

.contact-layout__item {
  margin: 0;
  color: var(--text-secondary);
}

.contact-layout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-layout__schedule {
  display: grid;
  gap: 8px;
}

.contact-layout__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.contact-layout__map-card .map-placeholder {
  width: 100%;
}

.city-index {
  display: grid;
  gap: 24px;
}

.city-index__popular {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-index__chip {
  font-size: 14px;
  padding: 8px 14px;
}

.city-index__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.city-index__group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 12px;
  height: fit-content;
  align-content: start;
}

.city-index__letter {
  margin: 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.city-index__count {
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px 8px;
}

.city-index__list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.city-index__link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.city-index__link[hidden] {
  display: none !important;
}

.city-index__link:hover {
  color: var(--accent-primary);
}

.city-index__toggle {
  justify-self: start;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: var(--transition);
}

.city-index__toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.city-index__cta {
  margin-top: 4px;
}

.page--qr main {
  background: #eef2f7;
}

.qr-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.qr-links {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.qr-link {
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.qr-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.qr-link:focus-visible {
  outline: 3px solid rgba(29, 26, 28, 0.25);
  outline-offset: 2px;
}

.qr-link__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.qr-link__icon img,
.qr-link__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-link__body {
  display: grid;
  gap: 2px;
}

.qr-link__body strong {
  font-size: 17px;
  line-height: 1.2;
}

.qr-link__body span {
  font-size: 13px;
  opacity: 0.92;
}

.qr-link--phone {
  background: #0f766e;
}

.qr-link--wa {
  background: var(--brand-whatsapp);
}

.qr-link--tg {
  background: var(--brand-telegram);
}

.qr-link--max {
  background: var(--brand-max);
}

.qr-link--tg,
.qr-link--max,
.qr-link--tg:visited,
.qr-link--max:visited,
.qr-link--tg:hover,
.qr-link--max:hover,
.qr-link--tg:focus,
.qr-link--max:focus,
.qr-link--tg:active,
.qr-link--max:active {
  color: #fff;
}

.qr-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.qr-form-card h3 {
  margin: 0 0 12px;
}

.qr-form-card__form {
  max-width: 520px;
}

.qr-form-card__success {
  max-width: 520px;
}

@media (max-width: 1024px) {
  .city-index__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 56px 0 28px;
  }

  .page--legal .legal-hero {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .page--legal .legal-hero .legal-cta {
    display: none;
  }

  .page--legal .legal-hero + .section,
  .page--legal .legal-hero + .legal-section {
    padding-top: 24px;
  }

  .legal-hero h1 {
    font-size: 32px;
  }

  .legal-doc {
    grid-template-columns: 1fr;
  }

  .legal-table th,
  .legal-table td {
    padding: 10px 12px;
  }

  .legal-table {
    border: 0;
    background: transparent;
    display: block;
    border-radius: 0;
  }

  .legal-table thead {
    display: none;
  }

  .legal-table tbody {
    display: grid;
    gap: 10px;
  }

  .legal-table tbody tr {
    display: grid;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .legal-table tbody th {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .legal-table tbody td {
    color: var(--text-secondary);
  }

  .legal-table--stacked-cols td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .city-index__groups {
    grid-template-columns: 1fr;
  }

  .qr-layout {
    grid-template-columns: 1fr;
  }

  .qr-links {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-grid__featured {
    grid-column: span 1;
  }
}

/* Medical license: shared by the home and city landing pages. */
.license-section {
  padding: 0;
  scroll-margin-top: calc(90px + var(--admin-bar-offset));
}

.license-section__card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 0.95fr);
  grid-template-areas: "heading details preview" "heading cta preview";
  column-gap: 32px;
  row-gap: 20px;
  align-items: center;
  padding: 32px 48px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.license-section__heading {
  grid-area: heading;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  padding-right: 28px;
  border-right: 1px solid rgba(31, 90, 69, 0.16);
}

.license-section__icon {
  width: 48px;
  height: 48px;
}

.license-section__heading h2 {
  margin: 0;
  font-family: var(--font-h1);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.22;
}

.license-section__details {
  grid-area: details;
  min-width: 0;
  align-self: end;
}

.license-section__intro,
.license-section__date {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.license-section__number {
  margin: 16px 0 2px;
  color: var(--accent-primary);
  font-family: var(--font-h1);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.license-section__cta {
  grid-area: cta;
  align-self: start;
  min-height: 48px;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
}

.license-section__preview {
  grid-area: preview;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 28px;
  border: 0;
  border-left: 1px solid rgba(31, 90, 69, 0.16);
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}

.license-section__document {
  width: 154px;
  height: auto;
  aspect-ratio: 360 / 509;
  flex: 0 1 154px;
  min-width: 0;
  object-fit: contain;
}

.license-section__preview-meta {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.license-section__zoom {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(31, 90, 69, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: background var(--transition);
}

.license-section__preview:hover .license-section__zoom {
  background: var(--bg-card);
}

.license-section__count {
  font-size: 13px;
  line-height: 1.4;
}

.modal__dialog--license {
  width: min(94%, 860px);
}

.license-viewer {
  min-width: 0;
}

.license-viewer__meta {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.license-viewer__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.license-viewer__pages button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.license-viewer__pages button[aria-pressed="true"] {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.license-viewer__scan {
  display: grid;
  justify-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.license-viewer__scan a {
  display: block;
  width: min(100%, 493px);
}

.license-viewer__scan img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.license-viewer__hint {
  margin: 14px 0;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.license-viewer > a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}

@media (max-width: 1000px) {
  .license-section__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
    grid-template-areas: "heading preview" "details preview" "cta preview";
    padding: 32px;
    gap: 24px 32px;
  }

  .license-section__heading {
    padding-right: 0;
    border-right: 0;
    gap: 12px;
  }

  .license-section__heading h2 {
    font-size: 32px;
  }

  .license-section__preview {
    padding-left: 24px;
    gap: 16px;
  }

  .license-section__document {
    width: 136px;
    flex-basis: 136px;
  }

  .license-section__cta {
    justify-self: start;
    width: auto;
    max-width: 100%;
    padding-inline: 24px;
  }
}

@media (max-width: 768px) {
  main > #license + #faq {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .license-section__card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "details" "preview" "cta";
    gap: 24px;
    padding: 24px;
  }

  .license-section__icon {
    width: 40px;
    height: 40px;
  }

  .license-section__heading h2 {
    font-size: 30px;
    line-height: 1.25;
  }

  .license-section__intro,
  .license-section__date {
    font-size: 14px;
  }

  .license-section__number {
    margin-top: 12px;
    font-size: 24px;
  }

  .license-section__preview {
    justify-self: center;
    width: 100%;
    padding: 0;
    border-left: 0;
    gap: 24px;
  }

  .license-section__document {
    width: 140px;
    flex: 0 1 140px;
  }

  .license-section__cta {
    justify-self: stretch;
    width: 100%;
    min-height: 50px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .modal__dialog--license {
    padding: 38px 16px 20px;
    max-height: 94svh;
  }

  .license-viewer__pages {
    gap: 6px;
  }

  .license-viewer__pages button {
    flex: 1 1 auto;
    padding-inline: 10px;
    font-size: 12px;
  }

  .license-viewer__scan {
    padding: 8px;
  }
}
