/* Витрина консьержа (/concierge…): поверх home.css, те же токены. Премиальность — тёмными
   панелями ink и акцентом accent, он в дизайн-системе закреплён за консьержем. */

/* ─── Шапка консьержа ───
   Чёрная, в одну строку: серебряный логотип, разделы, «Наличие», поиск, корзина. Поле поиска
   выпадает под шапкой по значку. На телефоне — меню, логотип по центру, поиск и корзина;
   разделы, бренды и «Наличие» — в меню-шторке. Серебро — готовая картинка logo-silver.webp:
   SVG с фильтром объёма телефон рисовал медленно и мутно.
   Уход в «Наличие» (html.cg-leaving): шапка белеет, серебро сменяется чёрным логотипом,
   страница под шапкой уходит в белый — и открывается магазин. */
.cgh { --cgh-fg: #ECECEE; --cgh-mute: #9C9CA3; --cgh-line: rgba(255,255,255,.12);
  position: sticky; top: 0; z-index: 50; background: #0B0B0C; color: var(--cgh-fg); border-bottom: 1px solid var(--cgh-line);
  transition: background-color .42s ease, color .42s ease, border-color .42s ease; }
.cgh__row { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.cgh__burger { display: none; }
.cgh__logo { display: block; }
.cgh__mark { position: relative; display: block; height: 30px; aspect-ratio: 842 / 124; }
.cgh__silver, .cgh__black { position: absolute; display: block; transition: opacity .42s ease; }
.cgh__silver { inset: 0; width: 100%; height: 100%; }
.cgh__black { left: .713%; top: 4.84%; width: 98.575%; height: 90.32%; opacity: 0; }
.cgh__nav { display: flex; justify-content: center; gap: 24px; min-width: 0; overflow-x: auto; scrollbar-width: none;
  font-size: 13px; font-weight: 500; white-space: nowrap; transition: opacity .25s ease; }
.cgh__nav::-webkit-scrollbar { display: none; }
.cgh__nav a, .cgh__bbtn { position: relative; padding: 8px 0; color: var(--cgh-fg); }
.cgh__bbtn { font: inherit; background: none; border: 0; cursor: pointer; }
.cgh__bbtn::after { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px; border: solid currentColor;
  border-width: 0 1.4px 1.4px 0; transform: rotate(45deg); transition: transform .2s; }
.cgh__bbtn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: 0; }
.cgh__nav a:hover, .cgh__bbtn:hover { color: #fff; }
.cgh__nav a::before, .cgh__bbtn::before { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; border-radius: 1px;
  background: linear-gradient(90deg, #9BA2AB, #fff, #9BA2AB); transform: scaleX(0); transition: transform .25s ease; }
.cgh__nav .is-on::before, .cgh__nav a:hover::before { transform: scaleX(1); }
.cgh__side { display: flex; align-items: center; gap: 6px; transition: opacity .25s ease; }
.cgh__shop { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; padding: 8px 14px 8px 9px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.22); font-size: 12.5px; font-weight: 600; color: var(--cgh-fg); transition: border-color .2s, color .2s; }
.cgh__shop svg { width: 15px; height: 15px; flex: none; }
.cgh__shop:hover { border-color: #fff; color: #fff; }
.cgh__sbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: none; color: #fff; cursor: pointer; transition: background .2s; }
.cgh__sbtn:hover, .cgh__sbtn[aria-expanded="true"] { background: rgba(255,255,255,.1); }
.cgh__sbtn svg { width: 19px; height: 19px; }
.cgh__fav { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; color: #fff; transition: background .2s; }
.cgh__fav:hover { background: rgba(255,255,255,.1); }
.cgh__fav svg { width: 19px; height: 19px; }
.cgh__fav[data-has]::after { content: ''; position: absolute; top: 7px; right: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; border: 2px solid #0B0B0C; }
.cgh__cart { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-pill); background: #fff;
  color: #0B0B0C; font-size: 13px; font-weight: 600; white-space: nowrap; transition: opacity .2s; }
.cgh__cart:hover { opacity: .88; }
/* Поиск консьержа — панель поиска магазина (.spanel в home.css, открывает concierge.js) в цветах этой шапки:
   чёрная строка с серебряным логотипом и светлое поле; тело панели — как у магазина. Поле вырастает
   из лупы, а лупа меньше поля — содержимое поля на старте прячем за его рамкой. */
.cg-spanel .spanel__bar { background: #0B0B0C; border-bottom-color: rgba(255,255,255,.12); }
.cg-spanel .spanel__barin { padding: 12px 24px; }
.cg-spanel .spanel__logo { height: 26px; width: auto; }
.cg-spanel .spanel__field { overflow: hidden; background: #161618; border-color: rgba(255,255,255,.85); color: #fff; }
.cg-spanel .spanel__field svg { width: 17px; height: 17px; flex: none; }
.cg-spanel .spanel__field input { color: #fff; }
.cg-spanel .spanel__field input::placeholder { color: #9C9CA3; }
.cg-spanel .spanel__cancel { color: #fff; }
.cg-spanel .spanel__cancel:hover { background: rgba(255,255,255,.1); }
.cg-spanel .spanel__icons a { display: flex; color: #fff; }
.cg-spanel .spanel__icons a:hover { opacity: .75; }
.cg-spanel .pick__b { text-transform: uppercase; }
.cg-spanel .cg-spanel__gap { margin-top: 18px; }
.cg-spanel .spanel__cols--solo { grid-template-columns: 1fr; }
.cg-spanel .spanel__cols--nohint { grid-template-columns: 1fr 230px; }
@media (max-width: 900px) { .cg-spanel .spanel__cols--nohint { grid-template-columns: 1fr; } }
.cg-spanel .sbrands button.chip { font: inherit; font-size: 12.5px; }
.cgh__brands { position: absolute; left: 0; right: 0; top: 100%; background: #0B0B0C; border-top: 1px solid var(--cgh-line);
  border-bottom: 1px solid var(--cgh-line); box-shadow: 0 24px 40px rgba(0,0,0,.25); }
.cgh__brands[hidden] { display: none; }
.cgh__bgrid { max-width: var(--wrap); margin: 0 auto; padding: 22px 24px 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 24px; }
.cgh__bgrid a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13.5px; color: var(--cgh-fg);
  border-bottom: 1px solid rgba(255,255,255,.06); }
.cgh__bgrid a span { color: var(--cgh-mute); font-size: 12px; }
.cgh__bgrid a:hover, .cgh__bgrid a:hover span { color: #fff; }
/* Узкий компьютер: корзина и «Наличие» — значками, разделы плотнее. */
@media (max-width: 1180px) {
  .cgh__row { gap: 18px; }
  .cgh__mark { height: 26px; }
  .cgh__nav { gap: 16px; font-size: 12.5px; }
  .cgh__shop { padding: 0; width: 38px; height: 38px; justify-content: center; margin-right: 0; }
  .cgh__shop span { display: none; }
  .cgh__cart { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .cgh__cart span { display: none; }
  .cgh__cart[data-has]::after { content: attr(data-count); position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
    padding: 0 4px; border-radius: var(--r-pill); background: #fff; color: #0B0B0C; border: 2px solid #0B0B0C;
    font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }
}

/* Меню-шторка консьержа (телефон): переключатель «Наличие | Консьерж», разделы, бренды, связь. */
.cgm { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s ease; }
.cgm.is-on { opacity: 1; }
.cgm__box { position: absolute; top: 0; left: 0; bottom: 0; width: min(88vw, 380px); background: #0B0B0C; color: #ECECEE; overflow-y: auto;
  padding: 18px 20px 28px; transform: translateX(-100%); transition: transform .3s cubic-bezier(.3, 0, .2, 1); }
.cgm.is-on .cgm__box { transform: none; }
.cgm__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cgm__head img { height: 22px; width: auto; }
.cgm__x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: none; color: #fff; font-size: 15px; cursor: pointer; }
.cgm__switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-pill); isolation: isolate; }
.cgm__sw { position: relative; z-index: 1; min-width: 104px; text-align: center; padding: 8px 14px; font-size: 13px; font-weight: 600;
  color: #9C9CA3; border-radius: var(--r-pill); }
.cgm__sw.is-on { color: #0B0B0C; }
.cgm__switch::before { content: ''; position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 50%; right: 3px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, #FFFFFF, #CFD4DA); }
.cgm__nav { display: grid; margin-bottom: 22px; }
.cgm__nav a { padding: 12px 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em;
  border-bottom: 1px solid rgba(255,255,255,.08); }
.cgm__h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9C9CA3; margin: 6px 0 8px; }
.cgm__brands { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-bottom: 22px; }
.cgm__brands a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 14px; color: #D6D6DA; }
.cgm__brands a span { color: #9C9CA3; font-size: 12px; }
.cgm__ask { display: block; text-align: center; padding: 14px; border-radius: var(--r-pill); background: #fff; color: #0B0B0C; font-weight: 600; }

/* Уход в «Наличие»: шапка становится белой, как у магазина, страница уходит в белый. */
html.cg-leaving .cgh { background: #fff; color: #0B0B0C; border-color: var(--line); }
html.cg-leaving .cgh__silver { opacity: 0; }
html.cg-leaving .cgh__black { opacity: 1; }
html.cg-leaving .cgh__nav, html.cg-leaving .cgh__side, html.cg-leaving .cgh__brands,
html.cg-leaving .cgh__burger { opacity: 0; transition: opacity .2s ease; }
body::after { content: ''; position: fixed; inset: 0; z-index: 45; background: #fff; opacity: 0; pointer-events: none; transition: opacity .42s ease; }
html.cg-leaving body::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .cgh, .cgh__silver, .cgh__black, .cgm, .cgm__box, body::after { transition: none; }
}

.cg { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px 48px; min-height: 60vh; }
.cg-wait { padding: 80px 0; text-align: center; color: var(--muted); }
.cg-note { background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  font-size: 13px; color: var(--muted-2); margin: 0 0 14px; }

.cg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cg-btn-line { border: 1px solid rgba(255,255,255,.4); color: #fff; font-weight: 600; font-size: 13.5px; padding: 12px 22px; }
.cg-btn-line:hover { background: rgba(255,255,255,.08); }

/* --- тёмная шапка бренда и записи --- */
.cg-hero { background: var(--ink); color: #fff; border-radius: var(--r-hero); margin: 8px 0 40px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; padding: 44px 40px; align-items: center; }
.cg-hero__txt { display: grid; gap: 16px; align-content: start; }
.cg-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.72); }
.cg-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cg-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 46px; line-height: 1.04; letter-spacing: -.04em; max-width: 13ch; }
.cg-hero p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 520px; }

/* Шапка бренда: о доме и цифры слева, три кадра справа — образ во всю высоту, вещь и деталь стопкой.
   Пропорции сетки (1,6 : 1 при 1,3 : 1 у блока) держат большой кадр около 4:5, малые — около квадрата. */
.cg-hero--brand { margin-top: 16px; padding: 32px 32px 32px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.cg-hero--brand.cg-hero--solo { grid-template-columns: 1fr; padding: 40px; }
.cg-hero--brand h1 { max-width: none; }
.cg-hero--brand p { max-width: 560px; }
.cg-bpics { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px; aspect-ratio: 1.3; width: 100%; max-width: 560px; justify-self: end; }
.cg-bpic { display: block; min-height: 0; border-radius: 18px; overflow: hidden; background: var(--cream); }
.cg-bpic:first-child, .cg-bpics--2 .cg-bpic { grid-row: span 2; }
.cg-bpics--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cg-bpics--1 { grid-template-columns: 1fr; aspect-ratio: .8; max-width: 360px; }
.cg-bpic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cg-bpic:hover img { transform: scale(1.03); }

.cg-sect { margin: 0 0 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cg-sect h2, .cg-ask h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.03em; }
.cg-chips .chip span { color: var(--muted); margin-left: 2px; }
.cg-chips .chip.is-on span { color: rgba(255,255,255,.72); }

/* Шапка секции: заголовок слева, «Смотреть все» и стрелки полки справа. */
.cg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cg-head h2 span, .cg-title span { font-family: var(--font-text); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.cg-head__r { display: flex; align-items: center; gap: 8px; flex: none; }
.cg-head__all { font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.cg-head__all:hover { text-decoration-color: currentColor; }
.cg-arr { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; }
.cg-arr:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.cg-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 26px; font-size: 13px; color: rgba(255,255,255,.72); }
.cg-stats li { display: grid; gap: 2px; }
.cg-stats b { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: #fff; }

/* Новости и коллекции: лента и страница «Новости» — карточками. */
.cg-hero--post .cg-flag { margin-top: -6px; }
.cg-btn-light { background: #fff; color: var(--ink); font-weight: 600; font-size: 13.5px; padding: 13px 24px; }
.cg-btn-light:hover { opacity: .9; }
.cg-post { display: grid; gap: 7px; align-content: start; }
.cg-post__img { position: relative; display: block; aspect-ratio: 4/5; border-radius: var(--r-card); overflow: hidden; background: var(--cream); }
.cg-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cg-post__img .cg-flag { position: absolute; left: 10px; top: 10px; }
.cg-post:hover .cg-post__img img { transform: scale(1.03); }
.cg-post__meta { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cg-post__t { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -.02em; }
.cg-post__l { font-size: 13.5px; line-height: 1.5; color: var(--muted-2); display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.cg-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 16px; margin-bottom: 48px; }
.cg-posts .cg-post__img { aspect-ratio: 5/4; }
.cg-kinds { margin: -6px 0 24px; }
/* Запись: тёмная шапка, текст колонкой для чтения, остальные фото, вещи записи. */
.cg-hero--post h1 { font-size: 42px; max-width: 16ch; }
.cg-article__body { max-width: 720px; margin: 0 auto 40px; display: grid; gap: 16px; }
.cg-article__body p { font-size: 16.5px; line-height: 1.7; color: #2B2722; }
.cg-article__gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 44px; }
.cg-article__gal figure { border-radius: var(--r-card); overflow: hidden; background: var(--cream); }
.cg-article__gal img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
#cg-post-items { scroll-margin-top: 90px; }
/* Полка — горизонтальная лента карточек; в конце — плитка «Смотреть все». */
.cg-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.cg-rail::-webkit-scrollbar { display: none; }
.cg-rail > * { flex: 0 0 calc((100% - 48px) / 4.5); scroll-snap-align: start; }
.cg-rail__all { align-self: start; aspect-ratio: 4/5; border-radius: var(--r-card); background: var(--ink); color: #fff; padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; transition: opacity .2s; }
.cg-rail__all:hover { opacity: .9; }
.cg-rail__all span { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; line-height: 1.15; }
.cg-rail__all b { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.72); }
.cg-rail__all svg { width: 22px; height: 22px; margin-top: 8px; }

/* Бренды — именные плитки. */
.cg-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cg-brand { display: grid; gap: 4px; align-content: center; min-height: 82px; padding: 14px 16px; border-radius: 16px;
  background: var(--cream-2); border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.cg-brand b { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.cg-brand span { font-size: 12px; color: var(--muted); }
.cg-brand:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cg-brand:hover span { color: rgba(255,255,255,.72); }

/* Раздел, поиск, бренд: заголовок, фильтры, сетка. */
.cg-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 18px 0 20px; }
.cg-title h1 { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.08; letter-spacing: -.035em; }
.cg-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 24px; }
.cg-filters .chips:empty { display: none; }
.cg-chips--sub .chip { font-size: 12px; padding: 6px 11px; background: var(--cream-2); }
.cg-chips--sub .chip.is-on { background: var(--ink); }
.cg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cg-search { flex: 1 1 240px; max-width: 360px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--paper); color: var(--muted); }
.cg-search:focus-within { border-color: var(--ink); }
.cg-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); padding: 10px 0; }
.cg-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--paper); }
.cg-seg button { font: inherit; font-size: 12.5px; border: 0; background: none; color: var(--muted-2); border-radius: var(--r-pill); padding: 6px 13px; cursor: pointer; }
.cg-seg button.is-on { background: var(--ink); color: #fff; }
.cg-tools select { font: inherit; font-size: 13px; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-pill); cursor: pointer;
  padding: 9px 34px 9px 14px; appearance: none; -webkit-appearance: none;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B0B0C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center; }
.cg-none { padding: 24px 0 8px; color: var(--muted-2); font-size: 14.5px; }

/* Вопросы и ответы — одни и те же тексты у людей и ботов (cg-brands.php). */
.cg-faq { gap: 0; }
.cg-faq h2 { margin-bottom: 10px; }
.cg-faq details { border-top: 1px solid var(--line); padding: 14px 0; max-width: 860px; }
.cg-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.cg-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.cg-faq summary::-webkit-details-marker { display: none; }
.cg-faq summary::after { content: '+'; font-family: var(--font-display); color: var(--muted); flex: none; }
.cg-faq details[open] summary::after { content: '−'; }
.cg-faq details p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: #4E483F; }
/* Модели под заказ и «о разделе» — под списком бренда и раздела (те же строки получают боты). */
.cg-models { gap: 0; }
.cg-models h2 { margin-bottom: 10px; }
.cg-models ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; max-width: 980px; }
.cg-models li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.cg-models a { font-weight: 600; font-size: 15px; color: var(--ink); }
.cg-models a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cg-models span { font-size: 13.5px; color: var(--muted); }
.cg-catinfo p { font-size: 15px; line-height: 1.6; color: #4E483F; max-width: 860px; }
@media (max-width: 600px) { .cg-models ul { grid-template-columns: 1fr; } }
/* Содержимое с сервера — видно до загрузки скрипта и без него. */
.cg-ssr { display: grid; gap: 12px; padding: 8px 0 32px; }
.cg-ssr h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; }
.cg-ssr h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-top: 12px; }
.cg-ssr p { font-size: 15px; line-height: 1.6; color: #4E483F; max-width: 760px; }
.cg-ssr-list { list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.cg-ssr-list a, .cg-ssr .crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.cg-ssr img { max-width: 320px; height: auto; border-radius: var(--r-card); }
.cg-none a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cg-more-wrap { display: flex; justify-content: center; margin: 28px 0 44px; }
.cg-more-wrap .cg-more[hidden] { display: none; }
.cg-more { justify-self: center; font: inherit; font-size: 14px; font-weight: 600; background: none; cursor: pointer; padding: 13px 28px; }

.cg-card .card__brand { text-transform: uppercase; }
.cg-card .card__price { margin-top: 2px; }
.cg-lead { position: absolute; left: 10px; top: 10px; z-index: 1; background: rgba(255,255,255,.94); color: var(--ink);
  border-radius: var(--r-pill); padding: 4px 10px; font-size: 11.5px; font-weight: 600; }
.cg-flag { display: inline-block; justify-self: start; background: var(--accent); color: #fff; border-radius: var(--r-pill);
  padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.card__shot .cg-flag { position: absolute; right: 10px; top: 10px; z-index: 1; }

.cg-ask { border: 1px solid var(--line-2); border-radius: var(--r-hero); padding: 28px 32px; display: flex;
  align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cg-ask p { color: var(--muted-2); margin-top: 6px; font-size: 14px; }

/* --- главная консьержа (вариант D, 23.10) ---
   Раскладка главной магазина: мозаика, лента, секции и карточки — классы home.css. Здесь только
   своё: поля страницы, вкладки категорий, плитки брендов, подборки, шаги, вопросы, «Не нашли». */
.cg--home { max-width: none; padding: 0 0 56px; }
.cg--home > .cg-note { max-width: calc(var(--wrap) - 48px); margin: 16px auto 0; }
.cg--home .mos__pbrand { text-transform: uppercase; }
.cg--home .mos__fan-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg--home .mos__story-slide img.mos__bg { object-position: 50% var(--fy, 30%); }
.cg--home .mos__story-slide .mos__veil { background: linear-gradient(to top, rgba(8,8,9,.62), rgba(8,8,9,.18) 26%,
  rgba(8,8,9,0) 42%, rgba(8,8,9,0) 80%, rgba(8,8,9,.24)); }
.cg-hstory { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px; }
.cg-hstory .mos__ttl { min-width: 0; }
.cg-hgo { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; }
.cg-hgo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cg-hlook { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-htile { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.cg-only-m { display: none; }
#cg-hbrands, #cg-hhow { scroll-margin-top: 72px; }

.cg-htabs { gap: 8px; padding-bottom: 20px; }
.cg-htabs .chip { display: inline-flex; align-items: baseline; gap: 7px; height: 44px; padding: 0 18px; font-size: 14px; font-weight: 600;
  line-height: 42px; white-space: nowrap; }
.cg-htabs .chip span { font-size: 12px; font-weight: 500; color: var(--muted); }
.cg-htabs .chip.is-on span { color: rgba(255,255,255,.72); }
.cg-hlead { font-size: 12px; color: var(--muted-2); margin-top: -4px; }
.cg-hbadge { background: var(--accent); }

.cg-hbr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cg-hbr__t { display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; background: var(--cream);
  transition: transform .2s ease; }
.cg-hbr__t[hidden] { display: none; }
.cg-hbr__t:hover { transform: translateY(-3px); }
.cg-hbr__img { display: block; height: 230px; background: var(--line); }
.cg-hbr__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cg-hbr__b { display: grid; gap: 4px; padding: 16px 20px 18px; }
.cg-hbr__n { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.cg-hbr__c { font-size: 12px; color: var(--muted); }
.cg-hmore { display: flex; justify-content: center; margin-top: 20px; }
.cg-hmore .btn { font: inherit; font-size: 14px; font-weight: 600; background: none; cursor: pointer; }

.cg-hcol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cg-hcol .cat { display: block; height: 440px; }
.cg-hcol .mos__chip { position: absolute; left: 22px; top: 20px; z-index: 1; }
.cg-hcol .cat__name { line-height: 1.1; }
.cg-hcol .cat__meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cg-hsteps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cg-hsteps li { display: flex; flex-direction: column; gap: 10px; min-height: 180px; padding: 22px; border-radius: var(--r-card);
  background: var(--cream); }
.cg-hsteps b { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -.03em; color: var(--accent); }
.cg-hsteps strong { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.cg-hsteps span { font-size: 13.5px; line-height: 1.5; color: #4E483F; }
.cg-hsteps li:last-child { background: var(--ink); color: #fff; }
.cg-hsteps li:last-child b { color: #C9AD98; }
.cg-hsteps li:last-child span { color: rgba(255,255,255,.75); }

.cg-hfaq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 48px; align-items: start; }
.cg-hfaq__list { border-top: 1px solid var(--ink); }
.cg-hfaq details { border-bottom: 1px solid var(--line); }
.cg-hfaq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 16px; }
.cg-hfaq summary::-webkit-details-marker { display: none; }
.cg-hfaq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--muted); flex: none; }
.cg-hfaq details[open] summary::after { content: '−'; }
.cg-hfaq details p { padding: 0 0 20px; max-width: 720px; font-size: 15px; line-height: 1.6; color: #4E483F; }

.cg-hask { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 44px 48px;
  border-radius: var(--r-hero); background: var(--ink); color: #fff; }
.cg-hask__t { display: flex; flex-direction: column; gap: 12px; flex: 1 1 420px; min-width: 0; }
.cg-hask__t .mos__chip { align-self: flex-start; }
.cg-hask h2 { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.05; letter-spacing: -.035em; }
.cg-hask p { max-width: 520px; font-size: 15px; color: rgba(255,255,255,.75); }
.cg-hask__b { display: flex; flex-wrap: wrap; gap: 10px; }
.cg-hask__b .btn--light { padding: 17px 28px; font-size: 14px; }
.cg-hask__line { border: 1px solid rgba(255,255,255,.4); color: #fff; font-weight: 600; padding: 16px 28px; }
.cg-hask__line:hover { background: rgba(255,255,255,.08); }

/* --- карточка вещи --- */
.cg-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 32px; align-items: start; margin-top: 16px; }
.cg-gal-wrap { position: relative; }
.cg-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cg-gal figure { margin: 0; aspect-ratio: 4/5; background: var(--cream); border-radius: var(--r-card); overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.cg-gal figure:first-child { grid-column: 1 / -1; }
.cg-gal img { width: 100%; height: 100%; object-fit: cover; }
.cg-gal-count { display: none; }

.cg-panel { position: sticky; top: 92px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); border-radius: 24px;
  padding: 28px 26px; display: grid; gap: 18px; }
.cg-panel__brand { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cg-panel__brand:hover { color: var(--ink); }
.cg-panel h1 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.12; letter-spacing: -.035em; margin-top: -8px; }
.cg-panel__price { font-family: var(--font-display); font-weight: 700; font-size: 28px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.cg-panel__price .card__old { font-size: 15px; font-weight: 500; }
.cg-panel__off { align-self: center; background: #B4443A; color: #fff; font-family: var(--font-text); font-size: 12px; font-weight: 700;
  padding: 4px 9px; border-radius: var(--r-pill); }
.cg-lead-chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 14px;
  border-radius: var(--r-pill); background: var(--cream); font-size: 13px; font-weight: 500; margin-top: -4px; }
.cg-lead-chip svg { flex: none; }
.cg-opt { display: grid; gap: 8px; border-radius: 14px; transition: box-shadow .2s; }
.cg-opt__t { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cg-opt__t b { color: var(--ink); font-weight: 700; }
.cg-opt__row { display: flex; flex-wrap: wrap; gap: 6px; }
.cg-opt__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cg-szbtn { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); white-space: nowrap; }
.cg-szbtn:hover { text-decoration-color: var(--ink); }

/* Окно «Таблица размеров»: светлое, таблица прокручивается вбок, первая колонка — на месте. */
.cg-sz { position: fixed; inset: 0; z-index: 320; background: rgba(11,11,12,.5); display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .2s ease; }
.cg-sz.is-on { opacity: 1; }
.cg-sz__box { width: min(760px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--paper);
  color: var(--ink); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden; }
.cg-sz__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; border-bottom: 1px solid var(--line); }
.cg-sz__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cg-sz__head h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin-top: 4px; }
.cg-sz__x { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; font-size: 14px; }
.cg-sz__x:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Таблица прокручивается вбок, поэтому её минимальная высота 0: без max-content сетка сжимала её до 2 px. */
.cg-sz__body { overflow-y: auto; padding: 18px 24px 22px; display: grid; grid-auto-rows: max-content; gap: 16px; }
.cg-sz__how, .cg-sz__fit { display: grid; gap: 4px; font-size: 13.5px; line-height: 1.55; color: var(--muted-2); }
.cg-sz__how b, .cg-sz__fit b { color: var(--ink); font-size: 13px; }
.cg-sz__fit { background: var(--cream-2); border-radius: 14px; padding: 12px 14px; }
.cg-sz__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.cg-sz__table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.cg-sz__table th, .cg-sz__table td { padding: 9px 12px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
.cg-sz__table thead th { position: sticky; top: 0; background: var(--cream); font-size: 11.5px; font-weight: 700; color: var(--muted-2); }
.cg-sz__table tbody th { position: sticky; left: 0; background: var(--paper); font-weight: 700; text-align: left; }
.cg-sz__table thead th:first-child { left: 0; z-index: 1; text-align: left; }
.cg-sz__table tbody tr { color: #6E685F; }
.cg-sz__table tbody tr.is-avail { color: var(--ink); cursor: pointer; }
.cg-sz__table tbody tr.is-avail:hover td, .cg-sz__table tbody tr.is-avail:hover th { background: var(--cream-2); }
.cg-sz__table tbody tr.is-on td, .cg-sz__table tbody tr.is-on th { background: var(--ink); color: #fff; }
.cg-sz__table tbody tr:last-child th, .cg-sz__table tbody tr:last-child td { border-bottom: 0; }
.cg-sz__note { font-size: 12px; line-height: 1.5; color: var(--muted); }
.cg-sz__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.cg-sz__ask { display: inline-flex; padding: 12px 20px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; }
.cg-sz__src { font-size: 12.5px; color: var(--muted-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.cg-pick { font: inherit; font-size: 13px; min-width: 48px; min-height: 44px; padding: 0 12px; border-radius: 12px; text-align: center;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cg-pick:hover { border-color: var(--ink); }
.cg-pick.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Размер, которого сейчас нет у бренда, — видно только вошедшему в панель. */
.cg-pick.is-off { opacity: .45; text-decoration: line-through; }
.cg-opt.is-need { box-shadow: 0 0 0 2px var(--accent); padding: 10px; margin: -10px; }
/* Доставка: экспресс и другие сроки той же вещи (у ALO — из США), карточки как кнопки размера. */
.cg-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; }
.cg-offer { font: inherit; display: grid; gap: 2px; text-align: left; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--paper); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cg-offer:hover { border-color: var(--ink); }
.cg-offer__t { font-size: 13px; font-weight: 600; }
.cg-offer__l { font-size: 12.5px; color: var(--muted); }
.cg-offer__p { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-top: 4px; }
.cg-offer__old { font-family: var(--font-text); font-size: 12px; font-weight: 500; color: var(--muted-2); margin-left: 4px; }
.cg-offer.is-on .cg-offer__old { color: rgba(255,255,255,.6); }
.cg-offer.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cg-offer.is-on .cg-offer__l { color: rgba(255,255,255,.7); }
.cg-panel__cta { display: grid; gap: 8px; }
.cg-buyrow { display: flex; gap: 10px; }
.cg-buyrow .cg-order { flex: 1; min-width: 0; }
.cg-buyrow .pdp__fav { box-shadow: none; }
.cg-order { display: block; text-align: center; background: var(--ink); color: #fff; border-radius: var(--r-pill); padding: 15px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; transition: opacity .2s; }
.cg-order:hover { opacity: .88; }
button.cg-order { width: 100%; border: 0; cursor: pointer; }
button.cg-order.cg-order--line { border: 1px solid var(--line-2); }
/* Кружки цветов — те же .colorchip, что у вещи в наличии. */
.cg-colors { gap: 10px; }
.cg-order--line { background: none; color: var(--ink); border: 1px solid var(--line-2); font-family: var(--font-text);
  font-weight: 600; font-size: 14px; }
.cg-order--line:hover { opacity: 1; border-color: var(--ink); }
.cg-ask-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; }
.cg-terms { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.cg-msg { font-size: 12.5px; color: var(--muted-2); min-height: 1em; }
.cg-msg:empty { display: none; }

.cg-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin: 40px 0 8px; padding-top: 32px;
  border-top: 1px solid var(--line); }
.cg-info__b { display: grid; gap: 12px; align-content: start; }
.cg-info__b h2 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.cg-info__b p { font-size: 14.5px; line-height: 1.65; color: #4E483F; }
.cg-dl { display: grid; }
.cg-dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cg-dl dt { color: var(--muted); }

.cg-empty { padding: 80px 0; display: grid; gap: 14px; justify-items: start; }
.cg-empty h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; }
.cg-empty p { color: var(--muted-2); }

@media (max-width: 900px) {
  .cgh__row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 10px 16px; gap: 6px; }
  .cgh__burger { justify-self: start; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px;
    background: none; border: 0; color: #fff; cursor: pointer; }
  .cgh__burger svg { width: 22px; height: 22px; }
  .cgh__logo { justify-self: center; }
  .cgh__mark { height: 26px; }
  .cgh__nav, .cgh__shop { display: none; }
  .cgh__side { justify-self: end; gap: 2px; }
  .cgh__sbtn { width: 36px; height: 36px; }
  /* На телефоне в шапке не хватает места рядом с логотипом — избранное живёт в меню-шторке. */
  .cgh__fav { display: none; }
  .cgh__cart { width: 38px; height: 38px; }
  .cg-spanel .spanel__barin { padding: 10px 14px; gap: 10px; }
  .cgh__bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 16px 20px; max-height: 60vh; overflow-y: auto; }
  .cg-sz { padding: 0; align-items: flex-end; }
  .cg-sz__box { width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; transform: translateY(24px); transition: transform .25s ease; }
  .cg-sz.is-on .cg-sz__box { transform: none; }
  .cg-sz__head { padding: 18px 16px 12px; }
  .cg-sz__head h2 { font-size: 19px; }
  .cg-sz__body { padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
  .cg-sz__table th, .cg-sz__table td { padding: 9px 10px; }
  .cg-sz__ask { width: 100%; justify-content: center; }
  .cg { padding: 12px 16px 32px; }
  .cg-hero { grid-template-columns: 1fr; padding: 24px 20px; border-radius: 24px; gap: 20px; margin-bottom: 32px; }
  .cg-hero--brand, .cg-hero--brand.cg-hero--solo { padding: 24px 20px 20px; gap: 22px; }
  .cg-hero--brand .cg-stats { flex-wrap: nowrap; gap: 18px; }
  .cg-posts { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cg-hero--post h1 { font-size: 29px; }
  .cg-hero--post .cg-actions .btn { flex: 1 1 100%; }
  .cg-article__body p { font-size: 15.5px; }
  .cg-article__gal { grid-template-columns: minmax(0, 1fr); }
  .cg-bpics { max-width: none; gap: 8px; aspect-ratio: 1.55; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .cg-bpic { border-radius: 14px; }
  .cg-hero h1 { font-size: 29px; line-height: 1.08; }
  .cg-hero .cg-actions .btn { flex: 1 1 100%; }
  .cg-sect { margin-bottom: 34px; }
  .cg-sect h2, .cg-ask h2 { font-size: 21px; }
  .cg-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .cg-chips::-webkit-scrollbar { display: none; }
  .cg-chips .chip { flex: 0 0 auto; }
  .cg-stats { gap: 20px; }
  .cg-stats b { font-size: 19px; }
  .cg-head__all { font-size: 13px; }
  .cg-head { flex-wrap: wrap; row-gap: 8px; }
  .cg-arr { display: none; }
  .cg-rail, .cg-brands { margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .cg-rail { gap: 10px; }
  .cg-rail > * { flex-basis: 44%; }
  .cg-rail__all { padding: 16px; }
  .cg-rail__all span { font-size: 15px; }
  .cg-brands { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-auto-columns: 42%;
    overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .cg-brands::-webkit-scrollbar { display: none; }
  .cg-brand { min-height: 66px; padding: 12px 14px; scroll-snap-align: start; }
  .cg-title { margin: 12px 0 16px; }
  .cg-title h1 { font-size: 26px; }
  .cg-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cg-search, .cg-seg { grid-column: 1 / -1; max-width: none; }
  .cg-seg { justify-self: start; }
  .cg-tools select { width: 100%; }
  .cg-ask { padding: 22px 18px; }
  .cg-ask .cg-actions, .cg-ask .cg-actions .btn { width: 100%; }

  .cg--home { padding: 0 0 36px; }
  .cg--home > .cg-note { margin: 12px 16px 0; }
  .cg-no-m { display: none; }
  .cg-only-m { display: inline; }
  .cg-hlook { display: none; }
  .cg-htile { font-size: 15px; }
  .cg--home .mos__story-slide img.mos__bg { object-position: 50% var(--fym, var(--fy, 30%)); }
  .cg-hstory { padding: 16px; gap: 12px; }
  .cg-hgo { width: 40px; height: 40px; }
  .cg-hgo svg { width: 18px; height: 18px; }
  .cg-htabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 16px; scrollbar-width: none; }
  .cg-htabs::-webkit-scrollbar { display: none; }
  .cg-htabs .chip { flex: 0 0 auto; padding: 0 16px; }
  .cg-hlead { font-size: 11.5px; margin-top: -3px; }
  .cg-hbr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cg-hbr__t { border-radius: 18px; }
  .cg-hbr__img { height: 150px; }
  .cg-hbr__b { gap: 2px; padding: 12px 14px 14px; }
  .cg-hbr__n { font-size: 14px; }
  .cg-hbr__c { font-size: 11.5px; }
  .cg-hcol { display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px;
    scroll-padding: 0 16px; scrollbar-width: none; }
  .cg-hcol::-webkit-scrollbar { display: none; }
  .cg-hcol .cat { flex: 0 0 280px; height: 360px; border-radius: 20px; scroll-snap-align: start; }
  .cg-hcol .mos__chip { left: 16px; top: 16px; }
  .cg-hsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cg-hsteps li { min-height: 168px; padding: 16px; gap: 6px; border-radius: 18px; }
  .cg-hsteps b { font-size: 22px; }
  .cg-hsteps strong { font-size: 14px; }
  .cg-hsteps span { font-size: 12.5px; line-height: 1.4; }
  .cg-hfaq { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cg-hfaq summary { padding: 16px 0; font-size: 15px; }
  .cg-hfaq details p { padding-bottom: 18px; font-size: 14px; }
  .cg-hask { padding: 26px 20px; gap: 20px; border-radius: 22px; }
  .cg-hask__t { flex-basis: auto; }
  .cg-hask h2 { font-size: 26px; line-height: 1.08; }
  .cg-hask p { font-size: 14px; }
  .cg-hask__b { flex-direction: column; width: 100%; }
  .cg-hask__b .btn { width: 100%; }

  .cg-item { grid-template-columns: 1fr; gap: 0; margin-top: 10px; }
  .cg-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin: 0 -16px;
    scrollbar-width: none; overscroll-behavior-x: contain; }
  .cg-gal::-webkit-scrollbar { display: none; }
  .cg-gal figure { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; }
  .cg-gal-count { display: block; position: absolute; right: 12px; bottom: 36px; background: rgba(255,255,255,.94);
    border-radius: var(--r-pill); padding: 3px 10px; font-size: 12px; color: var(--muted-2); }
  .cg-gal-count b { color: var(--ink); font-weight: 600; }
  .cg-panel { position: relative; top: 0; margin: -24px -16px 0; border: 0; border-radius: 24px 24px 0 0; padding: 26px 18px 24px; }
  .cg-panel h1 { font-size: 22px; }
  .cg-panel__price { font-size: 24px; }
  .cg-info { grid-template-columns: 1fr; gap: 26px; margin-top: 30px; }
  .cg-dl div { grid-template-columns: 110px minmax(0, 1fr); }
}

/* Телефон: в магазине ярлык «Главные модели» лежит плашкой на фото, а кадр обрезается по ширине плитки.
   У консьержа пакшот 4:5 в широкой низкой рамке терял низ вещи (подвеска, браслет), и плашка закрывала
   остальное — вещь вписываем целиком над полосой, плашка встаёт в полосу под ней. Фон рамки — кремовый,
   как у пакшотов, поэтому поля по бокам не видны. */
/* Фон рамки «Главных моделей» — кремовый, как у пакшотов: вещь в ней приближает concierge.js (fitShots),
   и края снимка не должны читаться. */
.cg--home .mos__rest-shot { background: var(--cream); }
@media (max-width: 600px) {
  .cg--home .mos__rest-shot img { box-sizing: border-box; padding: 14px 0 30px; object-fit: contain; object-position: 50% 50%; }
  .cg--home .mos__rest-t .mos__badge { bottom: 6px; }
}

/* Главная до загрузки скрипта: текст с сервера (для ботов и на случай сбоя) скрыт, на его месте —
   кремовая заглушка мозаики. Скрипт не пришёл за 6 с — текст проявляется, заглушка уходит. */
.cg-ssr--home { position: relative; min-height: min(720px, 86vh); }
.cg-ssr--home > * { opacity: 0; animation: cg-ssr-in .3s 6s forwards; }
.cg-ssr--home::before { content: ''; position: absolute; inset: 0 0 auto; height: min(720px, 86vh); border-radius: 24px;
  background: linear-gradient(90deg, var(--cream) 0 66%, var(--paper) 66% 67%, var(--cream-2) 67%); animation: cg-ssr-out .3s 6s forwards; }
@keyframes cg-ssr-in { to { opacity: 1; } }
@keyframes cg-ssr-out { to { opacity: 0; visibility: hidden; } }

/* Пока фото плитки не пришло, под затемнением тёплый фон, а не серый градиент на белом; фото проявляется. */
.cg--home .mos__look-t, .cg--home .mos__hit-t, .cg--home .mos__story-slide { background: #B5ACA0; }
.cg--home img.mos__bg { opacity: 0; transition: opacity .35s ease; }
.cg--home img.mos__bg.is-ld { opacity: 1; }

/* Новости и подборки: фото на кремовом фоне, текст под ним — не поверх вещи. */
.cg-hcol .cat { display: flex; flex-direction: column; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.cg-hcol .cat img { flex: 1 1 auto; min-height: 0; height: auto; background: var(--cream); }
.cg-hcol .cat__veil { display: none; }
.cg-hcol .cat__body { position: static; padding: 16px 20px 18px; }
.cg-hcol .cat__meta { color: var(--muted); }

/* Зоны нажатия не меньше 44 px; сами значки и полоски прежнего размера. */
.cg--home .mos__sbar::after { content: ''; position: absolute; inset: -13px 0; }
.cgh__sbtn, .cgh__burger, .cgm__x, .cg-sz__x { position: relative; }
.cgh__sbtn::after, .cgh__burger::after, .cgm__x::after, .cg-sz__x::after { content: ''; position: absolute; inset: -4px; }

/* Фокус с клавиатуры: на тёмном — белая рамка, на светлом — чёрная. */
.cgh a:focus-visible, .cgh button:focus-visible, .cgm a:focus-visible, .cgm button:focus-visible,
.mos__tile--ink:focus-visible, .cg-hask a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cg--home .mos__tile:not(.mos__tile--ink):focus-visible, .cg-hbr__t:focus-visible, .cg-hcol .cat:focus-visible,
.cg-hfaq summary:focus-visible, .cg-htabs .chip:focus-visible, .cg-sz__table tr[data-sz]:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.cg-fail { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #F4F2EF; font-size: 14px; line-height: 1.45; }
.cg-fail__btn { margin-left: 8px; font: inherit; font-weight: 600; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
