@import url('header-brand.css?v=5');

/* MERARY — shared UI: city, search, modals */

.header .container {
  display: grid;
  /* auto | auto | 1fr — зазор город↔Каталог одинаковый на всех страницах */
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 20px;
}

.header__left {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  max-width: none;
  width: max-content;
  justify-self: start;
  flex-shrink: 0;
  padding-right: 0;
  overflow: visible;
}

.header__left .logo:not(.merary-brand) {
  flex-shrink: 1;
  min-width: 0;
}

.header__left .logo.merary-brand {
  flex: 0 0 auto;
  min-width: 0;
}

.header__left .logo__mark {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

.footer .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.footer .logo__mark {
  height: 50px !important;
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0;
}

.footer .logo__text {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.footer .logo__name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.footer .logo__tagline {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #6a525c;
  text-transform: uppercase;
  margin-top: 4px;
  padding-right: 0.34em;
}

.footer .logo__img:not(.logo__mark) {
  height: 50px !important;
  width: auto !important;
  max-width: none !important;
}

.header__center {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(22px, 3vw, 40px);
  flex-wrap: nowrap;
  min-width: 0;
  padding-left: 20px;
  margin-left: 0;
  border-left: 1px solid rgba(229, 224, 218, 0.9);
  position: relative;
  z-index: 2;
  overflow: visible;
  justify-self: start;
}

.header__center .nav {
  display: flex !important;
}

.header__actions {
  grid-column: 3;
  justify-self: end;
}

/* Одна типографика шапки на главной и в каталоге (не Manrope из shop-skin) */
.header,
.header .nav__link,
.header .city-select,
.header .city-select__btn {
  font-family: var(--font-sans, 'Montserrat', system-ui, sans-serif);
}

.header .nav {
  gap: clamp(16px, 1.8vw, 26px);
}

.header .nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: rgba(47, 53, 40, 0.9);
  text-decoration: none;
  transition: color 0.18s ease;
}

.header .nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.88);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.header .nav__link:hover,
.header .nav__link:focus-visible {
  color: #c86b86;
}

.header .nav__link:hover::after,
.header .nav__link:focus-visible::after {
  opacity: 0.5;
  transform: scaleX(1);
}

/* Catalog nav dropdown */
.nav__item--catalog {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__item--catalog::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 14px;
}

.nav__link--catalog svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.nav__item--catalog:hover .nav__link--catalog svg,
.nav__item--catalog:focus-within .nav__link--catalog svg {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(234, 214, 210, 0.95);
  background: rgba(255, 252, 250, 0.98);
  box-shadow: 0 18px 40px rgba(70, 40, 45, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 240;
  display: grid;
  gap: 2px;
}

.nav__item--catalog:hover .nav__dropdown,
.nav__item--catalog:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #2a2424;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav__dropdown-link:hover {
  background: #fff1f4;
  color: #d95a74;
}

.logo__mark {
  display: block;
  height: 58px;
  width: auto;
  background: transparent !important;
  flex-shrink: 0;
}

.logo__img:not(.logo__mark) {
  height: 58px;
}

/* City: не сжимаем ниже ~8 символов; длиннее 10 — многоточие; не лезем на Каталог */
.city-select {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
}

.city-select__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(229, 224, 218, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  width: auto;
  max-width: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.city-select__label {
  flex-shrink: 0;
  color: #8a8a8a;
}

.city-select__btn:hover {
  border-color: #e8b4bc;
  box-shadow: 0 4px 16px rgba(229, 165, 176, 0.15);
}

.city-select__btn svg {
  width: 14px;
  height: 14px;
  color: var(--pink-accent);
  flex-shrink: 0;
}

.city-select__btn strong {
  display: inline-block;
  font-weight: 600;
  color: var(--olive);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 8ch;
  max-width: 10ch;
  vertical-align: bottom;
}

.city-select__chevron {
  width: 12px !important;
  height: 12px !important;
  color: var(--gray) !important;
}

.city-select__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  max-width: min(360px, calc(100vw - 32px));
  max-height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(61, 69, 54, 0.12);
  padding: 8px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.city-select__search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 6px;
  outline: none;
}

.city-select__search:focus {
  border-color: #e8b4bc;
  box-shadow: 0 0 0 3px rgba(229, 165, 176, 0.15);
}

.city-select__meta {
  padding: 0 4px 6px;
  font-size: 11px;
  color: var(--gray);
}

.city-select__list {
  overflow-y: auto;
  max-height: 300px;
  padding-right: 2px;
}

.city-select__hint {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--gray);
  text-align: center;
}

.city-select.is-open .city-select__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.city-select__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.city-select__option:hover,
.city-select__option.is-active {
  background: var(--pink-light);
  color: var(--olive);
}

/* Homepage search */
.home-search {
  padding: 8px 0 36px;
  background: transparent;
}

.home-search__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: min(680px, 100%);
  margin: 0 auto;
  padding: 7px 7px 7px 20px;
  background: #fff;
  border: 1px solid #f0e4e6;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(229, 165, 176, 0.14);
}

.home-search__icon {
  width: 20px;
  height: 20px;
  color: #d4a0aa;
  flex-shrink: 0;
}

.home-search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  outline: none;
  min-width: 0;
}

.home-search__input::placeholder {
  color: #b8a8aa;
}

.home-search__submit {
  flex-shrink: 0;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8a0ad, #d8899a);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-search__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(216, 137, 154, 0.35);
}

/* Modals overlay */
.site-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 16, 14, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.site-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-modal-overlay.is-visible .site-modal {
  transform: translateY(0) scale(1);
}

.site-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #888;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.site-modal__close:hover {
  background: #fff;
  color: #333;
}

/* Promo modal */
.promo-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.promo-modal__visual {
  position: relative;
  background: linear-gradient(160deg, #faf3f0, #f5e8e4);
  overflow: hidden;
}

.promo-modal__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent !important;
}

.promo-modal__badges {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.promo-modal__badge {
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  line-height: 1.4;
  color: #6a5a5c;
  text-align: center;
}

.promo-modal__badge strong {
  display: block;
  font-size: 10px;
  color: var(--olive);
  margin-bottom: 2px;
}

.promo-modal__content {
  padding: 40px 36px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(232, 160, 173, 0.12), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(232, 160, 173, 0.08), transparent 35%),
    #fff;
}

.promo-modal__logo.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: auto;
  margin-bottom: 20px;
}

.promo-modal__logo .logo__mark {
  height: 48px;
  width: auto;
  background: transparent !important;
}

.promo-modal__logo .logo__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.promo-modal__logo .logo__name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0.08em;
}

.promo-modal__logo .logo__tagline {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #6a525c;
  margin-top: 4px;
  padding-right: 0.34em;
}

.promo-modal__logo {
  height: auto;
  width: auto;
  margin-bottom: 20px;
  background: transparent !important;
}

.promo-modal__gift {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: #d8899a;
  margin-bottom: 4px;
}

.promo-modal__percent {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 600;
  color: #c97888;
  line-height: 1;
  margin-bottom: 4px;
}

.promo-modal__subtitle {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--olive);
  margin-bottom: 16px;
}

.promo-modal__heart {
  color: #e8a0ad;
  font-size: 18px;
  margin-bottom: 16px;
}

.promo-modal__hint {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 18px;
}

.promo-modal__code-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  padding: 14px 18px;
  border: 2px dashed #d8899a;
  border-radius: 10px;
  margin-bottom: 12px;
}

.promo-modal__code {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--olive);
  text-align: left;
}

.promo-modal__copy {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #faeef1;
  color: #c97888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.promo-modal__copy:hover { background: #f5dfe5; }

.promo-modal__copy svg {
  width: 18px;
  height: 18px;
}

.promo-modal__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 20px;
}

.promo-modal__timer strong {
  color: #c97888;
  font-variant-numeric: tabular-nums;
}

.promo-modal__cta {
  width: 100%;
  max-width: 280px;
  padding: 15px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8a0ad, #cf7f90);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin-bottom: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.promo-modal__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(207, 127, 144, 0.35);
}

.promo-modal__later {
  border: none;
  background: none;
  font-size: 12px;
  color: #c97888;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Callback modal */
.callback-modal {
  width: min(480px, 100%);
  padding: 44px 36px 36px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(232, 160, 173, 0.1), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(232, 160, 173, 0.08), transparent 40%),
    #fff;
}

.callback-modal__logo {
  height: 52px;
  width: auto;
  margin: 0 auto 24px;
  background: transparent !important;
}

.callback-modal__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 30px);
  color: var(--olive);
  line-height: 1.3;
  margin-bottom: 12px;
}

.callback-modal__title em {
  font-style: normal;
  color: #c97888;
}

.callback-modal__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 20px;
}

.callback-modal__text strong {
  color: #c97888;
  font-weight: 600;
}

.callback-modal__support {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 20px;
}

.callback-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.callback-modal__phone-row {
  display: flex;
  gap: 0;
  border: 1px solid #e8dce0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.callback-modal__phone {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  min-width: 0;
}

.callback-modal__phone-btn {
  width: 48px;
  border: none;
  background: #d8899a;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.callback-modal__phone-btn:hover { background: #c97888; }

.callback-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 10px;
  line-height: 1.5;
  color: var(--gray);
}

.callback-modal__consent input {
  margin-top: 2px;
  accent-color: #d8899a;
  flex-shrink: 0;
}

.callback-modal__consent a {
  color: #c97888;
  text-decoration: underline;
}

.callback-modal__submit {
  padding: 15px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8a0ad, #cf7f90);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.callback-modal__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(207, 127, 144, 0.35);
}

.callback-modal__later {
  margin-top: 4px;
  border: none;
  background: none;
  font-size: 12px;
  color: #c97888;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Раньше прячем «Ваш город:» — место под 8–10 букв имени, без давления на Каталог */
@media (max-width: 1360px) {
  .city-select__label {
    display: none;
  }

  .city-select__btn {
    gap: 6px;
    padding: 8px 12px;
  }

  .city-select__btn strong {
    min-width: 8ch;
    max-width: 10ch;
  }
}

@media (max-width: 768px) {
  .promo-modal {
    grid-template-columns: 1fr;
  }

  .promo-modal__visual {
    min-height: 200px;
  }

  .promo-modal__content {
    padding: 28px 22px 24px;
  }

  .home-search__bar {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 14px;
  }

  .home-search__submit {
    width: 100%;
  }
}

/* City path chip inside hero — not a floating orphan under header */
.seo-city-crumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(240, 79, 119, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 18px rgba(232, 165, 176, 0.12);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #7a6a6e;
  letter-spacing: 0.01em;
}

.seo-city-crumb__logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-right: 8px;
  flex-shrink: 0;
}

.seo-city-crumb a {
  color: #c45a78;
  text-decoration: none;
  font-weight: 600;
}

.seo-city-crumb a:hover {
  color: #f04f77;
}

.seo-city-crumb__sep {
  margin: 0 0.4em;
  opacity: 0.4;
  font-weight: 400;
}

.seo-city-h1 {
  margin: 0 0 14px;
  padding: 0;
  max-width: none;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.55vw, 18px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a5a6c;
}

.hero-merary__copy-col .seo-city-crumb,
.cx-hero-copy .seo-city-crumb {
  align-self: flex-start;
}

.cx-hero-copy .seo-city-h1 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.01em;
  text-transform: none;
  color: #2a2224;
}

body[data-page="catalog"] .seo-city-h1,
.catalog-layout .seo-city-h1 {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* Support dock styles moved to css/support-widget.css */

body.merary-auth-open {
  overflow: hidden;
}

.header-auth-modal .header-auth-modal__tg {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  min-height: 44px;
}

.merary-tg-login {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.merary-tg-login__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #fff;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34, 158, 217, 0.28);
  transition: filter 0.15s ease;
  text-decoration: none;
}

.merary-tg-login__btn:hover {
  filter: brightness(1.04);
}

.merary-tg-login__btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.merary-tg-login__hint,
.merary-tg-login__wait {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #8a7078;
  text-align: center;
}

.merary-tg-login__wait {
  color: #229ed9;
  font-weight: 600;
}

.merary-tg-login--widget {
  align-items: center;
}

.merary-tg-widget iframe {
  margin: 0 auto;
}

.merary-tg-login__fallback {
  margin-top: 8px;
  border: 0;
  background: none;
  color: #8a7078;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  font-family: Manrope, system-ui, sans-serif;
}

.merary-tg-login__fallback:hover {
  color: #229ed9;
}

.merary-tg-login__open {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #229ed9;
  text-align: center;
  text-decoration: underline;
}

/* Mobile navigation shell — <=850px (nav only; hero breakpoint unchanged) */
:root {
  --site-bottom-nav-offset: 3.625rem;
}

.header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(240, 79, 119, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 251, 0.92);
  color: #6b4d56;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(73, 32, 43, 0.06);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.header__menu-toggle:focus-visible {
  outline: 2px solid #f04f77;
  outline-offset: 2px;
}

.header__menu-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}

.header__menu-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.site-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
  visibility: hidden;
}

.site-mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.site-mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(40, 24, 28, 0.42);
  opacity: 0;
  transition: opacity 0.24s ease;
  cursor: pointer;
}

.site-mobile-nav.is-open .site-mobile-nav__backdrop {
  opacity: 1;
}

.site-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(18.75rem, 88vw);
  height: 100%;
  box-sizing: border-box;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 250, 251, 0.98);
  border-left: 1px solid rgba(240, 79, 119, 0.12);
  box-shadow: -8px 0 28px rgba(73, 32, 43, 0.08);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-mobile-nav.is-open .site-mobile-nav__panel {
  transform: translateX(0);
}

.site-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.site-mobile-nav__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #49202b;
}

.site-mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 249, 0.9);
  color: #6b4d56;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.site-mobile-nav__close:focus-visible {
  outline: 2px solid #f04f77;
  outline-offset: 2px;
}

.site-mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  border-radius: 12px;
  color: #49202b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-mobile-nav__link:hover,
.site-mobile-nav__link:focus-visible {
  background: rgba(255, 197, 211, 0.35);
  color: #f04f77;
  outline: none;
}

.site-bottom-nav {
  display: none;
}

@media (max-width: 53.125rem) {
  body:not(.premium-page):has(.site-bottom-nav) {
    padding-bottom: calc(var(--site-bottom-nav-offset) + env(safe-area-inset-bottom, 0px));
  }

  body:not(.premium-page):has(.site-bottom-nav) .merary-cookie {
    bottom: calc(var(--site-bottom-nav-offset) + env(safe-area-inset-bottom, 0px));
  }

  body:has(.site-bottom-nav) .merary-support-dock {
    bottom: calc(var(--site-bottom-nav-offset) + env(safe-area-inset-bottom, 0px));
  }

  .site-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9100;
    box-sizing: border-box;
    min-height: var(--site-bottom-nav-offset);
    padding: 0.25rem 0.375rem calc(0.25rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(240, 79, 119, 0.12);
    background: rgba(255, 250, 251, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -4px 18px rgba(73, 32, 43, 0.06);
  }

  .site-bottom-nav__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    padding: 0.25rem 0.125rem;
    color: #8a7078;
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
  }

  .site-bottom-nav__item.is-active {
    color: #f04f77;
  }

  .site-bottom-nav__icon svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  .site-bottom-nav__badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 1.25rem);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #f04f77;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
  }

  html.site-mobile-nav-open .site-bottom-nav {
    z-index: 8000;
  }
}

@media (min-width: 53.1875rem) {
  .site-mobile-nav,
  .site-bottom-nav {
    display: none !important;
  }

  .header__menu-toggle {
    display: none !important;
  }
}

body.site-mobile-nav-scroll-lock {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .site-mobile-nav__backdrop,
  .site-mobile-nav__panel {
    transition: none !important;
  }
}

