/* ============================================================================
   Магазин «Банзай» — самодостаточная тёмная тема «как приложение».

   Ничего не наследует от general.css / theme_refresh.css / dark_2026.css:
   легаси-каскад основного сайта построен на сквозных классах (.item — 111
   употреблений) и жёстких id-селекторах, и любая правка там расползается
   по кабинету и панели тренера. Здесь — один файл, свои токены, никаких
   !important ради борьбы с чужими стилями.

   Палитра продолжает язык лендинга /volga и dark_2026.css:
   фон почти чёрный, единственный акцент — зелёный #67d200.
   ========================================================================= */

@font-face { font-family: 'Mont'; src: url('/fonts/Montserrat-Regular.ttf');  font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mont'; src: url('/fonts/Montserrat-SemiBold.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Mont'; src: url('/fonts/Montserrat-Black.ttf');    font-weight: 900; font-display: swap; }

:root{
    --bg:        #0b0b0c;
    --bg-soft:   #111113;
    --panel:     #151517;
    --card:      #1a1a1d;
    --card-hi:   #212126;
    --line:      #2a2a30;
    --line-soft: #202025;

    --ink:       #f6f6f7;
    --text:      #c6c6cc;
    --dim:       #8b8b95;
    --faint:     #5f5f69;

    --green:     #67d200;
    --green-ink: #0e2000;
    --green-dim: #4a9a00;
    --red:       #ff5a52;
    --amber:     #ffb020;
    --blue:      #4aa8ff;

    --radius:    18px;
    --radius-sm: 12px;
    --bar-h:     62px;

    --safe-b:    env(safe-area-inset-bottom, 0px);
    --safe-t:    env(safe-area-inset-top, 0px);

    /* Нижняя навигация целиком и воздух под последним блоком страницы.
       Раньше запас был 8px — главная кнопка («Оформить», «Оформить заказ»)
       вплотную упиралась в навигацию, а на iPhone её ещё и перекрывала
       панель Safari. Вся арифметика отступов снизу теперь здесь. */
    --tabbar-h:  calc(var(--bar-h) + var(--safe-b));
    --page-gap:  30px;
    --buybar-h:  68px;

    --shadow:    0 10px 30px rgba(0,0,0,.45);
    --font:      'Mont', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif,
                 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
}

*,*::before,*::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body.shop{
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--tabbar-h) + var(--page-gap));
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

/* Страница товара: над навигацией висит ещё и панель «В корзину» */
body.shop.has-buybar{
    padding-bottom: calc(var(--tabbar-h) + var(--buybar-h) + var(--page-gap));
}

/* На широких экранах запаса нужно больше: кнопка там крупнее и ближе к краю */
@media (min-width: 620px){
    :root{ --page-gap: 38px; }
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; }

/* Иконки рисуются штрихом — один стиль на весь магазин */
svg{
    width: 22px; height: 22px;
    fill: none; stroke: currentColor;
    stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible{ outline: 2px solid var(--green); outline-offset: 2px; }

.wrap{ max-width: 900px; margin: 0 auto; padding: 0 14px; }

/* ------------------------------------------------------------- верхняя панель */
.appbar{
    position: sticky; top: 0; z-index: 40;
    background: rgba(11,11,12,.92);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
    padding-top: var(--safe-t);
}
.appbar__row{
    display: flex; align-items: center; gap: 6px;
    height: 56px; max-width: 900px; margin: 0 auto; padding: 0 8px;
}
.appbar__logo img{ height: 26px; width: auto; margin: 0 6px; }
.appbar__title{
    flex: 1 1 auto; min-width: 0;
    font-weight: 900; font-size: 16px; letter-spacing: .01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    padding-left: 4px;
}
.appbar__actions{ display: flex; align-items: center; gap: 2px; }

.iconbtn{
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: transparent; border: 0; cursor: pointer;
    color: var(--ink);
    transition: background .15s, color .15s;
}
.iconbtn:hover{ background: var(--card); }
.iconbtn:active{ transform: scale(.94); }

.badge{
    position: absolute; top: 4px; right: 3px;
    min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px;
    background: var(--green); color: var(--green-ink);
    font-size: 10px; font-weight: 900; line-height: 17px; text-align: center;
    box-shadow: 0 0 0 2px var(--bg);
}
.badge.is-hidden{ display: none; }

/* -------------------------------------------------------------------- поиск */
.searchbar{
    display: flex; align-items: center; gap: 8px;
    max-width: 900px; margin: 0 auto 10px; padding: 0 14px;
    position: relative;
}
.searchbar svg{ position: absolute; left: 26px; color: var(--dim); width: 18px; height: 18px; }
.searchbar input{
    flex: 1; height: 42px; padding: 0 38px;
    background: var(--card); color: var(--ink);
    border: 1px solid var(--line); border-radius: 21px;
    font-size: 15px; outline: none;
    transition: border-color .15s, background .15s;
}
.searchbar input::placeholder{ color: var(--faint); }
.searchbar input:focus{ border-color: var(--green); background: var(--card-hi); }
.searchbar__clear{
    position: absolute; right: 26px; color: var(--dim);
    font-size: 22px; line-height: 1; padding: 4px;
}

/* --------------------------------------------------------- нижняя навигация */
.tabbar{
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; justify-content: space-around; align-items: stretch;
    height: calc(var(--bar-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    background: rgba(17,17,19,.95);
    backdrop-filter: saturate(140%) blur(16px);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    border-top: 1px solid var(--line);
}
.tabbar__item{
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    color: var(--faint); font-size: 10px; font-weight: 600;
    letter-spacing: .01em; padding-top: 6px;
    transition: color .15s;
}
.tabbar__item.is-active{ color: var(--green); }
.tabbar__item:active{ transform: scale(.95); }
.tabbar__icon{ position: relative; display: block; height: 24px; }
.tabbar__icon svg{ width: 23px; height: 23px; }

/* ------------------------------------------------------------------ типографика */
.h1{
    font-size: 26px; font-weight: 900; line-height: 1.12;
    letter-spacing: -.02em; margin: 18px 0 4px;
    text-transform: uppercase;
}
.h1::before{
    content: ''; display: block;
    width: 46px; height: 4px; background: var(--green); margin-bottom: 12px;
}
.h2{
    font-size: 18px; font-weight: 900; letter-spacing: -.01em;
    margin: 26px 0 12px; display: flex; align-items: center; gap: 8px;
}
.sub{ color: var(--dim); font-size: 13px; margin: 0 0 14px; }
.muted{ color: var(--dim); }

/* ------------------------------------------------------------------- кнопки */
.btn{
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 20px;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--card); color: var(--ink);
    font-weight: 700; font-size: 14px; letter-spacing: .02em;
    cursor: pointer; text-align: center;
    transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:active{ transform: scale(.985); }
.btn:disabled{ opacity: .45; cursor: not-allowed; }
.btn--primary{
    background: var(--green); border-color: var(--green); color: var(--green-ink);
    font-weight: 900; text-transform: uppercase;
}
.btn--primary:hover:not(:disabled){ background: #74e800; border-color: #74e800; }
.btn--ghost{ background: transparent; border-color: var(--green); color: var(--ink); }
.btn--ghost:hover{ background: rgba(103,210,0,.12); }
.btn--danger{ border-color: rgba(255,90,82,.5); color: var(--red); background: transparent; }
.btn--block{ display: flex; width: 100%; }
.btn--sm{ min-height: 38px; padding: 0 14px; font-size: 13px; }

/* ------------------------------------------------------------------- сторис */
.stories{
    display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
    padding: 14px 14px 4px; margin: 0 auto; max-width: 900px;
    scroll-snap-type: x proximity;
}
.stories::-webkit-scrollbar{ display: none; }
.story{
    flex: 0 0 auto; width: 74px; text-align: center;
    background: none; border: 0; padding: 0; cursor: pointer;
    scroll-snap-align: start;
}
.story__ring{
    display: block;            /* span по умолчанию строчный — height не применился бы */
    width: 68px; height: 68px; border-radius: 50%;
    padding: 2.5px; margin: 0 auto 6px;
    background: conic-gradient(from 210deg, var(--green), #b6ff4d, var(--green));
    transition: transform .12s;
}
.story.is-seen .story__ring{ background: var(--line); }
.story:active .story__ring{ transform: scale(.94); }
.story__inner{
    width: 100%; height: 100%; border-radius: 50%;
    border: 2.5px solid var(--bg);
    background: var(--card) center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; overflow: hidden;
}
.story__label{
    font-size: 10.5px; color: var(--text); line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* просмотрщик */
.viewer{
    position: fixed; inset: 0; z-index: 100;
    background: #000; display: none;
    flex-direction: column;
}
.viewer.is-open{ display: flex; }
.viewer__bars{
    display: flex; gap: 4px; padding: calc(var(--safe-t) + 10px) 12px 0;
}
.viewer__bar{ flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.viewer__fill{ display: block; height: 100%; width: 0; background: #fff; }
.viewer__top{
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; color: #fff;
}
.viewer__title{ flex: 1; font-weight: 700; font-size: 14px; }
.viewer__close{ background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 6px; }
.viewer__stage{
    flex: 1; position: relative; display: flex; align-items: flex-end;
    background: #000 center/cover no-repeat;
}
.viewer__nav{ position: absolute; inset: 0; display: flex; }
.viewer__nav button{ flex: 1; background: none; border: 0; cursor: pointer; }
.viewer__content{
    position: relative; width: 100%; padding: 26px 20px calc(30px + var(--safe-b));
    background: linear-gradient(to top, rgba(0,0,0,.92) 25%, rgba(0,0,0,0));
    color: #fff; pointer-events: none;
}
.viewer__headline{ font-size: 24px; font-weight: 900; line-height: 1.15; margin-bottom: 8px; text-transform: uppercase; }
.viewer__text{ font-size: 15px; color: #e2e2e2; max-width: 34em; }
.viewer__cta{
    pointer-events: auto; display: inline-flex; margin-top: 18px;
    min-height: 46px; align-items: center; padding: 0 22px;
    background: var(--green); color: var(--green-ink);
    border-radius: 12px; font-weight: 900; text-transform: uppercase; font-size: 14px;
}

/* --------------------------------------------------------------- чипсы фильтра */
.chips{
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    padding: 8px 14px; max-width: 900px; margin: 0 auto;
}
.chips::-webkit-scrollbar{ display: none; }
.chip{
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 14px; border-radius: 18px;
    background: var(--card); border: 1px solid var(--line);
    color: var(--text); font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.chip.is-active{ background: var(--green); border-color: var(--green); color: var(--green-ink); font-weight: 900; }
.chip__count{ font-size: 11px; opacity: .65; }

/* ------------------------------------------------------------ сетка товаров */
.grid{
    display: grid; gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px 14px 24px; max-width: 900px; margin: 0 auto;
}
@media (min-width: 620px){ .grid{ grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; } }
@media (min-width: 860px){ .grid{ grid-template-columns: repeat(4, minmax(0,1fr)); } }

.pcard{
    position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line-soft);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color .15s, transform .12s;
}
.pcard:hover{ border-color: var(--line); }
.pcard.is-out{ opacity: .62; }
.pcard__media{ position: relative; display: block; background: #fff; aspect-ratio: 1/1; }
.pcard__media img{ width: 100%; height: 100%; object-fit: contain; }
.pcard__tags{ position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tag{
    display: inline-block; padding: 3px 7px; border-radius: 6px;
    font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
}
.tag--sale{ background: var(--red); color: #fff; }
.tag--new{ background: var(--green); color: var(--green-ink); }
.tag--hit{ background: var(--amber); color: #2a1c00; }
.tag--out{ background: #3a3a42; color: #d8d8de; }

.pcard__fav{
    position: absolute; top: 6px; right: 6px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(12,12,14,.6); border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; backdrop-filter: blur(6px);
    transition: color .15s, transform .12s;
}
.pcard__fav svg{ width: 18px; height: 18px; }
.pcard__fav.is-active{ color: var(--green); }
.pcard__fav.is-active svg{ fill: var(--green); }
/* кнопка «в избранное» в нижней панели карточки товара */
.btn.js-fav.is-active{ border-color: var(--green); }
.btn.js-fav.is-active svg{ fill: var(--green); stroke: var(--green); }
.pcard__fav:active{ transform: scale(.88); }

.pcard__body{ padding: 10px 11px 6px; flex: 1; }
.pcard__price{ display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pcard__now{ font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.pcard__old{ font-size: 12px; color: var(--faint); text-decoration: line-through; }
.pcard__name{
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; margin-top: 5px; font-size: 13px; line-height: 1.3; color: var(--text);
}
.pcard__cat{ margin-top: 5px; font-size: 11px; color: var(--faint); }
.pcard__buy{
    margin: 8px 11px 11px; min-height: 38px;
    border: 1.5px solid var(--green); border-radius: 10px;
    background: transparent; color: var(--ink);
    font-size: 12.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
    cursor: pointer; transition: background .15s, color .15s;
}
.pcard__buy:hover:not(:disabled){ background: var(--green); color: var(--green-ink); }
.pcard__buy:disabled{ border-color: var(--line); color: var(--faint); cursor: not-allowed; }
.pcard__buy.is-added{ background: var(--green); color: var(--green-ink); }

/* -------------------------------------------------------------- промо-блоки */
.promo{
    display: flex; gap: 14px; align-items: center;
    margin: 6px 14px 18px; padding: 16px;
    background: linear-gradient(135deg, rgba(103,210,0,.14), rgba(103,210,0,.02));
    border: 1px solid rgba(103,210,0,.3); border-radius: var(--radius);
    max-width: 900px;
}
@media (min-width: 928px){ .promo{ margin-left: auto; margin-right: auto; } }
.promo__icon{ font-size: 34px; line-height: 1; flex: 0 0 auto; }
.promo__body{ flex: 1; min-width: 0; }
.promo__title{ display: block; font-weight: 900; font-size: 15px; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .01em; }
.promo__text{ display: block; font-size: 12.5px; color: var(--text); }
.promo__go{ flex: 0 0 auto; color: var(--green); }

/* ---------------------------------------------------------------- карточка товара */
.gallery{ position: relative; background: #fff; }
.gallery__track{
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; aspect-ratio: 1/1;
}
.gallery__track::-webkit-scrollbar{ display: none; }
.gallery__track img{ flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.gallery__dots{ position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery__dot{ width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.25); transition: background .2s, width .2s; }
.gallery__dot.is-active{ background: #111; width: 18px; border-radius: 3px; }

/* запас под фиксированную панель покупки даёт body.has-buybar */
.pdp{ max-width: 900px; margin: 0 auto; padding: 0 14px 10px; }
.pdp__head{ padding: 18px 0 4px; }
.pdp__cat{ display: inline-block; font-size: 11px; color: var(--green); text-transform: uppercase; letter-spacing: .08em; font-weight: 900; margin-bottom: 8px; }
.pdp__name{ font-size: 21px; font-weight: 900; line-height: 1.2; margin: 0 0 10px; }
.pdp__price{ display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.pdp__now{ font-size: 28px; font-weight: 900; letter-spacing: -.02em; }
.pdp__old{ font-size: 15px; color: var(--faint); text-decoration: line-through; }
.pdp__save{ font-size: 12px; font-weight: 900; color: var(--green); }

.optgroup{ margin: 20px 0; }
.optgroup__label{
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 12px; color: var(--dim); margin-bottom: 9px;
    text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
}
.optgroup__hint{ color: var(--red); text-transform: none; letter-spacing: 0; font-weight: 600; display: none; }
.optgroup.is-invalid .optgroup__hint{ display: inline; }
.opts{ display: flex; flex-wrap: wrap; gap: 8px; }
.opt{
    min-width: 52px; min-height: 42px; padding: 0 14px;
    border: 1.5px solid var(--line); border-radius: 11px;
    background: var(--card); color: var(--text);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.opt.is-active{ border-color: var(--green); color: var(--ink); background: rgba(103,210,0,.12); font-weight: 900; }
.optgroup.is-invalid .opt{ border-color: rgba(255,90,82,.6); }

.qty{ display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 11px; overflow: hidden; }
.qty button{
    width: 40px; height: 42px; background: var(--card); border: 0;
    font-size: 20px; font-weight: 700; cursor: pointer; color: var(--ink);
    transition: background .15s;
}
.qty button:hover{ background: var(--card-hi); }
.qty button:disabled{ color: var(--faint); cursor: not-allowed; }
.qty__value{ min-width: 46px; text-align: center; font-weight: 900; font-size: 15px; }

.pdp__desc{ margin: 24px 0; color: var(--text); font-size: 14.5px; line-height: 1.6; }
.pdp__desc b, .pdp__desc strong{ color: var(--ink); }
.pdp__desc ul{ padding-left: 20px; }
.pdp__desc img{ border-radius: var(--radius-sm); margin: 10px 0; }

.buybar{
    position: fixed; left: 0; right: 0; bottom: calc(var(--bar-h) + var(--safe-b)); z-index: 42;
    display: flex; gap: 10px; align-items: center;
    padding: 10px 14px calc(10px);
    background: rgba(17,17,19,.96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
}
.buybar__inner{ display: flex; gap: 10px; align-items: center; max-width: 900px; margin: 0 auto; width: 100%; }
.buybar .btn{ flex: 1; }

/* ---------------------------------------------------------------- список/строки */
.list{ max-width: 900px; margin: 0 auto; padding: 0 14px; }
.row{
    display: flex; gap: 12px; align-items: flex-start;
    padding: 13px; background: var(--card);
    border: 1px solid var(--line-soft); border-radius: var(--radius);
    margin-bottom: 10px;
}
.row__media{ flex: 0 0 74px; width: 74px; height: 74px; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.row__media img{ width: 100%; height: 100%; object-fit: contain; }
.row__body{ flex: 1; min-width: 0; }
.row__name{ font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.row__meta{ font-size: 12px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.row__foot{ display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.row__price{ font-size: 16px; font-weight: 900; white-space: nowrap; }
.row__del{ background: none; border: 0; color: var(--faint); cursor: pointer; padding: 6px; transition: color .15s; }
.row__del:hover{ color: var(--red); }
.row.is-blocked{ border-color: rgba(255,90,82,.35); }
.row__warn{ font-size: 12px; color: var(--red); margin-top: 6px; }

/* -------------------------------------------------------------------- итог */
.summary{
    max-width: 900px; margin: 0 auto; padding: 16px 14px 0;
}
.summary__box{
    display: block;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px;
}
.summary__line{ display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 14px; color: var(--text); }
.summary__line--total{ border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 900; color: var(--ink); }
.summary__line--save{ color: var(--green); }

/* ------------------------------------------- финальный блок с главной кнопкой
   Один класс на все страницы, где внизу стоит «Оформить» / «Оформить заказ»:
   он держит воздух над нижней навигацией и разводит кнопку с подписями.
   Отступ снизу — не inline-стилем на каждой странице, как было раньше. */
.pagecta{
    max-width: 900px; margin: 0 auto;
    padding: 20px 14px calc(var(--page-gap) - 8px);
}
.pagecta--flat{ padding-left: 0; padding-right: 0; }
.pagecta .btn--block{ margin-top: 0; }
.pagecta .note{ margin-top: 12px; }
.pagecta__links{
    display: flex; gap: 10px; flex-wrap: wrap;
    justify-content: center; margin-top: 18px;
}
/* кнопка «Оформить» внутри блока «Итого» — своё дыхание сверху */
.summary__cta{ margin-top: 18px; }

/* ------------------------------------------------------------------- формы */
.field{ margin-bottom: 14px; }
.field__label{ display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.field__req{ color: var(--green); }
.input, textarea.input, select.input{
    width: 100%; min-height: 48px; padding: 12px 14px;
    background: var(--card); color: var(--ink);
    border: 1.5px solid var(--line); border-radius: 12px;
    font-family: var(--font); font-size: 15px; outline: none;
    transition: border-color .15s, background .15s;
}
.input::placeholder{ color: var(--faint); }
.input:focus{ border-color: var(--green); background: var(--card-hi); }
.input.is-invalid{ border-color: var(--red); }
textarea.input{ min-height: 96px; resize: vertical; line-height: 1.5; }
.field__error{ display: none; font-size: 12px; color: var(--red); margin-top: 5px; }
.field.is-invalid .field__error{ display: block; }

.radios{ display: flex; flex-direction: column; gap: 8px; }
.radio{
    display: flex; align-items: center; gap: 11px;
    padding: 13px 14px; border: 1.5px solid var(--line);
    border-radius: 12px; background: var(--card); cursor: pointer;
    transition: border-color .15s, background .15s;
}
.radio input{ accent-color: var(--green); width: 18px; height: 18px; flex: 0 0 auto; }
.radio.is-active{ border-color: var(--green); background: rgba(103,210,0,.08); }
.radio__text{ flex: 1; min-width: 0; }
.radio__title{ font-size: 14px; font-weight: 700; }
.radio__note{ font-size: 12px; color: var(--dim); margin-top: 2px; }

/* ---------------------------------------------------------------- статусы */
.pill{
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 20px;
    font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
    border: 1px solid transparent;
}
.pill.is-new{    background: rgba(74,168,255,.14);  color: var(--blue);  border-color: rgba(74,168,255,.35); }
.pill.is-wait{   background: rgba(255,176,32,.14);  color: var(--amber); border-color: rgba(255,176,32,.35); }
.pill.is-paid{   background: rgba(103,210,0,.14);   color: var(--green); border-color: rgba(103,210,0,.35); }
.pill.is-ready{  background: rgba(103,210,0,.2);    color: var(--green); border-color: rgba(103,210,0,.5); }
.pill.is-done{   background: rgba(139,139,149,.14); color: var(--dim);   border-color: rgba(139,139,149,.3); }
.pill.is-cancel{ background: rgba(255,90,82,.14);   color: var(--red);   border-color: rgba(255,90,82,.35); }

/* ------------------------------------------------------------------ заказы */
.order{
    display: block;
    background: var(--card); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 15px; margin-bottom: 12px;
}
.order__head{ display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.order__num{ font-weight: 900; font-size: 15px; }
.order__date{ font-size: 12px; color: var(--faint); }
.order__items{ display: flex; gap: 7px; margin: 12px 0; overflow-x: auto; scrollbar-width: none; }
.order__items::-webkit-scrollbar{ display: none; }
.order__thumb{ flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #fff; }
.order__thumb img{ width: 100%; height: 100%; object-fit: contain; }
.order__foot{ display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 11px; }
.order__sum{ font-size: 17px; font-weight: 900; }

.timeline{ margin: 18px 0; padding-left: 4px; }
.tl{ display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl:last-child{ padding-bottom: 0; }
.tl::before{
    content: ''; position: absolute; left: 6px; top: 16px; bottom: 0;
    width: 2px; background: var(--line);
}
.tl:last-child::before{ display: none; }
.tl__dot{
    flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--line); margin-top: 3px; z-index: 1;
    border: 3px solid var(--bg);
}
.tl.is-done .tl__dot{ background: var(--green); }
.tl__body{ flex: 1; min-width: 0; }
.tl__title{ font-size: 14px; font-weight: 700; }
.tl__note{ font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.tl__date{ font-size: 11px; color: var(--faint); margin-top: 3px; }

/* ------------------------------------------------------- реквизиты оплаты */
.pay{
    background: linear-gradient(135deg, rgba(255,176,32,.1), rgba(255,176,32,.02));
    border: 1px solid rgba(255,176,32,.32); border-radius: var(--radius);
    padding: 16px; margin: 16px 0;
}
.pay__title{ font-weight: 900; font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.pay__row{ display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.pay__row:last-of-type{ border-bottom: 0; }
.pay__key{ color: var(--dim); font-size: 12.5px; }
.pay__val{ font-weight: 700; font-variant-numeric: tabular-nums; }
.pay__copy{ background: none; border: 0; color: var(--green); cursor: pointer; padding: 4px; display: inline-flex; }
.pay__copy svg{ width: 17px; height: 17px; }
.pay__note{ font-size: 12.5px; color: var(--text); margin-top: 10px; line-height: 1.5; }

/* ------------------------------------------------------- карта спортсмена */
.guidecards{ display: grid; gap: 12px; max-width: 900px; margin: 0 auto; padding: 4px 14px 20px; }
@media (min-width: 620px){ .guidecards{ grid-template-columns: repeat(2, 1fr); } }
.gcard{
    position: relative; display: block; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--card); padding: 18px; min-height: 118px;
}
.gcard::after{
    content: ''; position: absolute; right: -30px; top: -30px;
    width: 130px; height: 130px; border-radius: 50%;
    background: radial-gradient(circle, rgba(103,210,0,.22), transparent 70%);
}
/* карточка «Хочу на соревнования» — главный путь в карте спортсмена */
.gcard--hot{
    border-color: rgba(103,210,0,.45);
    background: linear-gradient(135deg, rgba(103,210,0,.12), var(--card) 62%);
}
.gcard--hot::after{ background: radial-gradient(circle, rgba(103,210,0,.34), transparent 70%); }
.gcard__emoji{ font-size: 30px; line-height: 1; margin-bottom: 10px; }
.gcard__title{ font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.gcard__sub{ font-size: 12.5px; color: var(--dim); margin-top: 4px; max-width: 24em; }
.gcard__meta{ margin-top: 12px; font-size: 12px; color: var(--green); font-weight: 700; }

.stage{
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); margin-bottom: 14px; overflow: hidden;
}
.stage__head{ display: flex; gap: 13px; padding: 16px; align-items: flex-start; }
.stage__num{
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--green); color: var(--green-ink);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 15px;
}
.stage__title{ font-size: 16px; font-weight: 900; line-height: 1.25; }
.stage__sub{ font-size: 12px; color: var(--green); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: 3px; }
.stage__note{ font-size: 13px; color: var(--text); margin-top: 7px; line-height: 1.5; }
.stage__items{ border-top: 1px solid var(--line-soft); }
.gitem{ display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); }
.gitem:last-child{ border-bottom: 0; }
.gitem__media{ flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #fff; }
.gitem__media img{ width: 100%; height: 100%; object-fit: contain; }
.gitem__body{ flex: 1; min-width: 0; }
.gitem__name{ font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.gitem__note{ font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.gitem__opt{ display: inline-block; font-size: 10px; font-weight: 900; color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; margin-top: 4px; text-transform: uppercase; }
.gitem__price{ font-size: 14px; font-weight: 900; white-space: nowrap; text-align: right; }
.stage__foot{ padding: 13px 16px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stage__sum{ font-size: 13px; color: var(--dim); }
.stage__sum b{ color: var(--ink); font-size: 16px; }

/* ============================================ лендинг «Хочу на соревнования»
   Отдельная секция стилей: лендинг живёт внутри магазина, поэтому использует
   те же токены и кнопки, но у него своя «крупная» типографика. */

.lead{
    max-width: 900px; margin: 0 auto; padding: 26px 14px 10px;
    position: relative; overflow: hidden;
}
.lead::after{
    content: ''; position: absolute; right: -80px; top: -90px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(103,210,0,.18), transparent 68%);
    pointer-events: none;
}
.lead__kicker{
    font-size: 11px; font-weight: 900; letter-spacing: .14em;
    text-transform: uppercase; color: var(--green);
}
.lead__title{
    font-size: 34px; line-height: 1.04; font-weight: 900;
    letter-spacing: -.03em; text-transform: uppercase;
    margin: 10px 0 12px;
}
@media (min-width: 620px){ .lead__title{ font-size: 46px; } }
.lead__text{ font-size: 14.5px; line-height: 1.6; color: var(--text); margin: 0; max-width: 42em; }
.lead__steps{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lead__steps a{
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 22px;
    background: var(--card); border: 1px solid var(--line);
    font-size: 12.5px; font-weight: 700; color: var(--text);
    transition: border-color .15s, color .15s;
}
.lead__steps a:hover{ border-color: var(--green); color: var(--ink); }
.lead__steps span{
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--green); color: var(--green-ink);
    font-size: 11px; font-weight: 900;
    display: inline-flex; align-items: center; justify-content: center;
}

/* заголовок шага — чтобы якорь не прятался под верхней панелью */
.steptag{
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 900; letter-spacing: .08em;
    text-transform: uppercase; color: var(--dim);
    padding-top: 26px; scroll-margin-top: 70px;
}
[id^="step-"]{ scroll-margin-top: 70px; }
.steptag__num{
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--green); color: var(--green-ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 900; letter-spacing: 0;
}

/* --------------------------------------------------- прогресс по документам */
.docbar{ display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.docbar__track{
    flex: 1; height: 7px; border-radius: 4px;
    background: var(--card-hi); overflow: hidden;
}
.docbar__track span{
    display: block; height: 100%; width: 0;
    background: var(--green); border-radius: 4px;
    transition: width .25s ease;
}
.docbar__text{ font-size: 12px; font-weight: 700; color: var(--dim); white-space: nowrap; }
.docs.is-complete + .note{ color: var(--green); }

/* ------------------------------------------------------- пункт чек-листа */
.docs{ display: grid; gap: 10px; }
.doc{
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px; background: var(--card);
    border: 1px solid var(--line-soft); border-radius: var(--radius);
    transition: border-color .15s, background .15s;
}
.doc--accent{ border-color: rgba(103,210,0,.32); background: linear-gradient(135deg, rgba(103,210,0,.07), transparent 60%); }
.doc.is-done{ border-color: rgba(103,210,0,.45); }
.doc.is-done .doc__title{ color: var(--dim); text-decoration: line-through; text-decoration-color: var(--faint); }
.doc__check{
    flex: 0 0 28px; width: 28px; height: 28px; margin-top: 2px;
    border-radius: 9px; cursor: pointer;
    background: transparent; border: 1.5px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center;
    color: transparent;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.doc__check:active{ transform: scale(.9); }
.doc.is-done .doc__check{ background: var(--green); border-color: var(--green); color: var(--green-ink); }
.doc__check svg{ width: 17px; height: 17px; stroke-width: 2.6; }
.doc__body{ flex: 1; min-width: 0; }
.doc__num{ font-size: 11px; font-weight: 900; color: var(--green); letter-spacing: .06em; }
.doc__title{ font-size: 15px; font-weight: 700; line-height: 1.3; margin: 3px 0 5px; }
.doc__text{ font-size: 13px; color: var(--text); line-height: 1.55; }
.doc__text b{ color: var(--ink); }
.doc__list{ margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--text); line-height: 1.6; }
.doc__list b{ color: var(--ink); }

/* памятка внутри пункта (страховка) */
.hint{
    margin-top: 12px; padding: 14px;
    background: var(--bg-soft); border: 1px dashed rgba(103,210,0,.4);
    border-radius: var(--radius-sm);
}
.hint__title{
    font-size: 12px; font-weight: 900; text-transform: uppercase;
    letter-spacing: .06em; color: var(--green); margin-bottom: 8px;
}
.hint__list{ margin: 0; padding-left: 18px; font-size: 13px; color: var(--text); line-height: 1.7; }
.hint__list b{ color: var(--ink); }
.hint__code{
    display: inline-block; padding: 1px 8px; border-radius: 6px;
    background: var(--green); color: var(--green-ink);
    font-weight: 900; letter-spacing: .06em;
}

/* ------------------------------------------------------- «почему» карточки */
.why{ display: grid; gap: 10px; margin: 18px 0 22px; }
@media (min-width: 620px){ .why{ grid-template-columns: repeat(3, 1fr); } }
.whycard{
    padding: 16px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line-soft);
}
.whycard--warn{ border-color: rgba(255,176,32,.35); background: linear-gradient(135deg, rgba(255,176,32,.07), transparent 60%); }
@media (min-width: 620px){ .whycard--warn{ grid-column: span 3; } }
.whycard__icon{ font-size: 26px; line-height: 1; margin-bottom: 9px; }
.whycard__title{ font-size: 14.5px; font-weight: 900; margin-bottom: 5px; }
.whycard__text{ font-size: 13px; color: var(--text); line-height: 1.55; }

/* -------------------------------------------------------------- комплект */
.kit{
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); overflow: hidden; margin: 16px 0 20px;
}
.kit__head{
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px; border-bottom: 1px solid var(--line-soft);
}
.kit__title{ font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.kit__sub{ font-size: 12px; color: var(--dim); margin-top: 3px; }
.kit__sum{ font-size: 20px; font-weight: 900; white-space: nowrap; }
/* подзаголовок «выберите один вариант» внутри комплекта */
.kit__pick{
    margin: 0 16px; padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255,176,32,.1);
    border: 1px dashed rgba(255,176,32,.42);
    font-size: 12.5px; font-weight: 700; color: var(--amber);
}
.kit__foot{
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 14px 16px; border-top: 1px solid var(--line-soft);
}
.kit__foot .btn{ flex: 0 0 auto; }
.kit__foot .note{ flex: 1; min-width: 180px; }
/* сетка товаров внутри уже отбитого по краям блока (.wrap / .kit) */
.grid--flush{ padding: 14px 0; max-width: none; }
.kit .grid--flush{ padding: 14px; }

/* ------------------------------------------------------------------ пустое */
.empty{ text-align: center; padding: 58px 22px; max-width: 420px; margin: 0 auto; }
.empty__icon{ font-size: 46px; margin-bottom: 14px; }
.empty__title{ font-size: 17px; font-weight: 900; margin-bottom: 7px; }
.empty__text{ font-size: 13.5px; color: var(--dim); margin-bottom: 20px; line-height: 1.5; }

/* ------------------------------------------------------------------- тост */
.toast{
    position: fixed; left: 50%; transform: translate(-50%, 30px);
    bottom: calc(var(--bar-h) + var(--safe-b) + 16px); z-index: 120;
    max-width: calc(100vw - 32px);
    background: var(--card-hi); color: var(--ink);
    border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 18px; font-size: 13.5px; font-weight: 600;
    box-shadow: var(--shadow);
    opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.toast.is-show{ opacity: 1; transform: translate(-50%, 0); }
.toast.is-error{ border-color: rgba(255,90,82,.6); color: #ffd9d7; }

/* ------------------------------------------------------------- шторка снизу */
.sheet-backdrop{
    position: fixed; inset: 0; z-index: 90;
    background: rgba(0,0,0,.6); opacity: 0;
    transition: opacity .2s;
}
.sheet-backdrop.is-open{ opacity: 1; }
.sheet{
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: var(--panel);
    border-radius: 22px 22px 0 0;
    border-top: 1px solid var(--line);
    padding: 8px 18px calc(22px + var(--safe-b));
    transform: translateY(100%);
    transition: transform .26s cubic-bezier(.32,.72,0,1);
    max-height: 88vh; overflow-y: auto;
}
.sheet.is-open{ transform: translateY(0); }
.sheet__grip{ width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 16px; }
.sheet__title{ font-size: 17px; font-weight: 900; margin-bottom: 4px; }
.sheet__sub{ font-size: 13px; color: var(--dim); margin-bottom: 16px; }

/* ------------------------------------------------------------------ скелет */
.skel{ background: linear-gradient(90deg, var(--card) 25%, var(--card-hi) 37%, var(--card) 63%);
       background-size: 400% 100%; animation: skel 1.3s ease infinite; border-radius: var(--radius); }
@keyframes skel{ 0%{ background-position: 100% 50% } 100%{ background-position: 0 50% } }
.skel--card{ aspect-ratio: .72; }

@media (prefers-reduced-motion: reduce){
    *{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ прочее */
.divider{ height: 1px; background: var(--line-soft); margin: 22px 0; }
.note{ font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.center{ text-align: center; }
.stack > * + *{ margin-top: 10px; }
.hidden{ display: none !important; }
