@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;450;500;550;600;650;700;750;800;900&display=swap');
:root{--ink:#505c60;--muted:#697274;--olive:#63733e;--brand-olive:#899d63;--line:#dce0dd;--paper:#fff;--surface:#f3f5f1;--tile:#f4f5f2;--on-ink:#fff;--on-tile:var(--ink);--on-tile-muted:var(--muted);color-scheme:light;--font:'Golos Text',Arial,sans-serif;color:var(--ink);font-family:var(--font);font-synthesis:none;background:var(--paper)}
img{height:auto}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid var(--olive);outline-offset:5px}button{border:0;background:none}img{display:block;max-width:100%}svg{width:24px;height:24px}button:disabled{cursor:not-allowed;opacity:.55}.skip-link{position:fixed;left:16px;top:-70px;z-index:20;background:var(--ink);color:var(--on-ink);padding:16px}.skip-link:focus{top:8px}.header{height:92px;padding:0 5%;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:40px;background:var(--paper)}.brand{display:inline-flex;align-items:center;gap:10px;font-size:29px;font-weight:850;letter-spacing:1px}.brand svg{width:30px;height:30px;fill:var(--ink)}.navigation{display:flex;gap:30px;margin:auto;font-size:14px}.navigation a{padding:12px 0;color:var(--muted)}.navigation a:hover,.navigation .nav-current{color:var(--ink)}.nav-current{position:relative}.nav-current:after{content:'';height:2px;width:100%;position:absolute;bottom:5px;left:0;background:var(--ink)}.cart-trigger{display:flex;align-items:center;gap:10px;font-size:14px;padding:12px 0}.cart-trigger svg{width:20px;height:20px}.cart-count{font-size:12px;background:var(--ink);color:var(--on-ink);display:grid;place-items:center;width:23px;height:23px;border-radius:50%;margin-left:4px}
.hero{display:grid;grid-template-columns:46% 54%;margin:28px 5% 0;min-height:480px;background:var(--surface);position:relative}.hero-copy{padding:45px 0 27px 42px;z-index:1;display:flex;flex-direction:column;align-items:flex-start}.eyebrow{font-size:12px;font-weight:550;letter-spacing:1.2px;margin:0;display:flex;align-items:center;gap:12px;line-height:1.5}.cross{font-size:25px;line-height:12px;font-weight:400;color:var(--olive)}h1{font-size:clamp(52px,5.8vw,90px);line-height:.99;letter-spacing:-4.5px;font-weight:750;margin:36px 0 19px}.olive-period{color:var(--olive)}.hero-description{font-size:16px;color:#64675d;margin:0 0 29px;line-height:1.5}.button{min-height:50px;padding:16px 22px;font-size:14px;display:inline-flex;gap:38px;align-items:center;justify-content:center;transition:background .2s,color .2s}.button span{font-size:20px;line-height:16px}.primary{background:var(--ink);color:var(--on-ink)}.primary:hover{background:var(--olive)}.secondary{border:1px solid var(--line);background:white}.secondary:hover{border-color:var(--ink)}.hero-index{display:flex;width:100%;align-items:center;gap:24px;font-size:11px;letter-spacing:1px;color:var(--muted);margin-top:auto;padding-top:40px}.index-line{height:1px;background:#cccec3;width:65px}.hero-visual{position:relative;display:flex;align-items:center;padding:20px 10px 55px 0;min-width:0;overflow:hidden}.hero-image{width:100%;mix-blend-mode:multiply;object-fit:contain;transform:scale(1.07)}.visual-coordinate{position:absolute;top:25px;right:27px;font-size:11px;letter-spacing:1px;color:var(--on-tile-muted)}.image-caption{position:absolute;bottom:27px;right:29px;left:42px;display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--on-tile)}.caption-secondary{display:block;font-size:12px;color:var(--on-tile-muted);margin-top:6px}.round-arrow{width:38px;height:38px;border:1px solid #bec1b6;display:grid;place-items:center;border-radius:50%;font-size:22px}.round-arrow:hover{background:var(--ink);color:var(--on-ink)}
.catalog{padding:69px 5% 55px}.section-top,.section-heading{display:flex;align-items:center}.section-top{justify-content:space-between;margin-bottom:28px;gap:20px}.section-heading{gap:18px}h2{font-size:32px;letter-spacing:-1px;font-weight:550;margin:0;line-height:1.2}.section-number{color:var(--olive);align-self:flex-start;padding-top:6px}.product-total{font-size:12px;color:var(--muted);align-self:flex-start;padding-top:7px}.catalog-note{font-size:14px;color:var(--muted);margin:0}.catalog-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.filters{display:flex;gap:7px}.filter{min-height:40px;padding:10px 17px;background:var(--surface);font-size:14px;border:1px solid transparent;transition:background .15s}.filter:hover{border-color:var(--line)}.filter.active{background:var(--ink);color:var(--on-ink)}.filter sup{font-size:10px;margin-left:7px;opacity:.65}.toolbar-label{font-size:11px;letter-spacing:1.2px;color:var(--muted)}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.product-card[hidden]{display:none}.product-image-button{background:var(--tile);position:relative;width:100%;display:block;overflow:hidden;aspect-ratio:1/1.08;padding:22px}.product-image-button>img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .45s ease}.product-image-button:hover>img{transform:scale(1.05)}.product-code{position:absolute;top:18px;left:19px;z-index:1;font-size:11px;letter-spacing:.7px;color:var(--on-tile-muted)}.view-product{position:absolute;bottom:0;left:0;right:0;background:var(--ink);color:var(--on-ink);font-size:13px;padding:12px 20px;display:flex;justify-content:space-between;transform:translateY(100%);transition:transform .2s}.product-image-button:hover .view-product,.product-image-button:focus-visible .view-product{transform:translateY(0)}.view-product span{font-size:18px}.product-info{padding:18px 0 0;display:flex;justify-content:space-between;align-items:flex-start}h3{font-size:18px;font-weight:550;margin:0}h3 button{padding:0;text-align:left}.product-color{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:7px;margin:9px 0 16px}.swatch{width:10px;height:10px;border-radius:50%;display:inline-block;border:1px solid #0002}.black{background:#272923}.camo{background:conic-gradient(#7c794b 0 30%,#b0a476 30% 50%,#635e37 50% 75%,#95936a 75%)}.product-price{font-size:14px;margin:0;color:var(--muted)}.add-button{height:35px;width:35px;border:1px solid var(--line);font-size:26px;line-height:30px;font-weight:400;transition:background .2s}.add-button:hover{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}.brand-strip{margin:19px 5% 0;padding:30px 36px;background:var(--ink);color:var(--on-ink);display:flex;align-items:center;justify-content:space-between}.brand-strip .eyebrow{color:#c1c5b4;font-size:11px}.brand-strip p{font-size:24px;font-weight:450;letter-spacing:-.6px;margin:10px 0 0}.brand-compass{width:64px;height:64px;stroke:#b4bea0;fill:none;stroke-width:1}.footer{margin:0 5%;padding:34px 0;display:flex;align-items:center;gap:28px;color:var(--muted);font-size:12px}.footer-brand{color:var(--ink);font-size:20px;letter-spacing:1px}.copyright{margin-left:auto}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);padding:15px 24px;max-width:calc(100% - 32px);background:var(--ink);color:var(--on-ink);font-size:14px;z-index:10;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 4px 30px #0002}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:0;padding:0;color:var(--ink);background:var(--paper);max-height:calc(100dvh - 40px)}dialog::backdrop{background:#1a1d186b;backdrop-filter:blur(3px)}.close-button{width:42px;height:42px;font-size:30px;line-height:1;font-weight:400;padding:0;display:grid;place-items:center}.product-dialog>.close-button{position:absolute;right:12px;top:12px;z-index:2;background:#fffc;color:var(--on-tile)}.product-dialog{width:min(1000px,calc(100% - 48px));max-width:1000px}.cart-dialog{height:100dvh;max-height:100dvh;width:min(460px,100%);max-width:100%;margin:0 0 0 auto}.drawer-header{padding:24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.drawer-header h2{font-size:27px}.drawer-header h2 span{font-size:14px;color:var(--muted);vertical-align:top;padding-left:8px}
@media(min-width:1600px){.header{padding:0 max(5%,calc((100vw - 1440px)/2))}.hero,.brand-strip{max-width:1440px;margin-left:auto;margin-right:auto}.catalog{max-width:1600px;margin:auto}.footer{max-width:1440px;margin:auto}.hero{min-height:540px}.hero-copy{padding:55px 0 34px 50px}}
@media(max-width:1000px){.header{height:78px}.hero{grid-template-columns:47% 53%;min-height:420px}.hero-copy{padding:35px 0 26px 28px}h1{letter-spacing:-3px;font-size:64px}.hero .eyebrow{font-size:10px;letter-spacing:.5px}.hero-description{font-size:14px}.hero-index{font-size:10px;gap:12px}.hero-visual{padding-left:0}.image-caption{left:20px}.product-grid{gap:18px}.catalog{padding-top:48px}}
@media(max-width:700px){html{scroll-padding-top:20px}.header{padding:0 6%;height:73px;gap:15px}.brand{font-size:25px;gap:7px}.brand svg{height:26px;width:26px}.navigation{display:none}.cart-trigger{margin-left:auto;gap:7px}.cart-trigger>span:not(.cart-count){display:none}.cart-count{width:21px;height:21px}.hero{margin:16px 4% 0;display:flex;flex-direction:column;min-height:0}.hero-copy{padding:27px 24px 0}.hero .eyebrow{font-size:10px}.hero h1{font-size:64px;margin:25px 0 16px;letter-spacing:-3px}.hero-description{font-size:14px;margin-bottom:22px}.button{min-height:49px}.hero-index{display:none}.hero-visual{height:280px;margin-top:6px;padding:0 8px 48px}.hero-image{height:100%;transform:none}.image-caption{left:24px;right:24px;bottom:19px;font-size:13px}.caption-secondary{font-size:11px;margin-top:4px}.visual-coordinate{display:none}.round-arrow{height:32px;width:32px;font-size:18px}.catalog{padding:42px 5% 28px}.section-top{margin-bottom:24px}.section-heading{gap:12px}h2{font-size:28px}.section-number{font-size:11px}.catalog-note{display:none}.product-total{font-size:11px}.catalog-toolbar{margin-bottom:18px}.filter{padding:10px 15px}.toolbar-label{display:none}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:27px 14px}.product-image-button{aspect-ratio:1/1.2;padding:15px 8px 10px}.product-code{font-size:9px;left:10px;top:12px}.product-info{padding-top:13px}h3{font-size:16px}.product-color{font-size:12px;margin:7px 0 13px}.product-price{font-size:12px}.add-button{width:30px;height:30px;font-size:23px}.view-product{display:none}.brand-strip{margin:16px 5% 0;padding:25px 20px}.brand-strip p{font-size:18px;max-width:220px;line-height:1.4}.brand-strip .eyebrow{font-size:9px}.brand-compass{width:48px;height:48px;flex-shrink:0}.footer{padding:28px 0;gap:14px;flex-wrap:wrap}.footer>span:not(.copyright){font-size:11px;order:3;width:100%}.copyright{font-size:10px}.product-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}}
.product-image-button[data-product="snood-multicam"]>img{object-fit:cover}.product-price{color:var(--ink);font-size:16px;font-weight:550}.social-links{display:flex;gap:20px;margin-left:auto;font-size:14px;white-space:nowrap}.social-links a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}.copyright{margin-left:0}.noscript{padding:20px 5%;font-size:14px}.noscript a{text-decoration:underline}.detail-layout{display:grid;grid-template-columns:52% 48%}.detail-gallery{background:var(--tile);color:var(--on-tile);padding:25px}.detail-main-image{position:relative;height:430px}.detail-main-image>img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;padding-bottom:38px}.gallery-nav{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between}.gallery-nav button{height:40px;width:40px;border:1px solid #c9cec0;font-size:20px}.gallery-nav button:hover{background:var(--ink);color:var(--on-ink)}.gallery-nav span{font-size:12px;letter-spacing:1px}.gallery-thumbnails{display:flex;gap:10px;margin-top:17px}.gallery-thumbnails button{width:62px;height:70px;padding:5px;border:1px solid transparent;background:#fff8}.gallery-thumbnails button[aria-pressed="true"]{border-color:var(--ink)}.gallery-thumbnails img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.detail-copy{padding:60px 35px 35px}.detail-copy .eyebrow{color:var(--muted)}.detail-copy h2{font-size:44px;margin-top:17px}.detail-price{font-size:24px;font-weight:550;margin:20px 0}.detail-description{font-size:16px;line-height:1.65;color:var(--muted);margin:0 0 25px}.variant-label{font-size:14px;margin-bottom:12px;color:var(--muted)}.variant-label strong{color:var(--ink);font-weight:450}.variants{display:flex;flex-wrap:wrap;gap:8px}.variants button{border:1px solid var(--line);min-height:43px;padding:11px 13px;font-size:14px;display:flex;align-items:center;gap:8px}.variants button[aria-pressed="true"]{border-color:var(--ink);background:var(--surface)}.detail-purchase{display:flex;gap:12px;margin-top:26px}.quantity{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;border:1px solid var(--line)}.quantity button{width:34px;min-height:36px;font-size:20px;padding:0}.quantity span{min-width:26px;text-align:center;font-size:14px}.quantity button:hover:not(:disabled){background:var(--surface)}.detail-purchase .quantity button{min-height:49px}.detail-purchase>.button{flex:1;gap:18px;padding:15px}.view-cart-link{font-size:14px;padding:15px 0 0;text-decoration:underline;text-underline-offset:4px}.purchase-note{font-size:13px;line-height:1.5;color:var(--muted);margin:27px 0 15px;border-top:1px solid var(--line);padding-top:20px}.detail-contact{font-size:14px}.detail-contact:hover{text-decoration:underline;text-underline-offset:4px}.cart-dialog[open]{display:flex;flex-direction:column}.drawer-header{flex-shrink:0}.cart-content{padding:0 24px;flex:1;overflow-y:auto;min-height:0}.cart-item{display:flex;gap:16px;padding:24px 0;border-bottom:1px solid var(--line)}.cart-item>span.cart-thumb{width:88px;height:112px;object-fit:contain;background:var(--tile);padding:7px;flex-shrink:0}
.cart-thumb img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.cart-item-info{flex:1;padding:5px 0}.cart-item-info h3{font-size:16px}.cart-item-info>p{font-size:13px;color:var(--muted);margin:7px 0 16px}.cart-item-info .quantity{width:105px}.cart-item-end{display:flex;align-items:flex-end;justify-content:space-between;flex-direction:column;gap:20px;font-size:14px;font-weight:550;padding-bottom:8px}.remove-item{font-size:23px;font-weight:400;padding:0;width:28px;height:28px;color:var(--muted)}.cart-bottom:not(:empty){padding:23px 24px;border-top:1px solid var(--line);flex-shrink:0;background:var(--paper)}.cart-total{display:flex;justify-content:space-between;font-size:20px}.cart-total strong{font-weight:550}.order-note,.checkout-note{font-size:13px;line-height:1.5;color:var(--muted)}.order-note{margin:13px 0 20px;max-width:320px}.checkout-link{display:flex;width:100%;justify-content:space-between}.copy-order{font-size:14px;display:block;margin:15px auto 0;min-height:32px;text-decoration:underline;text-underline-offset:4px}.checkout-note{font-size:12px;margin:12px 0 0;text-align:center}.copy-fallback{width:100%;min-height:120px;border:1px solid var(--line);padding:10px;margin-top:12px;font-size:14px;background:var(--paper);color:var(--ink)}.empty-cart{min-height:340px;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px 10px;text-align:center}.empty-cart svg{width:52px;height:52px;color:#939987;margin-bottom:23px}.empty-cart h3{font-size:24px}.empty-cart p{font-size:14px;color:var(--muted);line-height:1.5;margin:12px 0 25px}.cart-dialog .toast{bottom:28px;max-width:calc(100% - 32px);width:max-content;z-index:4}
.product-code,.hero-index,.visual-coordinate,.toolbar-label,.brand-strip .eyebrow,.filter sup{font-size:12px}.product-image-button{isolation:isolate}.product-code{background:#f4f5f2cc;padding:2px 0}.product-image-button>img{position:relative;z-index:-1}.hero .eyebrow{font-size:12px}.hero-index{letter-spacing:.6px}
@media(max-width:1000px){.footer{flex-wrap:wrap;gap:20px}.footer>span:not(.copyright){display:none}.detail-copy{padding:55px 25px 25px}.detail-main-image{height:395px}.detail-gallery{padding:20px}.detail-copy h2{font-size:38px}}
@media(max-width:700px){.detail-layout{display:block}.detail-gallery{padding:16px 20px}.detail-main-image{height:320px}.gallery-thumbnails button{height:53px;width:48px}.detail-copy{padding:25px 24px 28px}.detail-copy h2{font-size:36px;margin-top:12px}.detail-price{margin:15px 0}.detail-description{font-size:16px;margin-bottom:20px}.detail-purchase{margin-top:24px}.purchase-note{margin-top:22px}.hero .eyebrow{font-size:12px;letter-spacing:.15px}.filter sup{font-size:12px;margin-left:5px}.product-price{font-size:15px}.product-code{font-size:12px;letter-spacing:0}.brand-strip .eyebrow,.caption-secondary,.section-number,.product-total{font-size:12px}.footer{gap:20px 15px}.footer>span:not(.copyright){display:none}.social-links{order:3;width:100%;margin-left:0;gap:25px}.copyright{margin-left:auto;font-size:12px}.cart-content{padding:0 20px}.drawer-header{padding:18px 20px}.cart-bottom:not(:empty){padding:20px}.cart-item{gap:12px;padding:18px 0}.cart-item>span.cart-thumb{width:75px;height:106px}.cart-item-end{font-size:13px}.brand-strip p{font-size:18px}.add-button{height:36px;width:36px}.toast{font-size:13px;padding:14px 18px}}
@media(max-width:380px){.hero h1{font-size:57px}.hero-copy{padding-left:20px;padding-right:20px}.hero .eyebrow{font-size:12px;gap:8px}.detail-copy{padding-left:18px;padding-right:18px}.detail-purchase{gap:8px}.detail-purchase>.button{gap:8px}.cart-item>span.cart-thumb{width:60px}.cart-item{gap:10px}.quantity button{width:30px}.filters{gap:5px}.filter{padding-left:12px;padding-right:12px}}
/* The original logo stays intact. Only its emblem is framed for compact uses. */
.brand{gap:12px;letter-spacing:-1px;flex-shrink:0;font-weight:750}
.brand-name{white-space:nowrap;font-size:28px;line-height:1.2}
.brand-name>span{color:var(--brand-olive)}
.brand-mark{position:relative;display:block;width:42px;aspect-ratio:517/672;flex:0 0 auto;overflow:hidden}
.brand-mark img{position:absolute;width:198.066%;max-width:none;height:auto;left:-47.582%;top:-12.5%;mix-blend-mode:multiply}
.strip-mark{width:49px;isolation:isolate;background:var(--ink)}
.strip-mark img{filter:grayscale(1) invert(1);mix-blend-mode:screen}
.brand-strip .eyebrow{color:#dce5cd}
.footer-brand .brand-name{font-size:23px}
.olive-period{color:var(--brand-olive)}
@media(max-width:1000px){.header{gap:24px}.navigation{gap:22px}.brand-name{font-size:26px}.brand-mark{width:36px}.footer{gap:18px}}
@media(max-width:700px){.header{gap:14px;padding-left:5%;padding-right:5%}.brand{gap:9px;letter-spacing:-.8px}.brand-name{font-size:25px}.brand-mark{width:31px}.strip-mark{width:38px}.footer-brand .brand-name{font-size:23px}}
@media(max-width:380px){.brand-name{font-size:23px}.brand-mark{width:28px}.cart-trigger{gap:5px}.brand{gap:7px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
/* Кнопка «+» на карточке превращается в счётчик «− N +», рядом корзинка «убрать всё» */
.product-info{flex-wrap:wrap;gap:12px}
.product-info>div:first-child{min-width:0}
.card-controls{flex-shrink:0}
.card-controls{margin-left:auto;max-width:100%}
.card-controls-row{display:flex;align-items:flex-start;gap:6px}
.remove-all-button{width:35px;height:36px;border:1px solid var(--line);display:grid;place-items:center;padding:0;transition:background .2s,color .2s,border-color .2s}
.remove-all-button svg{width:17px;height:17px}
.remove-all-button:hover{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.card-quantity{width:105px}
.card-quantity span{font-weight:550;font-variant-numeric:tabular-nums}
@media(max-width:700px){.card-controls-row{gap:5px}.remove-all-button{width:34px}.card-quantity{width:96px}.card-quantity button{width:30px}}
@media(max-width:480px){.product-info{flex-wrap:wrap}.card-controls{width:100%;display:flex;justify-content:flex-end}}
@media(max-width:380px){.card-controls-row{gap:4px}.remove-all-button{width:28px;height:34px}.remove-all-button svg{width:15px;height:15px}.card-quantity{width:84px}.card-quantity button{width:26px}}
/* Переключатель темы в шапке */
.theme-toggle{width:42px;height:42px;border:1px solid var(--line);display:grid;place-items:center;padding:0;flex-shrink:0;transition:border-color .2s,background .2s,color .2s}
.theme-toggle:hover{border-color:var(--ink)}
.theme-toggle .icon-sun{display:none}
html[data-theme='dark'] .theme-toggle .icon-sun{display:block}
html[data-theme='dark'] .theme-toggle .icon-moon{display:none}
/* Тёмная тема: выбор сохраняется в браузере, по умолчанию — системная */
html[data-theme='dark']{--ink:#e6eae4;--muted:#9ba39b;--olive:#93a75e;--brand-olive:#a6bb7e;--line:#35393b;--paper:#17191b;--surface:#202426;--on-ink:#17191b;--on-tile:#454d49;--on-tile-muted:#5d6661;color-scheme:dark}
html[data-theme='dark'] .hero{background:var(--paper)}
html[data-theme='dark'] .hero-visual{background:var(--tile)}
html[data-theme='dark'] .hero-description{color:#9aa39a}
html[data-theme='dark'] .index-line{background:#3a4140}
html[data-theme='dark'] .brand-mark{background:var(--tile)}
html[data-theme='dark'] .strip-mark img{filter:grayscale(1);mix-blend-mode:multiply}
html[data-theme='dark'] .brand-strip .eyebrow{color:#414b33}
html[data-theme='dark'] .gallery-thumbnails button[aria-pressed="true"]{border-color:var(--olive)}
html[data-theme='dark'] .variants button[aria-pressed="true"]{border-color:var(--olive)}
html[data-theme='dark'] dialog::backdrop{background:#0c0e0f8c}
.dialog-close-rail{position:sticky;top:0;height:0;z-index:3;pointer-events:none}
.dialog-close-rail .close-button{position:absolute;right:12px;top:12px;background:var(--tile);color:var(--on-tile);border:1px solid #c9cec0;pointer-events:auto}
@media(max-width:380px){.header{gap:8px}.theme-toggle{width:36px;height:36px}.theme-toggle svg{width:20px;height:20px}}
.account-trigger{min-height:42px;padding:0 13px;border:1px solid var(--line);display:flex;align-items:center;gap:8px;flex-shrink:0;font-size:13px;transition:border-color .2s,background .2s,color .2s}
.account-trigger:hover{border-color:var(--ink)}
.account-avatar{width:22px;height:22px;border-radius:50%;overflow:hidden;display:grid;place-items:center;flex:0 0 auto;background:var(--surface)}
.account-avatar svg,.account-avatar img{width:100%;height:100%;object-fit:cover}
.account-avatar svg{padding:2px}
.account-dialog{width:min(430px,calc(100% - 32px));max-width:430px}
.account-dialog .drawer-header{align-items:flex-start}
.account-dialog .drawer-header .eyebrow{color:var(--muted);margin:0 0 8px;font-size:10px}
.account-dialog .drawer-header h2{font-size:25px}
.account-content{padding:40px 32px 34px;text-align:center}
.account-emblem{width:64px;height:64px;border-radius:18px;margin:0 auto 24px;display:grid;place-items:center;background:#0077ff;color:#fff;font-size:20px;font-weight:750;letter-spacing:-1px}
.account-content h3{font-size:24px}
.account-content>div>p{color:var(--muted);font-size:14px;line-height:1.5}
.vk-login-button{width:100%;min-height:50px;margin-top:22px;padding:11px 18px;border-radius:10px;background:#0077ff;color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;font-weight:600;transition:background .2s,opacity .2s}
.vk-login-button:hover{background:#0066db}
.vk-login-button:disabled{opacity:.6;cursor:wait}
.vk-login-button svg{width:25px;height:25px}
.account-status{min-height:21px;margin:14px 0 0!important;font-size:12px!important}
.profile-card{display:flex;align-items:center;gap:16px;text-align:left;padding:18px;background:var(--surface)}
.profile-card>img,.profile-placeholder{width:58px;height:58px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.profile-placeholder{display:grid;place-items:center;background:var(--olive);color:#fff;font-size:21px;font-weight:650}
.profile-name{margin:0 0 5px;font-size:18px;font-weight:600}
.profile-email{margin:0;color:var(--muted);font-size:13px;word-break:break-word}
.profile-note{margin:18px 0!important}
.account-logout{width:100%;border:1px solid var(--line);justify-content:center}
@media(max-width:1000px){.account-label{display:none}.account-trigger{width:42px;padding:0;justify-content:center}}
@media(max-width:700px){.account-trigger{width:38px;min-height:38px}.account-avatar{width:21px;height:21px}.account-content{padding:32px 24px 28px}}
@media(max-width:380px){.account-trigger{width:34px;min-height:36px}.account-avatar{width:20px;height:20px}}
/* ================= Живая витрина ================= */
/* Появление блоков при прокрутке: классы навешивает store.js */
html.js .reveal{opacity:0;transform:translateY(22px);transition:opacity .72s cubic-bezier(.22,.68,.2,1) var(--d,0ms),transform .72s cubic-bezier(.22,.68,.2,1) var(--d,0ms)}
html.js .reveal.is-visible{opacity:1;transform:none}
.hero-copy{--d:0ms}
.hero-visual{--d:130ms}
.section-top{--d:0ms}
.catalog-bar{--d:60ms}
.step:nth-child(1){--d:0ms}
.step:nth-child(2){--d:90ms}
.step:nth-child(3){--d:180ms}

/* Шапка прилипает и мягко отделяется при прокрутке */
.header{position:sticky;top:0;z-index:10;transition:box-shadow .35s ease,background .35s ease}
.header.is-stuck{backdrop-filter:blur(12px);background:color-mix(in srgb,var(--paper) 86%,transparent);box-shadow:0 14px 36px -30px rgba(0,0,0,.65)}

/* Бегущая строка под первым экраном */
.marquee{overflow:hidden;margin-top:28px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.marquee-track{display:flex;width:max-content;animation:marquee 36s linear infinite}
.marquee-track span{display:flex;align-items:center;gap:34px;padding-right:34px;font-size:12px;letter-spacing:2.4px;color:var(--muted);white-space:nowrap}
.marquee-track span:after{content:'✦';font-size:11px;color:var(--brand-olive);letter-spacing:0}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* Панель витрины: быстрый выбор товара и переключатель вида */
.catalog-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}
.quick-picks{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.quick-pick{display:inline-flex;align-items:center;gap:10px;min-height:42px;padding:9px 15px;border:1px solid var(--line);background:var(--paper);font-size:13px;transition:border-color .25s,background .25s,color .25s,transform .25s}
.quick-pick:hover{border-color:var(--ink);transform:translateY(-2px)}
.quick-pick.active{border-color:var(--ink);background:var(--ink);color:var(--on-ink)}
.quick-code{font-size:11px;letter-spacing:.9px;color:var(--muted)}
.quick-pick.active .quick-code{color:inherit;opacity:.72}
.quick-price{font-weight:550;font-variant-numeric:tabular-nums}
.view-switch{display:flex;gap:3px;padding:3px;border:1px solid var(--line);flex-shrink:0}
.view-button{width:38px;height:34px;display:grid;place-items:center;color:var(--muted);transition:background .25s,color .25s}
.view-button svg{width:19px;height:19px}
.view-button:hover{background:var(--surface);color:var(--ink)}
.view-button.active{background:var(--ink);color:var(--on-ink)}

/* Вид «список» вместо плитки */
.product-grid[data-view='list']{grid-template-columns:1fr;gap:14px}
.product-grid[data-view='list'] .product-card{display:grid;grid-template-columns:230px minmax(0,1fr);align-items:center;gap:28px;padding:14px;border:1px solid var(--line)}
.product-grid[data-view='list'] .product-image-button{aspect-ratio:1/1;padding:14px}
.product-grid[data-view='list'] .product-info{padding:0 16px 0 0}
.product-grid[data-view='list'] .view-product{display:none}
.product-grid[data-view='list'] .product-card:hover{transform:translateX(4px)}

/* Карточки: подъём, тень, подсветка при выборе товара */
.product-card{outline:1px solid transparent;outline-offset:0;transition:transform .4s cubic-bezier(.22,.68,.2,1),outline-color .35s ease}
.product-card:hover{transform:translateY(-5px)}
.product-image-button{transition:box-shadow .4s ease}
.product-grid[data-view='grid'] .product-card:hover .product-image-button{box-shadow:0 26px 52px -38px rgba(0,0,0,.75)}
.product-card.is-highlighted{outline-color:var(--brand-olive)}
.product-card.is-highlighted .product-image-button{animation:highlightGlow 1.5s ease-in-out 1;box-shadow:0 0 0 1px var(--brand-olive)}
@keyframes highlightGlow{0%,100%{box-shadow:0 0 0 1px var(--brand-olive)}50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--brand-olive) 45%,transparent)}}

/* Кнопки: отклик на наведение и нажатие */
.button{transition:background .25s,color .25s,border-color .25s,transform .25s,box-shadow .25s}
.button:hover{transform:translateY(-2px);box-shadow:0 18px 34px -26px rgba(0,0,0,.7)}
.button:active{transform:translateY(0) scale(.99)}
.button span{transition:transform .3s cubic-bezier(.22,.68,.2,1)}
.button:hover span{transform:translate(3px,-3px)}
.add-button,.remove-all-button,.quantity button,.view-button,.round-arrow,.gallery-nav button{transition:background .25s,color .25s,border-color .25s,transform .25s}
.add-button:hover,.quantity button:hover:not(:disabled),.round-arrow:hover,.gallery-nav button:hover{transform:translateY(-1px)}

/* Навигация: подчёркивание растёт при наведении */
.navigation a{position:relative;transition:color .25s}
.navigation a:after{content:'';position:absolute;left:0;right:0;bottom:6px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .38s cubic-bezier(.22,.68,.2,1)}
.navigation a:hover:after,.navigation .nav-current:after{transform:scaleX(1)}

/* Блок «Как заказать» */
.how{margin:0 5%;padding:24px 0 55px}
.steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0 0 30px;padding:0}
.step{position:relative;padding:24px 22px 26px;background:var(--surface);overflow:hidden;transition:transform .4s cubic-bezier(.22,.68,.2,1)}
.step:hover{transform:translateY(-4px)}
.step:after{content:'';position:absolute;left:0;top:0;height:2px;width:0;background:var(--brand-olive);transition:width .7s cubic-bezier(.22,.68,.2,1) var(--d,0ms)}
.step.is-visible:after{width:100%}
.step-number{display:block;margin-bottom:16px;font-size:12px;letter-spacing:1.4px;color:var(--brand-olive)}
.step h3{margin:0 0 10px;font-size:18px;font-weight:550}
.step p{margin:0;font-size:14px;line-height:1.6;color:var(--muted)}
.how-actions{display:flex;flex-wrap:wrap;gap:12px}

/* Диалоги и служебные анимации */
dialog[open]{animation:dialogIn .3s cubic-bezier(.22,.68,.2,1)}
dialog[open]::backdrop{animation:backdropIn .3s ease}
@keyframes dialogIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes backdropIn{from{opacity:0}to{opacity:1}}
.cart-count.bump{animation:countBump .5s cubic-bezier(.22,.68,.2,1)}
@keyframes countBump{0%{transform:scale(1)}35%{transform:scale(1.45)}100%{transform:scale(1)}}
#detail-image.photo-in{animation:photoIn .45s cubic-bezier(.22,.68,.2,1)}
@keyframes photoIn{from{opacity:.2;transform:scale(.985)}to{opacity:1;transform:none}}
.gallery-thumbnails button{transition:border-color .25s,transform .25s}
.gallery-thumbnails button:hover{transform:translateY(-2px)}
@media(min-width:701px){.hero-image{animation:heroFloat 12s ease-in-out infinite}}
@keyframes heroFloat{0%,100%{transform:scale(1.07) translateY(0)}50%{transform:scale(1.07) translateY(-12px)}}

@media(max-width:1000px){.steps{grid-template-columns:1fr;gap:14px}.how{margin:0 5%;padding:18px 0 48px}}
@media(max-width:700px){
  .marquee{margin-top:16px;padding:12px 0}
  .marquee-track span{font-size:11px;letter-spacing:1.6px;gap:22px;padding-right:22px}
  .catalog-bar{gap:12px;margin-bottom:18px}
  .quick-picks{flex-wrap:nowrap;overflow-x:auto;width:100%;margin:0 -5%;padding:2px 5% 6px;scrollbar-width:none}
  .quick-picks::-webkit-scrollbar{display:none}
  .quick-pick{min-height:40px;padding:8px 13px;white-space:nowrap}
  .view-switch{display:none}
  .product-grid[data-view='list'] .product-card{grid-template-columns:126px minmax(0,1fr);gap:14px;padding:10px}
  .product-grid[data-view='list'] .product-info{padding:0 4px 0 0}
  .step{padding:20px 18px 22px}
  .step h3{font-size:18px}
  .how-actions .button{width:100%}
}
@media(prefers-reduced-motion:reduce){
  html.js .reveal{opacity:1;transform:none}
  .marquee-track,.hero-image,.step:after{animation:none}
  .step:after{width:100%}
}
/* Окно авторизации: вкладки способов входа, форма почты, Telegram */
.auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;margin:0 0 22px;background:var(--paper);border:1px solid var(--line)}
.auth-tab{appearance:none;border:0;background:transparent;padding:10px 4px;font:inherit;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);cursor:pointer;transition:background .25s,color .25s}
.auth-tab:hover{color:var(--ink)}
.auth-tab[aria-selected='true']{background:var(--surface);color:var(--ink)}
.auth-panel{animation:panelIn .35s cubic-bezier(.22,.68,.2,1) both}
.auth-panel[hidden]{display:none}
@keyframes panelIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.auth-panel h3{font-size:23px}
.auth-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 18px;background:var(--paper);border:1px solid var(--line)}
.auth-switch-button{appearance:none;border:0;background:transparent;padding:10px 4px;font:inherit;font-size:13px;color:var(--muted);cursor:pointer;transition:background .25s,color .25s}
.auth-switch-button[aria-pressed='true']{background:var(--surface);color:var(--ink);font-weight:600}
.auth-form{margin:0;text-align:left}
.auth-field{display:block;margin:0 0 12px}
.auth-field[hidden]{display:none}
.auth-field>span{display:block;margin:0 0 6px;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.auth-field input{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font:inherit;font-size:15px;text-align:left;transition:border-color .25s,box-shadow .25s}
.auth-field input::placeholder{color:var(--muted)}
.auth-field input:focus{outline:0;border-color:var(--brand-olive);box-shadow:0 0 0 3px rgba(137,157,99,.18)}
.auth-field input:disabled{opacity:.55}
.auth-field input:-webkit-autofill{-webkit-text-fill-color:var(--ink);-webkit-box-shadow:0 0 0 60px var(--paper) inset}
.auth-submit{width:100%;min-height:50px;justify-content:center;margin-top:4px}
.auth-note{margin:14px 0 0!important;font-size:12px!important;line-height:1.55}
.telegram-emblem{background:#229ed9}
.telegram-emblem svg{width:30px;height:30px}
.telegram-slot{display:flex;justify-content:center;margin-top:18px}
.telegram-slot:empty{display:none}
.telegram-slot iframe{border:0;max-width:100%}
.telegram-link{width:100%;justify-content:center;margin-top:14px}
.profile-provider{margin:16px 0 0!important;font-size:12px!important;color:var(--muted)}
.account-status[data-tone='error']{color:#b4552f!important}
.account-status[data-tone='success']{color:var(--olive)!important}
html[data-theme='dark'] .account-status[data-tone='error']{color:#e39a72!important}
html[data-theme='dark'] .account-status[data-tone='success']{color:#b7c893!important}
@media(max-width:700px){.auth-tabs{margin-bottom:18px}.auth-tab{font-size:10px}.auth-field input{font-size:16px}}
/* «Как заказать» держит ту же ширину, что первый экран и плашка «Держи свой курс» */
@media(min-width:1600px){.how{max-width:1440px;margin-left:auto;margin-right:auto}}
