/* Stocks block — living VED promo cards */
.stocks-block .stock-item:not(.dark) {
  background:
    radial-gradient(ellipse 55% 60% at 85% 70%, rgba(125, 222, 168, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 40% at 10% 15%, rgba(255, 255, 255, 0.1), transparent 55%),
    linear-gradient(145deg, #0f3d28 0%, #1b7a4c 48%, #14603c 100%);
  border: 1px solid rgba(125, 222, 168, 0.22);
  box-shadow: 0 18px 40px -18px rgba(8, 32, 22, 0.65);
  isolation: isolate;
}

.stocks-block .stock-item:not(.dark)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("/static/demo-z1/brand/form-pattern.svg"),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0);
  background-size: 200px 200px, 16px 16px;
  opacity: 0.85;
  animation: stockPatternDrift 26s linear infinite;
}

.stocks-block .stock-item:not(.dark)::after {
  content: "";
  position: absolute;
  width: 48%;
  height: 70%;
  right: -8%;
  top: -18%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(125, 222, 168, 0.28) 0%, transparent 68%);
  filter: blur(10px);
  animation: stockGlowFloat 11s ease-in-out infinite alternate;
}

.stocks-block .stock-item:not(.dark) .stock-item__img.stock-item__background {
  opacity: 0.22;
  mix-blend-mode: soft-light;
  filter: hue-rotate(95deg) saturate(0.7);
}

.stocks-block .stock-item:not(.dark) .stock-item__img.main {
  z-index: 1;
}

.stocks-block .stock-item:not(.dark) .stock-item__img.main img {
  width: min(46%, 420px);
  max-height: 92%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
  animation: stockHeroFloat 7s ease-in-out infinite alternate;
  transform-origin: 80% 90%;
}

.stocks-block .stock-item:not(.dark) .stock-item__content {
  position: relative;
  z-index: 2;
}

.stocks-block .stock-item:not(.dark) .stock-item__content__time {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #123528;
  backdrop-filter: blur(6px);
}

.stocks-block .stock-item:not(.dark) .stock-item__content__btn.btn.fourth,
.stocks-block .stock-item:not(.dark) .stock-item__content__btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stocks-block .stock-item:not(.dark):hover .stock-item__content__btn {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* VED offer: two columns, art never covers the copy */
.stocks-block .stock-item.stock-item--ved {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.9fr);
  align-items: stretch;
  padding: 0;
  min-height: 340px;
}

.stocks-block .stock-item.stock-item--ved::after {
  display: none;
}

.stocks-block .stock-item.stock-item--ved .stock-item__content {
  padding: 36px 28px 32px 40px;
  min-height: 340px;
  width: 100%;
  max-width: none;
  gap: 18px;
}

.stocks-block .stock-item.stock-item--ved .stock-item__content__text {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}

.stocks-block .stock-item.stock-item--ved .stock-item__content__text__title {
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.stocks-block .stock-item.stock-item--ved .stock-item__content__btn {
  width: fit-content;
  min-width: 220px;
}

.stocks-block .stock-item.stock-item--ved .stock-item__img.stock-item__filter,
.stocks-block .stock-item.stock-item--ved .stock-item__img.stock-item__background {
  display: none;
}

.stocks-block .stock-item.stock-item--ved .stock-item__img.main {
  position: relative;
  inset: auto;
  left: auto;
  bottom: auto;
  width: 100%;
  height: auto;
  min-height: 100%;
  padding: 18px 18px 18px 4px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  z-index: 1;
  box-sizing: border-box;
}

.stocks-block .stock-item.stock-item--ved .stock-item__img.main img {
  width: 100%;
  height: 100%;
  min-height: 304px;
  max-height: none;
  object-fit: cover;
  object-position: 48% 40%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  filter: none;
  animation: none;
  transform: none;
}

@keyframes stockPatternDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 200px 100px, 16px 0; }
}

@keyframes stockGlowFloat {
  from { transform: translate(0, 0) scale(1); opacity: 0.65; }
  to { transform: translate(-12%, 18%) scale(1.15); opacity: 1; }
}

@keyframes stockHeroFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .stocks-block .stock-item:not(.dark)::before,
  .stocks-block .stock-item:not(.dark)::after,
  .stocks-block .stock-item:not(.dark) .stock-item__img.main img {
    animation: none;
  }
}

@media (max-width: 992px) {
  .stocks-block .stock-item.stock-item--ved {
    grid-template-columns: 1fr;
    grid-template-rows: 240px auto;
    min-height: 0;
  }
  .stocks-block .stock-item.stock-item--ved .stock-item__img.main {
    grid-row: 1;
    padding: 0;
    min-height: 0;
    height: 240px;
  }
  .stocks-block .stock-item.stock-item--ved .stock-item__img.main img {
    min-height: 0;
    height: 240px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    object-position: 48% 38%;
  }
  .stocks-block .stock-item.stock-item--ved .stock-item__content {
    grid-row: 2;
    min-height: 0;
    padding: 22px 20px 24px;
  }
  .stocks-block .stock-item.stock-item--ved .stock-item__content__text {
    max-width: none;
  }
  .stocks-block .stock-item.stock-item--ved .stock-item__content__btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .stocks-block .stock-item:not(.dark)::after {
    width: 70%;
    opacity: 0.8;
  }
  .stocks-block .stock-item.stock-item--ved {
    grid-template-rows: 220px auto;
  }
  .stocks-block .stock-item.stock-item--ved .stock-item__img.main {
    display: flex;
    height: 220px;
  }
  .stocks-block .stock-item.stock-item--ved .stock-item__img.main img {
    height: 220px;
    object-position: 46% 36%;
  }
}
