/* ===== наследованные блоки ===== */
/* =====================================================
   БЛОК 1 — HERO
===================================================== */
.hero{
  position: relative;
  padding: 80px 0 110px;
  background: linear-gradient(180deg, var(--bg-yellow) 0%, #FFFFFF 100%);
}

.hero__inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items:center;
}

.hero__title{
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__subtitle{
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 30px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--red{
  background: var(--red);
  color:#fff;
  box-shadow: 0 8px 20px rgba(255,59,48,0.35);
}
.btn--red:hover{ transform: translateY(-2px); background: var(--red-dark); }

.btn--outline{
  border: 2.5px solid var(--yellow);
  color: var(--text-primary);
  background: #fff;
}
.btn--outline:hover{ background: var(--yellow); transform: translateY(-2px); }

@keyframes cascadeDown{
  0%   { transform: translateY(-290px) scale(0.5);  opacity: 0.18; z-index: 1; filter: blur(2px); }
  25%  { transform: translateY(-145px) scale(0.78); opacity: 0.55; z-index: 3; filter: blur(0.6px); }
  50%  { transform: translateY(0)      scale(1.18); opacity: 1;    z-index: 9; filter: blur(0); }
  75%  { transform: translateY(145px)  scale(0.78); opacity: 0.55; z-index: 3; filter: blur(0.6px); }
  100% { transform: translateY(290px)  scale(0.5);  opacity: 0.18; z-index: 1; filter: blur(2px); }
}

/* =====================================================
   БЛОК 2 — ЭКОСИСТЕМА (табы)
===================================================== */
.section-label{
  display:inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title{
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  margin: 0 0 12px;
  max-width: 560px;
}

.section-note{
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.ecosystem{ position: relative; padding: 90px 0; }

.ecosystem__inner{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items:center;
}

.tabs{
  display:flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tab{
  background:none;
  border:none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 4px;
  margin-right: 24px;
  cursor:pointer;
  position: relative;
}
.tab::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height:3px;
  background: var(--red);
  border-radius: 3px;
  transform: scaleX(0);
  transition: transform .25s ease;
}
.tab.is-active{ color: var(--red); }
.tab.is-active::after{ transform: scaleX(1); }

.tab-panel{
  display:none;
  color: var(--text-secondary);
  font-size: 15px;
  animation: fadeIn .35s ease;
}
.tab-panel.is-active{ display:block; }

@keyframes fadeIn{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

.link-arrow{
  display:inline-block;
  margin-top: 16px;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

.badge{
  display:inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
}

.ecosystem__visual.ecosystem__visual--video{
  width: 315px;
  max-width: 100%;
  height: 560px;
  margin: 0 auto;
  padding: 0;
  border: 3px solid var(--yellow);
  border-style: solid;
  background: #000;
  overflow: hidden;
}
.ecosystem__visual.ecosystem__visual--video video{ width: 100%; height: 100%; object-fit: cover; display:block; }

.ecosystem__visual{
  height: 360px;
  border-radius: var(--radius);
  border: 2px dashed var(--yellow);
  background: var(--bg-yellow);
  display:flex; align-items:center; justify-content:center;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  text-align: center;
  padding: 20px;
}

/* =====================================================
   БЛОК 3 — МАТРИЦА ПАРТНЁРОВ
===================================================== */
.partners{ position: relative; padding: 90px 0; background: var(--bg-red-tint); }

.partners__grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.partner-tile{
  --brand-color: var(--yellow);
  position: relative;
  overflow: hidden;
  padding: 26px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: #fff;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap: 8px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.partner-tile::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 50% 20%, var(--brand-color), transparent 70%);
  opacity: 0;
  filter: blur(20px);
  transition: opacity .3s ease;
}

.partner-tile:hover{
  border-color: var(--brand-color);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-color) 35%, transparent);
  transform: translateY(-4px);
}
.partner-tile:hover::before{ opacity: 0.18; }

.partner-tile__logo{
  width: 72px; height:72px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  position: relative; z-index:1;
  padding: 10px;
}
.partner-tile__logo img{ max-width:100%; max-height:100%; object-fit:contain; }

/* страница «Бренды»: крупные плитки с информацией при наведении */
.partners__grid--brands{ grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partners__grid--brands .partner-tile{ min-height: 250px; justify-content:center; cursor: pointer; }
.partners__grid--brands .partner-tile__logo{ width: 150px; height: 96px; padding: 10px; }
.partner-tile__hint{ min-height: 18px; }

.partner-tile__info{
  position: absolute; inset: 0;
  z-index: 3;
  padding: 22px;
  background: #fff;
  display:flex; flex-direction:column; justify-content:center; gap: 6px;
  text-align: left;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  overflow-y: auto;
}
.partner-tile__info strong{ font-size: 17px; font-weight: 900; color: var(--text-primary); }
.partner-tile__info em{ font-size: 12px; font-style: normal; font-weight: 700; color: var(--brand-color); }
.partner-tile__info p{ margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.partner-tile:hover .partner-tile__info,
.partner-tile:focus .partner-tile__info,
.partner-tile.is-open .partner-tile__info{ opacity: 1; visibility: visible; transform: none; }

.partner-tile__name{ font-weight: 800; font-size: 15px; position: relative; z-index:1; }
.partner-tile__hint{ font-size: 12px; color: var(--text-secondary); position: relative; z-index:1; }

.partner-tile__link{
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  position: relative; z-index:1;
}
.partner-tile:hover .partner-tile__link{ opacity: 1; transform: translateY(0); }

/* =====================================================
   ОНЛАЙН-МАГАЗИНЫ
===================================================== */
.shops{ padding: 90px 0; }

.shops__inner{
  display:grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items:center;
}

.shops__desc{ color: var(--text-secondary); max-width: 380px; }

.shops__cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shops__cards--quad{ grid-template-columns: repeat(4, 1fr); }

.shop-card{
  padding: 24px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: #fff;
  display:flex; flex-direction:column; gap:10px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.shop-card:hover{
  border-color: var(--red);
  box-shadow: 0 12px 24px rgba(255,59,48,0.18);
  transform: translateY(-3px);
}

.shop-card__icon{
  width:42px; height:42px;
  border-radius: 12px;
  background: var(--bg-yellow);
  border: 2px solid var(--yellow);
  display:flex; align-items:center; justify-content:center;
  overflow: hidden;
}
.shop-card__icon img{ width:100%; height:100%; object-fit:cover; }

.shop-card__name{ font-weight:800; font-size:16px; }
.shop-card__desc{ font-size: 13px; color: var(--text-secondary); }

/* =====================================================
   ФУТЕР
===================================================== */
.footer{
  background: var(--text-primary);
  color: #fff;
  padding: 64px 0 24px;
  margin-top: 40px;
}

.footer__col{ display:flex; flex-direction:column; gap:10px; }

.footer__col a{
  font-size: 14px;
  color: #fff;
  opacity: 0.85;
  transition: opacity .2s ease, color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__col a:hover{ opacity: 1; color: var(--yellow); }

.footer__col p{
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}

/* =====================================================
   БАННЕР ВНУТРЕННИХ СТРАНИЦ + ХЛЕБНЫЕ КРОШКИ
===================================================== */
.page-banner{
  position: relative;
  padding: 56px 0 44px;
  background: linear-gradient(180deg, var(--bg-yellow) 0%, #FFFFFF 100%);
}

.breadcrumbs{
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.breadcrumbs a{ color: var(--red); font-weight: 700; }
.breadcrumbs a:hover{ text-decoration: underline; }

.page-banner__title{
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 12px;
}

.page-banner__desc{
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0;
}

/* =====================================================
   О НАС: КАРТОЧКИ ПРЕИМУЩЕСТВ
===================================================== */
.about-section{ padding: 90px 0; }

.about-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.about-card{
  padding: 28px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.about-card__icon{
  width: 44px; height:44px;
  border-radius: 12px;
  background: var(--bg-yellow);
  border: 2px solid var(--yellow);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
  color: var(--red);
  font-weight: 700;
}

.about-card h3{ font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.about-card p{ font-size: 14px; color: var(--text-secondary); margin: 0; }

/* =====================================================
   КОНТАКТЫ
===================================================== */
.contacts-section{ padding: 90px 0; }

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-cards{
  display:grid;
  gap: 16px;
}

.contact-card{
  display:flex;
  gap: 16px;
  padding: 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.contact-card__icon{
  width: 44px; height:44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg-yellow);
  border: 2px solid var(--yellow);
  display:flex; align-items:center; justify-content:center;
  color: var(--red);
  font-weight: 700;
}

.contact-card__title{ display:block; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.contact-card__desc{ display:block; font-size: 14px; color: var(--text-secondary); }

.map-placeholder{
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  border: 2px dashed var(--yellow);
  background: var(--bg-yellow);
  display:flex; align-items:center; justify-content:center;
  color: var(--red);
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

/* =====================================================
   FAQ (аккордеон)
===================================================== */
.faq{ padding: 90px 0; background: var(--bg-red-tint); }

.faq__list{
  display:flex;
  flex-direction:column;
  gap: 12px;
  max-width: 780px;
}

.faq-item{
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.faq-item__q{
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}
.faq-item__q::after{
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 20px;
  transition: transform .2s ease;
}
.faq-item.is-open .faq-item__q::after{
  transform: translateY(-50%) rotate(45deg);
}

.faq-item__a{
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: max-height .25s ease, padding .25s ease;
}
.faq-item.is-open .faq-item__a{
  max-height: 240px;
  padding: 0 24px 22px;
}

/* =====================================================
   АДАПТИВНОСТЬ
===================================================== */
@media (max-width: 960px){
  .hero__inner{ grid-template-columns: 1fr; }

  .ecosystem__inner{ grid-template-columns: 1fr; }
  .shops__inner{ grid-template-columns: 1fr; }
  .shops__cards{ grid-template-columns: 1fr; }
  .shops__cards--quad{ grid-template-columns: 1fr; }

  .partners__grid{ grid-template-columns: repeat(2, 1fr); }
  .about-cards{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}



@media (max-width: 520px){
  .partners__grid{ grid-template-columns: 1fr 1fr; }
  .partners__grid--brands{ grid-template-columns: 1fr; }
  .container{ padding: 0 20px; }
}

/* =====================================================
   КАТАЛОГ: ЛЭЙАУТ
===================================================== */
.catalog{ padding: 40px 0 90px; }

.catalog__layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.catalog__toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog__count{ font-size: 14px; color: var(--text-secondary); }

.sort-select{
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.catalog__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.catalog__empty{
  padding: 60px 20px;
  text-align:center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.catalog__empty h3{ font-size: 20px; margin-bottom: 10px; }
.catalog__empty p{ color: var(--text-secondary); margin-bottom: 20px; }

/* =====================================================
   ФИЛЬТРЫ
===================================================== */
.filters{
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) transparent;
}
.filters::-webkit-scrollbar{ width: 6px; }
.filters::-webkit-scrollbar-thumb{ background: var(--yellow); border-radius: 3px; }

.filters__group{ margin-bottom: 26px; }
.filters__group:last-child{ margin-bottom: 0; }

.filters__title{
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.filters__list{ display:flex; flex-direction:column; gap: 10px; }

.filters__checkbox{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-primary);
}

.filters__checkbox input{ display:none; }

.filters__checkbox-box{
  width: 20px; height:20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.filters__checkbox input:checked + .filters__checkbox-box{
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.05);
}
.filters__checkbox input:checked + .filters__checkbox-box::after{
  content: "";
  position:absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filters__count{ color: var(--text-secondary); font-size: 12px; margin-left: auto; }
.filters__name{ font-size: 14px; font-weight: 600; }
.brand-filter-logo{
  width: 74px; height: 46px;
  flex-shrink: 0;
  display:flex; align-items:center; justify-content:center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 5px;
}
.brand-filter-logo img{ max-width: 100%; max-height: 100%; object-fit: contain; display:block; }

/* --- Ценовой ползунок (пины конструктора) --- */
.price-filter__values{
  display:flex;
  justify-content:space-between;
  font-size: 14px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 14px;
}

.price-slider{
  position: relative;
  height: 28px;
  margin-bottom: 16px;
}

.price-slider__track{
  position:absolute; top:50%; left:0; right:0;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  transform: translateY(-50%);
}

.price-slider__range{
  position:absolute; top:50%; height:6px;
  background: var(--red);
  border-radius: 3px;
  transform: translateY(-50%);
}

.price-slider__input{
  position:absolute; top:0; left:0; width:100%; height:28px;
  margin:0; background: transparent;
  -webkit-appearance: none; appearance: none;
  pointer-events: none;
}
.price-slider__input::-webkit-slider-thumb{
  -webkit-appearance: none;
  pointer-events: all;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--red);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.price-slider__input::-moz-range-thumb{
  pointer-events: all;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--red);
  cursor: pointer;
}

.price-filter__inputs{ display:flex; gap: 10px; }
.price-filter__inputs label{
  flex:1;
  font-size: 12px;
  color: var(--text-secondary);
  display:flex;
  flex-direction:column;
  gap: 4px;
}
.price-filter__inputs input{
  padding: 8px 10px;
  border-radius: 8px;
  border: 2px solid var(--border);
  font-family: var(--font);
  font-size: 13px;
  width: 100%;
}

/* --- Возраст --- */
.age-filter{ display:flex; flex-wrap:wrap; gap: 8px; }
.age-btn{
  padding: 8px 14px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.age-btn:hover{ border-color: var(--yellow); }
.age-btn.is-active{
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(1px);
}

/* --- Переключатель (физический тумблер) --- */
.switch{
  display:flex;
  align-items:center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.switch input{ display:none; }
.switch__track{
  width: 44px; height: 24px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  transition: background .2s ease;
  flex-shrink: 0;
}
.switch__thumb{
  position:absolute; top:2px; left:2px;
  width:20px; height:20px;
  border-radius:50%;
  background:#fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform .2s ease;
}
.switch input:checked + .switch__track{ background: var(--red); }
.switch input:checked + .switch__track .switch__thumb{ transform: translateX(20px); }

.filters__reset{
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary);
}
.filters__reset:hover{ border-color: var(--red); color: var(--red); }

/* =====================================================
   КАРТОЧКА ТОВАРА (каталог)
===================================================== */
.product-card{
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: block;
}
.product-card:hover{
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 16px 30px rgba(0,0,0,0.1);
}

.product-card__media{
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-yellow);
  display:flex; align-items:center; justify-content:center;
  font-size: 32px;
  color: var(--text-secondary);
  overflow: hidden;
}
.product-card:hover .product-card__media{ transform: scale(1.03); }

.product-card__badges{
  position:absolute; top: 10px; left: 10px;
  display:flex; flex-direction:column; gap: 6px;
  z-index: 2;
}
.product-badge{
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  width: fit-content;
}
.product-badge--new{ background: var(--red); }
.product-badge--hit{ background: var(--yellow); color: var(--text-primary); }
.product-badge--sale{ background: #D62418; }
.product-badge--exclusive{ background: #8A4BE0; }
.product-badge--low{ background: #E0447C; }

.product-card__fav{
  position:absolute; top: 10px; right: 10px;
  width: 34px; height:34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  display:flex; align-items:center; justify-content:center;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  transition: transform .15s ease;
}
.product-card__fav.is-active{ color: var(--red); transform: scale(1.15); }

.product-card__body{ padding: 16px; }
.product-card__brand{ font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; display:flex; align-items:center; gap:6px; }
.brand-logo-xs{ height: 24px; width: auto; max-width: 90px; object-fit: contain; }
.brand-logo-sm{ height: 30px; width: auto; max-width: 120px; object-fit: contain; }
.product-card__name{
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 38px;
}
.product-card__meta{ display:flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.product-card__age, .product-card__stock{
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-yellow);
  color: var(--text-secondary);
}
.product-card__stock--low{ background: #FFE3E0; color: var(--red); }
.product-card__stock--out{ background: #EFEFEF; color: var(--text-secondary); }

.product-card__price-row{
  display:flex;
  align-items:baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.product-card__price{ font-size: 18px; font-weight: 900; }
.product-card__old-price{
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.product-card__add{
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.product-card__add:hover{ background: var(--red-dark); }
.product-card__add:active{ transform: scale(0.97); }
.product-card__add:disabled{ background: var(--border); color: var(--text-secondary); cursor: not-allowed; }

/* =====================================================
   ПАГИНАЦИЯ-ПИНЫ
===================================================== */
.pagination{
  display:flex;
  justify-content:center;
  gap: 8px;
  margin-top: 40px;
}
.page-pin{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.page-pin:hover{ border-color: var(--yellow); }
.page-pin.is-active{ background: var(--red); border-color: var(--red); color: #fff; }

/* =====================================================
   СТЕППЕР КОЛИЧЕСТВА
===================================================== */
.qty-stepper{
  display:inline-flex;
  align-items:center;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.qty-stepper button{
  width: 32px; height: 32px;
  border: none;
  background: var(--bg-yellow);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-primary);
}
.qty-stepper button:hover{ background: var(--yellow); }
.qty-stepper input{
  width: 42px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
}

/* =====================================================
   СТРАНИЦА ТОВАРА
===================================================== */
.product-page{ padding: 40px 0 90px; }

.product-page__layout{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery__main{
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background: var(--bg-yellow);
  border: 2px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size: 48px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.product-gallery__thumbs{ display:flex; gap: 10px; }
.product-gallery__thumbs span{
  width: 64px; height: 64px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg-yellow);
  display:flex; align-items:center; justify-content:center;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
}

.product-info__brand{ font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.product-info__name{ font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin-bottom: 14px; }
.product-info__meta{ display:flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.product-info__price-row{ display:flex; align-items:baseline; gap: 12px; margin-bottom: 20px; }
.product-info__price{ font-size: 32px; font-weight: 900; color: var(--red); }
.product-info__old-price{ font-size: 18px; color: var(--text-secondary); text-decoration: line-through; }
.product-info__discount{
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.product-info__actions{ display:flex; align-items:center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

.product-info__fav{
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}
.product-info__fav.is-active{ border-color: var(--red); color: var(--red); }

.product-info__description{
  padding-top: 20px;
  border-top: 2px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.product-info__specs{ margin: 20px 0; display:grid; gap: 8px; }
.product-info__specs div{ display:flex; justify-content:space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.product-info__specs span:first-child{ color: var(--text-secondary); }
.product-info__specs span:last-child{ font-weight: 700; }

.related{ margin-top: 70px; }

/* =====================================================
   КОРЗИНА
===================================================== */
.cart-page{ padding: 40px 0 90px; }

.cart-layout{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items:start;
}

.cart-item{
  display:grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 16px;
  align-items:center;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
}
.cart-item__media{
  width: 72px; height: 72px;
  border-radius: 10px;
  background: var(--bg-yellow);
  display:flex; align-items:center; justify-content:center;
  font-size: 20px;
  color: var(--text-secondary);
}
.cart-item__name{ font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cart-item__price{ font-size: 13px; color: var(--text-secondary); }
.cart-item__total{ font-weight: 800; font-size: 15px; white-space: nowrap; }
.cart-item__remove{
  border: none; background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
}
.cart-item__remove:hover{ color: var(--red); }

.cart-empty{
  text-align: center;
  padding: 70px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.cart-empty h3{ font-size: 22px; margin-bottom: 10px; }
.cart-empty p{ color: var(--text-secondary); margin-bottom: 24px; }
.cart-empty__actions{ display:flex; gap: 12px; justify-content:center; flex-wrap: wrap; }

.cart-summary{
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  position: sticky;
  top: 100px;
}
.cart-summary__row{ display:flex; justify-content:space-between; font-size: 14px; margin-bottom: 12px; color: var(--text-secondary); }
.cart-summary__row--total{ font-size: 18px; font-weight: 900; color: var(--text-primary); padding-top: 12px; border-top: 2px solid var(--border); }

.promo-form{ display:flex; gap: 8px; margin: 16px 0; }
.promo-form input{
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--border);
  font-family: var(--font);
  font-size: 13px;
}
.promo-form button{
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: var(--yellow);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.promo-applied{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-yellow);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.promo-applied button{ border:none; background:transparent; color: var(--text-secondary); cursor:pointer; font-size:16px; }
.promo-error{ color: var(--red); font-size: 12px; margin-top: -8px; margin-bottom: 12px; }

/* --- форма оформления заказа --- */
.checkout-form{ display:grid; gap: 16px; margin-top: 24px; }
.checkout-form__row{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-form label{ display:flex; flex-direction:column; gap: 6px; font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.checkout-form input, .checkout-form textarea{
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid var(--border);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
}
.checkout-form input:focus, .checkout-form textarea:focus{ outline:none; border-color: var(--yellow); }

.delivery-toggle{ display:flex; gap: 10px; }
.delivery-toggle button{
  flex:1;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.delivery-toggle button.is-active{ background: var(--red); border-color: var(--red); color: #fff; }

.order-success{
  text-align:center;
  padding: 60px 20px;
}
.order-success__icon{ font-size: 48px; margin-bottom: 16px; }
.order-success h2{ font-size: 26px; margin-bottom: 10px; }
.order-success p{ color: var(--text-secondary); margin-bottom: 28px; }

.order-steps{
  display:flex;
  justify-content:center;
  gap: 0;
  margin: 30px auto;
  max-width: 560px;
  flex-wrap: wrap;
}
.order-steps__step{
  flex:1;
  min-width: 110px;
  text-align:center;
  font-size: 12px;
  color: var(--text-secondary);
  position: relative;
  padding-top: 36px;
}
.order-steps__step::before{
  content:"";
  position:absolute;
  top: 10px; left: 50%;
  width: 20px; height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--border);
  z-index: 1;
}
.order-steps__step.is-done::before{ background: var(--red); }
.order-steps__step::after{
  content:"";
  position:absolute;
  top: 19px; left: -50%; right: 50%;
  height: 3px;
  background: var(--border);
  z-index: 0;
}
.order-steps__step:first-child::after{ display:none; }
.order-steps__step.is-done::after{ background: var(--red); }

/* =====================================================
   АДМИНКА
===================================================== */
.admin-login{
  max-width: 380px;
  margin: 100px auto;
  padding: 36px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.admin-login h1{ font-size: 22px; margin-bottom: 20px; text-align:center; }
.admin-login form{ display:grid; gap: 14px; }
.admin-login input{
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid var(--border);
  font-family: var(--font);
  font-size: 14px;
}
.admin-login__error{ color: var(--red); font-size: 13px; text-align:center; }

.admin-wrap{ padding: 32px 0 80px; }

.admin-tabs{ display:flex; gap: 10px; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.admin-tab{
  padding: 12px 18px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.admin-tab.is-active{ color: var(--red); border-color: var(--red); }

.admin-table{ width: 100%; border-collapse: collapse; background:#fff; border-radius: var(--radius); overflow:hidden; border: 2px solid var(--border); }
.admin-table th, .admin-table td{ padding: 12px 14px; text-align:left; font-size: 13px; border-bottom: 1px solid var(--border); }
.admin-table th{ background: var(--bg-yellow); font-weight: 800; }
.admin-table select, .admin-table input{
  padding: 6px 8px; border-radius: 6px; border: 2px solid var(--border); font-family: var(--font); font-size: 12px;
}
.admin-filters{ display:flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-filters input, .admin-filters select{
  padding: 10px 14px; border-radius: 10px; border: 2px solid var(--border); font-family: var(--font); font-size: 13px;
}
.admin-pill{ padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; background: var(--bg-yellow); }

/* =====================================================
   АДАПТИВНОСТЬ: КАТАЛОГ / ТОВАР / КОРЗИНА / АДМИНКА
===================================================== */
@media (max-width: 960px){
  .catalog__layout{ grid-template-columns: 1fr; }
  .filters{ position: static; max-height: none; overflow: visible; }
  .catalog__grid{ grid-template-columns: repeat(2, 1fr); }
  .product-page__layout{ grid-template-columns: 1fr; }
  .cart-layout{ grid-template-columns: 1fr; }
  .cart-summary{ position: static; }
  .checkout-form__row{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .catalog__grid{ grid-template-columns: 1fr 1fr; }
  .cart-item{ grid-template-columns: 56px 1fr; grid-template-areas: "media name" "media price" "media total"; }
  .cart-item__media{ grid-area: media; }
  .cart-item__remove{ position: absolute; top: 10px; right: 10px; }
  .cart-item{ position: relative; }
}

@media (max-width: 420px){
  .catalog__grid{ grid-template-columns: 1fr; }
}

/* =====================================================
   ФОТО ТОВАРОВ: карточки, корзина, галерея, лайтбокс
===================================================== */
.product-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.cart-item__media{ overflow:hidden; }
.cart-item__media img{ width:100%; height:100%; object-fit:cover; display:block; }

.product-gallery__main{ overflow:hidden; cursor: zoom-in; }
.product-gallery__main img{ width:100%; height:100%; object-fit:cover; display:block; }
.product-gallery__thumbs{ flex-wrap: wrap; }
.product-gallery__thumb{
  width: 68px; height: 68px;
  padding: 0;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg-yellow);
  overflow: hidden;
  cursor: pointer;
}
.product-gallery__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.product-gallery__thumb.is-active{ border-color: var(--red); }

.lightbox{
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(20,16,12,0.92);
  display:flex; align-items:center; justify-content:center;
  padding: 24px;
}
.lightbox img{ max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; background:#fff; }
.lightbox__close, .lightbox__nav{
  position:absolute;
  width: 46px; height: 46px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  font-size: 22px; font-weight: 700;
  cursor: pointer;
}
.lightbox__close{ top: 20px; right: 20px; }
.lightbox__nav{ top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev{ left: 20px; }
.lightbox__nav--next{ right: 20px; }

/* =====================================================
   АДМИНКА: уведомления, детали заказа, фото
===================================================== */
.toast{
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 12px 22px;
  border-radius: 12px;
  color: #fff; font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 2000;
  max-width: 90vw;
}
.toast.is-visible{ opacity: 1; transform: translate(-50%, 0); }
.toast--ok{ background: #1f9d55; }
.toast--error{ background: var(--red); }

.admin-form-panel{ position: static; max-height: none; overflow: visible; margin-bottom: 20px; }
.admin-form-panel .checkout-form__row{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form-panel label{ display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--text-secondary); font-weight:600; }
.admin-form-panel input[type="text"], .admin-form-panel input[type="number"], .admin-form-panel select, .admin-form-panel textarea{
  padding: 10px 12px; border-radius: 10px; border: 2px solid var(--border);
  font-family: var(--font); font-size: 14px; color: var(--text-primary);
}
.admin-form-panel .filters__checkbox{ flex-direction: row; align-items:center; color: var(--text-primary); }

.admin-thumb{ width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display:block; }
.admin-thumb--empty{ display:flex; align-items:center; justify-content:center; background: var(--bg-yellow); color: var(--text-secondary); }
.admin-logo{ height: 22px; width: auto; max-width: 60px; object-fit: contain; vertical-align: middle; margin-right: 8px; }

.order-details > td{ background: #FFFBEA; padding: 18px 20px; }
.order-details__grid{ display:grid; grid-template-columns: 1fr 1.4fr; gap: 28px; }
.order-details h4{ margin: 14px 0 6px; font-size: 13px; color: var(--red); }
.order-details h4:first-child{ margin-top: 0; }
.order-details p{ margin: 3px 0; font-size: 13px; }
.order-details__comment{ background:#fff; border:1px solid var(--border); border-radius:8px; padding:8px 10px; white-space: pre-wrap; word-break: break-word; }
.order-details__note{ color: var(--red); font-weight: 700; }
.order-details__totals{ margin-top: 10px !important; font-size: 14px !important; }
.order-details__history{ margin: 0; padding-left: 18px; font-size: 12px; color: var(--text-secondary); }
.admin-table--inner th, .admin-table--inner td{ padding: 8px 10px; font-size: 12px; }
.admin-table td{ overflow-wrap: break-word; }
.admin-table .btn, .admin-pill{ white-space: nowrap; }
.admin-filters input[type="text"]{ min-width: 300px; }

.photo-manager{ margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--border); }
.photo-manager__list{ display:flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.photo-manager__item{
  position: relative; width: 120px;
  border: 2px solid var(--border); border-radius: 12px; overflow: hidden; background:#fff;
  display:flex; flex-direction: column;
}
.photo-manager__item.is-main{ border-color: var(--red); }
.photo-manager__item img{ width: 100%; height: 100px; object-fit: cover; display:block; }
.photo-manager__item button{
  border: none; border-top: 1px solid var(--border); background:#fff;
  font-family: var(--font); font-size: 11px; font-weight: 700; padding: 6px; cursor: pointer;
}
.photo-manager__item button:hover{ background: var(--bg-yellow); }
.photo-manager__del{ color: var(--red); }
.photo-manager__badge{ background: var(--red); color:#fff; font-size: 11px; font-weight: 800; text-align:center; padding: 6px; }
.photo-manager__upload{ display:flex; gap: 12px; align-items:center; flex-wrap: wrap; }

@media (max-width: 960px){
  .order-details__grid{ grid-template-columns: 1fr; }
  .admin-form-panel .checkout-form__row{ grid-template-columns: 1fr; }
  .admin-wrap{ overflow-x: auto; }
}

/* =====================================================
   ЭТАП 2: поиск с подсказками
===================================================== */
.search{ position: relative; }
.search__panel{
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 480px; max-width: calc(100vw - 32px);
  max-height: 70vh; overflow-y: auto;
  background: #fff;
  border: 2px solid var(--yellow);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(38,32,28,0.18);
  padding: 10px;
  z-index: 300;
}
.search__panel[hidden]{ display: none; }
.search__group{ padding: 6px 4px 10px; }
.search__group + .search__group{ border-top: 1px solid var(--border); padding-top: 10px; }
.search__title{ display:flex; justify-content:space-between; font-size: 12px; font-weight: 800; color: var(--text-secondary); margin-bottom: 8px; padding: 0 6px; }
.search__clear{ border:none; background:none; color: var(--red); font-size: 12px; font-weight: 700; cursor: pointer; }
.search__chips{ display:flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.search__chip{
  padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--border); background: #fff;
  font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text-primary);
  cursor: pointer; text-decoration: none;
}
.search__chip:hover, .search__chip.is-active{ border-color: var(--yellow); background: var(--bg-yellow); }
.search__product{
  display:flex; align-items:center; gap: 12px;
  padding: 8px 10px; border-radius: 12px; text-decoration: none; color: inherit;
}
.search__product:hover, .search__product.is-active{ background: var(--bg-yellow); }
.search__thumb{
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  background: var(--bg-yellow); display:flex; align-items:center; justify-content:center; color: var(--text-secondary);
}
.search__thumb img{ width:100%; height:100%; object-fit: cover; display:block; }
.search__info{ flex:1; min-width: 0; display:flex; flex-direction:column; }
.search__name{ font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search__sub{ font-size: 11px; color: var(--text-secondary); }
.search__price{ font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--red); }
.search__empty{ padding: 18px 12px; font-size: 13px; color: var(--text-secondary); text-align: center; }
.search__all{
  width: 100%; margin-top: 6px; padding: 12px; border: none; border-radius: 12px;
  background: var(--red); color: #fff; font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer;
}
.search__all:hover, .search__all.is-active{ background: var(--red-dark); }

/* =====================================================
   ЭТАП 2: карточка товара — артикул, сравнение, быстрый просмотр
===================================================== */
.product-card__sku{ font-size: 11px; color: var(--text-secondary); margin: -4px 0 8px; letter-spacing: .02em; }
.product-card__compare{
  position:absolute; top: 52px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); font-size: 16px; font-weight: 700; color: var(--text-secondary);
  cursor: pointer; z-index: 2; transition: transform .15s ease, background .15s ease;
}
.product-card__compare:hover{ transform: scale(1.1); }
.product-card__compare.is-active{ background: var(--yellow); color: var(--text-primary); }
.product-card__quick{
  position:absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 9px; border: none; border-radius: 10px;
  background: rgba(38,32,28,0.88); color: #fff;
  font-family: var(--font); font-size: 12px; font-weight: 700; cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease; z-index: 2;
}
.product-card:hover .product-card__quick, .product-card__quick:focus{ opacity: 1; transform: none; }
@media (hover: none){ .product-card__quick{ opacity: 1; transform: none; } }

/* =====================================================
   ЭТАП 2: фильтры — вложенные категории, переключатели
===================================================== */
.filters__checkbox--sub{ padding-left: calc(var(--depth, 1) * 20px); }
.filters__checkbox--sub .filters__name{ font-weight: 500; }
.filters__group[hidden]{ display: none; }
.filters__switches{ display:flex; flex-direction: column; gap: 14px; }

/* =====================================================
   ЭТАП 2: модальное окно быстрого просмотра
===================================================== */
body.no-scroll{ overflow: hidden; }
.modal{
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(20,16,12,0.6);
  display:flex; align-items:center; justify-content:center;
  padding: 20px; overflow-y: auto;
}
.modal__box{
  position: relative; width: 100%; max-width: 860px;
  background: #fff; border-radius: 24px; border: 3px solid var(--yellow);
  padding: 28px; max-height: 92vh; overflow-y: auto;
}
.modal__close{
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 50%; border: none; background: var(--bg-yellow);
  font-size: 16px; font-weight: 700; cursor: pointer; z-index: 3;
}
.quick{ display:grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.quick__main{
  aspect-ratio: 1/1; border-radius: 16px; background: var(--bg-yellow); border: 2px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size: 40px; color: var(--text-secondary); overflow: hidden;
}
.quick__main img{ width:100%; height:100%; object-fit: cover; display:block; }
.quick__thumbs{ display:flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.quick__name{ font-size: 22px; font-weight: 900; margin: 6px 0 8px; line-height: 1.25; padding-right: 30px; }
.quick__desc{ font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 16px; }
@media (max-width: 720px){ .quick{ grid-template-columns: 1fr; } .modal__box{ padding: 20px; } }

/* =====================================================
   ЭТАП 2: панель сравнения и уведомления
===================================================== */
.compare-bar{
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  display:flex; align-items:center; gap: 14px;
  background: var(--text-primary); color:#fff;
  padding: 10px 14px 10px 22px; border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.3); z-index: 900;
  font-size: 14px;
}
.compare-bar__btn{ padding: 9px 20px; font-size: 13px; }
.compare-bar__clear{ border:none; background:none; color:#fff; opacity:.7; font-family: var(--font); font-size: 13px; cursor:pointer; text-decoration: underline; }
.compare-bar__clear:hover{ opacity: 1; }

.notice{
  position: fixed; left: 50%; top: 100px; transform: translate(-50%, -10px);
  background: var(--text-primary); color:#fff;
  padding: 12px 22px; border-radius: 12px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events:none; transition: opacity .25s ease, transform .25s ease; z-index: 2000;
}
.notice.is-visible{ opacity: 1; transform: translate(-50%, 0); }

/* =====================================================
   ЭТАП 2: страница сравнения
===================================================== */
.compare__toolbar{ display:flex; justify-content: space-between; align-items:center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.compare__hint{ color: var(--text-secondary); font-size: 14px; margin: 0 0 14px; }
.compare__scroll{ overflow-x: auto; border: 2px solid var(--border); border-radius: var(--radius); background:#fff; }
.compare__table{ width: 100%; border-collapse: collapse; min-width: 560px; }
.compare__table th, .compare__table td{ padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare__table tbody th{ width: 190px; color: var(--text-secondary); font-weight: 700; background: var(--bg-yellow); position: sticky; left: 0; }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td{ border-bottom: none; }
.compare__table tr.is-same td{ color: var(--text-secondary); }
.compare__table td.is-best{ background: #E8F8EE; color: #14763b; font-weight: 800; }
.compare__head{ position: relative; text-align: center !important; min-width: 190px; border-left: 1px solid var(--border); }
.compare__photo{
  display:flex; align-items:center; justify-content:center;
  width: 140px; height: 140px; margin: 6px auto 10px; border-radius: 14px; overflow: hidden;
  background: var(--bg-yellow); color: var(--text-secondary); font-size: 30px;
}
.compare__photo img{ width:100%; height:100%; object-fit: cover; display:block; }
.compare__name{ display:block; font-weight: 800; font-size: 14px; line-height: 1.35; margin-bottom: 10px; color: var(--text-primary); }
.compare__name:hover{ color: var(--red); }
.compare__buy{ padding: 9px 18px; font-size: 13px; }
.compare__remove{
  position:absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  border: none; background: var(--bg-yellow); cursor: pointer; font-weight: 700;
}
.compare__remove:hover{ background: var(--yellow); }

code{ font-family: 'SF Mono','Roboto Mono',monospace; font-size: 12px; background: var(--bg-yellow); padding: 2px 6px; border-radius: 5px; }

/* =====================================================
   ЭТАП 3 — главная из блоков, подбор подарка, шаги заказа, прогресс заказа
===================================================== */
.home-block{ padding: 44px 0; }
.home-block:nth-of-type(even){ background: linear-gradient(180deg, #fff 0%, var(--bg-yellow) 100%); }
.home-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom: 26px; }
.home-head .section-title{ max-width:none; }

.home-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* категории — крупные цветные плитки */
.cat-tiles{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile{
  display:flex; flex-direction:column; align-items:flex-start; gap:6px;
  padding: 22px; min-height: 150px; border-radius: var(--radius);
  border: 2px solid var(--border); background:#fff; overflow:hidden; position:relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-tile--0{ background: var(--bg-yellow); }
.cat-tile--1{ background: var(--bg-red-tint); }
.cat-tile--2{ background: #EAF4FF; }
.cat-tile--3{ background: #EAF8EE; }
.cat-tile:hover{ transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 12px 28px rgba(0,0,0,.1); border-color: var(--yellow); }
.cat-tile__icon{ font-size: 44px; line-height:1; transition: transform .25s; }
.cat-tile__icon img{ width:56px; height:56px; object-fit:cover; border-radius:12px; display:block; }
.cat-tile:hover .cat-tile__icon{ transform: scale(1.15) rotate(6deg); }
.cat-tile__name{ font-weight: 800; font-size: 17px; margin-top:auto; }
.cat-tile__count{ font-size: 12px; color: var(--text-secondary); }

/* подборки */
.coll-tiles{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.coll-tile{
  display:flex; flex-direction:column; gap:6px; padding: 20px; border-radius: var(--radius);
  background:#fff; border: 2px solid var(--yellow); transition: transform .2s, background .2s;
}
.coll-tile:hover{ transform: translateY(-3px); background: var(--bg-yellow); }
.coll-tile__icon{ font-size: 30px; }
.coll-tile__title{ font-weight: 800; font-size: 16px; }
.coll-tile__desc{ font-size: 13px; color: var(--text-secondary); }
.coll-tile__count{ margin-top:auto; font-size: 12px; font-weight:700; color: var(--red); }

/* подбор подарка (плашка на главной) */
.gift-cta{
  display:grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items:center;
  padding: 34px 40px; border-radius: 28px;
  background: linear-gradient(120deg, var(--red) 0%, #FF6A3D 60%, var(--yellow) 130%); color:#fff;
}
.gift-cta__emoji{ font-size: 64px; animation: giftWiggle 3s ease-in-out infinite; }
@keyframes giftWiggle{ 0%,100%{ transform: rotate(-6deg); } 50%{ transform: rotate(6deg) scale(1.06); } }
.gift-cta h2{ font-size: clamp(22px, 3vw, 32px); font-weight: 900; margin-bottom: 6px; }
.gift-cta p{ margin:0; opacity:.95; max-width: 520px; }
.gift-cta__actions{ display:flex; gap:10px; flex-wrap:wrap; }
.gift-cta .btn--red{ background:#fff; color: var(--red); box-shadow:none; }
.gift-cta .btn--outline{ border-color:#fff; color:#fff; background: transparent; }
.gift-cta .btn--outline:hover{ background:#fff; color: var(--red); }

/* преимущества, доставка, контакты */
.adv-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adv-card{ padding: 22px; border-radius: var(--radius); background:#fff; border: 2px solid var(--border); }
.adv-card__icon{ font-size: 34px; margin-bottom: 8px; }
.adv-card h3{ font-size: 16px; margin-bottom: 6px; }
.adv-card p{ margin:0; font-size: 13px; color: var(--text-secondary); }
.info-cols{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.info-col{ padding: 24px; border-radius: var(--radius); background: var(--bg-yellow); }
.info-col h3{ margin-bottom: 8px; font-size: 17px; }
.info-col p{ margin:0; font-size: 14px; color: var(--text-secondary); white-space: pre-line; }

/* мастер (подбор подарка и оформление заказа) */
.wizard{ max-width: 860px; margin: 0 auto; }
.wizard-steps{ list-style:none; margin: 0 0 26px; padding:0; display:flex; gap: 8px; flex-wrap:wrap; }
.wizard-steps li{
  display:flex; align-items:center; gap:8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #F3F0EA; font-size: 13px; font-weight:700; color: var(--text-secondary);
}
.wizard-steps li span{
  width: 26px; height: 26px; border-radius:50%; display:grid; place-items:center;
  background:#fff; font-size: 12px; font-weight: 800;
}
.wizard-steps li.is-current{ background: var(--yellow); color: var(--text-primary); }
.wizard-steps li.is-done{ background: var(--red); color:#fff; }
.wizard-steps li.is-done span{ color: var(--red); }
.wizard-nav{ display:flex; justify-content:space-between; gap:12px; margin-top: 28px; }
.wizard-nav .btn[disabled]{ opacity:.45; cursor:not-allowed; transform:none; }

.choice-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; }
.choice-tile{
  display:flex; flex-direction:column; align-items:center; gap: 8px; padding: 22px 12px;
  border: 2px solid var(--border); border-radius: 18px; background:#fff; font: inherit; font-weight:700; cursor:pointer;
  transition: transform .15s, border-color .15s, background .15s;
}
.choice-tile__icon{ font-size: 40px; line-height:1; }
.choice-tile:hover{ transform: translateY(-3px); border-color: var(--yellow); }
.choice-tile.is-active{ border-color: var(--red); background: var(--bg-red-tint); transform: scale(.97); }
.choice-row{ display:flex; flex-wrap:wrap; gap: 10px; margin: 16px 0; }
.choice-pill{
  padding: 12px 20px; border-radius: 999px; border: 2px solid var(--border); background:#fff;
  font: inherit; font-weight:700; cursor:pointer; transition: all .15s;
}
.choice-pill:hover{ border-color: var(--yellow); }
.choice-pill.is-active{ background: var(--red); border-color: var(--red); color:#fff; transform: scale(.97); }
.budget-range{ display:grid; gap: 10px; margin-top: 12px; font-size: 14px; }
.budget-range input[type="range"]{ width:100%; accent-color: var(--red); }

.gift-result-head{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom: 22px; }
.gift-result-head .section-title{ margin:0; max-width:none; }
.gift-result-actions{ display:flex; gap:10px; }
.wizard .home-grid{ grid-template-columns: repeat(3, 1fr); }
.surprise{
  display:grid; gap:12px; justify-items:center; padding: 24px; margin-bottom: 26px;
  border-radius: 24px; background: var(--bg-yellow); border: 2px dashed var(--yellow);
}
.surprise__label{ font-weight:800; font-size: 18px; }
.surprise__card{ width: min(100%, 300px); }

/* проверка заказа */
.review-box{ padding: 22px; border-radius: var(--radius); border: 2px solid var(--border); background:#fff; }
.review-list{ display:grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0 0 16px; font-size: 14px; }
.review-list dt{ color: var(--text-secondary); }
.review-list dd{ margin:0; font-weight:600; overflow-wrap:anywhere; }
.review-total{ font-size: 18px; margin: 0 0 8px; }

/* заказы в кабинете */
.order-card{ padding: 20px 22px; border-radius: var(--radius); border: 2px solid var(--border); background:#fff; margin-bottom: 16px; }
.order-card__top{ display:flex; justify-content:space-between; gap: 16px; align-items:flex-start; }
.order-card__right{ display:grid; gap: 6px; justify-items:end; }
.order-progress{ margin-top: 18px; }
.order-progress__steps{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(4, 1fr); }
.order-progress__steps li{ position:relative; text-align:center; font-size: 12px; font-weight:700; color: var(--text-secondary); padding-top: 28px; }
.order-progress__steps li span{
  position:absolute; top:0; left:50%; width: 20px; height: 20px; margin-left: -10px; border-radius:50%;
  background:#fff; border: 3px solid #D9D4CB; z-index:1;
}
.order-progress__steps li::before{ content:''; position:absolute; top: 8px; left: -50%; width: 100%; height: 4px; background:#E7E2D9; }
.order-progress__steps li:first-child::before{ display:none; }
.order-progress__steps li.is-done{ color: var(--text-primary); }
.order-progress__steps li.is-done span{ background: var(--red); border-color: var(--red); }
.order-progress__steps li.is-done::before{ background: var(--red); }
.order-progress__steps li.is-current span{ box-shadow: 0 0 0 5px rgba(255,59,48,.2); }
.order-progress__hint{ margin: 14px 0 0; font-size: 13px; color: var(--text-secondary); }
.order-progress--stopped{ padding: 10px 14px; border-radius: 12px; background: var(--bg-red-tint); }
.order-progress--stopped .order-progress__hint{ margin:0; color: var(--red-dark); font-weight:600; }
.order-success .wizard-steps{ justify-content:center; margin-bottom: 20px; }

/* админка */
.btn--xs{ padding: 5px 10px !important; font-size: 12px !important; }
.admin-checks{ display:flex; flex-wrap:wrap; gap: 6px 18px; }

@media (max-width: 960px){
  .home-grid, .cat-tiles, .coll-tiles, .adv-grid{ grid-template-columns: repeat(2, 1fr); }
  .wizard .home-grid{ grid-template-columns: repeat(2, 1fr); }
  .gift-cta{ grid-template-columns: 1fr; text-align:center; justify-items:center; }
}
@media (max-width: 560px){
  .home-grid, .cat-tiles, .coll-tiles, .adv-grid, .wizard .home-grid{ grid-template-columns: 1fr 1fr; gap: 12px; }
  .review-list{ grid-template-columns: 1fr; }
  .order-card__top{ flex-direction:column; }
  .order-card__right{ justify-items:start; }
}
button.btn{ font-family: inherit; cursor: pointer; }
button.btn--red{ border: 2.5px solid var(--red); }

/* =====================================================
   ЭТАП 4 — информационные страницы и 404
===================================================== */
.prose{ max-width: 760px; font-size: 16px; line-height: 1.7; }
.prose h2{ font-size: 22px; font-weight: 800; margin: 30px 0 10px; }
.prose h2:first-child{ margin-top: 0; }
.prose p{ margin: 0 0 14px; color: var(--text-primary); }
.prose ul{ margin: 0 0 16px; padding-left: 22px; }
.prose li{ margin-bottom: 6px; }

.notfound{ padding: 90px 0 110px; text-align:center; position:relative; background: linear-gradient(180deg, var(--bg-yellow), #fff); }
.notfound__art{ font-size: 110px; line-height:1; position:relative; display:inline-block; animation: nfWobble 4s ease-in-out infinite; }
.notfound__art span{
  position:absolute; right:-34px; top:-10px; width:54px; height:54px; border-radius:50%;
  background: var(--red); color:#fff; font-size: 32px; font-weight:900; display:grid; place-items:center;
}
@keyframes nfWobble{ 0%,100%{ transform: rotate(-5deg); } 50%{ transform: rotate(5deg) translateY(-6px); } }
.notfound__title{ font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin: 18px 0 10px; }
.notfound__text{ max-width: 520px; margin: 0 auto 26px; color: var(--text-secondary); }
.notfound__actions{ display:flex; gap: 12px; justify-content:center; flex-wrap:wrap; }

/* ===== дизайн v2 ===== */
/* =====================================================
   DTOYZ — дизайн v2: «кирпичики». Красный, жёлтый, белый.
   Крупные скругления, кнопки-кирпичики, шипы конструктора.
   Шрифты свои (public/fonts): Rubik — заголовки, цены, кнопки; Nunito — текст.
===================================================== */
@font-face{ font-family:'Unbounded'; font-style:normal; font-weight:200 900; font-display:swap;
  src:url(fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:'Unbounded'; font-style:normal; font-weight:200 900; font-display:swap;
  src:url(fonts/unbounded-latin-wght-normal.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:'Manrope'; font-style:normal; font-weight:200 800; font-display:swap;
  src:url(fonts/manrope-cyrillic-wght-normal.woff2) format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:'Manrope'; font-style:normal; font-weight:200 800; font-display:swap;
  src:url(fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root{
  --bg: #FFFDF5;
  --bg-yellow: #FFF1B8;
  --bg-red-tint: #FDE3E3;
  --bg-sand: #F3EBD9;
  --border: #EADFC8;
  --line-strong: #D9CBA8;
  --text-primary: #1A1414;
  --text-secondary: #6B5E5E;
  --ink: #1A1414;
  --red: #E3000B;
  --red-dark: #C70009;
  --red-deep: #A80008;
  --yellow: #FFCF00;
  --yellow-dark: #E6B800;
  --yellow-deep: #C99F00;
  --green: #1E6B3A;
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1180px;
  --header-h: 76px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --shadow-card: 0 6px 0 rgba(0,0,0,.08);
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body{
  margin:0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll{ overflow: hidden; }

h1, h2, h3, h4{ margin: 0; font-family: var(--font-display); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; }
button, input, select, textarea{ font-family: inherit; font-size: inherit; }
button{ cursor: pointer; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

:focus-visible{ outline: 3px solid var(--text-primary); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- кнопки: таблетки, приподнимаются при наведении ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font-family: var(--font); font-weight: 800; font-size: 16px; line-height: 1; text-align:center; white-space: nowrap;
  cursor:pointer; position:relative; transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover{ transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,.18); }
.btn:active{ transform: translateY(0); box-shadow:none; }
.btn--red{ background: var(--red); color:#fff; }
.btn--red:hover{ background: var(--red-dark); }
.btn--outline{ background: var(--yellow); color: var(--ink); }
.btn[disabled], .btn:disabled{ background:#E7E1D6; color:#A39A8D; cursor:not-allowed; transform:none; box-shadow:none; }
.btn--xs{ min-height: 34px !important; padding: 0 14px !important; font-size: 13px !important; }
.link-arrow{ font-weight: 800; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px; }

/* ---------- звёздочки (мягкий декор в шапках страниц) ---------- */
.stars{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.stars span{
  position:absolute; font-size:20px; color: var(--yellow); opacity:.9;
  animation: twinkle 3.4s ease-in-out infinite;
}
.stars span:nth-child(odd){ color: var(--red); }
.stars span:nth-child(3n){ font-size:13px; }
.stars span:nth-child(4n){ font-size:26px; }
@keyframes twinkle{ 0%,100%{ opacity:.25; transform: scale(.85) rotate(0); } 50%{ opacity:1; transform: scale(1.15) rotate(12deg); } }
.stars span:nth-child(1){ top:8%;  left:6%;  animation-delay:0s; }
.stars span:nth-child(2){ top:18%; left:88%; animation-delay:.4s; }
.stars span:nth-child(3){ top:62%; left:4%;  animation-delay:.8s; }
.stars span:nth-child(4){ top:78%; left:92%; animation-delay:1.2s; }
.stars span:nth-child(5){ top:40%; left:48%; animation-delay:1.6s; }
.stars span:nth-child(6){ top:10%; left:40%; animation-delay:2s; }
.stars span:nth-child(7){ top:85%; left:30%; animation-delay:.6s; }
.stars span:nth-child(8){ top:30%; left:75%; animation-delay:1.9s; }
.stars span:nth-child(9){ top:55%; left:20%; animation-delay:1.1s; }
.stars span:nth-child(10){ top:5%; left:65%; animation-delay:2.4s; }

/* ---------- заголовки разделов ---------- */
.section-label{ display:inline-block; font-family: var(--font-display); font-size:13px; font-weight:700; color: var(--red); margin-bottom: 10px; }
.section-title{ font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; margin: 0 0 12px; max-width: 640px; }
.section-note{ font-size: 15px; color: var(--text-secondary); margin: 0 0 28px; }

/* ---------- заглушка вместо фото ---------- */
.ph{ display:grid; place-items:center; width:100%; height:100%; font-size: 56px; opacity:.9; user-select:none; }
[hidden]{ display:none !important; }

/* =====================================================
   ШАПКА: плавающая меню-таблетка
===================================================== */
.header{ position: sticky; top: 12px; z-index: 100; padding: 14px 16px 0; background: transparent; pointer-events: none; }
.header > *{ pointer-events: auto; }
.header__bar{
  position: relative; max-width: 1280px; margin: 0 auto; display:flex; align-items:center; gap: 6px;
  padding: 8px 8px 8px 12px; background:#fff; color: var(--ink); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15); font-weight: 700; font-size: 15px;
}
.logo{ display:flex; flex-shrink:0; margin-right:6px; }
.logo__img{ height: 46px; width:auto; display:block; }
.header__nav{ margin-left:auto; display:flex; align-items:center; gap: 2px; }
.header__nav a{ padding: 12px 16px; border-radius: 999px; transition: background-color .2s, color .2s; white-space: nowrap; }
.header__nav a:hover, .header__nav a.is-active{ background: var(--bg-yellow); }
.hbtn{
  width: 46px; height: 46px; border-radius: 50%; border:0; background: transparent; color: var(--ink);
  display:flex; align-items:center; justify-content:center; transition: background-color .2s; padding:0;
}
.hbtn:hover{ background: var(--bg-yellow); }
.cartpill{
  position: relative; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--ink); color:#fff;
  display:flex; align-items:center; gap: 8px; font-weight: 800; transition: background-color .2s;
}
.cartpill:hover{ background: var(--red); }
.cartpill__count, .tabbar__count{ font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.tabbar__count{
  position:absolute; top: 4px; right: calc(50% - 24px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color:#fff; display:grid; place-items:center; font-size: 11px;
}
.nav__burger{
  display:none; width: 46px; height: 46px; flex-shrink:0; border:0; border-radius: 50%; background: var(--bg-yellow);
  flex-direction:column; justify-content:center; align-items:center; gap: 5px; padding:0;
}
.nav__burger span{ display:block; width: 20px; height: 3px; background: var(--ink); border-radius: 2px; }

/* поиск: живое поле сразу после логотипа */
.search{ position: relative; flex: 0 1 340px; display:flex; align-items:center; gap: 10px; height: 46px; padding: 0 18px 0 14px; margin-right:auto; background: var(--bg-sand); border-radius: 999px; transition: background-color .2s, box-shadow .2s; }
.search:hover{ background: #EDE3CC; }
.search:focus-within{ background:#fff; box-shadow: 0 0 0 2px var(--red); }
.search__icon{ width:20px; height:20px; flex-shrink:0; color: var(--text-secondary); display:grid; place-items:center; }
.search__input{ border:0; background:transparent; outline:none; width:100%; min-width:0; height:100%; font-size:15px; font-weight:700; color: var(--ink); font-family: var(--font); }
.search__input::placeholder{ color: var(--text-secondary); font-weight:700; }

/* ---------- боковое меню на телефоне ---------- */
.drawer{
  position: fixed; top:0; left:0; bottom:0; z-index: 300; width: min(86vw, 340px);
  background:#fff; padding: 18px 18px 28px; overflow-y:auto; border-radius: 0 32px 32px 0;
  transform: translateX(-102%); transition: transform .3s var(--ease);
  display:flex; flex-direction:column; gap: 4px; box-shadow: none;
}
.drawer.is-open{ transform:none; box-shadow: 10px 0 40px rgba(0,0,0,.25); }
.drawer__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 10px; }
.drawer__close{ width:44px; height:44px; border:0; border-radius:50%; background: var(--bg-yellow); font-size: 20px; font-weight:800; }
.drawer__link{ display:flex; align-items:center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 18px; font-weight: 800; font-size: 17px; }
.drawer__link:hover, .drawer__link:active{ background: var(--bg-yellow); }
.drawer__link .ico{ width: 26px; text-align:center; font-size: 20px; }
.drawer__sep{ height: 2px; background: var(--border); margin: 10px 0; border-radius:2px; }
.drawer__small{ font-size: 15px; font-weight: 700; color: var(--text-secondary); min-height: 44px; }
.drawer__cta{ margin-top: 14px; }
.drawer-scrim{ position: fixed; inset:0; z-index: 250; background: rgba(26,20,20,.5); opacity:0; pointer-events:none; transition: opacity .2s ease; }
.drawer-scrim.is-open{ opacity:1; pointer-events:auto; }

.tabbar{ display:none; }

/* на главной меню лежит поверх красного первого экрана */
.has-hero .header{ margin-bottom: -92px; }

@media (max-width: 960px){
  .header{ top: 8px; padding: 10px 12px 0; }
  .header__nav{ display:none; }
  .nav__burger{ display:flex; }
  .hbtn--account, .cartpill{ display:none; }
  .logo__img{ height: 40px; }
  .header__bar{ padding: 7px 7px 7px 14px; }
  .search{ position: static; flex: 1; margin: 0 8px 0 10px; height: 44px; }
  .header__bar .search__panel{ left: 0; right: 0; width: auto; max-width: none; }
  .has-hero .header{ margin-bottom: -76px; }

  .tabbar{
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0)); z-index: 120; display:grid; grid-template-columns: repeat(5, 1fr);
    background:#fff; border-radius: 999px; padding: 4px 6px; box-shadow: 0 10px 30px rgba(0,0,0,.22);
  }
  .tabbar a{
    position: relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 2px;
    min-height: 54px; border-radius: 999px; color: var(--text-secondary); font-size: 11px; font-weight: 800;
  }
  .tabbar svg{ width: 24px; height: 24px; }
  .tabbar .is-active{ color: var(--red); background: #FDE3E3; }
  .tabbar .is-active::before{ display:none; }
  body{ padding-bottom: 84px; }
}
@media (min-width: 961px){
  .drawer, .drawer-scrim{ display:none; }
}


/* =====================================================
   КОМПОНЕНТЫ v2
===================================================== */
.page-banner{ padding: 34px 0 26px; background: linear-gradient(180deg, var(--bg-yellow), #fff); position:relative; overflow:hidden; }
.page-banner__title{ font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin-bottom: 8px; }
.breadcrumbs{ font-family: var(--font-display); font-size: 13px; font-weight: 600; }

/* ---------- карточка товара ---------- */
.product-card{
  display:flex; flex-direction:column;
  border: 2px solid var(--border); border-radius: var(--radius); background:#fff; overflow:hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s ease;
}
.product-card:hover{ transform: translateY(-4px); border-color: var(--yellow); box-shadow: var(--shadow-card); }
.product-card__media{ background: var(--bg-yellow); border-bottom: 2px solid var(--border); }
.product-card__media img{ width:100%; height:100%; object-fit: contain; padding: 10px; background:#fff; }
.product-card:hover .product-card__media{ transform:none; }
.product-card__media .ph{ font-size: 64px; }
.product-badge{ border-radius: 10px; padding: 5px 10px; font-family: var(--font-display); font-weight: 800; font-size: 11px; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.product-card__fav, .product-card__compare, .product-card__quick{ box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.product-card__body{ display:flex; flex-direction:column; flex:1; padding: 14px 14px 16px; }
.product-card__name{ font-family: var(--font-display); font-weight: 600; font-size: 15px; min-height: 0; margin-bottom: 6px;
  display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden; }
.product-card__sku{ font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.product-card__meta{ margin-top:auto; }
.product-card__age{ background: var(--bg-yellow); color: var(--text-primary); border-radius: 8px; font-family: var(--font-display); }
.product-card__stock{ background: #E4F6EA; color: var(--green); border-radius: 8px; font-family: var(--font-display); }
.product-card__stock--out{ background:#EFEFEF; color: var(--text-secondary); }
.product-card__price-row{ margin: 4px 0 12px; }
.product-card__price{ font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text-primary); }
.product-card__old-price{ font-size: 14px; }
.product-card__add{
  min-height: 46px; border-radius: 14px; font-family: var(--font-display); font-weight: 800; font-size: 15px;
  background: var(--red); color:#fff; box-shadow: 0 4px 0 var(--red-deep);
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
.product-card__add:hover{ background:#FF5248; }
.product-card__add:active{ transform: translateY(3px); box-shadow: 0 1px 0 var(--red-deep); }
.product-card__add:disabled{ background:#E7E1D6; color:#A39A8D; box-shadow: 0 4px 0 #CFC7B8; }

/* ---------- каталог ---------- */
.catalog{ padding: 28px 0 80px; }
.catalog__layout{ grid-template-columns: 290px 1fr; gap: 32px; }
.catalog__grid{ grid-template-columns: repeat(3, 1fr); gap: 18px; }
.catalog__toolbar{ background: var(--bg-sand); border-radius: 16px; padding: 8px 8px 8px 18px; }
.catalog__count{ font-family: var(--font-display); font-weight: 700; color: var(--text-primary); }
.sort-select{ border-radius: 12px; font-family: var(--font-display); font-weight: 600; padding: 10px 14px; border-color: var(--line-strong); }
.filter-open{ display:none; }
.filters{ border-radius: var(--radius); border-width: 2px; top: calc(var(--header-h) + 52px); }
.filters__title{ font-family: var(--font-display); font-weight: 800; }
.filters__head, .filters__foot, .sheet-scrim{ display:none; }
.page-pin{ width: 42px; height: 42px; font-family: var(--font-display); font-weight: 800; box-shadow: 0 3px 0 var(--border); }
.page-pin.is-active{ box-shadow: 0 3px 0 var(--red-deep); }
.catalog__empty{ background: var(--bg-sand); border-radius: var(--radius); }

@media (max-width: 1100px){
  .catalog__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px){
  .catalog{ padding-top: 16px; }
  .catalog__layout{ grid-template-columns: 1fr; gap: 0; }
  .catalog__toolbar{ position: sticky; top: 0; z-index: 20; flex-wrap: nowrap; gap: 8px; padding: 8px; margin: 0 -4px 14px; background: var(--bg-sand); }
  .filter-open{ display:inline-flex; min-height: 44px; padding: 0 16px; box-shadow: 0 4px 0 var(--yellow-deep); }
  .catalog__count{ display:none; }
  .sort-select{ flex:1; min-width:0; height: 44px; }

  .sheet-scrim{ display:block; position: fixed; inset:0; z-index: 280; background: rgba(38,32,28,.5); opacity:0; pointer-events:none; transition: opacity .2s; }
  .sheet-scrim.is-open{ opacity:1; pointer-events:auto; }
  .filters{
    position: fixed; left:0; right:0; bottom:0; top: auto; z-index: 290; max-height: 88vh; border-radius: 26px 26px 0 0;
    border: 0; border-top: 4px solid var(--yellow); padding: 0 20px 90px; overflow-y:auto;
    transform: translateY(105%); transition: transform .28s var(--ease); box-shadow: 0 -20px 50px rgba(0,0,0,.25);
  }
  .filters.is-open{ transform:none; }
  .filters__head{ display:flex; align-items:center; justify-content:space-between; position: sticky; top:0; background:#fff; padding: 16px 0 10px; z-index: 2; }
  .filters__headtitle{ font-family: var(--font-display); font-size: 22px; font-weight: 900; }
  .filters__foot{ display:block; position: fixed; left:0; right:0; bottom:0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom,0)); background:#fff; border-top: 2px solid var(--border); }
  .filters:not(.is-open) .filters__foot{ display:none; }
  .filters__foot .btn{ width:100%; }
  .catalog__grid{ gap: 10px; grid-template-columns: repeat(2, 1fr); }
  .product-card__body{ padding: 10px 10px 12px; }
  .product-card__name{ font-size: 13px; }
  .product-card__price{ font-size: 18px; }
  .product-card__sku, .product-card__compare, .product-card__quick{ display:none; }
  .product-card__add{ min-height: 42px; font-size: 14px; }
  .page-banner{ padding: 18px 0 16px; }
}
@media (max-width: 380px){
  .catalog__grid{ grid-template-columns: 1fr 1fr; }
}

/* ---------- подвал ---------- */
.footer{ background: var(--text-primary); color:#fff; border-top: 6px solid var(--yellow); }
.footer a, .footer p{ color: #E9E2D6; }
.footer a:hover{ color: var(--yellow); }
@media (max-width: 960px){ .footer{ padding-bottom: 20px; } }

/* =====================================================
   СТРАНИЦЫ v2: товар, главная, корзина, подбор, мелочи
===================================================== */
.drawer{ box-shadow: none; }
.drawer.is-open{ box-shadow: 10px 0 40px rgba(0,0,0,.25); }
.stars span{ opacity:.7; }
.page-banner .stars{ opacity:.55; }

/* ---------- товар ---------- */
.product-page{ padding: 22px 0 80px; }
.product-page__layout{ gap: 40px; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
.product-gallery__main{ border-radius: 26px; border: 2px solid var(--border); background:#fff; position:relative; touch-action: pan-y; }
.product-gallery__main img{ object-fit: contain; padding: 14px; }
.product-gallery__main .ph{ font-size: 110px; background: var(--bg-yellow); }
.product-gallery__thumbs{ flex-wrap: nowrap; overflow-x:auto; scrollbar-width:none; }
.product-gallery__thumb{ flex-shrink:0; border-radius: 14px; background:#fff; }
.product-info__name{ font-family: var(--font-display); font-weight: 800; }
.product-info__price{ font-family: var(--font-display); font-weight: 800; font-size: 38px; }
.product-info__discount{ border-radius: 10px; font-family: var(--font-display); }
.product-info__actions{ gap: 10px; }
.qty-stepper{ border-radius: 14px; border-color: var(--line-strong); }
.qty-stepper button{ width: 40px; height: 46px; }
.qty-stepper input{ height: 46px; width: 46px; font-family: var(--font-display); font-weight: 800; }
.product-info__fav{ height: 50px; width: 50px; border-radius: 14px; border-color: var(--line-strong); }
.product-info__specs div{ font-size: 14px; }

@media (max-width: 960px){
  .product-page__layout{ grid-template-columns: 1fr; gap: 18px; }
  .product-page{ padding-bottom: 130px; }
  .product-info__price{ font-size: 32px; }
  /* липкая панель покупки над нижним меню */
  .product-info__actions{
    position: fixed; left:0; right:0; bottom: calc(84px + env(safe-area-inset-bottom,0)); z-index: 115;
    margin: 0; padding: 10px 14px; background:#fff; border-top: 2px solid var(--border); flex-wrap: nowrap; gap: 8px;
    box-shadow: 0 -10px 24px rgba(38,32,28,.08);
  }
  .product-info__actions .qty-stepper{ flex-shrink:0; }
  .product-info__actions #addToCartBtn{ flex:1; min-width:0; padding: 0 12px; }
  .product-info__actions #buyNowBtn, .product-info__actions [data-compare]{ display:none; }
}

/* ---------- главная: плотнее на телефоне ---------- */
@media (max-width: 960px){
  .hero{ padding-top: 28px; padding-bottom: 20px; }
  .hero__title{ font-size: clamp(30px, 9vw, 40px); }
}

/* ---------- мелкие места ---------- */
.about-card, .partner-tile, .contact-card, .shop-card{ border-radius: var(--radius); }
.btn--red, .btn--outline{ letter-spacing: 0; }
@media (max-width: 560px){
  .container{ padding: 0 16px; }
  .section-title{ font-size: 24px; }
}
.hero__inner > *{ min-width: 0; }
@media (max-width: 960px){
  .hero__title{ overflow-wrap: anywhere; hyphens: auto; }
}


/* =====================================================
   «С НУЛЯ»: красный первый экран, мозаика, полка, бегущая строка, огромный DTOYZ
===================================================== */
body{ background: var(--bg); font-family: var(--font); }
.ph{ font-size: 64px; }
.rise{ animation: rise .9s var(--ease) both; }
.r1{ animation-delay:.1s; } .r2{ animation-delay:.22s; }
@keyframes rise{ from{ opacity:0; transform: translateY(40px); } to{ opacity:1; transform:none; } }
@keyframes spin{ to{ transform: rotate(360deg); } }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.spin{ animation: spin 14s linear infinite; }
.btn--ghost{ background: transparent; color:#fff; border: 2px solid rgba(255,255,255,.7); }
.btn--ghost:hover{ background: rgba(255,255,255,.12); }

/* ---------- первый экран ---------- */
.hero{
  position: relative; overflow: hidden; background: var(--yellow); color: var(--ink); min-height: 760px;
  border-radius: 0 0 48px 48px; padding: 0; border: 0; background-image: none;
  --mx: 0; --my: 0;
}
.hero__inner{
  position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 190px 24px 120px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap: 28px; grid-template-columns: none;
}
.hero__tag{ font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); background:none; border:0; box-shadow:none; padding:0; }
.hero__title{ font-size: clamp(44px, 9vw, 128px); font-weight: 900; line-height: .92; letter-spacing: -0.03em; color: var(--ink); margin:0; }
.hero__subtitle{ margin:0; max-width: 520px; font-size: 19px; font-weight: 600; line-height: 1.5; opacity: .92; color: var(--ink); }
.shape{ position:absolute; z-index:1; transition: transform .6s var(--ease); pointer-events:none; }
.shape--star{ left: 6%; top: 190px; width: 120px; height: 120px; transform: translate(calc(var(--mx) * -40px), calc(var(--my) * -30px)); }
.shape--brick{ right: 8%; top: 150px; width: 150px; height: 96px; transform: translate(calc(var(--mx) * 60px), calc(var(--my) * 40px)) rotate(12deg); }
.shape--brick::before{ content:''; position:absolute; left:0; bottom:0; width:150px; height:70px; border-radius:12px; background: var(--red); }
.shape--brick i{ position:absolute; top:0; width:40px; height:26px; border-radius: 8px 8px 0 0; background: var(--red); }
.shape--brick i:nth-child(1){ left:18px; } .shape--brick i:nth-child(2){ left:92px; } .shape--brick i:nth-child(3){ display:none; }
.shape--ring{ left: 14%; bottom: 120px; width: 90px; height: 90px; border-radius:50%; border: 14px solid #fff; opacity:1; transform: translate(calc(var(--mx) * 30px), calc(var(--my) * 50px)); }
.shape--tri{ right: 22%; bottom: 100px; width:0; height:0; border-left: 60px solid transparent; border-right: 60px solid transparent; border-bottom: 104px solid var(--red); transform: translate(calc(var(--mx) * -55px), calc(var(--my) * -35px)) rotate(-14deg); }
.shape--dot{ right: 30%; top: 260px; width:34px; height:34px; border-radius:50%; background: var(--ink); transform: translate(calc(var(--my) * 40px), calc(var(--mx) * -40px)); }
.sticker-wrap{ position: relative; max-width: 1080px; margin: -76px auto 0; height: 0; z-index: 4; }
.sticker{
  position:absolute; right: 24px; top: 0; width: 152px; height: 152px; border-radius:50%; background: var(--red);
  box-shadow: 0 10px 24px rgba(0,0,0,.18); display:flex; align-items:center; justify-content:center;
}
.sticker svg{ position:absolute; inset:0; }
.sticker span{ font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--yellow); }
.sticker text{ fill:#fff !important; }
.shape--star path{ fill: var(--red) !important; }

/* ---------- блоки главной ---------- */
.home-block{ padding: 110px 0 0; background: transparent; border: 0; }
.home-block:nth-of-type(even){ background: transparent; }
.home-block .container{ max-width: var(--container); }
.home-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap: 16px; margin-bottom: 32px; }
.home-head .section-title{ font-size: clamp(30px, 4.5vw, 56px); font-weight: 900; line-height: 1; letter-spacing: -.02em; margin: 0; max-width: 760px; }
.home-head .section-note{ margin: 12px 0 0; font-size: 17px; font-weight: 600; color: var(--text-secondary); }

/* мозаика категорий */
.home-block--cats{ padding-top: 120px; }
.bento{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 16px; }
.tile{
  position:relative; border-radius: 32px; padding: 26px; box-sizing:border-box; overflow:hidden;
  display:flex; flex-direction:column; justify-content:space-between; transition: transform .35s var(--ease);
}
.tile:hover{ transform: scale(.98); }
.tile--2x2{ grid-column: span 2; grid-row: span 2; }
.tile--2x1{ grid-column: span 2; }
.tone-y{ background: var(--yellow); color: var(--ink); }
.tone-r{ background: var(--red); color:#fff; }
.tone-c{ background: var(--bg-yellow); color: var(--ink); }
.tone-k{ background: var(--ink); color:#fff; }
.tile__name{ position:relative; z-index:2; font-family: var(--font-display); font-weight: 700; line-height: 1.05; overflow-wrap:anywhere; }
.tile__pic{
  position:absolute; right:-10px; bottom:-10px; width: 120px; height: 120px; border-radius: 40px; background: rgba(255,255,255,.35);
  display:flex; align-items:center; justify-content:center; font-size: 54px; transition: transform .5s var(--ease); overflow:hidden;
}
.tile--2x2 .tile__pic{ width: 260px; height: 260px; font-size: 120px; }
.tile--2x1 .tile__pic{ width: 150px; height: 150px; font-size: 64px; }
.tone-r .tile__pic{ background: rgba(255,255,255,.2); } .tone-k .tile__pic{ background: rgba(255,255,255,.12); }
.tile__pic img{ width:100%; height:100%; object-fit:cover; }
.tile:hover .tile__pic{ transform: scale(1.12) rotate(-6deg); }
.tile__go{ position:relative; z-index:2; width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; transition: transform .35s var(--ease); }
.tone-y .tile__go, .tone-c .tile__go{ background: var(--ink); color: var(--yellow); }
.tone-r .tile__go{ background:#fff; color: var(--red); }
.tone-k .tile__go{ background: var(--yellow); color: var(--ink); }
.tile:hover .tile__go{ transform: rotate(-45deg); }

/* возраст */
.gift-cta{ background:none; border:0; box-shadow:none; padding:0; display:block; border-radius:0; color: var(--ink); }
.age-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.age{
  height: 200px; border-radius: 28px; background: var(--bg-yellow); color: var(--ink); padding: 22px; box-sizing:border-box;
  display:flex; flex-direction:column; justify-content:space-between; transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.age b{ font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height:1; letter-spacing: -.04em; }
.age span{ font-weight: 700; font-size: 15px; line-height: 1.35; }
.age:hover{ background: var(--red); color:#fff; transform: translateY(-6px); }
.gift-budgets{ display:flex; flex-wrap:wrap; align-items:center; gap: 8px; margin-top: 22px; font-weight: 800; font-size: 14px; }
.gift-budgets span{ color: var(--text-secondary); }
.gift-budgets a{ padding: 10px 18px; border-radius: 999px; background: var(--bg-sand); transition: background-color .2s; }
.gift-budgets a:hover{ background: var(--bg-yellow); }
.gift-budgets .gift-budgets__surprise{ background: var(--ink); color: var(--yellow); }

/* полка (жёлтая) и товары */
.home-block--shelf{ margin-top: 120px; padding: 90px 0 100px; background: var(--yellow); border-radius: 48px; }
.home-block--shelf .container{ padding-top:0; }
.home-block--shelf .link-arrow{ border-bottom-color: var(--ink); }
.home-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.home-block--shelf .product-card:nth-child(4n+1){ transform: rotate(-2deg); }
.home-block--shelf .product-card:nth-child(4n+2){ transform: rotate(1.5deg); }
.home-block--shelf .product-card:nth-child(4n+3){ transform: rotate(-1deg); }
.home-block--shelf .product-card:nth-child(4n){ transform: rotate(2deg); }
.home-block--shelf .product-card:hover{ transform: rotate(0deg) translateY(-8px); box-shadow: 0 24px 40px rgba(120,0,0,.25); }
.home-block--sale .section-title{ color: var(--red); }

/* карточка товара */
.product-card{
  position:relative; display:flex; flex-direction:column; background:#fff; border: 0; border-radius: 30px; padding: 14px; overflow: visible;
  box-shadow: var(--shadow-card); transition: transform .4s var(--ease), box-shadow .4s;
}
.product-card:hover{ transform: translateY(-8px); box-shadow: 0 24px 40px rgba(120,0,0,.2); border-color: transparent; }
.product-card__media{ position:relative; height: 220px; aspect-ratio:auto; border-radius: 22px; background: var(--bg-yellow); border: 0; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.product-card:nth-child(4n+2) .product-card__media{ background: #FDE3E3; }
.product-card:nth-child(4n+3) .product-card__media{ background: var(--bg-sand); }
.product-card__media img{ width:100%; height:100%; object-fit:contain; padding: 10px; background:transparent; }
.product-card__media .ph{ font-size: 72px; }
.product-card__badges{ position:absolute; top: 12px; left: 12px; display:flex; flex-direction:column; gap:6px; z-index:2; }
.product-badge{ border: 0; border-radius: 999px; padding: 5px 12px; font-family: var(--font); font-weight: 800; font-size: 12px; box-shadow:none; background: var(--ink); color:#fff; }
.product-badge--new{ background: var(--yellow); color: var(--ink); }
.product-badge--hit{ background: var(--red); color:#fff; }
.product-badge--sale{ background: var(--red); color:#fff; }
.product-badge--exclusive, .product-badge--low{ background: var(--ink); color:#fff; }
.product-badge--discount{ background: var(--yellow); color: var(--ink); }
.product-card__fav, .product-card__compare{ position:absolute; right: 10px; width: 40px; height: 40px; border-radius:50%; border:0; background:#fff; box-shadow: 0 4px 10px rgba(0,0,0,.12); display:flex; align-items:center; justify-content:center; font-size: 17px; z-index:2; }
.product-card__fav{ top: 10px; } .product-card__compare{ top: 56px; width: 34px; height: 34px; font-size: 15px; }
.product-card__fav.is-active{ color: var(--red); }
.product-card__body{ display:flex; flex-direction:column; gap: 6px; flex:1; padding: 16px 8px 6px; }
.product-card__brand{ margin:0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.product-card__name{ margin:0; min-height:0; font-family: var(--font); font-weight: 700; font-size: 17px; line-height: 1.3; display:-webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow:hidden; }
.product-card__sku{ display:none; }
.product-card__meta{ display:flex; gap: 6px; margin: 0; }
.product-card__age{ background: var(--bg-yellow); border: 0; border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 12px; font-family: var(--font); }
.product-card__stock{ background:#E6F4EA; color: var(--green); border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 12px; font-family: var(--font); }
.product-card__stock--out{ background:#EFEFEF; color: var(--text-secondary); }
.product-card__foot{ margin-top:auto; padding-top: 8px; display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.product-card__price-row{ display:flex; flex-direction:column; align-items:flex-start; margin:0; gap:0; }
.product-card__price{ font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.product-card__old-price{ font-size: 13px; font-weight: 700; color:#8A7B7B; text-decoration: line-through; }
.product-card__add{
  flex-shrink:0; width: 52px; height: 52px; min-height: 52px; padding:0; border-radius:50%; border:0; background: var(--red); color:#fff; box-shadow:none;
  display:flex; align-items:center; justify-content:center; transition: transform .15s, background-color .2s;
}
.product-card__add:hover{ background: var(--ink); }
.product-card__add:active{ transform: scale(.9); }
.product-card__add:disabled{ background:#E7E1D6; color:#A39A8D; }

/* подборки */
.coll-tiles{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.coll-tile{ display:flex; flex-direction:column; gap: 10px; padding: 26px; border: 0; border-radius: 28px; box-shadow:none; background: var(--bg-yellow); color: var(--ink); transition: transform .35s var(--ease); }
.coll-tile:hover{ transform: scale(.98); background: inherit; }
.coll-tile:nth-child(4n+1){ background: var(--yellow); } .coll-tile:nth-child(4n+2){ background: var(--bg-sand); }
.coll-tile:nth-child(4n+3){ background: var(--red); color:#fff; } .coll-tile:nth-child(4n){ background: var(--ink); color:#fff; }
.coll-tile__icon{ display:none; }
.coll-tile__title{ font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.coll-tile__desc{ font-weight: 600; font-size: 15px; opacity: .85; color: inherit; }
.coll-tile__count{ margin-top:auto; font-weight: 800; font-size: 14px; color: inherit; }

/* бегущая строка брендов */
.home-block--brands{ padding: 70px 0; overflow:hidden; }
.marqwrap{ overflow:hidden; }
.marq{ display:flex; width:max-content; gap: 56px; align-items:center; animation: marquee 26s linear infinite; }
.marqwrap:hover .marq{ animation-play-state: paused; }
.marq__copy{ display: contents; }
.marq__item{ display:flex; align-items:center; gap: 56px; font-family: var(--font-display); font-weight: 900; font-size: 44px; color: var(--ink); white-space:nowrap; transition: color .2s; }
.marq__item:hover{ color: var(--red); }

/* преимущества, доставка */
.home-block--adv{ padding-top: 40px; }
.adv-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.adv-card{ background: var(--ink); color:#fff; border:0; border-radius: 32px; box-shadow:none; padding: 32px; display:flex; flex-direction:column; gap: 8px; }
.adv-card__icon{ font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height:1; color: var(--yellow); margin:0; }
.adv-card h3{ font-family: var(--font); font-weight: 800; font-size: 20px; margin:0; color:#fff; }
.adv-card p{ margin:0; font-weight: 600; font-size: 15px; color:#E8DFDF; }
.home-block--delivery{ padding-top: 16px; }
.home-block--delivery .home-head{ position:absolute; width:1px; height:1px; overflow:hidden; clip: rect(0 0 0 0); margin:0; }
.info-cols{ display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.info-col{ padding: 32px; background: var(--bg-sand); border-radius: 32px; box-shadow:none; border:0; display:flex; flex-direction:column; gap: 10px; }
.info-col__icon{ width:48px; height:48px; border-radius: 50%; background: var(--yellow); display:flex; align-items:center; justify-content:center; font-size: 22px; }
.info-col__icon--1{ background: var(--red); }
.info-col h3{ font-family: var(--font-display); font-weight: 700; font-size: 20px; margin:0; }
.info-col p{ margin:0; font-weight: 600; line-height: 1.55; color:#3D3434; }

/* магазин */
.home-block--contacts{ padding: 110px 0; }
.store{ display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.store__card{ border-radius: 36px; background: var(--ink); color:#fff; padding: 44px; display:flex; flex-direction:column; justify-content:space-between; gap: 32px; min-height: 380px; }
.store__card h2{ font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; color:#fff; margin:0; }
.store__info{ display:flex; flex-direction:column; gap: 6px; font-weight: 600; font-size: 16px; line-height: 1.5; color:#E8DFDF; }
.store__info a{ color:#fff; font-weight: 800; }
.store__btns{ display:flex; flex-wrap:wrap; gap: 10px; }
.store__btns .btn--ghost{ border-color:#5A4E4E; }
.store__side{ display:grid; grid-template-rows: 1fr auto; gap: 16px; }
.store__photo{ border-radius: 36px; overflow:hidden; background: var(--bg-sand); min-height: 240px; }
.store__photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.store__links{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.store__link{ border-radius: 28px; background: var(--bg-yellow); padding: 22px; display:flex; flex-direction:column; gap: 4px; transition: transform .35s var(--ease); }
.store__link:hover{ transform: scale(.98); }
.store__link b{ font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.store__link span{ font-weight: 600; font-size: 14px; color: var(--text-secondary); }
.store__link--red{ background: var(--red); color:#fff; } .store__link--red span{ color:#fff; opacity:.9; }

/* подвал с огромным словом */
.footer{ background: var(--ink); color:#fff; border: 0; border-radius: 48px 48px 0 0; overflow:hidden; padding: 56px 0 0; margin-top: 0; }
.footer a{ color:#fff; opacity: 1; }
.footer a:hover{ color: var(--yellow); }
 .footer__social{ display:flex; flex-wrap:wrap; gap: 8px 28px; }
.footer__address{ margin-top: 20px; font-weight: 600; font-size: 14px; opacity:.9; padding-bottom: 0; }

/* ---------- внутренние страницы ---------- */
.page-banner{ background: transparent; background-image:none; border:0; padding: 56px 0 24px; }
.page-banner .stars{ display:none; }
.page-banner__title{ font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4.5vw, 56px); letter-spacing:-.02em; }
.breadcrumbs a{ color: var(--red); }
.catalog__toolbar{ background: var(--bg-sand); border: 0; box-shadow:none; border-radius: 999px; padding: 8px 8px 8px 22px; }
.sort-select{ border: 0; background:#fff; border-radius: 999px; padding: 12px 18px; }
.filters{ border: 0; background:#fff; border-radius: 28px; box-shadow: var(--shadow-card); }
.page-pin{ border: 0; background: var(--bg-sand); box-shadow:none; }
.page-pin.is-active{ background: var(--red); color:#fff; box-shadow:none; }
.catalog__empty{ background: var(--bg-sand); border: 0; border-radius: 28px; box-shadow:none; }
.product-gallery__main{ border: 0; border-radius: 32px; background: var(--bg-yellow); box-shadow:none; }
.product-gallery__thumb{ border: 2px solid transparent; border-radius: 16px; background: var(--bg-sand); }
.product-gallery__thumb.is-active{ border-color: var(--red); box-shadow:none; }
.product-info__name{ font-family: var(--font-display); font-weight: 900; letter-spacing:-.02em; }
.product-info__price{ font-family: var(--font-display); color: var(--ink); }
.product-info__discount{ background: var(--red); border:0; border-radius: 999px; }
.qty-stepper, .product-info__fav{ border: 2px solid var(--border); border-radius: 999px; }
.qty-stepper button{ background: var(--bg-yellow); }
.cart-summary, .cart-item, .order-card{ border: 0; background:#fff; border-radius: 28px; box-shadow: var(--shadow-card); }
.about-card, .contact-card, .partner-tile, .shop-card{ border: 0; border-radius: 28px; box-shadow: var(--shadow-card); background:#fff; }

/* ---------- телефон ---------- */
@media (max-width: 960px){
  .hero{ min-height: 640px; border-radius: 0 0 36px 36px; }
  .hero__inner{ padding: 128px 20px 96px; gap: 22px; }
  .hero__subtitle{ font-size: 17px; }
  .shape--star{ left: 3%; top: 130px; width: 70px; height: 70px; } .shape--star svg{ width:70px; height:70px; }
  .shape--brick{ right: 4%; top: 120px; transform: scale(.6) rotate(12deg); transform-origin: right top; }
  .shape--ring{ width: 56px; height: 56px; border-width: 9px; left: 8%; bottom: 70px; }
  .shape--tri{ border-left-width: 36px; border-right-width: 36px; border-bottom-width: 62px; right: 8%; bottom: 60px; }
  .shape--dot{ display:none; }
  .sticker-wrap{ margin-top: -58px; padding: 0 12px; } .sticker{ width: 112px; height: 112px; right: 16px; } .sticker svg{ width:112px; height:112px; } .sticker span{ font-size: 22px; }
  .home-block{ padding-top: 64px; } .home-block--cats{ padding-top: 90px; }
  .home-block--shelf{ margin-top: 64px; padding: 56px 0 64px; border-radius: 32px; }
  .age{ height: 150px; padding: 16px; border-radius: 24px; } .age b{ font-size: 42px; } .age span{ font-size: 13px; }
  .product-card{ padding: 8px; border-radius: 24px; } .product-card__media{ height: 150px; border-radius: 18px; }
  .product-card__body{ padding: 12px 6px 4px; } .product-card__name{ font-size: 14px; } .product-card__price{ font-size: 16px; }
  .product-card__add{ width: 44px; height: 44px; min-height: 44px; } .product-card__age{ display:none; }
  .product-card__compare{ display:none; }
  .marq__item{ font-size: 28px; gap: 32px; } .marq{ gap: 32px; }
  .store__card{ padding: 28px; min-height: 0; border-radius: 28px; } .store__photo{ border-radius: 28px; }
  .footer{ border-radius: 32px 32px 0 0; padding-top: 40px; padding-bottom: 90px; }
  .coll-tiles{ grid-template-columns: 1fr; }
  .page-banner{ padding: 32px 0 12px; }
}

/* поправки */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.store__card{ min-height: 0; }
.store__side{ grid-template-rows: auto auto; }
.store__photo{ background: var(--bg-sand); height: 300px; min-height: 0; }
.store__photo img{ width:100%; height:100%; object-fit: cover; object-position: center 60%; background: transparent; }
.store__links{ margin-top: 0; }
@media (max-width:960px){ .store__photo{ height: 220px; } }
@media (max-width:960px){ .shape--brick{ top: 96px; right: -6px; opacity:.95; transform: scale(.45) rotate(12deg); } .hero__tag{ font-size: 12px; } }
.breadcrumbs{ padding-top: 20px; }

.age--any{ background: var(--ink); color:#fff; }
.age--any b{ color: var(--yellow); }
.age--any:hover{ background: var(--red); }
.store__links{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.store__link--wb{ background: #7B2CBF; color:#fff; } .store__link--wb span{ color:#fff; opacity:.9; }

@media (max-width:960px){ .store__links{ grid-template-columns: repeat(2, minmax(0,1fr)); } }

.search__panel{ border:0 !important; border-radius: 24px !important; box-shadow: 0 20px 50px rgba(0,0,0,.25) !important; z-index: 20; }
.hero__inner{ padding-bottom: 150px; }
.hero{ min-height: 680px; }
@media (max-width:960px){ .hero{ min-height: 560px; } .hero__inner{ padding-bottom: 110px; } }
@media (max-width:960px){ .search{ padding: 0 12px 0 12px; gap:8px; } .search__input{ font-size:14px; } .search__icon{ width:18px; } }

/* ---------- админка ---------- */
.admin-head{ background:#fff; border-bottom: 1px solid var(--border); }
.admin-head__inner{ max-width: 1180px; margin: 0 auto; padding: 10px 24px; display:flex; align-items:center; gap: 16px; }
.admin-head__title{ font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.admin-head__right{ margin-left:auto; display:flex; align-items:center; gap: 12px; }
.admin-head__user{ font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.admin-head .btn{ min-height: 40px; padding: 0 20px; }
.admin-wrap{ padding: 28px 0 80px; }
.admin-tabs{ display:flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; border: 0; }
.admin-tab{ padding: 10px 18px; border: 0; border-radius: 999px; background: var(--bg-sand); color: var(--ink); font-weight: 800; font-size: 14px; margin: 0; transition: background-color .2s; }
.admin-tab:hover{ background: var(--bg-yellow); }
.admin-tab.is-active{ background: var(--red); color:#fff; border: 0; }
.admin-table{ border: 0; border-radius: 20px; box-shadow: var(--shadow-card); }
.admin-table th{ background: var(--bg-yellow); }
@media (max-width:700px){ .admin-head__title{ display:none; } .admin-head__inner{ padding: 8px 14px; } .admin-head__user{ display:none; } }

/* ---------- статистика в админке ---------- */
.stats-top{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 12px; margin-bottom: 20px; }
.stats-periods{ display:flex; flex-wrap:wrap; gap: 8px; }
.stats-online{ display:flex; align-items:center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--text-secondary); }
.stats-online b{ color: var(--ink); }
.stats-dot{ width:10px; height:10px; border-radius:50%; background:#2FB457; box-shadow: 0 0 0 4px rgba(47,180,87,.2); }
.stats-kpis{ display:grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats-kpi{ background:#fff; border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow-card); display:flex; flex-direction:column; gap: 4px; min-width:0; }
.stats-kpi span{ font-weight: 700; font-size: 13px; color: var(--text-secondary); }
.stats-kpi b{ font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height:1.1; overflow-wrap:anywhere; }
.stats-kpi small{ font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.stats-delta{ font-size: 12px; font-weight: 800; color: var(--text-secondary); }
.stats-delta.is-up{ color: var(--green); } .stats-delta.is-down{ color: var(--red); }
.stats-card{ background:#fff; border-radius: 24px; padding: 22px 24px; box-shadow: var(--shadow-card); margin-bottom: 16px; min-width:0; }
.stats-card h3{ font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 0 0 14px; }
.stats-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.stats-grid .stats-card{ margin-bottom: 0; }
.stats-grid{ margin-bottom: 16px; }
.stats-note{ font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 10px 0 0; line-height: 1.5; }
.stats-note--box{ background: var(--bg-yellow); color: var(--ink); border-radius: 18px; padding: 14px 18px; margin: 0 0 16px; }
.stats-bars, .stats-funnel{ list-style:none; margin:0; padding:0; display:grid; gap: 12px; }
.stats-bars__row{ display:flex; justify-content:space-between; align-items:baseline; gap: 12px; font-size: 14px; font-weight: 700; }
.stats-bars__name{ min-width:0; overflow-wrap:anywhere; }
.stats-bars__row b{ flex-shrink:0; font-weight: 800; text-align:right; }
.stats-bars__row small{ font-weight: 600; color: var(--text-secondary); font-size: 12px; }
.stats-bars__track{ height: 10px; border-radius: 999px; background: var(--bg-sand); margin-top: 6px; overflow:hidden; }
.stats-bars__track i{ display:block; height:100%; border-radius: 999px; background: var(--red); }
.stats-funnel .stats-bars__track i{ background: var(--yellow-dark); }
.stats-chart{ width:100%; height:auto; display:block; }
.stats-chart rect{ fill: var(--red); } .stats-chart rect.is-order{ fill: var(--yellow-dark); }
.stats-chart text{ font: 600 11px var(--font); fill: var(--text-secondary); } .stats-chart__max{ text-anchor:start; }
.stats-ext{ margin-top: 24px; }
.stats-ext summary{ cursor:pointer; font-weight: 800; font-size: 14px; padding: 10px 0; color: var(--text-secondary); }
@media (max-width:700px){ .stats-card{ padding: 18px 16px; } .stats-kpi b{ font-size: 22px; } .stats-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- адаптивность: ничего не шире экрана ---------- */
html, body{ max-width: 100%; overflow-x: clip; }
img, svg, video{ max-width: 100%; }
.catalog__layout > *, .product-page__layout > *, .cart-layout > *, .checkout > *, .store > *, .info-cols > *, .stats-grid > *{ min-width: 0; }
.product-card, .tile, .age, .coll-tile, .adv-card, .info-col{ min-width: 0; }
.store{ grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.info-cols{ grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.adv-grid{ grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.coll-tiles{ grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tabs{ overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.tabs::-webkit-scrollbar{ display:none; }
.tab{ white-space: nowrap; flex-shrink: 0; }
@media (max-width: 960px){
  .catalog__grid, .home-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog__toolbar{ min-width: 0; }
  .product-card__name{ overflow-wrap: anywhere; }
  .product-info__name, .product-info__brand, .section-title, .page-banner__title{ overflow-wrap: anywhere; }
}
@media (max-width: 420px){
  .home-grid, .catalog__grid{ gap: 10px; }
  .product-card{ padding: 6px; border-radius: 20px; }
  .product-card__media{ height: 130px; }
  .product-card__foot{ gap: 6px; }
  .product-card__price{ font-size: 15px; }
  .product-card__old-price{ font-size: 11px; }
  .product-card__add{ width: 40px; height: 40px; min-height: 40px; }
  .product-card__fav{ width: 34px; height: 34px; top: 8px; right: 8px; font-size: 15px; }
  .hero__title{ font-size: clamp(38px, 12vw, 56px); }
  .store__card{ padding: 22px; }
  .store__links{ grid-template-columns: 1fr; }
  .age b{ font-size: 36px; }
  .gift-budgets a{ padding: 9px 14px; }
}
.ecosystem > *{ min-width: 0; }
.product-info__price-row, .product-info__pricing{ flex-wrap: wrap; }
@media (max-width: 960px){ .ecosystem{ grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.ecosystem__inner > *{ min-width: 0; }
@media (max-width: 960px){ .ecosystem__inner{ grid-template-columns: minmax(0, 1fr); gap: 28px; } .ecosystem{ padding: 56px 0; } }
@media (max-width: 960px){ body{ padding-bottom: 0; } }
@media (max-width: 420px){
  .product-badge{ font-size: 10.5px; padding: 4px 9px; max-width: calc(100% - 56px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* планшет: мозаика и сетки остаются «взрослыми», двух колонок хватает только телефону */
@media (min-width: 601px) and (max-width: 960px){
  .bento{ grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 170px; gap: 12px; }
  .tile{ padding: 20px; border-radius: 28px; } .tile__name{ font-size: 17px !important; }
  .tile--2x2 .tile__name{ font-size: 28px !important; } .tile--2x2 .tile__pic{ width: 200px; height: 200px; font-size: 96px; }
  .tile__pic{ width: 96px; height: 96px; font-size: 42px; } .tile--2x1 .tile__pic{ width: 120px; height: 120px; font-size: 52px; }
  .age-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-page__layout{ display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items:start; }
  .product-gallery__main{ max-height: 520px; }
}
@media (max-width: 600px){
  .bento{ grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 160px; gap: 12px; }
  .tile{ padding: 18px; border-radius: 26px; } .tile__name{ font-size: 18px !important; }
  .tile--2x2{ grid-column: span 2; grid-row: span 2; } .tile--2x2 .tile__name{ font-size: 26px !important; }
  .tile--2x2 .tile__pic{ width: 190px; height: 190px; font-size: 90px; } .tile__pic{ width: 90px; height: 90px; font-size: 40px; border-radius: 28px; } .tile--2x1 .tile__pic{ width: 110px; height: 110px; font-size: 48px; }
  .age-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .home-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .catalog__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gift-cta, .gift-cta .home-head, .age{ text-align: left; }
.gift-cta .home-head{ justify-content: flex-start; }
.tile__name{ hyphens: manual; }
@media (min-width: 601px) and (max-width: 960px){ .tile--1x1 .tile__name{ font-size: 15px !important; } }
@media (max-width: 1200px){ .shape--dot{ display:none; } .shape--ring{ left: 4%; bottom: 60px; width: 64px; height: 64px; border-width: 10px; } .shape--tri{ right: 5%; } }
@media (max-width: 380px){ .tile{ padding: 14px; } .tile__name{ font-size: 15px !important; } .tile--2x2 .tile__name{ font-size: 22px !important; } }
.store__photo img{ min-height: 100%; }

/* ---------- админка: вкладки ---------- */
.ah{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap: 16px; margin-bottom: 22px; }
.ah__text{ min-width:0; flex: 1 1 360px; }
.ah h2{ font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.05; margin: 0; }
.ah p{ margin: 8px 0 0; max-width: 680px; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--text-secondary); }
.ah__actions{ display:flex; flex-wrap:wrap; gap: 10px; }
.ah .btn{ min-height: 46px; padding: 0 24px; font-size: 14px; box-shadow:none; }
.ah-kpis{ margin-bottom: 20px; }

/* пустая вкладка */
.ah-empty{ text-align:center; background:#fff; border-radius: 28px; padding: 56px 24px; box-shadow: var(--shadow-card); }
.ah-empty__icon{ width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--bg-yellow); display:flex; align-items:center; justify-content:center; font-size: 40px; }
.ah-empty h3{ font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.ah-empty p{ max-width: 460px; margin: 0 auto 20px; font-size: 14px; font-weight: 600; line-height: 1.55; color: var(--text-secondary); }
.ah-empty .btn{ min-height: 46px; }

/* таблицы: мягкая карточка, строки подсвечиваются */
.admin-table{ border: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); border-collapse: separate; border-spacing: 0; background:#fff; }
.admin-table th{ background: var(--bg-yellow); font-family: var(--font); font-weight: 800; font-size: 12px; letter-spacing: .02em; color: #5B4A18; padding: 14px 16px; border-bottom: 0; }
.admin-table td{ padding: 14px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid #F1E9D6; vertical-align: middle; }
.admin-table tbody tr:last-child td{ border-bottom: 0; }
.admin-table tbody tr:hover td{ background: #FFFBEA; }
.admin-table .order-details td{ background: var(--bg-sand) !important; }
.admin-table code{ font-family: var(--font); font-weight: 800; font-size: 12px; background: var(--bg-sand); padding: 3px 8px; border-radius: 8px; }
.admin-thumb{ width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--bg-yellow); object-fit: cover; }
.admin-thumb--empty{ color: var(--text-secondary); font-size: 18px; }
.admin-logo{ height: 26px; max-width: 70px; margin-right: 10px; }

/* кнопки в таблицах: мелкие и спокойные */
.admin-table .btn, .admin-table .btn--outline{
  min-height: 34px; height: 34px; padding: 0 14px !important; font-size: 12.5px !important; font-weight: 800; border-radius: 999px;
  background: var(--bg-sand); color: var(--ink); border: 0; box-shadow:none; transition: background-color .2s, color .2s;
}
.admin-table .btn:hover{ background: var(--yellow); }
.admin-table .btn[style*="color:var(--red)"]{ color: var(--red) !important; background: #FDE3E3; }
.admin-table .btn[style*="color:var(--red)"]:hover{ background: var(--red); color:#fff !important; }
.admin-table .btn--xs{ width: auto; min-width: 34px; }
.admin-table .btn:disabled{ opacity: .35; }

/* значки */
.admin-pill{ display:inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--bg-yellow); color: var(--ink); }
.admin-pill--ok{ background:#E6F4EA; color: var(--green); }
.admin-pill--off{ background:#EFEFEF; color: var(--text-secondary); }
.admin-pill--bad{ background:#FDE3E3; color: var(--red-dark); }
.stock-num{ font-weight: 800; }
.stock-num.is-low{ color: #B07A00; } .stock-num.is-out{ color: var(--red); }

/* статус заказа цветом */
.admin-table select.status-select{ border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 12.5px; background: var(--bg-sand); color: var(--ink); cursor: pointer; }
.admin-table select.status-select[data-tone="attn"]{ background:#FDE3E3; color: var(--red-dark); }
.admin-table select.status-select[data-tone="wait"]{ background: var(--bg-yellow); color:#7A5C00; }
.admin-table select.status-select[data-tone="work"]{ background:#E4EEFB; color:#1F4E8C; }
.admin-table select.status-select[data-tone="ok"]{ background:#E6F4EA; color: var(--green); }
.admin-table select.status-select[data-tone="bad"]{ background:#EFEFEF; color: var(--text-secondary); }

/* поиск и фильтры над таблицей */
.admin-filters{ gap: 10px; margin-bottom: 18px; }
.admin-filters input, .admin-filters select{ border: 0; background:#fff; box-shadow: var(--shadow-card); border-radius: 999px; padding: 13px 20px; font-size: 14px; font-weight: 600; font-family: var(--font); color: var(--ink); }
.admin-filters input:focus, .admin-filters select:focus{ outline: none; box-shadow: 0 0 0 2px var(--red); }

/* формы */
.admin-form-panel{ border: 0 !important; border-radius: 28px !important; box-shadow: var(--shadow-card) !important; background:#fff; padding: 26px !important; }
.admin-form-panel .filters__title{ font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.admin-form-panel input[type="text"], .admin-form-panel input[type="number"], .admin-form-panel input[type="password"], .admin-form-panel input[type="email"], .admin-form-panel select, .admin-form-panel textarea{
  border: 2px solid var(--border); border-radius: 16px; background: var(--bg); font-family: var(--font); font-weight: 600; font-size: 14px; padding: 12px 16px; width:100%; box-sizing:border-box;
}
.admin-form-panel input:focus, .admin-form-panel select:focus, .admin-form-panel textarea:focus{ outline:none; border-color: var(--red); background:#fff; }
.admin-form-panel .btn{ min-height: 46px; }

/* безопасность */
.sec-grid{ display:grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 16px; align-items:start; }
.sec-grid .admin-form-panel{ margin-bottom: 0; }
.sec-tips ul{ margin: 0; padding: 0; list-style: none; display:grid; gap: 14px; }
.sec-tips li{ font-size: 14px; font-weight: 600; line-height: 1.55; color:#3D3434; padding-left: 22px; position: relative; }
.sec-tips li::before{ content:''; position:absolute; left:0; top: 8px; width: 10px; height: 10px; border-radius:50%; background: var(--yellow); }
.sec-tips li b{ color: var(--ink); }
.sec-tips code{ font-family: var(--font); font-weight: 800; font-size: 12px; background: var(--bg-sand); padding: 2px 6px; border-radius: 6px; }

@media (max-width: 960px){ .sec-grid{ grid-template-columns: minmax(0,1fr); } }
@media (max-width: 700px){
  .ah__actions{ width:100%; } .ah__actions .btn{ flex:1; }
  .admin-table{ display:block; overflow-x:auto; }
  .admin-table th, .admin-table td{ padding: 12px 12px; white-space: nowrap; }
  .admin-table td[style*="max-width"]{ white-space: normal; min-width: 180px; }
  .admin-filters input[type="text"]{ min-width: 0; width: 100%; }
  .admin-filters select{ width:100%; }
  .admin-form-panel{ padding: 20px !important; } .admin-form-panel .checkout-form__row{ grid-template-columns: 1fr !important; }
}
.admin-table td[style*="white-space:nowrap"]{ white-space: normal !important; min-width: 150px; }
.admin-table td .btn{ margin: 2px 2px 2px 0; }
.admin-table td:last-child{ text-align: right; }

/* ===== Страница товара: доработка ===== */
.pspecs{ display:grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 10px; margin: 22px 0 18px; }
.pspec{ background:#fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-card); display:flex; flex-direction:column; gap: 3px; min-width:0; }
.pspec span{ font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.pspec b{ font-size: 15px; font-weight: 800; color: var(--ink); overflow-wrap:anywhere; }
.pspec--ok{ background:#E8F7EC; box-shadow:none; }
.pspec--ok b{ color:#13783A; }
.pperks{ list-style:none; margin: 0 0 18px; padding: 0; display:grid; gap: 8px; }
.pperks li{ position:relative; padding-left: 26px; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.pperks li::before{ content:""; position:absolute; left:0; top:2px; width:16px; height:16px; border-radius:50%; background: var(--yellow); box-shadow: inset 0 0 0 4px var(--yellow), inset 0 0 0 8px var(--ink); }
.pdesc{ margin-top: 22px; background:#fff; border-radius: 24px; padding: 22px 24px; box-shadow: var(--shadow-card); }
.pdesc h2{ font-family: var(--font-display); font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.pdesc p{ margin:0; font-size: 15px; line-height: 1.65; color: var(--text-secondary); white-space: pre-line; }
.related{ margin-top: 56px; }
.related .section-title{ font-family: var(--font-display); font-weight: 900; font-size: clamp(24px,3vw,36px); letter-spacing:-.02em; margin: 0 0 22px; }
.related__row{ display:grid; gap: 22px; grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px){
  .related__row{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .related{ margin-top: 40px; }
}

/* ===== Каталог: фильтры компактнее ===== */
.filters{ padding: 22px 22px 24px; }
.filters__group{ margin-bottom: 22px; padding-bottom: 22px; border-bottom: 2px solid var(--bg-sand); }
.filters__group:last-child{ border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.filters__title{ font-family: var(--font-display); font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.brand-filter-logo{ width: 52px; height: 34px; border: 0; background: var(--bg-sand); border-radius: 10px; padding: 4px; }
.filters__list{ gap: 8px; }
.filters__checkbox:hover .filters__name{ color: var(--red); }

/* ===== Корзина: доработка ===== */
.cart-summary{ position: sticky; top: calc(var(--header-h, 80px) + 24px); padding: 24px; }
.cart-summary__title{ font-family: var(--font-display); font-size: 20px; font-weight: 800; margin: 0 0 16px; }
.cart-summary__note{ margin: 12px 4px 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); text-align:center; }
.cart-item__name{ font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.3; }
.cart-item__total{ font-family: var(--font-display); font-weight: 800; font-size: 17px; white-space: nowrap; }
.cart-item__remove{ width: 36px; height: 36px; border-radius: 50%; background: var(--bg-sand); color: var(--ink); display:grid; place-items:center; transition: background .15s, color .15s; }
.cart-item__remove:hover{ background: var(--red); color:#fff; }
@media (max-width: 960px){ .cart-summary{ position: static; } }

/* ===== Оформление заказа: карточка ===== */
#checkoutArea .about-section{ background:#fff; border-radius: 32px; box-shadow: var(--shadow-card); padding: 32px 36px 36px !important; margin-top: 32px; max-width: 760px; }
#checkoutArea .section-title{ font-family: var(--font-display); font-weight: 900; font-size: clamp(24px,3vw,34px); letter-spacing:-.02em; margin: 0 0 6px; }
#checkoutArea .checkout-form{ max-width: none !important; margin-top: 20px; }
.checkout-form input, .checkout-form textarea{ border: 2px solid transparent; background: var(--bg-sand); border-radius: 18px; padding: 14px 18px; font-size: 15px; font-family: var(--font); color: var(--ink); }
.checkout-form input:focus, .checkout-form textarea:focus{ border-color: var(--red); background:#fff; }
.checkout-form label{ font-weight: 700; }
.wizard-nav{ display:flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wizard-steps li{ border-radius: 999px; }
@media (max-width: 600px){
  #checkoutArea .about-section{ padding: 22px 18px 24px !important; border-radius: 26px; }
  .checkout-form__row{ grid-template-columns: 1fr; }
  .wizard-nav .btn{ flex:1; }
}

/* ===== Мобильная правка: бейджи и корзина ===== */
@media (max-width: 960px){
  .product-card__badges{ max-width: calc(100% - 64px); align-items:flex-start; }
  .product-badge{ max-width: none; overflow: visible; text-overflow: clip; }
}
@media (max-width: 600px){
  .cart-item{ grid-template-columns: 76px minmax(0,1fr); grid-template-areas: "media info" "media total"; gap: 4px 14px; padding: 14px; align-items:start; }
  .cart-item__media{ grid-area: media; width: 76px; height: 76px; border-radius: 16px; }
  .cart-item > div:nth-child(2){ grid-area: info; padding-right: 34px; min-width:0; }
  .cart-item__total{ grid-area: total; align-self:end; }
  .cart-item__name{ font-size: 14px; }
  .cart-item__remove{ top: 12px; right: 12px; width: 30px; height: 30px; }
}

/* ===== Заглушка вместо фото ===== */
.ph--toy{ position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 10px; font-size: inherit; opacity:1; }
.ph--toy .ph__emoji{ font-size: 64px; line-height:1; position:relative; z-index:1; filter: drop-shadow(0 8px 10px rgba(26,20,20,.14)); }
.ph--toy .ph__brand{ position:relative; z-index:1; font-family: var(--font-display); font-weight: 900; font-size: 13px; letter-spacing: .02em; color: var(--ink); background: rgba(255,255,255,.75); border-radius: 999px; padding: 5px 12px; max-width: 80%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ph__shape{ position:absolute; border-radius:50%; background: rgba(255,255,255,.45); }
.ph__shape--a{ width: 70%; aspect-ratio:1; left: -18%; top: -22%; }
.ph__shape--b{ width: 46%; aspect-ratio:1; right: -12%; bottom: -14%; background: rgba(227,0,11,.08); }
.product-gallery__main .ph--toy .ph__emoji{ font-size: 140px; }
.product-gallery__main .ph--toy .ph__brand{ font-size: 18px; padding: 8px 18px; }
@media (max-width: 600px){ .ph--toy .ph__emoji{ font-size: 46px; } .ph--toy .ph__brand{ font-size: 11px; padding: 4px 10px; } }

/* ===== Фильтры без внутренней прокрутки ===== */
@media (min-width: 961px){ .filters{ position: static; max-height: none; overflow: visible; } }

/* ===== Шире сайт + декор по бокам на внутренних страницах ===== */
:root{ --container: 1380px; }
.container{ padding: 0 32px; }
body:not(.page-home) main{ position: relative; }
body:not(.page-home) main::before{
  content:''; position:absolute; inset: 0; z-index: 0; pointer-events:none; overflow:hidden;
  background: url('images/misc/deco-wide.svg') center top / 2100px 1641px repeat-y;
  opacity: .5; filter: blur(1px);
}
@media (max-width: 960px){ body:not(.page-home) main::before{ background-size: 1100px 859px; opacity:.28; } }
/* матовое стекло: карточки и панели чуть пропускают фон */
body:not(.page-home) .product-card, body:not(.page-home) .filters, body:not(.page-home) .pdesc, body:not(.page-home) .cart-item, body:not(.page-home) .cart-summary{
  background: rgba(255,255,255,.68); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.catalog__agebar{ display:flex; flex-wrap:wrap; gap: 8px; flex:1; padding-left: 4px; }
.catalog__agebar .age-filter{ display:flex; flex-wrap:wrap; gap: 8px; }
.catalog__agebar .age-btn{ border: 0; background:#fff; border-radius: 999px; padding: 9px 16px; font-family: var(--font); font-weight: 800; font-size: 14px; cursor:pointer; box-shadow: 0 2px 0 rgba(26,20,20,.08); }
.catalog__agebar .age-btn:hover{ background: var(--bg-yellow); }
.catalog__agebar .age-btn.is-active{ background: var(--red); color:#fff; }
.page-banner__desc{ font-family: var(--font-display); font-weight: 700; font-size: clamp(15px,1.6vw,19px); color: var(--red); margin-top: 6px; min-height: 1.4em; }
@media (max-width: 960px){ .container{ padding: 0 20px; } }
@media (max-width: 600px){ .container{ padding: 0 16px; } }
@media (max-width: 600px){ .sort-select{ font-size: 13px; padding-left: 12px; padding-right: 6px; text-overflow: ellipsis; } }

/* ===== Подвал по примеру ===== */
.footer{ padding: 64px 0 0; }
.footer__main{ display:grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 40px 48px; align-items:start; }
.footer__brand{ display:flex; flex-direction:column; align-items:flex-start; gap: 18px; }
.footer__logo img{ display:block; height: 64px; width:auto; }
.footer__pill{ display:inline-flex; align-items:center; gap: 10px; background:#F1F1EE; color: var(--ink) !important; border-radius: 999px; padding: 13px 22px; font-weight: 800; font-size: 15px; transition: background .15s; }
.footer__pill:hover{ background: var(--yellow); color: var(--ink) !important; }
.footer__phone{ font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.footer__address{ font-size: 14px; line-height: 1.5; opacity:.7; font-weight: 600; max-width: 260px; }
.footer__col{ display:flex; flex-direction:column; align-items:flex-start; gap: 14px; font-weight: 600; font-size: 15px; min-width:0; }
.footer__col h3, .footer__follow h3{ font-family: var(--font-display); font-size: 15px; font-weight: 800; color:#fff; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.footer__col a{ color:#fff; opacity:.9; line-height: 1.35; }
.footer__col a:hover{ color: var(--yellow); opacity:1; }
.footer__follow{ margin-top: 44px; }
.footer__follow h3{ margin-bottom: 14px; }
.footer__social{ display:flex; gap: 12px; flex-wrap:wrap; }
.footer__social a{ width: 54px; height: 54px; border-radius: 50%; background:#F1F1EE; color: var(--ink) !important; display:grid; place-items:center; transition: background .15s, transform .15s; }
.footer__social a:hover{ background: var(--yellow); transform: translateY(-2px); }
.footer__kaspi{ font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--red) !important; }
.footer__legal{ display:flex; flex-wrap:wrap; gap: 10px 32px; margin-top: 44px; font-weight: 700; font-size: 15px; }
.footer__legal a:hover{ color: var(--yellow); }
.footer__fine{ margin-top: 28px; padding-bottom: 36px; font-size: 13px; line-height: 1.7; font-weight: 500; opacity:.7; max-width: 1100px; margin-left:auto; margin-right:auto; }
@media (max-width: 960px){
  .footer{ padding-top: 44px; }
  .footer__main{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px 24px; }
  .footer__brand{ grid-column: 1 / -1; }
  .footer__fine{ padding-bottom: 100px; }
}
@media (max-width: 480px){ .footer__col{ font-size: 14px; } .footer__logo img{ height: 54px; } .footer__phone{ font-size: 19px; } .footer__legal{ gap: 8px 20px; font-size: 14px; } }

/* ===== Фирменные звёзды вместо фигур ===== */
.shape img{ width:100%; height:100%; display:block; filter: drop-shadow(0 10px 14px rgba(26,20,20,.18)); }
.shape--star img{ animation: none; }
.shape--star{ width: 120px; height: 120px; }
.shape--brick{ width: 150px; height: 150px; transform: translate(calc(var(--mx) * 60px), calc(var(--my) * 40px)) rotate(14deg); }
.shape--brick::before, .shape--brick i{ display:none; }
.shape--ring{ width: 96px; height: 96px; border: 0; border-radius:0; background:none; opacity:1; }
.shape--tri{ width: 130px; height: 130px; border: 0; background:none; }
.shape--dot{ width: 58px; height: 58px; background:none; border-radius:0; }
@media (max-width: 960px){
  .shape--star{ width: 64px; height: 64px; } .shape--star img{ width:100%; height:100%; }
  .shape--brick{ width: 96px; height: 96px; top: 100px; right: -10px; transform: rotate(14deg); }
  .shape--ring{ width: 52px; height: 52px; border: 0; left: 6%; bottom: 70px; }
  .shape--tri{ width: 70px; height: 70px; border: 0; right: 8%; bottom: 70px; }
}
body:not(.page-home) main::before{ background: url('images/misc/deco-wide.png') center top / 1920px 1500px repeat-y; opacity: .6; filter: none; }
@media (max-width: 960px){ body:not(.page-home) main::before{ background-size: 1100px 859px; opacity:.5; } }
/* картинки категорий на главной */
.tile__pic--img{ background: none !important; border-radius: 0; overflow: visible; }
.tile__pic--img img{ object-fit: contain; filter: drop-shadow(0 12px 14px rgba(26,20,20,.22)); }
.tile--2x2 .tile__pic--img{ width: 320px; height: 320px; right: -6px; bottom: -6px; }
.tile--2x1 .tile__pic--img{ width: 190px; height: 190px; }
.tile__pic--img{ width: 150px; height: 150px; }
@media (max-width: 960px){ .tile__pic--img{ width: 112px; height: 112px; } .tile--2x2 .tile__pic--img{ width: 220px; height: 220px; } .tile--2x1 .tile__pic--img{ width: 130px; height: 130px; } }
@media (max-width: 600px){ .tile__pic--img{ width: 96px; height: 96px; } .tile--2x2 .tile__pic--img{ width: 180px; height: 180px; } .tile--2x1 .tile__pic--img{ width: 110px; height: 110px; } }
.shape--dot{ right: auto; left: 3.5%; top: 400px; }
@media (max-width: 960px){ .shape--dot{ display:none; } }
/* правки: картинки категорий целиком внутри плитки, подвал */
.tile__pic--img{ right: 14px !important; bottom: 10px !important; }
.tile--2x2 .tile__pic--img{ width: 280px; height: 280px; }
.tile--2x1 .tile__pic--img{ width: 170px; height: 170px; }
.tile:hover .tile__pic--img{ transform: scale(1.06) rotate(-4deg); }
.footer__fine{ max-width: none; margin-left: 0; margin-right: 0; }
@media (max-width: 600px){
  .tile--2x1 .tile__pic--img{ width: 100px; height: 100px; }
  .tile--2x1 .tile__name{ max-width: 62%; }
  .tile--1x1 .tile__name{ font-size: 16px !important; }
}
@media (max-width: 400px){ .tile--1x1 .tile__name{ font-size: 14px !important; } }
.footer__fine{ max-width: var(--container); margin-left: auto; margin-right: auto; }
@media (max-width: 400px){ .tile--1x1 .tile__name{ font-size: 12.5px !important; } }
.tile--wide{ grid-column: 1 / -1; }
.cat-all{ display:flex; align-items:center; justify-content:space-between; margin-top: 16px; padding: 22px 28px; border-radius: 28px; background: var(--ink); color:#fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(18px,2vw,24px); transition: transform .35s var(--ease); }
.cat-all:hover{ transform: scale(.99); }
.cat-all .tile__go{ background: var(--yellow); color: var(--ink); }
@media (max-width: 600px){ .cat-all{ margin-top: 12px; padding: 18px 20px; border-radius: 24px; } }

/* ===== Ползунки как у LEGO: круглые «пины» и подсказки со значениями ===== */
.price-filter__values{ display:none; }
.price-slider{ height: 30px; margin: 44px 0 20px; }
.price-slider__track{ height: 8px; border-radius: 4px; background: #E4E0D5; }
.price-slider__range{ height: 8px; border-radius: 4px; background: var(--ink); }
.price-slider__input{ height: 30px; }
.price-slider__input::-webkit-slider-thumb{ width: 26px; height: 26px; background:#fff; border: 3px solid var(--ink); box-shadow: 0 3px 8px rgba(26,20,20,.25); transition: transform .15s; }
.price-slider__input::-webkit-slider-thumb:hover, .price-slider__input:active::-webkit-slider-thumb{ transform: scale(1.12); background: var(--yellow); }
.price-slider__input::-moz-range-thumb{ width: 20px; height: 20px; background:#fff; border: 3px solid var(--ink); box-shadow: 0 3px 8px rgba(26,20,20,.25); }
.price-slider__input:active::-moz-range-thumb{ background: var(--yellow); }
.price-slider__pin{ position:absolute; bottom: calc(100% + 8px); transform: translateX(-50%); background: var(--ink); color:#fff; font-family: var(--font-display); font-weight: 800; font-size: 12px; line-height: 1; padding: 7px 10px; border-radius: 10px; white-space: nowrap; pointer-events:none; }
.price-slider__pin::after{ content:''; position:absolute; left:50%; top:100%; margin-left:-5px; border: 5px solid transparent; border-top-color: var(--ink); }
.price-slider__pin.is-left{ transform: translateX(-85%); }
.price-slider__pin.is-left::after{ left: 85%; }
.price-slider__pin.is-right{ transform: translateX(-15%); }
.price-slider__pin.is-right::after{ left: 15%; }
.footer__phone + .footer__phone{ margin-top: -8px; }
.footer__kaspi{ padding: 0; overflow: hidden; }
.footer__kaspi img{ width:100%; height:100%; display:block; }
/* бегунки — как круглая пластинка LEGO 1×1 (жёлтый диск с «пупырышком») */
.price-slider__input::-webkit-slider-thumb{
  width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: grab;
  background:
    radial-gradient(circle at 42% 36%, rgba(255,255,255,.75) 0 7%, rgba(255,255,255,0) 9%),
    radial-gradient(circle at 50% 50%, #FFD500 0 33%, #D9A600 35% 41%, rgba(0,0,0,0) 43%),
    radial-gradient(circle at 38% 30%, #FFE769, #FFCF00 62%, #EDB800);
  box-shadow: 0 3px 0 #C99700, 0 6px 10px rgba(26,20,20,.28);
  transform: none !important; transition: none;
}
.price-slider__input:active::-webkit-slider-thumb{ cursor: grabbing; box-shadow: 0 1px 0 #C99700, 0 3px 6px rgba(26,20,20,.28); }
.price-slider__input::-moz-range-thumb{
  width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: grab;
  background:
    radial-gradient(circle at 42% 36%, rgba(255,255,255,.75) 0 7%, rgba(255,255,255,0) 9%),
    radial-gradient(circle at 50% 50%, #FFD500 0 33%, #D9A600 35% 41%, rgba(0,0,0,0) 43%),
    radial-gradient(circle at 38% 30%, #FFE769, #FFCF00 62%, #EDB800);
  box-shadow: 0 3px 0 #C99700, 0 6px 10px rgba(26,20,20,.28);
}
@media (max-width: 600px){
  .tile--2x2 .tile__pic--img{ width: 190px; height: 190px; }
}
@media (max-width: 960px){
  body:not(.page-home) .filters{ background:#fff; -webkit-backdrop-filter:none; backdrop-filter:none; }
  body:has(.filters.is-open) .header, body:has(.filters.is-open) .tabbar{ visibility:hidden; }
}