:root {
  --lime: #E7F35C;
  --lime-2: #C4EA6B;
  --mint: #9FE7C4;
  --mint-2: #7FE0C2;
  --ink: #0F1512;
  --ink-2: #161E1A;
  --ink-soft: #2A342E;
  --muted: #5D6B62;
  --line: #E6EAE4;
  --paper: #fff;
  --paper-2: #F6F8F2;
  --blue: #2E9BF0;
  --radius: 22px;
  --radius-lg: 30px;
  --container: 1200px;
  --page-pad-x: 24px;
  --header-nav: 78px;
  --header-h: calc(var(--header-nav) + 1px);
  /* відступ від хедера до крошок / hero (головна не використовує) */
  --page-top: clamp(24px, 4vw, 40px);
  --sect: clamp(32px, 5vw, 70px);
  --shadow: 0 24px 60px -26px rgba(15, 21, 18, .4);
  --shadow-sm: 0 10px 30px -16px rgba(15, 21, 18, .3);
  --form-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%230F1512' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font-family: 'Manrope', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-gutter: stable;
}

html.menu-is-open,
html.menu-is-closing {
  overflow: hidden;
  overscroll-behavior: none;
  /* Не ставить height: 100% — после скролла ICB сжимается
     и fixed-меню не дотягивает до низа визуального вьюпорта. */
}

html.lead-is-open,
html.review-is-open {
  overflow: hidden;
}

html.menu-is-open body,
html.menu-is-closing body,
html.lead-is-open body,
html.review-is-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Soft MPA page transitions — body stays visible (JS-late used to blank the page) */
html.page-leave body {
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

html.page-enter-from-menu,
html.page-enter-from-menu.page-ready {
  background: var(--paper);
}

/* Brand-cover: форма → thank-you (як перехід з моб. меню) */
.ef-page-cover {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: linear-gradient(155deg, var(--lime) 0%, var(--lime-2) 45%, var(--mint) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .3s cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear .3s;
}

.ef-page-cover.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition:
    opacity .3s cubic-bezier(.22, .61, .36, 1),
    visibility 0s;
}

.ef-page-cover__brand {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.1rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  opacity: 0;
  transform: scale(.92);
  transition:
    opacity .34s cubic-bezier(.22, .61, .36, 1),
    transform .42s cubic-bezier(.22, .61, .36, 1);
}

.ef-page-cover.is-on .ef-page-cover__brand {
  opacity: 1;
  transform: scale(1);
  transition-delay: .1s;
}

.ef-page-cover__brand span {
  background: linear-gradient(90deg, #4FB57E, #8BD86A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Cross-document View Transitions выключены:
   ::view-transition перекрывает документ и ~0.3–0.5s блокирует клики/скролл. */
@view-transition {
  navigation: none;
}

h1, h2, h3 {
  font-family: 'Unbounded', sans-serif;
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1rem;
  padding: 17px 32px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(15, 21, 18, .6);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(231, 243, 92, .7);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(15, 21, 18, .22);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.eyebrow {
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* breadcrumbs — все страницы кроме главной (там скрыты в PHP); позиция без изменений */
.crumbs {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.35;
  color: var(--muted);
  padding: 0 0 4px;
}

.crumbs::-webkit-scrollbar {
  display: none;
}

/* демо / статическая разметка */
.crumbs:not(.aioseo-crumbs) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 9px;
}

/* AIOSEO: flex на внутреннем контейнере */
.crumbs.aioseo-crumbs .aioseo-breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 9px;
  line-height: 1.35;
  white-space: nowrap;
}

.crumbs a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.crumbs .sep,
.crumbs.aioseo-crumbs .aioseo-breadcrumb-separator {
  opacity: .45;
  flex-shrink: 0;
}

.crumbs .cur,
.crumbs.aioseo-crumbs .aioseo-breadcrumb[aria-current="page"],
.crumbs.aioseo-crumbs .aioseo-breadcrumb:last-child {
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.crumbs.aioseo-crumbs .aioseo-breadcrumb {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Site chrome only — never bare `header` (content uses <header class="…"> too) */
body > header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, .7);
  border-bottom: 1px solid rgba(15, 21, 18, .06);
  transition: background .3s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-nav);
}

.logo {
  font-family: 'Unbounded';
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -.03em;
  white-space: nowrap;
  flex: none;
}

.logo b {
  color: var(--ink);
}

.logo span {
  background: linear-gradient(90deg, #4FB57E, #8BD86A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu a {
  padding: 10px 16px;
  font-weight: 600;
  font-size: .97rem;
  border-radius: 100px;
  color: var(--ink-soft);
  transition: .2s;
}

.menu a:hover,
.menu a.active {
  background: var(--paper-2);
  color: var(--ink);
}

/* desktop dropdown */
.nav-drop {
  position: relative;
}

.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: .97rem;
  border-radius: 100px;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: .2s;
}

.nav-drop-toggle:hover,
.nav-drop:focus-within .nav-drop-toggle,
.nav-drop:hover .nav-drop-toggle {
  background: var(--paper-2);
  color: var(--ink);
}

.nav-drop-chev {
  transition: transform .25s;
}

.nav-drop:hover .nav-drop-chev,
.nav-drop:focus-within .nav-drop-chev {
  transform: rotate(180deg);
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 80;
}

.nav-drop-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-panel a {
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: .18s;
}

.nav-drop-panel a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.desktop-consult {
  padding: 12px 22px !important;
  white-space: nowrap;
}

.nav .burger {
  display: none;
}

.burger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s;
}

.burger:hover {
  transform: scale(1.05);
}

.burger span,
.mclose span {
  display: block;
  width: 22px;
  height: 2.4px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform .36s cubic-bezier(.2, .8, .2, 1);
}

.burger span::before,
.mclose span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 2.4px;
  background: #fff;
  border-radius: 2px;
  transform: rotate(90deg);
}

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

  .desktop-consult {
    display: none;
  }

  .nav .burger {
    display: grid;
  }

  /* Fixed header on mobile: no sticky paint loss, no jump when menu locks scroll */
  body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, .92);
    padding-top: env(safe-area-inset-top, 0px);
  }

  body {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  }

  body.admin-bar > header {
    top: 32px;
  }
}

@media (max-width: 782px) {
  body.admin-bar > header {
    top: 46px;
  }
}

/* main content placeholder — послуги/блог самі керують відступами зверху */
.page-main:not(.page-main--home):not(.page-main--service):not(.page-main--blog) {
  min-height: calc(100dvh - 78px - 200px);
  padding: var(--sect) 0;
}

.page-main--blog {
  padding-top: 0;
}

/* site footer only — not <footer> inside content blocks (e.g. about-quote) */
body > footer {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 44px 44px 0 0;
  margin-top: 40px;
}

body > footer::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 234, 107, .18), transparent 65%);
  pointer-events: none;
}

.ticker {
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  padding: 26px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.ticker-track {
  display: inline-flex;
  animation: scroll 26s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker span,
.ticker-item {
  font-family: 'Unbounded';
  font-weight: 600;
  font-size: 1.4rem;
  color: #fff;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
}

.ticker-item::after {
  content: "✦";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 30px;
  color: var(--lime);
  font-size: 1rem;
  line-height: 1;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

.foot-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
  padding: 64px 0 54px;
  position: relative;
  z-index: 2;
}

.foot-brand .logo {
  font-size: 1.9rem;
}

.foot-brand .logo b {
  color: #fff;
}

.foot-brand p {
  color: rgba(255, 255, 255, .55);
  margin: 18px 0 24px;
  max-width: 280px;
  font-size: .96rem;
}

.shell-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.shell-socials a {
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 46px;
  transition: .25s;
}

.shell-socials a svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
  color: #fff;
  transition: .25s;
}

.shell-socials a:hover {
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-3px);
}

.shell-socials a:hover svg {
  fill: currentColor;
  color: var(--ink);
}

.foot-brand .lang {
  margin-top: 24px;
  width: fit-content;
  background: rgba(255, 255, 255, .08);
}

.foot-brand .lang button {
  color: rgba(255, 255, 255, .72);
}

.foot-brand .lang button.active {
  background: var(--lime);
  color: var(--ink);
}

/* Sliding pill — header, footer, mobile menu */
.lang.lang--slide {
  position: relative;
  isolation: isolate;
}

.lang.lang--slide .lang-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 100px;
  background: var(--ink);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition:
    transform .36s cubic-bezier(.22, .61, .36, 1),
    width .36s cubic-bezier(.22, .61, .36, 1),
    opacity .2s ease;
}

.lang.lang--slide.is-ready .lang-thumb {
  opacity: 1;
}

.lang.lang--slide a,
.lang.lang--slide button {
  position: relative;
  z-index: 1;
  background: transparent !important;
  transition: color .28s ease;
}

.lang.lang--slide a.active,
.lang.lang--slide button.active {
  background: transparent !important;
  color: #fff;
}

.foot-brand .lang.lang--slide .lang-thumb {
  background: var(--lime);
}

.foot-brand .lang.lang--slide a,
.foot-brand .lang.lang--slide button {
  color: rgba(255, 255, 255, .72);
}

.foot-brand .lang.lang--slide a.active,
.foot-brand .lang.lang--slide button.active {
  color: var(--ink);
}

.mo-bottom-row .lang.lang--slide .lang-thumb {
  background: var(--ink);
}

.mo-bottom-row .lang.lang--slide a.active,
.mo-bottom-row .lang.lang--slide button.active {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .lang.lang--slide .lang-thumb {
    transition: none;
  }
}

.foot-col .foot-heading {
  font-family: 'Unbounded';
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.foot-col ul {
  list-style: none;
}

.foot-col li {
  margin-bottom: 13px;
}

.foot-col a {
  color: rgba(255, 255, 255, .68);
  font-size: .98rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .22s;
}

.foot-col a::before {
  content: "";
  width: 0;
  height: 1.5px;
  background: var(--lime);
  transition: width .22s;
}

.foot-col a:hover {
  color: #fff;
}

.foot-col a:hover::before {
  width: 14px;
}

.foot-bot {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.foot-bot p {
  color: rgba(255, 255, 255, .45);
  font-size: .88rem;
}

.foot-bot .links {
  display: flex;
  gap: 24px;
}

.foot-bot .links a {
  color: rgba(255, 255, 255, .55);
  font-size: .88rem;
  transition: .2s;
}

.foot-bot .links a:hover {
  color: var(--lime);
}

.made-by {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .42);
  font-size: .76rem;
  white-space: nowrap;
}

.made-by .heart {
  color: var(--lime);
  font-size: .9rem;
}

.made-by a {
  color: rgba(255, 255, 255, .72);
  font-weight: 800;
  letter-spacing: .08em;
}

.made-by a:hover {
  color: var(--lime);
}

.foot-bot .top {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  font-size: 1.2rem;
  color: var(--ink);
  transition: .2s;
}

.foot-bot .top:hover {
  transform: translateY(-4px);
}

.foot-mobile-socials,
.foot-mobile .shell-socials {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 20px auto 8px;
}

.mo-socials a svg {
  width: 19px;
  height: 19px;
  fill: var(--ink);
  transition: .2s;
}

.mo-socials a:hover svg {
  fill: #fff;
}

/* mobile menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: transparent;
  display: flex;
  flex-direction: column;
  padding: 22px 0 32px;
  --mo-pad: 24px;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.menu-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: 100lvh;
  min-height: 100%;
  min-height: 100dvh;
  min-height: 100lvh;
  z-index: 0;
  background: linear-gradient(155deg, var(--lime) 0%, var(--lime-2) 45%, var(--mint) 100%);
  clip-path: circle(0% at var(--menu-origin-x, calc(100% - 52px)) var(--menu-origin-y, 52px));
  opacity: 0;
  transition:
    clip-path .58s cubic-bezier(.76, 0, .24, 1),
    opacity .28s ease;
  pointer-events: none;
}

.menu-overlay.open,
.menu-overlay.closing {
  pointer-events: auto;
  visibility: visible;
  /* inset: 0 уже тянет на вьюпорт; svh/max-height давали щель снизу
     после скролла (когда адресная строка скрыта, visual > svh). */
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: 100lvh;
  max-height: none;
  min-height: 100%;
  min-height: 100dvh;
  min-height: 100lvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.menu-overlay.open::before {
  clip-path: circle(220% at var(--menu-origin-x, calc(100% - 52px)) var(--menu-origin-y, 52px));
  opacity: 1;
}

.menu-overlay.closing::before {
  clip-path: circle(0% at var(--menu-origin-x, calc(100% - 52px)) var(--menu-origin-y, 52px));
  opacity: 0;
  transition:
    clip-path .36s cubic-bezier(.55, 0, 1, .45),
    opacity .24s ease;
}

.menu-overlay > * {
  position: relative;
  z-index: 1;
}

.menu-overlay:not(.open):not(.closing) > * {
  visibility: hidden;
}

body > header .logo span {
  transition:
    color .35s ease,
    -webkit-text-fill-color .35s ease,
    background .35s ease;
}

.menu-overlay::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .4), transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.menu-overlay.open::after {
  opacity: 1;
}

.mo-nav-brand {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 3;
  transform: translate(-50%, -50%) scale(.92);
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.1rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity .32s cubic-bezier(.22, .61, .36, 1),
    transform .4s cubic-bezier(.22, .61, .36, 1);
}

.mo-nav-brand span {
  background: linear-gradient(90deg, #4FB57E, #8BD86A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.menu-overlay.navigating {
  pointer-events: none;
}

.menu-overlay.navigating::before {
  clip-path: circle(220% at var(--menu-origin-x, calc(100% - 52px)) var(--menu-origin-y, 52px));
  opacity: 1;
  transition: none;
}

.menu-overlay.navigating::after {
  opacity: 1;
}

.menu-overlay.navigating .mo-body {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(.985);
  transition:
    opacity .28s cubic-bezier(.22, .61, .36, 1),
    transform .32s cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
  overflow: hidden !important;
}

.menu-overlay.navigating .mo-nav-brand {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mo-top {
  display: none;
}

.menu-overlay.open,
.menu-overlay.closing {
  padding-top: var(--header-h);
}

body.admin-bar .menu-overlay.open,
body.admin-bar .menu-overlay.closing {
  padding-top: calc(var(--header-h) + 32px);
}

@media (max-width: 782px) {
  body.admin-bar .menu-overlay.open,
  body.admin-bar .menu-overlay.closing {
    padding-top: calc(var(--header-h) + 46px);
  }
}

.mo-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.menu-overlay.open .mo-body,
.menu-overlay.closing .mo-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.mclose {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s;
}

.mclose:hover {
  transform: scale(1.05);
}

.mo-nav {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  padding: 4px 0 0;
  width: 100%;
  overflow: visible;
}

.mo-group {
  display: flex;
  flex-direction: column;
}

.mo-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px var(--mo-pad, 24px);
  font-family: 'Unbounded';
  font-weight: 700;
  font-size: clamp(2rem, 10vw, 3.2rem);
  letter-spacing: -.03em;
  color: var(--ink);
  border-bottom: 1px solid rgba(15, 21, 18, .12);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s, transform .5s;
}

.menu-overlay.open .mo-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .12s;
}

.mo-link.has-sub.expanded {
  border-bottom-color: transparent;
}

.mo-link .idx {
  font-family: 'Manrope';
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  opacity: .4;
  width: 34px;
  flex: none;
}

.mo-link .mo-label {
  flex: 1;
  min-width: 0;
}

.mo-link .mo-icon {
  margin-left: auto;
  width: 32px;
  height: 32px;
  flex: none;
  transition: transform .25s;
}

.mo-link:hover .mo-icon.arw {
  transform: translate(4px, -4px);
}

.mo-link.has-sub {
  cursor: pointer;
  user-select: none;
}

.mo-link.has-sub.expanded .mo-icon.chev {
  transform: rotate(180deg);
}

.mo-sub {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: grid-template-rows .55s cubic-bezier(.22, 1, .36, 1);
}

.mo-sub.open {
  grid-template-rows: 1fr;
}

.mo-sub-inner {
  min-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(15, 21, 18, .12);
  opacity: 0;
  transform: translateY(-4px) scale(.985);
  transform-origin: top center;
  transition:
    opacity .5s cubic-bezier(.22, 1, .36, 1),
    transform .55s cubic-bezier(.22, 1, .36, 1);
}

.mo-sub.open .mo-sub-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mo-sub a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 15px var(--mo-pad, 24px) 15px calc(var(--mo-pad, 24px) + 34px + 16px);
  font-family: 'Manrope';
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(15, 21, 18, .1);
  position: relative;
  transition:
    transform .28s cubic-bezier(.22, .61, .36, 1),
    color .22s ease,
    background-color .22s ease;
  will-change: transform;
}

.mo-sub a::before {
  content: "→";
  position: absolute;
  left: var(--mo-pad, 24px);
  width: 34px;
  color: var(--ink);
  opacity: .45;
  text-align: left;
  transition:
    transform .28s cubic-bezier(.22, .61, .36, 1),
    opacity .22s ease;
}

.mo-sub a:last-child {
  border-bottom: none;
}

.mo-sub a:hover,
.mo-sub a:active,
.mo-sub a:focus-visible {
  color: var(--ink);
  transform: translate3d(8px, 0, 0);
  background-color: rgba(15, 21, 18, .035);
}

.mo-sub a:hover::before,
.mo-sub a:active::before,
.mo-sub a:focus-visible::before {
  opacity: .9;
  transform: translate3d(2px, 0, 0);
}

.mo-sub.open .mo-sub-inner a {
  animation: moSubIn .62s cubic-bezier(.22, 1, .36, 1) both;
}

.mo-sub.open .mo-sub-inner a:nth-child(1) { animation-delay: .06s; }
.mo-sub.open .mo-sub-inner a:nth-child(2) { animation-delay: .11s; }
.mo-sub.open .mo-sub-inner a:nth-child(3) { animation-delay: .16s; }
.mo-sub.open .mo-sub-inner a:nth-child(4) { animation-delay: .21s; }
.mo-sub.open .mo-sub-inner a:nth-child(5) { animation-delay: .26s; }

@keyframes moSubIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mo-foot {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 24px;
  padding-bottom: 8px;
  padding-left: var(--mo-pad, 24px);
  padding-right: var(--mo-pad, 24px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .5s;
  transition-delay: .5s;
}

.menu-overlay.open .mo-foot {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .45s;
}

.menu-overlay.closing .mo-body {
  overflow: hidden;
}

.menu-overlay.closing .mo-nav,
.menu-overlay.closing .mo-foot {
  opacity: 0;
  transition-delay: 0s;
  transition-duration: .16s;
}

.menu-overlay.closing .mo-foot {
  transform: translateY(10px);
}

.menu-overlay.closing .mo-link {
  opacity: 0;
  transform: translateY(8px);
  transition-delay: 0s;
  transition-duration: .14s;
}

.menu-overlay.closing::after {
  opacity: 0;
  transition-duration: .18s;
}

.mo-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.mo-contact a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: opacity .2s, transform .2s;
}

.mo-contact a:hover {
  opacity: .72;
}

.mo-contact a:active {
  transform: scale(.99);
}

.mo-contact a svg {
  display: none;
}

.mo-contact-lbl {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .42;
}

.mo-contact-val {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 4.8vw, 1.4rem);
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
}

.mo-bottom-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: fit-content;
}

.mo-bottom-row .lang {
  width: auto;
}

.mo-socials {
  display: flex;
  gap: 10px;
}

.mo-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  display: grid;
  place-items: center;
  transition: .2s;
}

.mo-socials a svg {
  width: 19px;
  height: 19px;
  fill: var(--ink);
  transition: .2s;
}

.mo-socials a:hover {
  background: var(--ink);
}

.mo-socials a:hover svg {
  fill: #fff;
}

.lang {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, .4);
  border-radius: 100px;
  padding: 5px;
}

.lang button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Manrope';
  font-weight: 700;
  font-size: .9rem;
  padding: 9px 18px;
  border-radius: 100px;
  color: var(--ink-2);
  transition: .2s;
}

.lang button.active {
  background: var(--ink);
  color: #fff;
}

/* footer: mobile stack */
.foot-mobile {
  display: none;
}

.foot-desktop {
  display: block;
}

.foot-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  margin-top: 28px;
}

.foot-mobile-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.foot-mobile-group .foot-heading {
  font-family: 'Unbounded', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 4px;
}

.foot-mobile-group a {
  color: rgba(255, 255, 255, .72);
  font-size: .98rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color .2s;
}

.foot-mobile-group a:hover {
  color: #fff;
}

.foot-mobile-desc {
  color: rgba(255, 255, 255, .55);
  font-size: .94rem;
  text-align: center;
  max-width: 320px;
  margin: 16px auto 0;
}

.foot-mobile .foot-logo {
  display: block;
  text-align: center;
  font-size: 1.9rem;
}

.foot-mobile .foot-logo b {
  color: #fff;
}

/* Honeypot — невидимий для людей, боти часто заповнюють */
.ef-hp {
  position: absolute !important;
  left: -10000px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
}

.ef-hp__label,
.ef-hp input {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1px !important;
  line-height: 1 !important;
}

/* lead modal */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(15, 21, 18, .58);
  backdrop-filter: blur(12px);
  animation: leadFade .22s ease;
}

.lead-panel {
  position: relative;
  width: min(100%, 960px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(15, 21, 18, .35);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
}

.lead-info {
  padding: 44px;
  background: linear-gradient(145deg, var(--lime), var(--mint));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-height: 0;
  overflow: auto;
}

.lead-info h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  margin: 15px 0;
}

.lead-info p {
  color: var(--ink-soft);
}

.lead-points {
  display: grid;
  gap: 13px;
  font-size: .92rem;
  font-weight: 700;
}

.lead-points span {
  display: flex;
  gap: 9px;
  align-items: center;
}

.lead-points span::before {
  content: '✓';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  display: grid;
  place-items: center;
}

.lead-form {
  padding: 40px 40px 32px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

/* Відгук: трохи щільніше, щоб на типовому екрані не було скролу */
.review-modal .lead-form {
  padding: 32px 36px 28px;
}

.review-modal .lead-form .hint {
  margin-bottom: 14px;
}

.review-modal .lead-grid {
  gap: 12px;
}

.review-modal .lead-field textarea,
.review-modal .lead-field textarea.wpcf7-form-control {
  min-height: 72px;
  height: 72px;
  max-height: 110px;
}

.review-modal .lead-consent,
.review-modal .wpcf7-form-control-wrap:has(.wpcf7-acceptance) {
  margin: 12px 0;
}

.lead-form h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.lead-form .hint {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 24px;
}

/* CF7: контролы внутри .lead-field / зірки / consent */
.lead-form .wpcf7-form-control-wrap,
.easyfop-cf7-host .lead-field .wpcf7-form-control-wrap,
.lead-field > .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.lead-form .lead-field .wpcf7-form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lead-form .lead-field textarea.wpcf7-form-control,
.lead-form .lead-field textarea {
  min-height: 88px;
  height: 88px;
  max-height: 140px;
  resize: vertical;
  line-height: 1.45;
}

/* CF7 acceptance: чекбокс зліва, текст справа в один ряд */
.lead-form .wpcf7-form-control-wrap:has(.wpcf7-acceptance),
.lead-form .lead-consent.wpcf7-form-control-wrap,
.easyfop-cf7-host .wpcf7-form-control-wrap:has(.wpcf7-acceptance) {
  margin: 17px 0;
}

.lead-form .wpcf7-acceptance,
.lead-form .wpcf7-acceptance.lead-consent,
.easyfop-cf7-host .wpcf7-acceptance {
  display: block;
  margin: 0;
  width: 100%;
}

.lead-form .wpcf7-acceptance .wpcf7-list-item,
.easyfop-cf7-host .wpcf7-acceptance .wpcf7-list-item {
  display: block;
  margin: 0;
  width: 100%;
}

.lead-form .wpcf7-acceptance .wpcf7-list-item label,
.easyfop-cf7-host .wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}

.lead-form .wpcf7-acceptance input[type="checkbox"],
.easyfop-cf7-host .wpcf7-acceptance input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--ink);
}

.lead-form .wpcf7-acceptance .wpcf7-list-item-label,
.lead-form .lead-consent .wpcf7-list-item-label,
.easyfop-cf7-host .wpcf7-acceptance .wpcf7-list-item-label {
  display: inline;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
}

.easyfop-cf7-host .wpcf7 p,
.lead-form .wpcf7 p {
  margin: 0;
  padding: 0;
}

/*
 * CF7 default CSS is disabled — without it .screen-reader-response becomes a
 * visible bullet list and duplicates field-level .wpcf7-not-valid-tip messages.
 */
.wpcf7 .screen-reader-response {
  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;
}

/*
 * CF7 5.9+/6.x: hidden fields in <fieldset class="hidden-fields-container">.
 * Default fieldset border draws a fake divider through the title.
 * Use display:none (NOT contents) — contents breaks form submit / clicks in some browsers.
 */
.wpcf7 fieldset,
.easyfop-cf7-host fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.wpcf7 fieldset.hidden-fields-container,
.easyfop-cf7-host fieldset.hidden-fields-container {
  display: none;
}

.easyfop-cf7-host .wpcf7 br {
  display: none;
}

.easyfop-cf7-host .wpcf7-response-output {
  margin: 10px 0 0 !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  border-width: 1.5px !important;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.easyfop-cf7-host .wpcf7-response-output[style*="display: none"],
.easyfop-cf7-host .wpcf7-response-output:empty {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* CF7 validation failed — компактний блок біля кнопки */
.easyfop-cf7-host .wpcf7 form.invalid .wpcf7-response-output,
.easyfop-cf7-host .wpcf7 form.unaccepted .wpcf7-response-output,
.easyfop-cf7-host .wpcf7 form.failed .wpcf7-response-output,
.easyfop-cf7-host .wpcf7-response-output.wpcf7-validation-errors,
.easyfop-cf7-host .wpcf7-response-output.wpcf7-mail-sent-ng {
  border-color: rgba(180, 35, 24, .35) !important;
  background: rgba(180, 35, 24, .06);
  color: #8f1e16;
}

.easyfop-cf7-host .wpcf7-not-valid-tip {
  display: block;
  margin: 5px 0 0;
  padding: 0;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
  color: #b42318;
  border: 0;
  background: none;
}

/* Підсвітка невалідного поля */
.easyfop-cf7-host .wpcf7-not-valid,
.easyfop-cf7-host input.wpcf7-not-valid,
.easyfop-cf7-host select.wpcf7-not-valid,
.easyfop-cf7-host textarea.wpcf7-not-valid {
  border-color: #d6453d !important;
  background-color: #fff6f5 !important;
  box-shadow: 0 0 0 3px rgba(214, 69, 61, .18) !important;
}

.easyfop-cf7-host .lead-field:has(.wpcf7-not-valid) > label,
.easyfop-cf7-host .field:has(.wpcf7-not-valid) > label {
  color: #b42318;
}

.easyfop-cf7-host .ef-select:has(.wpcf7-not-valid) .ef-select__btn,
.easyfop-cf7-host .ef-select.is-invalid .ef-select__btn {
  border-color: #d6453d !important;
  background-color: #fff6f5 !important;
  box-shadow: 0 0 0 3px rgba(214, 69, 61, .18) !important;
}

.easyfop-cf7-host .wpcf7-acceptance .wpcf7-list-item:has(.wpcf7-not-valid),
.easyfop-cf7-host .wpcf7-form-control-wrap:has(input.wpcf7-not-valid[type="checkbox"]) {
  outline: none;
}

.easyfop-cf7-host .lead-consent:has(.wpcf7-not-valid),
.easyfop-cf7-host .consent:has(.wpcf7-not-valid),
.easyfop-cf7-host .wpcf7-acceptance:has(.wpcf7-not-valid) {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(214, 69, 61, .06);
  box-shadow: inset 0 0 0 1.5px rgba(214, 69, 61, .28);
}

/* CF7 loading: спінер на кнопці, не під нею */
.easyfop-cf7-host .ef-submit-wrap {
  position: relative;
  display: block;
  width: 100%;
  z-index: 1;
  isolation: isolate;
}

.easyfop-cf7-host .ef-submit-wrap .wpcf7-submit {
  width: 100%;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.easyfop-cf7-host .wpcf7-spinner {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  margin: 0 !important;
  width: 22px !important;
  height: 22px !important;
  border: none !important;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, var(--lime), var(--mint), #b8e86a, var(--lime)) !important;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  box-shadow: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.easyfop-cf7-host .wpcf7-form.submitting .wpcf7-spinner,
.easyfop-cf7-host .ef-submit-wrap.is-loading .wpcf7-spinner {
  opacity: 1;
  visibility: visible;
  animation: ef-cf7-spin .7s linear infinite;
}

.easyfop-cf7-host .wpcf7-form.submitting .wpcf7-submit,
.easyfop-cf7-host .ef-submit-wrap.is-loading .wpcf7-submit {
  color: transparent !important;
  pointer-events: none;
  opacity: .88;
  cursor: wait;
}

.easyfop-cf7-host .wpcf7-form.submitting .wpcf7-submit:hover,
.easyfop-cf7-host .ef-submit-wrap.is-loading .wpcf7-submit:hover {
  transform: none;
}

@keyframes ef-cf7-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  justify-items: stretch;
}

.lead-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  width: 100%;
}

.lead-field.full {
  grid-column: 1 / -1;
}

.lead-field label {
  font-size: .82rem;
  font-weight: 800;
}

.lead-field input,
.lead-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  outline: none;
  box-sizing: border-box;
}

.lead-field select {
  width: 100%;
  max-width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 44px 13px 15px;
  background-color: var(--paper-2);
  color: var(--ink);
  font: inherit;
  outline: none;
  box-sizing: border-box;
}

.lead-field textarea {
  resize: vertical;
  min-height: 88px;
  height: 88px;
  max-height: 140px;
  box-sizing: border-box;
}

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(231, 243, 92, .45);
}

.lead-field select,
.svc-form-card .field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: var(--form-select-chevron);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  text-overflow: ellipsis;
}

.lead-field select:focus,
.svc-form-card .field select:focus {
  background-image: var(--form-select-chevron);
}

/* Custom select (desktop) — красивий список замість системного */
.ef-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ef-select__native {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  appearance: none !important;
}

.ef-select__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 12px 15px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: inherit;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}

.ef-select__btn:hover {
  border-color: color-mix(in srgb, var(--ink) 35%, var(--line));
}

.ef-select.is-open .ef-select__btn,
.ef-select__btn:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(231, 243, 92, .45);
}

.ef-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ef-select__value.is-placeholder {
  color: var(--muted);
}

.ef-select__chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--form-select-chevron) center / 18px no-repeat;
  transition: transform .18s ease;
}

.ef-select.is-open .ef-select__chevron {
  transform: rotate(180deg);
}

.ef-select__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: min(280px, 50vh);
  overflow: auto;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(15, 21, 18, .12);
  overscroll-behavior: contain;
  box-sizing: border-box;
}

/* У модалці список монтується в body (див. theme.js) — інакше backdrop-filter кліпає fixed */
.ef-select__list.is-overlay {
  position: fixed;
  right: auto;
  z-index: 10050;
  max-height: min(420px, 60vh);
}

.ef-select__list[hidden] {
  display: none !important;
}

.ef-select__option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .12s, color .12s;
}

.ef-select__option:hover,
.ef-select__option.is-active {
  background: rgba(231, 243, 92, .45);
}

.ef-select__option.is-selected {
  background: var(--ink);
  color: #fff;
}

.ef-select__option.is-selected:hover,
.ef-select__option.is-selected.is-active {
  background: var(--ink);
  color: #fff;
}

.ef-select__option:disabled,
.ef-select__option.is-disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .ef-select__btn,
  .ef-select__list {
    display: none !important;
  }

  .ef-select__native {
    position: static !important;
    inset: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 100% !important;
    height: auto !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1.5px solid var(--line) !important;
    border-radius: 14px !important;
    padding: 13px 44px 13px 15px !important;
    background-color: var(--paper-2) !important;
    background-image: var(--form-select-chevron) !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 18px !important;
    color: var(--ink) !important;
    font: inherit !important;
  }
}

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 17px 0;
  color: var(--muted);
  font-size: .78rem;
}

.lead-consent input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--ink);
}

.lead-submit {
  width: 100%;
}

.lead-error {
  margin-top: 12px;
  color: #b42318;
  font-size: .86rem;
  font-weight: 700;
}

.lead-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.lead-success {
  padding: 70px 44px;
  text-align: center;
  grid-column: 1 / -1;
}

.lead-success .ok {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  font-size: 2rem;
}

.lead-success h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.lead-success p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--muted);
}

/* thank-you page — картка чітко по центру екрана під хедером */
body:has(> .thanks-page) > footer {
  display: none;
}

.thanks-page {
  min-height: calc(100dvh - var(--header-h, 79px));
  display: grid;
  place-items: center;
  align-content: center;
  padding: clamp(20px, 4vh, 40px) 24px;
  box-sizing: border-box;
  background: radial-gradient(80% 80% at 15% 0%, var(--lime), transparent 65%), linear-gradient(145deg, var(--paper), var(--mint));
}

.thanks-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(38px, 8vw, 80px);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.985);
}

html.page-ready .thanks-card {
  opacity: 1;
  transform: none;
  transition:
    opacity .55s cubic-bezier(.22, .61, .36, 1) .06s,
    transform .65s cubic-bezier(.22, .61, .36, 1) .06s;
}

.thanks-card .ok,
.thanks-card .eyebrow,
.thanks-card h1,
.thanks-card p,
.thanks-card .btn,
.thanks-card .thanks-actions,
.thanks-card .thanks-note {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}

html.page-ready .thanks-card .ok,
html.page-ready .thanks-card .eyebrow,
html.page-ready .thanks-card h1,
html.page-ready .thanks-card p,
html.page-ready .thanks-card .btn,
html.page-ready .thanks-card .thanks-actions,
html.page-ready .thanks-card .thanks-note {
  opacity: 1;
  transform: none;
  transition:
    opacity .45s cubic-bezier(.22, .61, .36, 1),
    transform .5s cubic-bezier(.22, .61, .36, 1);
}

html.page-ready .thanks-card .ok { transition-delay: .12s; }
html.page-ready .thanks-card .eyebrow { transition-delay: .18s; }
html.page-ready .thanks-card h1 { transition-delay: .24s; }
html.page-ready .thanks-card p { transition-delay: .3s; }
html.page-ready .thanks-card .btn,
html.page-ready .thanks-card .thanks-actions { transition-delay: .38s; }
html.page-ready .thanks-card .thanks-note { transition-delay: .46s; }

@media (prefers-reduced-motion: reduce) {
  .ef-page-cover,
  .ef-page-cover__brand,
  .thanks-card,
  .thanks-card .ok,
  .thanks-card .eyebrow,
  .thanks-card h1,
  .thanks-card p,
  .thanks-card .btn,
  .thanks-card .thanks-actions,
  .thanks-card .thanks-note {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.thanks-card .ok {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  background: var(--ink);
  color: var(--lime);
  font-size: 2.2rem;
}

.thanks-card h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 18px;
}

.thanks-card p {
  max-width: 530px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.thanks-note {
  margin-top: 22px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.thanks-actions .btn {
  min-width: 180px;
}

.thanks-card > .btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .thanks-page {
    padding: 16px 14px;
  }

  .thanks-card {
    padding: 28px 18px 26px;
    border-radius: 24px;
  }

  .thanks-card .ok {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    font-size: 1.7rem;
  }

  .thanks-card .eyebrow {
    font-size: .72rem;
  }

  .thanks-card h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    margin-bottom: 10px;
    line-height: 1.15;
  }

  .thanks-card p {
    max-width: 34ch;
    margin: 0 auto 18px;
    font-size: .9rem;
    line-height: 1.45;
  }

  .thanks-card > .btn,
  .thanks-actions .btn {
    white-space: nowrap;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 12px 20px;
    font-size: .9rem;
  }

  .thanks-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .thanks-actions .btn {
    width: 100%;
  }

  .thanks-note {
    margin-top: 14px;
    font-size: .76rem;
  }
}

/* 404 — reuse thanks-page shell */
.page-404 .page-404-code {
  width: auto;
  min-width: 82px;
  height: auto;
  min-height: 82px;
  padding: 16px 22px;
  border-radius: 28px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: -.04em;
  line-height: 1;
}

.page-404 .thanks-note a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-404 .thanks-note a:hover {
  color: var(--ink-soft);
}

@keyframes leadFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 980px) {
  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .foot-brand {
    grid-column: span 2;
  }
}

@media (max-width: 800px) {
  .lead-modal {
    padding: 0;
    place-items: stretch;
  }

  .lead-panel {
    display: block;
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    overflow: auto;
  }

  .lead-form {
    overflow: visible;
  }

  .lead-info {
    padding: 76px 20px 25px;
    gap: 18px;
  }

  .lead-info h2 {
    font-size: 1.75rem;
  }

  .lead-points {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: .75rem;
  }

  .lead-form {
    padding: 25px 20px 36px;
  }

  .lead-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .lead-field.full {
    grid-column: auto;
  }

  .lead-close {
    position: fixed;
    right: 12px;
    top: 11px;
    width: 46px;
    height: 46px;
  }

  .lead-success {
    padding: 120px 24px;
  }

  .lead-field input,
  .lead-field select {
    min-height: 52px;
    font-size: 16px;
  }
}

@media (max-width: 1020px) {
  /* Do NOT use body { position: fixed } for menu lock —
     it shifts fixed header off-screen and jumps content. */

  html.menu-is-open body,
  html.menu-is-closing body {
    touch-action: none;
  }

  html.menu-is-open .menu-overlay,
  html.menu-is-closing .menu-overlay,
  html.menu-is-open .mo-body,
  html.menu-is-closing .mo-body {
    touch-action: pan-y;
  }

  html.menu-is-open > body > header,
  html.menu-is-closing > body > header {
    z-index: 107;
    background: #fff;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(15, 21, 18, .08);
    box-shadow: 0 8px 24px -18px rgba(15, 21, 18, .12);
    pointer-events: none;
  }

  html.menu-is-open > body > header .logo,
  html.menu-is-closing > body > header .logo {
    pointer-events: auto;
    position: relative;
    z-index: 1;
  }

  html.menu-is-open > body > header .menu,
  html.menu-is-closing > body > header .menu {
    visibility: hidden;
    pointer-events: none;
  }

  html.menu-is-open > body > header .nav-actions,
  html.menu-is-closing > body > header .nav-actions {
    visibility: visible;
    pointer-events: none;
  }

  html.menu-is-open > body > header .burger,
  html.menu-is-closing > body > header .burger {
    display: grid;
    pointer-events: auto;
  }

  html.menu-is-open > body > header .burger span {
    transform: rotate(45deg);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  :root {
    --page-pad-x: 12px;
    --header-nav: 68px;
    --header-h: calc(var(--header-nav) + 1px);
  }

  #root {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .nav {
    height: var(--header-nav);
    gap: 8px;
  }

  .nav > .logo {
    font-size: clamp(1.15rem, 5.2vw, 1.38rem);
  }

  .nav-actions {
    gap: 8px;
    min-width: 0;
    margin-left: auto;
  }

  .burger {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .burger span,
  .burger span::before {
    width: 19px;
  }

  .menu-overlay {
    padding: 0 0 32px;
    --mo-pad: 16px;
  }

  .menu-overlay::before {
    clip-path: circle(0% at var(--menu-origin-x, calc(100% - 35px)) var(--menu-origin-y, 34px));
  }

  .menu-overlay.open::before {
    clip-path: circle(220% at var(--menu-origin-x, calc(100% - 35px)) var(--menu-origin-y, 34px));
  }

  .menu-overlay.closing::before {
    clip-path: circle(0% at var(--menu-origin-x, calc(100% - 35px)) var(--menu-origin-y, 34px));
  }

  .foot-top {
    grid-template-columns: 1fr;
  }

  .foot-brand {
    grid-column: span 1;
  }

  .foot-mobile {
    display: block;
    padding: 48px 0 36px;
    text-align: center;
  }

  .foot-desktop {
    display: none;
  }

  .ticker-item {
    font-size: 1.15rem;
  }

  .ticker-item::after {
    margin: 0 24px;
  }

  .foot-bot {
    justify-content: center;
    text-align: center;
  }

  .foot-bot .links {
    gap: 16px;
  }
}

@media (max-width: 370px) {
  :root {
    --page-pad-x: 9px;
  }

  .nav {
    gap: 6px;
  }

  .nav > .logo {
    font-size: 1.08rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .burger {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .menu-overlay {
    padding-left: 0;
    padding-right: 0;
    --mo-pad: 9px;
  }

  .menu-overlay::before {
    clip-path: circle(0% at var(--menu-origin-x, calc(100% - 30px)) var(--menu-origin-y, 34px));
  }

  .menu-overlay.open::before {
    clip-path: circle(220% at var(--menu-origin-x, calc(100% - 30px)) var(--menu-origin-y, 34px));
  }

  .burger span,
  .burger span::before {
    width: 18px;
  }
}

@media (min-width: 981px) {
  .menu-overlay.open,
  .menu-overlay.closing {
    padding-top: 22px;
  }

  .menu-overlay .mo-nav {
    align-items: flex-start;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    overflow-y: visible;
  }
}

.svc-messenger-links {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 4.5vw, 28px);
  width: 100%;
  line-height: 0;
}

.svc-msg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: var(--ink);
  border-radius: 10px;
  flex: 0 0 44px;
  transition: color .2s, transform .2s;
}

.svc-msg-btn svg {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
  fill: currentColor;
  overflow: visible;
}

/* WhatsApp glyph sits low in its viewBox — optical nudge */
.svc-msg-btn--wa svg {
  transform: translateY(-1px);
}

.svc-msg-btn:hover {
  transform: translateY(-2px);
}

.svc-msg-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.svc-msg-btn--tg:hover,
.svc-msg-btn--tg:active {
  color: #2AABEE;
}

.svc-msg-btn--vb:hover,
.svc-msg-btn--vb:active {
  color: #7360F2;
}

.svc-msg-btn--wa:hover,
.svc-msg-btn--wa:active {
  color: #25D366;
}

/* Legal / plain text pages (privacy, offer) */
.page-main--legal-doc .legal-doc-hero {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.page-main--legal-doc .legal-doc-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 820px;
}

.page-main--legal-doc .legal-doc-body {
  padding: clamp(28px, 4vw, 48px) 0 var(--sect);
}

.page-main--legal-doc .legal-doc-content {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-main--legal-doc .legal-doc-content > *:first-child {
  margin-top: 0;
}

.page-main--legal-doc .legal-doc-content p {
  margin: 0 0 1.1em;
}

.page-main--legal-doc .legal-doc-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--ink);
  margin: 1.75em 0 .6em;
}

.page-main--legal-doc .legal-doc-content h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.4em 0 .5em;
}

.page-main--legal-doc .legal-doc-content ul,
.page-main--legal-doc .legal-doc-content ol {
  margin: 0 0 1.1em 1.25em;
}

.page-main--legal-doc .legal-doc-content li {
  margin-bottom: .45em;
}

.page-main--legal-doc .legal-doc-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-main--legal-doc .legal-doc-content a:hover {
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html.page-enter body,
  html.page-leave body {
    opacity: 1 !important;
  }

  .menu-overlay::before {
    clip-path: none;
    display: none;
  }

  .menu-overlay {
    display: none;
    background: linear-gradient(155deg, var(--lime) 0%, var(--lime-2) 45%, var(--mint) 100%);
  }

  .menu-overlay.open {
    display: flex;
  }

  .menu-overlay.open::before {
    display: block;
    clip-path: none;
  }

  .mo-link,
  .mo-sub,
  .mo-foot {
    opacity: 1;
    transform: none;
  }

  .lead-modal {
    animation: none;
  }
}
