/* v3 section: requirements. Figma desktop 11203:16594 (variants Default 11203:14871 -> Variant2 11203:14924), mobile 11295:9977. */

.v3-requirements {
  --rq-line: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0 3px, transparent 3px 5px);
  min-height: 660px;
  overflow: hidden;
  background: var(--v3-dark);
  color: var(--v3-white);
  isolation: isolate;
}

/* ---- background layers ---- */
.v3-requirements__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.v3-requirements__photo { position: absolute; inset: 0; transform: scaleX(-1); }   /* Figma mirrors the photo */
.v3-requirements__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 10%;
}
.v3-requirements__shade { position: absolute; }
.v3-requirements__shade--left {
  inset: 0 auto 0 0;
  width: 576px;
  background: linear-gradient(to right, #050505, rgba(5, 5, 5, 0));
}
.v3-requirements__shade--bottom {
  inset: 332px 0 auto;
  height: 491px;
  background: linear-gradient(to top, #050505, rgba(5, 5, 5, 0));
}
.v3-requirements__vlines {
  position: absolute;
  inset: 0 50%;
  width: min(100%, 1440px);
  transform: translateX(-50%);
}
.v3-requirements__vlines span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rq-line); }
.v3-requirements__vlines span:nth-child(1) { left: 3.472%; }
.v3-requirements__vlines span:nth-child(2) { left: 26.94%; }
.v3-requirements__vlines span:nth-child(3) { left: 50%; }
.v3-requirements__vlines span:nth-child(4) { left: 73.06%; }
.v3-requirements__vlines span:nth-child(5) { left: 96.528%; }

/* ---- content ---- */
.v3-requirements__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  min-height: calc(660px - 2 * var(--v3-section-pad));
}
.v3-requirements__title-block { display: grid; max-width: 514px; }
.v3-requirements__heading { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 40px; }
.v3-requirements__heading--intro { display: none; }
.v3-requirements__label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: var(--v3-fs-caption);
  font-weight: 700;
  line-height: var(--v3-lh-tight);
  text-transform: uppercase;
}
.v3-requirements__label::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--v3-primary);
}
.v3-requirements__title { color: var(--v3-gray-50); }
.v3-requirements__muted { color: var(--v3-gray-100); }

.v3-requirements__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.v3-requirements__card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 114px;
  padding: 24px;
  border: 1px solid var(--v3-white-15);
  border-radius: var(--v3-radius-md);
  background: var(--v3-white-10);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.v3-requirements__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--v3-primary);
  border-radius: 50%;
}
.v3-requirements__icon img { width: 28px; height: 28px; max-width: none; }
.v3-requirements__text {
  color: var(--v3-gray-50);
  font-weight: 600;
  line-height: var(--v3-lh-body-m);
}

/* ---- desktop entrance: Default (intro) -> Variant2 (final), 1.5s ease-out ---- */
@media (min-width: 1025px) {
  .v3-requirements__heading--intro { display: flex; opacity: 0; transition: opacity 1.5s ease-out; }
  .v3-requirements__heading--final { transition: opacity 1.5s ease-out; }
  .v3-requirements__cards { transition: transform 1.5s ease-out; }
  .v3-requirements.is-armed:not(.is-played) .v3-requirements__heading--intro { opacity: 1; }
  .v3-requirements.is-armed:not(.is-played) .v3-requirements__heading--final { opacity: 0; }
  .v3-requirements.is-armed:not(.is-played) .v3-requirements__cards { transform: translateX(75.8%); }
}

@media (max-width: 1024px) {
  .v3-requirements { min-height: 0; }
  .v3-requirements__inner { min-height: 0; gap: 72px; }
  .v3-requirements__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-requirements__shade--left { width: 60%; }
}

/* ---- mobile (430 frame): photo band at y=109, cards bottom-aligned ---- */
@media (max-width: 768px) {
  .v3-requirements { min-height: 936px; }
  .v3-requirements__inner { min-height: calc(936px - 2 * var(--v3-section-pad)); gap: 24px; }
  .v3-requirements__heading { gap: 12px; }
  .v3-requirements__label { min-height: 20px; }
  .v3-requirements__title-block { max-width: 330px; }   /* breaks the title like the mobile frame: "... работы / в такси" */
  .v3-requirements__photo { inset: 109px 0 auto; height: 637px; }
  .v3-requirements__img { inset: auto; left: -45.67%; top: 0.04%; width: 202.79%; height: 91.33%; object-position: 50% 50%; }
  .v3-requirements__shade--left { display: none; }
  .v3-requirements__shade--bottom { inset: 483px 0 auto; height: 208px; }
  .v3-requirements__bg::before {            /* dark band behind the title, fades into the photo */
    content: "";
    position: absolute;
    inset: 109px 0 auto;
    height: 169px;
    z-index: 1;
    background: linear-gradient(to bottom, #050505, rgba(5, 5, 5, 0));
  }
  .v3-requirements__vlines span { display: none; }
  .v3-requirements__vlines span:nth-child(1) { display: block; left: 16px; }
  .v3-requirements__vlines span:nth-child(5) { display: block; left: auto; right: 16px; }
  .v3-requirements__vlines { inset: 0; width: auto; transform: none; }
  .v3-requirements__cards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .v3-requirements__card { min-height: 0; }
  .v3-requirements__card:nth-child(3) { order: 4; }      /* mobile frame lists "car" before "no criminal record" */
  .v3-requirements__card:nth-child(4) { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-requirements__heading--intro,
  .v3-requirements__heading--final,
  .v3-requirements__cards { transition: none !important; }
}
