/* PM Сервисы — оформление. Берёт цвета и шрифты темы (переменные --pm-*), иначе — свои. */
.pms, .pms-promo, .pms-dlg, .pms-sheet, .pms-favcard {
  --s-bg: var(--pm-bg, #F5F1E8); --s-surface: var(--pm-surface, #EAE3D4); --s-ink: var(--pm-ink, #121110);
  --s-muted: var(--pm-muted, #5C554A); --s-line: var(--pm-line, #DED6C5); --s-field: var(--pm-field, #121110);
  --s-gold: var(--pm-gold, #CDB487); --s-fmuted: var(--pm-fmuted, #B9B1A3); --s-tile: var(--pm-tile, #1E1B18);
  --s-display: var(--pm-display, 'Prata', Georgia, serif); --s-text: var(--pm-text, 'Onest', system-ui, sans-serif);
  --s-ease: cubic-bezier(.16, 1, .3, 1);
  font-family: var(--s-text); color: var(--s-ink);
}
.pms { margin: 32px 0; font-size: 17px; line-height: 1.55; }
.pms *, .pms-promo *, .pms-dlg *, .pms-sheet * { box-sizing: border-box; }
.pms h2, .pms h3, .pms-promo h2, .pms-dlg h2, .pms-sheet h2 { font-family: var(--s-display); font-weight: 400; letter-spacing: -0.02em; color: inherit; }
.pms-h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; margin: 72px 0 28px; }
.pms-h3 { font-size: 24px; line-height: 1.15; margin: 0 0 14px; }
.pms [hidden], .pms-promo [hidden], .pms-dlg [hidden], .pms-sheet [hidden] { display: none !important; }
.pms-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pms-small { font-size: 15px; color: var(--s-muted); margin: 10px 0 0; }
.pms-or { font-size: 16px; color: var(--s-muted); margin: 24px 0 12px; }
.pms-lead { font-size: 19px; }
.pms-empty { color: var(--s-muted); }
.pms-err { margin: 0; padding: 14px 18px; background: #F6E3DE; color: #6E1F12; }
.pms-tip { padding: 16px 20px; background: var(--s-surface); margin: 20px 0 0; }

/* Кнопки и элементы управления */
.pms-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; background: var(--s-field); color: var(--s-gold);
  font: 600 16px/1.2 var(--s-text); text-decoration: none !important; cursor: pointer; transition: transform .16s var(--s-ease), opacity .2s; margin-top: 20px; }
.pms-btn:active { transform: scale(.97); }
.pms-btn[disabled] { opacity: .65; cursor: progress; }
.pms-btn--gold { background: var(--s-gold); color: var(--s-ink); }
.pms-btn--wide { width: 100%; }
.pms-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pms-chips button, .pms-seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--s-surface); color: var(--s-ink);
  font: 500 15px var(--s-text); cursor: pointer; transition: background-color .2s, color .2s; }
.pms-chips button[aria-pressed="true"], .pms-chips button[aria-checked="true"], .pms-seg button[aria-pressed="true"], .pms-seg button[aria-selected="true"] { background: var(--s-field); color: var(--s-gold); }
.pms-seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--s-surface); border-radius: 999px; flex-wrap: wrap; }
.pms-seg button { background: transparent; }
.pms-seg--big { margin: 0 0 28px; }
.pms-check { display: flex; gap: 10px; align-items: center; font-size: 15px; margin-top: 12px; cursor: pointer; }
.pms-check input { width: 20px; height: 20px; accent-color: var(--s-ink); }
.pms-field, .pms-form3 label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.pms-field { max-width: 360px; }
.pms-field input, .pms-form3 input, .pms-chat textarea { min-height: 52px; padding: 0 16px; border: 0; box-shadow: inset 0 0 0 1px var(--s-line); background: #fff; font: 400 18px var(--s-text); color: var(--s-ink); border-radius: 0; }
.pms-field input:focus, .pms-form3 input:focus, .pms-chat textarea:focus { outline: 2px solid var(--s-ink); outline-offset: 0; }
.pms-form3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pms button:focus-visible, .pms a:focus-visible, .pms-promo a:focus-visible, .pms-dlg :focus-visible, .pms-sheet :focus-visible { outline: 2px solid var(--s-ink); outline-offset: 3px; }

/* Вопросы */
.pms-qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px; }
.pms-q { margin: 0; padding: 24px; border: 0; background: var(--s-surface); min-width: 0; }
.pms-q legend { float: left; width: 100%; padding: 0; margin: 0 0 16px; font-family: var(--s-display); font-size: 22px; line-height: 1.2; }
.pms-opts { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pms-opts--col { grid-template-columns: 1fr; }
.pms-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; box-shadow: inset 0 0 0 1px #CFC6B4; cursor: pointer; font-size: 16px; transition: background-color .2s, box-shadow .2s; }
.pms-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pms-opt:has(input:checked) { background: var(--s-bg); box-shadow: inset 0 0 0 2px var(--s-ink); }
.pms-opt:has(input:focus-visible) { outline: 2px solid var(--s-ink); outline-offset: 2px; }
.pms-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pms-kq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: kq; }
.pms-kq li { counter-increment: kq; }

/* Результат */
.pms-result { margin-top: 32px; padding: 32px; background: var(--s-field); color: #F5F1E8; }
.pms-result a { color: inherit; }
.pms-result .pms-small, .pms-result dt { color: var(--s-fmuted); }
.pms-result h3 { font-size: clamp(34px, 5vw, 56px); line-height: 1; margin: 0 0 8px; color: var(--s-gold); }
.pms-result__k { margin: 0 0 8px; font-size: 15px; color: var(--s-fmuted); }
.pms-result__lead { margin: 0 0 20px; font-size: 17px; }
.pms-result .pms-type__s { color: #F5F1E8; }
.pms-result .pms-sw span { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pms-result .pms-related li a { background: var(--s-tile); }
.pms-result .pms-err { margin: -8px; }
.pms-big { font-family: var(--s-display); font-size: 72px; line-height: 1; margin: 0 0 16px; color: var(--s-gold); }
.pms-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.pms-dl dd { margin: 0; font-weight: 500; }
.pms-in { animation: pms-in .45s var(--s-ease) both; }
@keyframes pms-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Справочные карточки типов */
.pms-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pms-types--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pms-type { padding: 28px; background: var(--s-surface); min-width: 0; }
.pms-type h3 { font-size: 30px; line-height: 1.1; margin: 0 0 6px; }
.pms-type h3 small { font-family: var(--s-text); font-size: 14px; letter-spacing: 0; color: var(--s-muted); }
.pms-type__s { margin: 0 0 16px; color: var(--s-muted); }
.pms-type dl { margin: 16px 0 0; }
.pms-type dt { font-size: 14px; font-weight: 600; margin-top: 12px; }
.pms-type dd { margin: 2px 0 0; }
.pms-sw { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0 0 16px; }
.pms-sw span { aspect-ratio: 1; }

/* Статьи журнала из сервисов */
.pms-related { margin-top: 24px; }
.pms-related__t { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.pms-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pms-related li a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 6px; background: var(--s-bg); font-size: 15px; line-height: 1.3; text-decoration: none; color: inherit; }
.pms-related li a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pms-related img { width: 56px; height: 56px; object-fit: cover; display: block; }

/* Фото */
.pms-photo__drop { position: relative; display: grid; place-items: center; min-height: 260px; background: var(--s-surface); box-shadow: inset 0 0 0 1px var(--s-line); cursor: pointer; overflow: hidden; }
.pms-photo__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pms-photo__ph { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 500; pointer-events: none; }
.pms-photo__ph small { color: var(--s-muted); font-weight: 400; }
.pms-photo__drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pms-photo__drop:focus-within { outline: 2px solid var(--s-ink); outline-offset: 2px; }
.pms-face__photo { max-width: 420px; }
.pms-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pms-ba figure { margin: 0; }
.pms-ba img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pms-ba figcaption { font-size: 14px; color: var(--s-fmuted); margin-top: 6px; }
.pms-hair__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.pms-hair .pms-chips { margin-bottom: 8px; }

/* Стилист */
.pms-stylist { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.pms-tabs-v { display: flex; flex-direction: column; gap: 6px; }
.pms-tabs-v button { text-align: left; padding: 16px 20px; border: 0; background: var(--s-surface); color: var(--s-ink); font: 400 16px var(--s-text); cursor: pointer; transition: background-color .2s, color .2s; }
.pms-tabs-v button b { display: block; font-weight: 600; font-size: 17px; }
.pms-tabs-v button span { opacity: .8; font-size: 15px; }
.pms-tabs-v button[aria-selected="true"] { background: var(--s-field); color: var(--s-gold); }
.pms-chat { background: var(--s-surface); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 520px; }
.pms-chat__log { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.pms-msg { max-width: 88%; }
.pms-msg--u { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pms-msg--u p { margin: 0; padding: 14px 18px; background: var(--s-field); color: #F5F1E8; }
.pms-msg__img { width: 200px; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pms-msg--j { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.pms-ava { width: 44px; height: 44px; border-radius: 50%; background: var(--s-field); color: var(--s-gold); display: grid; place-items: center; font-family: var(--s-display); font-size: 16px; }
.pms-msg__b { background: var(--s-bg); padding: 18px 22px; }
.pms-msg__b p { margin: 0 0 10px; }
.pms-msg__b ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 4px; }
.pms-msg__b li { padding: 10px 14px; background: var(--s-surface); font-size: 16px; }
.pms-msg__who { font-size: 14px; color: var(--s-muted); }
.pms-sign { font-style: italic; }
.pms-score b { font-family: var(--s-display); font-size: 22px; font-weight: 400; }
.pms-msg__more { font-size: 14px; font-weight: 600; margin-top: 14px !important; }
.pms-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pms-mini a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; padding: 6px; background: var(--s-surface); color: inherit; text-decoration: none; font-size: 14px; line-height: 1.3; }
.pms-mini img { width: 64px; height: 64px; object-fit: cover; display: block; }
.pms-typing span { animation: pms-blink 1.2s infinite; }
.pms-typing span:nth-child(2) { animation-delay: .2s; } .pms-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes pms-blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.pms-chat__form { display: flex; gap: 6px; align-items: stretch; }
.pms-chat textarea { flex: 1; min-height: 56px; padding: 15px 16px; resize: vertical; line-height: 1.4; }
.pms-chat__form .pms-btn { margin: 0; min-height: 56px; }
.pms-attach { position: relative; flex: none; width: 56px; display: grid; place-items: center; background: var(--s-bg); cursor: pointer; }
.pms-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pms-chat__att { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.pms-chat__att img { width: 72px; height: 90px; object-fit: cover; }
.pms-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pms-consent { align-items: flex-start; line-height: 1.4; }
.pms-consent input { flex: none; margin-top: 1px; }
.pms-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pms-ava svg { width: 24px; height: 24px; }

/* Капсула и цвета */
.pms-capf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.pms-capf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pms-capf legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.pms-capl { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.pms-capl li { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.pms-capl small { color: var(--s-fmuted); }
.pms-result .pms-h3 { color: var(--s-gold); }
.pms-looks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pms-looks li { padding: 12px 16px; background: var(--s-tile); }
.pms-colgrid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.pms-colgrid button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border: 0; background: var(--s-surface); font: 500 14px var(--s-text); color: var(--s-ink); cursor: pointer; }
.pms-colgrid button span { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.pms-colgrid button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--s-ink); background: var(--s-bg); }
.pms-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pms-pair__sw { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 120px; }
.pms-pair p { margin: 10px 0 0; }
.pms-result .pms-tip { background: var(--s-tile); }

/* Галстук */
.pms-knots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pms-knot { padding: 28px; background: var(--s-surface); transition: background-color .3s, color .3s; }
.pms-knot h2 { font-size: 32px; margin: 0 0 6px; }
.pms-knot ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.pms-knot--on { background: var(--s-field); color: #F5F1E8; }
.pms-knot--on .pms-type__s { color: var(--s-fmuted); }

/* Таблицы */
.pms-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pms-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 520px; }
.pms-table th { text-align: left; font-weight: 600; padding: 12px 14px; background: var(--s-surface); }
.pms-table td { padding: 11px 14px; border-bottom: 1px solid var(--s-line); }

/* Раздел «Сервисы» */
.pms-feat { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; padding: 56px; background: var(--s-field); color: #F5F1E8; }
.pms-feat h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 0; }
.pms-feat p { font-size: 18px; }
.pms-feat__act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pms-feat__act span { color: var(--s-fmuted); font-size: 15px; margin-top: 20px; }
.pms-feat__sw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pms-feat__sw span { aspect-ratio: 1; }
.pms-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pms-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 32px; align-items: center; padding: 26px 24px; box-shadow: inset 0 0 0 1px var(--s-line); color: inherit; text-decoration: none !important; transition: background-color .25s; }
.pms-row:hover { background: var(--s-surface); }
.pms-row__t { font-family: var(--s-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.pms-row__d { color: var(--s-muted); }
.pms-row__go { font-weight: 600; white-space: nowrap; transition: transform .3s var(--s-ease); }
.pms-row:hover .pms-row__go { transform: translateX(6px); }

/* Что надеть */
.pms-wear { margin-top: 0; }
.pms-wear__hero { background: var(--s-field); color: #F5F1E8; margin: 0 calc(50% - 50vw); padding: 48px calc(50vw - 50%) 56px; }
.pms-wear__hero-in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: end; }
.pms-wear__hero h1 { margin: 0; font-family: var(--s-display); font-weight: 400; font-size: clamp(56px, 8vw, 112px); line-height: .95; letter-spacing: -0.035em; }
.pms-weather { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--s-gold); margin: 16px 0 0; }
.pms-weather__tip { margin: 10px 0 0; color: var(--s-fmuted); font-size: 15px; }
.pms-wear__filters { background: var(--s-surface); margin: 0 calc(50% - 50vw); padding: 28px calc(50vw - 50%); display: grid; gap: 16px; }
.pms-wear__row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.pms-wear__filters .pms-chips button { background: var(--s-bg); }
.pms-wear__filters .pms-chips button[aria-pressed="true"] { background: var(--s-field); }
.pms-wear__filters .pms-seg { background: var(--s-bg); }
.pms-day { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; margin-top: 72px; }
.pms-day__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.pms-day h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1.05; margin: 0; }
.pms-day__lead { font-size: 19px; margin: 12px 0 0; }
.pms-day__lead a { color: inherit; }
.pms-day__items { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; }
.pms-day__items li { padding: 12px 16px; background: var(--s-surface); }
.pms-res { margin-top: 96px; }
.pms-res__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }
.pms-res__head h2 { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; }
.pms-res__head span { font-size: 15px; color: var(--s-muted); }
.pms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; margin-top: 36px; transition: opacity .25s; }
.pms-loading { opacity: .45; }
.pms-card { display: block; color: inherit; text-decoration: none !important; }
.pms-card img, .pms-card__ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--s-surface); transition: transform .6s var(--s-ease); }
.pms-card:hover img { transform: scale(1.02); }
.pms-card__t { display: block; margin-top: 14px; font-family: var(--s-display); font-size: 23px; line-height: 1.2; }
.pms-card__m { display: block; margin-top: 6px; font-size: 15px; color: var(--s-muted); }
.pms-all { background: var(--s-field); color: #F5F1E8; margin: 96px calc(50% - 50vw) 0; padding: 80px calc(50vw - 50%); }
.pms-all h2 { margin: 0 0 32px; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; }
.pms-all__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 32px; }
.pms-all__grid a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: var(--s-tile); color: inherit; text-decoration: none; font-size: 18px; transition: background-color .2s; }
.pms-all__grid a:hover { background: #2A2622; }
.pms-all__grid small { color: var(--s-gold); font-size: 14px; }

/* Избранное */
.pms-favcard { position: relative; }
.pms-heart { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(245,241,232,.92); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121110' stroke-width='1.6'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 22px; transition: transform .16s var(--s-ease); }
.pms-heart[aria-pressed="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23121110' stroke='%23121110' stroke-width='1.6'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.pms-heart:active { transform: scale(.9); }

/* Рекламные блоки сервисов */
.pms-promo [hidden] { display: none !important; }
.pms-band { background: var(--s-gold); color: var(--s-ink); }
.pms-band__in { max-width: 1440px; margin: 0 auto; padding: 72px 32px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.pms-band h2 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.pms-band p { font-size: 19px; margin: 18px 0 0; max-width: 30em; }
.pms-band__act { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.pms-band__act .pms-btn { margin: 0; min-height: 56px; }
.pms-band__act span { font-size: 15px; }
.pms-vis { display: grid; gap: 8px; }
.pms-vis--sw { grid-template-columns: repeat(4, 1fr); }
.pms-vis--sw span { aspect-ratio: 1; }
.pms-vis--tiles { grid-template-columns: repeat(3, 1fr); }
.pms-vis--4 { grid-template-columns: repeat(4, 1fr); }
.pms-vis--tiles > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px 8px; background: var(--s-bg); min-height: 150px; }
.pms-vis--tiles i { display: block; }
.pms-vis--tiles b { font-weight: 400; font-size: 13px; line-height: 1.2; text-align: center; }
.pms-vis--words { grid-template-columns: 1fr; }
.pms-vis--words span { padding: 14px 20px; background: var(--s-bg); font-family: var(--s-display); font-size: 26px; }
.pms-vis--grid { grid-template-columns: 1fr 1fr; }
.pms-vis--grid span { font-size: 20px; }
.pms-vis--pairs { grid-template-columns: 1fr 1fr; }
.pms-vis--pairs span { display: grid; grid-template-columns: 2fr 1fr; height: 110px; }
.pms-vis--chat { gap: 10px; }
.pms-vis--chat p { margin: 0; padding: 16px 20px; font-size: 16px; }
.pms-vis--chat .q { justify-self: end; max-width: 80%; background: var(--s-field); color: #F5F1E8; }
.pms-vis--chat .a { max-width: 90%; background: var(--s-bg); }
.pms-vis--chat .a b { display: block; font-size: 13px; color: var(--s-muted); font-weight: 500; margin-bottom: 4px; }
.pms-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 32px; background: var(--s-field); color: #F5F1E8; text-decoration: none !important; }
.pms-inline__t b { display: block; font-family: var(--s-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; color: var(--s-gold); }
.pms-inline__t span { display: block; margin-top: 8px; color: var(--s-fmuted); }
.pms-inline__b { min-height: 52px; display: inline-flex; align-items: center; padding: 0 24px; background: var(--s-gold); color: var(--s-ink); font-weight: 600; transition: transform .16s var(--s-ease); }
.pms-inline:active .pms-inline__b { transform: scale(.97); }
.pms-strip { background: var(--s-gold); color: var(--s-ink); }
.pms-strip__in { max-width: 1440px; margin: 0 auto; padding: 56px 32px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; gap: 32px; align-items: center; }
.pms-strip h2 { margin: 0; font-size: clamp(30px, 3vw, 40px); line-height: 1.08; }
.pms-strip p { margin: 0; }
.pms-strip .pms-btn { margin: 0; }

/* Окна */
.pms-dlg { border: 0; padding: 0; background: var(--s-bg); color: var(--s-ink); max-width: min(820px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.pms-dlg::backdrop { background: rgba(18,17,16,.62); }
.pms-dlg[open] { animation: pms-pop .32s var(--s-ease) both; }
@keyframes pms-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.pms-dlg__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: inherit; }
.pms-dlg__t { font-family: var(--s-display); font-size: 28px; margin: 0 0 16px; }
.pms-cities form { position: relative; padding: 36px; max-width: 640px; }
.pms-exit[open] { display: grid; grid-template-columns: 320px 1fr; }
.pms-exit__img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.pms-exit__word { display: flex; align-items: flex-end; padding: 32px; background: var(--s-gold); font-family: var(--s-display); font-size: 40px; line-height: 1; min-height: 420px; }
.pms-exit__txt { position: relative; padding: 52px 40px 36px; display: flex; flex-direction: column; }
.pms-exit__k { margin: 0; font-size: 16px; color: var(--s-muted); }
.pms-exit h2, .pms-sheet h2 { margin: 10px 0 0; font-size: 40px; line-height: 1.05; }
.pms-exit__txt > p:not(.pms-exit__k):not(.pms-exit__act) { font-size: 17px; margin: 16px 0 0; }
.pms-exit__act { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.pms-exit__act .pms-btn { margin: 0; }
.pms-exit__act .pms-link { color: var(--s-muted); font-size: 15px; }
.pms-sheet { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 9999; background: var(--s-bg); color: var(--s-ink); border-radius: 22px; padding: 12px 22px 22px;
  box-shadow: 0 -10px 40px rgba(0,0,0,.25); transform: translateY(110%); transition: transform .4s cubic-bezier(.32,.72,0,1); }
.pms-sheet--on { transform: none; }
.pms-sheet__grip { display: block; width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 999px; background: #CFC6B4; }
.pms-sheet h2 { font-size: 26px; padding-right: 36px; }
.pms-sheet .pms-exit__txt { padding: 0; }
.pms-sheet .pms-exit__act { padding-top: 16px; }
.pms-sheet .pms-dlg__x { top: -4px; right: -10px; }

@media (prefers-reduced-motion: reduce) {
  .pms-in, .pms-dlg[open] { animation: none; }
  .pms-sheet { transition: none; }
}
@media (max-width: 900px) {
  .pms-qgrid, .pms-kq, .pms-types, .pms-types--3, .pms-knots, .pms-pairs, .pms-capf, .pms-capl, .pms-all__grid { grid-template-columns: minmax(0, 1fr); }
  .pms-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .pms-form3 { grid-template-columns: 1fr; }
  .pms-colgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pms-stylist, .pms-hair__in, .pms-feat, .pms-band__in, .pms-strip__in, .pms-day, .pms-wear__hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pms-chat__form { flex-wrap: wrap; }
  .pms-chat textarea { flex: 1 1 100%; order: -1; }
  .pms-chat__form .pms-btn { flex: 1; }
  .pms-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pms-feat { padding: 32px 20px; }
  .pms-band__in, .pms-strip__in { padding: 48px 16px; }
  .pms-inline { grid-template-columns: 1fr; padding: 24px 20px; }
  .pms-result { padding: 24px 18px; }
  .pms-chat { padding: 14px; min-height: 0; }
  .pms-msg { max-width: 100%; }
  .pms-mini { grid-template-columns: 1fr; }
  .pms-big { font-size: 56px; }
}
@media (max-width: 520px) {
  .pms-grid { grid-template-columns: 1fr; }
  .pms-opts { grid-template-columns: 1fr; }
  .pms-vis--tiles { grid-template-columns: repeat(3, 1fr); }
  .pms-vis--tiles > span { min-height: 110px; padding: 12px 4px; }
}
