/* Стили бургер-меню */
.burger-icon {
  display: none;
  cursor: pointer;
  padding: 15px;
  z-index: 100;
}

.burger-line {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #141C3A;
  margin: 5px 0;
  transition: transform 0.3s ease;
}

.mobile-menu {
  display: none;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.burger-menu:not([open]) .mobile-menu {
  display: none;
}

.mobile-contact{
  display: none;
}



.desktop-menu {
  height: 126px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-shadow: 5px 4px 16px 4px rgba(0, 0, 0, 0.15);

}


/* МЕДИАЗАПРОСЫ ДЛЯ РЕСПОНСИВНОСТИ */
@media screen and (max-width:768px) {
  nav {
    flex-direction: column;
    align-items: center;
    position: sticky !important;
    box-shadow: 5px 4px 16px 4px rgba(0, 0, 0, 0.15);
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 1.852vh 0;
    justify-content: center;
  }

  .desktop-menu {
    display: none;
  }




  nav ul .color-black {
    margin: 0;
    text-align: center;
    color: #141c3a;
    padding: 0;
    font-size: 3.47vh;
  }

  .contact-button-container {
    width: 100%;
    padding: 3.926vh 0;
    display: flex;
    justify-content: center;
  }



  .contact-button {
    padding: 4px 16px;
    font-size: 0.926vh;
  }

  .contact-button-text {
    font-family: "TildaSans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: inherit;
  }

  #skills .big-header {
    margin: 5.556vh 0;
  }

  #form .big-header {
    text-transform: none;
    font-size: 3.611vh;
  }

  .big-header {
    padding: 0;
    margin: 5.925vh 0 !important;
    font-family: "TildaSans", sans-serif;
    font-size: 2.5vh;
    font-weight: 700;
    line-height: 2.5vh;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
  }

  .main-desc {
    width: 95%;
    margin: 2.13vh 0 0 0;
    padding: 0;
  }

  .desc-font {
    font-family: "TildaSans", sans-serif;
    font-size: 2.778vh;
    font-weight: 400;
    line-height: 2.778vh;
    text-align: center;
    width: 90%;
  }

  .about-photo {
    width: 39.87vh;
    height: 59.87vh;
  }

  .about-desc {
    width: 100%;
    margin: 3.704vh 0 10.185vh 0;
    padding: 0;
  }

  .main-pic {
    max-width: 80vw;
    margin: 6.11vh 0;
    padding: 0;
  }

  .skills-table {
    width: 83%;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
  }

  .skills-card {
    width: auto;
    border-bottom: 1px solid #5dd9c8;
    border-left: none;
    padding: 3.704vh;
  }

  .skills-card-icon {
    width: 6.667vh;
    height: 6.667vh;
  }

  .skills-card:nth-last-child(1) {
    border-bottom: none;
  }

  .skills-card-header {
    padding: 0;
    margin: 2.31vh 0;
    font-family: "TildaSans", sans-serif;
    font-size: 3.333vh;
    font-weight: 700;
    line-height: 3.333vh;
    text-align: center;
  }

  .skills-card-text {
    font-size: 2.778vh;
  }

  .skills-card-list {
    font-size: 2.778vh;
  }

  #projects .big-header {
    margin: 6.481vh 0;
    padding: 0;
  }

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

  .projects-display>figure {
    width: 100%;
    height: 100%;
  }

  .projects-card {
    padding: 0;
    margin: 0;
    width: 80vw !important;
    height: 49.5vw !important;
    box-sizing: border-box;
    border: 3px solid #8063a6;
    border-radius: 12px;
  }

  .projects-button {
    padding: 1.926vh 6.926vh;
    margin: 5.95vh 0;
    border: 2px solid #ff9235;
    border-radius: 1.389vh;
  }

  .projects-button-text {
    font-family: "TildaSans", sans-serif;
    font-size: 2.315vh;
    font-weight: 700;
    line-height: 2.778vh;
    text-align: center;
    color: inherit;
  }

  .form-details {
    padding: 4.99vh 0;
  }

  .form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .form-sender-data {
    margin: 0;
    padding: 0;
    width: 100%;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .form-sender-data .form-input {
    max-width: 85%;
  }

  .form-field {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .form-pic {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .form-text-body .form-input {
    max-width: 85%;
    height: auto;
    margin: 0;
    box-sizing: border-box;
  }

  .form-text-body {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .form {
    margin: 0 5vw;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .form-submit {
    margin: 48px 0 0 0;
    padding: 0;
    width: 100%;
    border: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .reviews-photo img {
    width: 100%;
    object-fit: cover;
  }

  .reviews-photo {
    width: 50vw;
    height: 55vw;
    margin: 4.7222vh 0;
    padding: 0;
    border: 3px solid #5dd9c8;
    border-radius: 10px;
    overflow: hidden;
  }



  .reviews-text {
    font-size: 3.33vh;
  }

  .reviews-toggle-button .reviews-toggle-arrow {
    width: 3.2407vh;
  }

  .reviews-toggle-button {
    border-radius: 50%;
  }

  .letstalk-box {
    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .letstalk-header {
    font-size: 2.66vh;
  }

  .letstalk-text {
    font-size: 1.8519vh;
  }

  .letstalk-button-text {
    font-size: 1.8vh;
    line-height: 2.3148vh;
  }

  footer {
    width: 100%;
  }

  .form-sender-data .form-input,
  .form-text-body .form-input {
    display: block;
    width: 85%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
    resize: none;
  }

  /* Показываем бургер-иконку только на мобильных */
  .burger-icon {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
  }

  /* Анимация бургер-иконки при открытии */
  .burger-menu[open] .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger-menu[open] .burger-line:nth-child(2) {
    opacity: 0;
  }

  .burger-menu[open] .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Показываем мобильное меню при открытии */
  .burger-menu[open] .mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .mobile-menu ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-menu .nav-button {
    display: block;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }

  .mobile-menu .contact-button-container {
    margin-top: 20px;
    width: 100%;
  }
}