/* Мобильная шапка и подвал (Figma 375px): отдельно от SVG hit-зон десктопа */

:root {
  --ls-mob-blue: #004170;
  --ls-mob-blue-next: #004a80;
  --ls-mob-orange: #ffa629;
  --ls-mob-white: #fff;
}

/* --- Показ / скрытие десктоп vs мобильный --- */

.ls-mob-header,
.ls-mob-footer {
  display: none;
}

@media (max-width: 767.98px) {
  .ls-site-header__desktop {
    display: none !important;
  }

  .ls-mob-header {
    display: block !important;
  }

  .ls-site-header {
    background: var(--ls-mob-blue);
  }

  .ls-site-footer {
    background: var(--ls-mob-blue);
  }
}

@media (min-width: 768px) {
  .ls-mob-header,
  .ls-mob-footer {
    display: none !important;
  }
}

/* --- Шапка --- */

.ls-mob-header {
  position: relative;
  z-index: 250;
  width: 100%;
  font-family: Inter, system-ui, sans-serif;
  background: var(--ls-mob-blue);
}

.ls-mob-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 13px 24px;
  box-sizing: border-box;
}

.ls-mob-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.ls-mob-header__logo {
  display: block;
  width: auto;
  height: 34px;
  max-width: min(98px, 52vw);
  flex-shrink: 1;
  object-fit: contain;
  object-position: left center;
}

.ls-mob-header__toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ls-mob-white);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.ls-mob-header__toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}

.ls-mob-header__toggle:focus-visible {
  outline: 2px solid var(--ls-mob-orange);
  outline-offset: 2px;
}

.ls-mob-header__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ls-mob-header__icon--close {
  display: none;
}

.ls-mob-header.is-open .ls-mob-header__icon--menu {
  display: none;
}

.ls-mob-header.is-open .ls-mob-header__icon--close {
  display: block;
}

.ls-mob-header__panel {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
  padding: 16px 24px 24px;
  background: var(--ls-mob-blue-next);
  box-sizing: border-box;
}

.ls-mob-header--auth .ls-mob-header__panel {
  padding-top: 24px;
}

.ls-mob-header.is-open .ls-mob-header__panel {
  display: flex;
}

.ls-mob-header__panel[hidden] {
  display: none !important;
}

/* Пользователь (авторизован) */

.ls-mob-header__user {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ls-mob-header__user-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ls-mob-white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ls-mob-header__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #ffa629, #ffd399);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ls-mob-header__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ls-mob-header__initials {
  font-size: 16px;
  font-weight: 600;
  color: var(--ls-mob-blue);
}

.ls-mob-header__user-name {
  flex: 1 1 0;
  min-width: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ls-mob-header__user-chevron {
  flex-shrink: 0;
  color: var(--ls-mob-white);
  transition: transform 0.2s ease;
}

.ls-mob-header__user-chevron.is-open {
  transform: rotate(180deg);
}

.ls-mob-header__profile-submenu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-left: 50px;
  padding-right: 0;
  box-sizing: border-box;
}

.ls-mob-header__profile-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ls-mob-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ls-mob-header__profile-link:hover,
.ls-mob-header__profile-link:focus-visible {
  color: var(--ls-mob-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ls-mob-header__profile-link--btn {
  width: auto;
}

.ls-mob-header__logout-form {
  margin: 0;
}

/* Навигация */

.ls-mob-header__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.ls-mob-header__nav .ls-site-nav__link {
  color: var(--ls-mob-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
}

.ls-mob-header__nav .ls-site-nav__link:hover,
.ls-mob-header__nav .ls-site-nav__link:focus-visible {
  color: var(--ls-mob-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Вход / регистрация */

.ls-mob-header__auth {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.ls-mob-header__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ls-mob-header__btn--primary {
  background: var(--ls-mob-orange);
  color: var(--ls-mob-white);
  border: 1px solid var(--ls-mob-orange);
}

.ls-mob-header__btn--primary:hover,
.ls-mob-header__btn--primary:focus-visible {
  filter: brightness(1.05);
  color: var(--ls-mob-white);
}

.ls-mob-header__btn--outline {
  background: transparent;
  color: var(--ls-mob-white);
  border: 1px solid var(--ls-mob-white);
}

.ls-mob-header__btn--outline:hover,
.ls-mob-header__btn--outline:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ls-mob-white);
}

body.ls-mob-nav-open {
  overflow: hidden;
}

[x-cloak] {
  display: none !important;
}

/* --- Подвал --- */

.ls-mob-footer {
  width: 100%;
  margin-top: auto;
  font-family: Inter, system-ui, sans-serif;
  background: var(--ls-mob-blue);
  color: var(--ls-mob-white);
}

.ls-mob-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 24px 40px;
  box-sizing: border-box;
}

.ls-mob-footer__nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

@media (min-width: 480px) {
  .ls-mob-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 20px;
  }
}

.ls-mob-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.ls-mob-footer__link {
  color: var(--ls-mob-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
}

.ls-mob-footer__link:hover,
.ls-mob-footer__link:focus-visible {
  color: var(--ls-mob-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ls-mob-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.ls-mob-footer__legal a,
.ls-mob-footer__legal-btn {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.ls-mob-footer__legal a:hover,
.ls-mob-footer__legal-btn:hover,
.ls-mob-footer__legal a:focus-visible,
.ls-mob-footer__legal-btn:focus-visible {
  color: var(--ls-mob-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

html[data-ls-cookie-consent] .ls-mob-footer__legal-btn[data-cookie-settings] {
  display: none;
}

.ls-mob-footer .ls-site-footer__copy {
  position: static;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.35;
}
