:root {
  --yellow: #ffcf1f;
  --yellow-soft: #fff6d6;
  --purple: #6b2f8f;
  --purple-soft: #f3eaf8;
  --ink: #232129;
  --muted: #6b6775;
  --line: #e9e5ef;
  --bg: #faf8f4;
  --card: #ffffff;
  --ok: #1f8a4c;
  --warn: #b3261e;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h3, h4 { font-family: "Comfortaa", "Nunito", sans-serif; }
h3 { font-size: 16px; margin: 18px 0 10px; }
h3:first-child { margin-top: 0; }

.top { max-width: 1320px; margin: 0 auto; padding: 24px 16px 8px; }
.brand { display: inline-flex; font-weight: 800; font-size: 18px; border-radius: 8px; overflow: hidden; line-height: 1; }
.brand__lego { background: var(--yellow); color: var(--purple); padding: 6px 8px; }
.brand__family { background: var(--purple); color: #fff; padding: 6px 8px; }
.top h1 { font-size: clamp(24px, 4vw, 34px); margin: 14px 0 6px; }
.lead { color: var(--muted); max-width: 760px; margin: 0; }

.studio {
  max-width: 1320px; margin: 0 auto; padding: 16px;
  display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1.1fr);
  align-items: start;
}
@media (max-width: 1080px) { .studio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .frame-card { grid-column: 1 / -1; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }

/* первый экран: текст + альбом */
.hero { max-width: 1320px; margin: 0 auto; padding: 22px 16px 8px; display: grid; gap: 24px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.hero h1 { font-family: "Comfortaa", "Nunito", sans-serif; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.08; margin: 18px 0 12px; }
.hero__mark { background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 4px; }
.hero__lead { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 0 18px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--big { padding: 15px 22px; font-size: 16px; border-radius: 14px; }
.hero__facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink); font-weight: 700; font-size: 14px; }
.hero__facts li::before { content: "✓"; color: var(--purple); margin-right: 6px; }

.album { position: relative; min-height: 600px; }
.polaroid {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  background: #fff; padding: 9px 9px 0; border-radius: 3px; border: 0; cursor: zoom-in;
  box-shadow: 0 10px 24px rgba(35,33,41,.18), 0 2px 4px rgba(35,33,41,.08);
  transform: rotate(var(--r)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  animation: drop .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d);
}
.polaroid img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.polaroid.is-wide img { aspect-ratio: 4 / 3; }
.polaroid figcaption { font: 600 21px/1 "Caveat", "Comfortaa", cursive; color: #3a3542; text-align: center; padding: 8px 4px 11px; }
.polaroid:hover, .polaroid:focus-visible { transform: rotate(0deg) scale(1.06); z-index: 200 !important; box-shadow: 0 18px 40px rgba(35,33,41,.28); }
.polaroid.has-tape::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 22px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 207, 31, .72); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
@keyframes drop { from { opacity: 0; transform: translateY(-24px) rotate(calc(var(--r) * 2)); } to { opacity: 1; transform: rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .polaroid { animation: none; transition: none; } }

.studio-head { max-width: 1320px; margin: 18px auto 0; padding: 0 16px; }
.studio-head h2 { font-family: "Comfortaa", "Nunito", sans-serif; font-size: clamp(22px, 3vw, 30px); margin: 0 0 4px; }

/* детали */
.picker__head { display: flex; gap: 10px; align-items: center; }
.mini { display: none; flex: none; width: 64px; height: auto; max-height: 96px; object-fit: contain; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  border: 0; background: var(--yellow-soft); color: var(--ink); font: 700 14px "Nunito", sans-serif;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
}
.tab.is-on { background: var(--yellow); }
.subtabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 7px 12px; font: 600 13px "Nunito", sans-serif; cursor: pointer; color: var(--muted); }
.seg button.is-on { background: var(--purple); color: #fff; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px;
  font: 600 13px "Nunito", sans-serif; cursor: pointer; color: var(--ink);
}
.chip.is-on { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.check.is-off { color: var(--muted); }

.grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  max-height: 560px; overflow-y: auto; padding: 2px;
}
.cell {
  position: relative; border: 2px solid transparent; background: #f6f5f8; border-radius: 12px;
  padding: 6px 4px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.cell img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.cell__n { font: 700 12px "Nunito", sans-serif; }
.cell__tag { position: absolute; top: 4px; right: 4px; font-size: 10px; background: var(--yellow); border-radius: 6px; padding: 1px 4px; }
.cell.is-on { border-color: var(--purple); background: var(--purple-soft); }
.cell:hover { border-color: #d7cde2; }

/* человечек */
.figure-stage { display: flex; justify-content: center; align-items: flex-end; min-height: 380px; background: radial-gradient(circle at 50% 70%, #fff 0, #f4f1ea 70%); border-radius: 12px; padding: 12px; }
#figure-canvas { max-width: 100%; height: auto; }
.field { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.field input, .order input, .order textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font: 500 15px "Nunito", sans-serif; color: var(--ink); background: #fff;
}
.fig-price { margin: 10px 0 0; color: var(--muted); }
.fig-price b { color: var(--ink); }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
/* «листайте →» под рядами, которые листаются вбок (телефон) */
.scroll-hint { flex: 1 0 100%; display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin: 2px 2px 0; font: 700 12px/1 "Nunito", sans-serif; color: var(--purple); }
.scroll-hint b { font-size: 16px; animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint b { animation: none; } }

/* «В руках»: две карточки-руки над категориями предметов */
.hands { flex: 1 0 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
.hand { position: relative; display: flex; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.hand.is-empty { border-style: dashed; }
.hand.is-target { border: 2px solid var(--purple); background: var(--purple-soft); }
.hand__pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 26px 6px 6px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.hand__pick img, .hand__ph { flex: none; width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #f4f1ea; }
.hand__ph { display: grid; place-items: center; color: var(--muted); font: 700 20px "Nunito", sans-serif; }
.hand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hand__text small { color: var(--muted); font-size: 11px; }
.hand__text b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hand.is-empty .hand__text b { font-weight: 600; color: var(--muted); }
.hand.is-target.is-empty .hand__text b { color: var(--purple); }
.hand__x { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--muted); font: 700 16px/1 "Nunito", sans-serif; cursor: pointer; }
.hand__x:hover { background: #f0edf5; color: var(--ink); }
.hands__swap { align-self: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--purple); font: 700 15px/1 "Nunito", sans-serif; cursor: pointer; }
.hands__swap:disabled { opacity: .35; cursor: default; }
.hands__hint { flex: 1 0 100%; margin: 0; }
.person { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.person.is-on { border-color: var(--purple); }
.person__pick, .person__x { border: 0; background: #fff; padding: 6px 10px; font: 600 13px "Nunito", sans-serif; cursor: pointer; }
.person.is-on .person__pick { background: var(--purple-soft); color: var(--purple); }
.person__x { color: var(--muted); padding: 6px 9px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn {
  border: 0; background: var(--purple); color: #fff; border-radius: 12px; padding: 11px 16px;
  font: 700 14px "Nunito", sans-serif; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: var(--purple-soft); color: var(--purple); }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
/* «так держит»: круглые фото болванки с предметом в углу большой фигурки */
.figure-stage { position: relative; }
.in-hand { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.in-hand:empty { display: none; }
.in-hand__pic { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; padding: 0; cursor: zoom-in; font: 600 11px/1.1 "Nunito", sans-serif; color: var(--purple); }
.in-hand__pic img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; background: #fff; border: 2px solid var(--purple); padding: 4px; box-shadow: 0 4px 12px rgba(35,33,41,.18); }
.in-hand__pic.is-wide img { width: 104px; height: 60px; border-radius: 30px; }
.in-hand__pic.is-tall img { width: 52px; height: 80px; border-radius: 26px; }
.photo-cap { margin: 8px 0 0; max-width: 520px; color: var(--ink); font-size: 14px; }
.fig-photo img { display: block; max-width: 140px; max-height: 140px; margin: 6px auto 0; border-radius: 10px; background: #f6f5f8; padding: 6px; }
.photo-box { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.photo-box .btn { width: 100%; }
.cell__tag--photo { background: var(--purple); color: #fff; }
#bg-note { display: flex; gap: 10px; align-items: center; }
.bg-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }

/* рамка */
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.frame {
  position: relative; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 8px;
  display: grid; gap: 1px; text-align: left; cursor: pointer; font-family: "Nunito", sans-serif;
}
.frame b { font-size: 15px; }
.frame span { font-size: 13px; }
.frame small { color: var(--muted); font-size: 12px; }
.frame i { position: absolute; top: -8px; right: 6px; background: var(--yellow); font: 800 10px "Nunito", sans-serif; font-style: normal; padding: 1px 6px; border-radius: 6px; }
.frame.is-on { border-color: var(--purple); background: var(--purple-soft); }
.colors { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
/* атрибут hidden сильнее display: flex (иначе одинокая «Белая» видна) */
[hidden] { display: none !important; }
.swatch { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; font: 600 13px "Nunito", sans-serif; }
.swatch.is-on { border-color: var(--purple); }
.swatch__dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.frame-stage { margin-top: 14px; background: #efece6; border-radius: 12px; padding: 16px; display: flex; justify-content: center; }
#frame-canvas { max-width: 100%; height: auto; max-height: 520px; box-shadow: 0 10px 30px rgba(35,33,41,.18); }

.estimate-box { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.est { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 4px 0; font-size: 14px; }
.est small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.total { font-size: 17px; margin-top: 8px; }
.total b { font-size: 22px; color: var(--purple); }

.order { display: grid; gap: 8px; margin-top: 18px; }
.order-text { width: 100%; margin-top: 8px; font: 13px/1.4 ui-monospace, Menlo, monospace; }
.link { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: 500 14px "Nunito", sans-serif; }
/* ссылка на макет без контакта и «переслать» */
.link-only { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.link-only .hint { margin: 0 0 8px; }
.link-only .row { display: flex; gap: 8px; }
.link-only .row .link { flex: 1; min-width: 0; }
.link-only #link-status { margin: 6px 0 0; font-size: 12px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.share .btn { flex: 1; text-align: center; text-decoration: none; }
#editing-note { background: var(--purple-soft); color: var(--purple); border-radius: 10px; padding: 8px 10px; }
#methods .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; border: 0; border-radius: 0; overflow: visible; }
#methods .seg button { border: 1px solid var(--line); border-radius: 12px; padding: 11px 8px; font-size: 14px; background: #fff; color: var(--ink); }
#methods .seg button.is-on { border-color: var(--purple); background: var(--purple); color: #fff; }
.ok { color: var(--ok); font-weight: 700; }
.warn { color: var(--warn); font-weight: 700; }

/* примеры фонов */
.examples { width: min(960px, calc(100vw - 32px)); max-height: 86vh; border: 0; border-radius: var(--radius); padding: 16px; }
.examples::backdrop { background: rgba(35,33,41,.5); }
.examples__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: -16px; background: #fff; padding: 4px 0 8px; }
.examples__head h3 { margin: 0; }
.ex-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ex { border: 2px solid transparent; background: #f6f5f8; border-radius: 10px; padding: 4px; cursor: pointer; }
.ex:hover { border-color: var(--purple); }
.ex img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.ex span { font-size: 12px; color: var(--muted); }

/* готовые работы и видео */
.top-links { margin: 6px 0 0; font-weight: 700; }
.top-links a { color: var(--purple); }
.works { max-width: 1320px; margin: 8px auto 0; padding: 8px 16px 24px; }
.works h2 { font-family: "Comfortaa", "Nunito", sans-serif; font-size: clamp(22px, 3vw, 28px); margin: 18px 0 6px; }
.works-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.works-grid button { border: 0; padding: 0; background: #fff; border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: 0 2px 8px rgba(35,33,41,.08); }
.works-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.works__sub { font: 700 17px/1.2 "Nunito", sans-serif; margin: 10px 0 8px; color: var(--ink); }
/* фото-отзывы — скриншоты переписок: высокие, показываем верх, крупно по нажатию */
.reviews-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.reviews-grid button { border: 0; padding: 0; background: #fff; border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: 0 2px 8px rgba(35,33,41,.08); }
.reviews-grid img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; object-position: top; display: block; }
.videos-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.videos-grid video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; }
.videos-grid video.is-wide { aspect-ratio: 16 / 9; }
.more:empty { display: none; }
/* превью на телефоне: крупное, перетаскивается пальцем (полоска сверху — «ручка») */
.mini-float { position: fixed; left: 10px; top: 10px; z-index: 50; border: 0; background: #fff; border-radius: 16px; padding: 14px 8px 8px; box-shadow: 0 8px 24px rgba(35,33,41,.28); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mini-float::before { content: ""; position: absolute; top: 5px; left: 50%; width: 26px; height: 4px; border-radius: 2px; background: #d9d4e3; transform: translateX(-50%); }
.mini-float.is-drag { cursor: grabbing; box-shadow: 0 14px 34px rgba(35,33,41,.38); transform: scale(1.04); }
.mini-float canvas { display: block; max-height: 180px; max-width: 130px; width: auto; height: auto; pointer-events: none; }
.photo-view { border: 0; padding: 12px; border-radius: var(--radius); max-width: min(960px, 96vw); }
.photo-view::backdrop { background: rgba(35,33,41,.7); }
.photo-view img { display: block; max-width: 100%; max-height: 82vh; margin-top: 8px; border-radius: 8px; }
.foot { max-width: 1320px; margin: 0 auto; padding: 8px 16px 32px; color: var(--muted); }

/* телефон — в конце файла, чтобы перекрывать общие правила выше */
@media (max-width: 720px) {
  /* Телефон: всё, что длинное, листается вбок, а не бесконечно вниз
     (владелец, 01.10.2026). Первый экран короткий — конструктор виден сразу. */

  /* первый экран */
  .hero { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px 0; }
  .hero h1 { font-size: 27px; margin: 10px 0 6px; }
  .hero__lead { font-size: 14px; margin-bottom: 10px; }
  .hero__cta { flex-wrap: nowrap; gap: 8px; }
  .hero__cta .btn--big { padding: 11px 8px; font-size: clamp(12.5px, 3.7vw, 14px); white-space: nowrap; flex: 1; text-align: center; }
  .hero__facts { margin-top: 8px; gap: 2px 10px; font-size: 12px; }
  .polaroid { animation: none; }

  /* первый экран — тот же альбом, что на компьютере (там он 519×600 при
     окне 1000): места и наклоны те же, отступы и подписи уменьшены в той же
     пропорции, что ширина (владелец выбрал, 01.10.2026) */
  .hero__text { display: contents; }
  .brand { order: 0; }
  .hero h1 { order: 1; }
  .album {
    order: 2; min-height: 0; height: auto; aspect-ratio: 519 / 468; container-type: inline-size; /* было 519 / 600: три нижних фото убраны, 06.10.2026 */
    /* всегда во всю ширину. Раньше ширина зависела от высоты экрана, и на
       телефоне альбом «подрастал», когда при прокрутке пряталась адресная
       строка; владельцу нравится крупный размер (01.10.2026) */
    width: 100%;
    justify-self: center; margin: 14px 0 18px; /* подписи нижних фото не липнут к тексту */
  }
  /* Телефон, 06.10.2026 (клиент): три нижних фото («Подарок коллеге»,
     «Годовщина семьи», «Love is…») убраны, «Наша семья» встала на место
     «Подарка коллеге» — блок ниже, кнопки видны на первом экране. Выбор по
     подписи, а не по номеру: порядок в data/hero.json можно менять.
     Места задаются через --x/--y/--w/--r (в разметке они inline), поэтому !important. */
  .polaroid:has(img[alt^="Подарок коллеге"]),
  .polaroid:has(img[alt^="Годовщина семьи"]),
  .polaroid:has(img[alt^="Love is"]) { display: none; }
  .polaroid:has(img[alt^="Наша семья"]) { --x: 53% !important; --y: 50% !important; --w: 22% !important; --r: 3deg !important; z-index: 50 !important; }
  .hero__lead { order: 3; }
  .hero__cta { order: 4; }
  .hero__facts { order: 5; }
  .no-phone { display: none; }
  .polaroid { padding: 1.73cqw 1.73cqw 0; box-shadow: 0 5px 12px rgba(35,33,41,.18), 0 1px 2px rgba(35,33,41,.08); }
  .polaroid figcaption { font-size: 4.05cqw; padding: 1.54cqw .77cqw 2.12cqw; }
  .polaroid.has-tape::before { width: 12.3cqw; height: 4.24cqw; top: -1.93cqw; }

  .studio-head { margin-top: 8px; padding: 0 14px; }
  .studio-head h2 { font-size: 22px; }
  .studio-head .lead { font-size: 13px; }

  /* конструктор: фигурка сверху, детали — две строки, листаются вбок */
  .studio { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 10px; }
  /* фигурка → детали → имя, человечки, «по фото»: выбираешь деталь и
     видишь фигурку на том же экране */
  .person-card { display: contents; }
  .person-card > .figure-stage { order: -3; background: var(--card); border: 1px solid var(--line); }
  .person-card > #fig-note, .person-card > #fig-photo { order: -3; margin: 0; }
  .person-card > #fig-note:empty, .person-card > #fig-photo:empty { display: none; }
  .picker { order: -2; }
  .person-more { order: -1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
  .figure-stage { min-height: 0; padding: 8px; }
  #figure-canvas { max-height: 220px; width: auto; }
  .card { padding: 12px; }
  .picker__head .tabs, .subtabs, .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .picker__head .tabs::-webkit-scrollbar, .subtabs::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
  .tab, .chip, .seg button { white-space: nowrap; }
  .subtabs { margin: 8px 0; }
  /* «Женские / Мужские / Детские / Особые / Борода…» не влезали в строку и
     обрезались, а «Телесные лицо и руки» ломалась в три строки */
  .subtabs:has(.seg), .subtabs:has(.hands) { flex-wrap: wrap; overflow: visible; }
  .subtabs .chips { flex: 1 0 100%; }
  .subtabs .seg { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 6px; border: 0; border-radius: 0; overflow: visible; }
  .subtabs .seg button { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
  .subtabs .seg button.is-on { border-color: var(--purple); }
  .subtabs .check { flex: 1 0 100%; }
  .grid {
    max-height: none; overflow-x: auto; overflow-y: hidden;
    grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-template-columns: none; grid-auto-columns: 78px;
    scroll-snap-type: x proximity; padding-bottom: 6px;
  }
  .cell { scroll-snap-align: start; }
  .mini { display: none; }

  /* готовые работы — плитка 3×3 + «Показать ещё»; видео — по два */
  .works { padding: 4px 12px 20px; }
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .works-grid button { border-radius: 10px; }
  .works-grid img { aspect-ratio: 1; }
  .videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .more { display: flex; justify-content: center; margin-top: 10px; }
  #works-tabs { flex-wrap: wrap; overflow: visible; }
}
