/* ============================================================
   Посадкові для реклами (шаблон page-lp.php), усі класи з префіксом lp-.
   Підключається лише на цих сторінках, після стилів теми.
   Палітра: циркон (холодний білий), чорнило, фірмові зелений і синій,
   теплі відтінки шкали кольору зубів — лише в «наряді».
   ============================================================ */
.lp {
  --zr: #f2f5f7;
  --paper: #ffffff;
  --ink: #0c2231;
  --ink-2: #4a5b68;
  --line: #d4dce2;
  --green: #80bc42;
  --green-ink: #3a6412;
  --blue: #016aa3;
  --blue-soft: #e3f0f8;
  --shade: #efe2cb;
  --display: "Unbounded", "Montserrat", sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  /* висота власної шапки посадкової (вона закріплена вгорі) */
  --head: 68px;

  background: var(--zr);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html:has(.lp) {
  scroll-behavior: smooth;
}

/* Скидання глобальних стилів теми всередині посадкової.
   :where тримає специфічність низькою, щоб класи компонентів нижче їх перекривали. */
:where(.lp) h1,
:where(.lp) h2,
:where(.lp) h3,
:where(.lp) p,
:where(.lp) ul,
:where(.lp) ol,
:where(.lp) dl,
:where(.lp) dd,
:where(.lp) figure {
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
}

:where(.lp) h1,
:where(.lp) h2,
:where(.lp) h3 {
  line-height: 1.3;
  letter-spacing: normal;
}

:where(.lp) p {
  font-size: inherit;
  line-height: inherit;
}

:where(.lp) ul,
:where(.lp) ol {
  list-style: none;
}

:where(.lp) ul li,
:where(.lp) ol li {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

:where(.lp) a {
  color: inherit;
  text-decoration: none;
}

:where(.lp) a:hover,
:where(.lp) a:focus,
:where(.lp) a:active {
  color: inherit;
}

:where(.lp) img {
  display: block;
  max-width: 100%;
}

:where(.lp) dt {
  font-weight: 400;
}

.lp :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.lp-mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Кнопки ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.lp-btn:hover {
  background: #8fcb50;
  transform: translateY(-2px);
}

.lp-btn--line {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.lp-btn--line:hover {
  background: var(--ink);
  color: #fff;
}

.lp-btn--sm {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
}

.lp-btn svg {
  flex-shrink: 0;
}

/* ---------- Шапка посадкової: логотип, береги, меню, запис в один ряд ---------- */
.lp-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 90;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 245, 247, 0.92);
  backdrop-filter: blur(12px);
}

/* під панеллю адміністратора WordPress */
html:has(#wpadminbar) .lp-top {
  top: 32px;
}

.lp-top__in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--head);
}

.lp-top__logo a {
  display: block;
}

/* тема додає логотипу внутрішній відступ — прибираємо */
.lp-top__logo img {
  width: auto;
  height: 50px;
  padding: 0;
}

/* перемикач берегів */
.lp-bank {
  position: relative;
  display: flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.lp-bank__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lp-bank__btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.lp-bank__btn.is-right::before {
  background: var(--blue);
}

.lp-bank__btn:hover {
  background: var(--zr);
}

.lp-bank__btn[aria-expanded="true"] {
  background: var(--ink);
  color: #fff;
}

/* картка клініки під перемикачем */
.lp-pop {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 5;
  width: 350px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(12, 34, 49, 0.14);
  font-size: 15px;
  line-height: 1.55;
}

.lp-pop[hidden] {
  display: none;
}

.lp-pop .lp-mono {
  color: var(--ink-2);
}

.lp-pop__name {
  margin: 2px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.lp-pop__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-top: 12px;
  font-weight: 700;
}

.lp-pop__links a {
  border-bottom: 1.5px solid currentColor;
}

.lp-pop__links a:hover {
  color: var(--blue);
}

.lp-pop__tel {
  font-size: 18px;
}

/* меню */
.lp-top__nav {
  margin-left: auto;
}

.lp-top__nav ul {
  display: flex;
  gap: 20px;
}

.lp-top__nav a {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.lp-top__nav a:hover {
  color: var(--blue);
}

.lp-top__cta {
  flex-shrink: 0;
}

.lp-top__burger {
  display: none;
}

/* ноутбуки: той самий ряд, але щільніше */
@media (min-width: 1200px) and (max-width: 1399px) {
  .lp-top__in {
    gap: 16px;
  }

  .lp-top__nav ul {
    gap: 14px;
  }

  .lp-top__nav a {
    font-size: 14px;
  }

  .lp-bank__btn {
    padding: 0 9px;
    font-size: 13px;
  }
}

/* планшет і мобільний: меню ховається під кнопку */
@media (max-width: 1199px) {
  .lp-top__nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 15px;
    left: 15px;
    display: none;
    margin: 0;
    padding: 6px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 18px 40px rgba(12, 34, 49, 0.14);
  }

  .lp-top__nav.is-open {
    display: block;
  }

  .lp-top__nav ul {
    flex-direction: column;
    gap: 0;
  }

  .lp-top__nav li + li {
    border-top: 1px solid var(--line);
  }

  .lp-top__nav a {
    display: block;
    padding: 13px 0;
    font-size: 16px;
    font-weight: 600;
  }

  .lp-top__cta {
    margin-left: auto;
  }

  .lp-top__burger {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    cursor: pointer;
  }

  .lp-top__burger span {
    width: 18px;
    height: 2px;
    background: var(--ink);
    box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
  }

  .lp-top__burger[aria-expanded="true"] {
    background: var(--ink);
  }

  .lp-top__burger[aria-expanded="true"] span {
    background: #fff;
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
  }

  .lp-bank {
    position: static;
  }

  .lp-pop {
    top: calc(100% + 8px);
    right: 15px;
    left: 15px;
    width: auto;
  }
}

@media (max-width: 782px) {
  html:has(#wpadminbar) .lp-top {
    top: 46px;
  }
}

@media (max-width: 575px) {
  .lp {
    --head: 60px;
  }

  .lp-top__in {
    gap: 10px;
  }

  .lp-top__logo img {
    height: 44px;
  }

  .lp-bank__btn {
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
  }

  .lp-bank__btn::before {
    display: none;
  }

  /* запис на мобільному — у нижній панелі */
  .lp-top__cta {
    display: none;
  }

  .lp-top__burger {
    margin-left: auto;
  }
}

/* ---------- Перший екран ---------- */
.lp-hero {
  padding: calc(var(--head) + 44px) 0 76px;
}

.lp-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 64px;
  align-items: start;
}

.lp-hero__eyebrow {
  color: var(--blue);
}

.lp-hero h1 {
  margin: 16px 0 20px;
  font-family: var(--display);
  font-size: clamp(30px, 4.5vw, 58px) !important;
  font-weight: 600;
  line-height: 1.1 !important;
  letter-spacing: -0.02em;
}

.lp-mark {
  padding: 0.02em 0.22em 0.06em;
  border-radius: 0.2em;
  background: var(--green);
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lp-hero__lead {
  max-width: 560px;
  color: var(--ink-2);
  font-size: 18px;
}

.lp-hero__lead b {
  color: var(--ink);
  font-weight: 600;
}

/* Форма запису */
.lp-form {
  max-width: 560px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.lp-form {
  scroll-margin-top: calc(var(--head) + 16px);
}

.lp-form__title {
  display: block;
  margin-bottom: 14px;
  color: var(--ink-2);
}

/* Fluent Forms усередині картки запису.
   !important — плагін і тема задають ці властивості з вищою специфічністю. */
.lp-form .fluentform fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* прихований заголовок форми не повинен займати клітинку сітки */
.lp-form .fluentform fieldset > legend {
  position: absolute;
}

.lp-form .ff-el-group {
  margin: 0 !important;
}

/* підписи полів лишаються для екранних читачів
   (!important — інакше плагін лишає під ними порожній рядок) */
.lp-form .ff-el-input--label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* підпис над полем телефону видно: без нього не всі розуміли, що вводити */
.lp-form .ff-el-group:has(input[type="tel"]) .ff-el-input--label {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0 0 6px !important;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}

.lp-form .ff-el-group:has(input[type="tel"]) .ff-el-input--label label {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.lp-form .ff-el-input--label label::after {
  display: none !important;
}

/* необов’язкове текстове поле на посадковій не показуємо */
.lp-form .ff-el-group:has(textarea) {
  display: none;
}

.lp-form .ff-el-input--content {
  display: block;
  width: 100%;
}

.lp-form input.ff-el-form-control {
  width: 100%;
  height: 54px !important;
  padding: 0 16px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 14px !important;
  background: var(--zr) !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  font-family: var(--body);
  font-size: 17px !important;
  font-weight: 500;
}

.lp-form input.ff-el-form-control:focus {
  border-color: var(--blue) !important;
  background: #fff !important;
}

/* вибір клініки — перемикач із двох половин */
.lp-form .ff_list_buttons .ff-el-input--content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 54px;
  padding: 4px;
  border-radius: 14px;
  background: var(--zr);
}

.lp-form .ff_list_buttons .ff-el-form-check {
  display: block;
  margin: 0 !important;
}

.lp-form .ff_list_buttons .ff-el-form-check label {
  display: block;
  height: 100%;
  margin: 0 !important;
}

.lp-form .ff_list_buttons .ff-el-form-check label > span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  line-height: 1.2 !important;
  cursor: pointer;
}

.lp-form .ff_list_buttons .ff-el-form-check.ff_item_selected label > span,
.lp-form .ff_list_buttons input:checked + span {
  background: var(--ink) !important;
  color: #fff !important;
}

.lp-form .ff_submit_btn_wrapper {
  grid-column: 1 / -1;
}

.lp-form .ff-btn-submit {
  width: 100% !important;
  height: 54px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--green) !important;
  color: var(--ink) !important;
  font-family: var(--body);
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  transition: transform 0.2s, background 0.2s;
}

.lp-form .ff-btn-submit:hover {
  background: #8fcb50 !important;
  color: var(--ink) !important;
  transform: translateY(-2px);
}

.lp-form .error.text-danger,
.lp-form .ff-el-is-error .text-danger {
  margin-top: 4px;
  font-size: 13px;
}

.lp-form .ff-message-success {
  margin: 0;
  padding: 16px;
  border: 1.5px solid var(--green);
  border-radius: 14px;
  background: #f1f8e9;
  font-weight: 600;
}

.lp-form__note {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.lp-form__note a {
  text-decoration: underline;
}

.lp-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
  font-size: 15px;
}

.lp-alt span {
  color: var(--ink-2);
}

.lp-alt a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border-bottom: 1.5px solid currentColor;
}

.lp-alt a:hover {
  color: var(--blue);
}

/* «Дізнайтеся ціну для свого випадку» — фото в месенджер */
.lp-foto {
  max-width: 560px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.lp-foto--wide {
  max-width: none;
  margin-top: 28px;
  background: var(--paper);
}

.lp-foto__title {
  margin-bottom: 4px;
  font-weight: 700;
}

.lp-foto p:not(.lp-foto__title) {
  color: var(--ink-2);
}

.lp-foto .lp-foto__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.lp-foto__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--zr);
  color: var(--ink);
  font-weight: 700;
}

.lp-foto__links .lp-foto__viber svg {
  color: #7360f2;
}

.lp-foto__links .lp-foto__tg svg {
  color: #0b78bf;
}

/* Довіра */
.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.lp-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-trust b {
  color: var(--ink);
  font-weight: 700;
}

.lp-trust svg {
  color: #e8a400;
}

/* ---------- «Наряд» — головний елемент ---------- */
.lp-ticket {
  position: relative;
  max-width: 440px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--paper);
  transform: rotate(1.3deg);
  transform-origin: 50% 0;
}

/* перфорація знизу */
.lp-ticket::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  left: -1px;
  height: 12px;
  background: radial-gradient(circle at 10px 12px, var(--zr) 6px, transparent 6.5px) repeat-x;
  background-size: 20px 12px;
}

.lp-ticket__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
}

.lp-ticket__head b {
  color: var(--ink);
  font-weight: 700;
}

/* сітка 3D-моделювання */
.lp-ticket__model {
  display: grid;
  place-items: center;
  height: 210px;
  background-color: var(--blue-soft);
  background-image:
    linear-gradient(rgba(1, 106, 163, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 106, 163, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center;
}

.lp-crown {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 14px 14px rgba(12, 34, 49, 0.18));
}

.lp-crown__body {
  fill: var(--shade);
  transition: fill 0.35s;
}

/* імплант і брекети дрібніші за коронку — малюнок трохи більший */
.lp-crown--wide {
  width: 176px;
  height: 176px;
}

.lp-ticket__rows {
  padding: 18px 22px 6px;
}

.lp-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
}

.lp-row dt {
  color: var(--ink-2);
}

.lp-row i {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
}

.lp-row dd {
  font-weight: 600;
  text-align: right;
}

/* шкала відтінків */
.lp-shades {
  padding: 10px 22px 18px;
}

.lp-shades__label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

.lp-shades__label output {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
}

.lp-shades__tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.lp-shades__tabs label {
  position: relative;
  display: block;
  cursor: pointer;
}

.lp-shades__tabs input {
  position: absolute;
  opacity: 0;
}

.lp-shades__tabs span {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 58px;
  padding-bottom: 6px;
  border: 1.5px solid rgba(12, 34, 49, 0.14);
  border-radius: 10px 10px 16px 16px;
  background: var(--c);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.2s, border-color 0.2s;
}

.lp-shades__tabs input:checked + span {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
  transform: translateY(-5px);
}

.lp-shades__tabs input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.lp-shades__hint {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

/* лінія відриву і підсумок */
.lp-ticket__total {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 34px;
  border-top: 2px dashed var(--line);
}

.lp-ticket__total::before,
.lp-ticket__total::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--zr);
}

.lp-ticket__total::before {
  left: -11px;
}

.lp-ticket__total::after {
  right: -11px;
}

.lp-ticket__total span {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
}

.lp-ticket__total strong {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ---------- Секції ---------- */
.lp-sec {
  padding: 84px 0;
  scroll-margin-top: calc(var(--head) + 16px);
}

.lp-sec--paper {
  background: var(--paper);
}

.lp-sec__head {
  max-width: 760px;
  margin-bottom: 40px;
}

.lp-sec__head .lp-mono {
  color: var(--blue);
}

.lp-sec h2 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(24px, 3.1vw, 38px) !important;
  font-weight: 500;
  line-height: 1.18 !important;
  letter-spacing: -0.015em;
}

.lp-sec__head p {
  margin-top: 14px;
  color: var(--ink-2);
}

/* ---------- Що входить у ціну ---------- */
.lp-incl {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.lp-incl__box {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.lp-incl__box--main {
  background: var(--zr);
}

.lp-incl__box h3 {
  margin-bottom: 16px;
  font-size: 19px !important;
  font-weight: 700;
}

.lp-check li {
  position: relative;
  padding: 11px 0 11px 34px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
}

.lp-check li:first-child {
  border-top: 0;
}

.lp-check li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 2px;
  width: 16px;
  height: 9px;
  border: solid var(--green-ink);
  border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg) scale(0.8);
}

.lp-incl__sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px dashed var(--line);
  font-weight: 600;
}

.lp-incl__sum strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  white-space: nowrap;
}

.lp-plain li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
}

.lp-plain li:first-child {
  border-top: 0;
}

.lp-incl__box p a {
  text-decoration: underline;
}

.lp-doc h3 a:hover {
  color: var(--blue);
}

.lp-incl__box p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 15px;
}

/* інші коронки */
.lp-prices {
  margin-top: 28px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.lp-prices h3 {
  margin-bottom: 8px;
  font-size: 19px !important;
  font-weight: 700;
}

.lp-prices .lp-row {
  padding: 10px 0;
  font-size: 16px;
}

.lp-prices .lp-row dt {
  color: var(--ink);
}

.lp-prices .lp-row dd {
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
}

.lp-prices .lp-row--now dt {
  font-weight: 700;
}

.lp-prices .lp-row--now dd {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--green);
}

.lp-prices p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14px;
}

/* ---------- Як проходить лікування ---------- */
.lp-rail {
  display: grid;
  grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr));
  counter-reset: st;
}

.lp-rail li {
  position: relative;
  padding: 34px 18px 0 0;
  counter-increment: st;
}

/* рейка і станція */
.lp-rail li::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--ink);
}

.lp-rail li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--zr);
}

.lp-rail li:last-child::before {
  right: auto;
  width: 18px;
}

.lp-rail__n {
  color: var(--ink-2);
}

.lp-rail__n::before {
  content: "Крок " counter(st);
}

.lp-rail h3 {
  margin: 6px 0 8px;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.3 !important;
}

.lp-rail p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.lp-rail__tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

/* етап лабораторії — лінійка на 5 робочих днів */
.lp-rail li.is-lab::before {
  top: 2px;
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--paper) 0 2px, transparent 2px 20%) 0 0 / 100% 100%,
    var(--blue);
}

.lp-rail li.is-lab::after {
  border-color: var(--blue);
  background: var(--blue);
}

.lp-rail li.is-lab .lp-rail__tag {
  background: var(--blue);
  box-shadow: none;
  color: #fff;
}

/* етап очікування (приживлення, активне лікування) — пунктирна рейка */
.lp-rail li.is-wait::before {
  background: repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 13px);
}

.lp-rail li.is-wait .lp-rail__tag {
  background: var(--blue-soft);
  box-shadow: none;
  color: var(--blue);
}

/* ---------- Кейси ---------- */
.lp-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.lp-ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #1a1a1a;
}

.lp-ba__half {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* фото — колаж 2×2: ліворуч «до», праворуч «після»; беремо нижній ряд (усмішка) */
.lp-ba__half img {
  position: absolute;
  top: -100%;
  width: 200%;
  max-width: none;
  height: 200%;
}

.lp-ba__half--after img {
  left: -100%;
}

.lp-ba__half--before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.lp-ba__half--before img {
  left: 0;
}

.lp-ba__tag {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(12, 34, 49, 0.78);
  color: #fff;
}

.lp-ba__tag--b {
  left: 12px;
}

.lp-ba__tag--a {
  right: 12px;
  background: var(--green);
  color: var(--ink);
}

.lp-ba__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}

.lp-ba__bar::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  transform: translate(-50%, -50%);
}

.lp-ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.lp-ba:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.lp-cases figcaption {
  margin-top: 10px;
  color: var(--ink-2);
}

.lp-cases__note {
  max-width: 760px;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: 14px;
}

/* готові фото «до / після» — рядом, без повзунка */
.lp-cases--pairs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.lp-pair {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.lp-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* кейси з перемикачем «До / Після / Знімок» (cases.mode = 'trio') */
.lp-cases--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lp-trio {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.lp-trio__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--ink);
}

.lp-trio__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lp-trio[data-view="before"] .lp-trio__img--before,
.lp-trio[data-view="after"] .lp-trio__img--after,
.lp-trio[data-view="xray"] .lp-trio__img--xray {
  opacity: 1;
}

.lp-trio__xtag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(12, 34, 49, 0.72);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}

.lp-trio[data-view="xray"] .lp-trio__xtag {
  opacity: 1;
}

.lp-trio__tabs {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--zr);
}

.lp-trio__tabs button {
  flex: 1;
  min-height: 42px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lp-trio__tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.lp-trio__tabs button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.lp-cases .lp-trio figcaption {
  margin-top: 14px;
}

.lp-trio figcaption .lp-mono {
  color: var(--blue);
}

.lp-trio__title {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.lp-trio__text {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .lp-trio__img,
  .lp-trio__xtag {
    transition: none;
  }
}

/* планшет: картки гортаються вбік, видно край наступної */
@media (max-width: 1023px) {
  .lp-cases.lp-cases--trio {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .lp-cases--trio::-webkit-scrollbar {
    display: none;
  }

  .lp-trio {
    scroll-snap-align: start;
  }
}

@media (max-width: 719px) {
  .lp-cases.lp-cases--trio {
    grid-auto-columns: 86%;
    gap: 14px;
  }
}

/* ---------- Лабораторія (єдина темна секція) ---------- */
.lp-sec--ink {
  background: var(--ink);
  color: #fff;
}

.lp-sec--ink .lp-sec__head .lp-mono {
  color: var(--green);
}

.lp-sec--ink .lp-sec__head p {
  color: #b9c7d1;
}

.lp-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 36px;
  font-family: var(--display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
}

.lp-chain i {
  width: 46px;
  height: 2px;
  background: var(--green);
}

.lp-vs {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.lp-vs__row {
  display: grid;
  grid-template-columns: 0.8fr repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 16px;
  line-height: 1.45;
}

.lp-vs__row > :first-child {
  color: #b9c7d1;
}

.lp-vs__row > :nth-child(2) {
  font-weight: 600;
}

.lp-vs__row > :nth-child(n + 3) {
  color: #8fa2af;
}

.lp-vs__row--head {
  color: #b9c7d1;
}

.lp-vs__row--head > :nth-child(2) {
  color: var(--green);
  font-weight: 400;
}

/* ---------- Лікарі ---------- */
.lp-docs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.lp-docs__all {
  margin-top: 36px;
}

.lp-doc__photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: var(--line);
}

.lp-doc__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.lp-doc h3 {
  margin-top: 14px;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.3 !important;
}

.lp-doc p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.lp-doc .lp-doc__exp {
  margin-top: 2px;
  color: var(--ink);
  font-weight: 600;
}

/* картка «Усі лікарі», коли лікарів у ряду менше чотирьох */
.lp-doc--all a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  padding: 24px;
  border: 1.5px dashed var(--ink-2);
  border-radius: 18px;
  font-family: var(--display);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.25;
  transition: background 0.2s, color 0.2s;
}

.lp-doc--all a span:last-child {
  font-size: 1.6em;
}

.lp-doc--all a:hover {
  border-style: solid;
  background: var(--ink);
  color: #fff;
}

.lp-doc__where {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
  color: var(--ink);
}

.lp-doc__where span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
}

.lp-doc__where span.is-right::before {
  background: var(--blue);
}

/* ---------- Відгуки ---------- */
.lp-rev {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}

.lp-rev__score .lp-mono,
.lp-end__eyebrow {
  color: var(--blue);
}

.lp-rev__score strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lp-rev__stars {
  display: flex;
  gap: 4px;
  margin: 14px 0 10px;
  color: #e8a400;
}

.lp-rev__score p {
  color: var(--ink-2);
  font-size: 15px;
}

.lp-rev__score a {
  display: inline-block;
  margin-top: 14px;
  border-bottom: 1.5px solid currentColor;
  font-size: 15px;
  font-weight: 700;
}

.lp-rev__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}

.lp-rev__list li {
  padding-left: 22px;
  border-left: 2px solid var(--line);
}

.lp-rev__list p {
  font-size: 16px;
  line-height: 1.55;
}

.lp-rev__list b {
  display: block;
  margin-top: 14px;
  font-size: 15px;
}

.lp-rev__list span {
  color: var(--ink-2);
  font-size: 13px;
}

/* ---------- Запитання ---------- */
.lp-faq {
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.lp-faq details {
  border-bottom: 1px solid var(--line);
}

.lp-faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 4px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  transition: transform 0.2s;
}

.lp-faq details[open] summary::after {
  transform: rotate(45deg);
}

.lp-faq details p {
  padding: 0 44px 22px 0;
  color: var(--ink-2);
}

/* ---------- Фінал: запис і клініки ---------- */
.lp-end {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.lp-end .lp-form {
  margin-top: 26px;
}

.lp-end__lead {
  margin-top: 14px;
  color: var(--ink-2);
}

.lp-clinics {
  display: grid;
  gap: 18px;
}

.lp-clinic {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 6px 18px 18px 6px;
  background: var(--paper);
}

.lp-clinic.is-right {
  border-left-color: var(--blue);
}

.lp-clinic .lp-mono {
  color: var(--ink-2);
}

.lp-clinic h3 {
  margin: 4px 0 10px;
  font-size: 19px !important;
  font-weight: 700;
}

.lp-clinic p {
  font-size: 15px;
  line-height: 1.55;
}

.lp-clinic__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
}

.lp-clinic__links a {
  border-bottom: 1.5px solid currentColor;
}

/* ---------- Підвал посадкової ---------- */
.lp-foot {
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.lp-foot__menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.lp-foot__menu a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.lp-foot__menu a:hover {
  color: var(--blue);
}

.lp-foot__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 48px;
  align-items: start;
}

.lp-foot__links a {
  text-decoration: underline;
  white-space: nowrap;
}

.lp-foot__links a:hover {
  color: var(--ink);
}

/* ---------- Нижня панель на мобільному ---------- */
.lp-bar {
  display: none;
}

/* ---------- Поява першого екрана ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero__text > * {
    animation: lp-up 0.6s both;
  }

  .lp-hero__text > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .lp-hero__text > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .lp-hero__text > :nth-child(4) {
    animation-delay: 0.18s;
  }

  .lp-ticket {
    animation: lp-drop 0.8s 0.2s both cubic-bezier(0.2, 0.9, 0.3, 1.2);
  }

  @keyframes lp-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }

  @keyframes lp-drop {
    from {
      opacity: 0;
      transform: translateY(-26px) rotate(-3deg);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lp * {
    transition: none !important;
  }
}

/* ---------- Планшет ---------- */
@media (max-width: 1023px) {
  .lp-hero__in {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .lp-ticket {
    margin: 0 auto;
    transform: none;
  }

  .lp-incl,
  .lp-end,
  .lp-rev {
    grid-template-columns: 1fr;
  }

  .lp-rail {
    grid-template-columns: 1fr;
  }

  .lp-rail li {
    padding: 0 0 26px 38px;
  }

  .lp-rail li::before {
    top: 0;
    right: auto;
    bottom: 0;
    left: 8px;
    width: 2px;
    height: auto;
  }

  .lp-rail li:last-child::before {
    width: 2px;
    height: 18px;
  }

  .lp-rail li.is-lab::before {
    top: 0;
    left: 2px;
    width: 14px;
    height: auto;
    background:
      repeating-linear-gradient(180deg, var(--paper) 0 2px, transparent 2px 20%) 0 0 / 100% 100%,
      var(--blue);
  }

  .lp-rail li.is-wait::before {
    background: repeating-linear-gradient(180deg, var(--ink) 0 7px, transparent 7px 13px);
  }

  .lp-cases--pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-docs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-rev__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Мобільний ---------- */
@media (max-width: 719px) {
  .lp {
    font-size: 16px;
  }

  .lp-hero {
    padding: calc(var(--head) + 22px) 0 52px;
  }

  .lp-hero h1 {
    margin: 12px 0 14px;
  }

  .lp-hero__lead {
    font-size: 16px;
  }

  .lp-form {
    margin-top: 20px;
    padding: 16px;
  }

  .lp-form .fluentform fieldset {
    grid-template-columns: 1fr;
  }

  .lp-sec {
    padding: 56px 0;
  }

  .lp-sec__head {
    margin-bottom: 28px;
  }

  .lp-incl__box,
  .lp-prices {
    padding: 20px 18px;
  }

  .lp-cases {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* фото «до / після» на телефоні гортаються вбік */
  .lp-cases--pairs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .lp-cases--pairs::-webkit-scrollbar {
    display: none;
  }

  .lp-cases--pairs figure {
    scroll-snap-align: start;
  }

  .lp-vs__row {
    grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
    gap: 4px 16px;
    font-size: 15px;
  }

  .lp-vs__row > :first-child {
    grid-column: 1 / -1;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .lp-vs__row--head > :first-child {
    display: none;
  }

  /* три і більше варіантів: кожен рядок — стовпчиком, з назвою варіанта біля значення */
  .lp-vs--stack .lp-vs__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lp-vs--stack .lp-vs__row--head {
    display: none;
  }

  .lp-vs--stack .lp-vs__row > :first-child {
    color: #fff;
    font-family: var(--body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
  }

  .lp-vs--stack .lp-vs__row > [data-h] {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 12px;
  }

  .lp-vs--stack .lp-vs__row > [data-h]::before {
    content: attr(data-h);
    padding-top: 3px;
    color: #8fa2af;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .lp-vs--stack .lp-vs__row > [data-h]:nth-child(2)::before {
    color: var(--green);
  }

  .lp-docs {
    gap: 16px 12px;
  }

  .lp-foot__menu ul {
    gap: 6px 22px;
  }

  .lp-foot__in {
    grid-template-columns: 1fr;
  }

  .lp-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 54px 54px 54px 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
  }

  .lp-bar a {
    display: grid;
    place-items: center;
    height: 54px;
    border-radius: 14px;
    background: var(--zr);
    font-weight: 700;
  }

  .lp-bar a:last-child {
    padding: 0 14px;
    background: var(--green);
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
  }

  .lp-bar .lp-bar__tg {
    color: #0b78bf;
  }

  .lp-bar .lp-bar__viber {
    color: #7360f2;
  }
}

/* три іконки + кнопка на найвужчих телефонах */
@media (max-width: 374px) {
  .lp-bar {
    grid-template-columns: 46px 46px 46px 1fr;
    gap: 6px;
  }

  .lp-bar a:last-child {
    padding: 0 8px;
    font-size: 14px;
  }
}

/* місце під нижню панель і чат над нею (тільки на мобільному) */
@media (max-width: 719px) {
  body:has(.lp-bar) {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  body:has(.lp-bar) .helpcrunch-iframe-wrapper iframe {
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }
}

/* ============================================================
   Бонуси за онлайн-запис, опитування «Розрахувати вартість», плашка знизу
   ============================================================ */

/* Бонуси у формі запису */
.lp-bonus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  list-style: none;
}

.lp-bonus li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f8e9;
  color: var(--green-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.lp-bonus li::before {
  content: "✓";
  font-weight: 800;
}

/* Посилання на опитування під формою першого екрана */
.lp-calc {
  margin-top: 16px;
}

.lp-calc .lp-btn {
  max-width: 560px;
  width: 100%;
  min-height: 50px;
  font-size: 15px;
}

/* Форма без картки: всередині опитування і плашки */
.lp-form--bare {
  max-width: none;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Опитування */
.lp-quiz {
  margin-top: 28px;
  padding: 26px 30px;
  border: 1.5px solid var(--blue);
  border-radius: 20px;
  background: var(--paper);
  scroll-margin-top: calc(var(--head) + 16px);
}

.lp-quiz__head {
  margin-bottom: 20px;
}

.lp-quiz__head .lp-mono {
  color: var(--blue);
}

.lp-quiz__head h3 {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
}

.lp-quiz__head p:last-child {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.lp-quiz__step[hidden] {
  display: none;
}

.lp-quiz__n {
  color: var(--ink-2);
}

.lp-quiz__q {
  margin: 6px 0 14px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

/* навіщо лікарю ця відповідь — дрібний рядок під запитанням */
.lp-quiz__why {
  max-width: 640px;
  margin: -6px 0 16px;
  padding-left: 12px;
  border-left: 2px solid var(--green);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

/* підсумок відповідей на кроці з формою */
.lp-quiz__sum {
  max-width: 640px;
  margin: -4px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.lp-quiz__sum[hidden] {
  display: none;
}

.lp-quiz__opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 640px;
}

.lp-quiz__opt {
  min-height: 54px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--zr);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lp-quiz__opt:hover,
.lp-quiz__opt.is-on {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.lp-quiz__back {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lp-quiz__step--form .lp-form {
  max-width: 640px;
}

/* Плашка знизу */
.lp-sheet {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(12, 34, 49, 0.22);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.3s, transform 0.3s;
}

.lp-sheet[hidden] {
  display: none;
}

.lp-sheet.is-open {
  opacity: 1;
  transform: none;
}

.lp-sheet__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lp-sheet__title {
  padding-right: 36px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.lp-sheet__text {
  margin: 6px 0 12px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.lp-sheet .lp-form .fluentform fieldset {
  grid-template-columns: 1fr;
  gap: 8px;
}

.lp-sheet .lp-form .ff-el-group:has(input[type="tel"]) .ff-el-input--label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lp-sheet .lp-form input.ff-el-form-control,
.lp-sheet .lp-form .ff-btn-submit {
  height: 48px !important;
}

.lp-sheet .lp-form .ff_list_buttons .ff-el-input--content {
  height: 46px;
}

.lp-sheet .lp-form .ff_list_buttons .ff-el-form-check label > span {
  height: 38px;
}

.lp-sheet .lp-form__note {
  margin-top: 8px;
  font-size: 12px;
}

@media (max-width: 719px) {
  .lp-quiz {
    padding: 20px 16px;
  }

  .lp-quiz__head h3 {
    font-size: 19px;
  }

  .lp-quiz__opts {
    grid-template-columns: 1fr;
  }

  .lp-sheet {
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
    padding: 16px 16px calc(14px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(12, 34, 49, 0.2);
    transform: translateY(100%);
  }
}

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

/* після відправки заявки з опитування кнопка «Назад» і примітка вже не потрібні */
.lp-quiz__step--form:has(.ff-message-success) .lp-quiz__back,
.lp-quiz__step--form:has(.ff-message-success) .lp-form__note {
  display: none;
}
