/* Современный UI: анимированный фон, стекло, без npm — Tailwind через CDN в base.html */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .page-bg__mesh,
  .page-bg__blob,
  .page-bg__shine,
  .page-bg__orb,
  .text-gradient-animated,
  .offer-glow-top {
    animation: none !important;
  }
  .monitor-bar,
  .monitor-scanline,
  .status-led {
    animation: none !important;
  }
  .animate-ping {
    animation: none !important;
  }
  .landing-hero__orb,
  .landing-hero__mesh,
  .landing-hero-in,
  .card-hover-rise {
    animation: none !important;
  }
  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ——— Глобальный анимированный фон ——— */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 45%, #f0f9ff 100%);
}

.page-bg__mesh {
  position: absolute;
  inset: -40%;
  opacity: 0.85;
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(14, 165, 233, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 60% at 70% 85%, rgba(168, 85, 247, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 40% at 25% 90%, rgba(59, 130, 246, 0.12), transparent 50%);
  animation: mesh-drift 22s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    transform: translate(-4%, 2%) scale(1.05) rotate(6deg);
  }
}

.page-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  animation: blob-orbit 16s ease-in-out infinite;
}

.page-bg__blob--1 {
  width: min(90vw, 36rem);
  height: min(90vw, 36rem);
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  top: -12%;
  left: -18%;
  animation-delay: 0s;
}

.page-bg__blob--2 {
  width: min(85vw, 32rem);
  height: min(85vw, 32rem);
  background: linear-gradient(145deg, #c084fc, #38bdf8);
  top: 35%;
  right: -20%;
  animation-delay: -5s;
  animation-duration: 19s;
}

.page-bg__blob--3 {
  width: min(80vw, 28rem);
  height: min(80vw, 28rem);
  background: linear-gradient(160deg, #34d399, #22d3ee);
  bottom: -15%;
  left: 20%;
  animation-delay: -9s;
  animation-duration: 21s;
}

@keyframes blob-orbit {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, 6%) scale(1.08);
  }
  66% {
    transform: translate(-3%, 3%) scale(0.96);
  }
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 30%, black 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 30%, black 15%, transparent 70%);
}

.page-bg__shine {
  position: absolute;
  inset: -150% -50%;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.2) 52%,
    transparent 58%
  );
  animation: shine-sweep 28s ease-in-out infinite;
  opacity: 0.35;
}

@keyframes shine-sweep {
  0% {
    transform: translateX(-20%) translateY(10%) rotate(12deg);
  }
  50% {
    transform: translateX(15%) translateY(-5%) rotate(12deg);
  }
  100% {
    transform: translateX(-20%) translateY(10%) rotate(12deg);
  }
}

.page-bg__orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  margin: -160px 0 0 -160px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  animation: orb-pulse 10s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* Контент поверх фона */
.site-content {
  position: relative;
  z-index: 1;
}

/* ——— Навигация и стекло ——— */
.glass-nav {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}

.glass-panel {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 20px 40px -12px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-glass {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 40px -8px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.section-frost {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.text-gradient {
  background: linear-gradient(120deg, #0f172a 0%, #2563eb 45%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-animated {
  background: linear-gradient(
    95deg,
    #0f172a,
    #2563eb,
    #7c3aed,
    #0891b2,
    #2563eb,
    #0f172a
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 7s linear infinite;
}

@keyframes gradient-flow {
  to {
    background-position: 200% center;
  }
}

.monitor-glow {
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.2),
    0 28px 56px -12px rgba(15, 23, 42, 0.25),
    0 0 80px -20px rgba(59, 130, 246, 0.35);
}

.offer-glow-top {
  background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4, #2563eb);
  background-size: 200% 100%;
  animation: offer-bar-flow 8s linear infinite;
}

@keyframes offer-bar-flow {
  to {
    background-position: 200% 0;
  }
}

@keyframes monitor-bar {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes monitor-scan {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  15% {
    opacity: 0.35;
  }
  85% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes monitor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.monitor-bar {
  transform-origin: bottom;
  animation: monitor-bar 2.4s ease-in-out infinite;
}

.monitor-bar:nth-child(1) {
  animation-delay: 0s;
}
.monitor-bar:nth-child(2) {
  animation-delay: 0.2s;
}
.monitor-bar:nth-child(3) {
  animation-delay: 0.4s;
}
.monitor-bar:nth-child(4) {
  animation-delay: 0.1s;
}
.monitor-bar:nth-child(5) {
  animation-delay: 0.35s;
}

.monitor-scanline {
  animation: monitor-scan 4s linear infinite;
}

.status-led {
  animation: monitor-blink 1.8s ease-in-out infinite;
}

.js-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.modal-surface {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ——— Интернет-магазин: минимализм, чёрные кнопки, градиентные акценты ——— */
.page-bg--shop {
  background: linear-gradient(165deg, #fafafa 0%, #ffffff 45%, #f4f4f5 100%);
}

.page-bg--shop .page-bg__blob {
  opacity: 0.2;
}

.page-bg--shop .page-bg__mesh {
  opacity: 0.4;
}

.btn-shop-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #0a0a0a 0%, #262626 55%, #171717 100%);
  color: #ffffff;
  font-weight: 600;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.35);
}

.btn-shop-primary:hover {
  opacity: 0.92;
}

.btn-shop-primary:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

.btn-shop-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid #171717;
  background: #ffffff;
  color: #171717;
  font-weight: 600;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.btn-shop-outline:hover {
  background: #171717;
  color: #ffffff;
}

.shop-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #171717;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.shop-input:focus {
  outline: none;
  border-color: #171717;
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.08);
}

.shop-input--textarea {
  min-height: 6rem;
  resize: vertical;
}

.shop-hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #312e81 42%, #5b21b6 100%);
}

/* ——— Лендинг: hero, карточки, акценты ——— */
.landing-hero {
  position: relative;
  isolation: isolate;
}

.landing-hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(129, 140, 248, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 45% at 80% 70%, rgba(167, 139, 250, 0.35), transparent 50%);
  animation: landing-mesh-pulse 14s ease-in-out infinite alternate;
}

@keyframes landing-mesh-pulse {
  0% {
    opacity: 0.28;
    transform: scale(1);
  }
  100% {
    opacity: 0.42;
    transform: scale(1.03);
  }
}

.landing-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  animation: landing-orb-float 18s ease-in-out infinite;
}

.landing-hero__orb--1 {
  width: min(28rem, 70vw);
  height: min(28rem, 70vw);
  top: -15%;
  right: -10%;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.55), rgba(79, 70, 229, 0.25));
  animation-delay: 0s;
}

.landing-hero__orb--2 {
  width: min(22rem, 55vw);
  height: min(22rem, 55vw);
  bottom: -10%;
  left: -5%;
  background: radial-gradient(circle at 70% 60%, rgba(167, 139, 250, 0.5), rgba(91, 33, 182, 0.2));
  animation-delay: -6s;
  animation-duration: 22s;
}

@keyframes landing-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(-3%, 4%) scale(1.06);
  }
  70% {
    transform: translate(2%, -2%) scale(0.98);
  }
}

@keyframes landing-fade-up {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-hero-in {
  animation: landing-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-hero-in--1 {
  animation-delay: 0.05s;
}
.landing-hero-in--2 {
  animation-delay: 0.12s;
}
.landing-hero-in--3 {
  animation-delay: 0.2s;
}
.landing-hero-in--4 {
  animation-delay: 0.28s;
}
.landing-hero-in--5 {
  animation-delay: 0.36s;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.22em;
}

.landing-kicker::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85));
}

.card-hover-rise {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

.card-hover-rise:hover {
  transform: translateY(-6px);
  box-shadow:
    0 22px 40px -16px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(99, 102, 241, 0.08);
}

.landing-section-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0a0a0a 0%, #334155 55%, #0f172a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.landing-step-num {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.5);
}

@media (min-width: 640px) {
  .landing-step-num {
    height: 3rem;
    width: 3rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.55);
  }
}

.landing-risk-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.landing-risk-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 60%);
  transition: opacity 0.35s ease;
}

.landing-risk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -18px rgba(15, 23, 42, 0.2);
}

.landing-risk-card:hover::before {
  opacity: 0.12;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.875rem;
  background: #ffffff;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.4);
  background: #f8fafc;
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.btn-hero-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ——— Project cards ——— */
.project-card.hidden,
.review-card.hidden {
  display: none;
}

.project-card.entering,
.review-card.entering {
  opacity: 0;
  transform: translateY(2rem);
  animation: project-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes project-card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

@keyframes services-blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, 4%) scale(1.06);
  }
  66% {
    transform: translate(-2%, 2%) scale(0.96);
  }
}

/* ——— Product card: дизайн + плавные анимации ——— */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(229, 229, 229, 0.85);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
  animation: product-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  will-change: transform;
}

@keyframes product-card-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:nth-child(1)  { animation-delay: 0.02s; }
.product-card:nth-child(2)  { animation-delay: 0.06s; }
.product-card:nth-child(3)  { animation-delay: 0.10s; }
.product-card:nth-child(4)  { animation-delay: 0.14s; }
.product-card:nth-child(5)  { animation-delay: 0.18s; }
.product-card:nth-child(6)  { animation-delay: 0.22s; }
.product-card:nth-child(7)  { animation-delay: 0.26s; }
.product-card:nth-child(8)  { animation-delay: 0.30s; }
.product-card:nth-child(9)  { animation-delay: 0.34s; }
.product-card:nth-child(10) { animation-delay: 0.36s; }
.product-card:nth-child(11) { animation-delay: 0.38s; }
.product-card:nth-child(12) { animation-delay: 0.40s; }

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(82, 82, 82, 0.35);
    box-shadow:
      0 22px 44px -18px rgba(15, 23, 42, 0.22),
      0 0 0 1px rgba(99, 102, 241, 0.06);
  }
}

.product-card__media-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fafafa 0%, #f4f4f5 100%);
}

.product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.45s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card__img--secondary {
  opacity: 0;
}

@media (hover: hover) {
  .product-card:hover .product-card__img--primary {
    transform: scale(1.06);
  }
  .product-card:hover .product-card__img--secondary {
    opacity: 1;
    transform: scale(1.04);
  }
}

.product-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3a3a3;
  background: linear-gradient(135deg, #fafafa 0%, #f4f4f5 100%);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

@media (hover: hover) {
  .product-card:hover .product-card__overlay {
    opacity: 1;
  }
}

.product-card__badges {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: calc(100% - 5rem);
  pointer-events: none;
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .product-card:hover .product-card__badge {
    transform: translateY(-1px);
  }
}

.product-card__badge--new {
  background: rgba(255, 255, 255, 0.95);
  color: #171717;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card__badge--hit {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
}

.product-card__badge--top {
  background: #0a0a0a;
  color: #ffffff;
}

.product-card__badge--featured {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
}

.product-card__discount {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 0.5rem;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 6px 16px -4px rgba(239, 68, 68, 0.5);
  pointer-events: none;
}

.product-card__unavailable {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1rem 1.05rem;
}

.product-card__brand {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #737373;
}

.product-card__title {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #171717;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.45em;
}

.product-card__title a {
  color: inherit;
  transition: color 0.2s ease;
}

.product-card__title a:hover {
  color: #4f46e5;
}

.product-card__sku {
  margin-top: 0.25rem;
  font-size: 11px;
  color: #a3a3a3;
  font-variant-numeric: tabular-nums;
}

.product-card__footer {
  margin-top: auto;
  padding-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.product-card__pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 1.5rem;
}

.product-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.product-card__price-new {
  font-size: 1.05rem;
  font-weight: 700;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.product-card__price-old {
  font-size: 0.75rem;
  font-weight: 500;
  color: #a3a3a3;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.product-card__cta {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.product-card__qty {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 2.625rem;
  padding: 0 0.25rem;
  border-radius: 0.625rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #171717;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.product-card__qty:focus {
  outline: none;
  border-color: #171717;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.08);
}

.product-card__qty::-webkit-inner-spin-button,
.product-card__qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-card__qty {
  -moz-appearance: textfield;
}

.product-card__add {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.625rem;
  padding: 0 0.85rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #0a0a0a 0%, #262626 55%, #171717 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.15s ease;
}

.product-card__add:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.42);
}

.product-card__add:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

.product-card__add:active {
  transform: scale(0.97);
}

.product-card__add-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card__add:hover .product-card__add-icon {
  transform: translateX(2px) rotate(-6deg);
}

.product-card__unavailable-msg {
  padding: 0.65rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #737373;
  background: #f5f5f5;
  border-radius: 0.625rem;
}

@media (max-width: 380px) {
  .product-card__add span {
    display: none;
  }
  .product-card__add {
    padding: 0 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__img,
  .product-card__overlay,
  .product-card__badge,
  .product-card__add,
  .product-card__add-icon {
    animation: none !important;
    transition: none !important;
  }
}

/* ——— Pagination: красивая адаптивная пагинация ——— */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.pagination__pages {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .pagination__pages {
    display: flex;
  }
}

.pagination__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  color: #404040;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  user-select: none;
}

@media (hover: hover) {
  a.pagination__btn:hover {
    transform: translateY(-1px);
    border-color: #171717;
    color: #171717;
    box-shadow: 0 8px 18px -10px rgba(15, 23, 42, 0.25);
  }
}

a.pagination__btn:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

a.pagination__btn:active {
  transform: scale(0.97);
}

.pagination__btn--icon {
  min-width: 2.5rem;
  padding: 0 0.75rem;
}

.pagination__btn--active {
  background: linear-gradient(135deg, #0a0a0a 0%, #262626 55%, #171717 100%);
  border-color: transparent;
  color: #ffffff;
  cursor: default;
  box-shadow:
    0 10px 22px -10px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.pagination__btn--disabled {
  border-color: #f0f0f0;
  background: #fafafa;
  color: #c2c2c2;
  cursor: not-allowed;
  box-shadow: none;
}

.pagination__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  a.pagination__btn[rel='prev']:hover .pagination__icon {
    transform: translateX(-2px);
  }
  a.pagination__btn[rel='next']:hover .pagination__icon {
    transform: translateX(2px);
  }
}

.pagination__btn-label {
  display: none;
}

@media (min-width: 640px) {
  .pagination__btn-label {
    display: inline;
  }
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 2.5rem;
  padding: 0 0.125rem;
  color: #a3a3a3;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  user-select: none;
}

.pagination__info-mobile {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0 0.75rem;
  height: 2.5rem;
  align-self: center;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #404040;
}

@media (min-width: 640px) {
  .pagination__info-mobile {
    display: none;
  }
}

.pagination__info-mobile .pagination__info-current {
  font-size: 1rem;
  color: #0a0a0a;
}

.pagination__info-mobile .pagination__info-sep {
  color: #d4d4d4;
}

.pagination__info-mobile .pagination__info-total {
  color: #737373;
}

@media (prefers-reduced-motion: reduce) {
  .pagination__btn,
  .pagination__icon {
    transition: none !important;
    transform: none !important;
  }
}

/* ——— Catalog infinite scroll: loader, sentinel, end-marker ——— */
.catalog-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #525252;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.25s ease;
}

.catalog-loader.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.catalog-loader__spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #e5e5e5;
  border-top-color: #171717;
  animation: catalog-spin 0.75s linear infinite;
}

@keyframes catalog-spin {
  to {
    transform: rotate(360deg);
  }
}

.catalog-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

.catalog-end {
  display: none;
  margin: 2.5rem auto 0;
  padding: 0.85rem 1.25rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  border-radius: 999px;
  background: #fafafa;
  border: 1px dashed #e5e5e5;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #737373;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-end.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .catalog-loader,
  .catalog-loader__spinner,
  .catalog-end {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ——— Price-on-request: цена и CTA-кнопка ——— */
.product-card__price--request {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-card__price-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.625rem;
  padding: 0 0.9rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 55%, #7c3aed 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 8px 22px -10px rgba(79, 70, 229, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.15s ease;
  cursor: pointer;
}

.product-card__price-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px -10px rgba(79, 70, 229, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.product-card__price-btn:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.product-card__price-btn:active {
  transform: scale(0.97);
}

.product-card__price-btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card__price-btn:hover .product-card__price-btn-icon {
  transform: translateY(-1px) rotate(-4deg);
}

.btn-price-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 55%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 12px 26px -10px rgba(79, 70, 229, 0.5);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.15s ease;
}

.btn-price-request:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -10px rgba(79, 70, 229, 0.58);
}

.btn-price-request:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.btn-price-request:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .product-card__price-btn,
  .product-card__price-btn-icon,
  .btn-price-request {
    transition: none !important;
    transform: none !important;
  }
}
