@media (max-width: 1195px) {
  .header-title {
    font-size: 3rem;
  }

  .header-descr {
    font-size: 1.7rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 1033px) {
  .header-title {
    font-size: 2.5rem;
  }
  
  .header-descr {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .header-btn {
    width: 300px;
  }
}

@media (max-width: 950px) {
  .header-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header-logo {
    margin-bottom: 30px;
    width: 200px;
  }

  .header-hero-left {
    width: 45%;
    text-wrap: wrap;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
}

  .header-hero {
    display: flex;
    overflow: hidden;
    height: auto;
    gap: 10px;
  }

  .header-hero-right {
    position: relative;
    width: 60%;
    min-height: 560px; /* Минимальная высота для декстопа */
}
  
  .header-hero-round {
    width: 500px;
    height: 500px;
    top: 50px;
  }
  
  .hero {
    width: 320px;
    height: 500px;
  }

  .about-me-box {
    flex-direction: column; /* Элементы друг под другом */
    height: auto;
    min-height: auto;
    margin-left: auto;  /* Центрирование */
    margin-right: auto; /
  }

  .about-me-img {
    width: 100%;
    height: auto; /* Высота по содержимому */
    max-height: 300px; /* Ограничение, чтобы не было слишком высоким */
    align-self: center; /* По центру */
    border-bottom-left-radius: 0; /* Убираем скругление снизу */
    border-top-left-radius: 30px; /* Скругляем сверху */
    border-top-right-radius: 30px;
  }

  .about-me-text {
    width: 100%;
    padding: 20px 25px 30px;
    text-align: left; /* Можно center для красоты */
  }

  .about-me-title {
    font-size: 1.2rem;
  }

  .about-me-description {
    font-size: 0.95rem;
  }

  .macbook-mockup {
  transform: scale(0.7);
  transform-origin: top center;
  }
            
  .input-group {
  flex-direction: column;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  
  .header {
    margin-bottom: 30px; /* ← Убрал отрицательный! */
  }

  .header-nav {
    margin-bottom: 0; /* ← Убрал отрицательный */
  }

  .header-logo {
    margin-bottom: 20px;
  }
  
  .header-nav-link {
    flex-direction: column;
  }

  .socials {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .header-hero {
    flex-direction: column;
    height: auto; /* ← Было 700px */
    min-height: auto;
    overflow: visible;
    gap: 20px;
  }

  .header-hero-left {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .header-title {
    padding-top: 0;
    font-size: 25px;
  }

  .header-descr {
    font-size: 15px;
    margin-bottom: 20px; /* ← Убрал отрицательный */
  }

  .hero-min {
    display: block;
    margin-bottom: 30px;
  }
  
  .hero-min img {
    max-width: 100%;
    height: auto;
  }
  
  .header-hero-right {
    display: none;
  }

  /* Добавил защиту main */
  .main {
    position: relative;
    z-index: 10;
    background: white;
    margin-top: 20px;
  }

  .hello-text {
    margin-bottom: 50px;
  }

  .korobov-name {
    font-size: 1.65rem;
    font-weight: 500;
    margin-bottom: 30px;
  }

  .repetitor {
    font-size: 1.4rem;
  }

  .spec {
    font-size: 1.3rem;
    font-weight: 200;
  }

  .regaly-photo-min {
    display: block;
    max-width: 300px;
    padding-left: 15%;
  }

  .regaly-photo {
    display: none;
  }

  .hello-regaly-box {
    min-height: 500px;
    width: 90vw;
  }

  .regaly-text {
    position: absolute;
    color: aliceblue;
    width: 80%;
    font-size: 1.2rem;
    line-height: 35px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
  }

  .achiv-block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card {
    text-align: center;
    width: 60%;
  }

.about-me-img {
  display:none
}

.about-me-img--min {
    display: block;
}

.swiper-button-next,
.swiper-button-prev {
    color: rgba(255,255,255,0.8);
    background: var(--main-color); 
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}
}

@media (max-width: 415px) {
  .regaly-text {
    position: absolute;
    color: aliceblue;
    width: 85%;
    font-size: 1.2rem;
    line-height: 27px;
    padding: 10px;
  }
}

@media (max-width: 373px) {
  .regaly-text {
    position: absolute;
    color: aliceblue;
    width: 90%;
    font-size: 1.2rem;
    line-height: 30px;
    padding: 5px;
  }
}