/* =========================================================================
   ASYL ART · Главная (мобильный лендинг-одностраничник)
   Hi-fi реализация дизайн-хэндоффа «Asyl Art — Лендинг».
   Mobile-first: колонка var(--col-w) по центру на фоне var(--page-bg).
   Цвета берутся из tokens.css; здесь — раскладка и компоненты страницы.
   Префикс классов: .l-*  (landing)
   ========================================================================= */

/* ---- Колонка / каркас --------------------------------------------------- */
body.l-body { background: var(--page-bg); }

.l-shell {
  position: relative;
  max-width: var(--col-w);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 88px;            /* место под sticky-кнопку */
  background: var(--porcelain);
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(28, 43, 69, .10);
}

::selection { background: var(--dusty); color: var(--ink); }

/* убираем скроллбары у горизонтальных лент */
.l-hsnap { scrollbar-width: none; }
.l-hsnap::-webkit-scrollbar { height: 0; display: none; }

/* ---- Слот под фото/видео (плейсхолдер; заменяется реальным медиа) ------- */
.l-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--haze), var(--silver));
  color: var(--ink-55);
  font: 500 9px/1.3 var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px;
  overflow: hidden;
}

/* ---- Кнопки лендинга ---------------------------------------------------- */
.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.4px solid transparent;
  border-radius: 11px;
  padding: 15px 0;
  font: 500 13px var(--font-ui);
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.l-btn:active { transform: translateY(1px); }
.l-btn--primary { background: var(--ink); color: var(--porcelain); border-color: var(--ink); }
.l-btn--primary:hover { background: #14213a; }
.l-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.l-btn--ghost:hover { background: var(--ink); color: var(--porcelain); }
.l-btn--block { width: 100%; }
.l-btn--lg { border-radius: 12px; padding: 16px 0; font-size: 14px; letter-spacing: .05em; }

/* третичная ссылка-кнопка */
.l-link {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: 500 12px var(--font-ui);
  color: var(--dusty);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* круглая стрелка слайдера */
.l-arrow {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--silver);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font: 300 18px var(--font-ui);
  color: var(--ink);
  padding-bottom: 2px;
  transition: background .15s ease, color .15s ease;
}
.l-arrow:hover { background: var(--ink); color: var(--porcelain); border-color: var(--ink); }

/* ---- Общие секционные элементы ----------------------------------------- */
.l-section { padding: 30px 22px; }
.l-h2 { margin: 0; font: 500 23px var(--font-display); color: var(--ink); }
.l-eyebrow {
  font: 500 9px var(--font-ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dusty);
}
.l-divider { height: 1px; background: var(--divider); margin: 0 22px; }

/* монограмма A|A (текстовая, по гайду) */
.l-mono {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

/* =========================================================================
   01 · Шапка (sticky)
   ========================================================================= */
.l-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  background: rgba(243, 239, 231, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(188, 196, 206, .5);
}
.l-burger {
  border: none; background: none; padding: 6px 4px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4.5px;
}
.l-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); }
.l-burger span:last-child { width: 14px; }

.l-brand { display: flex; align-items: center; gap: 8px; }
.l-brand__mono {
  width: 26px; height: 26px;
  border: 1.3px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 500 9px var(--font-display); color: var(--ink);
}
.l-brand__word {
  font: 500 17px var(--font-display);
  letter-spacing: .26em; padding-left: .26em;
  color: var(--ink);
}

.l-channels { display: flex; gap: 3px; color: var(--ink); }
.l-channels a {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: inherit;
}
.l-channels a svg { width: 18px; height: 18px; display: block; }

/* =========================================================================
   02 · Hero
   ========================================================================= */
.l-hero {
  position: relative;
  height: min(82vh, 620px);
  overflow: hidden;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.l-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(28, 43, 69, .34) 0%,
    rgba(28, 43, 69, 0) 26%,
    rgba(28, 43, 69, 0) 52%,
    rgba(243, 239, 231, .62) 80%,
    var(--porcelain) 100%);
}
.l-hero__center {
  position: absolute; top: 31%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  pointer-events: none;
}
.l-hero__mono {
  width: 54px; height: 54px;
  border: 1.4px solid rgba(243, 239, 231, .9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 500 15px var(--font-display); color: var(--porcelain);
  backdrop-filter: blur(3px);
}
.l-hero__word {
  font: 500 26px var(--font-display);
  letter-spacing: .3em; padding-left: .3em;
  white-space: nowrap; color: var(--porcelain);
  text-shadow: 0 2px 18px rgba(28, 43, 69, .5);
}
.l-hero__sub {
  font: 500 9.5px var(--font-ui);
  letter-spacing: .34em; text-transform: uppercase;
  color: rgba(243, 239, 231, .82);
}
.l-hero__badge {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px;
  background: rgba(243, 239, 231, .16);
  border: 1px solid rgba(243, 239, 231, .4);
  border-radius: 30px; padding: 5px 13px;
  backdrop-filter: blur(6px); pointer-events: none;
}
.l-hero__badge .l-play {
  width: 0; height: 0;
  border-left: 7px solid var(--porcelain);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}
.l-hero__badge span:last-child {
  font: 500 8.5px var(--font-ui);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--porcelain);
}
.l-hero__foot {
  position: relative; z-index: 2;
  padding: 0 22px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.l-hero__tagline {
  margin: 0; text-align: center;
  font: 300 16px/1.6 var(--font-ui);
  color: var(--ink); max-width: 300px;
}
.l-hero__actions { display: flex; gap: 10px; width: 100%; }
.l-hero__actions .l-btn { flex: 1; }

/* =========================================================================
   03 · Якорь доверия
   ========================================================================= */
.l-trust {
  padding: 30px 22px 26px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
.l-trust__item {
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  text-align: center;
}
.l-trust__icon {
  width: 46px; height: 46px;
  border: 1.2px solid var(--silver);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dusty);
}
.l-trust__icon svg { width: 24px; height: 24px; display: block; }
.l-trust__label { font: 400 11.5px/1.35 var(--font-ui); color: var(--ink); }

/* =========================================================================
   04 · Разделы (витрина)
   ========================================================================= */
.l-cats { padding: 30px 22px 8px; }
.l-cats__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 4px;
}
.l-cats__lead { margin: 0 0 18px; font: 300 12.5px/1.5 var(--font-ui); color: var(--muted-2); }
.l-cat-list { display: flex; flex-direction: column; gap: 13px; }
.l-cat {
  display: flex; align-items: center; gap: 15px;
  width: 100%; text-align: left;
  background: var(--ivory); border: 1px solid var(--ivory-line);
  border-radius: 14px; padding: 12px; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.l-cat:hover { border-color: var(--silver); }
.l-cat:active { transform: scale(.995); }
.l-cat__slot { width: 78px; height: 78px; flex-shrink: 0; border-radius: 10px; }
.l-cat__body { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.l-cat__name { font: 500 18px var(--font-display); color: var(--ink); }
.l-cat__price {
  font: 500 10px var(--font-ui);
  letter-spacing: .16em; text-transform: uppercase; color: var(--dusty);
}
.l-cat__arrow { font: 300 22px var(--font-ui); color: var(--silver); }

/* =========================================================================
   05 · Избранное (слайдер + фильтр по стилю)
   ========================================================================= */
.l-fav { padding: 30px 0 8px; }
.l-fav__head {
  padding: 0 22px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px; margin-bottom: 4px;
}
.l-fav__titles { display: flex; flex-direction: column; gap: 2px; }
.l-fav__note { font: 400 11px var(--font-ui); font-style: italic; color: var(--dusty); }
.l-fav__nav { display: flex; gap: 8px; flex-shrink: 0; }

/* чипсы-фильтр */
.l-chips { display: flex; gap: 8px; padding: 14px 22px 4px; overflow-x: auto; }
.l-chip {
  flex-shrink: 0;
  border-radius: 30px; padding: 8px 15px;
  font: 400 11.5px var(--font-ui);
  cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--ink);
  border: 1px solid var(--silver);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.l-chip__count { opacity: .6; margin-left: 6px; }
.l-chip.is-active {
  background: var(--ink); color: var(--porcelain);
  border-color: var(--ink); font-weight: 500;
}

/* лента карточек */
.l-fav-scroll {
  display: flex; gap: 14px;
  padding: 10px 22px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 22px;
  scroll-behavior: smooth;
  cursor: grab;
}
.l-fav-card {
  flex: 0 0 200px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 9px;
}
.l-fav-card__media { position: relative; height: 248px; }
.l-fav-card__slot { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; }
.l-fav-card__tag {
  position: absolute; top: 9px; left: 9px;
  background: rgba(243, 239, 231, .92);
  border-radius: 20px; padding: 3px 9px;
  font: 500 7.5px var(--font-ui);
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.l-fav-card__detail {
  position: absolute; bottom: 9px; right: 9px;
  width: 54px; height: 54px;
  border: 2px solid var(--porcelain);
  border-radius: 9px;
  box-shadow: var(--shadow-detail);
}
.l-fav-card__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 6px; padding-top: 1px;
}
.l-fav-card__name { font: 500 15px var(--font-display); color: var(--ink); }
.l-fav-card__price {
  font: 500 9px var(--font-ui);
  letter-spacing: .1em; text-transform: uppercase; color: var(--dusty);
  white-space: nowrap;
}
.l-fav-card__cta {
  border-radius: 9px; padding: 11px 0;
  font: 500 11px var(--font-ui); letter-spacing: .04em;
}
.l-trailer { flex: 0 0 8px; }

/* точки-индикатор */
.l-dots {
  display: flex; justify-content: center; align-items: center; gap: 7px;
  padding: 6px 22px 0;
}
.l-dot {
  border: none; cursor: pointer; padding: 0;
  height: 6px; width: 6px; border-radius: 3px;
  background: var(--silver);
  transition: width .2s ease, background .2s ease;
}
.l-dot.is-active { width: 20px; background: var(--dusty); }

/* =========================================================================
   06 · Доказательство ручной работы
   ========================================================================= */
.l-process__row { display: flex; gap: 16px; align-items: flex-start; }
.l-process__media { position: relative; flex-shrink: 0; width: 132px; height: 166px; }
.l-process__slot { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; }
.l-process__badge {
  position: absolute; top: 9px; left: 9px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(243, 239, 231, .92);
  border-radius: 20px; padding: 4px 9px;
}
.l-process__badge .l-play--ink {
  width: 0; height: 0;
  border-left: 6px solid var(--ink);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.l-process__badge span:last-child {
  font: 500 7.5px var(--font-ui);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.l-process__body { flex: 1; display: flex; flex-direction: column; gap: 11px; }
.l-process__body h2 { font: 500 22px/1.15 var(--font-display); }
.l-process__p { margin: 0; font: 300 13px/1.6 var(--font-ui); color: var(--muted); }
.l-process__more[hidden] { display: none; }

/* =========================================================================
   07 · Коллекции по мотивам (баннер)
   ========================================================================= */
.l-banner {
  margin: 8px 22px 0; position: relative;
  border-radius: 16px; overflow: hidden; background: var(--ink);
}
.l-banner__media { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; }
.l-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28, 43, 69, .94) 35%, rgba(28, 43, 69, .55) 100%);
}
.l-banner__inner {
  position: relative; padding: 22px 20px 24px;
  display: flex; flex-direction: column; gap: 11px;
}
.l-ornament-row { color: var(--dusty); letter-spacing: .42em; font-size: 11px; opacity: .8; }
.l-banner h2 { font: 500 26px var(--font-display); color: var(--porcelain); }
.l-banner__p {
  margin: 0; font: 300 13px/1.6 var(--font-ui);
  color: rgba(243, 239, 231, .82); max-width: 260px;
}
.l-banner .l-link { color: var(--haze); margin-top: 2px; }

/* =========================================================================
   08 · Отзывы / UGC (слайдер)
   ========================================================================= */
.l-rev { padding: 30px 0 8px; }
.l-rev__head {
  padding: 0 22px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px; margin-bottom: 4px;
}
.l-rev-scroll {
  display: flex; gap: 14px;
  padding: 14px 22px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 22px;
  scroll-behavior: smooth;
  cursor: grab;
}
.l-rev-card {
  flex: 0 0 224px; scroll-snap-align: start;
  background: var(--ivory); border: 1px solid var(--ivory-line);
  border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 11px;
}
.l-rev-card__slot { width: 100%; height: 150px; border-radius: 10px; }
.l-rev-card__who { display: flex; align-items: center; gap: 9px; }
.l-rev-card__avatar { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; }
.l-rev-card__meta { display: flex; flex-direction: column; gap: 2px; }
.l-rev-card__name { font: 500 13px var(--font-ui); color: var(--ink); }
.l-stars { font-size: 9px; letter-spacing: 2px; color: var(--dusty); }
.l-rev-card__text { margin: 0; font: 300 12px/1.55 var(--font-ui); color: var(--muted); }
.l-rev .l-dots { padding-top: 4px; }

/* =========================================================================
   09 · Как заказать
   ========================================================================= */
.l-order h2 { text-align: center; margin: 0 0 22px; }
.l-steps { display: flex; justify-content: space-between; gap: 8px; }
.l-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 9px; text-align: center;
}
.l-step__num {
  width: 42px; height: 42px;
  border: 1.3px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 500 17px var(--font-display); color: var(--ink);
}
.l-step__t { font: 500 13px var(--font-ui); color: var(--ink); }
.l-step__d { font: 300 10.5px/1.4 var(--font-ui); color: var(--muted-3); }
.l-info-strip {
  margin-top: 22px;
  background: var(--haze); border-radius: 12px;
  padding: 13px 16px; text-align: center;
  font: 400 10px/1.6 var(--font-ui);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}

/* =========================================================================
   10 · Финальный CTA
   ========================================================================= */
.l-final { padding: 8px 22px 36px; }
.l-final__card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--ivory); border: 1px solid var(--ivory-line);
  padding: 30px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.l-final__mono {
  width: 40px; height: 40px;
  border: 1.2px solid var(--silver); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 500 13px var(--font-display); color: var(--ink);
}
.l-final__card h2 { font: 500 25px/1.15 var(--font-display); }
.l-final__p { margin: 0; font: 300 13.5px/1.6 var(--font-ui); color: var(--muted); max-width: 280px; }
.l-final__card .l-btn { margin-top: 2px; }

/* =========================================================================
   11 · Подвал
   ========================================================================= */
.l-footer { background: var(--ink); color: var(--porcelain); padding: 0 0 26px; }
.l-footer__ornament {
  height: 34px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--dusty);
  letter-spacing: .5em; font-size: 13px;
  border-bottom: 1px solid var(--ink-elev);
}
.l-footer__brand {
  padding: 26px 22px 0;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.l-footer__mono {
  width: 34px; height: 34px;
  border: 1.3px solid var(--dusty); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 500 11px var(--font-display); color: var(--porcelain);
}
.l-footer__word { font: 500 16px var(--font-display); letter-spacing: .26em; padding-left: .26em; }
.l-footer__grid {
  padding: 24px 22px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px;
}
.l-footer__col { display: flex; flex-direction: column; gap: 11px; }
.l-footer__nav-link {
  display: block;
  background: none; border: none; padding: 0; text-align: left; cursor: pointer;
  font: 300 13px var(--font-ui); color: rgba(243, 239, 231, .85);
  text-decoration: none;
}
.l-footer__nav-link:hover { color: var(--porcelain); }
.l-footer__contacts { display: flex; gap: 8px; color: var(--porcelain); }
.l-footer__contacts a {
  width: 34px; height: 34px;
  border: 1px solid var(--ink-line); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; color: inherit;
}
.l-footer__contacts a svg { width: 17px; height: 17px; display: block; }
.l-footer__addr { font: 300 12px/1.6 var(--font-ui); color: rgba(243, 239, 231, .7); }
.l-footer__about { padding: 22px 22px 0; }
.l-footer__about p { margin: 9px 0 0; font: 300 12px/1.65 var(--font-ui); color: rgba(243, 239, 231, .72); }
.l-footer__pay {
  margin: 22px 22px 0; border-top: 1px solid var(--ink-elev); padding-top: 16px;
  text-align: center; font: 400 8.5px/1.7 var(--font-ui);
  letter-spacing: .14em; text-transform: uppercase; color: rgba(159, 183, 206, .85);
}

/* =========================================================================
   Sticky-кнопка «Заказать» (глобальная)
   ========================================================================= */
.l-sticky {
  position: fixed; bottom: 0; left: 50%;
  width: min(100%, var(--col-w)); z-index: 40;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(243, 239, 231, 0), rgba(243, 239, 231, .96) 26%, var(--porcelain));
  pointer-events: none;
  transform: translateX(-50%) translateY(140%);
  opacity: 0;
  transition: transform .32s var(--ease-out), opacity .28s;
}
.l-sticky.is-shown { transform: translateX(-50%) translateY(0); opacity: 1; }
.l-sticky .l-btn {
  pointer-events: auto; width: 100%;
  border-radius: 13px; padding: 16px 0;
  font-size: 14px; letter-spacing: .05em;
  box-shadow: var(--shadow-sticky);
}

/* =========================================================================
   Боковое меню (бургер)
   ========================================================================= */
.l-menu-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(28, 43, 69, .5);
  backdrop-filter: blur(3px);
  animation: l-fade .2s ease;
}
.l-menu-overlay[hidden] { display: none; }
.l-menu {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 80%; max-width: 330px;
  background: var(--porcelain);
  display: flex; flex-direction: column;
  padding: 20px 24px; overflow-y: auto;
  animation: l-slidein .28s var(--ease-out);
}
.l-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.l-menu__brand { display: flex; align-items: center; gap: 8px; }
.l-menu__brand .l-brand__mono { width: 26px; height: 26px; }
.l-menu__brand .l-brand__word { font-size: 15px; letter-spacing: .24em; padding-left: .24em; }
.l-menu__close {
  width: 34px; height: 34px;
  border: 1px solid var(--silver); border-radius: 50%;
  background: none; cursor: pointer; font: 300 16px var(--font-ui); color: var(--ink);
}
.l-menu__nav { display: flex; flex-direction: column; gap: 2px; }
.l-menu__nav-link {
  display: block;
  background: none; border: none; border-bottom: 1px solid var(--ivory-line);
  padding: 15px 0; text-align: left; cursor: pointer;
  font: 400 19px var(--font-display); color: var(--ink);
  text-decoration: none;
}
.l-menu__cta { margin-top: 22px; width: 100%; }
.l-menu__connect { margin-top: 24px; }
.l-menu__channels {
  display: flex; flex-direction: column; gap: 8px; margin-top: 12px; color: var(--ink);
}
.l-menu__channels a {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--silver); border-radius: 10px;
  padding: 11px 13px; color: inherit; text-decoration: none;
}
.l-menu__channels a svg { width: 16px; height: 16px; display: block; flex-shrink: 0; }
.l-menu__channels a span { font: 400 13px var(--font-ui); }
.l-menu__story { margin: 24px 0 0; font: 300 12px/1.65 var(--font-ui); color: var(--muted-2); }

/* =========================================================================
   Модалка «Заявка на изделие»
   ========================================================================= */
.l-modal-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(28, 43, 69, .55);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: l-fade .2s ease;
}
.l-modal-overlay[hidden] { display: none; }
.l-modal {
  width: min(100%, var(--col-w)); height: 100%;
  background: var(--porcelain);
  display: flex; flex-direction: column;
  animation: l-up .32s var(--ease-out);
}
.l-modal__head {
  flex-shrink: 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 22px 22px 14px; border-bottom: 1px solid var(--ivory-line);
}
.l-modal__title { margin: 0; font: 500 23px var(--font-display); color: var(--ink); }
.l-modal__sub { margin: 0; font: 300 12.5px/1.5 var(--font-ui); color: var(--muted-2); }
.l-modal__close {
  flex-shrink: 0; width: 36px; height: 36px;
  border: 1px solid var(--silver); border-radius: 50%;
  background: none; cursor: pointer; font: 300 17px var(--font-ui); color: var(--ink);
}

/* состояния модалки */
.l-modal__state[hidden] { display: none; }

/* форма */
.l-modal__body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.l-field-label {
  display: block;
  font: 500 9px var(--font-ui);
  letter-spacing: .2em; text-transform: uppercase; color: var(--dusty);
}
.l-tchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }
.l-tchip {
  border-radius: 30px; padding: 9px 15px;
  font: 400 12.5px var(--font-ui); cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--silver);
  transition: all .15s;
}
.l-tchip.is-active {
  background: var(--dusty); color: var(--ink);
  border-color: var(--dusty); font-weight: 500;
}
.l-field {
  width: 100%; margin: 12px 0 0;
  background: var(--field-bg); border: 1px solid var(--field-line);
  border-radius: 11px; padding: 14px;
  font: 300 14px/1.5 var(--font-ui); color: var(--ink);
  outline: none;
}
.l-field--area { min-height: 74px; resize: none; padding: 13px 14px; margin: 12px 0 22px; }
.l-field.is-invalid { border-color: var(--danger); }
.l-err { display: block; margin-top: 7px; font: 400 11px var(--font-ui); color: var(--danger); }
.l-err[hidden] { display: none; }

.l-agree {
  display: flex; align-items: flex-start; gap: 11px;
  width: 100%; text-align: left;
  background: none; border: none; padding: 0; margin-top: 20px; cursor: pointer;
}
.l-agree__box {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1.4px solid var(--silver);
  background: transparent; color: var(--ink); font-size: 13px;
  transition: background .15s ease, border-color .15s ease;
}
.l-agree.is-checked .l-agree__box { background: var(--dusty); border-color: var(--dusty); }
.l-agree.is-invalid .l-agree__box { border-color: var(--danger); }
.l-agree__text { font: 300 12px/1.45 var(--font-ui); color: var(--muted); }
.l-err--agree { padding-left: 31px; }

/* sticky-футер модалки */
.l-modal__foot {
  flex-shrink: 0;
  padding: 14px 22px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ivory-line);
  background: var(--porcelain);
}
.l-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; }
.l-or span:first-child, .l-or span:last-child { flex: 1; height: 1px; background: var(--divider); }
.l-or__label {
  font: 400 10px var(--font-ui);
  letter-spacing: .1em; text-transform: uppercase; color: var(--dusty);
}
.l-ch-row { display: flex; gap: 8px; color: var(--ink); }
.l-ch-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1.3px solid var(--ink); border-radius: 10px; padding: 11px 0;
  color: inherit; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.l-ch-btn:hover { background: var(--ink); color: var(--porcelain); }
.l-ch-btn svg { width: 16px; height: 16px; display: block; }
.l-ch-btn span { font: 500 11px var(--font-ui); }

/* состояния успех / ошибка */
.l-state-center {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px 30px 40px; gap: 18px;
}
.l-state-icon {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.l-state-icon--ok { background: var(--dusty); animation: l-ring .5s var(--ease-out); }
.l-state-icon--err { border: 1.6px solid var(--silver); }
.l-state-center h2 { margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.l-state-center .l-ok-title { font-size: 27px; }
.l-state-center .l-err-title { font-size: 25px; }
.l-state-center p { margin: 0; font: 300 14px/1.6 var(--font-ui); color: var(--muted); max-width: 290px; }
.l-state-cta {
  margin-top: 6px; width: 100%; max-width: 320px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.l-state-cta svg { width: 18px; height: 18px; display: block; }
.l-state-back {
  background: none; border: none; cursor: pointer;
  font: 400 12px var(--font-ui); color: var(--dusty);
  text-decoration: underline; text-underline-offset: 4px;
}
.l-state-channels { width: 100%; max-width: 320px; }

/* =========================================================================
   Keyframes
   ========================================================================= */
@keyframes l-fade   { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes l-up     { 0% { transform: translateY(100%); } 100% { transform: translateY(0); } }
@keyframes l-slidein{ 0% { transform: translateX(-100%); } 100% { transform: translateX(0); } }
@keyframes l-ring   { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* доступность: уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .l-menu-overlay, .l-menu, .l-modal-overlay, .l-modal, .l-state-icon--ok,
  .l-fav-scroll, .l-rev-scroll, .l-sticky { animation: none !important; scroll-behavior: auto !important; }
  .l-sticky { transition: none; }
}

/* когда открыт оверлей — фиксируем фон от прокрутки */
body.l-locked { overflow: hidden; }
