/* ===== ab99.ru — мобильная панель записи и правки прайса ===== */

/* 1. Мобильная закреплённая панель «Позвонить / Записаться» */
#ab-mobile-bar{display:none}

@media (max-width: 960px){
  #ab-mobile-bar{
    display:flex;
    position:fixed;
    left:8px;
    right:8px;
    bottom:calc(8px + env(safe-area-inset-bottom, 0px));
    z-index:100000;
    gap:8px;
    padding:8px;
    background:rgba(255,255,255,.97);
    border-radius:16px;
    box-shadow:0 8px 28px rgba(20,45,35,.22);
    box-sizing:border-box;
  }
  #ab-mobile-bar a{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:50px;
    border-radius:12px;
    font-family:Roboto,Arial,sans-serif;
    font-size:16px;
    font-weight:700;
    line-height:1.1;
    text-decoration:none;
    text-align:center;
    padding:8px 10px;
  }
  #ab-mobile-bar .ab-mobile-bar__call{
    background:#f4f1fb;
    color:#6f5fa8 !important;
    border:1px solid #ddd5f0;
  }
  #ab-mobile-bar .ab-mobile-bar__book{
    background:#6f5fa8;
    color:#ffffff !important;
  }
  /* не перекрывать контент внизу страницы */
  body{padding-bottom:78px}
}

/* 2. Прайс-таблицы: нормальная ширина и читаемость на телефоне */
@media (max-width: 768px){
  .t431__table-wrapper{
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }
  .t431__table{
    width:100% !important;
    min-width:0 !important;
  }
  .t431__table td,
  .t431__table th{
    font-size:14px !important;
    line-height:1.4 !important;
    padding:9px 8px !important;
    word-break:break-word !important;
  }
  .t431__table td:last-child,
  .t431__table th:last-child{
    text-align:right;
    white-space:nowrap;
  }
}

/* 3. Плавный скролл к якорям прайса с учётом фикс. шапки */
[id^="ab-price-"]{ scroll-margin-top:90px; }
html{ scroll-behavior:smooth; }

/* 4. Фокус для доступности */
#ab-mobile-bar a:focus-visible{
  outline:3px solid #7b6bb0;
  outline-offset:2px;
}


/* ===== Навигационная панель в шапке ===== */
#rec6526387701{
  padding-top:0 !important;
  padding-bottom:0 !important;
}
#rec6526387701 .t051__text{
  text-align:left !important;
}
#ab-sitenav{
  font-family:Roboto,Arial,sans-serif;
}
#ab-sitenav a{
  transition:background-color .15s ease, color .15s ease;
}
#ab-sitenav a:hover{
  background:#e6dff6 !important;
}
#ab-sitenav a[href="#popup:info"]:hover{
  background:#544784 !important;
}
@media (max-width:960px){
  #ab-sitenav > div:first-child{
    padding:6px 12px !important;
  }
  #ab-sitenav nav{
    overflow-x:auto;
    flex-wrap:nowrap;
    width:100%;
    padding-bottom:2px;
  }
  #ab-sitenav > div:last-child{
    padding:4px 12px 10px !important;
  }
  #ab-sitenav > div:last-child > div{
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:4px;
  }
}


/* ===== Лавандовая гамма: акценты ===== */
.ab-fullwidth{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

/* Полноширинный showcase: убираем боковые отступы контейнера Tilda */
#rec6527000001, #rec6527000001 .t051, #rec6527000001 .t-container,
#rec6527000001 .t-col{
  padding:0 !important;
  max-width:100% !important;
  width:100% !important;
  margin:0 !important;
}
#rec6527000001 .t051__text{ text-align:left !important; }

/* Иллюстрация: на мобильном текст сверху, картинка снизу */
@media (min-width:901px){
  .ab-showcase-grid{ grid-template-columns: 1fr 1fr !important; }
}

/* Тонкая лавандовая линия под шапкой */
#ab-sitenav{ border-bottom:1px solid #e7e3f0; }

/* Кнопки: лавандовые тени */
#popup:info{}


/* Полноширинный showcase без отступов контейнера */
#rec6527400401, #rec6527400401 .t051, #rec6527400401 .t-container,
#rec6527400401 .t-col, #rec6527400401 .t-col_12{
  padding:0 !important; margin:0 !important;
  max-width:100% !important; width:100% !important;
}
#rec6527400401 .t051__text{ text-align:left !important; padding:0 !important; }
#rec6527400401 svg{ display:block; }
@media (max-width:900px){
  #rec6527400401 svg{ max-height:340px; }
}


/* ===== ЕДИНАЯ ЛАВАНДОВАЯ ГАММА: перекрываем кнопки Тильды ===== */
.t-btn, .t-btnflex, .t-submit, .t-form__submit button,
input[type="submit"].t-submit,
.t431 .t-btn, .t976__menu-link,
a.t-btn, button.t-btn{
  background-color:#6f5fa8 !important;
  border-color:#6f5fa8 !important;
  color:#ffffff !important;
}

/* ховер */
.t-btn:hover, .t-btnflex:hover, .t-submit:hover{
  background-color:#544784 !important;
  border-color:#544784 !important;
}

/* Вторичные/контурные кнопки остаются светлыми */
.t-btn.t-btn_secondary, .t-btn_second,
.t-btnflex.t-btnflex_type_button2{
  background-color:transparent !important;
  border-color:#6f5fa8 !important;
  color:#6f5fa8 !important;
}

/* Заголовки и акцентный текст Тильды */
.t-title, .t-name, .t-heading{ color:#3a3546 !important; }
.t-uptitle{ color:#6f5fa8 !important; }
a{ color:#6f5fa8; }
a:hover{ color:#544784; }

/* Синие акценты шаблонов -> лаванда */
.t431__table th,
.t778__descr, .t1025__price,
.t-cover__filter{ }

/* Кнопки в меню Тильды */
.t-menu__link-item:hover,
.t976__menu-link:hover{ color:#544784 !important; }

/* Таблицы прайса: заголовки */
.t431__table th{
  background-color:#f4f1fb !important;
  color:#3a3546 !important;
}

/* Формы */
.t-input, .t-textarea{ border-color:#ddd5f0 !important; }
.t-input:focus, .t-textarea:focus{ border-color:#6f5fa8 !important; }
.t-checkbox__control, .t-checkbox__indicator{ border-color:#6f5fa8 !important; }

/* Cookie-баннер */
.t886__btn, .t887__btn{ background-color:#6f5fa8 !important; border-color:#6f5fa8 !important; }

/* Попапы: кнопки отправки */
.t-popup .t-submit,
.t390 .t-btn, .t702 .t-submit{
  background-color:#6f5fa8 !important;
  border-color:#6f5fa8 !important;
  color:#fff !important;
}
