/* Lips ad landing — LD clinic style, selling layout
   Visual direction: soft medical trust, LD purple, BA as hero signature.
   Craft from frontend-design + impeccable + emil-design-eng. */

.lips-landing {
  --lips-header-h: 72px;
  --lips-radius: 16px;
  --lips-radius-sm: 12px;
  --lips-surface: #fff;
  --lips-muted: #f7f5f8;
  --lips-line: rgba(23, 20, 23, 0.09);
  --lips-ink: #171417;
  --lips-soft: #5a5460;
  --lips-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --lips-ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --lips-shadow: 0 18px 40px rgba(23, 20, 23, 0.08);
  --lips-shadow-soft: 0 10px 28px rgba(23, 20, 23, 0.05);
}

html.lips-landing {
  scroll-padding-top: calc(var(--lips-header-h, 72px) + 16px);
}

html.lips-landing,
html.lips-landing body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--lips-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

html.lips-landing body {
  overflow-x: clip;
  width: 100%;
}

.lips-landing ::selection {
  background: rgba(var(--brand-rgb, 110, 24, 162), 0.18);
  color: var(--lips-ink);
}

.lips-landing :focus-visible {
  outline: 2px solid rgba(var(--brand-rgb, 110, 24, 162), 0.55);
  outline-offset: 3px;
}

.lips-landing .section,
.lips-landing .lips-hero,
.lips-landing #zapis,
.lips-landing #doctor,
.lips-landing #price,
.lips-landing #faq,
.lips-landing #reviews {
  scroll-margin-top: calc(var(--lips-header-h, 72px) + 16px);
}

/* ---------- Header ---------- */

.lips-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lips-line);
}

.lips-header__inner {
  min-height: var(--lips-header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.lips-header__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.lips-header__nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 2px;
}

.lips-header__nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--lips-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.lips-header__nav a:hover {
  color: var(--brand, #6e18a2);
  background: rgba(var(--accent-rgb, 183, 184, 234), 0.28);
}

.lips-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lips-header__phone {
  display: none;
  font-weight: 600;
  color: var(--lips-ink);
  text-decoration: none;
  white-space: nowrap;
  font-size: 15px;
}

.lips-header__quiz {
  display: none;
}

.lips-header__burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--lips-line);
  border-radius: var(--lips-radius-sm);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lips-header__burger span,
.lips-header__burger span::before,
.lips-header__burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
  position: relative;
}

.lips-header__burger span::before,
.lips-header__burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.lips-header__burger span::before { top: -6px; }
.lips-header__burger span::after { top: 6px; }

.lips-mnav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--lips-line);
  background: #fff;
}

.lips-mnav[hidden] {
  display: none !important;
}

.lips-mnav a,
.lips-mnav button {
  text-align: left;
  padding: 12px 4px;
  font-size: 16px;
  color: #111;
  text-decoration: none;
  background: none;
  border: 0;
}

.lips-mnav .btn {
  text-align: center;
  margin-top: 8px;
}

/* ---------- Hero ---------- */

.lips-hero {
  padding: 18px 0 48px;
  background:
    radial-gradient(720px 420px at 12% -8%, rgba(var(--brand-rgb, 110, 24, 162), 0.07), transparent 52%),
    radial-gradient(920px 360px at 90% -12%, rgba(183, 184, 234, 0.28), transparent 56%),
    linear-gradient(180deg, #faf8fb 0%, #fff 72%);
}

.lips-hero__grid {
  display: grid;
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.lips-hero__content,
.lips-hero__media {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.lips-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lips-hero__lead {
  margin: 0 0 16px;
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 500;
  color: var(--lips-soft);
  line-height: 1.45;
  max-width: 32em;
}

.lips-doctor-chip {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px 10px 8px 8px;
  border: 1px solid var(--lips-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: var(--lips-shadow-soft);
  transition: border-color 160ms var(--lips-ease-out), box-shadow 160ms var(--lips-ease-out), transform 160ms var(--lips-ease-out);
}

.lips-doctor-chip:hover {
  border-color: rgba(var(--brand-rgb, 110, 24, 162), 0.28);
  box-shadow: 0 12px 28px rgba(23, 20, 23, 0.07);
}

.lips-doctor-chip:active {
  transform: scale(0.99);
}

.lips-doctor-chip img,
.lips-doctor-chip__ph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--lips-muted);
  flex-shrink: 0;
}

.lips-doctor-chip__text {
  min-width: 0;
  flex: 1;
}

.lips-doctor-chip strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lips-doctor-chip em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--lips-soft);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lips-doctor-chip__more {
  flex-shrink: 0;
  color: var(--brand, #6e18a2);
  font-size: 13px;
  font-weight: 600;
  padding-right: 4px;
}

.lips-linkish {
  display: inline-block;
  margin-top: 4px;
  color: var(--brand, #6e18a2);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.lips-price-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lips-price-row__product {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--lips-ink);
}

.lips-price-row__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.lips-price-row__sale {
  font-size: clamp(34px, 4.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--brand, #6e18a2);
  line-height: 1;
}

.lips-price-row__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand, #6e18a2), #9b26a8 55%, #d32973);
  line-height: 1.2;
}

.lips-price-row__old {
  color: var(--lips-soft);
  font-size: 14px;
}

.lips-price-row__old s {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  color: #8a8490;
}

.lips-includes-btn {
  flex: 0 1 auto;
  text-align: left;
  border: 1px solid rgba(var(--brand-rgb, 110, 24, 162), 0.18);
  border-radius: 14px;
  background: rgba(var(--brand-rgb, 110, 24, 162), 0.04);
  padding: 11px 14px;
  cursor: pointer;
  transition:
    border-color 160ms var(--lips-ease-out),
    background 160ms var(--lips-ease-out),
    transform 160ms var(--lips-ease-out);
}

.lips-includes-btn:active {
  transform: scale(0.99);
}

.lips-includes-btn:hover {
  border-color: rgba(var(--brand-rgb, 110, 24, 162), 0.35);
  background: rgba(var(--brand-rgb, 110, 24, 162), 0.07);
}

.lips-includes-btn strong {
  display: block;
  color: var(--brand, #6e18a2);
  font-size: 13px;
  margin-bottom: 2px;
}

.lips-includes-btn span {
  display: block;
  font-size: 12px;
  color: var(--lips-soft);
  line-height: 1.3;
}

.lips-cta-stack {
  display: grid;
  gap: 8px;
}

.lips-cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.lips-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 160ms var(--lips-ease-out),
    box-shadow 160ms var(--lips-ease-out),
    background 160ms var(--lips-ease-out),
    border-color 160ms var(--lips-ease-out),
    color 160ms var(--lips-ease-out);
}

.lips-cta:hover {
  transform: translateY(-1px);
}

.lips-cta:active {
  transform: scale(0.98);
}

.lips-cta--primary {
  border: 0;
  min-height: 54px;
  font-size: 16px;
  background: var(--brand, #6e18a2);
  color: #fff;
  box-shadow: 0 14px 32px rgba(var(--brand-rgb, 110, 24, 162), 0.28);
}

.lips-cta--primary:hover {
  box-shadow: 0 16px 34px rgba(var(--brand-rgb, 110, 24, 162), 0.34);
}

.lips-cta--secondary {
  border: 1.5px solid rgba(var(--brand-rgb, 110, 24, 162), 0.28);
  background: #fff;
  color: var(--brand, #6e18a2);
  box-shadow: none;
  font-weight: 600;
}

.lips-cta--ghost {
  border: 0;
  background: transparent;
  color: var(--lips-soft);
  box-shadow: none;
  font-weight: 600;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: rgba(92, 85, 96, 0.35);
  text-underline-offset: 3px;
}

.lips-cta--ghost:hover {
  color: var(--lips-ink);
  transform: none;
}

.lips-gift-line {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(var(--brand-rgb, 110, 24, 162), 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(var(--brand-rgb, 110, 24, 162), 0.08), rgba(183, 184, 234, 0.18));
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.lips-gift-line__mark {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--brand, #6e18a2);
  box-shadow: 0 0 0 5px rgba(var(--brand-rgb, 110, 24, 162), 0.14);
  flex-shrink: 0;
}

.lips-gift-line strong {
  display: block;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.4;
  color: var(--lips-ink);
  font-style: normal;
  font-weight: 700;
}

.lips-gift-line em {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-style: normal;
  color: var(--lips-soft);
  line-height: 1.4;
}

/* legacy gift block if used elsewhere */
.lips-gift {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--lips-line);
  border-radius: 14px;
  background: var(--lips-muted);
  margin: 14px 0 0;
}

/* ---------- Before / After (override shared.css height:260px) ---------- */

.lips-landing .lips-ba-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(183, 184, 234, 0.22), transparent 55%),
    #efeef1;
  border: 1px solid var(--lips-line);
  box-shadow: var(--lips-shadow);
}

.lips-landing .lips-ba-slide {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.lips-landing .ba-compare {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 280px !important;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  --pos: 50%;
  isolation: isolate;
}

.lips-landing .ba-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lips-landing .ba-layer.ba-before,
.lips-landing .ba-layer.ba-after {
  background-color: #efeef1;
  background-repeat: no-repeat;
  background-position: center 28%;
  background-size: cover;
}

.lips-landing .ba-layer.ba-before {
  background: #efeef1 var(--ba-before) center 28% / cover no-repeat;
}

.lips-landing .ba-layer.ba-after {
  background: #efeef1 var(--ba-after) center 28% / cover no-repeat;
  -webkit-clip-path: inset(0 0 0 var(--pos));
  clip-path: inset(0 0 0 var(--pos));
  transform: translateZ(0);
  will-change: clip-path;
}

.lips-landing .ba-hint {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.lips-landing .ba-hint span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

.lips-landing .ba-hint .after {
  background: rgba(var(--brand-rgb, 110, 24, 162), 0.92);
}

.lips-landing .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 48px !important;
  margin-left: -24px;
  transform: none !important;
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  touch-action: none;
}

.lips-landing .ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: auto;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12);
}

.lips-landing .ba-slider-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.lips-landing .ba-compare.is-nudge .ba-slider-circle {
  animation: lips-ba-nudge 1.05s var(--lips-ease-out) 0.55s 2;
}

@keyframes lips-ba-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(11px);
  }
  70% {
    transform: translateX(-8px);
  }
}

.lips-landing .ba-slider-circle svg {
  width: 18px;
  height: 18px;
  color: var(--brand, #6e18a2);
}

.lips-ba-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px 2px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.lips-ba-caption strong {
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.lips-ba-caption span {
  font-size: 12px;
  color: var(--lips-soft);
  flex: 0 1 auto;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.lips-ba-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px 16px;
}

.lips-ba-nav > button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--lips-line);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--lips-ink);
}

.lips-ba-nav > button:hover {
  border-color: rgba(var(--brand-rgb, 110, 24, 162), 0.35);
  color: var(--brand, #6e18a2);
}

.lips-ba-dots {
  display: flex;
  gap: 6px;
}

.lips-ba-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #d4ceda;
  padding: 0;
  cursor: pointer;
}

.lips-ba-dots button.is-on {
  background: var(--brand, #6e18a2);
  width: 20px;
  border-radius: 999px;
}

/* ---------- Sections ---------- */

.section {
  padding: 68px 0;
}

.section-label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--brand, #6e18a2);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-subtitle {
  margin: 0 0 28px;
  color: var(--lips-soft);
  max-width: 40em;
  font-size: 16px;
  line-height: 1.5;
}

.ld-section-surface--muted { background: var(--lips-muted); }
.ld-section-surface--accent {
  background: linear-gradient(180deg, #faf8fb 0%, #f3f2f4 100%);
}

.lips-doubts__grid {
  display: grid;
  gap: 12px;
}

.lips-doubt-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--lips-line);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms var(--lips-ease-out),
    transform 160ms var(--lips-ease-out),
    box-shadow 160ms var(--lips-ease-out);
}

.lips-doubt-card:hover {
  border-color: rgba(var(--brand-rgb, 110, 24, 162), 0.28);
  box-shadow: 0 10px 24px rgba(23, 20, 23, 0.05);
  transform: translateY(-1px);
}

.lips-doubt-card i {
  font-style: normal;
  color: var(--brand, #6e18a2);
  font-size: 22px;
}

.lips-reviews-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.lips-reviews {
  display: grid;
  gap: 14px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 18px), transparent);
}

.lips-reviews-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--lips-line);
  background: #fff;
  color: var(--lips-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--lips-shadow-soft);
  flex-shrink: 0;
  transition: border-color 160ms var(--lips-ease-out), box-shadow 160ms var(--lips-ease-out);
}

.lips-reviews-nav:hover {
  border-color: rgba(var(--brand-rgb, 110, 24, 162), 0.3);
  box-shadow: 0 10px 24px rgba(23, 20, 23, 0.06);
}

.lips-reviews-more {
  margin: 8px 0 0;
  font-size: 14px;
}

.lips-reviews-more a,
.lips-review__src {
  color: var(--brand, #6e18a2);
  font-weight: 600;
  text-decoration: none;
}

.lips-reviews-more a:hover,
.lips-review__src:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lips-review {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--lips-line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--lips-shadow-soft);
}

.lips-review__head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}

.lips-review__head strong {
  font-size: 15px;
}

.lips-review__head span {
  font-size: 12px;
  color: var(--lips-soft);
}

.lips-review p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #2a262c;
}

.lips-benefits {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lips-benefits article {
  padding: 22px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--lips-line);
  box-shadow: var(--lips-shadow-soft);
  transition: border-color 160ms var(--lips-ease-out), box-shadow 160ms var(--lips-ease-out);
}

.lips-benefits article:hover {
  border-color: rgba(var(--brand-rgb, 110, 24, 162), 0.2);
  box-shadow: 0 14px 32px rgba(23, 20, 23, 0.06);
}

.lips-benefits strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.lips-benefits span {
  font-size: 13px;
  color: var(--lips-soft);
  line-height: 1.45;
}

.lips-doctor__card {
  display: grid;
  gap: 22px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--lips-line);
  padding: 22px;
  margin-bottom: 18px;
  grid-template-columns: 1fr;
  align-items: start;
  overflow: hidden;
}

.lips-doctor__photo {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  min-width: 0;
}

.lips-doctor__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  background: var(--lips-muted);
}

.lips-doctor__info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lips-doctor__info h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.lips-doctor__duty {
  margin: 0 0 14px;
  color: var(--lips-soft);
  font-size: 15px;
  line-height: 1.45;
}

.lips-doctor__quote,
.lips-doctor__fallback {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--brand, #6e18a2);
  background: var(--lips-muted);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--lips-ink);
}

.lips-doctor__fallback {
  border-left-color: var(--lips-line);
}

.lips-doctor-team {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 140px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  scroll-snap-type: x mandatory;
}

.lips-doctor-team__item {
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  border-radius: 16px;
  color: inherit;
}

.lips-doctor-team__item:hover img,
.lips-doctor-team__item.is-on img {
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb, 110, 24, 162), 0.35), 0 6px 18px rgba(23, 20, 23, 0.1);
}

.lips-doctor-team__item.is-on span {
  color: var(--brand, #6e18a2);
  font-weight: 600;
}

.lips-doctor-team__item img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 18px rgba(23, 20, 23, 0.1);
  background: var(--lips-muted);
  display: block;
  margin: 0 auto;
}

.lips-doctor-team__item span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--lips-soft);
}

.lips-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.lips-stats div {
  background: var(--lips-muted);
  border-radius: var(--lips-radius-sm);
  padding: 12px;
  min-width: 0;
}

.lips-stats strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.lips-stats span {
  font-size: 12px;
  color: var(--lips-soft);
  overflow-wrap: anywhere;
}

.lips-tabs {
  background: #fff;
  border: 1px solid var(--lips-line);
  border-radius: var(--lips-radius);
  padding: 14px;
  margin-bottom: 18px;
}

.lips-tabs__nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.lips-tabs__nav button {
  border: 0;
  background: var(--lips-muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--lips-ink);
}

.lips-tabs__nav button[aria-selected="true"] {
  background: var(--brand, #6e18a2);
  color: #fff;
}

.lips-tabs__panel ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
}

.lips-trust-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.lips-trust-grid article {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--lips-line);
  padding: 16px;
}

.lips-visit {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--lips-line);
  padding: 22px;
}

.lips-visit__meta {
  color: var(--lips-soft);
  margin-top: 0;
}

.lips-visit ol {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.lips-visit li {
  counter-increment: step;
  padding-left: 48px;
  position: relative;
}

.lips-visit li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lips-muted);
  color: var(--brand, #6e18a2);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lips-visit strong {
  display: block;
}

.lips-visit span {
  font-size: 14px;
  color: var(--lips-soft);
}

.lips-price-block {
  display: grid;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--lips-line);
  border-radius: 22px;
  padding: 24px;
}

.lips-price-block__range {
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 700;
  color: var(--brand, #6e18a2);
  margin: 6px 0 14px;
  letter-spacing: -0.03em;
}

.lips-price-block__promo {
  padding: 14px 16px;
  border-radius: var(--lips-radius-sm);
  background: var(--lips-muted);
}

.lips-includes {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  counter-reset: inc;
}

.lips-includes li {
  counter-increment: inc;
  padding-left: 42px;
  position: relative;
}

.lips-includes li::before {
  content: "0" counter(inc);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--brand, #6e18a2);
}

.lips-compare {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.lips-compare__head,
.lips-compare__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--lips-line);
}

.lips-compare__head {
  font-weight: 700;
  background: var(--lips-muted);
}

.lips-compare__row strong {
  color: var(--brand, #6e18a2);
}

.lips-compare__note {
  font-size: 14px;
  color: var(--lips-soft);
  line-height: 1.5;
}

.lips-whynow {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.lips-whynow article {
  padding: 18px;
  border-radius: var(--lips-radius);
  border: 1px solid var(--lips-line);
  background: #fff;
}

.lips-whynow strong {
  display: block;
  margin-bottom: 6px;
}

.lips-whynow p {
  margin: 0;
  color: var(--lips-soft);
  line-height: 1.5;
}

.lips-faq details {
  background: #fff;
  border: 1px solid var(--lips-line);
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 4px 14px;
}

.lips-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  font-weight: 600;
}

.lips-faq summary::-webkit-details-marker { display: none; }

.lips-faq .a {
  padding: 0 4px 14px;
  color: var(--lips-soft);
  font-size: 14px;
  line-height: 1.55;
}

.lips-final {
  background: linear-gradient(180deg, #faf8fb 0%, #fff 100%);
}

.lips-final__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.lips-final__grid > * {
  min-width: 0;
}

.lips-final__price {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 700;
  color: var(--brand, #6e18a2);
  margin: 10px 0;
  letter-spacing: -0.03em;
}

.lips-final__form {
  background: #fff;
  border: 1px solid var(--lips-line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--lips-shadow);
}

.lips-final__med {
  margin-top: 14px;
  font-size: 12px;
  color: var(--lips-soft);
}

.lips-footer {
  padding: 28px 0 110px;
  border-top: 1px solid var(--lips-line);
  font-size: 13px;
  color: var(--lips-soft);
}

.lips-footer a {
  color: var(--brand, #6e18a2);
}

/* ---------- Mobile sticky bar ---------- */

.lips-fxbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 6px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--lips-line);
  backdrop-filter: blur(12px);
}

.lips-fxbar--2 {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.lips-fxbar button {
  border-radius: 12px;
  padding: 10px 6px;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.lips-fxbar__primary {
  border: 0;
  background: var(--brand, #6e18a2);
  color: #fff;
}

.lips-fxbar__secondary {
  border: 1px solid rgba(var(--brand-rgb, 110, 24, 162), 0.3);
  background: #fff;
  color: var(--brand, #6e18a2);
}

.lips-fxbar__ghost {
  border: 1px solid var(--lips-line);
  background: #fff;
  color: var(--lips-ink);
}

.lips-fxbar strong {
  display: block;
  font-size: 13px;
}

.lips-fxbar span {
  display: block;
  font-size: 11px;
  opacity: 0.85;
}

/* ---------- Modals ---------- */

.lips-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 17, 17, 0.46);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.lips-modal[hidden] {
  display: none !important;
}

.lips-modal__dialog {
  width: min(520px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 20px 20px 16px 16px;
  padding: 22px 18px 18px;
  position: relative;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.22);
  animation: lips-modal-in 220ms var(--lips-ease-out);
  transform-origin: center bottom;
}

@keyframes lips-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lips-modal__dialog,
  .lips-cta,
  .lips-doctor-chip,
  .lips-doubt-card,
  .lips-landing .ba-compare.is-nudge .ba-slider-circle {
    animation: none !important;
    transition: none !important;
  }
}

.lips-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--lips-muted);
  font-size: 22px;
  cursor: pointer;
}

.lips-modal__doc-photo {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 8px;
}

.lips-quiz__step label {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--lips-line);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.lips-quiz__n {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand, #6e18a2);
}

.lips-quiz__q {
  font-weight: 700;
  margin-top: 0;
}

.lips-think-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.lips-think-tabs button {
  flex: 1;
  border: 1px solid var(--lips-line);
  background: #fff;
  border-radius: 999px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
}

.lips-think-tabs button.is-on {
  background: var(--brand, #6e18a2);
  color: #fff;
  border-color: transparent;
}

.lips-chans {
  display: grid;
  gap: 8px;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 35;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--brand, #6e18a2);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(var(--brand-rgb, 110, 24, 162), 0.28);
  cursor: pointer;
}

.to-top.is-show { display: inline-flex; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .lips-cta-row {
    grid-template-columns: 1.15fr 0.9fr;
  }

  .lips-doubts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .lips-header__nav { display: flex; }
  .lips-header__phone { display: inline-flex; }
  .lips-header__quiz { display: inline-flex; }
  .lips-header__burger { display: none; }
  .lips-mnav { display: none !important; }
  .lips-benefits { grid-template-columns: repeat(3, 1fr); }
  .lips-doctor__card--with-photo {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 28px;
  }
  .lips-doctor__photo {
    margin: 0;
    max-width: none;
  }
  .lips-trust-grid { grid-template-columns: 1fr 1fr; }
  .lips-price-block { grid-template-columns: 1fr 1fr; }
  .lips-compare__head,
  .lips-compare__row { grid-template-columns: 0.8fr 1.1fr 1.1fr; }
  .lips-whynow { grid-template-columns: repeat(3, 1fr); }
  .lips-final__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .lips-fxbar { display: none; }
  .lips-footer { padding-bottom: 36px; }
  .lips-modal { align-items: center; }
  .lips-modal__dialog { border-radius: 20px; }
  .to-top { bottom: 24px; }
}

@media (min-width: 960px) {
  .lips-hero {
    padding: 20px 0 48px;
  }

  .lips-hero__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 36px;
    align-items: start;
  }

  /* Content left, BA right — media is first in DOM for mobile */
  .lips-hero__content { order: 1; }
  .lips-hero__media {
    order: 2;
    position: sticky;
    top: calc(var(--lips-header-h) + 12px);
  }

  .lips-landing .ba-compare {
    aspect-ratio: 4 / 5;
    min-height: 380px !important;
    max-height: min(68vh, 580px);
  }

  .lips-cta-row {
    grid-template-columns: 1.15fr 0.9fr;
  }
}

@media (min-width: 1200px) {
  .lips-hero__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 40px;
  }

  .lips-landing .ba-compare {
    aspect-ratio: 4 / 5;
    min-height: 440px !important;
    max-height: min(72vh, 620px);
  }

  .section {
    padding: 84px 0;
  }
}

@media (max-width: 599px) {
  .lips-hero {
    padding-top: 10px;
  }

  .lips-landing .lips-ba-carousel {
    border-radius: 20px;
  }

  .lips-landing .ba-compare {
    aspect-ratio: 1 / 1;
    min-height: 260px !important;
    max-height: min(72vw, 420px);
  }

  .lips-landing .ba-layer.ba-before,
  .lips-landing .ba-layer.ba-after {
    background-position: center 32%;
  }

  .lips-ba-caption {
    flex-wrap: wrap;
    padding: 10px 12px 2px;
  }

  .lips-ba-caption span {
    white-space: normal;
  }

  .lips-cta-row {
    grid-template-columns: 1fr;
  }

  .lips-cta--ghost {
    text-decoration: none;
    border: 1px solid var(--lips-line);
    border-radius: 14px;
  }

  .lips-reviews-wrap {
    grid-template-columns: 1fr;
  }

  .lips-reviews-nav {
    display: none;
  }

  .lips-reviews {
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent);
  }

  .lips-fxbar strong {
    font-size: 12px;
  }

  .lips-fxbar span {
    font-size: 10px;
  }
}

/* ---------- Bitrix form: consents must not collapse to 18px column ---------- */

.lips-bitrix-form.ld-modal-form--bitrix,
.lips-landing .lips-bitrix-form {
  width: 100%;
  max-width: none;
}

.lips-bitrix-form form {
  width: 100%;
}

.lips-bitrix-form .ld-laser-captcha {
  width: 100%;
  box-sizing: border-box;
}

.lips-bitrix-form .ld-modal-consents {
  display: block;
  width: 100%;
  min-width: 0;
}

.lips-bitrix-form .ld-modal-consents__toggle {
  display: none;
}

.lips-bitrix-form .ld-modal-consents__details {
  display: block;
}

.lips-bitrix-form .ld-modal-consents__item {
  display: block;
  overflow: hidden;
  width: 100%;
  margin: 0 0 12px;
}

.lips-bitrix-form .ld-modal-consents .chb,
.lips-bitrix-form .ld-modal-consents input[type="checkbox"] {
  float: left;
  margin: 4px 10px 0 0;
}

.lips-bitrix-form .ld-modal-consents .chb_label,
.lips-bitrix-form .ld-modal-consents label {
  display: block !important;
  overflow: hidden;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  grid-template-columns: none !important;
}

.lips-bitrix-form .ld-modal-consents .chb_label span,
.lips-bitrix-form .chb_label span {
  display: inline !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

.lips-bitrix-form .chb_label {
  display: block !important;
  max-width: none !important;
  grid-template-columns: none !important;
}

.lips-bitrix-form .btn,
.lips-bitrix-form input[type="submit"],
.lips-bitrix-form .submit {
  width: 100%;
}
