/* Smile Lab USA — мобильное меню (assets/sl-menu.js).
   Полноэкранная панель поверх шапки: категории с фото изделий, слайд-подэкраны
   с «‹ back» и витриной-героем, Learn, липкий низ с чипом доверия и двумя
   кнопками. Только ниже 990px — десктопное меню не трогаем. */

.slm,
.slm * { box-sizing: border-box; }

.slm {
  position: fixed;
  inset: 0;
  z-index: 99980;                /* под чатом, консультацией и скретч-картой */
  display: flex;
  flex-direction: column;
  background: var(--sl-cream, #faf7f2);
  font-family: Satoshi, 'Assistant', Helvetica, Arial, sans-serif;
  color: var(--sl-forest, #14322b);
  animation: slm-in var(--dur-base, 250ms) var(--ease-productive, ease) both;
}

.slm[hidden] { display: none; }

@keyframes slm-in { from { opacity: 0; } to { opacity: 1; } }

/* прокрутку страницы под меню запираем: открытие — действие человека, сдвиг
   по его тапу в CLS не идёт */
.slm-open,
.slm-open body { overflow: hidden; }

.slm__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 60px;
  padding: 0 8px 0 20px;
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(60px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--sl-hairline, #eee7db);
  background: var(--sl-cream, #faf7f2);
}

.slm__mark {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
  color: var(--sl-forest, #14322b);
}

.slm__mark b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

.slm__mark em {
  font-style: normal;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--sl-gold, #d8a548);
  color: var(--sl-forest, #14322b);
}

.slm__mark i {
  margin-left: 2px;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #a97c22;
}

.slm__x {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--sl-forest, #14322b);
  cursor: pointer;
}

.slm__x:hover { background: var(--sl-cream-warm, #f1ece4); }

/* экраны */
.slm__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.slm__screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 20px;
  background: var(--sl-cream, #faf7f2);
  transition: transform 300ms var(--ease-expressive, cubic-bezier(.25, .85, .35, 1));
}

.slm__screen[hidden] { display: none; }

.slm--sub .slm__screen--root { transform: translateX(-28%); }
.slm__screen--sub { transform: translateX(100%); box-shadow: -10px 0 30px rgba(20, 50, 43, .08); }
.slm__screen--sub.slm__screen--in { transform: none; }

.slm__list { list-style: none; margin: 0; padding: 0 12px; }

.slm__row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 8px 8px;
  border: 0;
  border-bottom: 1px solid var(--sl-hairline, #eee7db);
  background: none;
  color: var(--sl-forest, #14322b);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.slm__row:active { background: var(--sl-cream-warm, #f1ece4); }
.slm__row--plain { min-height: 54px; }

.slm__thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px var(--sl-hairline, #eee7db);
}

.slm__thumb--icon {
  display: grid;
  place-items: center;
  color: #a97c22;
}

.slm__name { flex: 1; min-width: 0; }
.slm__chev { flex: none; color: rgba(20, 50, 43, .55); }

.slm__price {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: rgba(28, 27, 25, .66);
}

.slm__status {
  display: block;
  margin: 14px 20px 0;
  font-size: 15px;
  color: rgba(28, 27, 25, .66);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.slm__back {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid var(--sl-hairline, #eee7db);
  background: none;
  color: var(--sl-forest, #14322b);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

/* витрина-герой подэкрана */
.slm__hero {
  position: relative;
  margin: 14px 20px 6px;
  border-radius: var(--radius-card, 12px);
  overflow: hidden;
  background: var(--sl-cream-warm, #f1ece4);
}

.slm__hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.slm__herocopy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
}

.slm__herotitle {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.slm__shopall {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 50px;
  background: var(--sl-forest, #14322b);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}

/* липкий низ */
.slm__foot {
  flex: none;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--sl-hairline, #eee7db);
  background: #fff;
}

.slm__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f6ead0;
  box-shadow: inset 0 0 0 1px #e6cf9c;
  color: #5d430f;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.slm__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sl-gold, #d8a548);
}

.slm__btns { display: flex; gap: 10px; }

.slm__book,
.slm__shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 50px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.slm__book {
  flex: 1 1 auto;
  padding: 8px 16px;
  border: 0;
  background: var(--cta-gold, #e8b54a);
  box-shadow: var(--cta-ring-shadow, inset 0 0 0 1px #a97c22);
  color: var(--cta-ink, #1c1b19);
}

.slm__shop {
  flex: 0 0 auto;
  padding: 8px 22px;
  background: var(--sl-forest, #14322b);
  color: #fff;
}

.slm__x:focus-visible,
.slm__row:focus-visible,
.slm__back:focus-visible,
.slm__book:focus-visible,
.slm__shop:focus-visible,
.slm__shopall:focus-visible,
.slm__mark:focus-visible,
.slm__status:focus-visible { outline: 2px solid var(--cta-ring, #a97c22); outline-offset: -2px; }

@media (max-width: 370px) {
  .slm__trust { font-size: 11.5px; padding: 6px 10px; }
  .slm__book { font-size: 14px; padding: 8px 12px; }
  .slm__shop { padding: 8px 16px; }
}

/* меню только для телефона и планшета */
@media (min-width: 990px) {
  .slm { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .slm { animation: none; }
  .slm__screen { transition: none; }
}
