/*  css/custom-plugins.css */

/* ============================================================
   Шапка — базовые стили
   ============================================================ */

/* Шапка и меню — на десктопе */
@media (min-width: 993px) {
  .header__nav {
    display: block !important;
    position: relative !important;
    z-index: 100 !important;
  }

  .header__nav_menu {
    display: flex !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-direction: row !important;
    gap: 24px !important;
    overflow: visible !important;
    z-index: 9999;
  }

  .header__nav_list,
  .header__subnav_list {
    position: absolute !important;
    display: none;
    top: 100% !important;
    left: 0 !important;
    transform: none !important;
  }

  .header__nav_drop:hover>.header__nav_list {
    display: block !important;
  }

  .header__subnav_drop:hover>.header__subnav_list {
    display: block !important;
    top: 0 !important;
    left: 100% !important;
  }
}

/* Гамбургер на десктопе — скрыт */
@media (min-width: 993px) {
  .header__nav_btn {
    display: none !important;
  }
}

.header__background {
  z-index: 0;
}

.header__nav_drop {
  position: relative;
}

.header__nav_toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.header__nav_toggle_icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.header__nav_drop:hover .header__nav_toggle_icon {
  transform: rotate(225deg) translateY(-2px);
}

.header__nav_list,
.header__subnav_list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 100;
}

.header__nav_drop:hover>.header__nav_list {
  display: block;
}

.header__subnav_drop {
  position: relative;
  padding: 8px 16px;
}

.header__subnav_drop:hover>.header__subnav_list {
  display: block;
  top: 0;
  left: 100%;
}

/* === БЛОК «Личный кабинет» — на десктопе скрыт === */
.header__account {
  display: none;
}

/* === Гамбургер — на десктопе скрыт === */
.header__nav_btn {
  display: none;
}

/* ============================================================
   Мобильное меню — ≤ 992px
   ============================================================ */

@media (max-width: 992px) {

  /* Показываем гамбургер */
  .header__nav_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    color: inherit;
  }

  .header__nav_btn_icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #099999;
    position: relative;
    transition: background .2s ease;
  }

  .header__nav_btn_icon::before,
  .header__nav_btn_icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #099999;
    transition: transform .2s ease, top .2s ease;
  }

  .header__nav_btn_icon::before {
    top: -8px;
  }

  .header__nav_btn_icon::after {
    top: 8px;
  }

  /* Крестик при открытом меню */
  .header__nav_menu.is--open~.header__btn .header__nav_btn_icon,
  .header__nav_btn[aria-expanded="true"] .header__nav_btn_icon {
    background: transparent;
  }

  .header__nav_btn[aria-expanded="true"] .header__nav_btn_icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .header__nav_btn[aria-expanded="true"] .header__nav_btn_icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* Меню — выезжает справа */

  .header__nav_menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    z-index: 9999;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 24px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;

  }

  .header__nav_menu.is--open {
    transform: translateX(0);
  }

  /* Оверлей — затемнение */
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    animation: fadeIn .2s ease;
  }




  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* Пункты главного меню */
  .header__nav_drop {
    width: 100%;
    border-bottom: 1px solid #f2f2f2;
  }

  .header__nav_toggle {
    justify-content: space-between;
    padding: 14px 0;
  }

  .header__nav_list,
  .header__subnav_list {
    position: static;
    display: none;
    box-shadow: none;
    background: #f9f9f9;
    border-radius: 0;
    padding: 8px 0 8px 16px;
    margin: 0;
  }

  .header__nav_drop.is--open>.header__nav_list,
  .header__subnav_drop.is--open>.header__subnav_list {
    display: block;
  }

  .header__subnav_drop {
    padding: 0;
  }

  .header__subnav_toggle {
    padding: 10px 0;
  }

  /* === Блок «Личный кабинет» — показываем на мобильном === */
  .header__account {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f2f2f2;
  }

  .header__account__title {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #099999;
    margin-bottom: 0.875em;
  }

  .header__account__link {
    display: block;
    padding: 0.75em 0;
    font-size: 0.875em;
    font-weight: 600;
    color: #099999;
    text-decoration: none;
    border-bottom: 1px solid #f2f2f2;
  }


  .header__account__link:hover {
    color: #009999;
  }

  .header__account__link.is--logout {
    color: #d63638;
    margin-top: 8px;
    border-bottom: 0;
  }

  /* На мобильном скрываем стандартный sidebar ЛК */
  .login-nav.w-nav {
    display: none;
  }
}

/* ВСЕ CHECKBOX */

/* Скрываем нативный чекбокс, но оставляем его в потоке для доступности */
.checkbox-input {
  /* Скрываем визуально, но оставляем функционально */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Кастомный чекбокс */
.checkbox-custom {
  flex-shrink: 0 !important;
  display: inline-block !important;
  width: 1.25em !important;
  height: 1.25em !important;
  background-image: url("images/check-off.svg") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  margin-top: 1px !important;
}

/* Активное состояние */
.checkbox-input:checked+.checkbox-custom {
  background-image: url("images/check-on.svg") !important;
}

/* Фокус (доступность с клавиатуры) */
.checkbox-input:focus-visible+.checkbox-custom {
  /*    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 3px;
*/
}

/* Hover */
.checkbox-label:hover .checkbox-custom {
  opacity: 0.85;
}

/* Текст рядом с чекбоксом */
.checkbox-text {
  color: inherit;
  margin-top: 0.25em;
}

.checkbox-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-text a:hover {
  text-decoration: none;
}

/* Состояние ошибки (если понадобится) */
.checkbox-input:invalid+.checkbox-custom {
  /* Можно добавить, если нужно. Но required сработает и так */
}

/* Группы чекбоксов */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: .5em;
  margin: .5em 0 1em;
}

/* Скроллируемая группа (для длинных списков) */
.checkbox-group--scroll {
  max-height: 24em;
  overflow-y: auto;
  padding-right: 0.5em;
}

.checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .875em;
  line-height: 1.4;
}

.checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  background-image: var(--checkbox-off, url("../images/check-off.svg"));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.15s ease;
  margin-top: 1px;
}

.checkbox-input:checked+.checkbox-custom {
  background-image: var(--checkbox-on, url("../images/check-on.svg"));
}

.checkbox-input:focus-visible+.checkbox-custom {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 3px;
}

/* === RADIO — стилизованные как чекбоксы === */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: .5em;
  margin: .5em 0 1em;
}

.radio-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .875em;
  line-height: 1.4;
  width: 100%;
}

/* Скрываем нативный radio */
.radio-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Кастомная иконка radio */
.radio-custom {
  flex-shrink: 0;
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  background-image: url("images/radio-off.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.15s ease;
  margin-top: 1px;
}

/* Активное состояние */
.radio-input:checked+.radio-custom {
  background-image: url("images/radio-on.svg");
}

/* Фокус */
.radio-input:focus-visible+.radio-custom {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 50%;
}

/* Hover */
.radio-label:hover .radio-custom {
  opacity: 0.85;
}

/* Текст */
.radio-text {
  color: inherit;
  margin-top: 0.25em;
}

/* ===== Кастомные чекбоксы и радио для фильтра ===== */

/* ============================================================
   ПАНЕЛЬ ФИЛЬТРА — MOBILE FIRST
   ============================================================ */

.filter {
  border: 1px solid #0099992b;
  border-radius: 1em;
  position: relative;
  /*overflow: hidden; */
  padding: 1em 0.5em;
}

.filter__group {
  margin-bottom: 1em;
}

.filter-panel {
  width: 100%;
}

/* Кнопка-триггер: видна только на мобиле */
.filter-panel__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .875em 1.5em;
  background: #f5f5f5;
  border: 0;
  border-radius: .5em;
  font-size: 1em;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease;
}

.filter-panel__toggle:hover {
  background: #ececec;
}

.filter-panel__toggle-title {
  display: inline-flex;
  align-items: center;
  gap: .5em;
}

/* Бейдж с количеством активных фильтров */
.filter-panel__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #2b6cb0;
  color: #fff;
  font-size: .75em;
  font-weight: 700;
  border-radius: 11px;
  line-height: 1;
}

/* Иконка-стрелка (chevron) */
.filter-panel__toggle-icon {
  display: inline-block;
  width: .75em;
  height: .75em;
  border-right: 2px solid #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.filter-panel.is-open .filter-panel__toggle-icon {
  transform: rotate(-135deg);
  margin-top: 4px;
}

/* Тело фильтра: на мобиле по умолчанию свёрнуто */
.filter-panel__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-panel.is-open .filter-panel__body {
  max-height: 2000px;
  overflow: visible;
  margin-top: .75em;
}

/* Заголовок «Подберите психолога» внутри тела — только для десктопа */
.filter-panel__heading {
  display: none;
}

@media (min-width: 992px) {

  /* Скрываем кнопку-триггер */
  .filter-panel__toggle {
    display: none;
  }

  /* Тело фильтра всегда видно */
  .filter-panel__body {
    max-height: none !important;
    overflow: visible !important;
    margin-top: 0 !important;
    margin-bottom: 1em !important;
  }

  /* Заголовок-статичный для десктопа */
  .filter-panel__heading {
    display: block;
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 1em;
    color: #1a1a1a;
  }
}


/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ: фильтр на 100% ширины
   ============================================================ */
@media (max-width: 991px) {

  /* Колонка с фильтром — 100% */
  .page__column.is--left {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 1.5em;
  }

  /* Панель фильтра — 100% */
  .filter-panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Сама форма — 100% */
  .filter {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Триггер (кнопка «Подберите психолога») — 100% */
  .filter-panel__toggle {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Группы и внутренние блоки — 100% */
  .filter__group,
  .filter__range,
  .checkbox-group,
  .radio-group {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Select2 — тоже 100% */
  .filter .select2-container {
    width: 100% !important;
  }

  /* Инпуты — на всю ширину */
  .filter .input,
  .filter select {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Поля «от/до» в два столбца — на мобиле можно сложить в столбик */
  .filter__range {
    display: flex;
    gap: .5em;
  }

  .filter__range .input {
    flex: 1 1 0;
    min-width: 0;
    /* чтобы flex не распирал */
  }
}

@media (max-width: 991px) {

  /* Панель фильтра — 100% */
  .filter-panel {
    display: none !important;
  }
}

/* Мобиле: колонки 100% */
@media (max-width: 991px) {
  .page__row {
    display: block;
  }

  .page__column.is--left,
  .page__column.is--right {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .page__column.is--left {
    margin-bottom: 1.5em;
  }
}

/* Скрываем нативный input, оставляем доступным для клавиатуры */
.checkbox-input,
.radio-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Общие обёртки */
.checkbox-label,
.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
  line-height: 1.3;
}

/* Иконка чекбокса */
.checkbox-custom {
  display: inline-block;
  flex: 0 0 1.25em;
  width: 1.25em;
  height: 1.25em;
  background-image: url("../images/check-off.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.25em 1.25em;
  border: 0;
  border-radius: 0;
  transition: background-image 0.15s ease;
}

/* Checked */
.checkbox-input:checked+.checkbox-custom {
  background-image: url("../images/check-on.svg");
}

/* Focus (доступность) */
.checkbox-input:focus-visible+.checkbox-custom {
  outline: 2px solid #2b6cb0;
  outline-offset: 2px;
}

/* Disabled */
.checkbox-input:disabled+.checkbox-custom {
  opacity: 0.4;
  cursor: not-allowed;
}

.checkbox-input:disabled~.checkbox-text {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Иконка радио */
.radio-custom {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.25em;
  height: 1.25em;
  background-image: url("../images/radio-off.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.25em 1.25em;
  border: 0;
  border-radius: 0;
  transition: background-image 0.15s ease;
}

.radio-input:checked+.radio-custom {
  background-image: url("../images/radio-on.svg");
}

.radio-input:focus-visible+.radio-custom {
  outline: 2px solid #2b6cb0;
  outline-offset: 2px;
}

.radio-input:disabled+.radio-custom {
  opacity: 0.4;
  cursor: not-allowed;
}

.radio-input:disabled~.radio-text {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Текст рядом */
.checkbox-text,
.radio-text {
  font-size: .875em;
  color: inherit;
}

.login-form__text--register {
  margin-top: 1.5em;
  font-size: .875em;
}

.login-form__text--login {
  margin-top: 1.5em;
  font-size: .875em;
}

/* СТИЛИЗАЦИЯ INPUT ПАРОЛЕЙ */
/* Обёртка поля пароля */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field .input {
  padding-right: 44px;
  /* место под иконку */
  flex: 1;
}

/* Кнопка-иконка */
.password-toggle {
  position: absolute;
  right: 0.875em;
  top: 0.375em;
  /* transform: translateY(-50%); */
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: #888;
  transition: color 0.15s;
}

.password-toggle:hover {
  color: #333;
}

.password-toggle:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Подсказка под полем */
.field-hint {
  font-size: .75em;
  color: #888;
  margin: 4px 0 .75em;
  line-height: 1.4;
}

/* Ошибка под полем */
.field-error {
  display: block;
  color: #e53935;
  font-size: .75em;
  margin-top: 4px;
  line-height: 1.4;
}

/* Инпут в состоянии ошибки */
.input.has-error {
  border-color: #e53935;
  background-color: rgba(229, 57, 53, 0.04);
}

/* Dropzone */
.dz-clickable {
  border: 2px dashed var(--aliceblue);
  cursor: pointer;
  background-image: url("../images/download.svg");
  background-position: 50% 2em;
  background-repeat: no-repeat;
  background-size: 2.5em 2.5em;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  padding-top: 3.25em;
  padding-bottom: 1em;
  display: flex;
  position: relative;
}

.dz-message {
  text-align: center;
  flex-flow: column;
  display: flex;
}

/* ============================================================
   Кнопки шапки — вход, профиль, поиск
   ============================================================ */
.logo {
  z-index: 10000;
}


.header__btn {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.header__search_btn,
.header__login_btn,
.header__profile_btn,
.header__logout_btn {
  display: inline-block;
  width: 2em;
  height: 1.5em;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  text-decoration: none;
  z-index: 100;
}

.header__search_btn {
  background-image: url("../images/search.svg");
}

.header__login_btn {
  background-image: url("../images/user-login.svg");
}

.header__profile_btn {
  background-image: url("../images/user-profile.svg");
}

.header__logout_btn {
  background-image: url("../images/user-logout.svg");
}

.attachment-document {
  display: block;
  margin: 0 auto;
}

@media screen and (max-width: 991px) {
  .header__btn {
    z-index: 10000;
  }
}

.attachment-psychologist {
  z-index: 10;
  aspect-ratio: 1;
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
  display: block;
}

/* Кнопки для элементов архива психологов */

.psychologist__item_button--wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}

.psychologist__phone>a {
  display: block;
  margin: 1.25em 0;
  font-size: 1.25em;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  text-align: center;
}

.psychologist__phone>a:hover {
  color: var(--teal);
}

.soc {
  display: flex;
  gap: .5em;
  justify-content: center;
  flex-direction: row;
}

.soc__link {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.soc__link:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.soc__link.max {
  background-image: url("images/max.svg");
}

.soc__link.vk {
  background-image: url("images/vk.svg");
}

.soc__link.telegram {
  background-image: url("images/telegram.svg");
}

.soc__link.whatsapp {
  background-image: url("images/whatsapp.svg");
}

.soc__link.wechat {
  background-image: url("images/wechat.svg");
}

/* Основной блок психолога */
.psychologist__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.avatar__img {
  border: 0;
  border-radius: 0.5em;
  width: 20em;
  height: 20em;
}

@media (max-width: 767px) {
  .psychologist__row {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
}

@media (max-width: 479px) {
  .psychologist__row {
    text-align: center;
  }

  .psychologist__column .is--left {
    background-color: rgba(0, 153, 153, 0.05);
    width: 3.75em;
    padding: 1em;
    position: relative;
  }
}

.psychologist__section_title {
  font-size: 1.5em;
  font-weight: 600;
  text-align: center;
  background-color: #0099990d;
  margin-top: 0;
  padding-top: 0.34em;
  padding-bottom: 0.34em;
  line-height: 1em;
}

.psychologist__line {
  background-image: linear-gradient(135deg, var(--teal), var(--lightcyan));
  border-radius: 50%;
  position: absolute;
  top: 0%;
  bottom: 0%;
  left: 0%;
  right: 0%;
}

.psychologist__background {
  background-image: linear-gradient(135deg, var(--lightcyan), var(--teal));
  border-radius: 50%;
  margin: 0.2em;
  position: absolute;
  top: 0%;
  bottom: 0%;
  left: 0%;
  right: 0%;
}

.psychologist__avatar img {
  object-fit: cover;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.psychologist__city {
  margin-bottom: 1.5em;
  font-weight: 600;
  font-size: 1em;
  color: #666;
  text-align: center;
}

.psychologist__service_title {
  margin-bottom: 0.5em;
  font-size: 1em;
  color: #666;
  font-weight: 400;
}

.psychologist__consultation-types,
.psychologist__profile-type {
  white-space: normal;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.2em;
  color: var(--black);
  margin-bottom: 1.5em;
}

.psychologist__experience {
  font-size: 15px;
  color: #666;
  margin-bottom: .75em;
}

.psychologist__experience span {
  font-weight: 600;
  color: var(--black);
}

.psychologist__prices {
  margin-top: 1em;
  display: flex;
}

@media screen and (max-width: 479px) {
  .psychologist__prices {
    margin-top: 1em;
    display: flex;
    flex-direction: column;
  }
}

.psychologist__price {
  width: 50%;
  margin-top: 0.34em;
  font-size: 1em;
}

@media screen and (max-width: 479px) {
  .psychologist__price {
    width: 100%;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1em;
  }
}

.psychologist__price-label {
  color: #666;
  margin-right: 6px;
}

.psychologist__price-value {
  color: var(--lightseagreen);
  font-size: 1.5em;
  font-weight: 600;
  margin-right: 0.25em;
}

.psychologist__offer {
  color: var(--darkcyan);
  background-color: #0099992b;
  background-image: url(../images/clock.svg);
  background-position: 1em .875em;
  background-repeat: no-repeat;
  background-size: auto;
  border-radius: 0.5em;
  margin-top: 1em;
  margin-right: 1px;
  padding: 1em 3em;
  font-size: 1em;
  font-weight: 600;
}

.psychologist__specializations {
  margin-top: 1.25em;
}

.psychologist__specializations-title {
  font-size: 1em;
  font-weight: 400;
  margin-bottom: .5em;
}

.psychologist__specialization-item {
  font-size: 1em;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
}

/* Секции */
.psychologist__section {
  border: 1px solid rgba(0, 153, 153, 0.17);
  border-radius: 1em;
  margin-bottom: 2em;
  padding-bottom: 1em;
  overflow: hidden;
}

.psychologist__section-title {
  text-align: center;
  background-color: rgba(0, 153, 153, 0.05);
  margin-top: 0;
  padding-top: 0.34em;
  padding-bottom: 0.34em;
  line-height: 1em;
}

/* ============================================================
   Основной документ — readonly view
   ============================================================ */

.main-doc-view__notice {
  padding: 12px 16px;
  background: #fff8e1;
  border-left: 4px solid #f0ad4e;
  border-radius: 6px;
  font-size: 0.875em;
  line-height: 1.4;
  color: #8a6d3b;
  margin-bottom: 20px;
}

.input.is--readonly {
  width: 100%;
  padding: 12px 16px;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 1em;
  color: #333;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.input.is--readonly.is--area {
  min-height: 80px;
  white-space: pre-line;
  line-height: 1.4;
}


/* Документы */
.add-doc-btn {
  display: block;
  margin: 1em auto;
  padding: 0.75em 2em;
  background-color: #0099992b;
}

.additional-doc-item__header {
  margin-bottom: 1.5em;
}

.psychologist__docs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.psychologist__doc {
  display: flex;
  gap: 0.5em;
  align-items: flex-start;
  padding: 0.5em;
  border-radius: 6px;
}

.icon__doc-validate {
  flex-shrink: 0;
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-image: url("../images/doc-validate.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

.psychologist__doc-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.psychologist__doc-institution {
  font-size: .875em;
  color: #666;
}

/* Жалоба */
.psychologist__section--complaint {
  text-align: center;
  border: none;
}

.btn--complaint {
  background: transparent;
  border: 1px solid #e53935;
  color: #e53935;
  padding: 10px 1.25em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn--complaint:hover {
  background: #e53935;
  color: #fff;
}

#contact-psychologist-form {
  max-width: 40em;
  margin: 0 auto;
}

.checkbox-label {
  display: flex;
  width: 100%;
}

/* ============================================================
   Сетка карточек статей: 2 в ряд на десктопе, 1 на мобиле
   ============================================================ */

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
  margin-bottom: 32px;
}

@media (min-width: 76.5em) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5em;
  }
}


.articles-grid--author {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
  margin-top: 1em;
}

@media (min-width: 480px) {
  .articles-grid--author {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25em;
  }
}

@media (min-width: 992px) {
  .articles-grid--author {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    margin: 0 0.5em;
  }
}

.psychologist-articles__more {
  text-align: center;
  margin-top: 1em;
}

/* ============================================================
   Рилсы автора на профиле психолога
   mobile-first: 2 → 3 → 4
   ============================================================ */

.reels-grid--author {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75em;
  margin: 1em 0;
}

/* Планшет */
@media (min-width: 76.5em) {
  .reels-grid--author {
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
  }
}

/* Десктоп */
@media (min-width: 992px) {
  .reels-grid--author {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25em;
  }
}

/* Очень широкие экраны — больше отступы */
@media (min-width: 1280px) {
  .reels-grid--author {
    gap: 1.5em;
  }
}

.psychologist-reels__more {
  text-align: center;
  margin-top: 1em;
}


/* ============================================================
   Сетки статей — 1 колонка / 2 колонки
   ============================================================ */

/* По умолчанию — 2 колонки (как было) */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
  margin-bottom: 32px;
}

@media (min-width: 76.5em) {
  .articles-grid.articles-grid--two {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5em;
  }
}

/* 1 колонка — всегда */
.articles-grid.articles-grid--one {
  grid-template-columns: 1fr;
  gap: 1.5em;
}

/* ============================================================
   Вертикальная карточка (2-колоночный формат) — как было
   ============================================================ */

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 153, 153, 0.15);
  border-radius: .75em;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}

.article-card:hover {
  box-shadow: 0 6px 1.25em rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.article-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f5f5f5;
}

.article-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.article-card:hover .article-card__image img {
  transform: scale(1.03);
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1em 1.5em 1.5em;
}

.article-card__title {
  margin: 0 0 10px;
  font-size: 1.5em;
  line-height: 1.3;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
}

.article-card__title a:hover {
  color: #009999;
}

.article-card__excerpt {
  font-size: .875em;
  line-height: 1.5;
  color: #555;
  margin-bottom: 1em;
  /* flex: 1 1 auto; */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75em;
  font-size: 13px;
  color: #888;
  margin-top: auto;
  padding-top: .75em;
  border-top: 1px solid rgba(0, 153, 153, 0.1);
  flex-wrap: wrap;
}

.article-card__date {
  white-space: nowrap;
}

.article-card__author {
  color: #009999;
  text-decoration: none;
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 60%;
}

.article-card__author:hover {
  text-decoration: underline;
}

/* ============================================================
   Горизонтальная карточка (1-колоночный формат)
   ============================================================ */

.article-card--horizontal {
  display: grid;
  grid-template-columns: 18em 1fr;
  /* картинка фикс, контент тянется */
  gap: 0;
  align-items: stretch;
  /* margin: 0 .5em;*/
}

.article-card--horizontal .article-card__image-col {
  position: relative;
  background: #f5f5f5;
  overflow: hidden;
  max-height: 18em;
  aspect-ratio: 1 / 1;
}

.article-card--horizontal .article-card__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  /* убираем 16:9 — в горизонтальной карточке картинка растягивается по высоте */
  overflow: hidden;
}

.article-card--horizontal .article-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.article-card--horizontal:hover .article-card__image img {
  transform: scale(1.03);
}

/* Абсолютная ссылка на всю область картинки */
.article-card--horizontal .article-card__image-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
}

.article-card--horizontal .article-card__body {
  padding: 1.25em 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75em;
}

.article-card--horizontal .article-card__title {
  font-size: 1.25em;
  -webkit-line-clamp: 3;
}

.article-card--horizontal .article-card__excerpt {
  -webkit-line-clamp: 4;
  margin-bottom: 0;
}

.article-card--horizontal .article-card__meta {
  margin-top: 0;
  padding-top: .75em;
}

.article-card__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.article-card__read-more {
  /* стили .button уже есть */
  font-size: .875em;
  padding: .5em 1.25em;
}

/* ============================================================
   Мобиле: горизонтальная карточка складывается в столбик
   ============================================================ */

@media (max-width: 479px) {
  .article-card--horizontal {
    /*grid-template-columns: 2fr; */
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 153, 153, 0.15);
    border-radius: .75em;
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
    margin: 1em .5em 0 .5em;
  }

  .article-card--horizontal .article-card__image-col {
    aspect-ratio: 3 / 2;
    /* картинка снова 16:9 */
  }

  .article-card--horizontal .article-card__body {
    padding: 1em 1.5em 1.5em;
  }
}


/* ============================================================
   Карточка рилса — вертикальные 9:16
   ============================================================ */

.reel-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 153, 153, 0.15);
  border-radius: .75em;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}

.reel-card:hover {
  box-shadow: 0 6px 1.25em rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Ключевое — вертикальные 9:16 */
.reel-card__video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
}

.reel-card__video iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

.reel-card__video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: .875em;
  background: #f5f5f5;
}

.reel-card__body {
  padding: .75em .875em .875em;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.reel-card__title {
  margin: 0 0 .5em;
  font-size: 1em;
  line-height: 1.3;
  font-weight: 600;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-card__title a {
  color: inherit;
  text-decoration: none;
}

.reel-card__title a:hover {
  color: #009999;
}

.reel-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5em;
  font-size: .75em;
  color: #888;
  margin-top: auto;
  padding-top: .5em;
  border-top: 1px solid rgba(0, 153, 153, 0.1);
  flex-wrap: wrap;
}

.reel-card__date {
  white-space: nowrap;
}

.reel-card__author {
  color: #009999;
  text-decoration: none;
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 60%;
}

.reel-card__author:hover {
  text-decoration: underline;
}

/* ============================================================
   Сетка рилсов — публичный архив /video/ и ЛК
   Мобиле 2 → планшет 2 → десктоп 3
   ============================================================ */

.reels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75em;
  margin-bottom: 32px;
}

@media (min-width: 76.5em) {
  .reels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
  }
}

@media (min-width: 992px) {
  .reels-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25em;
  }
}

/* ============================================================
   Блок «Рилсы автора» на профиле психолога
   ============================================================ */

.reels-grid.reels-grid--author {
  margin: 1em 0;
  grid-template-columns: repeat(2, 1fr);
  gap: .75em;
}

@media (min-width: 76.5em) {
  .reels-grid.reels-grid--author {
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
  }
}

@media (min-width: 992px) {
  .reels-grid.reels-grid--author {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25em;
  }
}

@media (min-width: 1280px) {
  .reels-grid.reels-grid--author {
    gap: 1.5em;
  }
}

/* ============================================================
   Swiper как "обычная сетка", пока не инициализирован
   ============================================================ */

/* Пока Swiper НЕ инициализирован — wrapper = grid */
.swiper:not(.swiper-initialized) .swiper-wrapper {
  /* Классы .articles-grid--two / .reels-grid--author уже
       задают display: grid и колонки — ничего не переопределяем */
  transform: none !important;
}

.swiper:not(.swiper-initialized) .swiper-slide {
  width: auto !important;
  height: auto !important;
  margin-right: 0 !important;
  flex-shrink: 1 !important;
}

/* Скрываем пагинацию, пока не инициализирован */
.swiper:not(.swiper-initialized) .swiper-pagination {
  display: none;
}

/* ============================================================
   Стили слайдера — когда инициализирован
   ============================================================ */

.swiper.articles-swiper.swiper-initialized,
.swiper.reels-swiper.swiper-initialized {
  overflow: hidden;
  margin-bottom: 8px;
}

.swiper.articles-swiper.swiper-initialized .swiper-wrapper,
.swiper.reels-swiper.swiper-initialized .swiper-wrapper {
  display: flex !important;
  /* перебиваем grid */
  grid-template-columns: none !important;
  gap: 0 !important;
}

.swiper.articles-swiper .swiper-pagination,
.swiper.reels-swiper .swiper-pagination {
  position: static;
  margin-top: 12px;
}

.swiper.articles-swiper .swiper-pagination-bullet,
.swiper.reels-swiper .swiper-pagination-bullet {
  background: #009999;
  opacity: 0.3;
}

.swiper.articles-swiper .swiper-pagination-bullet-active,
.swiper.reels-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}


/* ============================================================
   Слайдер статей — только < 480px
   ============================================================ */

.articles-swiper-mobile {
  display: none;
  overflow: hidden;
  margin-bottom: 8px;
}

.articles-swiper-mobile .swiper-pagination {
  position: static;
  margin-top: 12px;
}

.articles-swiper-mobile .swiper-pagination-bullet {
  background: #009999;
  opacity: 0.3;
}

.articles-swiper-mobile .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 479px) {
  .articles-swiper-mobile {
    display: block;
  }

  /* Скрываем сетку, когда слайдер активен */
  .articles-grid--no-slider {
    display: none !important;
  }
}

/* ============================================================
   Слайдер рилсов — только < 992px
   ============================================================ */
.swiper {
  margin: 0 .5em;
}

.reels-swiper-mobile {
  display: none;
  overflow: hidden;
  margin-bottom: 8px;
}

.reels-swiper-mobile .swiper-pagination {
  position: static;
  margin-top: 12px;
}

.reels-swiper-mobile .swiper-pagination-bullet {
  background: #009999;
  opacity: 0.3;
}

.reels-swiper-mobile .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 991px) {
  .reels-swiper-mobile {
    display: block;
  }

  .reels-grid--no-slider {
    display: none !important;
  }
}


/* Статусы в профиле психолога */

.application-status {
  padding: 1em 1.25em;
  border-radius: .5em;
  margin-bottom: 1.25em;
  border-left: 4px solid;
}

.application-status--pending {
  background: #fff8e1;
  border-color: #f0ad4e;
  color: #8a6d3b;
}

.application-status--verified {
  background: #e6f7e6;
  border-color: #4caf50;
  color: #2d6a2d;
}

.application-status--rejected {
  background: #fdecea;
  border-color: #e53935;
  color: #a12b2b;
}

.verified-badge {
  color: #009999;
  text-decoration: none;
  font-weight: 700;
  text-overflow: ellipsis;
  position: relative;
  top: -2em;
  margin-bottom: 2em;
}

@media (max-width: 991px) {
  .verified-badge {
    top: -1em;
  }
}

/* ============================================================
   Меню - закрепление — статьи и рилсы
   ============================================================ */
a.nav-tab {
  padding: 0.75em 1.5em;
  margin-right: 0.5em;
  text-decoration: none;
  border: 1px solid #e5e5e5;
  border-radius: 0.25em;
}

a.nav-tab-active {
  border: 1px solid #009999;
  background-color: #009999;
  color: var(--white);
}

/* ============================================================
   ★ Платное закрепление — метка на карточках
   ============================================================ */

.article-card,
.article-card--horizontal,
.reel-card {
  position: relative;
  /* якорь для абсолютной позиции ★ */
}

.promo-star {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  z-index: 10;
  width: 1.5em;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #009999;
  color: #fff;
  border-radius: 50%;
  font-size: 1em;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform .15s ease, background-color .15s ease;
}

.promo-star:hover {
  transform: scale(1.15);
  background: #007a7a;
  color: #fff;
  text-decoration: none;
}

/* Для рилсов — ★ поверх чёрного фона видео, чтобы был виден */
.reel-card .promo-star {
  top: 8px;
  right: 8px;
  background: #ffb800;
  /* золотистый — заметно на чёрном */
  color: #000;
}

.reel-card .promo-star:hover {
  background: #ffc933;
  color: #000;
}

/* ============================================================
   Слайдер психологов на главной
   ============================================================ */

.psychologists-swiper {
  overflow: hidden;
  padding-bottom: 8px;
}

.psychologists-swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

.psychologists-swiper .swiper-slide>* {
  flex: 1 1 auto;
}

.psychologists-swiper .swiper-button-prev,
.psychologists-swiper .swiper-button-next {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: #009999;
  transition: background-color .15s ease, color .15s ease;
}

.psychologists-swiper .swiper-button-prev:hover,
.psychologists-swiper .swiper-button-next:hover {
  background: #009999;
  color: #fff;
}

.psychologists-swiper .swiper-button-prev::after,
.psychologists-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 767px) {

  .psychologists-swiper .swiper-button-prev,
  .psychologists-swiper .swiper-button-next {
    display: none;
  }
}

.psychologists-swiper .swiper-pagination {
  position: static;
  margin-top: 20px;
  text-align: center;
}

.psychologists-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #009999;
  opacity: 0.3;
  transition: opacity .15s ease, transform .15s ease;
}

.psychologists-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.25);
}

/* ============================================================
   Карточка психолога в слайдере на главной
   ============================================================ */

/* Слайд — фиксированной высоты, чтобы все карточки были одинаковые */
.psychologists-swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

/* Карточка */
.psychologists-swiper .psychologist__item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 24px 0 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.psychologist__item_img--wrapper {
  background-image: linear-gradient(135deg, var(--lightcyan), var(--teal));
  border-radius: 50%;
  width: 90%;
  height: auto;
  margin: 0 auto 1em;
  padding: .2em;
  position: relative;
  overflow: hidden;
}

.psychologists-swiper .psychologist__item_img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  /* круг */
  overflow: hidden;
  background: #f2f2f2;
}

.psychologists-swiper .psychologist__item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* обрезает по центру, сохраняя пропорции */
  object-position: center top;
  /* «top» — оставляем верх (лицо), если фото вертикальное */
  display: block;
  border-radius: 50%;
}

/* ФИО */
.psychologists-swiper .psychologist__item_name {
  padding: 0 16px;
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.3;
  color: #1a1a1a;
  font-weight: 600;
}

.psychologists-swiper .psychologist__item_name_line.is--last {
  font-weight: 700;
}

/* Бейдж */
.psychologists-swiper .verified-badge {
  display: inline-block;
  align-self: center;
  margin: 2em 0.5em 0;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #009999;
  background: rgba(0, 153, 153, 0.1);
  border-radius: 100px;
}

/* Формат консультации */
.psychologists-swiper .psychologist__item_format {
  padding: 0 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #555;
}

.psychologists-swiper .psychologist__item_format_title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.psychologists-swiper .psychologist__item_format_list {
  color: #555;
}

/* Кнопка — прижата к низу */
.psychologists-swiper .psychologist__item_button {
  margin: auto 16px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  background: #009999;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background-color .15s ease;
}

.psychologists-swiper .psychologist__item_button:hover {
  background: #007a7a;
  color: #fff;
}

/* ============================================================
   Лента статей на главной
   ============================================================ */

.articles-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
}

@media (max-width: 991px) {
  .articles-feed {
    gap: 1.25em;
  }
}

@media (max-width: 575px) {
  .articles-feed {
    gap: 1em;
  }
}

.articles-feed__item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
}

/* ============================================================
   Слайды рилсов на главной
   ============================================================ */

/* Карточка — 9/19 с фиксированной структурой */
.reels-swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

.reels-swiper .reel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  /* Отступы между карточками делает Swiper через spaceBetween,
     но если хочется визуальный зазор — padding: 0 0.5%; */
}

/* Видео — 9/16, задаёт высоту всей карточке */
/* Обёртка видео — жёсткие пропорции */
.reels-swiper .reel-card__video {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  /* обнуляем, высота через padding */
  padding-bottom: 177.78% !important;
  overflow: hidden !important;
  border-radius: 12px;
  background: #000;
}

/* Iframe — абсолютный, прибит к обёртке */
.reels-swiper .reel-card__video iframe,
.reels-swiper .reel-card__video img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
  object-fit: cover;
}

/* Заголовок — 2 строки максимум */
.reels-swiper .reel-card__title {
  margin: 12px 12px 0;
  font-size: 15px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  /* зарезервировать 2 строки, чтобы карточки без заголовка не «сжимались» */
}

.reels-swiper .reel-card__title a {
  color: inherit;
  text-decoration: none;
}

.reels-swiper .reel-card__title a:hover {
  color: #009999;
}

/* Футер — прижат к низу */
.reels-swiper .reel-card__footer {
  margin-top: auto;
  padding: 12px;
}

/* ============================================================
   CBT Toast — всплывающие уведомления
   ============================================================ */

.cbt-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 360px;
}

.cbt-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  line-height: 1.4;
  color: #1a1a1a;
  transform: translateX(120%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  border-left: 4px solid #009999;
}

.cbt-toast.is--visible {
  transform: translateX(0);
  opacity: 1;
}

.cbt-toast.is--success {
  border-left-color: #46b450;
}

.cbt-toast.is--error {
  border-left-color: #d63638;
}

.cbt-toast__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.cbt-toast.is--success .cbt-toast__icon {
  background: #46b450;
}

.cbt-toast.is--error .cbt-toast__icon {
  background: #d63638;
}

.cbt-toast.is--info .cbt-toast__icon {
  background: #009999;
}

.cbt-toast__text {
  flex: 1 1 auto;
}

.cbt-toast__close {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: background .15s ease, color .15s ease;
}

.cbt-toast__close:hover {
  background: #f2f2f2;
  color: #333;
}

@media (max-width: 575px) {
  .cbt-toast-container {
    top: auto;
    bottom: 20px;
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .cbt-toast {
    transform: translateY(120%);
  }

  .cbt-toast.is--visible {
    transform: translateY(0);
  }
}

.login-nav {
  z-index: 900;
}

/* ============================================================
   Глобальный поиск — раскрытие по клику на иконку
   ============================================================ */

/* Скрыт по умолчанию — но НЕ display: none, чтобы анимация работала */
.search {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
  pointer-events: none;
  z-index: 0;
  /* не ловит клики, пока скрыт */
}

/* Открыт */
.search.is--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  padding-top: 10em;
}


@keyframes searchSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.cbt-search {
  position: relative;
  max-width: 500px;
}

.cbt-search__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: var(--black);
}

.cbt-search__results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  max-height: 480px;
  overflow-y: auto;
  z-index: 1000;
}

.cbt-search__item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #f2f2f2;
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
}

.cbt-search__item:hover {
  background: #f9f9f9;
}

.cbt-search__type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #009999;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.cbt-search__title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.cbt-search__excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 4px;
}

.cbt-search__author {
  font-size: 12px;
  color: #999;
}

.cbt-search__empty {
  padding: 20px 16px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* ============================================================
   Документы об образовании — плитка с превью
   ============================================================ */

.psychologist__docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  padding: 0 .5em
}

@media (max-width: 991px) {
  .psychologist__docs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
  }
}

@media (max-width: 767px) {
  .psychologist__docs-grid {
    grid-template-columns: 1fr;
    gap: 0.875em;
    margin: 0 0.5em;
  }
}

.psychologist__doc-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease;
}

.psychologist__doc-card:hover {
  box-shadow: 0 6px 1.5em rgba(0, 0, 0, 0.08);
}

.psychologist__doc-card__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0.5em;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}

.psychologist__doc-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.psychologist__doc-card:hover .psychologist__doc-card__preview img {
  transform: scale(1.03);
}

.psychologist__doc-card__info {
  padding: 0.875em 1em;
  border-top: 1px solid #f2f2f2;
}

.psychologist__doc-card__title {
  font-size: 0.875em;
  font-weight: 600;
  color: #009999;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.psychologist__doc-card__institution {
  font-size: 0.875em;
  color: #555;
  line-height: 1.4;
}

/* Лайтбокс */
.psychologist__lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.psychologist__lightbox.is--open {
  display: flex;
}

.psychologist__lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}

.psychologist__lightbox__body {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.psychologist__lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.psychologist__lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  background: #fff;
  color: #333;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.psychologist__lightbox__close:hover {
  background: #f2f2f2;
}

.additional-docs {
  margin-top: 3em;
}

/* ============================================================
   Комментарии — cbt-comments
   ============================================================ */

.cbt-comments {
  margin-top: 2em;
  width: 100%;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

@media (min-width: 1280px) {
  .cbt-comments {
    max-width: 1140px;
    padding-left: 0;
    padding-right: 0;
  }
}

.cbt-comments__title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 1em;
}

.cbt-comments__list {
  margin-bottom: 2em;
}

.cbt-comments__empty {
  padding: 20px 0;
  color: #888;
  font-size: 0.9375em;
}

/* Уведомление для гостя */
.cbt-comments__login-notice {
  padding: 24px;
  background: #f9f9f9;
  border-radius: 12px;
  text-align: center;
  font-size: 1em;
  margin-top: 1em;
}

.cbt-comments__login-notice a {
  color: #009999;
  font-weight: 600;
}

/* Уведомление для авторизованного */
.cbt-comments__user-notice {
  padding: 12px 16px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.875em;
}

.cbt-comments__user-notice a {
  color: #009999;
  text-decoration: none;
}

/* ============================================================
   Один комментарий
   ============================================================ */

.cbt-comment {
  margin-bottom: 1em;
  padding: 1em;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f2f2f2;
}

.cbt-comment__body {
  display: flex;
  gap: 1em;
  align-items: flex-start;
}

/* Аватар */
.cbt-comment__avatar {
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
}

.cbt-comment__avatar-img {
  border: 1px solid #009999;
  border-radius: 50%;
  object-fit: cover;
  width: 45px;
  height: 45px;
  display: block;
}

/* Контент */
.cbt-comment__content {
  flex: 1 1 auto;
  min-width: 0;
}

.cbt-comment__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.cbt-comment__author {
  font-weight: 600;
}

.cbt-comment__author a {
  color: #1a1a1a;
  text-decoration: none;
}

.cbt-comment__author a:hover {
  color: #009999;
}

.cbt-comment__date {
  font-size: 0.75em;
  color: #888;
  text-decoration: none;
}

.cbt-comment__date:hover {
  text-decoration: underline;
}

.cbt-comment__text {
  line-height: 1.5;
  color: #333;
  margin-bottom: 0;
}

.cbt-comment__moderation {
  font-size: 0.8125em;
  color: #f0ad4e;
  margin: 4px 0;
}

.cbt-comment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.comment-edit-link {
  border: 1px solid #009999;
  background-color: #009999;
  color: #D4EEEE;
  text-decoration: none;
  font-weight: 500;
  border-radius: .25em;
  font-size: .875em;
  transition: all .3s;
  opacity: 1;
}

.comment-edit-link:hover {
  border: 1px solid #009999;
  background-color: #009999;
  text-decoration: none;
  opacity: 0.9;
}

.comment-reply-link {
  border: 1px solid #D4EEEE;
  background-color: #D4EEEE;
  color: #009999;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  border-radius: .25em;
  font-size: .875em;
  transition: all .3s;
  opacity: 1;
}

.comment-reply-link:hover {
  border: 1px solid #D4EEEE;
  background-color: #D4EEEE;
  text-decoration: none;
  opacity: 0.9;
}

/* ============================================================
   Вложенность
   ============================================================ */

.cbt-comment .cbt-comment {
  margin-left: 2em;
  margin-top: 1em;
  margin-bottom: 0;
  border-left: 3px solid #009999;
  background: #f9f9f9;
  padding-left: 1.25em;
}

.cbt-comment .cbt-comment .cbt-comment {
  margin-left: 2em;
  border-left-color: #f0ad4e;
}

.cbt-comment .cbt-comment .cbt-comment .cbt-comment {
  margin-left: 2em;
  border-left-color: #d63638;
}

.cbt-comment .cbt-comment .cbt-comment .cbt-comment .cbt-comment {
  margin-left: 2em;
  border-left-color: #888;
}

@media (max-width: 575px) {

  .cbt-comment .cbt-comment,
  .cbt-comment .cbt-comment .cbt-comment,
  .cbt-comment .cbt-comment .cbt-comment .cbt-comment,
  .cbt-comment .cbt-comment .cbt-comment .cbt-comment .cbt-comment {
    margin-left: 1em;
    padding-left: 0.75em;
  }
}

/* ============================================================
   Форма комментария
   ============================================================ */

.cbt-comment-form__label {
  display: block;
  font-size: 0.875em;
  font-weight: 600;
  margin-bottom: 0.25em;
}

.cbt-comment-form__textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75em 1em;
  border: 1px solid #ddd;
  border-radius: 0.5em;
  font-family: inherit;
  font-size: 1em;
  line-height: 1.4;
  box-sizing: border-box;
  resize: vertical;
  color: #333;
}

.cbt-comment-form__textarea:focus {
  outline: none;
  border-color: #009999;
  box-shadow: 0 0 0 3px rgba(0, 153, 153, 0.1);
}

.cbt-comment-form__hint {
  font-size: 0.75em;
  color: #888;
  margin: 0.25em 0 0.75em;
}

.cbt-comment-form__submit {
  display: inline-block;
  padding: 0.75em 1.5em;
  margin-top: 2em;
  background: #009999;
  color: #fff;
  border: 0;
  border-radius: 0.5em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cbt-comment-form__submit:hover {
  background: #007a7a;
}

/* Форма — ограничение ширины */
.cbt-comments .comment-respond {
  width: 100%;
  max-width: 100%;
  margin-top: 2em;
}

.cbt-comments .comment-reply-title {
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ============================================================
   Комментарии — отступы вложенности
   ============================================================ */

/* Вложенный комментарий — сдвиг вправо + линия */
.cbt-comment .cbt-comment {
  margin-left: 2em;
  margin-top: 1em;
  margin-bottom: 0;
  padding-left: 1.25em;
  border-left: 3px solid #009999;
  background: #f9f9f9;
}

/* Уровень 3 */
.cbt-comment .cbt-comment .cbt-comment {
  margin-left: 2em;
  border-left-color: #f0ad4e;
}

/* Уровень 4 */
.cbt-comment .cbt-comment .cbt-comment .cbt-comment {
  margin-left: 2em;
  border-left-color: #d63638;
}

/* Уровень 5 */
.cbt-comment .cbt-comment .cbt-comment .cbt-comment .cbt-comment {
  margin-left: 2em;
  border-left-color: #888;
}

/* Мобильные — уменьшаем отступы */
@media (max-width: 575px) {

  .cbt-comment .cbt-comment,
  .cbt-comment .cbt-comment .cbt-comment,
  .cbt-comment .cbt-comment .cbt-comment .cbt-comment,
  .cbt-comment .cbt-comment .cbt-comment .cbt-comment .cbt-comment {
    margin-left: 1em;
    padding-left: 0.75em;
  }
}


/* ============================================================
   Страница одного рилса (single-reels)
   ============================================================ */

/* Мета: автор + дата */
.reel-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin: 16px 0 24px;
  font-size: 0.9375em;
  color: #666;
}

.reel-single__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.reel-single__meta-item--author {
  color: #009999;
  font-weight: 600;
}

.reel-single__meta-item--author:hover .reel-single__meta-text {
  text-decoration: underline;
}

.reel-single__meta-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.reel-single__meta-icon--user {
  background-image: url("../images/profile.svg");
}

.reel-single__meta-icon--date {
  background-image: url("../images/clock.svg");
}

.reel-single__meta-icon--bookmark {
  background-image: url("../images/bookmark.svg");
}

/* Если clock.svg нет — используйте другую иконку даты, например: */
/* background-image: url("../images/calendar.svg"); */

/* VK-видео — по центру, вертикальное 9:16 */
.reel-single__video-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0 40px;
}

.reel-single__video {
  position: relative;
  width: auto;
  height: 60vh;
  max-height: 800px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.reel-single__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.reel-single__actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* Мобильные */
@media (max-width: 767px) {
  .reel-single__video {
    height: 70vh;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
  }
}

/* ============================================================
   Ссылка жалобы
   ============================================================ */

.psychologist__section--complaint {
  text-align: center;
  border: none;
  padding: 0;
  margin-top: 24px;
}

.link--complaint {
  display: inline-block;
  color: #d63638;
  font-size: 0.9375em;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
  cursor: pointer;
}

.link--complaint:hover {
  color: #a12b2b;
  text-decoration: none;
}

.link--complaint.is--disabled {
  color: #999;
  cursor: not-allowed;
  text-decoration: line-through;
}

.link--complaint.is--disabled:hover {
  color: #999;
  text-decoration: line-through;
}

/* ============================================================
   Модалка жалобы
   ============================================================ */

.cbt-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cbt-modal.is--open {
  display: flex;
}

.cbt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.cbt-modal__body {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cbt-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  border-radius: 50%;
}

.cbt-modal__close:hover {
  background: #f2f2f2;
  color: #333;
}

.cbt-modal__title {
  margin: 0 0 8px;
  font-size: 1.5em;
  font-weight: 600;
}

.cbt-modal__subtitle {
  margin: 0 0 20px;
  font-size: 0.9375em;
  color: #666;
}

.cbt-modal__form .label {
  display: block;
  margin: 12px 0 4px;
  font-size: 0.875em;
  font-weight: 600;
}

.cbt-modal__form .input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1em;
  box-sizing: border-box;
}

.cbt-modal__form .input.is--area {
  min-height: 100px;
  resize: vertical;
}

.cbt-modal__agree {
  margin: 0.25em 0;
}

.cbt-modal__actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button.is--ghost {
  margin-top: 2em;
}

@media (max-width: 575px) {
  .cbt-modal__body {
    padding: 24px 20px;
  }
}

/* Звезды для отзывов */
.stars { 
  position: relative; 
  display: inline-block; 
  font-size: 20px; 
  line-height: 1; 
  letter-spacing: 2px; 
}
.stars__empty { 
  color: #ccc; 
}
.stars__fill { 
  position: absolute; 
  top: 0; 
  left: 0; 
  overflow: hidden; 
  white-space: nowrap; 
  color: #f5b301; 
}

.stars-input { 
  display: inline-flex; 
  gap: 4px; 
  font-size: 28px; 
  line-height: 1; 
  cursor: pointer; 
  user-select: none; 
}
.stars-input .star { 
  color: #ccc; 
  transition: color .15s; 
}
.stars-input .star.is-active { 
  color: #f5b301; 
}

.review__rating--summary { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
}
.review__vote { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin: 12px 0 20px; 
}
.review__vote-label { 
  font-weight: 600; 
}


.psychologist-reviews__actions { 
  margin: 24px 0 8px; 
}
.review-form__already { 
  margin: 16px 0; 
  color: #666; 
}

.review__item_head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.psychologist-reviews .review__vote {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}
.psychologist-reviews__actions {
    display: flex;
    justify-content: center;
    margin: 24px 0 8px;
}

.review__item {
    margin: 0 0.5% 2em;
    padding-bottom: 2em;
    border-bottom: 1px solid #eaeaea;
}

.review__item:last-child {
    margin: 0 0.5% 2em;
    padding-bottom: 0;
    border-bottom: none;
}

.psychologist__section_head, .review__vote-hint {
  text-align: center;
}

.page__title_link {
  text-decoration: none;
}

.review__attr {
    text-align: center;
    margin-bottom: 2em;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.review__attr_text {
    margin-right: 1em;
    padding: 0;
    display: inline-block;
}

.review__item_title {
    margin-top: .83em;
    margin-bottom: .83em;
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.2em;
}

.review__item_title_link{
  text-decoration: none;
}

.review__item_head {
    margin-bottom: 1em;
    font-weight: 500;  
}

.review__item_text {
  margin-bottom: 1em;
}

.review__item_link {
  font-weight: 700;
}

.review__slide {
  margin-left: 0;
  margin-right: 0;
  min-width: 100%;
}

.review__slide_title {
    margin-left: 0;
    margin-right: 0;
}

@media screen and (max-width: 479px) {
  .review__slider {
        min-width: 100%;
   }
}