/* Шапка: кнопка профиля / входа (нужна на всех страницах) */

#sp-header .header-modules .sp-sign-in {
  display: none !important;
}

#sp-header .ln-header-account-module {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 24px 0 8px !important;
  padding: 0 !important;
  line-height: 1;
  position: relative;
  z-index: 3;
  vertical-align: middle;
}

#sp-header .ln-header-account-pill {
  --ln-acc-bg: rgba(255, 255, 255, 0.78);
  --ln-acc-fg: #1a1a1a;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: var(--ln-acc-bg);
  color: var(--ln-acc-fg);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset, 0 1px 3px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease,
    transform 0.15s ease, border-color 0.22s ease;
  vertical-align: middle;
}

#sp-header .ln-header-account-pill .ln-acc-ico {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #222;
}

#sp-header .ln-header-account-pill .ln-acc-label {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.74rem;
  letter-spacing: 0.015em;
  transition: max-width 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.22s ease,
    padding 0.28s ease;
}

#sp-header .ln-header-account-pill:not(.is-logged) .ln-acc-label {
  max-width: 68px;
  opacity: 1;
  padding: 0 13px 0 1px;
}

@media (hover: hover) and (min-width: 992px) {
  #sp-header .ln-header-account-pill:hover,
  #sp-header .ln-header-account-pill:focus-visible {
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 4px 12px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
  }

  #sp-header .ln-header-account-pill.is-logged:hover .ln-acc-label,
  #sp-header .ln-header-account-pill.is-logged:focus-visible .ln-acc-label {
    max-width: 112px;
    opacity: 1;
    padding: 0 13px 0 1px;
  }
}

@media (min-width: 992px) {
  #sp-header .ln-header-account-pill.is-logged .ln-acc-label {
    max-width: 112px;
    opacity: 1;
    padding: 0 13px 0 1px;
  }
}

@media (max-width: 991.98px) {
  #sp-header .ln-header-account-module {
    margin: 0 18px 0 4px !important;
  }

  #sp-header .ln-header-account-pill {
    min-height: 30px;
  }

  #sp-header .ln-header-account-pill .ln-acc-ico {
    width: 26px;
    height: 26px;
    margin: 2px;
  }

  #sp-header .ln-header-account-pill .ln-acc-ico svg {
    width: 15px;
    height: 15px;
  }

  #sp-header .ln-header-account-pill:not(.is-logged) .ln-acc-label,
  #sp-header .ln-header-account-pill.is-logged .ln-acc-label {
    display: none;
  }
}

#sp-header .ln-header-account-pill:active {
  transform: translateY(0);
}

#sp-header .ln-header-account-pill.is-logged .ln-acc-ico {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
}

/* Модалка входа (открывается с любых страниц) */
html.ln-modal-open {
  overflow: hidden;
}

.ln-login-modal[hidden] {
  display: none !important;
}

.ln-login-modal {
  position: fixed;
  inset: 0;
  z-index: 10120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 12px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ln-login-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.ln-login-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  flex: 0 1 420px;
  max-height: none;
  margin: 12px auto 20px;
  overflow: visible;
  z-index: 2;
}

.ln-login-modal__card {
  margin: 0;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.ln-login-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.ln-login-modal__error {
  color: #b42318;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.ln-login-social {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.ln-login-social--inline {
  margin-top: 14px;
  padding-top: 14px;
}

.ln-login-social__title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.ln-login-social__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ln-login-social__btn {
  display: block;
  text-align: center;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: #fff;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.ln-login-social__btn:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.ln-login-social__btn--vk {
  background: #4a86d4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ln-login-social__btn--vk:hover {
  background: #3d74bc;
  box-shadow: 0 2px 8px rgba(74, 134, 212, 0.22);
}

.ln-login-social__btn--ya {
  background: #c24e34;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ln-login-social__btn--ya:hover {
  background: #ad452d;
  box-shadow: 0 2px 8px rgba(194, 78, 52, 0.18);
}

.ln-login-social__btn--oz {
  background: #005bff;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ln-login-social__btn--oz:hover {
  background: #0047cc;
  box-shadow: 0 2px 8px rgba(0, 91, 255, 0.22);
}

.ln-login-social__consent {
  font-size: 11.5px;
  color: #888;
  line-height: 1.5;
  margin-top: 8px;
}

.ln-login-social__consent a {
  color: #333;
  text-decoration: underline;
}

/* Карточка и форма входа нужны на главной и каталоге:
   полный licknose-account.css там не подключается. */
.ln-login-modal .ln-account__card,
.ln-login-modal__card {
  background: #fff;
  border: 2px solid #111;
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: 8px 8px 0 #111;
  color: #111;
}

.ln-login-modal .ln-account__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
}

.ln-login-modal .ln-account__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #111;
}

.ln-login-modal .ln-account__lead {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #444;
}

.ln-login-modal .ln-account__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ln-login-modal .ln-account__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ln-login-modal .ln-account__field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.ln-login-modal .ln-account__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #222;
}

.ln-login-modal .ln-account__check-label {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #333;
}

.ln-login-modal .ln-account__form .form-control,
.ln-login-modal .ln-account__form input[type="text"],
.ln-login-modal .ln-account__form input[type="email"],
.ln-login-modal .ln-account__form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8dbe3;
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: #111;
}

.ln-login-modal .ln-account__form .form-control:focus,
.ln-login-modal .ln-account__form input:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
  border-color: #111;
}

.ln-login-modal .ln-account__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid #111;
}

.ln-login-modal .ln-account__btn--primary {
  background: #111;
  color: #fff;
  width: 100%;
}

.ln-login-modal .ln-account__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e8e8e8;
  font-size: 0.86rem;
}

.ln-login-modal .ln-account__links a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
}

html.ln-android-app .ln-login-modal:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html.ln-android-app .ln-login-modal__dialog,
html.ln-android-app .ln-login-modal__card {
  display: block !important;
  visibility: visible !important;
  opa