/* ==========================================================================
   DIXION REDESIGN 2026
   Container: 1224px | Mobile padding: 16px
   Border-radius: pik.ru style (8-12px elements, pill buttons)
   ========================================================================== */

/* --- ШРИФТ: Inter подключён через <link> в header.php для скорости --- */
/* --- ОПТИМИЗАЦИЯ: скрываем ненужные на главной элементы до загрузки --- */

h1, h2, h3, h4, h5, h6,
.header-block__heading,
.header-block__heading a,
.header-page__heading,
.navbar__brand,
.digits-item__number,
.btn-nav__heading {
  font-family: 'Inter', sans-serif !important;
  letter-spacing: -0.02em !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   HERO SEARCH BLOCK (замена слайдера)
   ========================================================================== */
.hero-search {
  padding-top: 120px;
  padding-bottom: 48px;
  text-align: center;
}

.hero-search__container {
  max-width: 860px !important;
}

.hero-search__title {
  font-family: 'Inter', sans-serif !important;
  font-size: 72px !important;
  line-height: 78px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  color: #29497a !important;
  margin: 0 0 20px !important;
  text-transform: none !important;
}

.hero-search__subtitle {
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: #5a6a7a;
  margin: 0 auto 48px;
  max-width: 600px;
}

.hero-search__form {
  max-width: 600px;
  margin: 0 auto;
}

.hero-search__input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-search__form {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.hero-search__input-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hero-search__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.hero-search__input {
  width: 100%;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 24px !important;
  outline: none !important;
  font-size: 18px !important;
  line-height: 18px;
  font-family: 'Inter', sans-serif;
  padding: 18px 20px 18px 48px !important;
  background: #fff !important;
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease;
  box-sizing: border-box !important;
}

.hero-search__input:focus {
  border-color: #c8d3e0 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Когда dropdown открыт — скругляем только верх */
.hero-search__input-box.has-dropdown .hero-search__input {
  border-radius: 24px 24px 0 0 !important;
  border-bottom-color: transparent !important;
}

.hero-search__input::placeholder {
  color: #9ca3af;
}

/* Кнопка рядом с инпутом справа */
.hero-search__btn {
  flex-shrink: 0;
  background: #29497a !important;
  color: #fff !important;
  border: none !important;
  border-radius: 24px !important;
  padding: 18px 32px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer;
  transition: background 0.2s ease;
  line-height: 18px;
}

.hero-search__btn:hover {
  background: #1e3456 !important;
}

/* Mobile */
@media (max-width: 767px) {
  .hero-search {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .hero-search__title {
    font-size: 36px !important;
    line-height: 40px !important;
  }

  .hero-search__subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .hero-search__input-wrap {
    flex-direction: column;
    gap: 0;
  }

  .hero-search__input-box {
    width: 100%;
  }

  .hero-search__icon {
    display: none;
  }

  .hero-search__input {
    width: 100%;
    padding: 14px 16px !important;
    font-size: 16px !important;
    border-radius: 24px !important;
  }

  .hero-search__input-box.has-dropdown .hero-search__input {
    border-radius: 16px 16px 0 0 !important;
    border-bottom-color: transparent !important;
  }

  .hero-search__input-box.has-dropdown .search-dropdown {
    border-top: none !important;
    margin-top: -1px;
  }

  .hero-search__btn {
    width: 100%;
    padding: 14px !important;
    border-radius: 24px !important;
    margin-top: 12px;
  }

  /* Когда dropdown открыт — кнопку прячем, она не нужна */
  .hero-search__input-box.has-dropdown ~ .hero-search__btn {
    display: none;
  }

  .search-dropdown {
    border-radius: 0 0 16px 16px;
  }
}

/* --- Убираем фиксированный виджет справа --- */
.btn-fix__panel {
  display: none !important;
}

/* --- Убираем мобильный поиск в шапке --- */
.search__panel {
  display: none !important;
}

/* ==========================================================================
   SMART SEARCH DROPDOWN
   ========================================================================== */
.hero-search__input-box {
  flex: 1;
  min-width: 0;
  position: relative;
}

.search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #c8d3e0;
  border-top: 1px solid #eef1f5;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 0 8px;
}

.search-dropdown.is-open {
  display: block;
}

.search-dropdown__label {
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  text-align: left !important;
}

.search-dropdown {
  text-align: left !important;
}

.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none !important;
  color: #1a1a1a !important;
  transition: background 0.15s ease;
}

.search-dropdown__item:hover {
  background: #f5f7fa;
  text-decoration: none !important;
}

.search-dropdown__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  border-radius: 8px;
}

.search-dropdown__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-dropdown__name {
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
}

.search-dropdown__name mark {
  background: rgba(41, 73, 122, 0.12);
  color: #29497a;
  border-radius: 2px;
  padding: 0 1px;
}

.search-dropdown__sub {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown__empty {
  padding: 20px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

/* --- CONTAINER: 1224px --- */
.container {
  max-width: 1224px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 767px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ==========================================================================
   BORDER-RADIUS: PIK.RU STYLE
   8px — мелкие элементы (карточки, превью, изображения)
   12px — средние элементы (панели, блоки контента)
   16px — крупные элементы (модалки, большие карточки)
   32px — кнопки (pill)
   ========================================================================== */

/* --- Кнопки: pill (32px) --- */
.btn-line,
.btn-site.btn-line,
.button--primary,
.button--white,
.btn-primary,
.cookie-alert__button,
button[type="submit"] {
  border-radius: 32px !important;
}

/* Кнопка записи на приём (круглая → pill) */
.specialists-item__appointment {
  border-radius: 32px !important;
}

/* Быстрая навигация — карточки */
.btn-nav__card {
  border-radius: 12px !important;
}

/* Фиксированная боковая панель */
.btn-fix__panel {
  border-radius: 16px 0 0 16px !important;
}

.btn-fix__card {
  border-radius: 12px !important;
}

/* --- Карусель / Баннер --- */
.banner__carousel {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* --- Карточки специалистов --- */
.specialists-item__item {
  border-radius: 8px !important;
  overflow: hidden;
}

.specialists-item__item.is--children {
  border-radius: 8px !important;
}

/* ==========================================================================
   SLIDER NAV: pik.ru style
   Кнопки < > в правом верхнем углу, без dots
   ========================================================================== */

/* Заголовки — не CAPS, обычный регистр */
.index-block .header-block__heading,
.index-block .header-block__heading a {
  text-transform: none !important;
}

/* Заголовок блока — flex строка с nav-кнопками (nav перемещается JS-ом) */
.index-block .page-header-block {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.index-block .page-header-block {
  margin-bottom: 48px !important;
}

.index-block .page-header-block .header-block__heading {
  flex: 1 !important;
  margin-bottom: 0 !important;
  min-width: 0 !important;
}

.index-block .page-header-block .header-block__heading a {
  white-space: nowrap !important;
}

/* Скрываем dots */
.index-block .owl-dots {
  display: none !important;
}

/* Nav-контейнер — в строке с заголовком (flex item) */
.index-block .page-header-block > .owl-nav {
  position: static !important;
  display: flex !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Кнопки prev/next — аккуратные кружки (div и button) */
.index-block .owl-nav .owl-prev,
.index-block .owl-nav .owl-next {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: 1.5px solid #c0c8d0 !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.index-block .owl-nav .owl-prev:hover,
.index-block .owl-nav .owl-next:hover {
  border-color: #29497a !important;
  background: #f5f7fa !important;
}

/* Скрываем всё содержимое кнопок (SVG, текст) */
.index-block .owl-nav .owl-prev *,
.index-block .owl-nav .owl-next * {
  display: none !important;
}

/* Стрелки через pseudo-элементы */
.index-block .owl-nav .owl-prev::after,
.index-block .owl-nav .owl-next::after {
  content: '' !important;
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  border-right: 2px solid #333 !important;
  border-bottom: 2px solid #333 !important;
  position: absolute !important;
}

.index-block .owl-nav .owl-prev::after {
  transform: rotate(135deg) !important;
  margin-left: 3px !important;
}

.index-block .owl-nav .owl-next::after {
  transform: rotate(-45deg) !important;
  margin-right: 3px !important;
}

/* Disabled state */
.index-block .owl-nav .owl-prev.disabled,
.index-block .owl-nav .owl-next.disabled {
  opacity: 0.35 !important;
  cursor: default !important;
}

@media (max-width: 767px) {
  .index-block .owl-nav {
    display: none !important;
  }
}

/* ==========================================================================
   CARD HOVER: белая кнопка со стрелкой → в правом нижнем углу
   Заменяет лупу на карточках новостей и специалистов
   ========================================================================== */

/* Скрываем оригинальную SVG-иконку (лупа) */
.specialists-item__more .icon-svg,
.specialists-item__more svg,
.news-item__more .icon-svg,
.news-item__more svg {
  display: none !important;
}

/* Общий стиль hover-кнопки */
.specialists-item__more,
.news-item__more {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  bottom: 16px !important;
  right: 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.25s ease !important;
}

/* Стрелка → через pseudo-элемент */
.specialists-item__more::after,
.news-item__more::after {
  content: '→';
  font-size: 20px;
  color: #1a1a1a;
  font-weight: 400;
  line-height: 1;
}

/* Hover на карточке — показываем кнопку */
.specialists-item__item:hover .specialists-item__more,
.news-item__item:hover .news-item__more {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Hover на самой кнопке */
.specialists-item__more:hover,
.news-item__more:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16) !important;
}

/* --- Карточки новостей --- */
.news-item__item {
  border-radius: 8px !important;
  overflow: hidden;
}

.news-item__inner {
  border-radius: 8px !important;
}

.news-item__item img {
  border-radius: 8px 8px 0 0 !important;
}

/* --- Направления --- */
.direction-item {
  border-radius: 8px !important;
  overflow: hidden;
}

.directions-list__item {
  border-radius: 8px !important;
  overflow: hidden;
}

/* --- Модальные окна --- */
.modal-content,
.modal-base__content {
  border-radius: 16px !important;
}

/* --- Формы --- */
.form-site input[type="text"],
.form-site input[type="tel"],
.form-site input[type="email"],
.form-site input[type="number"],
.form-site select,
.form-site textarea {
  border-radius: 8px !important;
}

/* --- Cookie alert --- */
.cookie-alert {
  border-radius: 12px !important;
}

/* --- Карточки на страницах каталогов --- */
.specialists-catlist__item {
  border-radius: 8px !important;
  overflow: hidden;
}

.articles-item {
  border-radius: 8px !important;
  overflow: hidden;
}

/* --- Прайс-лист --- */
.price-list-block__line-item a {
  border-radius: 8px !important;
}

/* --- Галерея / Фото --- */
.lightgallery img,
.gallery-item img {
  border-radius: 8px !important;
}

/* --- Поиск --- */
.search input[type="text"] {
  border-radius: 32px !important;
}

/* --- Табы --- */
.nav-tabs > li > a {
  border-radius: 8px 8px 0 0 !important;
}

/* --- Выпадающие меню --- */
.dropdown-menu {
  border-radius: 12px !important;
}
