body {
    min-height: 450px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999; 
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid black;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000; 
}
.popup h2 {
    font-size: 35px;
    margin-bottom: 10px;
}
.popup p {
    font-size: 20px;
    margin-bottom: 25px;
}
.popup a {
    background-color: #276622;
    padding: 10px;
    color: white;
    border-radius: 10px;
}

.hide {
    display: none;
}

.close {
    font-size: 45px;
    position: absolute;
    top: 0px;
    right: 10px;
    cursor: pointer;
}
      .loadingSpinner {
        display: none;
        border: 16px solid #f3f3f3;
        border-top: 16px solid #3498db;
        border-radius: 50%;
        width: 120px;
        height: 120px;
        animation: spin 2s linear infinite;
        position: fixed;
        left: 48%;
        top: 37%;
        margin-left: -60px;
        margin-top: -60px;
        z-index: 99;
      }
      .popUpButton {
        min-width: 120px;
        max-width: 200px;
        margin: 20px auto;
        text-align: center;
        display: block;
        padding: 10px 20px;
        background-color: #276622;
        border-radius: 8px;
        color: white;
        border: none;
        outline: none;
        cursor: pointer;
      }
      
      .modalBackgroundColor {
          background-color: #dfdfdf;
      }

      
      .modalAnimationIn {
        animation: scaleUp .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
        opacity:0;
      }
      
      .modalAnimationOut {
          animation: scaleDown 1s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
      }
      
      .modalBackgroundAnimationIn {
          animation: fadeIn .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
      }
      
      .modalBackgroundAnimationOut {
          animation: fadeOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
      }

      .modalBackground {
          position: fixed; 
          z-index: 100; 
          left: 0;
          top: 0;
          width: 100%;
          height: 100%; 
          overflow: auto;
          display: flex;
          align-items: center;
          justify-content: center;
      }
      
      .modalBackgroundShadow {
          background-color: rgb(0,0,0); 
          background-color: rgba(0,0,0,0.4);
      }
      
      .modalAudioContent {
          background-color: #fff4c4;
          /*margin: 50% auto; */
          border: 1px solid #888;
          max-width: 460px;
          height: 75px;
          display: flex;
          align-items: center;
          border-radius: 12px;
          text-align: center;
          font-family: "TildaSans", sans-serif;
          font-size: 22px;
      }
      
      .dotAnimation {
          clip-path: inset(0 1ch 0 0); /* Для работы анимации бегущих точек*/
          animation: l 1s steps(4) infinite;
      }
      
      .modalContent {
          background-color: #fbfbf9;
          margin: 15% auto; 
          border: 1px solid #888;
          max-width: 460px;
          text-align: center;
          font-family: "TildaSans", sans-serif;
          font-size: 22px;
      }
      .modalContent p {
          padding: 25px 0;
      }
      
      .modalWrapper {
          padding: 0 20px;
      }
      
      .modalImg {
          width: 100%;
          overflow: clip;
      }
      
      .modalHeader {
          padding-bottom: 15px;
          font-size: 30px;
          font-weight: 600;
          line-height: 35px;
      }
      
      .templateModalMessage {
          font-size: 22px;
      }
      
      .templateModalHeader {
        padding-top: 20px;
      }
      
      .templateModalSpan {
          text-align: start;
      }
      
      .modalButton {
          outline: none;
          border: 2px solid #222222;
          color: #222222;
          font-size: 20px;
          font-family: "TildaSans", sans-serif;
          font-weight: 700;
          padding: 5px 64px;
          border-radius: 100px;
          background-color: transparent;
          margin: 26px auto;
      }
      
      .modalButton:hover {
          cursor: pointer;
      }
      
      .modalButtonSave {
          outline: none;
          border: 2px solid #222222;
          color: #222222;
          font-size: 20px;
          font-family: "TildaSans", sans-serif;
          font-weight: 700;
          padding: 15px 25px;
          border-radius: 100px;
          background-color: transparent;
          margin: 26px auto;
      }
      
      .modalButtonSave:hover {
          cursor: pointer;
      }
      
      .modalButtonWrapper {
          display: flex;
          gap: 5px;
          justify-content: center;
      }
      
    .hiddenFileInput {
      opacity: 0;
      position: absolute;
      z-index: -1;
    }
    
    .fileInputWrapper {
      position: relative;
      display: inline-block;
      width: 100%;
      max-width: 210px;
      margin: 0 auto;
      text-align: center;
    }
    
    .fileInputLabel {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      padding: 15px 0;
      font-size: 20px;
      font-family: "TildaSans", sans-serif;
      font-weight: 700;
      color: #222222;
      border: 2px solid #222222;
      border-radius: 100px;
      background-color: transparent;
      cursor: pointer;
      margin: 26px 0;
      text-decoration: none;
    }
    
    .fileInputLabel:hover {
      cursor: pointer;
    }

      .modalInput {
          width: 90%;
          outline: none;
          border: 2px solid #222222;
          color: #222222;
          font-size: 18px;
          font-family: "TildaSans", sans-serif;
          font-weight: 500;
          padding: 5px;
          border-radius: 8px;
          margin: 5px 0;
      }
      
      textarea.shortTextarea {
          height: 23px;
          min-height:23px;
      }
      @keyframes spin {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
      }

      .block1 {
        margin: 25px auto;
        padding: 2px 10px 2px 10px;
        max-width: 580px;
        border-radius: 10px;
        background-color: #dfdfdf;
        font-size:18px;
        font-family: "Roboto", Arial, sans-serif;
      }

      .form1 {
        display: flex;
        flex-direction: column;
        background-color: #dfdfdf;
        border-radius: 10px;
        padding: 10px;
      }
      .form1__wrap,
      .form1__wrap-without-counter{
        display: flex;
        flex-direction: column;
      }
      .form1__wrap-label {
        display: flex;
        justify-content: space-between;
      }
      .form1__label {
        display: block;
        margin: 0px 0px 4px 6px;
      }
      .form1__input,
      .form1__select,
      .form1__textarea {
        margin-bottom: 15px;
        border-radius: 3px;
        padding: 8px;
        outline: none;
        border: 1px solid #404044;
        font-size: 17px;
      }
      form1__input:required {
          border: solid 1px red;
      }
      .form1__textarea {
        resize: vertical;
        height: 100px;
        min-height: 20px;
      }
      .form1__block1-textarea {
        resize: vertical;
        min-width: -webkit-fill-available;
        height: 20px;
        padding: 10px 8px;
        border: 1px solid #404044;
        border-radius: 3px;
        color: #404044;
      }
      .form1_input__wrapper {
         width: 100%;
         position: relative;
         margin: 15px 0;
         text-align: center;
      }
      .form1_input__file {
        opacity: 0;
        z-index: -1;
        top: 20px;
        position: absolute;
        max-width: 240px;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
      }
      .form1_input__file-button {
        width: 100%;
        max-width: 240px;
        height: 60px;
        background: #276622;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
        cursor: pointer;
        margin: 0 auto;
      }
      .form1_input__file-button:hover {
        opacity: 0.8;
      }
      
      .form1_input__file-button:active {
        opacity: 0.95;
      }
      
      .form1_input__info-image {
        font-size: 16px;
        margin-top: 10px;
      }
      
      .form1__template-button {
        width: 100px;
        
        /*margin: 20px auto;*/
        text-align: center;
        font-size: 13.5px;
        padding: 4px 0px;
        background-color: #6b7280;
        border-radius: 8px;
        color: white;
        border: none;
        outline: none;
        cursor: pointer;
      }
      
      .form1_input__file-button_template {
        width: 100%;
        max-width: 100px;
        background: #6b7280;
        color: #fff;
        display: flex;
        padding: 4px 0px;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
        cursor: pointer;
        margin: 0 auto;
      }
      
      .form1_input__file-button_template__default {
        width: 100%;
        max-width: 100px;
        background: #6b7280;
        color: #fff;
        display: flex;
        padding: 4px 0px;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
        cursor: pointer;
        margin: 0 auto;
        border: none;
      }
      
      .form1__button_container {
        display: flex;
        align-items: center;
        gap: 5px;
      }
      
      .form1_input__wrapper_template {
        /*width: 100%;*/
        position: relative;
        margin: 15px 0;
        text-align: center;
      }
      
      .form1_download_button_container {
        display: flex;
        flex-direction: column;
        gap: 5px;
      }
      
      .form1_input__file_template {
        opacity: 0;
        z-index: -1;
        top: 20px;
        position: absolute;
        max-width: 100px;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;  
      }
      
      
      .form1_input__file-button-text-template {
          font-size: 13.5px;
      }

      .popUpButton:hover {
        background-color: #287421;
      }

      .popUpButton:active {
        background-color: #276622;
      }
      
      .form2__wrap {
        display: block;
        position: relative;
        width: 100%;
      }
      .form2__wrap-info {
        background-color: white;
        word-break: break-all;
        padding: 10px 8px;
        border: 1px solid #404044;
        border-radius: 3px;
      }
      .form4 {
        display: block;
        margin: 8px auto;
        position: relative;
        max-width: 620px;
        background-color: rgb(223, 255, 192);
        font-size: 18px;
        border-radius: 10px;
        border: 1px solid #dce1e6;
        font-family: "Roboto", Arial, sans-serif;
      }
      .form4_audio__info-message {
          font-size: 16px;
          display: none;
          clip-path: inset(0 1ch 0 0); /* Для работы анимации бегущих точек*/
          animation: l 1s steps(4) infinite;
          order: 1;
      }
      
      /*Анимация бегущих точек*/
      @keyframes l { 
          to {
            clip-path: inset(0 -1ch 0 0)
          }
      }

    
      .form4__block4 {
        padding: 10px 10px 10px 10px;
        display: block;
        position: relative;
        border-radius: 5px;
      }
      .form4__paragraph {
        white-space: break-spaces;
        text-align: justfiy;
        padding: 12px 8px;
        overflow: hidden;
      }
      
      .form4__btns_container {
          display: flex;
          align-items: center;
          justify-content: end;
          flex-wrap: wrap;
          gap: 25px;
          margin: 0 10px;
          margin-bottom: 3px;
      }

      .form4__button {
        padding: 5px;
        cursor: pointer;
        border-radius: 5px;
        border-width: 1px;
        border-color: grey;
        border-style: solid;
        font-size:14px;
        font-family: "Roboto", Arial, sans-serif;
        opacity: 1;
      }
      
      .speech {
          padding: 0 3px;
      }
      
      .decrease, .increase {
          width: 19px;
      }
      
      .form4__button:active {
        opacity: 0.6;
      }
      .form5__wrap-info {
        padding: 10px 20px;
        border: 1px solid #dce1e6;
        border-radius: 10px;
        width: auto;
        word-break: break-all;
        color: #404044;
        background-color: white;
        max-width: 800px;
        font-size: 18px;
        font-family: "Roboto", Arial, sans-serif;
      }
      .block2 {
        margin: 25px auto;
        padding: 10px;
        max-width: 800px;
        border-radius: 5px;
        background-color: rgb(255, 229, 195);
        font-size:18px;
        font-family: "Roboto", Arial, sans-serif;
      }
      .block4 {
        display: flex;
        padding: 10px 10px 10px 10px;
        border-radius: 5px;
        flex-direction: column;
      }
      .block5 {
        margin: 8px auto;
      }
      
      .ya-share2__link_more-button-type_short {
          border: 1px solid black !important;
      }
      @media screen and (max-width: 480px) {
          .form4__btns_container {
              justify-content: space-between;
          }
      }
      @media screen and (max-width: 640px) {
          .form4__button {
              font-size: 18px;
          }
          .speech {
              padding: 1.5px 3px;
          }
          .modalContent {
              width: 80%;
              margin: 50% auto;
          }
          .modalContent p {
              font-size: 20px;  
          }
          .modalHeader {
              font-size: 26px;
              line-height: 30px;
          }
          .modalButton {
              font-size: 18px;
              padding: 15px 44px;
          }
          .modalButtonSave {
              font-size: 18px;
          }
          .fileInputWrapper {
              max-width: 161px;
          }
          .fileInputLabel {
              font-size: 18px;
              padding: 15px 0;
          }
          .ya-share2__list {
              margin-top: -1px !important;
          }
          .ya-share2__link {
              height: 22px;
          }
          .ya-share2__item {
              margin: 1px 4px 0 0 !important;
          }
      }
      
      @media screen and (max-width: 500px) {
          .form1__template-button {
              padding: 4px;
          }
      }
      
       @media screen and (max-width: 476px) {
           .modalButton {
              font-size: 14px;
              padding: 15px 34px;
          }
          .modalButtonSave {
              font-size: 14px;
          }
          .fileInputWrapper {
              max-width: 121px;
          }
          .fileInputLabel {
              font-size: 14px;
          }
       }
      
      @media screen and (max-width: 414px) {


          .modalContent p {
              font-size: 19px;
          }
          .modalInput {
              font-size: 20px;
          }
      }
      @media screen and (max-width: 400px) {
          .modalContent {
              width: 90%;
          }
          
      }
      @media screen and (max-width: 395px) {
          .form4__btns_container {
              gap: 10px;
          }
          .form1__button {
              padding: 10px 5px !important;
              font-size: 16px !important;
          }
          .form1__button_container {
              gap: 2px
          }
      }
      @media screen and (max-width: 339px) {
          .form4__btns_container {
              gap: 4px;
          }
      }

      @media only all and (max-width: 640px) {
        .loadingSpinner {
          left: 45%;
        }
        .form4__paragraph,
        .form5__wrap-info {
          font-size: 18px;
          font-family: "Roboto", Arial, sans-serif;
        }
        .form1__input,
        .form1__select,
        .form1__textarea,
        .form1__label {
          font-size: 17px;
          font-family: "Roboto", Arial, sans-serif;
        }
      }
      
      .ya-share2__container {
          ul {
              padding-left: 0 !important;
          }
      }
      .ya-share2 .ya-share2__list {
        margin-bottom: 0;
      }
      .ya-share2 .ya-share2__link_more {
        background: rgb(240,240,240) !important;
        padding: 4.5px !important;
        border-color: rgb(128, 128, 128) !important;
        border-radius: 5px !important;
        border-style: solid !important;
      }
      .ya-share2__container_size_s .ya-share2__popup:not(.ya-share2__popup_mobile) .ya-share2__item {
          padding: 8px 6px !important;
      }
    .ya-share2__container_size_s {
    font-size: 14px !important;
}

@keyframes fadeIn {
  0% {
    background:rgba(0,0,0,.0);
  }
  100% {
    background:rgba(0,0,0,.7);
  }
}

@keyframes fadeOut {
  0% {
    background:rgba(0,0,0,.7);
  }
  100% {
    background:rgba(0,0,0,.0);
  }
}

@keyframes scaleUp {
  0% {
    transform:scale(.8) translateY(1000px);
    opacity:0;
  }
  100% {
    transform:scale(1) translateY(0px);
    opacity:1;
  }
}

@keyframes scaleDown {
  0% {
    transform:scale(1) translateY(0px);
    opacity:1;
  }
  100% {
    transform:scale(.8) translateY(1000px);
    opacity:0;
  }
}

 /* Меню */
@media screen and (min-width: 980px) and (max-width: 1366px) {
  .t967__list-item {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}
