/* ============================================================================
   SLIDE-2.CSS — Почему я (Figma node 81:27, 1932×784)
   Source of truth: CLAUDE.md Phase 2 Figma Design Context
   ============================================================================ */

.slide-2 {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 784px;
  background-color: var(--color-black);
  background-image: url('../img/why-me-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* ── Layer 1: full background image ────────────────────────────────────── */
.slide-2__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ── Layer 2: right photo block ────────────────────────────────────────── */
.slide-2__photo-block {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 550px;
  height: 100%;
  background-color: var(--color-black);
  z-index: 1;

  margin-left: 135px;
}

.slide-2__photo {
  position: absolute;
  width: 508px;
  object-fit: cover;
  padding: 0 10px;
}

/* ── Layer 3: content block (orange bar + texts) ───────────────────────── */
.slide-2__content {
  background-color: black;
  position: relative;
  width: 646px;
  height: 784px;
  overflow: hidden;
  z-index: 25;
}

.slide-2__orange-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 130px;
  height: 100%;
  background-color: var(--color-orange);
  z-index: 1;
}

.slide-2__heading {
  position: absolute;
  left: 61px;
  top: 69px;
  width: 379px;
  margin: 0;
  font-family: var(--font-oswald);
  font-size: 64px;
  font-weight: 400;
  line-height: 65px;
  color: var(--color-white);
  z-index: 2;
}

.slide-2__typing {
  position: absolute;
  left: 55px;
  top: 283px;
  width: 440px;
  margin: 0;
  font-family: var(--font-surfer);
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  color: var(--color-white);
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.slide-2__typing-label {
  flex-shrink: 0;
  color: black;
}

.slide-2__typing-body {
  flex: 1;
  min-width: 0;
}

.typing-text {
  display: inline;
}

.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--color-white);
  animation: typing-cursor-blink 0.7s step-end infinite;
}

@keyframes typing-cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.slide-2__desc {
  position: relative;
  left: 162px;
  top: 464px;
  width: 478px;
  margin: 0;
  font-family: var(--font-surfer);
  font-size: 22px;
  font-weight: 400;
  line-height: 30px;
  color: var(--color-white);
  z-index: 2;
  max-width: 60%;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .slide-2__photo-block {
    margin-left: 0;
  }
  .slide-2__photo {
    padding: 0 20px 0 0;
  }
  
}
@media (max-width: 960px) {
  .slide-2__content {
    width: fit-content;
  }
  .typing-section {
    width: 500px;
  }

  
  .slide-2__content {
    padding-left: 80px;
  }
  .slide-2__orange-bar {
    width: 85px;
  }
  .slide-2__heading {
    left: 16px;
  }
  .slide-2__typing {
    left: 10px;
    width: 400px;
  }
  .slide-2__desc {
    max-width: 85%;  
    left: 20px;
    top: 422px;
  }
}

@media (max-width: 768px) {
  .slide-2__photo-block {
    display: none;
  }
  .slide-2__content {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .slide-2__heading {
    letter-spacing: 2px;
    font-size: 43px;
  }
  .slide-2__I-lett,
  .slide-2__G-lett {
    color: black;
  }
  .slide-2__I-lett {
    left: -2px;
    position: relative;
  }
  .slide-2__G-lett {
    left: 1.5px;
    margin-right: 2px;
    position: relative;
  }
  .slide-2__typing-body {
    max-width: 220px;
  }
  .slide-2__desc {
    top: 390px;
  }
}
