@font-face{font-family:Oswald;src:url('/fonts/oswald-variable.woff2') format('woff2');font-weight:200 700;font-display:swap}@font-face{font-family:Manrope;src:url('/fonts/manrope-variable.woff2') format('woff2');font-weight:200 800;font-display:swap}
/* U+2197 нет ни в Oswald, ни в Manrope. Без явного текстового шрифта на диапазон
   стрелок iOS подставляет Apple Color Emoji и стрелка становится синей плашкой. */
@font-face{font-family:ArrowText;src:local('Apple Symbols'),local('Segoe UI Symbol'),local('Noto Sans Symbols 2'),local('DejaVu Sans'),local('Arial Unicode MS');unicode-range:U+2190-2199}
:root{color-scheme:dark;--bg:#111214;--surface:#191b1e;--line:#34363a;--text:#f1f3f5;--muted:#aaaeb4;--accent:#d6ff45;--control-line:#6a6e74;--surface-2:#17191b;--accent-hover:#e5ff91;--danger:#ff8f8f;--safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px));--app-height:var(--tg-viewport-stable-height,100dvh);--display:Oswald,ArrowText,'Arial Narrow',sans-serif;--body:Manrope,ArrowText,Arial,sans-serif;font-variant-emoji:text;font-family:var(--body);font-size:16px;color:var(--text);background:var(--bg)}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:88px}body{margin:0}body.modal-open{overflow:hidden}button,input,select{font:inherit;color:inherit}a{color:inherit;text-decoration:none}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{border:0;background:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;flex-shrink:0}button,a{touch-action:manipulation}img{display:block;max-width:100%}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-80px;left:12px;z-index:100;background:var(--accent);color:var(--bg);padding:12px}.skip:focus{top:12px}.lime{color:var(--accent)}.eyebrow{font-size:12px;font-weight:600;letter-spacing:.1em}.header{height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 4.2%;border-bottom:1px solid var(--line);gap:30px;background:var(--bg);position:relative;z-index:3}.brand{display:flex;align-items:center;gap:16px}.header-nav{display:flex;gap:40px;font-size:14px}.header-nav a{padding:18px 0}.social-link{font-size:14px}.social-link span{margin-left:16px}.campaign{position:relative;display:flex;min-height:clamp(340px,34vw,480px);overflow:hidden;border-bottom:1px solid var(--line)}.campaign-image{position:absolute;width:100%;height:100%;object-fit:cover;object-position:65% center}.campaign-content{position:relative;align-self:center;margin-left:8.3%;padding:40px 0;width:53%}.campaign-content>.eyebrow{color:#c3c6c8}.campaign h1{font-family:var(--display);font-size:clamp(64px,7.5vw,116px);line-height:.98;font-weight:600;letter-spacing:-.035em;margin:18px 0 22px}.campaign p{font-size:15px;line-height:1.65;color:#d1d3d6;margin:0 0 24px}.campaign-cta{display:inline-flex;align-items:center;gap:58px;background:var(--accent);color:#111214;padding:16px 20px;min-height:52px;font-size:14px;font-weight:700}.campaign-cta span{font-size:24px;line-height:1}.catalog-section{padding:64px 4.2% 70px;max-width:1700px;margin:auto}.catalog-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:28px;gap:16px}.catalog-heading h2{font-family:var(--display);font-size:clamp(42px,4.7vw,68px);font-weight:500;letter-spacing:-.025em;line-height:1.05;margin:12px 0 0}.item-count{font-family:var(--body);font-size:14px;vertical-align:top;display:inline-block;margin:5px 0 0 14px;border:1px solid var(--line);padding:5px 8px;font-weight:500;letter-spacing:0}.category-tabs{display:flex;gap:30px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line);margin:0 0 22px}.category-tabs::-webkit-scrollbar{display:none}.category-tab{white-space:nowrap;position:relative;font-size:15px;color:var(--muted);padding:16px 0 18px;min-height:54px}.category-tab.active{color:var(--text)}.catalog-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px}.search{position:relative;display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--control-line);padding:0 14px;height:48px;max-width:360px;flex:1}.search svg{width:18px;color:var(--muted)}.search input{border:0;background:transparent;outline:none!important;width:100%;font-size:14px;height:100%;min-width:0}.search input::placeholder{color:#93979e}.filter-trigger{display:flex;align-items:center;gap:9px;min-height:48px;padding:12px 18px;border:1px solid var(--control-line);font-size:14px}.filter-trigger svg{width:18px}.filter-count{display:flex;align-items:center;justify-content:center;background:var(--text);color:var(--bg);font-size:12px;min-width:20px;height:20px}.sort-label{margin-left:auto}.sort-label select{font-size:13px;min-height:48px;border:0;padding:10px 28px 10px 10px;background:var(--bg);max-width:220px}.active-filters{display:flex;flex-wrap:wrap;gap:8px}.filter-chip{font-size:12px;border:1px solid var(--control-line);padding:10px 12px;min-height:38px;display:flex;gap:15px;align-items:center;margin-bottom:18px}.notice{font-size:13px;line-height:1.5;padding:12px 0;margin:0 0 18px;color:var(--muted);border-bottom:1px solid var(--line)}.catalog-status{padding:22px 0;line-height:1.6;color:var(--muted)}.catalog-status:empty{display:none}.catalog-status button{display:block;margin-top:12px;border-bottom:1px solid currentColor;padding:8px 0}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:36px 18px}.product-card{min-width:0}.product-open{display:block;width:100%;padding:0;text-align:left}.product-photo{aspect-ratio:3/4;position:relative;background:#28292b;overflow:hidden}.product-photo img{width:100%;height:100%;object-fit:cover;transition:transform .45s cubic-bezier(.2,.65,.3,1)}.product-meta{padding-top:16px}.product-brand{font-size:11px;text-transform:uppercase;letter-spacing:.075em;color:var(--muted);line-height:1.4;margin:0 0 7px}.product-title{font-size:16px;font-weight:600;line-height:1.4;margin:0 0 6px;overflow-wrap:anywhere;min-height:2.8em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-color{font-size:13px;color:var(--muted);margin:0;line-height:1.4}.product-price{font-size:16px;line-height:1.4;margin-top:12px;font-weight:600}.product-sizes{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.product-sizes button{min-width:44px;min-height:44px;border:1px solid var(--control-line);font-size:12px;padding:6px 8px}.product-point{font-size:12px;line-height:1.4;color:var(--muted);margin:8px 0 0}.no-photo{display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);font-size:14px;height:100%;width:100%;padding:20px}.load-more{margin:44px auto 0;display:flex;align-items:center;justify-content:space-between;gap:90px;padding:16px 20px;min-width:260px;min-height:52px;border:1px solid var(--control-line);font-size:14px}.pickup{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.pickup-photo{position:relative;overflow:hidden;min-height:510px}.pickup-photo img{width:100%;height:100%;object-fit:cover}.pickup-copy{padding:60px 12% 56px 10%;background:var(--surface-2)}.pickup-copy>.eyebrow{font-size:11px;color:var(--muted)}.pickup h2{font:500 clamp(38px,4.5vw,66px)/1.08 var(--display);letter-spacing:-.025em;margin:20px 0 32px}.pickup-step{display:flex;align-items:center;gap:20px;border-top:1px solid var(--line);padding:14px 0}.pickup-step>span{font-size:12px;color:var(--muted)}.pickup-step p{margin:0;font-size:14px;line-height:1.5}.text-link{display:inline-block;font-size:13px;border-bottom:1px solid #8c9095;padding:0 0 7px;margin-top:27px}footer{padding:24px 4.2% 32px}.footer-bottom{display:flex;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;font-size:13px;color:var(--muted)}.footer-bottom a{min-height:44px;display:inline-flex;align-items:center}.mobile-bar{display:none}.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 20px;min-height:52px;font-size:14px;font-weight:700;width:100%}.primary{background:var(--accent);color:var(--bg)}.secondary{border:1px solid var(--control-line)}.icon-button{min-width:44px;min-height:44px;font-size:20px;display:inline-flex;align-items:center;justify-content:center}dialog{color:var(--text);background:var(--bg);padding:0;border:1px solid var(--line);max-height:94dvh}dialog::backdrop{background:#000c;backdrop-filter:blur(3px)}.filter-dialog{width:440px;max-width:calc(100% - 32px);padding:26px}.dialog-handle{display:none}.sheet-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.sheet-heading h2{font:500 34px var(--display);margin:0}form label{display:flex;flex-direction:column;gap:9px;font-size:13px;margin-bottom:20px}form input,form select{background:var(--surface);border:1px solid var(--control-line);border-radius:0;padding:13px 12px;min-height:48px;min-width:0;width:100%;font-size:16px}form input::placeholder{color:#80858d}form select{padding-right:32px}.filter-actions{display:flex;gap:12px;margin-top:30px}.filter-actions .secondary{width:38%;font-weight:500}.product-dialog{width:1120px;max-width:calc(100% - 50px);overflow-y:auto}.detail-top{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-bottom:1px solid var(--line);background:var(--bg);position:sticky;top:0;z-index:3}.detail-top>span{font-size:11px;letter-spacing:.08em;color:var(--muted)}.back-button{font-size:13px;min-height:44px}.detail-layout{display:grid;grid-template-columns:1.05fr 1fr}.detail-visual{padding:24px;background:var(--surface-2);min-width:0}.gallery{display:flex;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:none;aspect-ratio:3/4;background:#28292b;overscroll-behavior:contain}.gallery::-webkit-scrollbar{display:none}.gallery-slide,.gallery>.no-photo{height:100%;width:100%;flex:0 0 100%;scroll-snap-align:start}.gallery-slide{position:relative;overflow:hidden;background:#28292b center/cover no-repeat}.gallery-slide:before{content:'';position:absolute;inset:-40px;background:inherit;filter:blur(24px) brightness(.45)}.gallery-slide>*{position:relative}.gallery-slide img{height:100%;width:100%;object-fit:contain}.gallery-navigation{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:14px;font-size:12px}.gallery-navigation>span{padding-left:3px;color:var(--muted)}.gallery-navigation>div{display:flex}.thumbnails{display:flex;gap:8px;overflow:auto;scrollbar-width:none}.thumbnail{padding:0;flex:0 0 48px;height:60px;opacity:.5;border:1px solid transparent}.thumbnail img{width:100%;height:100%;object-fit:cover}.thumbnail.active{opacity:1;border-color:var(--text)}.photo-note{font-size:12px;line-height:1.5;color:var(--muted);margin:14px 0 0}.detail-info{padding:36px 34px}.detail-info>.eyebrow{color:var(--muted)}.detail-info h2{font:500 40px/1.12 var(--display);letter-spacing:-.02em;margin:14px 0 10px;overflow-wrap:anywhere}#detail-color{font-size:14px;color:var(--muted);margin:0}.detail-price-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0;padding-bottom:25px;border-bottom:1px solid var(--line)}#detail-price{font-size:24px;font-weight:600}.availability{font-size:12px;display:flex;align-items:center;gap:7px;color:#c2c6cb}.size-heading{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin:0 0 12px}.size-heading>span:last-child{font-size:12px}.size-options{display:flex;flex-wrap:wrap;gap:8px}.size-option{min-width:54px;min-height:48px;border:1px solid var(--control-line);padding:12px;font-size:14px}.size-option.active{background:var(--accent);border-color:var(--accent);color:var(--bg)}#point-area{margin-top:24px}.point-options{display:grid;gap:8px}.point-option{border:1px solid var(--control-line);padding:14px;text-align:left;font-size:14px;line-height:1.6;min-height:48px}.point-option.active{border-color:var(--accent)}.point-option>span{display:block;font-size:12px;color:var(--muted)}#detail-point{font-size:13px;line-height:1.6;color:var(--muted);margin:20px 0}.purchase-block{margin-top:28px}.purchase-block p{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0}.reserve{font-size:15px}#reserve>span{font-size:22px;line-height:1}.detail-facts{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--line);margin-top:26px;padding-top:22px;font-size:12px;color:var(--muted)}.checkout{border-top:1px solid var(--line);margin-top:28px;padding-top:25px}.checkout-heading .eyebrow{color:var(--muted)}.checkout h3{font:500 30px var(--display);margin:10px 0 20px}.test-order-note,.privacy-intro{font-size:12px;line-height:1.6;color:var(--muted)}.privacy-intro a,.consent a{text-decoration:underline;text-underline-offset:3px}.consent{flex-direction:row;align-items:start;line-height:1.5;font-size:12px}.consent input{appearance:auto;width:20px;height:20px;min-height:20px;flex:0 0 20px;accent-color:var(--accent);margin:0}.order-status{line-height:1.65;font-size:14px}.order-status.success{padding:20px;border:1px solid var(--accent);color:var(--accent)}.order-status:empty{display:none}[hidden]{display:none!important}
@media(max-width:1000px){.header{height:76px}.header-nav{gap:22px}.campaign-content{margin-left:6%;width:64%}.campaign-image{object-position:64% center}.pickup-copy{padding:44px 8%}.pickup-photo{min-height:480px}.product-dialog{max-width:calc(100% - 24px)}.detail-info{padding:28px 24px}.detail-visual{padding:18px}}
@media(max-width:650px){html{scroll-padding-top:14px}.header{height:68px;padding:0 18px;gap:14px}.brand{gap:11px}.header-nav{display:none}.social-link{font-size:12px}.social-link span{margin-left:3px}.campaign-image{object-position:68% center;opacity:.72}.campaign-content{padding-top:42px;margin-left:22px;width:90%;z-index:1}.campaign-content>.eyebrow{font-size:9px;letter-spacing:.07em}.campaign h1{font-size:76px;margin:22px 0 16px;letter-spacing:-.035em}.campaign p{font-size:13px;line-height:1.6;margin-bottom:20px}.campaign-cta{min-height:48px;font-size:13px;gap:50px;padding:14px 16px}.catalog-section{padding:38px 16px 44px}.catalog-heading{margin-bottom:16px}.catalog-heading h2{font-size:44px;margin-top:8px}.item-count{font-size:12px;margin:3px 0 0 10px}.category-tabs{gap:25px;margin-bottom:16px}.category-tab{font-size:14px;padding:14px 0;min-height:48px}.catalog-toolbar{flex-wrap:wrap;gap:10px}.search{max-width:none;flex:1;height:46px;min-width:130px}.search input{font-size:14px}.filter-trigger{min-height:46px;padding:10px 12px;font-size:13px}.filter-trigger svg{width:17px}.sort-label{width:100%;margin-left:0;text-align:right}.sort-label select{font-size:12px;padding:5px 24px 5px 0;min-height:30px}.catalog-toolbar{margin-bottom:10px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 12px}.product-meta{padding-top:12px}.product-brand{font-size:10px;letter-spacing:.06em;margin-bottom:6px}.product-title{font-size:14px}.product-color{font-size:12px}.product-price{font-size:15px;margin-top:10px}.product-sizes{gap:5px;margin-top:10px}.load-more{width:100%;margin-top:32px;font-size:13px}.pickup{grid-template-columns:1fr}.pickup-photo{min-height:0;height:220px}.pickup-photo img{object-position:center 60%}.pickup-copy{padding:34px 22px 38px}.pickup h2{font-size:48px;margin:16px 0 24px}.pickup-copy>.eyebrow{font-size:9px}.pickup-step{gap:18px;padding:14px 0}.pickup-step p{font-size:13px}footer{padding:20px 20px 100px}.footer-bottom{gap:4px 16px}.mobile-bar{display:flex;position:fixed;bottom:0;left:0;right:0;background:#17191bf5;backdrop-filter:blur(10px);border-top:1px solid var(--line);z-index:5;padding:8px 16px max(8px,var(--safe-bottom));height:calc(62px + var(--safe-bottom));gap:12px}.mobile-bar a{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;font-size:12px;min-height:44px}.mobile-bar a:first-child{border-right:1px solid var(--line)}.mobile-bar svg{width:18px;height:18px}.filter-dialog{max-width:100%;width:100%;margin:auto 0 0;padding:8px 22px max(24px,var(--safe-bottom));border-bottom:0;border-left:0;border-right:0}.dialog-handle{display:block;width:36px;height:3px;background:#666b72;margin:2px auto 18px}.sheet-heading{margin-bottom:24px}.product-dialog{max-width:100%;width:100%;max-height:var(--app-height);height:var(--app-height);margin:0;border:0}.detail-top{padding:6px 14px}.detail-top>span{font-size:9px;letter-spacing:.03em}.detail-layout{grid-template-columns:minmax(0,1fr)}.detail-visual{padding:0 16px 18px}.gallery{aspect-ratio:auto;height:min(133.333vw,66dvh);margin:0 -16px}.gallery-navigation{margin-bottom:10px}.thumbnails{gap:7px}.thumbnail{flex-basis:42px;height:52px}.photo-note{font-size:11px}.detail-info{padding:28px 20px max(40px,var(--safe-bottom))}.detail-info h2{font-size:38px}.detail-price-row{margin-top:22px}.size-option{min-width:56px;min-height:48px}.purchase-block{margin-top:24px}.primary{min-height:54px}}
@media(max-width:360px){.campaign h1{font-size:68px}.filter-trigger>span:not(.filter-count){display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* GTS v02: brand colours/type stay above; motion timings are UI decisions. */
:root {
  --motion-fast: 140ms;
  --motion-panel: 240ms;
  --motion-ease: cubic-bezier(.2, .7, .2, 1);
}
html { scrollbar-gutter: stable; }
.brand { padding: 12px; margin-left: -12px; }
.brand-logo { width: 52px; height: auto; fill: currentColor; stroke: none; }
.header { min-height: 80px; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
/* В прокручиваемых рядах кольцо снаружи срезается контейнером — рисуем его внутри. */
.category-tab:focus-visible, .date-chips button:focus-visible, .thumbnail:focus-visible,
.related-card:focus-visible { outline-offset: -2px; }
.category-tab, .filter-trigger, .filter-chip, .size-option, .point-option,
.product-sizes button, .primary, .secondary, .icon-button, .back-button,
.campaign-cta, .load-more, .mobile-bar a, .header-nav a, .social-link, .thumbnail {
  transition: color var(--motion-fast), background-color var(--motion-fast),
    border-color var(--motion-fast), opacity var(--motion-fast),
    transform var(--motion-fast) var(--motion-ease);
}
.category-tab::after {
  content: ''; height: 2px; background: var(--accent); position: absolute;
  left: 0; right: 0; bottom: 0; transform: scaleX(0); transform-origin: left;
  transition: transform 180ms var(--motion-ease);
}
.category-tab.active::after { transform: scaleX(1); }
.campaign-cta span, .text-link, .social-link span {
  display: inline-block; transition: transform var(--motion-fast) var(--motion-ease);
}
.campaign-cta:active, .primary:active:not(:disabled), .secondary:active,
.filter-trigger:active, .size-option:active:not(:disabled),
.product-sizes button:active, .icon-button:active:not(:disabled) { transform: scale(.98); }
.filter-chip { min-height: 44px; }
.product-grid[aria-busy="true"]:empty { min-height: clamp(360px, 45vw, 600px); }
.catalog-status:has(+ .product-grid[aria-busy="true"]) {
  position: absolute; z-index: 1; padding: 12px 16px; margin: 16px;
  background: var(--bg); font-size: 14px;
}
.product-grid[aria-busy="true"]:empty::before {
  content: ''; grid-column: 1 / -1; height: clamp(240px, 30vw, 420px);
  background: repeating-linear-gradient(to right, var(--surface) 0,
    var(--surface) calc((100% - 54px) / 4), transparent calc((100% - 54px) / 4),
    transparent calc((100% + 18px) / 4));
}
.gallery, dialog { overscroll-behavior: contain; }
/* Фокус на самом окне после открытия (openDialog) — служебный, рамка у окна целиком не нужна. */
dialog:focus { outline: none; }
/* Do not animate blur: it makes every moving frame more expensive. */
dialog::backdrop { backdrop-filter: none; }
@media (hover: hover) and (pointer: fine) {
  .product-open:hover .product-photo img { transform: scale(1.035); }
  .social-link:hover span { transform: translate(2px, -2px); }
  .campaign-cta:hover span { transform: translateY(2px); }
  .filter-option:hover:not(.active) { border-color: var(--muted); }
  .filter-trigger:hover, .secondary:hover, .point-option:hover { border-color: var(--muted); }
  .header-nav a:hover, .social-link:hover, .icon-button:hover { color: var(--accent); }
  .campaign-cta:hover, .primary:hover:not(:disabled) { background: var(--accent-hover); }
  .product-sizes button:hover { border-color: var(--accent); color: var(--accent); }
  .load-more:hover { border-color: var(--accent); }
  .pvz-row:hover { background: var(--surface); }
}
/* Opening is progressive enhancement; native dialog closing stays synchronous. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes panel-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
  @keyframes card-enter {
    from { opacity: .65; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  dialog[open] { animation: panel-enter var(--motion-panel) var(--motion-ease); }
  dialog[open]::backdrop { animation: backdrop-enter var(--motion-panel) ease-out; }
  .product-card { animation: card-enter 200ms var(--motion-ease); }
  /* Browsers supporting discrete transitions also animate native close/Escape. */
  @supports (transition-behavior: allow-discrete) and (overlay: auto) {
    dialog {
      opacity: 0; transform: translateY(12px);
      transition: opacity var(--motion-panel), transform var(--motion-panel) var(--motion-ease),
        display var(--motion-panel) allow-discrete, overlay var(--motion-panel) allow-discrete;
    }
    dialog[open] { opacity: 1; transform: none; animation: none; }
    dialog::backdrop {
      opacity: 0;
      transition: opacity var(--motion-panel), display var(--motion-panel) allow-discrete,
        overlay var(--motion-panel) allow-discrete;
    }
    dialog[open]::backdrop { opacity: 1; animation: none; }
    @starting-style {
      dialog[open] { opacity: 0; transform: translateY(12px); }
      dialog[open]::backdrop { opacity: 0; }
    }
  }
}
@media (max-width: 650px) {
  html { scroll-padding-bottom: calc(80px + var(--safe-bottom)); }
  /* Высота по содержимому: на 320px заголовок встаёт в три строки и кнопку срезало бы. */
  .campaign { height: auto; min-height: 296px; }
  .campaign-content { padding: 32px 0; margin-left: 20px; width: calc(100% - 40px); }
  .campaign-content > .eyebrow, .detail-top > span, .pickup-copy > .eyebrow { font-size: 11px; }
  .sort-label select { font-size: 16px; }
  .campaign h1 { font-size: 68px; margin: 12px 0 12px; }
  .campaign p { display: none; }
  .campaign-cta { min-height: 48px; font-size: 14px; padding: 12px 16px; }
  .catalog-section { padding-top: 24px; }
  .catalog-heading h2 { margin-top: 0; }
  .catalog-heading { margin-bottom: 8px; }
  .category-tabs { margin-bottom: 12px; }
  .catalog-toolbar { gap: 8px; }
  .search input { font-size: 16px; }
  .filter-trigger { font-size: 14px; }
  .product-brand { font-size: 12px; }
  .product-grid[aria-busy="true"]:empty::before {
    background: linear-gradient(to right, var(--surface) 0, var(--surface) calc(50% - 6px),
      transparent calc(50% - 6px), transparent calc(50% + 6px),
      var(--surface) calc(50% + 6px));
  }
  .mobile-bar { background: var(--surface); backdrop-filter: none; }
  footer { padding-bottom: calc(96px + var(--safe-bottom)); }
  .filter-dialog { max-height: calc(100dvh - 16px); }
  .detail-top { padding-top: max(6px, env(safe-area-inset-top)); }
  .detail-info { padding-bottom: calc(40px + var(--safe-bottom)); }
}
.cart-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; }
.header-cart { margin-left: auto; padding: 10px 16px; border: 1px solid var(--control-line); font-size: 14px; }
[data-cart-count] { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 22px; font: 600 12px var(--body); }
.cart-trigger [data-cart-count] { background: var(--accent); color: var(--bg); }
.cart-dialog { width: 1080px; max-width: calc(100% - 40px); max-height: 92dvh; overflow: hidden; }
/* Шапка и итог неподвижны, прокручивается только середина: главное действие всегда на экране. */
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-layout, .cart-confirmed { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cart-heading { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 2; }
.cart-heading .eyebrow { color: var(--muted); font-size: 11px; }
.cart-heading h2 { font: 500 44px/1.1 var(--display); margin: 8px 0 0; }
.cart-heading .item-count { margin-left: 12px; vertical-align: top; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); }
.cart-selection { padding: 24px 32px 36px; min-width: 0; }
.cart-hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 24px; }
.cart-items { display: grid; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; align-items: start; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.cart-item-photo { width: 96px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.cart-item-photo img { height: 100%; width: 100%; object-fit: cover; }
.cart-photo-placeholder { display: grid; place-items: center; height: 100%; font: 500 26px var(--display); color: var(--muted); }
.cart-item-info { min-width: 0; }
.cart-item-info h3 { font-size: 16px; line-height: 1.35; margin: 6px 0 10px; overflow-wrap: anywhere; }
.cart-item-info p { font-size: 13px; line-height: 1.5; margin: 4px 0; overflow-wrap: anywhere; }
.cart-item-point { color: var(--muted); }
.cart-item-info strong { display: block; font-size: 16px; font-weight: 600; margin-top: 14px; }
.cart-remove { min-width: 44px; min-height: 44px; color: var(--muted); }
.cart-item-error { color: var(--danger); padding-top: 8px; }
.cart-item-review { text-align: left; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; min-height: 44px; padding: 8px 0; }
.cart-summary { background: var(--surface); border-left: 1px solid var(--line); padding: 32px; min-width: 0; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cart-total > span { font-size: 14px; }
.cart-total strong { font-size: 28px; font-weight: 600; white-space: nowrap; }
.cart-limit { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 10px 0 0; }
.cart-auth { margin-bottom: 24px; }
.cart-auth .eyebrow { font-size: 11px; color: var(--muted); }
.cart-auth p { font-size: 14px; line-height: 1.6; margin: 10px 0 20px; }
.cart-auth .secondary { margin-top: 12px; }
.cart-summary .checkout { margin-top: 0; }
.cart-summary form input, .cart-summary form select { background: var(--bg); }
.field-label { font-size: 12px; margin-bottom: 8px; }
.date-chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 14px; }
.date-chips button { flex: 0 0 auto; min-height: 44px; padding: 10px 12px; font-size: 13px; border: 1px solid var(--control-line); white-space: nowrap; }
/* Лайм — только главное действие и выбор размера; выбор среди равных вариантов — нейтральная заливка. */
.date-chips button.active, .pay-option.active, .method-option.active, .filter-option.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.pay-segment, .method-segment { display: flex; gap: 8px; margin-bottom: 20px; }
.pay-option, .method-option { flex: 1; min-height: 44px; padding: 12px; font-size: 13px; font-weight: 600; border: 1px solid var(--control-line); text-align: center; }
#delivery-section { margin-bottom: 6px; }
.delivery-note { font-size: 12px; color: #c2c6cb; margin: -6px 0 16px; }
#pvz-trigger { cursor: pointer; }
.pvz-dialog { width: 480px; max-width: calc(100% - 32px); max-height: 86dvh; padding: 26px; overflow-y: auto; }
.pvz-map { height: 220px; background: var(--surface); margin-bottom: 16px; }
.pvz-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pvz-row { background: var(--bg); padding: 14px; text-align: left; display: block; width: 100%; }
.pvz-row strong { display: block; font-size: 14px; margin-bottom: 4px; }
.pvz-row p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.pvz-worktime { color: var(--muted) !important; margin-top: 2px !important; }
/* Итог закреплён внизу окна корзины — кроме случая, когда главное действие уже на нативном
   MainButton (.tg-main, ставят cart.syncTelegram и syncTelegramChrome в app.js): закреплённая плашка
   над ним давала нагромождение на телефоне. Тогда окно прокручивается целиком, итог уезжает в конец
   формы, а кнопки на странице спрятаны — они повторяли бы MainButton слово в слово.
   На широком экране итог стоит под колонкой оформления, на телефоне — во всю ширину. */
.cart-sticky { flex: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); border-top: 1px solid var(--line); }
.cart-sticky-inner { grid-column: 2; background: var(--surface); border-left: 1px solid var(--line); padding: 16px 32px 20px; }
.cart-sticky-inner .primary { margin-top: 12px; }
.cart-sticky .order-status { margin: 10px 0 0; }
.tg-main .cart-dialog[open] { display: block; overflow: auto; }
.tg-main .cart-layout { overflow: visible; }
.tg-main #reserve, .tg-main #detail-cart-link, .tg-main #cart-checkout, .tg-main #submit { display: none; }
#checkout { scroll-margin-top: 110px; }
/* Фокус на поле с ошибкой не должен прятать его под липкой шапкой корзины. */
#order-form :is(input, button) { scroll-margin-top: 140px; }
.cart-link { display: inline-block; padding: 0; text-align: left; margin-top: 14px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.related-rail { margin-top: 30px; }
.related-rail > .eyebrow { display: block; color: var(--muted); margin-bottom: 10px; }
.related-items { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
/* Карточка — flex-колонка: заголовок держит фиксированную высоту в 2 строки, иначе у
   товаров с короткими названиями цена (а в корзине — кнопка «+ Добавить») съезжает выше
   соседей и фото в ряду перестают стоять на одной линии. */
.related-card { flex: 0 0 116px; text-align: left; display: flex; flex-direction: column; width: auto; padding: 0; -webkit-appearance: none; appearance: none; }
.related-card img, .related-card .cart-photo-placeholder { aspect-ratio: 3 / 4; width: 100%; flex: 0 0 auto; object-fit: cover; background: var(--surface); }
.related-title { font-size: 12px; font-weight: 600; margin: 6px 0 2px; line-height: 1.3; min-height: 2.6em; }
.related-price { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.related-add { width: 100%; min-height: 44px; border: 1px solid var(--control-line); font-size: 12px; padding: 6px 0; text-align: center; margin-top: auto; }
/* Переносится, а не прокручивается вбок: обрезанный пункт без подсказки никто не листает. */
.trust-strip { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 14px 4.2%; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.trust-strip span { white-space: nowrap; }
.cart-confirmed { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 32px calc(64px + var(--safe-bottom)); min-height: 60vh; }
.confirm-check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.confirm-check svg { width: 26px; height: 26px; stroke: var(--bg); stroke-width: 2.4; }
.cart-confirmed h3 { font: 500 32px var(--display); margin: 0 0 12px; }
.cart-confirmed > p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 24px; max-width: 360px; }
.cart-confirmed .cart-receipts { width: 100%; max-width: 420px; text-align: left; margin-bottom: 12px; }
.cart-confirmed .primary { width: auto; max-width: 280px; gap: 12px; }
.cart-empty { text-align: center; padding: 36px 0 44px; }
.cart-empty > svg { width: 56px; height: 56px; color: var(--muted); stroke-width: 1; margin-bottom: 20px; }
.cart-empty h3 { font: 500 32px/1.1 var(--display); margin: 8px 0 16px; }
.cart-empty p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.cart-empty .primary { width: auto; max-width: 100%; margin: 28px auto 0; gap: 48px; }
.cart-receipt { display: flex; align-items: start; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.cart-receipt > span { color: var(--accent); padding-top: 2px; }
.cart-receipt p { margin: 0; font-size: 14px; line-height: 1.6; }
.cart-toast { position: fixed; z-index: 10; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; background: var(--text); color: var(--bg); padding: 14px 20px; font-size: 14px; line-height: 1.5; pointer-events: none; }
/* Dialogs are in the top layer: feedback for an add belongs inside detail too. */
.purchase-block #access-note { min-height: 38px; }
@media (max-width: 650px) {
  .header-cart { display: none; }
  .mobile-bar > .cart-trigger { flex: 1; font-size: 12px; padding: 0; }
  .cart-dialog { width: 100%; max-width: 100%; height: var(--app-height); max-height: var(--app-height); margin: 0; border: 0; }
  .cart-heading { padding: max(18px, env(safe-area-inset-top)) 20px 20px; }
  .cart-heading h2 { font-size: 38px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-selection { padding: 22px 20px 24px; }
  .cart-hint { margin-bottom: 16px; font-size: 12px; }
  .cart-item { grid-template-columns: 80px minmax(0, 1fr) 44px; gap: 12px; padding: 20px 0; }
  .cart-item-photo { width: 80px; }
  .cart-item-info h3 { font-size: 15px; }
  .cart-summary { border-left: 0; border-top: 1px solid var(--line); padding: 26px 20px calc(24px + var(--safe-bottom)); }
  .cart-sticky { display: block; }
  .cart-sticky-inner { border-left: 0; padding: 12px 20px calc(14px + var(--safe-bottom)); }
  .cart-total strong { font-size: 24px; }
  .cart-summary form input, .cart-summary form select { font-size: 16px; }
  #checkout { scroll-margin-top: 140px; }
  .trust-strip { padding: 12px 16px; gap: 4px 12px; }
  .related-card { flex-basis: 104px; }
  .cart-confirmed { min-height: 50vh; padding: 48px 20px calc(48px + var(--safe-bottom)); }
  .pvz-dialog { max-width: 100%; width: 100%; max-height: 86dvh; margin: auto 0 0; padding: 20px 20px calc(24px + var(--safe-bottom)); border-bottom: 0; border-left: 0; border-right: 0; }
  .cart-toast { bottom: calc(80px + var(--safe-bottom)); }
}
.cart-toast:empty { display: none; }
.cart-toast.persistent { display: flex; align-items: center; gap: 8px; pointer-events: auto; padding-right: 8px; }
.cart-toast-close { min-width: 44px; min-height: 44px; margin: -12px 0; color: inherit; font-size: 16px; }
.field-error { margin: 0; font-size: 13px; line-height: 1.5; color: var(--danger); }
.consent + .field-error, .pvz-trigger + .field-error, .date-chips + .field-error { margin: -12px 0 20px; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.pvz-trigger { display: block; width: 100%; min-height: 48px; padding: 13px 12px; margin-bottom: 20px; text-align: left; font-size: 16px; line-height: 1.4; background: var(--bg); border: 1px solid var(--control-line); }
.pvz-trigger.empty { color: #80858d; }

/* Карточка — три строки родительской сетки (subgrid): верх с ценой, размеры, точка. Так ряд
   выравнивается при любом верхе (скидка, «Последний экземпляр», пустой цвет) и любом числе рядов
   размеров. Отступ между рядами карточек — снизу у точки, gap сетки делил бы и строки внутри карточки.
   .product-open не растягиваем: это <button>, и браузер центрирует его содержимое по вертикали.
   Без subgrid (старые WebView) строки просто идут подряд, как раньше. */
.product-grid { row-gap: 0; }
.product-card { grid-row: span 3; display: grid; grid-template-rows: subgrid; align-content: start; }
.product-open, .product-card > .product-sizes, .product-point { align-self: start; }
.product-card > .product-sizes { margin-top: 0; padding-top: 12px; }
.product-point { padding-bottom: 36px; }
.product-color { min-height: 1.4em; }
@media (max-width: 650px) { .product-card > .product-sizes { padding-top: 10px; } .product-point { padding-bottom: 28px; } }

/* Фильтры: на широком экране — колонкой рядом с выдачей. Уже 1100px колонка не помещается рядом
   с сеткой и встала бы над ней строкой, а при десятках брендов это экраны кнопок до первой
   карточки, — поэтому там фильтры, как на телефоне, за кнопкой «Фильтры». */
.catalog-body { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.filter-panel { flex: 1 1 220px; display: flex; flex-wrap: wrap; gap: 24px; }
.filter-group { flex: 1 1 200px; min-width: 0; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-option { min-height: 44px; padding: 0 14px; font-size: 13px; border: 1px solid var(--control-line); }
.catalog-results { flex: 999 1 700px; min-width: 0; }
@media (min-width: 1100px) { .filter-trigger, .active-filters { display: none; } }
@media (max-width: 1099px) { .filter-panel { display: none; } }

/* fillPrice собирает цену из трёх частей: без flex-контейнера старая цена прилипала
   к текущей, а плашка экономии рвалась на две строки. */
.product-price,#detail-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-variant-numeric:tabular-nums}
#detail-price{flex:1 1 auto;min-width:0}
.price-old,.price-save{white-space:nowrap}
.product-last{margin:6px 0 0;font-size:12px;font-weight:600;line-height:1.4}
.price-old{font-size:.8em;font-weight:400;color:var(--muted)}
.price-save{font-size:11px;font-weight:700;line-height:1;color:var(--bg);background:var(--accent);padding:4px 6px;align-self:center}
