/* Fix: width:100vw elements causing horizontal overflow in Chrome/Yandex (scrollbar eats ~17px from vw) */
html {
  scrollbar-gutter: stable;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
}

.elements-tabs__link.--current {
  border-bottom: 0.1875rem solid #022027 !important;
}

.elements-tabs__link {
  border-bottom: none !important;
}

.elements-tabs__link::before, .elements-tabs__link::after {
  display: none !important;
}

.sf-header__button {
  font-family: Geologica, Arial, Verdana, sans-serif;
}

html body .mod--new-form.mod.mod--form{
  width: 100%;
  max-width: 475px;
  padding: 30px 40px !important;
}

.mod--new-form.mod.mod--form .mod__item label {
  display: block;
  text-align: left;
  margin-top: 10px;
  position: relative;
}

.mod--new-form.mod.mod--form .mod__item .mod__input--checkbox label{
  padding-left: 26px;
}

.mod--new-form.mod.mod--form .mod__item {
  width: 100% !important;
}

.mod--new-form.mod.mod--form .mod__title {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 15px;
  margin-bottom: 15px;
}

.mod__item label {
  cursor: pointer;
}

.mod__item label i {
  position: absolute;
  top: 8px;
  left: 0;
  font-size: 18px;
}

.mod__item label i.fa-check-square-o {
  display: none;
}

.mod__item input[type="checkbox"]:checked + i.fa-square-o {
  display: none;
}
.mod__item input[type="checkbox"]:checked + i.fa-square-o + i.fa-check-square-o {
  display: inline;
}

.mod--new-form.mod.mod--form .mod__item .mod__input--textarea label {
  padding-left: 0;
}

.mod--new-form.mod.mod--form .mod__input--textarea textarea{
  border: 0.0625rem solid #d4dbea;
  color: #101241;
  font-size: 14px;
  font-family: Geologica;
  font-weight: 400;
  border-radius: 8px;
  padding: 10px;
  width: 100% !important;
}

.mod__item-text {
  font-size: 14px;
  line-height: 1.2;
  margin-top: 15px;
}

.mod--new-form.mod.mod--form .field__file-wrapper {
  display: flex !important;
  flex-wrap: nowrap;
}

.mod--new-form.mod.mod--form .field__file {
  width: 0;
  min-width: 0;
}

.mod--new-form.mod.mod--form .field__file-wrapper .field__file-fake {
  width: 100%;
}

.field__file-hint {
  margin-top: 7px;
  color: #7a8588;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.contact__params-modal-form {
  text-align: right;
  margin-top: 25px;
  color: #616a3f;
  cursor: pointer;
  transition: all 0.3s;
}

.contact__params-modal-form:hover {
  color: #6f3e3c;
}

.input__area:disabled {
  opacity: 0.5;
}

.form-result-success {
  display: block;
  width: 100%;
}

.mod__form-container.hide {
  display: none;
}

.form-result{
  color: red;
}

.mod--new-form input {
  border: 0.0625rem solid #d4dbea;
  width: 100%;
  color: #101241;
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  padding: 10px;
}
.mod--new-form input:disabled {
  opacity: 0.5;
}

.mod--new-form .mod__item label {
  cursor: auto;
}

.mod__input--disabled input {
  pointer-events: none;
  opacity: 0.5;
}

.mod--new-form select {
  width: 100%;
  color: #101241;
  font-size: 14px;
  font-weight: 400;
  padding: 10px;
  background: white;
}

.container-select-option {
  position: relative;
  overflow: hidden;
  border: 0.0625rem solid #d4dbea;
  border-radius: 8px;
}

.container-select-option .fa.fa-angle-down {
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 1;
}

.container-select-option::before {
  content: "";
  position: absolute;
  top: 0px;
  right: 0px;
  width: 30px;
  height: 100%;
  background: white;
}

.mod--new-form.mod.mod--form .mod__item label span,
.mod--new-form.mod.mod--form .mod__item > .mod__input > p span {
  color: red;
}

.mod--new-form .field__wrapper {
  margin-top: 0;
}

.mod--new-form.mod.mod--form .field__wrapper label {
  margin-top: 0 !important;
}

html .popup__bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: transparent !important;
  z-index: 1;
}

html .popup {
  width: 100vw;
  height: 100vh;
  background: transparent !important;
  transition: none;
}

html .popup::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
  pointer-events: none;
}

html .popup__inner {
  position: relative;
  z-index: 2;
}

html body.popup-show {
  height: auto !important;
  overflow: hidden;
}

.personal-page__images-text {
  display: flex;
  gap: 60px;
}

.personal-page__images {
  width: 100%;
  max-width: 600px;
}

.personal-page__images img {
  object-fit: cover;
  min-height: 375px;
}

.personal-page__images .swiper-slide {
  height: 100%;
  max-height: 100%;
}

.swiper-button-prev{
  left: 25px;
}

.swiper-button-next {
  right: 25px;
}

.mod__item--file{
  display: none;
}

.edit-horses-page {
  font-size: 18px;
}

.personal-page__content {
  position: relative;
}

.edit-horses-page {
  position: relative;
  z-index: 5;
  color: #022027;
  border-radius: 12px;
  background: #ece9e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  margin: 10px 0;
  gap: 10px;
}

.personal-page__images .edit-horses-page {
  position: absolute;
  left: 15px;
}

h2 .edit-horses-page {
  width: 45px;
  top: -3px;
  margin: 0;
  left: 5px;
}

.personal-page__images {
  position: relative;
}

#edit-horses-page {
  max-width: 768px;
}

.mod__item--if-input {
  display: none;
}

.personal-page__back {
  position: absolute;
  top: -135px;
  left: 0;
}

.personal-page {
  position: relative;
}

body .page-header {
  margin: 35px 0 0 0;
}

.custom-modal-event{
  display: none;
  z-index: -1;
  pointer-events: none;
}

.custom-modal-event.is-open {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: auto;
  width: 100%;
}

.custom-modal-event.is-open .mod.mod--custom-event {
  display: block;
}

.container-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod__item-text.mod__item-text--mod-danger {
  color: #ff8300;
}

html.modal-open {
  overflow: hidden;
}

.custom-modal-event.is-open .mod.mod--custom-event {
  max-height: 600px;
  overflow: hidden;
  overflow-y: auto;
}

.lk-logout-confirm .lk-logout-confirm__dialog {
  width: calc(100% - 32px);
  max-width: 470px;
  text-align: center;
}

.lk-logout-confirm .mod__title {
  margin-bottom: 14px;
  color: #022027;
}

.lk-logout-confirm__text {
  color: #022027;
  font-size: 16px;
  line-height: 1.5;
}

.lk-logout-confirm__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.lk-logout-confirm__actions .button {
  min-width: 130px;
  margin: 0;
  border: 1px solid #616a3f;
  cursor: pointer;
}

.lk-logout-confirm__stay {
  background: #ffffff;
  color: #616a3f;
}

.lk-logout-confirm__stay:hover {
  background: #f4f5ef;
  color: #616a3f;
  opacity: 1;
}

.lk-logout-confirm__exit:hover {
  opacity: 1;
}

.lk-logout-confirm__close {
  cursor: pointer;
}

@media screen and (max-width: 480px) {
  .lk-logout-confirm__actions {
    flex-direction: column;
  }

  .lk-logout-confirm__actions .button {
    width: 100%;
  }
}

.old-gallery__title {
  text-align: left;
}

.old-gallery__items {
  display: flex;
  gap: 24px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.old-gallery__item {
  width: 100px;
}

.old-gallery__remove {
  display: flex !important;
  gap: 10px;
  margin-top: 14px !important;
}

.old-gallery__item img {
  width: 100%;
  object-fit: cover;
}

.mod__form-container {
  width: 100%;
}

.old-gallery__item {
  width: 110px;
  padding: 4px;
  border: 1px solid #616a3f;
  border-radius: 12px;
  height: 110px;
}

#checkbox-old-gallery {
  position: absolute;
  opacity: 0;
  top: 0;
  width: 0;
  height: 0;
  display: block;
  padding: 0;
}

.old-gallery__remove {
  cursor: pointer !important;
  font-size: 14px;
  display: flex !important;
  align-items: center;
  position: relative;
}

.old-gallery__remove-block input:checked + .old-gallery__remove .old-gallery__remove-checkbox {
  background: #616a3f;
}

.old-gallery__remove-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid #616a3f;
}

.old-gallery__remove-block {
  position: relative;
}

.requests-info__block h2 {
  margin: 0;
}

.requests-info__block .block__title {
  padding: 0;
}

.requests-info__block .table-3 {
  margin: 0;
}

.requests-open-modal {
  margin-bottom: 20px;
}

.custom-modal-event .common-input-checkbox span {
  color: black !important;
}

.custom-modal-event .input input[type="checkbox"] + label::before,
.custom-modal-event .input input[type="radio"] + label::before {
  height: 20px;
  width: 20px;
}

.custom-modal-event .input input[type="checkbox"] + label::after {
  width: 4px;
  height: 12px;
}

.custom-modal-event .input input[type="checkbox"] + label,
.custom-modal-event .input input[type="radio"] + label {
  padding-left: 30px;
}

.sf-header {
  position: relative;
  z-index: 40;
  background: #ffffff;
}

.sf-header__top {
  background: #ffffff;
}

.sf-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 88px;
  margin-top: 34px !important;
}

.sf-header__brand {
  position: absolute;
  top: 4px;
}

.sf-header__logo {
  display: inline-flex;
  align-items: center;
}

.sf-header__logo-image {
  display: block;
  width: min(29vw, 520px);
  min-width: 280px;
  height: 56px;
}

.sf-header__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1 1 auto;
  max-width: 780px;
}

.sf-header__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sf-header__social-link {
  width: 36px;
  height: 36px;
  background: #616A3F;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  flex: 0 0 36px;
}

.sf-header__social-link:hover {
  opacity: 1;
  background: var(--c-green-dark);
}

.sf-header__contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #022027;
  min-width: 250px;
}

.sf-header__address {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.sf-header__phone {
  color: #022027;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.sf-header__actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sf-header__button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0;
  font-size: 16px;
  transition: all 0.3s;
  width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
}

.sf-header__button:hover {
  opacity: 1;
  background: var(--c-green-dark);
}

.sf-header__button--callback {
  background: #616A3F;
  color: #ffffff;
}

.sf-header__button--account {
  background: #022027;
  color: #ffffff;
}

.sf-header__button--account:hover {
  color: #ffffff;
  background: var(--c-green-dark);
}

.sf-header__nav-wrap {
  position: relative;
}

.sf-header-menu {
  position: relative;
  width: 100%;
}

.sf-header__nav-wrap::before {
  content: "";
  position: absolute;
  left: -50%;
  top: 0;
  width: calc(100% + 100%);
  height: 100%;
  background: #ECE9E4;
}

.sf-header-menu__list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  min-height: 60px;
  margin: 0;
  padding: 0;
}

.sf-header-menu__list,
.sf-header-menu__item,
.sf-header-menu__item::marker {
  list-style: none;
}

.sf-header-menu__link {
  display: inline-flex;
  align-items: center;
  color: #022027;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sf-header-menu__link:hover,
.sf-header-menu__link.is-active {
  color: var(--c-green-dark);
  opacity: 1;
}

.sf-header__social-link path {
  fill: white;
}

/* Пока открыто мобильное меню, страница не скроллится.
   Основную фиксацию делает JS (body: position fixed со сдвигом — иначе iOS не держит),
   здесь убираем полосу прокрутки документа. */
html.sf-menu-open {
  overflow: hidden;
}

/* Иконка ЛК + гамбургер: показываются вместе, только в мобильной шапке.
   Обёртка нужна, чтобы между ними не вставал gap: 32px от .sf-header__top-inner. */
.sf-header__mobile-actions {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.sf-header__mobile-actions .sf-header__burger {
  margin-left: 0;
}

.sf-header__account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #022027;
  transition: opacity 0.3s ease;
}

.sf-header__account-icon:hover {
  opacity: 0.6;
}

.sf-header__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sf-header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #022027;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sf-header.is-menu-open .sf-header__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.sf-header.is-menu-open .sf-header__burger span:nth-child(2) {
  opacity: 0;
}

.sf-header.is-menu-open .sf-header__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

@media screen and (max-width: 1440px) {
  .sf-header__meta {
    gap: 24px;
  }

  .sf-header__button {
    padding-left: 22px;
    padding-right: 22px;
  }

  .sf-header-menu__list {
    gap: 30px;
  }
}

@media screen and (max-width: 1180px) {
  .sf-header__top-inner {
    min-height: 94px;
  }

  .sf-header__logo-image {
    width: min(42vw, 420px);
    min-width: 220px;
    height: 48px;
  }

  .sf-header__contacts {
    min-width: 0;
  }

  .sf-header__address,
  .sf-header__phone {
    font-size: 14px;
  }

  .sf-header__button {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 14px;
  }

  .sf-header-menu__list {
    gap: 20px;
  }

  .sf-header-menu__link {
    font-size: 13px;
  }
}

@media screen and (max-width: 1100px) {
  .sf-header__top-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px !important;
  }
  .footer.sf {
    padding-bottom: 40px;
  }
  .sf-header.is-menu-open .sf-header__nav-wrap::before {
    background: white;
  }
  .sf-header__meta {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
  }

  .sf-header__nav-wrap {
    display: none;
    border-top: 1px solid rgba(2, 32, 39, 0.08);
  }

  .sf-header.is-menu-open .sf-header__nav-wrap {
    display: block;
  }

  .sf-header__burger {
    display: inline-flex;
  }

  .sf-header__mobile-actions {
    display: flex;
  }

  .sf-header-menu__list {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0 18px;
  }

  .sf-header-menu__item {
    width: 100%;
  }

  .sf-header-menu__link {
    min-height: 0;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(2, 32, 39, 0.08);
  }
}

@media screen and (max-width: 767px) {
  .sf-header__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .sf-header__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .sf-header__button {
    flex: 1 1 220px;
  }

  .sf-header__burger {
    margin-left: auto;
    flex: 0 0 26px;
  }

  .sf-header__socials {
    order: 3;
  }
}

.sf-header__top-inner {
  flex-wrap: wrap;
}

.sf-header__panel {
  flex: 1 1 0;
  min-width: 0;
}

.sf-header__meta {
  flex: none;
  margin: 24px 0 0 auto;
}

.sf-header__nav-wrap {
  margin-top: 24px;
}

.lk-floating-notifications {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 10020;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.lk-floating-notifications__link {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(2, 32, 39, .2);
  border: 1px solid rgba(255, 255, 255, .8);
  pointer-events: auto;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.lk-floating-notifications__link:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(2, 32, 39, .28);
}

.lk-floating-notifications__link--notify,
.lk-floating-notifications__link--requests{
  background: #616a3f;
}

.lk-floating-notifications__link--notify:hover,
.lk-floating-notifications__link--requests:hover{
  background: #4d562b;
}

.lk-floating-notifications__icon {
  font-size: 24px;
  line-height: 1;
}

.lk-floating-notifications__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #b33a2f;
  color: #fff;
  border: 2px solid #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

html body .mod.mod--custom-event.mod--form.mod--new-form.lk-logout-confirm__dialog {
  max-width: 625px;
}

.personal-page__images .not-images {
  max-height: 400px;
  width: 100%;
  object-fit: contain !important;
  background: #f1f1f1;
}

.corporate-events__privacy-notice span {
  color: black !important;
}

@media screen and (min-width: 993px) {
  .sf-header__top-inner {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
  }

  .sf-header__burger {
    display: none;
    margin-left: 0;
    flex: none;
  }

  .sf-header__mobile-actions {
    display: none;
  }

  .sf-header__panel {
    display: block !important;
    width: auto;
    flex: 1 1 0;
  }

  .sf-header__meta {
    width: auto;
    max-width: 780px;
    margin: 0 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .sf-header__actions {
    width: auto;
    flex-wrap: nowrap;
  }

  .sf-header__button {
    width: 180px;
    flex: none;
  }

  .sf-header__nav-wrap {
    display: block !important;
    margin-top: 22px;
    border-top: 0;
  }

  .sf-header-menu__list {
    min-height: 60px;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 0;
  }

  .sf-header-menu__link {
    width: auto;
    padding: 0;
    border-bottom: 0;
  }
}

@media screen and (max-width: 1300px) {

  .sf-header__logo img {
    max-width: 250px;
  }

  .sf-header__meta {
    padding-left: 260px;
    max-width: 100% !important;
  }

  .sf-header-menu__link {
    font-size: 12px;
  }

  .sf-header-menu__list {
    gap: 20px;
  }

}

@media screen and (max-width: 992px) {
  .sf-header__top-inner {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 16px;
  }

  .sf-header__logo-image {
    width: min(58vw, 320px);
    min-width: 180px;
    height: 42px;
  }

  .sf-header__burger {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 26px;
  }

  .sf-header__mobile-actions {
    display: flex;
    justify-content: flex-end;
  }

  .sf-header__panel {
    display: none;
    width: 100%;
    flex: 0 0 100%;
  }

  /* Открытое меню ведёт себя как модальное окно: страница зафиксирована
     (html.sf-menu-open), скроллится только сама панель. max-height ставит JS
     по остатку экрана под строкой с логотипом. */
  .sf-header.is-menu-open .sf-header__panel {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    overflow-y: auto;
    /* без этого overflow-y: auto делает overflow-x вычисляемым в auto,
       и внизу меню появлялась горизонтальная полоса прокрутки */
    overflow-x: hidden;
    /* пальцем меню двигается только по вертикали */
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    /* полосы прокрутки не показываем — они торчали серыми рамками по краям меню */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sf-header.is-menu-open .sf-header__panel::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  /* При открытом меню вся шапка белая: на мобильной ширине
     .sf-header__top-inner залит #ece9e4, а у фиксированной шапки
     .sf-header__top ещё и прозрачный */
  .sf-header.is-menu-open,
  .sf-header.is-menu-open .sf-header__top,
  .sf-header.is-menu-open .sf-header__top-inner,
  .sf-header.is-menu-open .sf-header__panel {
    background: #ffffff;
  }

  .sf-header__meta {
    width: 100%;
    max-width: none;
    margin: 24px 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .sf-header__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .sf-header__button {
    flex: 1 1 220px;
  }

  .sf-header__nav-wrap {
    display: block;
    margin-top: 0;
  }

  .sf-header-menu__list {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
  }

  .sf-header-menu__item {
    width: 100%;
  }

  .sf-header-menu__link {
    min-height: 0;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(2, 32, 39, 0.08);
  }

  .sf-header__brand {
    position: relative;
    top: 6px;
  }

  .sf-header__top-inner {
    min-height: auto;
  }

  .sf-header__top-inner {
    margin-top: 0 !important;
    background: #ece9e4;
  }

  .sf-header__meta {
    padding-left: 0;
  }

  .sf-header-menu__link {
    font-size: 14px;
  }

  .sf-header__nav-wrap {
    order: -1;
    width: 100%;
  }
}

@media screen and (max-width: 992px) {
  .personal-page__content table.table-3 {
    margin-top: 18px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .personal-page__content table.table-3 tbody {
    display: block;
  }

  .personal-page__content table.table-3 tr {
    display: block;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #e3e8ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(2, 32, 39, 0.06);
  }

  .personal-page__content table.table-3 td {
    display: grid;
    grid-template-columns: minmax(118px, 42%) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: none;
    min-height: 46px;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #edf0f1;
    color: #022027;
    font-size: 15px;
    line-height: 1.35;
    text-align: left;
    word-break: break-word;
  }

  .personal-page__content table.table-3 td::before {
    content: attr(data-label);
    float: none;
    color: #7a8588;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
  }

  .personal-page__content table.table-3 td:last-child {
    border-bottom: 0;
  }

  .personal-page__content table.table-3 td[colspan] {
    display: block;
    background: #f4f5ef;
    color: #616a3f;
    font-weight: 600;
  }

  .personal-page__content table.table-3 td[colspan]::before {
    display: none;
  }

  .personal-page__content table.table-3 td a {
    overflow-wrap: anywhere;
  }

  .personal-page__content table.table-3 td .fa {
    margin-right: 5px;
  }

  .personal-page__content table.table-3 td a[data-popup],
  .personal-page__content table.table-3 td a.edit-table-section {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f4f5ef;
    color: #616a3f;
  }

  .personal-page__content table.table-3 td a[data-popup] .fa,
  .personal-page__content table.table-3 td a.edit-table-section .fa {
    margin-right: 0;
  }
}

@media screen and (max-width: 767px) {
  .sf-header__button {
    width: 100%;
  }
  .cookie-notification-modal {
    max-width: 100% !important;
    padding: 24px 40px 14px !important;
  }
  .sf-header__logo img {
    max-width: 175px;
  }
  .cookie-modal__close {
    top: 12px !important;
    right: 12px !important;
  }

  .personal-page__menu .cabinet-menu, .personal-page__menu .vertical-multilevel-menu {
    max-height: none !important;
    opacity: 1 !important;
  }

  .personal-page__menu {
    padding-left: 0 !important;
    order: -1 ;
    margin-bottom: 46px !important;
  }

  .vertical-multilevel-menu li a {
    padding-left: 20px !important;
  }

  .lk-floating-notifications {
    right: 15px;
    bottom: 61px;
    gap: 10px;
  }

  .lk-floating-notifications__link {
    width: 52px;
    height: 52px;
  }

  .lk-floating-notifications__icon {
    font-size: 22px;
  }

  .personal-page__images-text {
    gap: 30px;
    flex-wrap: wrap;
  }

  .personal-page__images img {
    min-height: 275px;
  }

  .personal-page__images img {
    max-height: 300px !important;
  }

  .personal-page__content .elements-tabs__list {
    display: flex;
    gap: 22px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .personal-page__content .elements-tabs__list .element-tab__item {
    flex: 0 0 auto;
  }

  .personal-page__content .elements-tabs__link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding-bottom: 8px;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.25;
  }

  table.table-3 td::before {
    text-transform: none;
    font-size: 14px;
    font-weight: 500;
  }

  .block__title, .block__title h1 {
    padding: 0 !important;
  }

  .elements-tabs {
    padding-top: 15px !important;
    padding-bottom: 0 !important;
  }

  .block__title h2, .block__title h3 {
    margin-bottom: 0 !important;
  }

  .block__title .button.button--dark.button--small, .block__title .button.button--white.button--small {
    margin-top: 10px !important;
    margin-left: 0 !important;
  }

  .ranch-homepage__container {
    padding: 0 !important;
  }

}

@media screen and (max-width: 420px) {
  .personal-page__content table.table-3 td {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .personal-page__content table.table-3 td a[data-popup],
  .personal-page__content table.table-3 td a.edit-table-section {
    justify-self: start;
  }
}

/* ==========================================================================
   Формы ЛК: подсветка ошибок, блок «Что будет дальше?», ответ формы
   Логика — в js/custom.js (блок «Валидация форм»).
   ========================================================================== */

/* --- Ошибка у отдельного поля --- */

.mod__form .form-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 7px;
  color: #c0392b;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.mod__form .form-error::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5'/%3E%3Cpath d='M12 16.2v.6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.mod__form input.form-field-invalid,
.mod__form select.form-field-invalid,
.mod__form textarea.form-field-invalid {
  border-color: #c0392b !important;
  background-color: #fdf5f4 !important;
}

.mod__form .has-field-error .container-select-option,
.mod__form .has-field-error .field__file-wrapper .field__file-fake {
  border-color: #c0392b !important;
}

.mod__form .has-field-error .container-select-option::before {
  background: #fdf5f4;
}

/* Согласие на обработку ПД: чекбокс скрыт визуально,
   поэтому рамку подсвечиваем у псевдоэлемента label */
.mod__form .mod__item.politics.has-field-error label::before {
  border-color: #c0392b;
}

.mod__form .mod__item.politics .form-error {
  width: 100%;
  margin-top: 10px;
}

/* --- Информационный блок «Что будет дальше?» --- */

.mod__form .mod__item-text.form-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f1efec;
  color: #5c6466;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.mod__form .form-note__icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f7a' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 7.6v.6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.mod__form .form-note__body {
  display: block;
}

.mod__form .form-note__title {
  display: block;
  margin-bottom: 3px;
  color: #022027;
  font-weight: 500;
}

.mod__form .form-note__text {
  display: block;
}

/* --- Общий ответ формы --- */

.mod--new-form .form-result:not(:empty) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fdf0ee;
  color: #c0392b;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.mod--new-form .form-result:not(:empty)::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5'/%3E%3Cpath d='M12 16.2v.6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.mod--new-form .form-result-success:not(:empty) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 5px;
  padding: 16px;
  border-radius: 12px;
  background: #f1efec;
  color: #3f4a2f;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.mod--new-form .form-result-success:not(:empty)::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23616a3f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.2 12.3l2.6 2.6 5-5.2'/%3E%3C/svg%3E") no-repeat center / contain;
}











