.project-next {
  padding: clamp(48px, 5vw, 80px) max(24px, calc((100vw - 1320px) / 2));
  background: #3a0126;
  color: #fbf6ef;
}

.project-next__link {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  direction: ltr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

@media (min-width: 768px) {
  .project-next__link[href="/project-yulia.html"] { direction: rtl; }
}

.project-next__copy { display: grid; justify-items: start; gap: clamp(10px, 1.35vw, 18px); direction: rtl; }
.project-next__eyebrow { color: #b0f800; font-size: clamp(15px, 1.2vw, 19px); font-weight: 600; }
.project-next h2 { margin: 0; max-width: 12ch; color: #fbf6ef; font-size: clamp(42px, 5.3vw, 78px); line-height: 1.07; letter-spacing: -.025em; }
.project-next__description { max-width: 36ch; color: #f1e1e9; font-size: clamp(18px, 1.45vw, 23px); line-height: 1.5; }
.project-next__action { display: inline-flex; align-items: center; gap: 15px; margin-top: clamp(4px, 1vw, 12px); padding-bottom: 8px; border-bottom: 2px solid #b0f800; color: #fbf6ef; font-size: clamp(17px, 1.3vw, 21px); font-weight: 600; }
.project-next__action span { display: inline-block; transition: transform .25s ease; }
.project-next__link:hover .project-next__action span { transform: translateX(-7px); }

.project-next__visual {
  display: block;
  min-width: 0;
  padding: clamp(6px, .8vw, 10px);
  border: 1px solid rgba(251,246,239,.25);
  border-radius: clamp(16px, 2vw, 28px);
  background: #fbf6ef;
  box-shadow: 0 30px 70px rgba(15,0,10,.28);
  transform: rotate(-2deg);
  transition: transform .35s ease, box-shadow .35s ease;
}
.project-next__visual img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: contain; border-radius: clamp(8px, 1vw, 14px); }
.project-next__link:hover .project-next__visual { transform: rotate(0deg) translateY(-6px); box-shadow: 0 38px 80px rgba(15,0,10,.4); }
.project-next--mockup .project-next__visual { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }
.project-next--mockup .project-next__visual img { height: auto; aspect-ratio: auto; border-radius: 0; }
.project-next--mockup .project-next__link:hover .project-next__visual { transform: translateY(-6px); box-shadow: none; }
.project-next__link:focus-visible { outline: 3px solid #b0f800; outline-offset: 12px; border-radius: 6px; }

@media (min-width: 1025px) {
  .project-next--mockup .project-next__copy { transform: translateY(clamp(-42px, -3vw, -28px)); }
}

@media (max-width: 767px) {
  .project-next { padding: 56px 24px 64px; }
  .project-next__link { grid-template-columns: minmax(0, 1fr); gap: 28px; direction: rtl; }
  .project-next h2 { max-width: none; font-size: clamp(42px, 11vw, 64px); }
  .project-next__description { font-size: 18px; }
  .project-next__visual { transform: rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .project-next__visual, .project-next__action span { transition: none; }
  .project-next__link:hover .project-next__visual { transform: none; }
  .project-next__link:hover .project-next__action span { transform: none; }
}
