:root{
  --bg:#0b0b0c;
  --card:#121214;
  --card2:#0f0f11;
  --border:#232326;
  --text:#ffffff;
  --muted:#b7b7bb;
  --muted2:#8a8a90;
  --radius:18px;
  --max:1120px;
  --shadow: 0 10px 28px rgba(0,0,0,.45);
  --red:#d63b2f;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}

.header{position:sticky;top:0;z-index:50;background:rgba(11,11,12,.88);border-bottom:1px solid var(--border);backdrop-filter:blur(10px)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.06em;font-size:14px}
.logo{width:28px;height:28px;border-radius:10px;border:1px solid var(--border);background:linear-gradient(180deg,#1b1b1f,#101012)}
.navlinks{display:flex;gap:8px;align-items:center}
.navlinks a{padding:10px 12px;border-radius:999px;color:var(--muted)}
.navlinks a:hover{background:var(--card2);color:var(--text);border:1px solid var(--border)}
.right{display:flex;align-items:center;gap:10px}
.search{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:999px;border:1px solid var(--border);background:var(--card2);min-width:260px}
.search input{width:100%;background:transparent;border:0;outline:0;color:var(--text);font-size:14px}
.icon{width:18px;height:18px;color:var(--muted2)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 14px;border-radius:999px;font-weight:800;border:1px solid var(--border);background:var(--card);color:var(--text);cursor:pointer;transition:transform .12s ease,background .12s ease,border-color .12s ease}
.btn:hover{transform:translateY(-1px);background:#151518;border-color:#2b2b30}
.btn:active{transform:translateY(0) scale(.99)}
.btn.primary{background:#fff;color:var(--bg);border-color:#fff}
.btn.primary:hover{background:#f2f2f2}
.btn.ghost{background:transparent}
.headerIconBtn,
.cartIconBtn{
  min-width:44px;
  width:44px;
  height:44px;
  padding:0;
  border-radius:999px;
  position:relative;
  flex:0 0 auto;
}
.mobileSearchBtn{display:none}
.cartIcon{
  font-size:18px;
  line-height:1;
}
.cartCount{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
  color:#0b0b0c;
  background:#fff;
  border:1px solid rgba(0,0,0,.15);
}
.search #searchBtn{padding:8px 10px;height:34px}
.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid var(--border);color:var(--muted);font-size:12px;background:transparent}
.badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:transparent;border:1px solid var(--border);font-size:12px;color:var(--muted)}
.h1{font-size:clamp(30px,4vw,54px);line-height:1.05;margin:0;letter-spacing:-0.02em}
.h2{font-size:clamp(18px,2.4vw,28px);line-height:1.15;margin:0}
.p{margin:0;color:var(--muted);line-height:1.6}
.small{color:var(--muted2);font-size:13px}
.hr{height:1px;background:var(--border);border:0;margin:18px 0}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.card.hoverRed:hover{background:var(--red);border-color:rgba(255,255,255,.18);transform:translateY(-2px);box-shadow:0 18px 44px rgba(0,0,0,.55)}
.card.hoverRed:hover .p,.card.hoverRed:hover .small,.card.hoverRed:hover p{color:rgba(255,255,255,.88)!important}
.card.hoverRed:hover .pill,.card.hoverRed:hover .badge{border-color:rgba(255,255,255,.22);color:rgba(255,255,255,.92)}
.card.hoverRed:hover .btn.ghost{border-color:rgba(255,255,255,.22);color:rgba(255,255,255,.95)}
.card.hoverRed:hover .btn.primary{background:#fff;color:#0b0b0c;border-color:#fff}

.section{padding:26px 0}
.hero{padding:28px 0 10px}
.heroGrid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:stretch}
.focus{padding:22px}
.focusGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:center;margin-top:14px}
.focusImg{border-radius:calc(var(--radius) + 6px);overflow:hidden;border:1px solid var(--border);background:#0f0f11}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.kpi{border:1px solid var(--border);border-radius:16px;padding:12px;background:var(--card2)}
.kpi b{display:block;font-size:16px}
.kpi span{display:block;margin-top:6px;color:var(--muted2);font-size:12px}

.grid{display:grid;gap:14px}
.grid.sports{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid.products{grid-template-columns:repeat(4,minmax(0,1fr))}
.sportCard,.productCard{padding:16px}
.sportCard{position:relative;overflow:hidden}
.sportCard::after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(1200px 420px at 75% 40%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(90deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.75) 100%),
    var(--hover-img);
  background-size:cover;background-position:center;
  opacity:0;transform:scale(1.02);
  transition:opacity .18s ease,transform .18s ease;
  z-index:0;
}
.sportCard>*{position:relative;z-index:1}
.sportCard:hover::after{opacity:1;transform:scale(1)}
.sportCard h3{margin:10px 0 6px;font-size:16px}
.sportCard p{margin:0;color:var(--muted);line-height:1.55}
.sportCard .bottom{display:flex;justify-content:space-between;align-items:center;margin-top:12px}

.thumb{border-radius:16px;overflow:hidden;border:1px solid var(--border);background:#0f0f11}
.productCard .thumb{
  display:block;
  aspect-ratio:3/4;
}
.productCard .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.productTitle{font-weight:900;margin:10px 0 6px;font-size:16px}
.priceRow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.price{font-weight:900;font-size:16px}

.breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:18px 0 10px;color:var(--muted2);font-size:13px}

.productPage{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start;padding-bottom:26px}
.productMedia{display:grid;gap:10px;align-self:start}
.productBox{padding:18px}
.exploded{position:relative;border-radius:calc(var(--radius) + 6px);overflow:hidden;border:1px solid var(--border);background:#0f0f11}
.exploded img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.productThumbs{display:flex;gap:8px;flex-wrap:wrap}
.productThumbBtn{width:72px;height:72px;border-radius:10px;border:1px solid var(--border);padding:0;background:#0f0f11;cursor:pointer;overflow:hidden}
.productThumbBtn.active{border-color:var(--red)}
.productThumbBtn img{width:100%;height:100%;object-fit:cover;display:block}
.parts{display:none}
.part{position:absolute;max-width:220px;padding:10px 12px;border-radius:14px;border:1px solid var(--border);background:rgba(18,18,20,.92);box-shadow:var(--shadow);font-size:12px}
.part b{display:block;font-size:12px;margin-bottom:4px}
.part .t{color:var(--muted);line-height:1.35}
.part:before{content:"";position:absolute;width:38px;height:1px;background:#fff;top:16px;left:-38px;opacity:.35}
.accItem{border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--card2)}
.accBtn{width:100%;padding:12px 14px;background:transparent;border:0;color:var(--text);cursor:pointer;font-weight:800;display:flex;justify-content:space-between;gap:12px;align-items:center}
.accBody{display:none;padding:0 14px 14px;color:var(--muted);line-height:1.55}
.accItem.open .accBody{display:block}

.footer{border-top:1px solid var(--border);padding:22px 0 34px;color:var(--muted2);font-size:13px}
.legalLinks{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.legalLinks a{color:var(--text);text-decoration:underline;text-underline-offset:3px;font-weight:700}
.legalBlock{margin-top:10px;color:var(--muted2);line-height:1.6}
.small a,.p a,.legalBlock a{color:var(--text);text-decoration:underline;text-underline-offset:3px;font-weight:600}
.small a:hover,.p a:hover,.legalBlock a:hover,.legalLinks a:hover{color:var(--red)}
.docHeader{border-bottom:1px solid var(--border);padding:14px 0}
.docHeaderNav{display:flex;gap:10px;flex-wrap:wrap}
#toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);padding:10px 14px;border-radius:999px;border:1px solid var(--border);background:rgba(18,18,20,.96);opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}
#toast.show{opacity:1;transform:translateX(-50%) translateY(-2px)}
.errorModal{position:fixed;inset:0;z-index:120;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.55);padding:16px}
.errorModal.show{display:flex}
.errorModalCard{width:min(460px,100%);background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:16px}
.errorModalTitle{font-weight:900;font-size:18px}
.errorModalBody{margin-top:10px;color:var(--muted);line-height:1.5}
.errorModalActions{margin-top:14px;display:flex;justify-content:flex-end}

.searchModal{
  position:fixed;inset:0;z-index:130;
  display:none;align-items:flex-start;justify-content:center;
  background:rgba(0,0,0,.55);padding:16px;padding-top:max(16px,env(safe-area-inset-top));
}
.searchModal.show{display:flex}
.searchModalCard{
  width:min(480px,100%);margin-top:12vh;
  background:var(--card);border:1px solid var(--border);
  border-radius:16px;box-shadow:var(--shadow);padding:16px;
}
.searchModalTitle{font-weight:900;font-size:18px}
.searchModalField{
  display:flex;gap:10px;align-items:center;margin-top:14px;
  padding:10px 12px;border-radius:999px;border:1px solid var(--border);background:var(--card2);
}
.searchModalField input{
  flex:1;min-width:0;background:transparent;border:0;outline:0;
  color:var(--text);font-size:16px;
}
.searchModalField .btn{flex:0 0 auto;padding:10px 16px;height:40px}
.searchModalClose{margin-top:12px;width:100%}

.pageLoader{
  position:fixed;
  inset:0;
  z-index:200;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.58);
  padding:16px;
}
.pageLoaderCard{
  width:min(520px,100%);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:18px;
  display:grid;
  gap:10px;
  text-align:center;
}
.pageLoaderSpinner{
  width:44px;
  height:44px;
  border-radius:999px;
  margin:0 auto;
  border:3px solid rgba(255,255,255,.15);
  border-top-color:#fff;
  animation:spin .8s linear infinite;
}
@keyframes spin{
  to{transform:rotate(360deg)}
}
.mobileBtn{display:none}
#mobilePanel{position:absolute;right:20px;top:62px;width:min(320px,92vw);padding:12px;border-radius:18px;z-index:60;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-6px);transition:opacity .15s ease,transform .15s ease,visibility .15s}
#mobilePanel.show{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}

.threeWrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:980px;margin:0 auto}
.threeCard{padding:18px;min-height:260px;display:flex;flex-direction:column;gap:10px;justify-content:flex-end}
.threeTitle{font-weight:900;font-size:28px;margin-top:auto}
.card.white{background:#fff;color:#0b0b0c;border-color:#fff}
.card.white .p{color:rgba(11,11,12,.78)}
.card.white .pill{border-color:rgba(11,11,12,.22);color:rgba(11,11,12,.9)}

.authPage{min-height:100vh;display:grid;place-items:center;padding:32px 20px}
.authCard{width:min(980px,100%);padding:0;overflow:hidden}
.authGrid{display:grid;grid-template-columns:1fr 1fr}
.authCol{padding:22px}
.authAside{padding:22px;border-left:1px solid var(--border);background:#0b0b0c}
.authTabs{display:flex;gap:10px;flex-wrap:wrap}
.teamPaymentGrid{grid-template-columns:280px 1fr}
#childrenRows{display:grid;gap:12px}
.teamChildRow{
  display:grid;
  gap:12px;
  align-items:start;
  padding:14px;
  min-width:0;
}
.teamChildRow--child{
  grid-template-columns:minmax(160px,1.5fr) repeat(6,minmax(0,1fr)) auto;
}
.teamChildRow--adult{
  grid-template-columns:minmax(160px,1.5fr) repeat(3,minmax(0,1fr)) auto;
}
.teamRowTitle{
  display:none;
  font-weight:900;
  font-size:14px;
  color:var(--text);
}
.teamFieldWrap{display:grid;gap:6px;min-width:0}
.teamFieldLabel{font-size:12px;font-weight:700;color:var(--muted2);line-height:1.3}
.teamField{
  width:100%;
  min-width:0;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card2);
  color:var(--text);
  font-size:16px;
}
.teamField:focus{
  outline:2px solid rgba(255,255,255,.22);
  outline-offset:1px;
}
.teamRowRemove{align-self:end;white-space:nowrap}

@media (max-width:980px){
  .heroGrid{grid-template-columns:1fr}
  .focusGrid{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr 1fr 1fr}
  .productPage{grid-template-columns:1fr}
  .search{min-width:0;width:100%}
  .grid.products{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:760px){
  .navlinks{display:none}
  .mobileBtn{display:inline-flex}
  .mobileSearchBtn{display:inline-flex}
  .right .search{display:none}
  .right{flex-wrap:nowrap;justify-content:flex-end;gap:8px}
  .right > a.cartIconBtn,
  .right > #mobileSearchBtn,
  .right > .mobileBtn,
  .right > .headerIconBtn{
    width:44px!important;
    min-width:44px;
    height:44px;
    padding:0;
    flex:0 0 auto;
  }
  .grid.sports{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpis{grid-template-columns:1fr}
  .teamPaymentGrid{grid-template-columns:1fr}
  .teamPaymentGrid .thumb{max-width:280px}
  .teamChildRow--child,
  .teamChildRow--adult{grid-template-columns:1fr 1fr}
  .teamFieldWrap--full,
  .teamRowRemove{grid-column:1 / -1}
  .teamRowRemove{width:100%;justify-self:stretch}
}
@media (max-width:900px){
  .threeWrap{grid-template-columns:1fr}
  .threeCard{min-height:220px}
  .authGrid{grid-template-columns:1fr}
  .authAside{border-left:0;border-top:1px solid var(--border)}
}
@media (max-width:420px){
  .grid.sports{grid-template-columns:1fr}
  .grid.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .authCol,.authAside{padding:16px}
  .authTabs .btn{width:100%;min-height:46px;font-size:15px;padding:12px 16px}
  .container{padding:0 12px}
  .teamChildRow--child,
  .teamChildRow--adult{grid-template-columns:1fr}
  .teamRowTitle{display:block;grid-column:1 / -1;margin-bottom:-4px}
  .teamFieldWrap--full{grid-column:auto}
  .teamRowRemove{margin-top:4px}
  .right > #logoutBtn{width:100%}
}

/* Кликабельные номера телефонов */
a[href^="tel:"]{
  white-space:nowrap;
  font-weight:700;
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:3px;
}
a[href^="tel:"]:hover{color:var(--red)}
@media (max-width:760px){
  a[href^="tel:"]{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:9px 16px;
    border-radius:999px;
    background:rgba(255,255,255,.07);
    border:1px solid var(--border);
    min-height:44px;
    min-width:44px;
    margin:3px 0;
    text-decoration:none;
    font-size:15px;
  }
  a[href^="tel:"]:hover{background:rgba(255,255,255,.12);color:var(--text)}
}

/* Адаптация карточек товаров на мобильных */
@media (max-width:760px){
  .productCard .thumb{
    aspect-ratio:auto;
    background:var(--card2);
  }
  .productCard .thumb img{
    width:100%;
    height:auto;
    max-height:none;
    object-fit:contain;
    object-position:center;
  }
}
@media (max-width:640px){
  .productCard{padding:12px}
  .productTitle{font-size:14px;margin:8px 0 4px}
  .priceRow{margin-top:8px;flex-wrap:wrap;gap:8px}
  .priceRow .btn{flex:1;min-height:40px;font-size:13px;padding:9px 10px}
  .price{font-size:15px}
  .badge,.pill{font-size:11px;padding:4px 8px}
}

/* Улучшенная шапка на мобильных */
@media (max-width:640px){
  .nav{padding:10px 0;gap:10px}
  .brand{font-size:13px;gap:8px}
  .right{gap:8px}
  .search input{font-size:16px}
}

/* Лайтбокс */
.lb{
  position:fixed;inset:0;z-index:400;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.92);
  padding:16px;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .2s ease,visibility .2s;
}
.lb.open{opacity:1;visibility:visible;pointer-events:auto}
.lb__img{
  max-width:min(90vw,900px);max-height:88vh;
  object-fit:contain;border-radius:12px;display:block;
  user-select:none;-webkit-user-drag:none;
  transition:opacity .15s ease;
}
.lb__img.loading{opacity:0}
.lb__close{
  position:fixed;top:14px;right:14px;
  width:44px;height:44px;border-radius:999px;
  background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);
  color:#fff;font-size:20px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s;z-index:401;line-height:1;
}
.lb__close:hover{background:rgba(255,255,255,.24)}
.lb__nav{
  position:fixed;top:50%;transform:translateY(-50%);
  width:44px;height:58px;border-radius:12px;
  background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);
  color:#fff;font-size:28px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s;z-index:401;line-height:1;
}
.lb__nav:hover{background:rgba(255,255,255,.24)}
.lb__prev{left:12px}
.lb__next{right:12px}
.lb__nav[hidden]{display:none}
.lb__counter{
  position:fixed;bottom:16px;left:50%;transform:translateX(-50%);
  padding:5px 14px;border-radius:999px;
  background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.65);font-size:13px;z-index:401;
  white-space:nowrap;
}
.lb__counter[hidden]{display:none}
.exploded{cursor:zoom-in}

/* Увеличенные фото на странице товара для мобильных */
@media (max-width:760px){
  .exploded img{aspect-ratio:4/3}
  .productThumbBtn{width:64px;height:64px}
}
@media (max-width:480px){
  .exploded img{aspect-ratio:1/1}
  .productThumbs{gap:6px}
  .productThumbBtn{width:56px;height:56px}
  .productBox{padding:14px}
}
