/**
 * Марічка AI — ГЛОБАЛЬНІ стилі теми.
 *
 * Тут лише те, що спільне для всієї сторінки: дизайн-токени, скидання,
 * типографіка, кнопки, хедер/футер (chrome), фонові шари та примітиви, які
 * використовують КІЛЬКА блоків (темна панель, чат-мокап, одометр, .rv, .tagline,
 * .hero-cta, .link-arr, word-reveal). Стилі, унікальні для конкретної секції,
 * живуть у blocks/<блок>/style.css і підключаються on-demand через block.json.
 */

/* ---------- дизайн-токени ---------- */
:root {
   --ink: #171233;
   /* глибокий фіолетово-чорнильний — текст, кнопки, темні панелі */
   --ink-2: #251C52;
   --bg: #F8F6FF;
   /* світло-ліловий фон */
   --card: #FFFFFF;
   --lime: #A78BFA;
   /* яскравий лавандовий акцент */
   --lime-soft: #EDE7FF;
   --mint: #EFEBFC;
   /* світло-фіолетовий тінт */
   --muted: #5B5677;
   --ink-rgb: 23, 18, 51;
   /* канали --ink для rgba() */
   --lime-rgb: 167, 139, 250;
   /* канали --lime для rgba() */
   --line: rgba(var(--ink-rgb), .12);
   --r: 24px;
   --ease: cubic-bezier(.3, .8, .3, 1);
   /* стандартна крива появи */
   --sh-card: 0 24px 60px rgba(var(--ink-rgb), .12);
   /* тінь картки-мокапа */
   --hdr-h: 72px;
   --section-gap: clamp(64px, 10vh, 110px);
}

/* ---------- скидання / база ---------- */
* {
   box-sizing: border-box
}

html {
   scroll-behavior: smooth
}

main {
   overflow-x: clip
}

section[id],
[id].hero {
   scroll-margin-top: calc(var(--hdr-h) + 16px)
}

body {
   margin: 0;
   font-family: 'Manrope', system-ui, sans-serif;
   color: var(--ink);
   background: var(--bg);
   text-wrap: pretty;
   overflow-x: hidden;
   font-size: 16px;
   line-height: 1.6
}

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

img {
   max-width: 100%
}

/* Лише ГОРИЗОНТАЛЬНІ відступи: padding:0 X обнуляв би padding-top/bottom секцій
   (.res/.hero/… мають class="<секція> wrap" — однакова специфічність із .wrap). */
.wrap {
   max-width: 1200px;
   margin: 0 auto;
   padding-left: clamp(18px, 4vw, 44px);
   padding-right: clamp(18px, 4vw, 44px)
}

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

/* ---------- анімований фон (chrome, у header.php) ---------- */
#bg-fx {
   position: fixed;
   inset: 0;
   width: 100%;
   height: 100%;
   z-index: -3;
   pointer-events: none
}

/* base wash — ледь помітна двотонова глибина під усім */
.dc-wash {
   position: fixed;
   inset: 0;
   z-index: -4;
   pointer-events: none;
   background: radial-gradient(1100px 760px at 50% -8%, #EFEAFF, transparent 62%), radial-gradient(900px 620px at 100% 105%, #EEE9FF, transparent 60%)
}

/* точкова сітка — тонка структура, приглушена в центрі під текстом */
.dc-grid {
   position: fixed;
   inset: 0;
   z-index: -2;
   pointer-events: none;
   background-image: radial-gradient(rgba(var(--lime-rgb), .07) 1.2px, transparent 1.3px);
   background-size: 30px 30px;
   -webkit-mask-image: radial-gradient(130% 90% at 50% 42%, transparent 26%, #000 92%);
   mask-image: radial-gradient(130% 90% at 50% 42%, transparent 26%, #000 92%)
}

/* світіння за курсором — лише миша, вимкнено на тачі та reduced-motion */
#cursor-glow {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 520px;
   height: 520px;
   margin: -260px 0 0 -260px;
   border-radius: 50%;
   z-index: -1;
   pointer-events: none;
   opacity: 0;
   transition: opacity .5s ease;
   will-change: transform;
   mix-blend-mode: multiply;
   background: radial-gradient(circle, rgba(var(--lime-rgb), .20), rgba(var(--lime-rgb), .07) 42%, rgba(var(--lime-rgb), 0) 70%)
}

@media (hover:hover) and (pointer:fine) {
   #cursor-glow {
      display: block
   }
}

/* плівкове зерно — data-URI SVG feTurbulence, whisper-faint поверх усього */
#grain {
   position: fixed;
   inset: 0;
   z-index: 100;
   pointer-events: none;
   opacity: .04;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
   background-size: 160px 160px
}

@media (max-width:700px) {
   #bg-fx {
      display: none
   }
}

/* ---------- кнопки ---------- */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 9px;
   font: inherit;
   font-weight: 700;
   font-size: 15.5px;
   border-radius: 999px;
   padding: 14px 26px;
   cursor: pointer;
   border: 1.5px solid transparent;
   transition: background .2s, color .2s, border-color .2s, transform .15s
}

.btn:active {
   transform: scale(.98)
}

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

.btn-dark:hover {
   background: var(--ink-2)
}

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

.btn-lime:hover {
   background: #BCA8FF
}

.btn-ghost {
   background: transparent;
   color: var(--ink);
   border-color: var(--line)
}

.btn-ghost:hover {
   border-color: var(--ink)
}

.dark .btn-ghost {
   color: #fff;
   border-color: rgba(255, 255, 255, .28)
}

.dark .btn-ghost:hover {
   border-color: #fff
}

.btn-sm {
   padding: 10px 20px;
   font-size: 14.5px
}

.btn:focus-visible,
a:focus-visible,
.burger:focus-visible,
.slider-nav:focus-visible,
.sdot:focus-visible {
   outline: 2px solid var(--ink);
   outline-offset: 2px
}

.arr {
   transition: transform .2s
}

.btn:hover .arr {
   transform: translateX(3px)
}

/* Кнопки-картки: іконка + заголовок + підзаголовок (Hero / Фінальний CTA) */
.btn-cta {
   justify-content: flex-start;
   align-items: center;
   gap: 14px;
   text-align: left;
   padding: 15px 24px;
   border-radius: 18px;
   border-width: 1.5px;
   min-width: min(100%, 290px)
}

.btn-cta-ic {
   flex: none;
   width: 30px;
   height: 30px;
   display: grid;
   place-items: center
}

.btn-cta-ic svg {
   width: 100%;
   height: 100%;
   display: block
}

.btn-cta-tx {
   display: flex;
   flex-direction: column;
   gap: 2px;
   line-height: 1.22
}

.btn-cta-tx b {
   font-size: 16px;
   font-weight: 800
}

.btn-cta-tx small {
   font-size: 13px;
   font-weight: 600;
   opacity: .72
}

.btn-cta.btn-lime {
   background: #7C4DFF;
   color: #fff
}

.btn-cta.btn-lime:hover {
   background: #6B3FF0
}

.btn-cta.btn-dark {
   background: var(--ink);
   color: #fff;
   border-color: rgba(124, 77, 255, .55)
}

.btn-cta.btn-dark:hover {
   background: var(--ink-2);
   border-color: #7C4DFF
}

.btn-cta.btn-dark .btn-cta-ic,
.btn-cta.btn-ghost .btn-cta-ic {
   color: var(--lime)
}

/* ---------- хедер (chrome, у header.php) ---------- */
.hdr {
   position: sticky;
   top: 0;
   z-index: 60;
   background: rgba(248, 246, 255, .9);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border-bottom: 1px solid var(--line)
}

/* смужка прогресу скролу — над шапкою */
#scroll-progress {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 3px;
   z-index: 70;
   transform: scaleX(0);
   transform-origin: left center;
   background: linear-gradient(90deg, var(--lime), #6D28D9);
   pointer-events: none;
   will-change: transform
}

/* кнопка «нагору» */
#to-top {
   position: fixed;
   right: clamp(16px, 3vw, 28px);
   bottom: clamp(16px, 3vw, 28px);
   z-index: 65;
   width: 46px;
   height: 46px;
   border-radius: 50%;
   border: 0;
   background: var(--ink);
   color: #fff;
   cursor: pointer;
   display: grid;
   place-items: center;
   box-shadow: 0 12px 30px rgba(var(--ink-rgb), .32);
   opacity: 0;
   visibility: hidden;
   transform: translateY(12px);
   transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
   will-change: transform
}

#to-top.show {
   opacity: 1;
   visibility: visible;
   transform: none
}

#to-top:hover {
   background: var(--ink-2)
}

#to-top svg {
   width: 22px;
   height: 22px
}

#to-top:focus-visible {
   outline: 2px solid var(--lime);
   outline-offset: 2px
}

.hdr-in {
   display: flex;
   align-items: center;
   gap: 30px;
   min-height: 72px
}

.logo {
   display: flex;
   align-items: center;
   gap: 9px;
   font-weight: 800;
   font-size: 20px;
   letter-spacing: .02em
}

.logo .lb {
   width: 30px;
   height: 30px;
   border-radius: 10px 10px 10px 2px;
   background: var(--ink);
   display: grid;
   place-items: center;
   color: var(--lime)
}

/* Логотип-зображення (дефолт теми logomarichka.webp або Custom Logo).
   Зображення самодостатнє (має власний фон), тож підкладка не потрібна;
   border-radius округлює зовнішні кути. */
.logo .logo-mark {
   width: fit-content;
   height: 32px;
   display: block;
   object-fit: contain;
}

.hdr nav {
   display: flex;
   gap: 26px;
   margin-left: auto
}

.hdr nav a:not(.btn) {
   font-weight: 600;
   font-size: 15px;
   color: var(--ink);
   opacity: .8;
   white-space: nowrap
}

.hdr nav a:not(.btn):hover {
   opacity: 1
}

.hdr nav a.is-active:not(.btn) {
   opacity: 1;
   color: var(--lime)
}

/* Hover пунктів меню (десктоп): зміна кольору + підкреслення, що РОСТЕ зліва-направо
   на вхід (origin:left) і ЗНИКАЄ зліва-направо на вихід (базовий origin:right). */
.hdr nav:not(.mnav) a:not(.btn) {
   position: relative
}

.hdr nav:not(.mnav) a:not(.btn)::after {
   content: "";
   position: absolute;
   left: 0;
   right: 0;
   bottom: -6px;
   height: 2px;
   border-radius: 2px;
   background: #7C4DFF;
   transform: scaleX(0);
   transform-origin: right;
   transition: transform .3s var(--ease)
}

.hdr nav:not(.mnav) a:not(.btn):hover {
   opacity: 1;
   color: #7C4DFF
}

.hdr nav:not(.mnav) a:not(.btn):hover::after {
   transform: scaleX(1);
   transform-origin: left
}

@media (prefers-reduced-motion:reduce) {
   .hdr nav:not(.mnav) a:not(.btn)::after {
      transition: none
   }
}

.hdr-in>.btn {
   margin-left: auto
}

.hdr nav~.btn {
   margin-left: 0
}

/* Десктопний кластер дій у шапці: [Увійти][Спробувати Демо]. Div (не .btn), тож
   auto-margin не отримує — nav{margin-left:auto} штовхає весь кластер праворуч. */
.hdr-actions {
   display: flex;
   align-items: center;
   gap: 12px
}

.burger {
   display: none;
   margin-left: auto;
   width: 44px;
   height: 44px;
   padding: 0;
   border: 0;
   background: transparent;
   cursor: pointer;
   position: relative;
   z-index: 61
}

.burger span {
   position: absolute;
   left: 11px;
   right: 11px;
   top: 50%;
   margin-top: -1px;
   height: 2px;
   background: var(--ink);
   border-radius: 2px;
   transition: transform .3s var(--ease), opacity .2s ease
}

.burger span:nth-child(1) {
   transform: translateY(-6px)
}

.burger span:nth-child(3) {
   transform: translateY(6px)
}

.hdr.menu-open .burger span:nth-child(1) {
   transform: rotate(45deg)
}

.hdr.menu-open .burger span:nth-child(2) {
   opacity: 0
}

.hdr.menu-open .burger span:nth-child(3) {
   transform: rotate(-45deg)
}

/* Внутрішні сторінки вантажать батьківський Neve CSS (не вимикається поза front/404),
   а він фарбує будь-який <button> і .btn на :hover/:focus
   (button:hover,.btn:hover{background:var(--primarybtnhoverbg);color:…;border-color:…}).
   Захищаємо chrome шапки: .hdr … (0-3-0) перебиває Neve (button:hover 0-1-1, .btn:hover 0-2-0). */
.hdr .burger:hover,
.hdr .burger:focus,
.hdr .burger:active,
.hdr.menu-open .burger {
   background: transparent;
   box-shadow: none;
   border: 0;
   color: var(--ink)
}

.hdr .btn-lime:hover {
   background: #BCA8FF;
   color: var(--ink);
   border-color: transparent
}

.hdr .btn-dark:hover {
   background: var(--ink-2);
   color: #fff;
   border-color: transparent
}

.hdr .btn-ghost:hover {
   background: transparent;
   color: var(--ink);
   border-color: var(--ink)
}

.hdr-demo {
   display: none;
   transition: opacity .2s ease
}

.hdr .mnav {
   display: none
}

body.menu-lock {
   overflow: hidden
}

body.menu-lock #to-top {
   opacity: 0;
   visibility: hidden;
   pointer-events: none
}

@media (max-width:1024px) {
   .hdr nav:not(.mnav) {
      display: none
   }

   .hdr-actions {
      display: none
   }

   /* Компактна «Демо» ліворуч від бургера. margin-left:auto штовхає кластер [Демо][бургер]
     праворуч; вища специфічність (.hdr .hdr-in>.hdr-demo = 0-3-0) перебиває .hdr nav~.btn (0-2-1). */
   .hdr .hdr-in>.hdr-demo {
      display: inline-flex;
      margin-left: auto;
   }

   .hdr.menu-open .hdr-demo {
      opacity: 0;
      visibility: hidden;
      pointer-events: none
   }

   .hdr-in {
      gap: 12px
   }

   /* лише .hdr-demo тримає margin-left:auto → щільний кластер [Демо][бургер] праворуч */
   .burger {
      display: block;
      margin-left: 0
   }

   .hdr .mnav {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin: 0;
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      height: calc(100dvh - var(--hdr-h));
      padding: 14px clamp(18px, 6vw, 30px) calc(22px + env(safe-area-inset-bottom));
      background: rgba(248, 246, 255, .98);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
      overflow-y: auto;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .22s ease, visibility 0s linear .5s
   }

   .hdr.menu-open .mnav {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity .22s ease, visibility 0s
   }

   .hdr .mnav a {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .35s ease, transform .45s var(--ease)
   }

   .hdr.menu-open .mnav a {
      opacity: 1;
      transform: none
   }

   .hdr .mnav a:nth-child(2) {
      transition-delay: .04s
   }

   .hdr .mnav a:nth-child(3) {
      transition-delay: .08s
   }

   .hdr .mnav a:nth-child(4) {
      transition-delay: .12s
   }

   .hdr .mnav a:nth-child(5) {
      transition-delay: .16s
   }

   .hdr .mnav a:nth-child(6) {
      transition-delay: .20s
   }

   .hdr.menu-open .mnav a:nth-child(1) {
      transition-delay: .08s
   }

   .hdr.menu-open .mnav a:nth-child(2) {
      transition-delay: .15s
   }

   .hdr.menu-open .mnav a:nth-child(3) {
      transition-delay: .22s
   }

   .hdr.menu-open .mnav a:nth-child(4) {
      transition-delay: .29s
   }

   .hdr.menu-open .mnav a:nth-child(5) {
      transition-delay: .36s
   }

   .hdr.menu-open .mnav a:nth-child(6) {
      transition-delay: .43s
   }

   .hdr .mnav a:not(.btn) {
      padding: 17px 4px;
      font-weight: 600;
      font-size: 17px;
      color: var(--ink);
      white-space: normal;
      border-bottom: 1px solid var(--line)
   }

   .hdr .mnav a:not(.btn):has(+ .btn) {
      border-bottom: 0
   }

   .hdr .mnav .btn {
      margin-top: clamp(20px, 5vw, 28px);
      align-self: stretch
   }
}

/* ---------- типографіка (спільна) ---------- */
.h2 {
   font-size: clamp(30px, 3.8vw, 52px);
   font-weight: 800;
   line-height: 1.1;
   letter-spacing: -.02em;
   margin: 0
}

.h3 {
   font-size: clamp(17px, 1.7vw, 21px);
   font-weight: 600;
   line-height: 1.5;
   margin: 16px 0 0;
   color: var(--muted)
}

/* ---------- спільне: темна панель (studio + cta) ---------- */
.dark {
   background: var(--ink);
   color: #fff;
   border-radius: 32px;
   padding: clamp(36px, 5.5vw, 72px);
   position: relative;
   overflow: hidden
}

.dark::before {
   content: "";
   position: absolute;
   inset: 0;
   background: radial-gradient(720px 380px at 85% -10%, rgba(139, 92, 246, .22), transparent 60%);
   pointer-events: none
}

.dark .h2 {
   position: relative
}

.dark .h3 {
   color: rgba(255, 255, 255, .72)
}

/* ---------- спільне: tagline (prod-head + security) ---------- */
.tagline {
   font-size: 13.5px;
   font-weight: 800;
   letter-spacing: .1em;
   text-transform: uppercase;
   color: var(--muted);
   margin: 0 0 14px;
   display: flex;
   align-items: center;
   gap: 10px
}

.tagline i {
   width: 22px;
   height: 22px;
   border-radius: 7px 7px 7px 2px;
   background: var(--lime);
   display: inline-grid;
   place-items: center;
   color: var(--ink)
}

/* ---------- спільне: база .prod (assure + prepare) ---------- */
.prod {
   padding-top: var(--section-gap)
}

.prod-head {
   max-width: 760px
}

.prod .cta-row {
   margin-top: 26px;
   display: flex;
   gap: 12px;
   flex-wrap: wrap
}

/* ---------- спільне: ряд CTA-кнопок (hero + cta) ---------- */
.hero-cta {
   display: flex;
   gap: 12px;
   justify-content: center;
   flex-wrap: wrap;
   margin-top: 32px
}

/* ---------- спільне: одометр (results + testimonial) ---------- */
.odo {
   display: inline-flex;
   overflow: hidden;
   line-height: 1;
   height: 1em
}

.odo .oc {
   display: block;
   transition: transform 1.6s cubic-bezier(.25, .7, .15, 1)
}

.odo .oc span {
   display: block;
   height: 1em
}

.odo .os {
   display: block;
   height: 1em
}

/* ---------- спільне: велике число + підпис (results + testimonial) ---------- */
.rnum {
   font-size: clamp(44px, 4.6vw, 64px);
   font-weight: 800;
   letter-spacing: -.025em;
   line-height: 1;
   font-variant-numeric: tabular-nums;
   display: flex;
   justify-content: center;
   align-items: baseline;
   gap: 3px
}

.rnum .u {
   font-size: .42em;
   color: var(--ink);
   opacity: .55;
   font-weight: 800
}

.rlbl {
   font-size: 15px;
   font-weight: 600;
   color: var(--muted);
   margin-top: 12px
}

/* ---------- спільне: посилання-стрілка (story + testimonial) ---------- */
.link-arr {
   font-weight: 800;
   font-size: 15px;
   display: inline-flex;
   align-items: center;
   gap: 8px;
   border-bottom: 2px solid var(--lime);
   padding-bottom: 3px
}

/* ---------- спільне: word-reveal (assure heading + story) ---------- */
.wreveal .w {
   opacity: .14
}

.wreveal.fb .w {
   transition: opacity .35s ease
}

.wreveal .w.on {
   opacity: 1
}

/* ---------- спільне: чат/CRM-мокап (prepare + security) ---------- */
.mock {
   background: var(--card);
   border: 1px solid var(--line);
   border-radius: var(--r);
   box-shadow: var(--sh-card);
   overflow: hidden
}

.mock-hd {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 14px 18px;
   border-bottom: 1px solid var(--line)
}

.ava {
   width: 38px;
   height: 38px;
   border-radius: 50%;
   overflow: hidden;
   background: var(--mint);
   flex: none
}

.ava img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: top
}

.mock-hd b {
   font-size: 15px
}

.mock-hd small {
   display: block;
   font-size: 12.5px;
   color: var(--muted);
   font-weight: 600
}

.on-dot {
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: #3ECF52;
   display: inline-block;
   margin-right: 5px
}

.mock-body {
   padding: 20px 18px;
   display: flex;
   flex-direction: column;
   gap: 16px;
   min-height: 270px
}

/* Бульбашка = ряд «аватар + картка» з міні-шапкою (ім'я+час) і хвостиком біля аватара. */
.msg {
   display: flex;
   gap: 10px;
   align-items: flex-start;
   max-width: 90%;
   font-weight: 400;
   opacity: 0;
   transform: translateY(8px)
}

.msg.in {
   align-self: flex-start;
   flex-direction: row
}

.msg.out {
   align-self: flex-end;
   flex-direction: row-reverse
}

.msg.show {
   opacity: 1;
   transform: none;
   transition: opacity .35s ease, transform .35s ease
}

.msg-ava {
   width: 30px;
   height: 30px;
   flex: none;
   margin-top: 2px;
   border-radius: 50%;
   overflow: hidden;
   display: grid;
   place-items: center;
   background: var(--mint)
}

.msg.out .msg-ava {
   background: var(--lime-soft)
}

.msg-ava img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: top
}

.msg-emoji {
   font-size: 16px;
   line-height: 1
}

.msg-b {
   position: relative;
   min-width: 0;
   padding: 10px 14px;
   border-radius: 16px;
   background: var(--card);
   border: 1px solid var(--line);
   box-shadow: 0 6px 18px rgba(var(--ink-rgb), .05)
}

.msg.in .msg-b {
   border-top-left-radius: 5px
}

.msg.out .msg-b {
   background: var(--lime-soft);
   border-color: transparent;
   border-top-right-radius: 5px;
   box-shadow: 0 6px 18px rgba(var(--lime-rgb), .20)
}

.msg-b::before {
   content: "";
   position: absolute;
   top: 12px;
   width: 11px;
   height: 11px;
   background: inherit;
   transform: rotate(45deg)
}

.msg.in .msg-b::before {
   left: -4px;
   border-bottom-left-radius: 3px;
   border-left: 1px solid var(--line);
   border-bottom: 1px solid var(--line)
}

.msg.out .msg-b::before {
   right: -4px;
   border-bottom-right-radius: 3px
}

.msg-meta {
   display: flex;
   align-items: baseline;
   gap: 10px;
   margin-bottom: 3px
}

.msg-who {
   font-size: 13.5px;
   font-weight: 800;
   letter-spacing: -.01em;
   color: var(--ink)
}

.msg.out .msg-who {
   color: #7C4DFF
}

.msg-time {
   margin-left: auto;
   flex: none;
   font-size: 11.5px;
   font-weight: 600;
   color: var(--muted)
}

.msg-tx {
   font-size: 14px;
   font-weight: 600;
   line-height: 1.5;
   color: var(--ink)
}

.msg-tx>p {
   margin: 0
}

.msg-tx>p+p {
   margin-top: 6px
}

/* індикатор набору (.tt) від main.js — теж бульбашка */
.msg .tt {
   display: inline-flex;
   gap: 4px;
   align-items: center;
   padding: 12px 14px;
   border-radius: 16px;
   background: var(--card);
   border: 1px solid var(--line);
   box-shadow: 0 6px 18px rgba(var(--ink-rgb), .05)
}

.msg.out .tt {
   background: var(--lime-soft);
   border-color: transparent
}

.msg .tt i {
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: var(--muted);
   animation: tdot 1s ease-in-out infinite
}

.msg .tt i:nth-child(2) {
   animation-delay: .15s
}

.msg .tt i:nth-child(3) {
   animation-delay: .3s
}

@keyframes tdot {

   0%,
   100% {
      transform: translateY(0);
      opacity: .4
   }

   50% {
      transform: translateY(-3px);
      opacity: 1
   }
}

.mock-ft {
   display: flex;
   gap: 10px;
   padding: 14px 18px;
   border-top: 1px solid var(--line)
}

.mock-ft span {
   flex: 1;
   border: 1.5px solid var(--line);
   border-radius: 999px;
   padding: 10px 16px;
   font-size: 14px;
   color: var(--muted);
   font-weight: 600
}

.mock-ft b {
   width: 42px;
   height: 42px;
   border-radius: 50%;
   background: var(--lime);
   display: grid;
   place-items: center;
   flex: none
}

@media (max-width:480px) {
   .msg {
      max-width: 96%
   }

   .msg-ava {
      width: 26px;
      height: 26px
   }
}

/* ---------- reveal (спільне) ---------- */
.rv {
   opacity: 0;
   transform: translateY(24px);
   transition: opacity .65s ease, transform .7s var(--ease)
}

.rv.on {
   opacity: 1;
   transform: none
}

/* ---------- placeholder (fallback зображень, phFallback) ---------- */
.ph {
   display: grid;
   place-items: center;
   background: var(--mint);
   border-radius: 50%;
   aspect-ratio: 1;
   width: 100%;
   font-size: clamp(36px, 5vw, 60px)
}

/* Gutenberg-утиліти вирівнювання тексту — на фронті знято wp-block-library, тож дублюємо */
.has-text-align-center {
   text-align: center
}

.has-text-align-right {
   text-align: right
}

.has-text-align-left {
   text-align: left
}

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

   *,
   *::before,
   *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
      transition-delay: 0ms !important
   }

   .rv {
      opacity: 1;
      transform: none
   }

   .wreveal .w {
      opacity: 1
   }

   .marq-t {
      animation: none
   }
}

/* ---------- футер (chrome, у footer.php) ---------- */
footer {
   background: var(--ink);
   color: #fff;
   border-radius: 32px 32px 0 0;
   padding: clamp(44px, 6vh, 70px) 0 34px
}

.ft-top {
   display: flex;
   justify-content: space-between;
   gap: clamp(28px, 5vw, 64px);
   flex-wrap: wrap
}

.ft-brand {
   max-width: 340px
}

.ft-brand .logo .lb {
   background: var(--lime);
   color: var(--ink)
}

.ft-brand p {
   font-size: 14px;
   color: rgba(255, 255, 255, .6);
   font-weight: 500;
   max-width: 32ch;
   margin: 16px 0 0
}

.ft-side {
   display: flex;
   flex-direction: column;
   gap: 22px
}

.ft-contact {
   margin: 0;
   font-size: 14px;
   font-weight: 500;
   line-height: 1.9;
   color: rgba(255, 255, 255, .6);
   text-align: right
}

.ft-contact a:hover {
   color: var(--lime)
}

.ft-nav {
   display: flex;
   flex-wrap: wrap;
   gap: 12px 26px;
   align-content: flex-start
}

.ft-nav a {
   font-size: 14.5px;
   font-weight: 600;
   color: rgba(255, 255, 255, .82)
}

.ft-nav a:hover {
   color: var(--lime)
}

.ft-bot {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   flex-wrap: wrap;
   border-top: 1px solid rgba(255, 255, 255, .12);
   margin-top: 44px;
   padding-top: 26px;
   font-size: 13.5px;
   color: rgba(255, 255, 255, .55);
   font-weight: 600
}

.ft-legal {
   display: flex;
   gap: 20px;
   flex-wrap: wrap
}

.ft-bot a:hover {
   color: var(--lime)
}

/* Планшет/мобілка (≤1024, як і бургер-меню): контакти — ліворуч, нижній рядок — по центру */
@media (max-width:1024px) {
   .ft-contact {
      text-align: left
   }

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

   .ft-legal {
      justify-content: center
   }
}

/* ---------- accessibility utilities (skip link / sr-only) ---------- */
.screen-reader-text {
   border: 0;
   clip: rect(1px, 1px, 1px, 1px);
   -webkit-clip-path: inset(50%);
   clip-path: inset(50%);
   height: 1px;
   margin: -1px;
   overflow: hidden;
   padding: 0;
   position: absolute !important;
   width: 1px;
   word-wrap: normal !important
}

.screen-reader-text:focus {
   background-color: #f1f1f1;
   border-radius: 3px;
   box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
   clip: auto !important;
   -webkit-clip-path: none;
   clip-path: none;
   color: #21759b;
   display: block;
   font-size: 14px;
   font-weight: 700;
   height: auto;
   left: 5px;
   line-height: normal;
   padding: 15px 23px 14px;
   text-decoration: none;
   top: 5px;
   width: auto;
   z-index: 100000
}

[tabindex="-1"]:focus {
   outline: none
}

/* ---------- внутрішні сторінки: core-акордеон Gutenberg у стилі FAQ-карток ---------- */
/* Той самий візуал, що й details.faq-item (блок FAQ): картка, лавандовий шеврон,
   м'яка тінь у відкритому стані. Скоуп .entry-content — лише контент внутрішніх
   сторінок (на головній entry-content немає). Перебиває дефолтні стилі кнопок Neve. */
.entry-content .wp-block-accordion {
   display: grid;
   gap: 14px;
   margin: clamp(18px, 3vw, 30px) 0;
   counter-reset: mar-acc
}

/* Закритий пункт — без фону (лише контур); фон з'являється у відкритого (.is-open ставить view.js блока) */
.entry-content .wp-block-accordion-item {
   counter-increment: mar-acc;
   background: transparent;
   border: 1px solid var(--line);
   border-radius: 18px;
   padding: 0 clamp(16px, 2.4vw, 24px);
   transition: background .2s ease, border-color .2s ease, box-shadow .2s ease
}

.entry-content .wp-block-accordion-item:hover {
   border-color: rgba(var(--lime-rgb), .45);
   box-shadow: 0 10px 30px rgba(var(--ink-rgb), .06)
}

.entry-content .wp-block-accordion-item.is-open {
   background: var(--card);
   border-color: rgba(var(--lime-rgb), .5);
   box-shadow: 0 14px 40px rgba(var(--ink-rgb), .07)
}

.entry-content .wp-block-accordion-heading {
   margin: 0
}

.entry-content .wp-block-accordion-heading__toggle {
   display: flex;
   align-items: center;
   justify-content: flex-start;
   gap: clamp(12px, 1.8vw, 18px);
   width: 100%;
   padding: 16px 0;
   margin: 0;
   border: 0;
   border-radius: 0;
   background: transparent;
   color: var(--ink);
   font-family: inherit;
   font-size: clamp(16px, 1.8vw, 18.5px);
   font-weight: 800;
   line-height: 1.35;
   letter-spacing: -.01em;
   text-align: left;
   text-decoration: none;
   text-transform: none;
   cursor: pointer;
   box-shadow: none
}

/* Нумерована плитка 01…NN — фірмовий елемент, щоб не виглядало як звичайний FAQ */
.entry-content .wp-block-accordion-heading__toggle::before {
   content: counter(mar-acc, decimal-leading-zero);
   flex: none;
   width: clamp(38px, 4vw, 44px);
   height: clamp(38px, 4vw, 44px);
   border-radius: 13px 13px 13px 4px;
   background: var(--mint);
   color: var(--ink);
   display: grid;
   place-items: center;
   font-size: 13.5px;
   font-weight: 800;
   letter-spacing: .03em;
   transition: background .2s ease, color .2s ease
}

.entry-content .wp-block-accordion-heading__toggle:hover::before {
   background: var(--lime)
}

.entry-content .wp-block-accordion-heading__toggle[aria-expanded="true"]::before {
   background: #7C4DFF;
   color: #fff
}

.entry-content .wp-block-accordion-heading__toggle-title {
   margin-right: auto
}

/* Инлайн-стилі блока дають underline на hover (0-3-0) — глушимо вищою специфічністю */
.entry-content .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
   text-decoration: none
}

.entry-content .wp-block-accordion-heading__toggle:hover,
.entry-content .wp-block-accordion-heading__toggle:focus,
.entry-content .wp-block-accordion-heading__toggle:active {
   background: transparent;
   color: var(--ink);
   text-decoration: none;
   box-shadow: none;
   outline: none
}

.entry-content .wp-block-accordion-heading__toggle:focus-visible {
   outline: 2px solid var(--ink);
   outline-offset: 2px
}

.entry-content .wp-block-accordion-heading__toggle-title {
   text-decoration: none
}

/* Текстовий «+» ховаємо (font-size:0); значок — кругла кнопка з шевроном-маскою */
.entry-content .wp-block-accordion-heading__toggle-icon {
   flex: none;
   width: 34px;
   height: 34px;
   font-size: 0;
   line-height: 0;
   position: relative;
   border: 1.5px solid var(--line);
   border-radius: 50%;
   background: transparent;
   transition: transform .3s var(--ease), background .2s ease, border-color .2s ease
}

.entry-content .wp-block-accordion-heading__toggle-icon::after {
   content: "";
   position: absolute;
   inset: 0;
   background: var(--ink);
   -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/50% no-repeat;
   mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/50% no-repeat;
   transition: background .2s ease
}

.entry-content .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-icon {
   background: var(--ink);
   border-color: var(--ink)
}

.entry-content .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-icon::after {
   background: #fff
}

/* Блоковий інлайн-стиль крутить значок лише на 45° (.is-open … 0-4-0, «+»→«×») —
   перебиваємо повний оберт шеврона селектором 0-5-0. */
.entry-content .wp-block-accordion-item.is-open>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
   transform: rotate(180deg);
   background: var(--ink);
   border-color: var(--ink)
}

/* У відкритого пункта — білий хрестик «закрити» замість шеврона (маска міняється,
   поворот кола дає анімацію; «×» симетричний, тож 180° його не спотворює). */
.entry-content .wp-block-accordion-item.is-open>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon::after {
   background: #fff;
   -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E") center/46% no-repeat;
   mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E") center/46% no-repeat
}

/* Вміст панелі — типографіка як у відповідях FAQ */
.entry-content .wp-block-accordion-panel {
   padding: 2px 0 22px;
   color: var(--muted);
   font-weight: 500;
   font-size: 15px;
   line-height: 1.65
}

.entry-content .wp-block-accordion-panel>* {
   margin: 0 0 12px
}

.entry-content .wp-block-accordion-panel>*:last-child {
   margin-bottom: 0
}

.entry-content .wp-block-accordion-panel h2,
.entry-content .wp-block-accordion-panel h3,
.entry-content .wp-block-accordion-panel h4 {
   color: var(--ink);
   font-weight: 800;
   letter-spacing: -.01em;
   line-height: 1.25;
   margin: 22px 0 10px
}

.entry-content .wp-block-accordion-panel>h2:first-child,
.entry-content .wp-block-accordion-panel>h3:first-child {
   margin-top: 6px
}

.entry-content .wp-block-accordion-panel h2 {
   font-size: 20px
}

.entry-content .wp-block-accordion-panel h3 {
   font-size: 17px
}

.entry-content .wp-block-accordion-panel h4 {
   font-size: 16px
}

.entry-content .wp-block-accordion-panel strong {
   color: var(--ink)
}

.entry-content .wp-block-accordion-panel a {
   color: #6D28D9;
   font-weight: 700;
   text-decoration: underline
}

.entry-content .wp-block-accordion-panel ul,
.entry-content .wp-block-accordion-panel ol {
   padding-left: 20px
}

.entry-content .wp-block-accordion-panel li {
   margin: 6px 0
}

.entry-content .wp-block-accordion-panel blockquote {
   margin: 0 0 12px;
   padding: 12px 16px;
   border-left: 3px solid var(--lime);
   background: var(--bg);
   border-radius: 0 12px 12px 0;
   font-style: normal
}

.entry-content .wp-block-accordion-panel blockquote p {
   margin: 0
}

.entry-content .wp-block-accordion-panel .wp-block-table {
   margin: 0 0 12px;
   overflow-x: auto
}

.entry-content .wp-block-accordion-panel .wp-block-table table {
   border-collapse: collapse;
   width: 100%;
   font-size: 14px
}

.entry-content .wp-block-accordion-panel .wp-block-table th,
.entry-content .wp-block-accordion-panel .wp-block-table td {
   border: 1px solid var(--line);
   padding: 8px 12px;
   text-align: left
}

.entry-content .wp-block-accordion-panel .wp-block-table th {
   color: var(--ink);
   background: var(--bg)
}

/* ---------- внутрішні сторінки: списки контенту (wp-block-list) ---------- */
/* Марковані — замість крапок лавандова плитка з галочкою (мова сайту).
   Йде ПІСЛЯ правил панелі акордеона, щоб перекрити її padding-left для ul. */
.entry-content ul.wp-block-list {
   list-style: none;
   margin: 0 0 12px;
   padding-left: 2px;
   display: grid;
   gap: 9px
}

.entry-content ul.wp-block-list li {
   position: relative;
   margin: 0;
   padding-left: 31px;
   min-height: 21px
}

.entry-content ul.wp-block-list li::before {
   content: "";
   position: absolute;
   left: 0;
   top: .12em;
   width: 21px;
   height: 21px;
   border-radius: 7px 7px 7px 2px;
   background: var(--lime-soft)
}

.entry-content ul.wp-block-list li::after {
   content: "";
   position: absolute;
   left: 0;
   top: .12em;
   width: 21px;
   height: 21px;
   background: #7C4DFF;
   -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 7.5'/%3E%3C/svg%3E") center/60% no-repeat;
   mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 7.5'/%3E%3C/svg%3E") center/60% no-repeat
}

/* Вкладені марковані — простіша лавандова цятка, щоб не ряснило галочками */
.entry-content ul.wp-block-list ul.wp-block-list {
   margin: 9px 0 0
}

.entry-content ul.wp-block-list ul.wp-block-list li {
   padding-left: 24px
}

.entry-content ul.wp-block-list ul.wp-block-list li::before {
   top: .42em;
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: var(--lime)
}

.entry-content ul.wp-block-list ul.wp-block-list li::after {
   content: none
}

/* Нумеровані — фіолетовий жирний номер */
.entry-content ol.wp-block-list {
   margin: 0 0 12px;
   padding-left: 24px;
   display: grid;
   gap: 9px
}

.entry-content ol.wp-block-list li {
   margin: 0;
   padding-left: 6px
}

.entry-content ol.wp-block-list li::marker {
   color: #7C4DFF;
   font-weight: 800;
   font-size: 14px
}

/* Стиль блока «Без маркерів» (register_block_style у functions.php): голий список.
   Базове правило без .entry-content — щоб діяло й у редакторі (editor styles). */
.wp-block-list.is-style-no-marker {
   list-style: none;
   padding-left: 0
}

.entry-content ul.wp-block-list.is-style-no-marker,
.entry-content ol.wp-block-list.is-style-no-marker {
   list-style: none;
   padding-left: 0
}

.entry-content ul.wp-block-list.is-style-no-marker li,
.entry-content ol.wp-block-list.is-style-no-marker li {
   padding-left: 0
}

.entry-content ul.wp-block-list.is-style-no-marker li::before,
.entry-content ul.wp-block-list.is-style-no-marker li::after {
   content: none
}

.entry-content ol.wp-block-list.is-style-no-marker li::marker {
   content: none
}