/* =========================================================
   МОБІЛЬНИЙ UI ДЛЯ ГОЛОВНОЇ СТОРІНКИ
   Повна заміна файлу mobile-ui.css
   ========================================================= */

/* =========================================================
   1. БАЗОВІ ПРАВИЛА ДЛЯ HTML / BODY
   Ці правила вмикають мобільний режим і прибирають
   горизонтальний скрол.
   ========================================================= */

html.zf-mobile-home,
html.zf-mobile-home body{
  width:100%;
  min-width:100%;
  margin:0;
  padding:0;
}

html.zf-mobile-home body,
html.zf-mobile-ui,
html.zf-mobile-ui body{
  overflow-x:hidden !important;
  background:#140603 !important;
}

/* За замовчуванням мобільна оболонка та нижнє меню приховані.
   Вони покажуться тільки в media-запиті для мобільних. */
.zf-mob-shell,
.zf-global-mob-bottom-nav{
  display:none !important;
}

/* =========================================================
   2. МОБІЛЬНІ ПРАВИЛА
   Усе нижче працює тільки на екранах до 768px.
   ========================================================= */

@media (max-width: 768px){

  /* =======================================================
     2.1. БЛОКУВАННЯ BODY ПІД ЧАС ВІДКРИТОГО МЕНЮ / МОДАЛКИ
     ======================================================= */
  body.zf-mob-lock{
    overflow:hidden !important;
    touch-action:none !important;
  }

  /* =======================================================
     2.2. ХОВАЄМО ДЕСКТОПНІ БЛОКИ НА МОБІЛЦІ
     ======================================================= */
  html.zf-mobile-home .zf-header,
  html.zf-mobile-home .bftr,
  html.zf-mobile-home .zf-home,
  html.zf-mobile-home .zf-desktop-hide-on-mobile{
    display:none !important;
  }

  /* =======================================================
     2.3. ОСНОВНА МОБІЛЬНА ОБОЛОНКА СТОРІНКИ
     Тут головний фон і внутрішні відступи сторінки.
     Верхній padding збільшений, бо хедер вищий.
     ======================================================= */
  html.zf-mobile-home .zf-mob-shell{
    position:relative;
    display:block !important;
    width:100%;
    min-height:100vh;
    margin:0;
    padding:146px 14px 118px;
    box-sizing:border-box;
    background:
      radial-gradient(circle at 50% 12%, rgba(255,201,103,.14) 0%, rgba(255,201,103,0) 34%),
      radial-gradient(circle at 50% 55%, rgba(255,170,60,.12) 0%, rgba(255,170,60,0) 40%),
      linear-gradient(180deg, #1e0503 0%, #130302 45%, #0d0202 100%);
    color:#f6e7c8;
    font-family:Arial, Helvetica, sans-serif;
  }

  /* =======================================================
     3. ВЕРХНІЙ МОБІЛЬНИЙ ХЕДЕР
     ======================================================= */

  /* Головний контейнер хедера.
     Стартова висота збільшена. */
  .zf-mob-topbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:126px;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(180deg,#180502,#120301);
    border-bottom:1px solid rgba(240,201,106,.18);
    overflow:hidden;
    transition:height .32s ease;
  }

  /* Компактний стан хедера при скролі */
  .zf-mob-topbar.is-compact{
    height:68px;
  }

  /* =======================================================
     3.1. КНОПКА БУРГЕРА / ЛІВА КНОПКА
     ======================================================= */
  .zf-mob-iconbtn{
    position:absolute;
    top:10px;
    left:10px;
    width:46px;
    height:46px;
    border:2px solid #cda24a;
    border-radius:14px;
    background:rgba(28,10,4,.30);
    box-shadow:
      0 10px 24px rgba(0,0,0,.22),
      inset 0 1px 0 rgba(255,255,255,.05);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    cursor:pointer;
    box-sizing:border-box;
    transition:all .32s ease;
  }

  .zf-mob-burger{
    position:absolute;
    left:10px;
    top:10px;
    width:46px;
    height:46px;
  }

  .zf-mob-burger span{
    display:block;
    width:22px;
    height:2px;
    margin:3px 0;
    border-radius:999px;
    background:#f0c96a;
    transition:all .24s ease;
  }

  /* Компактний стан лівої кнопки */
  .zf-mob-topbar.is-compact .zf-mob-iconbtn,
  .zf-mob-topbar.is-compact .zf-mob-burger{
    top:8px;
    left:8px;
    width:42px;
    height:42px;
    border-radius:12px;
  }

  .zf-mob-topbar.is-compact .zf-mob-burger span{
    width:18px;
    margin:2px 0;
  }

  /* =======================================================
     3.2. КНОПКА "ЗАТЕЛЕФОНУВАТИ"
     ======================================================= */
  .zf-mob-callbtn{
    position:absolute;
    right:10px;
    top:10px;
    min-width:118px;
    height:46px;
    padding:0 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    white-space:nowrap;
    border:2px solid #cda24a;
    border-radius:14px;
    background:rgba(28,10,4,.30);
    box-shadow:
      0 10px 24px rgba(0,0,0,.22),
      inset 0 1px 0 rgba(255,255,255,.05);
    color:#f0c96a;
    text-decoration:none;
    font-size:11px;
    font-weight:800;
    letter-spacing:.02em;
    box-sizing:border-box;
    transition:all .32s ease;
  }

  .zf-mob-topbar.is-compact .zf-mob-callbtn{
    top:8px;
    right:8px;
    min-width:104px;
    height:40px;
    padding:0 8px;
    font-size:10px;
  }

  .zf-mob-callbtn__icon{
    font-size:15px;
    line-height:1;
  }

  /* =======================================================
     3.3. ЛОГО У ХЕДЕРІ
     У звичайному стані воно велике.
     У compact-стані — менше і трохи нижче від кнопок.
     ======================================================= */
  .zf-mob-topbar__brand{
    position:absolute;
    left:50%;
    top:66px;
    width:210px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    text-decoration:none;
    transform:translateX(-50%);
    transition:
      top .32s ease,
      width .32s ease,
      height .32s ease,
      transform .32s ease;
  }

  .zf-mob-topbar.is-compact .zf-mob-topbar__brand{
    top:58%;
    width:150px;
    height:48px;
    transform:translate(-50%,-50%);
  }

  .zf-mob-topbar__brand img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
  }

  /* =======================================================
     4. HERO / ПЕРШИЙ ЕКРАН
     ======================================================= */
  .zf-mob-hero{
    position:relative;
    width:100%;
    max-width:none;
    margin:0;
    text-align:center;
    box-sizing:border-box;
  }

  /* Внутрішній logo-блок у hero не потрібен,
     бо лого вже стоїть у верхньому хедері */
  .zf-mob-hero__brand{
    display:none;
  }

  /* =======================================================
     4.1. КАРТКА "СКІЛЬКИ СЬОГОДНІ КОШТУЄ..."
     ======================================================= */
  .zf-mob-price-card{
    width:100%;
    margin-top:8px;
    padding:18px 16px 20px;
    border:1px solid rgba(240,201,106,.60);
    border-radius:30px;
    background:
      radial-gradient(circle at 75% 10%, rgba(255,211,120,.20) 0%, rgba(255,211,120,0) 20%),
      radial-gradient(circle at 20% 70%, rgba(255,181,79,.12) 0%, rgba(255,181,79,0) 28%),
      rgba(28,10,4,.28);
    box-shadow:
      0 16px 30px rgba(0,0,0,.24),
      inset 0 0 0 1px rgba(240,201,106,.08);
    text-align:center;
    cursor:pointer;
    color:#f6e7c8;
    box-sizing:border-box;
  }

  .zf-mob-price-card__title{
    display:block;
    margin-bottom:14px;
    font-family:Georgia, "Times New Roman", serif;
    font-size:22px;
    line-height:1.15;
    font-weight:700;
    color:#f4deab;
  }

  .zf-mob-price-card__value-wrap{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:82px;
    margin-bottom:14px;
    padding:0 12px;
    border:1px solid rgba(240,201,106,.65);
    border-radius:26px;
    background:rgba(15,5,2,.52);
    box-shadow:inset 0 0 0 1px rgba(255,236,182,.08);
    box-sizing:border-box;
  }

  .zf-mob-price-card__value{
    font-family:Georgia, "Times New Roman", serif;
    font-size:58px;
    line-height:1;
    font-weight:700;
    color:#f0c96a;
  }

  .zf-mob-price-card__currency{
    font-family:Georgia, "Times New Roman", serif;
    font-size:30px;
    line-height:1;
    font-weight:700;
    color:#f0c96a;
  }

  .zf-mob-price-card__button{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:58px;
    border-radius:14px;
    background:linear-gradient(180deg, #f4cb69 0%, #c88a23 100%);
    color:#231302;
    font-size:20px;
    font-weight:800;
  }

  /* =======================================================
     5. ЗАГОЛОВКИ СЕКЦІЙ
     Наприклад "Як це працює"
     ======================================================= */
  .zf-mob-section-title{
    position:relative;
    margin:26px 0 12px;
    text-align:center;
    font-family:Georgia, "Times New Roman", serif;
    color:#f4deab;
    font-size:30px;
    line-height:1.1;
    font-weight:700;
  }

  .zf-mob-section-title::before,
  .zf-mob-section-title::after{
    content:"";
    position:absolute;
    top:50%;
    width:26%;
    height:1px;
    background:rgba(240,201,106,.28);
  }

  .zf-mob-section-title::before{
    left:0;
  }

  .zf-mob-section-title::after{
    right:0;
  }

  /* =======================================================
     6. БЛОК "ЯК ЦЕ ПРАЦЮЄ"
     Тут я прибрав дублювання правил і все зібрав в один
     чистий варіант.
     ======================================================= */

  /* Контейнер усіх кроків */
  .zf-mob-how{
    display:grid;
    gap:8px;
  }

  /* Один крок: іконка зліва, текст справа */
  .zf-mob-how__item{
    display:grid !important;
    grid-template-columns:100px 1fr;
    gap:2px;
    align-items:center;
    text-align:left;
    min-height:92px;
  }

  /* Контейнер іконки:
     робимо обʼєм, рамку, фон, glow */
  .zf-mob-how__icon{
    position:relative;
    width:86px;
    height:76px;
    display:flex !important;
    align-items:center;
    justify-content:center;
    flex:0 0 86px;
    border-radius:22px;
    background:linear-gradient(180deg,#2a0d05,#120402);
    border:1px solid rgba(240,201,106,.35);
    box-shadow:
      0 10px 22px rgba(0,0,0,.35),
      inset 0 1px 0 rgba(255,255,255,.05),
      inset 0 -8px 18px rgba(0,0,0,.45);
    overflow:hidden;
  }

  /* Внутрішній мʼякий світловий шар */
  .zf-mob-how__icon::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:22px;
    background:
      radial-gradient(circle at 30% 20%, rgba(255,220,140,.22), transparent 60%),
      radial-gradient(circle at 70% 80%, rgba(255,180,60,.14), transparent 60%);
    pointer-events:none;
  }

  /* Зовнішній декоративний контур */
  .zf-mob-how__icon::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:22px;
    border:1px solid rgba(255,215,130,.38);
    pointer-events:none;
  }

  /* Сама картинка іконки */
  .zf-mob-how__icon img{
    position:relative;
    z-index:2;
    width:92px;
    height:auto;
    display:block;
    object-fit:contain;
    filter:drop-shadow(0 4px 10px rgba(240,201,106,.28));
    transition:transform .25s ease, filter .25s ease;
    animation:zfIconPulse 2.8s ease-in-out infinite;
  }

  /* Легка "жива" анімація іконки */
  @keyframes zfIconPulse{
    0%   { transform:scale(1); }
    50%  { transform:scale(1.06); }
    100% { transform:scale(1); }
  }

  /* Реакція на дотик */
  .zf-mob-how__item:active .zf-mob-how__icon img{
    transform:scale(.95);
  }

  /* Текстова частина кроку */
  .zf-mob-how__content{
    text-align:left;
  }

  /* Назва кроку */
  .zf-mob-how__content h3{
    margin:0 0 2px;
    font-family:Georgia, "Times New Roman", serif;
    color:#f4deab;
    font-size:14px;
    line-height:1.05;
    font-weight:700;
  }

  /* Опис кроку */
  .zf-mob-how__content p{
    margin:0;
    color:#f6e7c8;
    font-size:11px;
    line-height:1.25;
  }

  /* =======================================================
     7. БОКОВЕ МОБІЛЬНЕ МЕНЮ
     ======================================================= */
  .zf-mob-menu-panel{
    position:fixed;
    inset:0;
    z-index:160;
  }

  .zf-mob-menu-panel__overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.58);
  }

  .zf-mob-menu-panel__dialog{
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:min(86vw, 360px);
    padding:20px 18px 24px;
    background:linear-gradient(180deg,#1f0c08 0%, #0f0503 100%);
    box-shadow:20px 0 40px rgba(0,0,0,.35);
    display:flex;
    flex-direction:column;
    gap:20px;
    box-sizing:border-box;
  }

  .zf-mob-menu-panel__head,
  .zf-mob-modal__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .zf-mob-menu-panel__title,
  .zf-mob-modal__title{
    margin:0;
    color:#f3dfad;
    font-size:24px;
    line-height:1.1;
    font-weight:800;
  }

  .zf-mob-close{
    width:42px;
    height:42px;
    border:none;
    border-radius:14px;
    background:linear-gradient(180deg, rgba(58,20,11,.95), rgba(24,8,5,.95));
    color:#f6e7c8;
    font-size:28px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    cursor:pointer;
  }

  .zf-mob-menu-panel__nav{
    display:grid;
    gap:10px;
  }

  .zf-mob-menu-link{
    display:block;
    padding:14px 16px;
    border-radius:16px;
    text-decoration:none;
    color:#f6e7c8;
    font-size:15px;
    font-weight:700;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(240,201,106,.14);
  }

  .zf-mob-menu-panel__actions{
    margin-top:auto;
    display:grid;
    gap:10px;
  }

  .zf-mob-menu-cta,
  .zf-mob-menu-ghost{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    padding:10px 16px;
    border-radius:999px;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
    letter-spacing:.05em;
    box-sizing:border-box;
  }

  .zf-mob-menu-cta{
    color:#2a1705;
    background:linear-gradient(180deg, #ffeeb8 0%, #e4bc58 100%);
  }

  .zf-mob-menu-ghost{
    color:#f6e7c8;
    border:1px solid rgba(240,201,106,.28);
    background:rgba(255,255,255,.03);
  }

  /* =======================================================
     8. МОДАЛЬНЕ ВІКНО КАЛЬКУЛЯТОРА
     ======================================================= */
  .zf-mob-modal{
    position:fixed;
    inset:0;
    z-index:170;
  }

  .zf-mob-modal__overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.62);
  }

  .zf-mob-modal__dialog{
    position:absolute;
    left:12px;
    right:12px;
    bottom:12px;
    max-height:min(82vh, 760px);
    overflow:auto;
    border-radius:28px;
    padding:18px 16px 20px;
    background:linear-gradient(180deg,#1d0b07 0%, #0e0403 100%);
    box-shadow:0 24px 60px rgba(0,0,0,.36);
    box-sizing:border-box;
  }

  .zf-mob-modal__body{
    padding-top:16px;
  }

  .zf-mob-field{
    display:grid;
    gap:8px;
    margin-bottom:14px;
  }

  .zf-mob-field__label{
    color:#f0c96a;
    font-size:13px;
    line-height:1.2;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
  }

  .zf-mob-input,
  .zf-mob-select{
    width:100%;
    min-height:52px;
    border-radius:16px;
    border:1px solid rgba(240,201,106,.18);
    background:rgba(255,255,255,.04);
    color:#f6e7c8;
    font-size:16px;
    padding:0 14px;
    outline:none;
    box-sizing:border-box;
  }

  .zf-mob-result{
    margin:14px 0 8px;
    padding:18px 14px;
    border-radius:20px;
    border:1px solid rgba(240,201,106,.16);
    background:linear-gradient(180deg, rgba(255,240,184,.06), rgba(228,188,88,.04));
    text-align:center;
  }

  .zf-mob-result__value{
    color:#ffe7a8;
    font-size:40px;
    line-height:1;
    font-weight:900;
  }

  .zf-mob-result__currency{
    color:#f0c96a;
    font-size:18px;
    font-weight:800;
    margin-left:6px;
  }

  .zf-mob-note{
    margin:10px 0 0;
    color:rgba(246,231,200,.76);
    font-size:13px;
    line-height:1.5;
    text-align:center;
  }

  .zf-mob-submit,
  .zf-mob-submit--link{
    width:100%;
    min-height:54px;
    margin-top:16px;
    border:none;
    border-radius:999px;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(180deg, #fff0b8 0%, #e2b84f 100%);
    color:#241403;
    font-size:15px;
    font-weight:900;
    letter-spacing:.04em;
    cursor:pointer;
    box-sizing:border-box;
  }

  .zf-mob-contactline{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    margin-top:10px;
    border-radius:999px;
    text-decoration:none;
    color:#f6e7c8;
    font-size:14px;
    font-weight:800;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(240,201,106,.14);
    box-sizing:border-box;
  }

  /* =======================================================
     9. НИЖНЄ МОБІЛЬНЕ МЕНЮ
     ======================================================= */
  .zf-global-mob-bottom-nav{
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    z-index:9999;
    display:grid !important;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
    padding:10px;
    border-radius:28px;
    background:linear-gradient(180deg, rgba(28,10,7,.96), rgba(14,5,3,.98));
    border:1px solid rgba(240,201,106,.16);
    box-shadow:0 18px 40px rgba(0,0,0,.32);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    box-sizing:border-box;
  }

  .zf-global-mob-bottom-nav__item{
    min-height:62px;
    border:none;
    border-radius:20px;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    background:transparent;
    color:#ead9b0;
    padding:8px 4px;
    box-sizing:border-box;
  }

  .zf-global-mob-bottom-nav__icon{
    font-size:18px;
    line-height:1;
    color:#f0c96a;
  }

  .zf-global-mob-bottom-nav__label{
    font-size:11px;
    line-height:1.1;
    font-weight:800;
  }

  /* Додаємо нижній внутрішній відступ для body,
     щоб контент не заходив під нижнє меню */
  html.zf-mobile-home body{
    padding-bottom:110px !important;
  }
  /* =========================================================
   МОБІЛЬНИЙ КАЛЬКУЛЯТОР ПІД БЛОКОМ "ЯК ЦЕ ПРАЦЮЄ"
   ========================================================= */

.zf-mob-calc-section{
  margin-top:18px;
}

.zf-calc--mobile{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:14px !important;
  position:relative !important;
  right:auto !important;
  left:auto !important;
  top:auto !important;
  transform:none !important;
  z-index:1 !important;
  border-radius:24px;
  color:#F4E7CC;
  background:
    radial-gradient(circle at 50% 35%, rgba(240,201,106,.10), transparent 25%),
    radial-gradient(circle at 50% 78%, rgba(240,201,106,.12), transparent 30%),
    linear-gradient(180deg, rgba(36,22,15,.97) 0%, rgba(20,13,9,.98) 100%);
  border:1px solid rgba(184,138,59,.9);
  box-shadow:
    0 20px 50px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(240,201,106,.16);
  overflow:visible;
}

.zf-calc--mobile::before{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:17px;
  border:1px solid rgba(240,201,106,.35);
  pointer-events:none;
}

.zf-calc--mobile .zf-head{
  text-align:center;
  padding:14px;
  background:linear-gradient(180deg, rgba(24,12,8,.98) 0%, rgba(14,7,5,.98) 100%) !important;
  border-bottom:1px solid rgba(184,138,59,.35) !important;
}

.zf-calc--mobile .zf-title{
  margin:0;
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:24px !important;
  line-height:1.1 !important;
  font-weight:700;
  color:#F4E7CC !important;
  text-align:center;
  text-transform:uppercase;
  -webkit-text-fill-color:#F4E7CC !important;
  text-shadow:none !important;
}

.zf-calc--mobile .zf-probes{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:center;
  margin:10px 0 14px;
}

.zf-calc--mobile .zf-probe{
  min-width:40px;
  height:30px;
  padding:0 8px;
  border-radius:8px;
  border:1px solid rgba(184,138,59,.45);
  background:#21150F;
  color:#F4E7CC;
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:13px;
  cursor:pointer;
}

.zf-calc--mobile .zf-probe.is-active{
  background:linear-gradient(180deg,#F0C96A,#D4A437);
  color:#140D09;
  border-color:#F0C96A;
  box-shadow:
    0 0 18px rgba(240,201,106,.16),
    inset 0 2px 10px rgba(255,255,255,.28);
}

.zf-calc--mobile .zf-field{
  background:rgba(20,10,6,.88) !important;
  border:1px solid rgba(184,138,59,.24) !important;
  border-radius:12px !important;
  padding:10px 12px !important;
  margin-bottom:12px !important;
}

.zf-calc--mobile .zf-row-top{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:10px !important;
  margin-bottom:8px !important;
  flex-wrap:nowrap !important;
}

.zf-calc--mobile .zf-label,
.zf-calc--mobile .zf-value{
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:17px;
  line-height:1.1;
  color:#F4E7CC;
  font-weight:700;
  white-space:nowrap;
}

.zf-calc--mobile .zf-range{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:9px;
  border-radius:999px;
  outline:none;
  cursor:pointer;
  background:
    linear-gradient(90deg, #D4A437 0%, #F0C96A var(--fill, 0%), rgba(255,255,255,.12) var(--fill, 0%), rgba(255,255,255,.12) 100%);
  box-shadow:
    inset 0 1px 4px rgba(0,0,0,.55),
    0 0 0 1px rgba(184,138,59,.18);
}

.zf-calc--mobile .zf-range::-webkit-slider-runnable-track{
  height:9px;
  background:transparent;
  border-radius:999px;
}

.zf-calc--mobile .zf-range::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:22px;
  height:22px;
  border-radius:50%;
  margin-top:-7px;
  background:
    radial-gradient(circle at 30% 30%, #FFF4C9 0%, #F0C96A 20%, #D4A437 55%, #8F6114 100%);
  border:2px solid rgba(255,244,201,.55);
  box-shadow:
    0 0 0 3px rgba(240,201,106,.10),
    0 6px 18px rgba(0,0,0,.35),
    inset 0 2px 6px rgba(255,255,255,.35);
}

.zf-calc--mobile .zf-range-labels{
  display:flex;
  justify-content:space-between;
  color:#CFAF78;
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:13px;
  margin-top:6px;
  padding:0 2px;
}

.zf-calc--mobile .zf-toggle-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  color:#F4E7CC;
  font-size:14px;
}

.zf-calc--mobile .zf-switch{
  position:relative;
  width:50px;
  height:28px;
  display:inline-block;
}

.zf-calc--mobile .zf-switch input{
  opacity:0;
  width:0;
  height:0;
}

.zf-calc--mobile .zf-slider{
  position:absolute;
  inset:0;
  background:#2a1b13;
  border:1px solid rgba(184,138,59,.45);
  border-radius:999px;
}

.zf-calc--mobile .zf-slider::before{
  content:"";
  position:absolute;
  width:20px;
  height:20px;
  left:3px;
  top:3px;
  border-radius:50%;
  background:linear-gradient(180deg,#F0C96A,#D4A437);
  box-shadow:0 0 10px rgba(240,201,106,.25);
  transition:.22s ease;
}

.zf-calc--mobile .zf-switch input:checked + .zf-slider::before{
  transform:translateX(22px);
}

.zf-calc--mobile .zf-result{
  margin-top:10px;
  background:
    radial-gradient(circle at 50% 25%, rgba(240,201,106,.12), transparent 28%),
    linear-gradient(180deg,#160d09 0%, #110a07 100%);
  border:1px solid rgba(184,138,59,.28);
  border-radius:18px;
  overflow:visible;
}

.zf-calc--mobile .zf-result-top{
  padding:12px 14px 10px;
  text-align:center;
  border-bottom:1px solid rgba(184,138,59,.20);
}

.zf-calc--mobile .zf-result-kicker{
  margin:0 0 8px;
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:16px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#F4E7CC;
}

.zf-calc--mobile .zf-main-sum{
  margin:0;
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:clamp(32px, 8vw, 48px);
  line-height:1;
  background:linear-gradient(180deg,#FFF4C9 0%, #F6D97F 22%, #E6B84A 50%, #FFF0B8 72%, #C78814 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.zf-calc--mobile .zf-micro{
  margin-top:4px;
  font-size:11px;
  color:#CFAF78;
}

.zf-calc--mobile .zf-result-body{
  padding:10px 12px 12px;
}

.zf-calc--mobile .zf-line{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:5px 0;
  font-size:13px;
  color:#F4E7CC;
}

.zf-calc--mobile .zf-line b{
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:16px;
  font-weight:700;
  white-space:nowrap;
}

.zf-calc--mobile .zf-line--strong b{
  font-size:18px;
  color:#F0C96A;
}

.zf-calc--mobile .zf-cta{
  display:block;
  width:100%;
  margin-top:10px;
  text-align:center;
  text-decoration:none;
  border-radius:999px;
  padding:11px 12px;
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:16px;
  font-weight:700;
  text-transform:uppercase;
  color:#140D09;
  background:linear-gradient(180deg,#F0C96A,#D4A437);
  border:1px solid rgba(240,201,106,.55);
  box-shadow:0 10px 24px rgba(120,77,8,.22), inset 0 2px 10px rgba(255,255,255,.28);
}

.zf-calc--mobile .zf-benefits{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  color:#F4E7CC;
  font-size:14px;
  line-height:1.45;
}

.zf-calc--mobile .zf-benefits li{
  display:flex;
  gap:8px;
}

.zf-calc--mobile .zf-benefits li::before{
  content:"•";
  color:#F0C96A;
  font-weight:800;
}

.zf-calc--mobile .zf-state{
  margin-top:8px;
  min-height:18px;
  font-size:12px;
  color:#CFAF78;
}
/* =========================================================
   ПРЕМІУМ-БЛОК ВІДДІЛЕНЬ ПІСЛЯ КАЛЬКУЛЯТОРА
   ========================================================= */

.zf-mob-branches{
  margin-top:20px;
  display:grid;
  gap:12px;
}

.zf-mob-branches__title{
  text-align:center;
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:26px;
  line-height:1.1;
  font-weight:700;
  color:#f4deab;
  background:linear-gradient(180deg,#fff3c4 0%,#e0b45a 45%,#b88a3b 75%,#7a5a21 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 2px 10px rgba(255,215,120,.18);
}

.zf-mob-branch-card{
  position:relative;
  padding:14px 14px 13px;
  border-radius:22px;
  background:
    radial-gradient(circle at 50% 18%, rgba(240,201,106,.10), transparent 42%),
    radial-gradient(circle at 80% 100%, rgba(240,201,106,.06), transparent 35%),
    linear-gradient(180deg, rgba(24,12,8,.98) 0%, rgba(14,7,5,.99) 100%);
  border:1px solid rgba(184,138,59,.34);
  box-shadow:
    0 16px 34px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(240,201,106,.07),
    inset 0 10px 30px rgba(255,210,120,.03);
  overflow:hidden;
}

.zf-mob-branch-card::before{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:16px;
  border:1px solid rgba(240,201,106,.18);
  pointer-events:none;
}

.zf-mob-branch-card__name{
  position:relative;
  z-index:2;
  margin-bottom:4px;
  text-align:center;
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:24px;
  line-height:1.05;
  font-weight:700;
  color:#f0c96a;
}

.zf-mob-branch-card__address{
  position:relative;
  z-index:2;
  margin-bottom:12px;
  text-align:center;
  color:#f6e7c8;
  font-size:13px;
  line-height:1.35;
}

.zf-mob-branch-card__actions{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.zf-mob-branch-btn{
  min-height:46px;
  padding:10px 12px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  letter-spacing:.01em;
  box-sizing:border-box;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.zf-mob-branch-btn::before{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  font-size:15px;
  line-height:1;
  flex:0 0 18px;
}

.zf-mob-branch-btn--call{
  color:#231302;
  background:linear-gradient(180deg,#f6d06f 0%, #d9a53b 55%, #bf8120 100%);
  border:1px solid rgba(240,201,106,.62);
  box-shadow:
    0 8px 20px rgba(120,77,8,.22),
    inset 0 2px 10px rgba(255,255,255,.24);
}

.zf-mob-branch-btn--call::before{
  content:"☎";
}

.zf-mob-branch-btn--map{
  color:#f6e7c8;
  background:
    linear-gradient(180deg, rgba(44,24,14,.92) 0%, rgba(22,11,8,.98) 100%);
  border:1px solid rgba(240,201,106,.24);
  box-shadow:
    0 8px 18px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.zf-mob-branch-btn--map::before{
  content:"⌖";
  color:#f0c96a;
}

.zf-mob-branch-btn:active{
  transform:scale(.98);
}

.zf-mob-branch-btn--call:active{
  box-shadow:
    0 4px 12px rgba(120,77,8,.18),
    inset 0 1px 6px rgba(255,255,255,.18);
}

.zf-mob-branch-btn--map:active{
  border-color:rgba(240,201,106,.36);
}

/* Легкий hover для десктопного перегляду в devtools */
.zf-mob-branch-btn:hover{
  transform:translateY(-1px);
}

.zf-mob-branch-btn--call:hover{
  box-shadow:
    0 12px 24px rgba(120,77,8,.26),
    inset 0 2px 10px rgba(255,255,255,.28);
}

.zf-mob-branch-btn--map:hover{
  border-color:rgba(240,201,106,.34);
  background:
    linear-gradient(180deg, rgba(52,28,16,.95) 0%, rgba(24,12,8,.99) 100%);
}

/* =========================================================
   ШВИДКЕ ЗВЕРНЕННЯ ПІСЛЯ БЛОКУ ВІДДІЛЕНЬ
   ========================================================= */

.zf-mob-quick-contact{
  margin-top:18px;
}

.zf-mob-quick-contact__card{
  position:relative;
  padding:16px 14px 14px;
  border-radius:24px;
  background:
    radial-gradient(circle at 50% 10%, rgba(240,201,106,.10), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(240,201,106,.06), transparent 35%),
    linear-gradient(180deg, rgba(19,53,43,.98) 0%, rgba(8,39,31,.99) 100%);
  border:1px solid rgba(240,201,106,.24);
  box-shadow:
    0 16px 34px rgba(0,0,0,.26),
    inset 0 0 0 1px rgba(255,255,255,.03);
  overflow:hidden;
}

.zf-mob-quick-contact__card::before{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:18px;
  border:1px solid rgba(240,201,106,.14);
  pointer-events:none;
}

.zf-mob-quick-contact__title{
  position:relative;
  z-index:2;
  margin:0 0 6px;
  text-align:left;
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:30px;
  line-height:1.02;
  font-weight:700;
  color:#f4deab;
}

.zf-mob-quick-contact__subtitle{
  position:relative;
  z-index:2;
  margin:0 0 14px;
  color:#e7d8b2;
  font-size:13px;
  line-height:1.4;
}

.zf-mob-quick-contact__form{
  position:relative;
  z-index:2;
  display:grid;
  gap:12px;
}

.zf-mob-qf-field{
  display:grid;
  gap:6px;
}

.zf-mob-qf-label{
  color:#f0d894;
  font-size:13px;
  line-height:1.2;
  font-weight:700;
}

.zf-mob-qf-input,
.zf-mob-qf-textarea{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(240,201,106,.22);
  background:rgba(5,31,24,.88);
  color:#f6ecd1;
  font-size:16px;
  padding:14px 14px;
  box-sizing:border-box;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.zf-mob-qf-textarea{
  min-height:108px;
  resize:vertical;
}

.zf-mob-qf-input::placeholder,
.zf-mob-qf-textarea::placeholder{
  color:rgba(246,236,209,.58);
}

.zf-mob-qf-input:focus,
.zf-mob-qf-textarea:focus{
  border-color:rgba(240,201,106,.46);
  box-shadow:0 0 0 3px rgba(240,201,106,.10);
  background:rgba(7,37,29,.96);
}

.zf-mob-qf-submit{
  min-height:52px;
  margin-top:2px;
  border:none;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  cursor:pointer;
  text-decoration:none;
  font-family:"Cormorant Garamond","Playfair Display",serif;
  font-size:18px;
  font-weight:700;
  letter-spacing:.02em;
  color:#231302;
  background:linear-gradient(180deg,#f6d06f 0%, #d9a53b 55%, #bf8120 100%);
  box-shadow:
    0 10px 24px rgba(120,77,8,.22),
    inset 0 2px 10px rgba(255,255,255,.24);
  transition:transform .18s ease, box-shadow .18s ease;
}

.zf-mob-qf-submit:active{
  transform:scale(.985);
}
/* =========================================================
   МОБІЛЬНА ФОРМА "ШВИДКЕ ЗВЕРНЕННЯ"
   ПРАЦЮЄ ТАК САМО, ЯК НА KONTAKTY.PHP
   ========================================================= */

    try {
      const res = await fetch('./send.php', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({ name, phone, message })
      });

      const data = await res.json();
      console.log('mobile send.php response:', data);

      if (data.ok) {
        window.location.href = './thanks.php?lead=' + encodeURIComponent(data.lead_id || '');
      } else {
        alert(data.error || 'Помилка відправки');
      }
    } catch (err) {
      console.error(err);
      alert('Помилка мережі ❌');
    }
  });
}
}