/* Сторінка «UX/UI Наставництво»: те, чого немає в site.css */

.proofs {
  position: relative;
  height: clamp(380px, 44vw, 560px);
}

.proof {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
  transition: transform 0.6s var(--ease-spring), z-index 0s 0.2s, filter 0.3s;
}

.proof img {
  border-radius: 14px;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  background: #fff;
}

.proof .frame-label {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(11, 11, 16, 0.82);
  color: var(--text);
}

.proof--linkedin {
  left: 0;
  top: 4%;
  width: 46%;
  transform: rotate(-5deg);
  z-index: 1;
}

.proof--google {
  right: 0;
  top: 0;
  width: 58%;
  transform: rotate(4deg);
  z-index: 2;
}

.proof--upwork {
  left: 16%;
  bottom: 0;
  width: 72%;
  transform: rotate(-1.5deg);
  z-index: 3;
}

.proof:hover,
.proof:focus-visible {
  z-index: 4;
  transform: rotate(0deg) scale(1.05);
  transition: transform 0.6s var(--ease-spring), z-index 0s;
}

.proofs:hover .proof:not(:hover) {
  filter: brightness(0.6);
}


/* ---------- Що ти отримаєш: компоненти ---------- */

.offer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.group {
  border-radius: var(--radius);
  border: 1px dashed rgba(162, 89, 255, 0.55);
  padding: 20px;
  display: grid;
  gap: 16px;
  align-content: start;
  background: rgba(162, 89, 255, 0.04);
}

.group h3 {
  margin: 0;
  font: 600 13px/1 var(--font-mono);
  color: var(--purple);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.3s, transform 0.4s var(--ease-spring), background-color 0.3s;
}

.item:hover {
  border-color: rgba(61, 255, 143, 0.4);
  background: var(--panel-2);
  transform: translateX(4px);
}

.check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  background: var(--green);
  display: grid;
  place-items: center;
}

.check svg {
  width: 14px;
  height: 14px;
  stroke: var(--canvas);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.5s var(--ease-out) calc(var(--i, 0) * 70ms + 0.3s);
}

.group.is-in .check svg {
  stroke-dashoffset: 0;
}


/* ---------- Адаптивність ---------- */

@media (max-width: 1024px) {
  .offer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .proofs {
    height: 118vw;
  }

  .proof--linkedin {
    width: 56%;
  }

  .proof--google {
    width: 66%;
    top: 6%;
  }

  .proof--upwork {
    left: 4%;
    width: 92%;
  }
}
