@media (max-width: 980px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  .bg-stripes {
    top: 195px;
    transform: translate(-50%, -50%);
    width: min(460px, 94vw);
  }

  .left-widgets,
  .right-widgets {
    padding: 0;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .social-icons-wrap {
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }

  .cert-links,
  .skill-chips {
    justify-content: center;
  }

  .quote-block {
    text-align: center;
  }

  .portrait-container {
    order: -1;
    align-self: center;
  }

  .section-grid-2 {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    background: var(--ink-dark);
    flex-direction: column;
    padding: 18px;
    border-radius: 24px;
    gap: 14px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

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

@media (max-width: 480px) {
  .hero {
    padding: 20px 18px 36px;
  }

  .headline-row {
    flex-direction: column;
    gap: 10px;
  }

  .hero-title {
    font-size: 1.85rem;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .btn-lets-talk {
    display: none;
  }

  .portrait-frame {
    width: 255px;
    height: 315px;
  }

  .bg-stripes {
    top: 165px;
    width: min(380px, 92vw);
  }

  .social-btn {
    width: 32px;
    height: 32px;
  }

  .accent-spark {
    display: none;
  }
}
