/* ============================================================
   Главная · кинематографичный герой, каталог-«ножны», сторителлинг
   ============================================================ */

/* ---------------- Герой ---------------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-bg .slide.is-active { opacity: 1; }
.hero-bg .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(8,11,14,.94) 0%, rgba(8,11,14,.78) 42%, rgba(8,11,14,.45) 100%); }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg .slide { transform: scale(1.06); transition: opacity 1.6s var(--ease), transform 9s linear; }
  .hero-bg .slide.is-active { transform: scale(1.14); }
}
.hero-bg.empty {
  background:
    radial-gradient(70% 80% at 78% 16%, rgba(21,88,156,.34), transparent 60%),
    radial-gradient(60% 60% at 12% 92%, rgba(59,138,230,.12), transparent 60%),
    linear-gradient(180deg, #0b0f13, #0a0d10);
}
.hero-bg.empty::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent);
}
.hero-knife {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%) rotate(7deg);
  height: 126%; width: auto; max-width: none; z-index: 0; pointer-events: none;
  opacity: .17; filter: grayscale(.35) brightness(1.12) drop-shadow(0 30px 70px rgba(0,0,0,.55));
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 96%);
  mask-image: linear-gradient(to left, #000 55%, transparent 96%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 940px; padding: 80px 0; }
.hero h1 { font-size: clamp(2.8rem, 8.4vw, 6.6rem); text-transform: uppercase; letter-spacing: .004em; font-weight: 700; margin: 20px 0 0; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(112%); animation: lineUp 1s var(--ease-out) forwards; }
.hero h1 .line:nth-child(1) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .24s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .36s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero h1 .accent { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--steel); max-width: 56ch; margin-top: 24px; opacity: 0; animation: fadeUp .9s var(--ease-out) .5s forwards; }
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp .9s var(--ease-out) .62s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-side { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .42em; font-size: .68rem; color: var(--steel-light); z-index: 2; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2; color: var(--steel-light); font-size: .64rem; text-transform: uppercase; letter-spacing: .3em; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue .ln { width: 1px; height: 48px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.scroll-cue .ln::after { content: ""; position: absolute; top: -60%; left: 0; width: 100%; height: 60%; background: linear-gradient(var(--brand-glow), transparent); animation: scrolldown 1.9s var(--ease) infinite; }
@keyframes scrolldown { to { top: 110%; } }

/* ---------------- Показатели (count-up) ---------------- */
.figures { border-bottom: 1px solid var(--hairline); }
.figures-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.figure { padding: 40px 28px; border-right: 1px solid var(--hairline); }
.figure:last-child { border-right: none; }
.figure .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; background: var(--metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.figure .num .suf { -webkit-text-fill-color: var(--brand-glow); color: var(--brand-glow); }
.figure .lbl { color: var(--steel); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 12px; }

/* ---------------- Преимущества ---------------- */
.advantages { padding: 96px 0; }
.adv-head { margin-bottom: 48px; }
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv {
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 36px 30px; position: relative; overflow: hidden; transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.adv::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brand-glow), transparent); opacity: 0; transition: opacity .4s var(--ease); }
.adv:hover { transform: translateY(-6px); border-color: rgba(59,138,230,.3); box-shadow: var(--shadow-lift); }
.adv:hover::before { opacity: 1; }
.adv-num { font-family: var(--font-display); font-size: .8rem; letter-spacing: .2em; color: var(--brand-glow); margin-bottom: 22px; }
.adv-ic { width: 54px; height: 54px; border-radius: var(--r); background: var(--brand-tint); color: var(--brand-glow); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 20px; box-shadow: inset 0 0 0 1px rgba(59,138,230,.2); }
.adv h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.12rem; margin-bottom: 10px; }
.adv p { color: var(--steel); font-size: .92rem; line-height: 1.7; }

/* ---------------- Каталог ---------------- */
.catalog-section { padding: 40px 0 60px; }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 0 38px; flex-wrap: wrap; }
.catalog-head .count { color: var(--steel-light); font-size: .9rem; font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }

.knife-card {
  position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.knife-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: rgba(59,138,230,.32); }
.knife-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent-grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: 4; }
.knife-card:hover::before { transform: scaleX(1); }

.knife-badges { position: absolute; top: 14px; left: 14px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.kbadge { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; font-weight: 600; padding: 5px 10px; border-radius: 3px; color: #fff; backdrop-filter: blur(4px); }
.kbadge.new { background: rgba(39,194,129,.9); }
.kbadge.hit { background: rgba(59,138,230,.92); }
.kbadge.sale { background: rgba(229,86,75,.92); }

.knife-figure { position: relative; aspect-ratio: 4/3; background: radial-gradient(120% 120% at 50% 0%, #1a2129, #0c1015); overflow: hidden; display: block; }
.knife-figure img { width: 100%; height: 100%; object-fit: contain; padding: 22px; filter: grayscale(.3) brightness(.9); opacity: .82; transform: scale(.96); transition: filter .55s var(--ease), opacity .55s var(--ease), transform .55s var(--ease); }
.knife-card:hover .knife-figure img { filter: none; opacity: 1; transform: scale(1.05); }
.knife-figure.empty { display: grid; place-items: center; }
.blade-mark { width: 66%; color: rgba(120,140,160,.3); transition: color .45s var(--ease); }
.knife-card:hover .blade-mark { color: var(--brand-glow); }
.knife-figure::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.08); pointer-events: none; transition: inset .45s var(--ease), border-color .45s var(--ease); }
.knife-card:hover .knife-figure::after { inset: 10px; border-color: rgba(59,138,230,.4); }

.knife-actions { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; gap: 10px; z-index: 3; transform: translateY(118%); transition: transform .42s var(--ease-out); background: linear-gradient(to top, rgba(10,13,16,.97) 55%, transparent); }
.knife-card:hover .knife-actions { transform: translateY(0); }
.knife-actions .btn { flex: 1; padding: 11px 14px; font-size: .74rem; }

.knife-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.knife-cat { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: .66rem; color: var(--brand-glow); margin-bottom: 9px; }
.knife-name { font-family: var(--font-display); font-size: 1.34rem; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 6px; }
.knife-name a { color: var(--ink); }
.knife-name a:hover { color: #fff; }
.knife-desc { color: var(--steel); font-size: .86rem; margin-bottom: 12px; }
.product-rating { display: flex; align-items: center; gap: 3px; color: var(--warn); font-size: .82rem; margin-bottom: 10px; }
.product-rating .reviews-count { color: var(--steel-light); margin-left: 4px; }
.knife-meta { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hairline-2); }
.knife-price .now { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.knife-price .was { display: block; font-size: .82rem; color: var(--steel-light); text-decoration: line-through; }
.knife-stock { font-size: .74rem; font-weight: 600; text-align: right; text-transform: uppercase; letter-spacing: .06em; }
.knife-stock.in { color: var(--ok); }
.knife-stock.low { color: var(--warn); }
.knife-touch-actions { display: none; gap: 10px; padding: 0 20px 20px; }
.knife-touch-actions .btn { flex: 1; padding: 11px; font-size: .74rem; }

@media (hover: none) {
  .knife-actions { display: none; }
  .knife-touch-actions { display: flex; }
  .knife-figure img { filter: none; opacity: 1; transform: none; }
}

.empty-catalog { text-align: center; padding: 90px 0; color: var(--steel-light); }
.empty-catalog i { font-size: 2.6rem; margin-bottom: 14px; }

/* ---------------- Наследие (editorial) ---------------- */
.heritage { padding: 60px 0; position: relative; }
.heritage-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.heritage-art { position: relative; aspect-ratio: 4/5; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 120% at 30% 10%, #1b232b, #0b0f13); display: grid; place-items: center; }
.heritage-art .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 12vw, 9rem); line-height: .9; text-align: center; background: var(--metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.heritage-art .big small { display: block; font-size: .16em; letter-spacing: .4em; color: var(--brand-glow); -webkit-text-fill-color: var(--brand-glow); margin-top: 18px; }
.heritage h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); text-transform: uppercase; margin: 14px 0 22px; }
.heritage p { color: var(--steel); line-height: 1.85; margin-bottom: 16px; max-width: 56ch; }
.heritage .h-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.heritage .h-list li { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: .95rem; }
.heritage .h-list i { color: var(--brand-glow); }

/* ---------------- CTA-полоса ---------------- */
.cta-band { margin: 40px 0 0; position: relative; overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.cta-band-inner { padding: 80px 0; text-align: center; position: relative; z-index: 2; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(21,88,156,.3), transparent 70%); z-index: 1; }
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); text-transform: uppercase; margin-bottom: 16px; }
.cta-band p { color: var(--steel); max-width: 50ch; margin: 0 auto 32px; }

@media (max-width: 900px) {
  .figures-grid { grid-template-columns: repeat(2, 1fr); }
  .figure:nth-child(2) { border-right: none; }
  .advantages-grid { grid-template-columns: 1fr; }
  .heritage-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-side { display: none; }
  .hero-knife { opacity: .09; right: -14%; }
}
@media (max-width: 560px) { .hero-knife { display: none; } }
