/* ==========================================================================
   ЛУЧ ШОП — pages/custom.css
   Страница «Пошив на заказ»: hero, конфигуратор свитера, сводка стоимости,
   заявка, шаги, «Кому шьём», FAQ. Только страничные классы .custom-*;
   всё общее (кнопки, поля, чипы, свотчи, аккордеон) — из main.css.
   ========================================================================== */

/* Локальный обход (запрошено в main.css): обёртка #site-header по высоте равна шапке, поэтому
   position: sticky у .hdr-wrap не срабатывает. display: contents выводит шапку в поток body. */
#site-header { display: contents; }

/* Якоря из шапки и подвала — отступ под липкую шапку. --custom-hdr-h выставляет custom.js
   по фактической высоте шапки (полная / компактная, десктоп / мобильная); fallback — по контракту. */
#configurator, #request, #how, #who, #schools, #wholesale, #clients, #faq { scroll-margin-top: calc(var(--custom-hdr-h, 104px) + 16px); }

/* Заголовок секции с подзаголовком */
.custom-section-title { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.custom-section-sub { font-size: 15px; line-height: 1.5; max-width: 640px; }
.section-head > button.section-head__link { background: none; }

/* --------------------------------------------------------------------------
   1. Hero (тёмная полоса в тоне блока «Пошив на заказ» с главной)
   -------------------------------------------------------------------------- */
.custom-hero { background: var(--navy); color: var(--white); overflow: hidden; }
.custom-hero .crumbs { padding-top: 16px; }
.custom-hero .crumbs a { color: rgba(255, 255, 255, .65); }
.custom-hero .crumbs a:hover { color: var(--white); }
.custom-hero .crumbs svg { color: rgba(255, 255, 255, .35); }
.custom-hero .crumbs__current { color: rgba(255, 255, 255, .9); }
.custom-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 36px 0 56px; }
.custom-hero__copy { display: flex; flex-direction: column; gap: 22px; }
.custom-hero__title { color: var(--white); font-size: 60px; font-weight: 700; line-height: .98; }
.custom-hero__lead { font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .75); max-width: 520px; }
.custom-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.custom-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 6px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.custom-hero__facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.custom-hero__facts svg { color: var(--red); }
.custom-hero__art { position: relative; display: flex; align-items: center; justify-content: center; height: 400px; border-radius: var(--r-12); background: rgba(255, 255, 255, .06); overflow: hidden; }
.custom-hero__art::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, transparent 0 138px, rgba(255, 255, 255, .10) 139px 141px, transparent 142px),
    linear-gradient(rgba(216, 35, 42, .55), rgba(216, 35, 42, .55)) 50% 0 / 2px 100% no-repeat;
}
.custom-hero__jersey { position: relative; transform: rotate(-6deg); animation: custom-float 6s ease-in-out infinite; will-change: transform; }
.custom-hero__jersey svg { width: 300px; height: 300px; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .38)); }
@keyframes custom-float { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-10px); } }
.custom-hero :focus-visible { outline-color: var(--white); }

/* --------------------------------------------------------------------------
   2. Конфигуратор: раскладка, превью, панель настроек
   -------------------------------------------------------------------------- */
.custom-cfg { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 32px; align-items: start; }
.custom-preview { position: sticky; top: calc(var(--hdr-main-compact) + var(--hdr-nav) + 24px); display: flex; flex-direction: column; gap: 20px; }
.custom-preview__panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-8); overflow: hidden; }

/* Сцена: два слоя для кроссфейда между состояниями свитера */
.custom-stage { position: relative; height: 440px; background: var(--media); }
.custom-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 54%, rgba(30, 79, 163, .07) 0 150px, transparent 151px),
    radial-gradient(circle at 50% 54%, transparent 0 148px, rgba(30, 79, 163, .16) 149px 151px, transparent 152px),
    linear-gradient(rgba(216, 35, 42, .28), rgba(216, 35, 42, .28)) 50% 0 / 2px 100% no-repeat;
}
.custom-stage__layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.965); transition: opacity 340ms var(--ease), transform 340ms var(--ease); pointer-events: none; }
.custom-stage__layer.is-front { opacity: 1; transform: none; }
.custom-stage__layer svg { width: 360px; height: 360px; filter: drop-shadow(0 18px 24px rgba(15, 30, 61, .16)); }
.custom-stage__hint { position: absolute; left: 16px; right: 16px; bottom: 12px; font-size: 12px; color: var(--soft); pointer-events: none; }
.custom-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 20px; border-top: 1px solid var(--line); }
.custom-legend__item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.custom-legend__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sw, var(--navy)); box-shadow: inset 0 0 0 1px rgba(15, 30, 61, .14); transition: background-color 300ms var(--ease); }

/* Панель настроек */
.custom-controls { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-8); padding: 2px 28px 26px; min-width: 0; }
.custom-group { display: flex; flex-direction: column; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.custom-group:last-child { border-bottom: 0; padding-bottom: 0; }
.custom-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.custom-group__title { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; font-weight: 600; letter-spacing: .02em; color: var(--navy); line-height: 1.1; }
.custom-group__hint { font-size: 13px; color: var(--muted); }

/* Готовые сочетания цветов */
.custom-presets { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; -webkit-overflow-scrolling: touch; }
.custom-presets::-webkit-scrollbar { display: none; }
.custom-preset { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; width: 104px; padding: 10px 8px 8px; border: 1.5px solid var(--line); border-radius: var(--r-6); background: var(--white); color: var(--navy); font-size: 12px; font-weight: 500; white-space: nowrap; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease); }
.custom-preset:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.custom-preset:active { transform: scale(.97); }
.custom-preset.is-active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.custom-preset svg { width: 64px; height: 64px; }

/* Три цвета: основной / отделка / акцент */
.custom-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.custom-color { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-6); background: var(--ice); min-width: 0; }
.custom-color__label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--navy); }
.custom-color__value { font-size: 12px; font-weight: 400; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.custom-color__sub { font-size: 12px; color: var(--muted); margin-top: -4px; }
.custom-color .swatches { gap: 8px; }
.custom-color .swatch { width: 26px; height: 26px; }
.custom-native { position: relative; display: inline-flex; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; cursor: pointer; background: conic-gradient(#D8232A, #F5C542, #2E7D4F, #1E4FA3, #7A1F2B, #D8232A); box-shadow: inset 0 0 0 1px rgba(15, 30, 61, .12); outline: 2px solid transparent; outline-offset: 2px; transition: transform 160ms var(--ease), outline-color var(--t-hover) var(--ease); }
.custom-native::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px rgba(15, 30, 61, .12); transition: background-color 200ms var(--ease); }
.custom-native.is-active::after { background: var(--sw, var(--white)); }
.custom-native:hover { transform: scale(1.08); }
.custom-native.is-active, .custom-native:focus-within { outline-color: var(--red); }
.custom-native input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.custom-club { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.custom-club .select { max-width: 320px; }

/* Название и номер */
.custom-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.custom-fields .field__label { display: flex; justify-content: space-between; gap: 8px; }
.custom-fields .input { text-transform: uppercase; }
.custom-fields .input::placeholder { text-transform: none; }
.custom-count { font-variant-numeric: tabular-nums; color: var(--soft); font-weight: 400; }

/* Переключатель «полосы на рукавах» */
.custom-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-6); background: var(--white); text-align: left; transition: border-color var(--t-hover) var(--ease); }
.custom-switch:hover { border-color: var(--line-2); }
.custom-switch__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.custom-switch__title { font-size: 15px; font-weight: 600; color: var(--navy); }
.custom-switch__sub { font-size: 13px; color: var(--muted); }
.custom-switch__track { position: relative; width: 46px; height: 26px; border-radius: 13px; background: var(--line-2); flex-shrink: 0; transition: background-color 240ms var(--ease); }
.custom-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(15, 30, 61, .28); transition: transform 240ms var(--ease); }
.custom-switch[aria-checked="true"] { border-color: var(--navy); }
.custom-switch[aria-checked="true"] .custom-switch__track { background: var(--red); }
.custom-switch[aria-checked="true"] .custom-switch__track::after { transform: translateX(20px); }

/* Размерный ряд и тираж */
.custom-sizes { display: flex; flex-direction: column; gap: 10px; }
.custom-qty { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.custom-qty__input { width: 64px; height: 100%; border: 0; background: transparent; text-align: center; font-size: 16px; font-weight: 600; color: var(--ink); outline: none; padding: 0; border-radius: 0; }
.custom-qty__input:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; border-radius: 2px; }
.custom-qty__hint { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.custom-qty__hint b { color: var(--navy); font-weight: 600; }

/* Нанесение */
.custom-print { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.custom-print .radio-card { position: relative; }
.custom-print .radio-card__extra { font-size: 12px; font-weight: 600; color: var(--navy); margin-top: 4px; }

/* --------------------------------------------------------------------------
   3. Сводка стоимости
   -------------------------------------------------------------------------- */
.custom-summary { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-8); }
.custom-summary__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.custom-summary__price { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--navy); line-height: 1; }
.custom-summary__price small { font-size: 16px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.custom-summary__price b { display: inline-block; font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; transform-origin: left center; }
.custom-summary.is-bump .custom-summary__price b { animation: custom-bump 360ms var(--ease); }
@keyframes custom-bump { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
.custom-summary__rows { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.custom-summary__rows .sum-row--discount { animation: fade-up 320ms var(--ease); }
.custom-summary__note { font-size: 12px; line-height: 1.5; color: var(--soft); }
.custom-summary__cta { display: flex; flex-direction: column; gap: 8px; }
.custom-summary__reset { align-self: flex-start; color: var(--muted); background: none; }
.custom-summary__reset:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   4. Заявка: форма, успех, сводка конфигурации
   -------------------------------------------------------------------------- */
.custom-request { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.custom-form-wrap { overflow: hidden; }
.custom-form { display: flex; flex-direction: column; gap: 22px; padding: 28px; }
.custom-form.is-shake { animation: custom-shake 380ms var(--ease); }
@keyframes custom-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.custom-form__foot { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.custom-form .checkbox { align-items: flex-start; line-height: 1.45; }
.custom-form .checkbox__box { margin-top: 2px; }
.custom-form .checkbox__label a { text-decoration: underline; text-underline-offset: 2px; }
.custom-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 48px 28px 44px; animation: fade-up 420ms var(--ease) both; }
.custom-success__icon { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: #EAF6EE; color: var(--success); animation: custom-pop 560ms var(--ease) both; }
@keyframes custom-pop { from { opacity: 0; transform: scale(.5); } 60% { transform: scale(1.08); } to { opacity: 1; transform: none; } }
.custom-success__title { margin-top: 6px; }
.custom-success__num { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--red); letter-spacing: .04em; }
.custom-success__text { max-width: 520px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.custom-success__text b { color: var(--ink); white-space: nowrap; }
.custom-success__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

.custom-recap { position: sticky; top: calc(var(--hdr-main-compact) + var(--hdr-nav) + 24px); display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-8); }
.custom-recap__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.custom-recap__title { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; font-weight: 600; color: var(--navy); }
.custom-recap__media { display: flex; align-items: center; justify-content: center; height: 180px; border-radius: var(--r-6); background: var(--media); }
.custom-recap__media svg { width: 150px; height: 150px; }
.custom-recap__list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.custom-recap__list dt { color: var(--muted); }
.custom-recap__list dd { margin: 0; color: var(--ink); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.custom-recap__dots { display: inline-flex; gap: 6px; vertical-align: middle; }
.custom-recap__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--sw, var(--navy)); box-shadow: inset 0 0 0 1px rgba(15, 30, 61, .14); transition: background-color 300ms var(--ease); }
.custom-recap__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.custom-recap__total b { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy); white-space: nowrap; }

/* --------------------------------------------------------------------------
   5. Как это работает
   -------------------------------------------------------------------------- */
.custom-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.custom-steps::before { content: ''; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--line); }
.custom-step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.custom-step__n { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--white); font-family: var(--font-display); font-size: 18px; font-weight: 700; box-shadow: 0 0 0 6px var(--ice); }
.custom-step__body { display: flex; flex-direction: column; gap: 8px; }
.custom-step__title { font-size: 20px; }
.custom-step__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.custom-step__meta { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 6px 10px; border-radius: var(--r-4); background: var(--white); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--navy); }
.custom-step__meta svg { color: var(--red); }

/* --------------------------------------------------------------------------
   6. Кому шьём
   -------------------------------------------------------------------------- */
.custom-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.custom-who__card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-8); min-width: 0; }
.custom-who__card--wide { grid-column: span 2; gap: 20px; }
.custom-who__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ice); color: var(--red); flex-shrink: 0; }
.custom-who__card h3 { font-size: 24px; }
.custom-who__card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.custom-who__actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 8px; }
.custom-who__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.custom-who__intro { display: flex; flex-direction: column; gap: 12px; }
.custom-who__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.custom-who__clubs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   7. FAQ и контакты производства
   -------------------------------------------------------------------------- */
.custom-faq { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.custom-faq__list { padding: 0 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-8); }
.custom-faq__list .acc:last-child { border-bottom: 0; }
.custom-faq__list .acc__content { padding-right: 36px; color: var(--muted); }
.custom-contact { position: sticky; top: calc(var(--hdr-main-compact) + var(--hdr-nav) + 24px); display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; background: var(--navy); color: var(--white); border-radius: var(--r-8); }
.custom-contact h3 { color: var(--white); font-size: 24px; }
.custom-contact p { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .75); margin-bottom: 6px; }
.custom-contact .btn { justify-content: flex-start; }
.custom-contact__mail, .custom-contact__addr { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.custom-contact__mail { align-items: center; }
.custom-contact__mail:hover { color: var(--white); }
.custom-contact__addr { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .65); }
.custom-contact__addr svg, .custom-contact__mail svg { color: var(--red); flex-shrink: 0; }
.custom-contact :focus-visible { outline-color: var(--white); }

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
/* Невысокие экраны ноутбуков: липкая колонка превью + сводка должна помещаться целиком,
   иначе кнопка «Оставить заявку» уезжает за край окна */
@media (min-width: 1025px) and (max-height: 1040px) {
  .custom-preview { gap: 16px; top: calc(var(--hdr-main-compact) + var(--hdr-nav) + 16px); }
  .custom-stage { height: 320px; }
  .custom-stage__layer svg { width: 270px; height: 270px; }
  .custom-legend { padding: 10px 20px; }
  .custom-summary { gap: 10px; padding: 18px 20px 20px; }
  .custom-summary__price b { font-size: 34px; }
  .custom-summary__rows { gap: 6px; padding: 10px 0; }
  .custom-summary__cta .btn--ghost { display: none; }
}
@media (min-width: 1025px) and (max-height: 820px) {
  .custom-preview { position: static; }
}

@media (max-width: 1280px) {
  .custom-hero__title { font-size: 52px; }
  .custom-cfg { grid-template-columns: 420px minmax(0, 1fr); gap: 24px; }
  .custom-stage { height: 400px; }
  .custom-stage__layer svg { width: 320px; height: 320px; }
  .custom-controls { padding: 2px 22px 22px; }
  .custom-request, .custom-faq { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .custom-who__row { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 1024px) {
  #configurator, #request, #how, #who, #schools, #wholesale, #clients, #faq { scroll-margin-top: calc(var(--custom-hdr-h, 64px) + 16px); }
  .custom-hero__grid { grid-template-columns: 1fr; gap: 28px; padding: 24px 0 36px; }
  .custom-hero__title { font-size: 44px; }
  .custom-hero__art { height: 300px; }
  .custom-hero__jersey svg { width: 230px; height: 230px; }

  /* Конфигуратор в одну колонку: превью → настройки → сводка;
     сцена остаётся видимой под мобильной шапкой при прокрутке настроек */
  .custom-cfg { grid-template-columns: 1fr; gap: 16px; }
  .custom-preview { display: contents; }
  .custom-preview__panel { order: 1; position: sticky; top: calc(var(--custom-hdr-h, var(--mhdr-bar)) + 8px); z-index: 5; box-shadow: 0 8px 24px rgba(15, 30, 61, .08); }
  .custom-controls { order: 2; }
  .custom-summary { order: 3; }
  .custom-stage { height: 300px; }
  .custom-stage__layer svg { width: 250px; height: 250px; }
  .custom-stage__hint { display: none; }
  .custom-legend { padding: 10px 16px; }

  .custom-request, .custom-faq { grid-template-columns: 1fr; }
  .custom-recap, .custom-contact { position: static; }
  .custom-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .custom-steps::before { display: none; }
  .custom-step__n { box-shadow: none; }
}

/* На невысоких мобильных экранах липкое превью съедало бы почти весь экран — оставляем его в потоке */
@media (max-width: 1024px) and (max-height: 640px) {
  .custom-preview__panel { position: static; box-shadow: none; }
}

@media (max-width: 640px) {
  .custom-section-head { flex-wrap: wrap; gap: 12px; }
  .custom-section-head .custom-section-title { flex: 1 1 100%; }
  .custom-section-sub { font-size: 14px; }
  .custom-hero .crumbs { padding-top: 12px; }
  .custom-hero__grid { gap: 20px; padding: 18px 0 28px; }
  .custom-hero__copy { gap: 16px; }
  .custom-hero__title { font-size: 36px; }
  .custom-hero__lead { font-size: 15px; }
  .custom-hero__cta { flex-direction: column; gap: 10px; }
  .custom-hero__cta .btn { width: 100%; }
  .custom-hero__facts { flex-direction: column; gap: 8px; padding-top: 16px; }
  .custom-hero__art { height: 210px; background: transparent; }
  .custom-hero__art::before { display: none; }
  .custom-hero__jersey { animation: none; transform: none; }
  .custom-hero__jersey svg { width: 190px; height: 190px; }

  .custom-stage { height: 220px; }
  .custom-stage__layer svg { width: 190px; height: 190px; }
  .custom-legend { gap: 6px 12px; }
  .custom-legend__item { font-size: 12px; }
  .custom-controls { padding: 0 16px 18px; }
  .custom-group { padding: 18px 0; gap: 12px; }
  .custom-group__title { font-size: 16px; }
  .custom-colors { grid-template-columns: 1fr; gap: 10px; }
  .custom-color { padding: 12px; }
  .custom-color .swatch, .custom-native { width: 30px; height: 30px; }
  .custom-native::after { inset: 7px; }
  .custom-club .select { max-width: none; }
  .custom-fields { grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
  .custom-print { grid-template-columns: 1fr; gap: 8px; }
  .custom-print .radio-card { padding: 12px 14px; }
  .custom-qty { gap: 12px; }
  .custom-summary { padding: 18px 16px 20px; }
  .custom-summary__price b { font-size: 34px; }

  .custom-form { padding: 20px 16px; gap: 18px; }
  .custom-form__foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .custom-form__foot .btn { width: 100%; }
  .custom-success { padding: 36px 16px 32px; }
  .custom-success__actions { flex-direction: column; width: 100%; }
  .custom-success__actions .btn { width: 100%; }
  .custom-recap { padding: 18px 16px; }
  .custom-recap__media { height: 140px; }
  .custom-recap__media svg { width: 120px; height: 120px; }

  .custom-steps { grid-template-columns: 1fr; gap: 18px; }
  .custom-step { flex-direction: row; gap: 14px; }
  .custom-step__n { width: 36px; height: 36px; font-size: 15px; flex-shrink: 0; }
  .custom-step__title { font-size: 18px; }

  .custom-who { grid-template-columns: 1fr; gap: 12px; }
  .custom-who__card { padding: 20px 16px; }
  .custom-who__card--wide { grid-column: span 1; }
  .custom-who__card h3 { font-size: 20px; }
  .custom-who__card p { font-size: 14px; }
  .custom-who__actions .btn { width: 100%; }
  .custom-who__stats { gap: 10px; }
  .custom-who__clubs { gap: 8px; padding-top: 16px; }

  .custom-faq__list { padding: 0 16px; }
  .custom-faq__list .acc__btn { font-size: 15px; padding: 16px 0; }
  .custom-faq__list .acc__content { padding-right: 0; font-size: 14px; }
  .custom-contact { padding: 22px 18px; }
  .custom-contact h3 { font-size: 20px; }
  .custom-contact .btn { width: 100%; }
}

@media (max-width: 380px) {
  .custom-hero__title { font-size: 32px; }
  .custom-fields { grid-template-columns: 1fr; }
  .custom-who__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .custom-who__stats .stat__num { font-size: 28px; }
}
