#openFormBtn, #openFormBtn1{
    justify-content: flex-end;
    font-family: 'Arial';
    font-variant: small-caps;
    color: #ffffff;
    font-size: 20px;
    padding: 10px;
    margin-top: 1px;
    background-color: rgba(23, 23, 23, 0.838);
    border-radius: 10px 10px;
}


 button#openFormBtn {
    justify-content: flex-end;
    font-family: 'Arial';
    font-variant: small-caps;
    color: #ffffff;
    font-size: 20px;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 1px;
    background-color: rgba(23, 23, 23, 0.838);
    border-radius: 10px 10px;
    cursor: pointer;
  }

  /* Модальное окно */
   .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    backdrop-filter: blur(10px);
    background: #ffffffb8;
    padding: 1rem;
    border-radius: 0.7rem;
    width: 80%;
    max-width: 380px;
    max-height: 80vh;
    overflow-y: auto;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }

  input, textarea, select {
    padding: 0.6rem;
    font-size: 0.95rem;
    border-radius: 0.4rem;
    background: #ffffff;
    border-color: #000000;
    border-width: thin;
    border-style: solid;
    color: #000000;
  }

  input:focus, textarea:focus, select:focus {
    border-color: #4caf50;
    outline: none;
  }

  ::placeholder {
    color: #888;
  }

  fieldset {
    border: 2px solid #555;
    padding: 1rem;
    border-radius: 0.5rem;
  }

  legend {
    padding: 0 0.5rem;
    font-size: 1.1rem;
    color: #4caf50;
  }

  .closeBtn {
    background: #f8f8f8;
    padding: 0.5rem 1rem;
    border-color: #f40505;
    border-width: thin;
    border-style: solid;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #000000;
    transition: transform 0.2s ease;
}

.closeBtn:hover {
    transform: scale(1.15);
    box-shadow: 2px 2px 20px #f72020;
  }


/* Скрываем checkbox */
#burger-toggle {
    display: none;
}

/* Кнопка-бургер */
.burger {
    width: 35px;
    height: 25px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Центральная полоска */
.burger span {
    width: 100%;
    height: 4px;
    background: #9a79b8d6;
    border-radius: 3px;
    transition: .3s;
    position: relative;
}

/* Верхняя и нижняя полоски */
.burger span::before,
.burger span::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background: #9a79b8d6;
    border-radius: 3px;
    transition: .3s;
}

/* Верхняя полоска */
.burger span::before {
    top: -10px;
}

/* Нижняя полоска */
.burger span::after {
    top: 10px;
}

/* ----------- Анимация бургер → крест ----------- */

#burger-toggle:checked + .burger span {
    background: transparent;
}

#burger-toggle:checked + .burger span::before {
    transform: rotate(45deg);
    top: 0;
}

#burger-toggle:checked + .burger span::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ----------- Меню ----------- */

.menu {
    position: absolute;
    top: 30px;
    right: 0;
    width: 200px;
    background: #9a79b8d6;
    text-decoration: none;
    color: rgb(43, 36, 36);
    font-size: 9px;
    text-align: center;
    font-family: "Press Start 2P", system-ui;
    border-radius: 10px;

    /* Скрыто по умолчанию */
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s, visibility .3s;
}
.menu:hover {
    transform: scale(1.15);
    color: #9e2b2bb8;
  }
.menu ul {
  display: flex;
  flex-flow: column nowrap;
  gap: 8px;
    list-style: none;
    padding: 0;
}

.menu li {
    margin:auto;
}

/* Показать меню, когда бургер нажат */
#burger-toggle:checked ~ .menu {
    visibility: visible;
    opacity: 1;
}


.socials {
    display: flex;
    gap: 40px;
}

/* Общий стиль кнопок */
.btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2a2e35;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.1);
}

/* Иконка */
.btn i {
    color: white;
    font-size: 22px;
    z-index: 2;
}

/* ПСЕВДОЭЛЕМЕНТ ДЛЯ ГРАДИЕНТА */
.btn::before {
    content: "";
    position: absolute;
    top: -100%;          /* находится СВЕРХУ */
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transition: top 0.4s ease;
    z-index: 1;
}

/* Градиенты для каждой кнопки */
.yt::before {
    background: linear-gradient(45deg, #e53e3e, #ffb100);
}

.in::before {
    background: linear-gradient(45deg, #ff0066, #ffbb00);
}

.tg::before {
    background: linear-gradient(45deg, #1cb5e0, #000851);
}

/* Анимация появления */
.btn:hover::before {
    top: 0;  /* спускается вниз и покрывает фон */
}

kn{
  display: flex;
  justify-content: center;
}