*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
    font-size: 100%;
    color: inherit;
    border: none;
}

body{
    font-family: "Poppins", sans-serif;
}

h1, h2, h3{
    font-family: "Oswald", sans-serif;
    color: #111;
}

h1{
    font-size: 36px;
}

h2{
    font-size: 24px;
}

p{
    font-size: 14px;
    color: #333333;
}

button{
    padding: 8px 16px;
    border-radius: 6px;
    outline: none;
    background-color: #4CAF50;

    font-size: 18px;
    font-family: "Poppins", sans-serif;
    color: #fff;

    cursor: pointer;
}

.select-wrapper{
    position: relative;
}

.select-wrapper::after{
    content: "";

    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%234CAF50' d='M137.4 374.6L12.7 249.9c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0L160 284.1l90.7-90.7c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L182.6 374.6c-9.4 9.4-24.6 9.4-33.9 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    
    position: absolute;
    right: 10px;
    top: 10px;

    pointer-events: none;
}

input:not([type="file"]), select, textarea{
    border: 1px solid #4CAF50;
    border-radius: 6px;
    outline: none;
    padding: 8px;
    font-size: clamp(14px, calc(14px + (16 - 14) * ((100vw - 320px) / (1100 - 320))), 16px);
    font-family: "Poppins", sans-serif;
    color: #111;
}

select{
    cursor: pointer;
}

textarea{
    max-width: 100%;
    max-height: 41px;
    resize: none;
}

input[type="password"]::-ms-reveal {
    display: none;
}

input[type="password"]::-ms-clear {
    display: none;
}

input[type="file"] {
    display: none;
}

.upload-input-label{
    display: inline-block;

    padding: 8px 16px;
    border-radius: 6px;
    outline: none;
    background-color: #4CAF50;
    user-select: none;

    font-size: 18px;
    color: #fff;

    cursor: pointer;
}

.link-btn{
    display: inline-block;

    padding: 8px 16px;
    border-radius: 6px;
    outline: none;
    background-color: #4CAF50;

    font-size: 18px;
    color: #fff;
    text-align: center;
}

.close-btn{
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo{
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
}

.container{
    max-width: 1160px;
    padding: 0 25px;
    margin: 0 auto;
}






/* Модальное окно */

.auth-modal{
    width: 100%;
    height: 100dvh;
   
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    top: 0;

    background-color: rgba(0,0,0,0.4);

    z-index: 199;


    visibility: hidden;
    opacity: 0;
    transition: visibility .3s, opacity .3s;
}

.auth-modal.active{
    visibility: visible;
    opacity: 1;
}

.auth-form{
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    padding: 40px 20px;
    border-radius: 12px;
    background-color: #fff;
     overflow-y: auto; 
      scrollbar-gutter: stable;

    text-align: center;
    
    position: relative;
}

.close-modal-btn{
    position: absolute;
    top: 10px;
    right: 10px;
}

.auth-title{
    margin-bottom: 36px;
}

.inputs-wrapper{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inputs-wrapper label{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inputs-wrapper label span{
    font-size: 12px;
    color: #111;
    text-align: start;
}

.auth-input, .auth-select{
    width: 100%;
}

.auth-input.error{
    border: 1px solid red;
}

.auth-select{
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.auth-option{
    font-size: 14px;
    color: #111;
}

.auth-option span{
    color: #4CAF50;
    text-decoration: underline;

    cursor: pointer;
}

.error{
    display: none;
    text-align: start;
    margin-top: 10px;
    font-size: 12px;
    color: #DC3545;
}

.error.active{
    display: block;
}

.password-wrapper{
    display: flex;
    position: relative;
}

.password-wrapper button{
    padding: 0;
    border-radius: 0;
    background-color: transparent;
}

.password-wrapper i{
    position: absolute;
    top: 33%;
    right: 8px;

    color: #4CAF50;
}






/* header */

header{
    padding: clamp(15px, calc(15px + (30 - 15) * ((100vw - 320px) / (1100 - 320))), 30px) 0;
}

.header-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-btn{
    width: 40px;
    height: 40px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.header-link{
    color: #111;
    opacity: 0.8;
}





/* Фильтры */

.search-filters{
    padding: 50px 0 25px 0;
}

.search-title{
    margin-bottom: 36px;
}

.filters{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 16px;
}

.filters label{
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 220px;
}

.filters label span{
    font-size: 12px;
    color: #111;
}






/* Тренеры результат */

.trainers{
    padding: 25px 0 100px 0;
    color: #111;
}

.trainers-result-pagination{
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.trainers-result{
    --elems: 3;
    --gap: 24px;


    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--gap);
}

.trainers-title{
    margin-bottom: 36px;
}

.trainer{
    width: calc((100% - (var(--elems) - 1) * var(--gap)) / (var(--elems) ));
    padding: 20px;
    border-radius: 12px;
    background-color: #F5F5F5;


    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trainer-img{
    width: 100%;
    aspect-ratio: 4 / 3;  
    object-fit: cover;
    border-radius: 12px;
}

.trainer-details{
    display: flex;
    flex-direction: column;
}

.trainer-details span{
    font-size: 14px;
    color: #111;
}

.trainer p{
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.trainers-pagination{
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
}






footer{
    padding: 50px 0;
    border-top: 1px solid #4CAF50;
}

.footer-container{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.footer-link{
    font-size: 13px;
    color: #111;
    opacity: 0.8;
}






@media (max-width: 1100px){
  h1{
    font-size: calc(28px + (36 - 28) * ((100vw - 320px) / (1100 - 320)));
  }

  h2{
    font-size: calc(20px + (24 - 20) * ((100vw - 320px) / (1100 - 320)));
  }

  .search-title {
    margin-bottom: calc(28px + (36 - 28) * ((100vw - 320px) / (1100 - 320)));
  }
  
  .trainers-title{
     margin-bottom: calc(28px + (36 - 28) * ((100vw - 320px) / (1100 - 320)));
  }

  .trainers-result-pagination{
    gap: calc(28px + (36 - 28) * ((100vw - 320px) / (1100 - 320)));
  }
}

@media (max-width: 1090px){
    .search-btn{
        flex: 1 1 220px;
    }

    .trainers-result{
        --elems: 2;
    }
}

@media (max-width: 747px){
    .trainers-result{
        --elems: 1;
    }
}

@media (max-width: 500px){
    .trainers-pagination button{
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 440px){
    .footer-container{
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 380px){
    .trainers-pagination button{
        padding: 8px;
        font-size: 12px;
    }
}