/* Шапка-капсула и главный экран-карточка (как у muse): шапка парит над страницей со скруглёнными краями,
   первый экран чуть ниже высоты окна, чтобы снизу выглядывали товары. Подключается последним. */
:root { --pill-gap: 10px; --peek: clamp(120px, 22svh, 220px); --card-r: clamp(18px, 2vw, 30px); }

/* ---------- шапка ---------- */
html body div#argent-root .header.header {
  top: var(--pill-gap); left: var(--pill-gap); right: var(--pill-gap); margin-inline: auto;
  max-width: 1280px; height: 56px;
  transition: max-width 0.5s cubic-bezier(0.23, 1, 0.32, 1), top 0.3s ease;
}
html body div#argent-root .header.header:before {
  opacity: 1; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 999px;
  background: rgba(12, 13, 15, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* после прокрутки капсула сжимается и темнеет */
html body div#argent-root .header.header.is-solid { max-width: 1080px; }
html body div#argent-root .header.header.is-solid:before { background: rgba(12, 13, 15, 0.86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 34px rgba(0, 0, 0, 0.45); }
html body div#argent-root .header.header .header__bar { padding-inline: clamp(18px, 2.2vw, 30px); max-width: none; }
html body div#argent-root .header.header .header__brand { opacity: 1; transform: none; }
html body div#argent-root .lq-nav a { padding: 7px 12px; margin: 0 -6px; border-radius: 999px; transition: background 0.2s ease, color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { html body div#argent-root .lq-nav a:hover { background: rgba(255, 255, 255, 0.08); } }
@media (max-width: 760px) {
  :root { --pill-gap: 8px; }
  html body div#argent-root .header.header { height: 52px; }
}

/* ---------- первый экран ---------- */
html.agm body div#argent-root.mc .hero.mc-hero {
  margin: var(--pill-gap) var(--pill-gap) 0; min-height: 0; height: max(440px, calc(100svh - var(--pill-gap) - var(--peek)));
  border-radius: var(--card-r); isolation: isolate;
}
html.agm body div#argent-root.mc .hero.mc-hero .mc-hero__kicker { top: calc(56px + var(--pill-gap) + 26px) !important; left: clamp(20px, 2.6vw, 40px) !important; }
html.agm body div#argent-root.mc .hero.mc-hero .hero__mark { bottom: clamp(26px, 6vh, 64px) !important; }

/* внутренние страницы: меню слева, знак по центру, корзина справа — даже если меню скрыто */
html body div#argent-root .header.header .header__brand { grid-column: 2; }
html body div#argent-root .header.header .header__cart { grid-column: 3; }
html body div#argent-root .header.header .header__menu, html body div#argent-root .header.header .lq-hleft { grid-column: 1; }
@media (min-width: 1024px) {
  html body div#argent-root.is-inner .header.header .header__menu { display: inline-flex; }
}

/* светлые страницы документов: светлая капсула */
html body div#argent-root:not(.mc) .header.header:before,
html body div#argent-root:not(.mc) .header.header.is-solid:before {
  background: rgba(246, 246, 244, 0.82); border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* карточки товаров: мягкие углы */
html body div#argent-root .card .card__media { border-radius: clamp(14px, 1.4vw, 22px) !important; overflow: hidden; isolation: isolate; }
html body div#argent-root .card.is-skeleton .card__media { border-radius: clamp(14px, 1.4vw, 22px); }

/* ---------- хромовые карточки и кнопки (sheen.js) ---------- */
html body div#argent-root .card .card__media {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
html body div#argent-root .card .card__media > .chr-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 1;
}
html body div#argent-root .card.chr-has-alt:hover .card__media > .chr-alt {
  opacity: 1;
  transform: none;
}
.chr-glint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s ease;
  mix-blend-mode: screen;
  background: radial-gradient(90% 70% at var(--mx, 50%) var(--my, 0%), rgba(235, 240, 250, 0.26), rgba(235, 240, 250, 0) 55%);
}
.chr-glint::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--ang, 0deg),
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.12) 14%,
    rgba(160, 168, 180, 0.08) 38%,
    rgba(255, 255, 255, 0.55) 52%,
    rgba(255, 255, 255, 0.1) 66%,
    rgba(255, 255, 255, 0.95)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.chr-glint::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.07) 44%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.07) 56%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 160% 0;
}
.card.chr-on .chr-glint {
  opacity: 1;
}
.card.chr-on .chr-glint::after {
  animation: chrSweep 1.1s cubic-bezier(0.5, 0, 0.3, 1) both;
}
@keyframes chrSweep {
  from { background-position: 160% 0; }
  to { background-position: -60% 0; }
}
@media (hover: none) {
  .card.chr-on .chr-glint { animation: chrFade 1.6s ease forwards; }
  @keyframes chrFade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
}

.chr-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition-property: translate, background, border-color, color, box-shadow !important;
  transition-duration: 0.35s !important;
  transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1) !important;
}
.chr-sw {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: difference;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%) no-repeat;
  background-size: 260% 100%;
  background-position: 160% 0;
  opacity: 0.55;
}
.chr-btn.chr-hit .chr-sw {
  animation: chrSweep 0.9s cubic-bezier(0.5, 0, 0.3, 1) both;
}
/* «Коллекция» на первом экране: при наведении — хромовая заливка, блик идёт за курсором */
html body #argent-root.mc .mc-pill.chr-btn:hover,
html body #argent-root.mc .mc-pill.chr-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(100deg, #8d939b 0%, #e9ecef 20%, #ffffff calc(var(--bx, 50%) - 6%), #c9cdd2 var(--bx, 50%), #f5f6f7 calc(var(--bx, 50%) + 10%), #7f858d 92%, #b8bcc2 100%);
  color: #0b0c0e;
}
