* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background: #f5f5f5;
  font-family: Arial, Helvetica, sans-serif;

  /* ВАЖНО: дать странице скролл */
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.layout{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 100vh;
  position: relative;
  overflow: hidden;
}




/*

------------------------------------ полосы слева справа ------------------------------------

.side {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


.side::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    #000,
    transparent
  );
  opacity: 0.4;
}



.left::after {
  right: 0;
}

.right::after {
  left: 0;
  right: auto;
}

*/

.side-text {
  font-size: 12px;
  letter-spacing: 4px;
  text-align: center;
  color: #333;
  opacity: 0.7;
  user-select: none;
}


.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.center img {
  max-height: 70vh;
  max-width: 80%;
  user-select: none;
}

.buddha {
  max-height: 70vh;
  max-width: 100%;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.4s ease;
  animation: float 6s ease-in-out infinite;
}



#buddha{
  display: block;
  margin: 0 auto;

  animation: buddhaFloat 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

/* постоянная левитация */
@keyframes buddhaFloat{
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* hover добавляет ещё немного вверх */
#buddha:hover{
  transform: translateY(-16px);
}



.buddha:hover {
  transform: scale(1.01);
  opacity: 0.9;
}

.buddha:active {
  transform: scale(0.99);
}


.layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 100vh;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3vw; 
}


.create-acc-side-text {


  display: flex;
  justify-content: center;   /* по горизонтали */
  align-items: center;       /* по вертикали */
  text-align: center;
  height: 100vh;
  letter-spacing: 0.4em;
  color: #8a8a8a

}





/* ===== AUTH (minimal) ===== */
.auth-layout { grid-template-columns: 1fr auto 1fr; }
.auth-center { padding: 0 6vw; }

.auth-card {
  width: min(460px, 92vw);
  border: 1px solid rgba(0,0,0,0.22);
  padding: 34px 28px;
  background: rgba(245,245,245,0.80);
  backdrop-filter: blur(6px);
}

.auth-top { margin-bottom: 18px; text-align: center; user-select: none; }
.auth-title { font-size: 12px; letter-spacing: 6px; opacity: 0.9; }
.auth-sub { 
  margin-top: 6px;
   font-size: 11px;
    letter-spacing: 2px;
     opacity: 0.6;
}






.auth-msg {
  border: 1px solid rgba(0,0,0,0.18);
  padding: 10px 12px;
  margin: 0 0 16px 0;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.85;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 10px; letter-spacing: 5px; opacity: 0.65; user-select: none; }

.auth-input {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.55);
  background: transparent;
  padding: 9px 2px;
  font-size: 14px;
  outline: none;
}

.auth-input:focus {
  border-bottom-color: rgba(0,0,0,0.95);
}

.auth-btn {
  margin-top: 10px;
  color: rgba(0,0,0,0.95);
  background: transparent;
  border: 1px solid rgba(0,0,0,0.50);
  padding: 11px 12px;
  cursor: pointer;
  letter-spacing: 6px;
  font-size: 11px;
  opacity: 0.85;
  transition: transform .15s ease, opacity .15s ease;
}

.auth-btn:hover { opacity: 1; transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0px); opacity: 0.9; }

.auth-footer {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.auth-link {
  font-size: 11px;
  letter-spacing: 2px;
  color: #111;
  text-decoration: none;
  opacity: 0.65;
}

.auth-link:hover { opacity: 1; }
.auth-dot { opacity: 0.35; }

.field { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

.label { 
  display: block; 
}

.input { 
  display: block;
  width: 100%;
}

.auth-card input {
  width: 100%;
  display: block;
  background: transparent !important;
  color: #111;

  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.55);
  border-radius: 0;

  padding: 10px 2px;
  font-size: 14px;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
}

.auth-card label > span:first-child {
  display: block;
  font-size: 10px;
  letter-spacing: 6px;
  opacity: 0.65;
  user-select: none;
}

.auth-card .hint {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.45;
  user-select: none;
}

.topbar{
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  z-index: 50;
  pointer-events: none;
}

.topbar-nick{
  pointer-events: auto;
  font-size: 11px;
  letter-spacing: 7px; /* вот это и даёт твой “шрифт/вайб” */
  text-transform: uppercase;
  opacity: 0.75;
  user-select: none;
}

.topbar-link{
  position: relative;
  display: inline-block;
  pointer-events: auto;
  font-size: 11px;
  letter-spacing: 3px;
  text-decoration: none;
  color: #111;
  opacity: 0.55;
  
  transition: opacity 0.3s ease;
}




/* аура */
.topbar-link::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;

  width: calc(100% + 40px);
  height: calc(100% + 20px);

  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.85) 0%,
    rgba(255,255,255,0.4) 40%,
    rgba(255,255,255,0) 80%
  );

  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  filter: blur(8px);

  transition: opacity 0.35s ease, transform 0.35s ease;

  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.topbar-link:hover::before{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}





.topbar-nick{
  pointer-events: auto;
  font-size: 11px;
  letter-spacing: 7px;
  text-transform: uppercase;
  opacity: 0.75;
  user-select: none;
  text-decoration: none;
  color: #111;
}
.topbar-nick:hover{ opacity: 1; }




/* ===== HERO BG: split left/right halves ===== */

.layout{
  position: relative;
  overflow: hidden;
}

/* сцена фона */
.hero__stage{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* общие для всех слоёв */
.hero__stage .layer{
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* ЛЕВЫЙ фон — занимает левую половину */
.layer--left{
  left: 0;
  width: 55%;              /* можно 50–60% подгонять */
  object-position: left center;
  opacity: 1;
}

/* ПРАВЫЙ фон — занимает правую половину */
.layer--right{
  right: 0;
  width: 55%;
  object-position: right center;
  opacity: 1;
}

/* туманчики тоже по половинам */
.layer--swirlleft{
  left: 0;
  width: 60%;
  object-position: left center;
  opacity: 0.85;
  mix-blend-mode: multiply;
  transform-origin: 70% 50%;
  animation: swirlLeftBreath 7s ease-in-out infinite;

  
}

.layer--swirlright{
  right: 0;
  width: 60%;
  object-position: right center;
  opacity: 0.85;
  mix-blend-mode: multiply;
  transform-origin: 30% 50%;
  animation: swirlRightBreath 7s ease-in-out infinite;

    /* fade вниз */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;

  
}






/* контент поверх фона */
.layout > section{
  position: relative;
  z-index: 2;
}

/* дыхание */
@keyframes swirlLeftBreath{
  0%,100%{ transform: scale(1) translateX(0) rotate(0deg); opacity: .78; }
  50%    { transform: scale(.95) translateX(22px) rotate(3deg); opacity: .92; }
}
@keyframes swirlRightBreath{
  0%,100%{ transform: scale(1) translateX(0) rotate(0deg); opacity: .78; }
  50%    { transform: scale(.95) translateX(-22px) rotate(-3deg); opacity: .92; }
}



/* ====== TUNE TO MATCH MOCKUP (PUT AT END) ====== */

/* grid оставляем */
.layout{
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

/* фон */
.hero__stage{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* все слои по умолчанию */
.hero__stage .layer{
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* ЛЕВЫЙ фон */
.layer--left{
  left: 0;
  width: 52%;
  object-position: left center;
  opacity: 1;
  filter: contrast(1.05) brightness(1.05);
}

/* ПРАВЫЙ фон */
.layer--right{
  right: 0;
  width: 52%;
  object-position: right center;
  opacity: 1;
  filter: contrast(1.05) brightness(0.98);
}

/* === САМОЕ ВАЖНОЕ: SWIRL ДОЛЖЕН БЫТЬ В ЦЕНТРЕ И НА ВЕСЬ КАДР ===
   Твои swirl_left/right — это 2 слоя, но мы кладём их ПОВЕРХ ВСЕГО,
   чтобы они собирали туннель в центре.
*/
.layer--swirlleft,
.layer--swirlright{
  left: 0;
  width: 100%;
  opacity: 0.65;
  object-position: center center;
  mix-blend-mode: multiply;     /* если слишком темно -> normal / overlay */
  filter: blur(0.4px) contrast(1.05);
}

/* Чуть смещаем их навстречу друг другу, чтобы “туннель” совпал */
.layer--swirlleft{
  transform-origin: 50% 50%;
  transform: translateX(2%) scale(1.02);
  animation: swirlBreathL 7.5s ease-in-out infinite;
}

.layer--swirlright{
  transform-origin: 50% 50%;
  transform: translateX(-2%) scale(1.02);
  animation: swirlBreathR 7.5s ease-in-out infinite;
}

/* “сворачивание/разворачивание” к центру */
@keyframes swirlBreathL{
  0%,100%{ transform: translateX(2%) scale(1.02) rotate(0deg); opacity: .58; }
  50%    { transform: translateX(4%) scale(0.97) rotate(2deg); opacity: .72; }
}
@keyframes swirlBreathR{
  0%,100%{ transform: translateX(-2%) scale(1.02) rotate(0deg); opacity: .58; }
  50%    { transform: translateX(-4%) scale(0.97) rotate(-2deg); opacity: .72; }
}

/* контент поверх фона */
.layout > section{
  position: relative;
  z-index: 2;
}

/* ТЕКСТЫ — ближе к краям, как в макете */
.side{
  align-items: center;
}
.side.left{
  justify-content: flex-start;
  padding-left: 5.5vw;
}
.side.right{
  justify-content: flex-end;
  padding-right: 5.5vw;
}

.side-text{
  font-size: 12px;
  letter-spacing: 4px;
  opacity: 0.7;
  transform: translateY(-2vh); /* чуть выше как в макете */

    position: relative;
  display: inline-flex;         /* вместо inline-block */
  justify-content: center;
  align-items: center;
  text-align: center;

  white-space: nowrap;          /* запретить переносы */
  letter-spacing: 0.45em;

  /* ВАЖНО: компенсация spacing, чтобы визуально не уезжал вправо */
  padding-right: 0;
  margin-right: calc(-0.45em);  /* равно letter-spacing */
}





/* аура */
.side-text::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;

  /* размер ауры относительно текста */
  width: calc(100% + 80px);
  height: calc(100% + 34px);

  /* очень мягкое затухание */
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.85) 0%,
    rgba(255,255,255,0.45) 35%,
    rgba(255,255,255,0.18) 55%,
    rgba(255,255,255,0.00) 78%
  );

  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  filter: blur(10px);          /* делает край супер мягким */
  transition: opacity .55s ease, transform .55s ease;

  border-radius: 999px;
  z-index: -1;
  pointer-events: none;
}

.side-text:hover::before{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}




/* Будда — чуть ниже и с мягким “ореолом” */
.center{
  padding: 0 3vw;
}

.buddha{
  max-height: 62vh;           /* в макете она чуть меньше/аккуратнее */
  transform: translateY(2vh);
  filter: drop-shadow(0 18px 22px rgba(0,0,0,0.25));
}

/* Buddah visuals: smaller, softer silhouette and levitation animation */
.center img.buddha {
  position: relative;
  z-index: 3;
  max-width: 80%;
  max-height: 62vh;
  width: auto;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,0.25));
}

/* Inline SVG wrapper styling: softer color, constrained size, levitate */
.buddha-inline {
  display: inline-block;
  max-width: 80%;
  max-height: 62vh;
  width: auto;
  position: relative;
  z-index: 3;
  transform-origin: center center;
}
.buddha-inline svg {
  width: auto;
  height: 62vh;
  display: block;
}
.buddha-inline svg * {
  fill: #222 !important;
  stroke: rgba(34,34,34,0.9) !important;
  stroke-width: 0.6px !important;
  opacity: 0.95 !important;
}

/* Levitation animation (applies when element has .levitate) */
.levitate {
  animation: levitate 4.6s ease-in-out infinite;
}
@keyframes levitate{
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* ореол/свечение под буддой (псевдо-элемент на секции) */
.center{
  position: relative;
}
.center::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(520px, 45vw);
  height: min(520px, 45vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.0) 60%);
  filter: blur(2px);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}
.center > *{
  position: relative;
  z-index: 2;
}


.side.left .side-text::before{
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0) 75%
  );

  filter: blur(10px);
}








#swirlCanvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;           /* ниже картинок/или выше — см. ниже */
  pointer-events: none;
  

}

#swirlRight{
  position:absolute;
  top:0;
  height:100%;
  width:50%;
  z-index:1;
  
}

#swirlCanvas{ left:0; }
#swirlRight{ right:0; }


/* чтобы твои секции были поверх */
.layout > section{ position: relative; z-index: 2; }


.side{
  position: relative;
}

.side-text{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scaleY(1.5);
  text-align: center;
      letter-spacing: -0.50em;
  font-family: 'Alcotton', sans-serif;
    font-weight: 400;

  -webkit-text-stroke: 2.5px #000; /* толщина и цвет */
  font-size: 30px;

}


@font-face {
    font-family: 'Alcotton';
    src: url('/fonts/alcotton.ttf') format('woff2'),
         url('/fonts/alcotton.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



.side.right .side-text{
    color: white;
    -webkit-text-stroke: 1.4px white;
      letter-spacing: -0.50em;
        font-size: 30px;
}









.thread{
  width:100%;
  height:196px;      /* высота области линии */
  position:relative;
}
.thread canvas{
  width:100%;
  height:100%;
  display:block;
}





.cat-title{
  margin: 6px 10px 0;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 1;
}

.empty-cat{
  opacity: .55;
  padding: 14px 10px;
  font-size: 12px;
}

.item{
  width: 240px;        /* БЫЛО 140–160 */
  height: 240px;
  flex: 0 0 240px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 18px;
  transition: transform .25s ease;
}

.item img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*

.item-title{
  font-size: 12px;
  text-align: center;
  color: rgba(0,0,0,.8);
}

.item-price{
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin-top: 2px;
}

*/


.row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex-direction: row;  
  gap: 150px;
  padding: 0.2px 150px 0;
  align-items: flex-start;
   margin-left: 100px;
     margin-top: 50px; 
  overflow-x: visible;
  flex-wrap: wrap;  
  
}







/* ===== Product modal (clean + smooth) ===== */

.pmodal{
  position: fixed;
  inset: 0;
  z-index: 9999;

  /* закрыто по умолчанию */
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

.pmodal[aria-hidden="false"]{
  opacity: 1;
  pointer-events: auto;
}

/* фон */
.pmodal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* панель */
.pmodal__panel{
  position: relative;
  width: min(1100px, calc(100vw - 80px));
  margin: 60px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.18);
  padding: 34px;

  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    transform .65s cubic-bezier(.22, 1, .36, 1),
    opacity .45s ease;
  will-change: transform, opacity;
}

/* открыто */
.pmodal[aria-hidden="false"] .pmodal__panel{
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* закрытие (класс ставим из JS) */
.pmodal.is-closing .pmodal__panel{
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

/* сетка: картинка слева, контент справа */
.pmodal__grid{
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 40px;
  align-items: center;
}

.pmodal__left{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 420px;
}

.pmodal__img{
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display:block;
}

.pmodal__right{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.pmodal__title{
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  color: #636363;
}

.pmodal__desc{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
}

.pmodal__price{
  font-size: 18px;
  margin: 10px 0 14px;
}

.pmodal__select{
  width: 420px;
  max-width: 100%;
  height: 44px;
  border: 0;
  background: #111;
  color: #fff;
  padding: 0 12px;
  border-radius: 0;
  margin: 0 auto 16px;
  display:block;
  text-align:center;
  cursor:pointer;
}

.pmodal__cta{
  background: transparent;
  border: 0;
  color: #414141;
  text-decoration: underline;
  font-size: 16px;
  cursor:pointer;
  margin-top: 8px;
}

/* крестик */
.pmodal__close{
  position:absolute;
  top:15px;
  right:18px;
  width:38px;
  height:38px;
  border:none;
  background:transparent;
  font-size:28px;
  cursor:pointer;
  color:#111;
  opacity:.6;
  transition: opacity .2s ease, transform .2s ease;
}

.pmodal__close:hover{
  opacity:1;
  transform: translate3d(0,0,0) scale(1.06);
}

/* адаптив */
@media (max-width: 820px){
  .pmodal__panel{ margin: 40px auto; padding: 18px; }
  .pmodal__grid{ grid-template-columns: 1fr; }
  .pmodal__left{ min-height: 260px; }
  .pmodal__img{ max-height: 360px; }
  .pmodal__title{ font-size: 18px; }
  .pmodal__select{ width: 100%; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .pmodal, .pmodal__panel{ transition:none !important; }
}



/* FORCE modal animation (must be LAST in style.css) */
.pmodal{
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .45s ease !important;
}
.pmodal[aria-hidden="false"]{
  opacity: 1 !important;
  pointer-events: auto !important;
}

.pmodal__panel{
  opacity: 0 !important;
  transform: translate3d(0, 22px, 0) !important;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1), opacity .45s ease !important;
  will-change: transform, opacity;
}
.pmodal[aria-hidden="false"] .pmodal__panel{
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}
.pmodal.is-closing .pmodal__panel{
  opacity: 0 !important;
  transform: translate3d(0, 10px, 0) !important;
}



.pmodal__desc-block{
  margin: 20px 0 24px;
  text-align: center;
}

.pmodal__desc-title{
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: .7;
}

.pmodal__desc{
  font-size: 15px;
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto;
}












/* topbar layout */













/* "выйти" оставляем как было, а корзину ставим рядом */
/* ===== Cart icon (ONLY catalog) ===== */
.page-catalog #cartBtn{
  position: fixed;        /* чтобы не ломать центровку topbar */
  top: 18px;              /* совпадает с .topbar top:18px */
  right: 286px;            /* сделает чуть левее края; меняй 36..80 */
  z-index: 60;            /* выше topbar (у тебя topbar z-index:50) */

  pointer-events: auto;   /* потому что у .topbar pointer-events:none */
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.page-catalog #cartBtn:hover{ background: rgba(0,0,0,.06); }

.page-catalog #cartBtn .cart-btn__img{
  width: 22px;
  height: 22px;
  display: block;
}

.page-catalog #cartBtn .cart-btn__badge{
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
}


.page-catalog .cart-btn--ghost{
  color: #333 !important;
}


/* ===== CART (only catalog) ===== */
.page-catalog .cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  opacity: 0;
  transition: opacity .22s ease;
  z-index: 9998;
}

.page-catalog .cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 44vw); /* меньше половины */
  min-width: 320px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,.10);
  box-shadow: -20px 0 70px rgba(0,0,0,.22);
  transform: translateX(110%);
  transition: transform .26s ease;
  z-index: 9999;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* open state */
.page-catalog body.cart-open .cart-drawer{ transform: translateX(0); }
.page-catalog body.cart-open .cart-overlay{ opacity: 1; }
.page-catalog body.cart-open{ overflow: hidden; } /* drawer открыт — страницу не скроллим */

.page-catalog .cart-head{
  padding: 16px 16px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.page-catalog .cart-title{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .75;
  user-select:none;
}

.page-catalog .cart-close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  opacity: .6;
}
.page-catalog .cart-close:hover{ opacity: 1; background: rgba(0,0,0,.06); }

.page-catalog .cart-body{
  padding: 10px 16px;
  overflow: auto;
}

.page-catalog .cart-foot{
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.page-catalog .cart-sum{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom: 12px;
}
.page-catalog .cart-muted{ color: rgba(0,0,0,.55); }
.page-catalog .cart-total{ font-weight: 800; }

.page-catalog .cart-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.page-catalog .cart-btn{
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  font-weight: 700;
  background: #fff;
}
.page-catalog .cart-btn--ghost:hover{ background: rgba(0,0,0,.05); }
.page-catalog .cart-btn--primary{
  background: #111;
  color: #fff;
  border-color: #111;
}
.page-catalog .cart-btn--primary:hover{ background: #000; }

.page-catalog .cart-note{
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .55;
  user-select:none;
}

/* items */
.page-catalog .citem{
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
}

.page-catalog .citem__img{
  width: 62px;
  height: 62px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
}
.page-catalog .citem__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.page-catalog .citem__top{
  display:flex;
  justify-content:space-between;
  gap: 10px;
}
.page-catalog .citem__name{
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
}
.page-catalog .citem__meta{
  font-size: 11px;
  opacity: .55;
  margin-top: 4px;
}
.page-catalog .citem__price{
  font-weight: 800;
  white-space: nowrap;
}

.page-catalog .citem__bottom{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.page-catalog .qty{
  display:inline-flex;
  align-items:center;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 999px;
  overflow:hidden;
}
.page-catalog .qty button{
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.page-catalog .qty span{
  width: 30px;
  text-align:center;
  font-weight: 800;
  font-size: 12px;
  opacity: .8;
}

.page-catalog .citem__rm{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  opacity: .55;
}
.page-catalog .citem__rm:hover{ opacity: 1; }

@media (max-width: 520px){
  .page-catalog .cart-drawer{ width: min(92vw, 420px); min-width: unset; }
}
body.page-catalog.cart-open .cart-drawer{ transform: translateX(0); }
body.page-catalog.cart-open .cart-overlay{ opacity: 1; }
body.page-catalog.cart-open{ overflow: hidden; }




/* кнопка раскрытия */
.pmodal__more{
  margin-top: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  opacity: .65;
}
.pmodal__more:hover{ opacity: 1; }

/* когда раскрыто — даём скролл внутри описания (на всякий) */


body.no-scroll{ overflow: hidden !important; }

body.no-scroll{ overflow: hidden !important; }

/* чтобы в модалке можно было скроллить контент */
.pmodal__panel{
  max-height: calc(100vh - 120px);
  overflow: auto;
}

/* описание + кнопка */
#pm_desc_block{
  margin: 20px 0 24px;
  text-align: center;
}

/* свернуто */
#pm_desc_block.is-collapsed #pm_desc{
  max-height: 240px;
  overflow: hidden;
  position: relative;
}

/* градиент снизу (реальный, работает) */
#pm_desc_block.is-collapsed #pm_desc::after{
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}

/* раскрыто — скролл внутри описания */
#pm_desc_block.is-expanded #pm_desc{
  max-height: 420px;
  overflow: auto;
  padding-right: 8px;
}

/* кнопка */
#pm_more{
  margin-top: 10px;
  border: 0;
  color: #434343;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  opacity: .65;
}
#pm_more:hover{ opacity: 1; }




.page-catalog .cart-coupon{
  display:flex;
  gap: 8px;
  align-items: center;
}



.page-catalog .cart-coupon__input{
  width: 83px;       /* ← регулируй тут */
  flex: 0 0 auto;     /* убираем растягивание */
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 8px 10px;
  height: 36px;
  background:#fff;
  outline:none;
}


.page-catalog .cart-coupon__btn{
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  padding: 8px 14px;     /* меньше */
  height: 30px;
  font-size: 12px;       /* меньше текст */
  font-weight: 600;
  background:#fff;
  cursor:pointer;
  color: #333;
  white-space: nowrap;   /* чтобы не переносилось */
  flex-shrink: 0;        /* не сжимается */
}

.page-catalog .cart-coupon__btn:hover{ background: rgba(0,0,0,.05); }

.page-catalog .cart-coupon__status{
  font-size: 12px;
  opacity: .75;
  min-height: 18px;
}
.page-catalog .cart-coupon__status.ok{ color: #0a6; opacity: 1; }
.page-catalog .cart-coupon__status.err{ color: #c22; opacity: 1; }


/* кнопка назад (только каталог) */
.page-catalog .topbar-back{
  position: fixed;
  left: 300px;         /* регулируй */
  top: 18px;          /* совпадает с topbar */
  font-size: 11px;
  letter-spacing: 3px;
  text-decoration: none;
  color: #111;
  opacity: .55;
  z-index: 60;
  transition: opacity .2s ease;
  pointer-events: auto;
}

.page-catalog .topbar-back:hover{
  opacity: 1;
}



.cat-title{
  display:flex;
  justify-content: flex-start; /* ← ВАЖНО */
  align-items:center;
  padding: 0.2px 80px 0;
  margin: 80px 0 20px;
    transform: translateY(-100%);
}



.cat-icon{
  width: 52px;
  height: 52px;
  object-fit: contain;
  display:block;
  opacity: 1;
    filter: none;  
  transition: transform .25s ease, opacity .25s ease;
    animation: iconPulse 4s ease-in-out infinite; 
}

.cat-icon:hover{
  transform: scale(1.08);
  opacity: 1;
}


@keyframes iconPulse{
  0%, 100%{
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(0,0,0,0));
  }
  50%{
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.4));
  }
}


.cat{
 display: grid;
  position: relative;
  min-height: 460px;       /* фиксируем “полосу” между линиями */
  padding: 0;              /* важно: без странных сдвигов */
}


.cat .row{
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);  /* центр по вертикали */
  padding: 0 150px;             /* как у тебя было */
}




.cat-icon-wrap{
  position: relative;
  width: 56px;              /* размер иконки */
  height: 56px;
  display: inline-block;
  flex: 0 0 56px;
}

.cat-icon-wrap .cat-icon{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .22s ease;
  pointer-events: none;     /* ключ: чтобы не “мигало” */
}

.cat-icon-wrap .cat-icon.normal{ opacity: 1; }
.cat-icon-wrap .cat-icon.hover{  opacity: 0; }

/* ховерим по всей зоне cat-title (а не только по пикселям wrap) */
/* hover только на самой иконке */
.cat-icon-wrap:hover .cat-icon.normal{ opacity: 0; }
.cat-icon-wrap:hover .cat-icon.hover{  opacity: 1; }


.cat-title{ position: relative; z-index: 10; }
.cat-icon-wrap{ cursor: pointer; }


.cat-title{
  display: inline-flex;
  align-items: center;
    width: fit-content;
  pointer-events: auto;
  position: relative;
  z-index: 6;
}

/* фиксируем коробку иконки */
.cat-icon-wrap{
  position: relative;
  width: 72px;
  height: 72px;
  display: inline-block;
  cursor: pointer;
}

/* две иконки одна над другой */
.cat-icon-wrap .cat-icon{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .22s ease;
  pointer-events: none;    /* важно: чтобы мышь не “скакала” между картинками */
}

.cat-icon-wrap .normal{ opacity: 1; z-index: 1; }
.cat-icon-wrap .hover { opacity: 0; z-index: 2; }

/* ХОВЕР НА ВСЮ cat-title (не только на точку иконки) */


.thread,
.thread canvas{
  pointer-events: none;
}




html, body { height: 100%; }






.item.product {
  animation: floatSoft 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatSoft {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}



.cat-row{
  display: flex;
  align-items: center;   /* <-- на уровне иконки */
  gap: 36px;
}

.cat-title{ flex: 0 0 auto; }

/* лента занимает остаток ширины */
.cat-row .marquee{
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  padding: 10px 0;

  /* fade с обеих сторон */
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 12%,
    rgba(0,0,0,1) 88%,
    rgba(0,0,0,0) 100%
  );

  mask-image: linear-gradient(
    to right,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 12%,
    rgba(0,0,0,1) 88%,
    rgba(0,0,0,0) 100%
  );

  
}

.cat-row .marquee__track{
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  will-change: transform;
  animation: marqueeMove var(--dur, 35s) linear infinite;
}

@keyframes marqueeMove{
  from { transform: translateX(calc(-1 * var(--half, 0px))); }
  to   { transform: translateX(0); }
}


.cat-row .marquee__track .item.product{
  flex: 0 0 auto;
}


/* 1) НАПРАВЛЕНИЕ: крутить ВПРАВО */
.cat-row .marquee__track{
  animation-direction: reverse !important;
}

/* 2) FADE СЛЕВА/СПРАВА: надежно через псевдо-элементы (вместо mask) */
.cat-row .marquee{
  position: relative;
  overflow: hidden;
}

/* отключаем mask, чтобы не мешал */
.cat-row .marquee{
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* сами фейды */
.cat-row .marquee::before,
.cat-row .marquee::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width: 140px;
  pointer-events:none;
  z-index: 5;
}

/* слева */
.cat-row .marquee::before{
  left:0;
  background: linear-gradient(
    to right,
    #f5f5f5 0%,
    rgba(245,245,245,0.92) 18%,
    rgba(245,245,245,0.65) 42%,
    rgba(245,245,245,0.25) 72%,
    rgba(245,245,245,0) 100%
  );
}

/* справа */
.cat-row .marquee::after{
  right:0;
  background: linear-gradient(
    to left,
    #f5f5f5 0%,
    rgba(245,245,245,0.92) 18%,
    rgba(245,245,245,0.65) 42%,
    rgba(245,245,245,0.25) 72%,
    rgba(245,245,245,0) 100%
  );
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background: #f5f5f5;
  font-family: Arial, Helvetica, sans-serif;

  /* ВАЖНО: дать странице скролл */
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.layout{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 100vh;
  position: relative;
  overflow: hidden;
}




/*

------------------------------------ полосы слева справа ------------------------------------

.side {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


.side::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    #000,
    transparent
  );
  opacity: 0.4;
}



.left::after {
  right: 0;
}

.right::after {
  left: 0;
  right: auto;
}

*/

.side-text {
  font-size: 12px;
  letter-spacing: 4px;
  text-align: center;
  color: #333;
  opacity: 0.7;
  user-select: none;
}


.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.center img {
  max-height: 70vh;
  max-width: 80%;
  user-select: none;
}

.buddha {
  max-height: 70vh;
  max-width: 100%;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.4s ease;
  animation: float 6s ease-in-out infinite;
}



#buddha{
  display: block;
  margin: 0 auto;

  animation: buddhaFloat 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

/* постоянная левитация */
@keyframes buddhaFloat{
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* hover добавляет ещё немного вверх */
#buddha:hover{
  transform: translateY(-16px);
}



.buddha:hover {
  transform: scale(1.01);
  opacity: 0.9;
}

.buddha:active {
  transform: scale(0.99);
}


.layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 100vh;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3vw; 
}


.create-acc-side-text {


  display: flex;
  justify-content: center;   /* по горизонтали */
  align-items: center;       /* по вертикали */
  text-align: center;
  height: 100vh;
  letter-spacing: 0.4em;
  color: #8a8a8a

}





/* ===== AUTH (minimal) ===== */
.auth-layout { grid-template-columns: 1fr auto 1fr; }
.auth-center { padding: 0 6vw; }

.auth-card {
  width: min(460px, 92vw);
  border: 1px solid rgba(0,0,0,0.22);
  padding: 34px 28px;
  background: rgba(245,245,245,0.80);
  backdrop-filter: blur(6px);
}

.auth-top { margin-bottom: 18px; text-align: center; user-select: none; }
.auth-title { font-size: 12px; letter-spacing: 6px; opacity: 0.9; }
.auth-sub { 
  margin-top: 6px;
   font-size: 11px;
    letter-spacing: 2px;
     opacity: 0.6;
}






.auth-msg {
  border: 1px solid rgba(0,0,0,0.18);
  padding: 10px 12px;
  margin: 0 0 16px 0;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.85;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 10px; letter-spacing: 5px; opacity: 0.65; user-select: none; }

.auth-input {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.55);
  background: transparent;
  padding: 9px 2px;
  font-size: 14px;
  outline: none;
}

.auth-input:focus {
  border-bottom-color: rgba(0,0,0,0.95);
}

.auth-btn {
  margin-top: 10px;
  color: rgba(0,0,0,0.95);
  background: transparent;
  border: 1px solid rgba(0,0,0,0.50);
  padding: 11px 12px;
  cursor: pointer;
  letter-spacing: 6px;
  font-size: 11px;
  opacity: 0.85;
  transition: transform .15s ease, opacity .15s ease;
}

.auth-btn:hover { opacity: 1; transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0px); opacity: 0.9; }

.auth-footer {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.auth-link {
  font-size: 11px;
  letter-spacing: 2px;
  color: #111;
  text-decoration: none;
  opacity: 0.65;
}

.auth-link:hover { opacity: 1; }
.auth-dot { opacity: 0.35; }

.field { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

.label { 
  display: block; 
}

.input { 
  display: block;
  width: 100%;
}

.auth-card input {
  width: 100%;
  display: block;
  background: transparent !important;
  color: #111;

  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.55);
  border-radius: 0;

  padding: 10px 2px;
  font-size: 14px;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
}

.auth-card label > span:first-child {
  display: block;
  font-size: 10px;
  letter-spacing: 6px;
  opacity: 0.65;
  user-select: none;
}

.auth-card .hint {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.45;
  user-select: none;
}

.topbar{
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  z-index: 50;
  pointer-events: none;
}

.topbar-nick{
  pointer-events: auto;
  font-size: 11px;
  letter-spacing: 7px; /* вот это и даёт твой “шрифт/вайб” */
  text-transform: uppercase;
  opacity: 0.75;
  user-select: none;
}

.topbar-link{
  position: relative;
  display: inline-block;
  pointer-events: auto;
  font-size: 11px;
  letter-spacing: 3px;
  text-decoration: none;
  color: #111;
  opacity: 0.55;
  
  transition: opacity 0.3s ease;
}




/* аура */
.topbar-link::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;

  width: calc(100% + 40px);
  height: calc(100% + 20px);

  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.85) 0%,
    rgba(255,255,255,0.4) 40%,
    rgba(255,255,255,0) 80%
  );

  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  filter: blur(8px);

  transition: opacity 0.35s ease, transform 0.35s ease;

  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.topbar-link:hover::before{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}





.topbar-nick{
  pointer-events: auto;
  font-size: 11px;
  letter-spacing: 7px;
  text-transform: uppercase;
  opacity: 0.75;
  user-select: none;
  text-decoration: none;
  color: #111;
}
.topbar-nick:hover{ opacity: 1; }




/* ===== HERO BG: split left/right halves ===== */

.layout{
  position: relative;
  overflow: hidden;
}

/* сцена фона */
.hero__stage{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* общие для всех слоёв */
.hero__stage .layer{
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* ЛЕВЫЙ фон — занимает левую половину */
.layer--left{
  left: 0;
  width: 55%;              /* можно 50–60% подгонять */
  object-position: left center;
  opacity: 1;
}

/* ПРАВЫЙ фон — занимает правую половину */
.layer--right{
  right: 0;
  width: 55%;
  object-position: right center;
  opacity: 1;
}

/* туманчики тоже по половинам */
.layer--swirlleft{
  left: 0;
  width: 60%;
  object-position: left center;
  opacity: 0.85;
  mix-blend-mode: multiply;
  transform-origin: 70% 50%;
  animation: swirlLeftBreath 7s ease-in-out infinite;

  
}

.layer--swirlright{
  right: 0;
  width: 60%;
  object-position: right center;
  opacity: 0.85;
  mix-blend-mode: multiply;
  transform-origin: 30% 50%;
  animation: swirlRightBreath 7s ease-in-out infinite;

    /* fade вниз */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;

  
}






/* контент поверх фона */
.layout > section{
  position: relative;
  z-index: 2;
}

/* дыхание */
@keyframes swirlLeftBreath{
  0%,100%{ transform: scale(1) translateX(0) rotate(0deg); opacity: .78; }
  50%    { transform: scale(.95) translateX(22px) rotate(3deg); opacity: .92; }
}
@keyframes swirlRightBreath{
  0%,100%{ transform: scale(1) translateX(0) rotate(0deg); opacity: .78; }
  50%    { transform: scale(.95) translateX(-22px) rotate(-3deg); opacity: .92; }
}



/* ====== TUNE TO MATCH MOCKUP (PUT AT END) ====== */

/* grid оставляем */
.layout{
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

/* фон */
.hero__stage{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* все слои по умолчанию */
.hero__stage .layer{
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* ЛЕВЫЙ фон */
.layer--left{
  left: 0;
  width: 52%;
  object-position: left center;
  opacity: 1;
  filter: contrast(1.05) brightness(1.05);
}

/* ПРАВЫЙ фон */
.layer--right{
  right: 0;
  width: 52%;
  object-position: right center;
  opacity: 1;
  filter: contrast(1.05) brightness(0.98);
}

/* === САМОЕ ВАЖНОЕ: SWIRL ДОЛЖЕН БЫТЬ В ЦЕНТРЕ И НА ВЕСЬ КАДР ===
   Твои swirl_left/right — это 2 слоя, но мы кладём их ПОВЕРХ ВСЕГО,
   чтобы они собирали туннель в центре.
*/
.layer--swirlleft,
.layer--swirlright{
  left: 0;
  width: 100%;
  opacity: 0.65;
  object-position: center center;
  mix-blend-mode: multiply;     /* если слишком темно -> normal / overlay */
  filter: blur(0.4px) contrast(1.05);
}

/* Чуть смещаем их навстречу друг другу, чтобы “туннель” совпал */
.layer--swirlleft{
  transform-origin: 50% 50%;
  transform: translateX(2%) scale(1.02);
  animation: swirlBreathL 7.5s ease-in-out infinite;
}

.layer--swirlright{
  transform-origin: 50% 50%;
  transform: translateX(-2%) scale(1.02);
  animation: swirlBreathR 7.5s ease-in-out infinite;
}

/* “сворачивание/разворачивание” к центру */
@keyframes swirlBreathL{
  0%,100%{ transform: translateX(2%) scale(1.02) rotate(0deg); opacity: .58; }
  50%    { transform: translateX(4%) scale(0.97) rotate(2deg); opacity: .72; }
}
@keyframes swirlBreathR{
  0%,100%{ transform: translateX(-2%) scale(1.02) rotate(0deg); opacity: .58; }
  50%    { transform: translateX(-4%) scale(0.97) rotate(-2deg); opacity: .72; }
}

/* контент поверх фона */
.layout > section{
  position: relative;
  z-index: 2;
}

/* ТЕКСТЫ — ближе к краям, как в макете */
.side{
  align-items: center;
}
.side.left{
  justify-content: flex-start;
  padding-left: 5.5vw;
}
.side.right{
  justify-content: flex-end;
  padding-right: 5.5vw;
}

.side-text{
  font-size: 12px;
  letter-spacing: 4px;
  opacity: 0.7;
  transform: translateY(-2vh); /* чуть выше как в макете */

    position: relative;
  display: inline-flex;         /* вместо inline-block */
  justify-content: center;
  align-items: center;
  text-align: center;

  white-space: nowrap;          /* запретить переносы */
  letter-spacing: 0.45em;

  /* ВАЖНО: компенсация spacing, чтобы визуально не уезжал вправо */
  padding-right: 0;
  margin-right: calc(-0.45em);  /* равно letter-spacing */
}





/* аура */
.side-text::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;

  /* размер ауры относительно текста */
  width: calc(100% + 80px);
  height: calc(100% + 34px);

  /* очень мягкое затухание */
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.85) 0%,
    rgba(255,255,255,0.45) 35%,
    rgba(255,255,255,0.18) 55%,
    rgba(255,255,255,0.00) 78%
  );

  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  filter: blur(10px);          /* делает край супер мягким */
  transition: opacity .55s ease, transform .55s ease;

  border-radius: 999px;
  z-index: -1;
  pointer-events: none;
}

.side-text:hover::before{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}




/* Будда — чуть ниже и с мягким “ореолом” */
.center{
  padding: 0 3vw;
}

.buddha{
  max-height: 62vh;           /* в макете она чуть меньше/аккуратнее */
  transform: translateY(2vh);
  filter: drop-shadow(0 18px 22px rgba(0,0,0,0.25));
}

/* ореол/свечение под буддой (псевдо-элемент на секции) */
.center{
  position: relative;
}
.center::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(520px, 45vw);
  height: min(520px, 45vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.0) 60%);
  filter: blur(2px);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}
.center > *{
  position: relative;
  z-index: 2;
}


.side.left .side-text::before{
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0) 75%
  );

  filter: blur(10px);
}








#swirlCanvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;           /* ниже картинок/или выше — см. ниже */
  pointer-events: none;
  

}

#swirlRight{
  position:absolute;
  top:0;
  height:100%;
  width:50%;
  z-index:1;
  
}

#swirlCanvas{ left:0; }
#swirlRight{ right:0; }


/* чтобы твои секции были поверх */
.layout > section{ position: relative; z-index: 2; }


.side{
  position: relative;
}

.side-text{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scaleY(1.5);
  text-align: center;
      letter-spacing: -0.50em;
  font-family: 'Alcotton', sans-serif;
    font-weight: 400;

  -webkit-text-stroke: 2.5px #000; /* толщина и цвет */
  font-size: 30px;

}


@font-face {
    font-family: 'Alcotton';
    src: url('/fonts/alcotton.ttf') format('woff2'),
         url('/fonts/alcotton.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



.side.right .side-text{
    color: white;
    -webkit-text-stroke: 1.4px white;
      letter-spacing: -0.50em;
        font-size: 30px;
}









.thread{
  width:100%;
  height:196px;      /* высота области линии */
  position:relative;
}
.thread canvas{
  width:100%;
  height:100%;
  display:block;
}





.cat-title{
  margin: 6px 10px 0;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 1;
}

.empty-cat{
  opacity: .55;
  padding: 14px 10px;
  font-size: 12px;
}

.item{
  width: 240px;        /* БЫЛО 140–160 */
  height: 240px;
  flex: 0 0 240px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 18px;
  transition: transform .25s ease;
}

.item img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*

.item-title{
  font-size: 12px;
  text-align: center;
  color: rgba(0,0,0,.8);
}

.item-price{
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin-top: 2px;
}

*/


.row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex-direction: row;  
  gap: 150px;
  padding: 0.2px 150px 0;
  align-items: flex-start;
   margin-left: 100px;
     margin-top: 50px; 
  overflow-x: visible;
  flex-wrap: wrap;  
  
}







/* ===== Product modal (clean + smooth) ===== */

.pmodal{
  position: fixed;
  inset: 0;
  z-index: 9999;

  /* закрыто по умолчанию */
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

.pmodal[aria-hidden="false"]{
  opacity: 1;
  pointer-events: auto;
}

/* фон */
.pmodal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* панель */
.pmodal__panel{
  position: relative;
  width: min(1100px, calc(100vw - 80px));
  margin: 60px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.18);
  padding: 34px;

  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    transform .65s cubic-bezier(.22, 1, .36, 1),
    opacity .45s ease;
  will-change: transform, opacity;
}

/* открыто */
.pmodal[aria-hidden="false"] .pmodal__panel{
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* закрытие (класс ставим из JS) */
.pmodal.is-closing .pmodal__panel{
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

/* сетка: картинка слева, контент справа */
.pmodal__grid{
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 40px;
  align-items: center;
}

.pmodal__left{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 420px;
}

.pmodal__img{
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display:block;
}

.pmodal__right{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.pmodal__title{
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  color: #636363;
}

.pmodal__desc{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
}

.pmodal__price{
  font-size: 18px;
  margin: 10px 0 14px;
}

.pmodal__select{
  width: 420px;
  max-width: 100%;
  height: 44px;
  border: 0;
  background: #111;
  color: #fff;
  padding: 0 12px;
  border-radius: 0;
  margin: 0 auto 16px;
  display:block;
  text-align:center;
  cursor:pointer;
}

.pmodal__cta{
  background: transparent;
  border: 0;
  color: #414141;
  text-decoration: underline;
  font-size: 16px;
  cursor:pointer;
  margin-top: 8px;
}

/* крестик */
.pmodal__close{
  position:absolute;
  top:15px;
  right:18px;
  width:38px;
  height:38px;
  border:none;
  background:transparent;
  font-size:28px;
  cursor:pointer;
  color:#111;
  opacity:.6;
  transition: opacity .2s ease, transform .2s ease;
}

.pmodal__close:hover{
  opacity:1;
  transform: translate3d(0,0,0) scale(1.06);
}

/* адаптив */
@media (max-width: 820px){
  .pmodal__panel{ margin: 40px auto; padding: 18px; }
  .pmodal__grid{ grid-template-columns: 1fr; }
  .pmodal__left{ min-height: 260px; }
  .pmodal__img{ max-height: 360px; }
  .pmodal__title{ font-size: 18px; }
  .pmodal__select{ width: 100%; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .pmodal, .pmodal__panel{ transition:none !important; }
}



/* FORCE modal animation (must be LAST in style.css) */
.pmodal{
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .45s ease !important;
}
.pmodal[aria-hidden="false"]{
  opacity: 1 !important;
  pointer-events: auto !important;
}

.pmodal__panel{
  opacity: 0 !important;
  transform: translate3d(0, 22px, 0) !important;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1), opacity .45s ease !important;
  will-change: transform, opacity;
}
.pmodal[aria-hidden="false"] .pmodal__panel{
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}
.pmodal.is-closing .pmodal__panel{
  opacity: 0 !important;
  transform: translate3d(0, 10px, 0) !important;
}



.pmodal__desc-block{
  margin: 20px 0 24px;
  text-align: center;
}

.pmodal__desc-title{
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: .7;
}

.pmodal__desc{
  font-size: 15px;
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto;
}












/* topbar layout */













/* "выйти" оставляем как было, а корзину ставим рядом */
/* ===== Cart icon (ONLY catalog) ===== */
.page-catalog #cartBtn{
  position: fixed;        /* чтобы не ломать центровку topbar */
  top: 18px;              /* совпадает с .topbar top:18px */
  right: 286px;            /* сделает чуть левее края; меняй 36..80 */
  z-index: 60;            /* выше topbar (у тебя topbar z-index:50) */

  pointer-events: auto;   /* потому что у .topbar pointer-events:none */
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.page-catalog #cartBtn:hover{ background: rgba(0,0,0,.06); }

.page-catalog #cartBtn .cart-btn__img{
  width: 22px;
  height: 22px;
  display: block;
}

.page-catalog #cartBtn .cart-btn__badge{
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
}


.page-catalog .cart-btn--ghost{
  color: #333 !important;
}


/* ===== CART (only catalog) ===== */
.page-catalog .cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  opacity: 0;
  transition: opacity .22s ease;
  z-index: 9998;
}

.page-catalog .cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 44vw); /* меньше половины */
  min-width: 320px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,.10);
  box-shadow: -20px 0 70px rgba(0,0,0,.22);
  transform: translateX(110%);
  transition: transform .26s ease;
  z-index: 9999;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* open state */
.page-catalog body.cart-open .cart-drawer{ transform: translateX(0); }
.page-catalog body.cart-open .cart-overlay{ opacity: 1; }
.page-catalog body.cart-open{ overflow: hidden; } /* drawer открыт — страницу не скроллим */

.page-catalog .cart-head{
  padding: 16px 16px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.page-catalog .cart-title{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .75;
  user-select:none;
}

.page-catalog .cart-close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  opacity: .6;
}
.page-catalog .cart-close:hover{ opacity: 1; background: rgba(0,0,0,.06); }

.page-catalog .cart-body{
  padding: 10px 16px;
  overflow: auto;
}

.page-catalog .cart-foot{
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.page-catalog .cart-sum{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom: 12px;
}
.page-catalog .cart-muted{ color: rgba(0,0,0,.55); }
.page-catalog .cart-total{ font-weight: 800; }

.page-catalog .cart-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.page-catalog .cart-btn{
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  font-weight: 700;
  background: #fff;
}
.page-catalog .cart-btn--ghost:hover{ background: rgba(0,0,0,.05); }
.page-catalog .cart-btn--primary{
  background: #111;
  color: #fff;
  border-color: #111;
}
.page-catalog .cart-btn--primary:hover{ background: #000; }

.page-catalog .cart-note{
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .55;
  user-select:none;
}

/* items */
.page-catalog .citem{
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
}

.page-catalog .citem__img{
  width: 62px;
  height: 62px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
}
.page-catalog .citem__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.page-catalog .citem__top{
  display:flex;
  justify-content:space-between;
  gap: 10px;
}
.page-catalog .citem__name{
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
}
.page-catalog .citem__meta{
  font-size: 11px;
  opacity: .55;
  margin-top: 4px;
}
.page-catalog .citem__price{
  font-weight: 800;
  white-space: nowrap;
}

.page-catalog .citem__bottom{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.page-catalog .qty{
  display:inline-flex;
  align-items:center;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 999px;
  overflow:hidden;
}
.page-catalog .qty button{
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.page-catalog .qty span{
  width: 30px;
  text-align:center;
  font-weight: 800;
  font-size: 12px;
  opacity: .8;
}

.page-catalog .citem__rm{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  opacity: .55;
}
.page-catalog .citem__rm:hover{ opacity: 1; }

@media (max-width: 520px){
  .page-catalog .cart-drawer{ width: min(92vw, 420px); min-width: unset; }
}
body.page-catalog.cart-open .cart-drawer{ transform: translateX(0); }
body.page-catalog.cart-open .cart-overlay{ opacity: 1; }
body.page-catalog.cart-open{ overflow: hidden; }




/* кнопка раскрытия */
.pmodal__more{
  margin-top: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  opacity: .65;
}
.pmodal__more:hover{ opacity: 1; }

/* когда раскрыто — даём скролл внутри описания (на всякий) */


body.no-scroll{ overflow: hidden !important; }

body.no-scroll{ overflow: hidden !important; }

/* чтобы в модалке можно было скроллить контент */
.pmodal__panel{
  max-height: calc(100vh - 120px);
  overflow: auto;
}

/* описание + кнопка */
#pm_desc_block{
  margin: 20px 0 24px;
  text-align: center;
}

/* свернуто */
#pm_desc_block.is-collapsed #pm_desc{
  max-height: 240px;
  overflow: hidden;
  position: relative;
}

/* градиент снизу (реальный, работает) */
#pm_desc_block.is-collapsed #pm_desc::after{
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}

/* раскрыто — скролл внутри описания */
#pm_desc_block.is-expanded #pm_desc{
  max-height: 420px;
  overflow: auto;
  padding-right: 8px;
}

/* кнопка */
#pm_more{
  margin-top: 10px;
  border: 0;
  color: #434343;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  opacity: .65;
}
#pm_more:hover{ opacity: 1; }




.page-catalog .cart-coupon{
  display:flex;
  gap: 8px;
  align-items: center;
}



.page-catalog .cart-coupon__input{
  width: 83px;       /* ← регулируй тут */
  flex: 0 0 auto;     /* убираем растягивание */
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 8px 10px;
  height: 36px;
  background:#fff;
  outline:none;
}


.page-catalog .cart-coupon__btn{
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  padding: 8px 14px;     /* меньше */
  height: 30px;
  font-size: 12px;       /* меньше текст */
  font-weight: 600;
  background:#fff;
  cursor:pointer;
  color: #333;
  white-space: nowrap;   /* чтобы не переносилось */
  flex-shrink: 0;        /* не сжимается */
}

.page-catalog .cart-coupon__btn:hover{ background: rgba(0,0,0,.05); }

.page-catalog .cart-coupon__status{
  font-size: 12px;
  opacity: .75;
  min-height: 18px;
}
.page-catalog .cart-coupon__status.ok{ color: #0a6; opacity: 1; }
.page-catalog .cart-coupon__status.err{ color: #c22; opacity: 1; }


/* кнопка назад (только каталог) */
.page-catalog .topbar-back{
  position: fixed;
  left: 300px;         /* регулируй */
  top: 18px;          /* совпадает с topbar */
  font-size: 11px;
  letter-spacing: 3px;
  text-decoration: none;
  color: #111;
  opacity: .55;
  z-index: 60;
  transition: opacity .2s ease;
  pointer-events: auto;
}

.page-catalog .topbar-back:hover{
  opacity: 1;
}



.cat-title{
  display:flex;
  justify-content: flex-start; /* ← ВАЖНО */
  align-items:center;
  padding: 0.2px 80px 0;
  margin: 80px 0 20px;
    transform: translateY(-100%);
}



.cat-icon{
  width: 52px;
  height: 52px;
  object-fit: contain;
  display:block;
  opacity: 1;
    filter: none;  
  transition: transform .25s ease, opacity .25s ease;
    animation: iconPulse 4s ease-in-out infinite; 
}

.cat-icon:hover{
  transform: scale(1.08);
  opacity: 1;
}


@keyframes iconPulse{
  0%, 100%{
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(0,0,0,0));
  }
  50%{
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.4));
  }
}


.cat{
 display: grid;
  position: relative;
  min-height: 460px;       /* фиксируем “полосу” между линиями */
  padding: 0;              /* важно: без странных сдвигов */
}


.cat .row{
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);  /* центр по вертикали */
  padding: 0 150px;             /* как у тебя было */
}




.cat-icon-wrap{
  position: relative;
  width: 56px;              /* размер иконки */
  height: 56px;
  display: inline-block;
  flex: 0 0 56px;
}

.cat-icon-wrap .cat-icon{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .22s ease;
  pointer-events: none;     /* ключ: чтобы не “мигало” */
}

.cat-icon-wrap .cat-icon.normal{ opacity: 1; }
.cat-icon-wrap .cat-icon.hover{  opacity: 0; }

/* ховерим по всей зоне cat-title (а не только по пикселям wrap) */
/* hover только на самой иконке */
.cat-icon-wrap:hover .cat-icon.normal{ opacity: 0; }
.cat-icon-wrap:hover .cat-icon.hover{  opacity: 1; }


.cat-title{ position: relative; z-index: 10; }
.cat-icon-wrap{ cursor: pointer; }


.cat-title{
  display: inline-flex;
  align-items: center;
    width: fit-content;
  pointer-events: auto;
  position: relative;
  z-index: 6;
}

/* фиксируем коробку иконки */
.cat-icon-wrap{
  position: relative;
  width: 72px;
  height: 72px;
  display: inline-block;
  cursor: pointer;
}

/* две иконки одна над другой */
.cat-icon-wrap .cat-icon{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .22s ease;
  pointer-events: none;    /* важно: чтобы мышь не “скакала” между картинками */
}

.cat-icon-wrap .normal{ opacity: 1; z-index: 1; }
.cat-icon-wrap .hover { opacity: 0; z-index: 2; }

/* ХОВЕР НА ВСЮ cat-title (не только на точку иконки) */


.thread,
.thread canvas{
  pointer-events: none;
}




html, body { height: 100%; }




















.page-catalog .cat-row .marquee{ min-height: 260px !important; }



/* ===== REGISTER NEW DESIGN ===== */
.reg-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  background: #f5f5f5;
  padding: 20px;
}

.reg-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  width: min(620px, 92vw);
  aspect-ratio: 1 / 1.25;  /* подгони если нужно */
  aspect-ratio: 1 / 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .reg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
     object-fit: contain;
    z-index: 1;
  }

.reg-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.reg-content {
  position: relative;
  z-index: 2;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 90%;
  max-width: 500px;
}

.reg-title {
  margin-bottom: 10px;
  text-align: center;
}

.reg-title img {
  max-width: 300px;
  width: 100%;
  height: auto;
  user-select: none;
}

.reg-errors {
  width: 100%;
  background: rgba(255, 100, 100, 0.9);
  color: white;
  padding: 12px 14px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 10px 0;
}

.reg-errors div {
  line-height: 1.4;
}

.reg-errors div:not(:last-child) {
  margin-bottom: 4px;
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.reg-field {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.reg-field-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  user-select: none;
  display: block;
}

.reg-input {
  position: absolute;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  width: 70%;
  padding: 8px 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  caret-color: white;
}

.reg-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.reg-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  -webkit-text-fill-color: white;
}

.reg-btn {
  margin-top: 10px;
  padding: 10px 20px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-weight: 600;
}

.reg-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
  color: white;
}

.reg-btn:active {
  transform: scale(0.98);
}

.reg-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 11px;
  letter-spacing: 1px;
}

.reg-link {
  color: white;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  text-transform: lowercase;
}

.reg-link:hover {
  opacity: 1;
}

.reg-dot {
  opacity: 0.4;
}

/* === FORCE SCALE REGISTER (must be LAST) === */

.reg-layout{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* жёстко ограничиваем размер карточки */
.reg-container{
  width: min(520px, 92vw) !important;  /* <-- уменьши/увеличь тут */
  height: auto !important;
  aspect-ratio: 1 / 1.25 !important;   /* <-- если не подходит — меняй */
  max-height: 78vh !important;         /* <-- не даст стать огромной по высоте */
  position: relative;
}

/* фон панели НЕ кропаем */
.reg-bg img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* поля тоже ограничиваем */
.reg-field-img{
  width: min(360px, 86%) !important;
  height: auto !important;
  display: block;
}

/* контент внутри */
.reg-content{
  width: 100% !important;
  max-width: 520px !important;
  padding: 28px 18px !important;
}

/* ===== REGISTER (MATCH MOCKUP) ===== */

.reg-page{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f5f5f5;
}

/* карточка/ткань */
.reg-card{
  position: relative;
  width: min(760px, 92vw);
  aspect-ratio: 1 / 1.18;       /* под макет */
}

/* ткань */
.reg-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

/* "ПРИНЯТИЕ" */
.reg-head{
  position: absolute;
  left: 50%;
  top: 23%;
  transform: translateX(-50%);
  width: 52%;
  user-select: none;
  pointer-events: none;
}

/* ошибки */
.reg-errors{
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translateX(-50%);
  width: min(520px, 88%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .06em;
  border-radius: 6px;
}

/* форма как “слой” поверх ткани */
.reg-form{
  position: absolute;
  inset: 0;
}

/* лейблы (маленькие) */
.reg-lbl{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  user-select: none;
  pointer-events: none;
  opacity: .95;
}
.reg-lbl--nick  { top: 18%; }
.reg-lbl--email { top: 47%; }
.reg-lbl--pass  { top: 56%; }
.reg-lbl--pass2 { top: 65%; }

/* линии */
.reg-lines{
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translateX(-50%);
  width: 64%;
  user-select: none;
  pointer-events: none;
  opacity: 1;
}

/* инпуты (строго на линиях) */
.reg-in{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  text-align: center;
  font-size: 14px;
  letter-spacing: .22em;
  padding: 6px 0;
  caret-color: #fff;
}

/* Y-позиции подгонены под line.png (можно микро-подвинуть) */
.reg-in--nick {  top: 49.2%; }
.reg-in--email{  top: 57.2%; }
.reg-in--pass {  top: 65.2%; }
.reg-in--pass2{  top: 73.2%; }

/* autofill fix */
.reg-in:-webkit-autofill,
.reg-in:-webkit-autofill:hover,
.reg-in:-webkit-autofill:focus{
  -webkit-text-fill-color: #fff;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0px 1000px transparent inset;
}

/* кнопка как в макете (текст по центру на “полосе” ткани) */
.reg-btn{
  position: absolute;
  left: 50%;
  top: 82.5%;
  transform: translateX(-50%);
  width: 56%;
  height: 44px;
  background: rgba(0,0,0,0.55);
  border: 0;
  color: #fff;
  letter-spacing: .26em;
  text-transform: lowercase;
  cursor: pointer;
  backdrop-filter: blur(2px);
}
.reg-btn:hover{ background: rgba(0,0,0,0.65); }
.reg-btn:active{ transform: translateX(-50%) scale(0.99); }

/* низ */
.reg-footer{
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .12em;
}
.reg-link{ color: #fff; text-decoration: none; opacity: .7; }
.reg-link:hover{ opacity: 1; }
.reg-dot{ opacity: .35; }

/* мобилка */
@media (max-width: 520px){
  .reg-card{ width: min(520px, 96vw); }
  .reg-head{ width: 64%; }
  .reg-lines{ width: 78%; }
  .reg-in{ width: 60%; font-size: 13px; }
  .reg-lbl{ width: 40%; }
  .reg-btn{ width: 72%; }
}

/* FIX LAYERS */
.reg-card{ position: relative; }

.reg-bg{ 
  position:absolute; 
  inset:0; 
  z-index: 0 !important; 
}

.reg-head,
.reg-errors,
.reg-form{
  position: absolute;
  z-index: 2 !important;
}

/* внутри формы — тоже поверх */
.reg-form *{
  position: absolute;
  z-index: 3;
}

/* картинки-лейблы и линии не должны ловить клики */
.reg-lbl,
.reg-lines{
  pointer-events: none;
  user-select: none;
}


/* ===== CLEAN CSS LINES LIKE MOCKUP ===== */

.reg-card{
  width: min(1000px, 95vw);   /* ткань чуть больше */
  aspect-ratio: 1 / 1.18;
  isolation: isolate;
}

/* лейблы немного меньше */
.reg-lbl{
  width: 23%;
  opacity: .9;
}
.reg-lbl--nick  { top: 32%; }
.reg-lbl--email { top: 42%; }
.reg-lbl--pass  { top: 52.2%; }
.reg-lbl--pass2 { top: 63%; }


/* контейнер поля */
.reg-field{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:56%;
  height:26px;
}

/* вертикальные позиции линий */
.reg-field--nick  { top: 45%; }
.reg-field--email { top: 55.0%; }
.reg-field--pass  { top: 66%; }
.reg-field--pass2 { top: 76%; }

/* САМА ЛИНИЯ */
.reg-field::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  top: -30px;
  background:#ffffff;
  box-shadow:
    0 0 8px rgba(255,255,255,.9),
    0 0 18px rgba(255,255,255,.7),
    0 0 35px rgba(255,255,255,.5);
}

/* инпут */
.reg-field input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background:transparent;
  border:0;
  outline:none;
  text-align:center;
  color:#fff;
  font-size:14px;
  letter-spacing:.28em;
  padding:0 6px;
  z-index:2;
}

/* autofill fix */
.reg-field input:-webkit-autofill{
  -webkit-text-fill-color:#fff;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0px 1000px transparent inset;
}

/* кнопка ближе к макету */
.reg-btn{
  top: 84%;
  width: 58%;
  height: 42px;
  background: rgba(0,0,0,.55);
  border: 0;
  letter-spacing:.35em;
  font-size:13px;
}


.reg-btn{
  position: absolute;
  left: 50%;
  top: 75%;
  transform: translateX(-50%);
  width: 42%;
  height: 44px;

  background: rgba(210,210,210,0.15);
  border: 2px solid rgba(245,245,245,0.55);
  border-radius: 999px;

  color: rgba(255,255,255,0.92);
  text-shadow: 0 0 10px rgba(255,255,255,0.45);

  letter-spacing: .32em;
  font-size: 12px;
  text-transform: lowercase;

  cursor: pointer;

  box-shadow:
    0 0 10px rgba(255,255,255,.55),
    0 0 22px rgba(255,255,255,.35),
    inset 0 0 16px rgba(255,255,255,.18);
  backdrop-filter: blur(1px);

  transition: transform .12s ease, opacity .12s ease;
}

.reg-btn:hover{
  transform: translateX(-50%) scale(1.02);
  opacity: 1;
}

.reg-btn:active{
  transform: translateX(-50%) scale(0.99);
}





/* ===== REGISTER: text starts from LEFT + sits ON the line ===== */

/* одна переменная — двигаешь линию и текст вместе */
.reg-field{
  --line-y: -30px;          /* это твоё текущее top:-30px у линии */
  position: absolute;
}

/* линия */
.reg-field::before{
  top: var(--line-y) !important;
}

/* инпут ставим НА линию */
.reg-field input{
  left: 0;
  right: 0;

  /* текст на той же высоте, что линия */
    top: calc(var(--line-y) - 21px) !important; 
  height: 28px !important;
  line-height: 28px !important;

  /* начало текста СЛЕВА */
  text-align: left !important;
  padding-left: 0 !important;        /* хочешь микрозазор -> поставь 4px */
  padding-right: 0 !important;
  text-indent: 0 !important;

  /* чтобы не было “центра” из-за transform где-то выше */
  transform: none !important;

  /* если у тебя огромный letter-spacing — слева будет выглядеть странно */
  letter-spacing: .22em !important;  /* можешь вернуть своё значение */
}

/* placeholder тоже слева */
.reg-field input::placeholder{
  text-align: left !important;
}


.reg-card{
  width: min(700px, 100vw);
  max-height: 100vh;
  aspect-ratio: 1 / 1.18 !important;
}

/* убираем лишний скролл */
.reg-page{
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}


/* ===== REGISTER TOP NAV ===== */

/* ===== REGISTER TOP NAV ===== */

.reg-topbar{
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 20px;

  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: lowercase;

  z-index: 100;
}

.reg-toplink{
  color: #111;
  text-decoration: none;
  opacity: .6;
  transition: opacity .2s ease, transform .2s ease;
}

.reg-toplink:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.reg-sep{
  opacity: .35;
}

/* ===== REGISTER LINES: grey / blue-grey ===== */

.reg-field::before{
  background: #43494f !important;   /* сине-серый */
  height: 1.5px !important;         /* чуть тоньше */
  box-shadow: none !important;      /* убираем свечение */
}


body.page-login .reg-lbl{
  width: 28%;        /* было ~20% — делаем заметно больше */
}

body.page-login .reg-lbl--email{
  top: 38%;          /* было ~42% — поднимаем выше */
}

body.page-login .reg-lbl--pass{
  top: 49%;          /* было ~53% — тоже выше */
}


body.page-login .reg-btn{
  margin-top: -60px;   /* меньше = выше */
}


.page-catalog .cat-row .marquee::before,
.page-catalog .cat-row .marquee::after{
  width: 140px !important;
}

.page-catalog .cat-row .marquee::before{
  background: linear-gradient(
    to right,
    #f5f5f5 0%,
    rgba(245,245,245,0.92) 18%,
    rgba(245,245,245,0.65) 42%,
    rgba(245,245,245,0.25) 72%,
    rgba(245,245,245,0) 100%
  ) !important;
}

.page-catalog .cat-row .marquee::after{
  background: linear-gradient(
    to left,
    #f5f5f5 0%,
    rgba(245,245,245,0.92) 18%,
    rgba(245,245,245,0.65) 42%,
    rgba(245,245,245,0.25) 72%,
    rgba(245,245,245,0) 100%
  ) !important;
}


