#search{
    background-color: var(--grey2);
    min-height: 90svh;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 3rem 1.5rem;
}
#search .centered{
    max-width: 90%;
margin: 0 auto;
width: 100%;
}
#search .centered h1{
    margin-left: 0!important;
}
#searchblock{
    position: relative;
    width: 100%;
}
#searchblock input{
    margin-bottom: 0;
}
#searchblock svg{
    fill: var(--blue1);
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    right: 1rem;
    z-index: 1;
    top: .675rem;
    cursor: pointer;
}
#category-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 90%;
    margin: 1rem auto 0;
}
#category-tags .tag-btn {
    display: inline-flex;
    align-items: center;
    padding: .6rem 1.4rem;
    border: 2px solid var(--blue1);
    border-radius: 2rem;
    background: transparent;
    color: var(--blue1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    margin: 0;
}
#category-tags .tag-btn:hover {
    border: 2px solid var(--blue2);
    color: var(--blue2);
}
#questions-container {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
#questions-container .question-item {
    padding: .75rem 4rem .75rem .75rem;
    text-align: left;
    background: var(--white);
    border-left: 4px solid var(--blue1);
    margin: 0;
    width: calc(33.33% - 1rem);
    cursor: pointer;
    border-radius: 0 2rem 2rem 0;
    position: relative;
}
#questions-container .question-item:hover{
    border-left: 4px solid var(--blue2);
}
#questions-container .question-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
#questions-container .custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--blue1);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    position: absolute;
    right: 1rem;
    top: 0;
    bottom: 0;
    margin: auto;
}
#questions-container .custom-radio::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue1);
    transition: transform 0.2s ease;
}
#questions-container .question-item input[type="radio"]:checked + .custom-radio {
    border-color: var(--blue1);
}
#questions-container .question-item input[type="radio"]:checked + .custom-radio::after {
    transform: translate(-50%, -50%) scale(1);
}
#questions-container .question-item:hover .custom-radio {
    border-color: var(--blue1);
}
#questions-container .question-item input[type="radio"]:focus + .custom-radio {
    box-shadow: var(--shadow);
}
#lawyer-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
#lawyer-container .lawyer-card {
    background: var(--white);
    -webkit-border-radius: 1.143rem;
    -moz-border-radius: 1.143rem;
    border-radius: 1.143rem;
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    padding: 1rem 4rem 4rem 1rem;
    display: inline-flex;
    -webkit-transition: -webkit-box-shadow .2s ease;
    transition: -webkit-box-shadow .2s ease;
    -o-transition: box-shadow .2s ease;
    -moz-transition: box-shadow .2s ease,-moz-box-shadow .2s ease;
    transition: box-shadow .2s ease;
    transition: box-shadow .2s ease,-webkit-box-shadow .2s ease,-moz-box-shadow .2s ease;
    width: calc(33.33% - 1rem);
    flex-wrap: wrap;
}
#lawyer-container .lawyer-card:hover {
    box-shadow: var(--shadow);
}

#lawyer-container .lawyer-photo {
    position: relative;
    width: 5rem;
height: 5rem;
}
#lawyer-container .lawyer-info{
    width: calc(100% - 6rem);
padding-left: 1rem;
text-align: left;
}
#lawyer-container .lawyer-info h5{
    text-align: left;
    margin-bottom: 0;
}
#lawyer-container .lawyer-practice{
    text-align: left;
}
#lawyer-container .lawyer-photo img {
    -webkit-border-radius: 1.143rem;
    -moz-border-radius: 1.143rem;
    border-radius: 1.143rem;
    background-color: var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    margin-right: 1rem;
    
}
.lawyer-rating{
position: absolute;
right: 1rem;
top: 1rem;
align-items: center;
display: inline-flex;
z-index: 1;
}
.lawyer-rating svg{
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--grey1);
}
.btn-contact {
position: absolute;
right: 1rem;
bottom: 1rem;
}
.lawyer-card:hover .decorative{
border: 2px solid var(--blue2);
color: var(--blue2);
}
.smart-captcha {
margin: 1rem 0;
}
#alarm h5{
margin-top: 2.5rem;
text-align: center;
margin-bottom: 2rem;
}
#message-container{
    display: none;
    border-top: 1px solid var(--grey1);
    padding-top: 1.5rem;
    margin-top: 1rem;
    scroll-margin-top: 7rem;
}
#message-container .rkn{
    align-items: center;
}
#documents{
    background-color: var(--white);
    padding: 3rem 1.5rem;
}
#documents .swiper-slide {
    display: flex!important;
    height: auto; 
}
#documents .card {
    background: var(--grey2);
    -webkit-border-radius: 1.143rem;
    -moz-border-radius: 1.143rem;
    border-radius: 1.143rem;
    margin-bottom: 1rem;
    position: relative;
    overflow:hidden;
    text-decoration: none;
    margin-right: .75rem;
    margin-left: .75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%;     
    width: 100%;
    box-sizing: border-box;
}
#documents .card h3{
    font-size: 1.125rem;
}
#documents .card:hover {
    text-decoration: none;
    -webkit-box-shadow: var(--shadow);
    -moz-box-shadow: var(--shadow);
    box-shadow: var(--shadow);
    -webkit-transform: translateY(-.357rem);
    -moz-transform: translateY(-.357rem);
    -ms-transform: translateY(-.357rem);
    -o-transform: translateY(-.357rem);
    transform: translateY(-.357rem);
    -webkit-transition: -webkit-transform .3s ease, -webkit-box-shadow .3s ease;
    transition: -webkit-transform .3s ease, -webkit-box-shadow .3s ease;
    -o-transition: box-shadow .3s ease, -o-transform .3s ease;
    -moz-transition: transform .3s ease, box-shadow .3s ease, -moz-transform .3s ease, -moz-box-shadow .3s ease;
    transition: transform .3s ease, box-shadow .3s ease;
    transition:transform .3s ease, box-shadow .3s ease, -webkit-transform .3s ease, -moz-transform .3s ease, -o-transform .3s ease, -webkit-box-shadow .3s ease, -moz-box-shadow .3s ease
}
#documents .card .docimg{
    aspect-ratio: 9/9;
    background-image: url('/static/theme/img/doc.webp');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: var(--white);
    -webkit-border-radius: 1.143rem;
    -moz-border-radius: 1.143rem;
    border-radius: 1.143rem;
}
#documents .card .flex{
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--grey1);
    padding-top: 1rem;
}
#blog{
    background-color: var(--grey2);
    padding: 3rem 1.5rem;
}
#blog .card {
    background: var(--white);
    -webkit-border-radius: 1.143rem;
    -moz-border-radius: 1.143rem;
    border-radius: 1.143rem;
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
    overflow:hidden;
    text-decoration: none;
    margin-right: .75rem;
    margin-left: .75rem;
    padding-bottom: 5rem;
    display: block;
}
#blog .card:hover {
    text-decoration: none;
    -webkit-box-shadow: var(--shadow);
    -moz-box-shadow: var(--shadow);
    box-shadow: var(--shadow);
    -webkit-transform: translateY(-.357rem);
    -moz-transform: translateY(-.357rem);
    -ms-transform: translateY(-.357rem);
    -o-transform: translateY(-.357rem);
    transform: translateY(-.357rem);
    -webkit-transition: -webkit-transform .3s ease, -webkit-box-shadow .3s ease;
    transition: -webkit-transform .3s ease, -webkit-box-shadow .3s ease;
    -o-transition: box-shadow .3s ease, -o-transform .3s ease;
    -moz-transition: transform .3s ease, box-shadow .3s ease, -moz-transform .3s ease, -moz-box-shadow .3s ease;
    transition: transform .3s ease, box-shadow .3s ease;
    transition:transform .3s ease, box-shadow .3s ease, -webkit-transform .3s ease, -moz-transform .3s ease, -o-transform .3s ease, -webkit-box-shadow .3s ease, -moz-box-shadow .3s ease
}
#blog .card .text {
    padding:1rem 1rem 0
}
#blog .card .text b{
    font-size:1rem;
}
#blog .card:hover .text b{
    color: var(--blue2);
}
#blog .card .text time{
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}
#blog .slider {
    aspect-ratio: 16/9;
}
#blog .slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
#blog .oneslide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -moz-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing:border-box;
    opacity: 1;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
}
#blog .swiper-slide, #documents .swiper-slide{
    padding-top: .5rem;
}
#blog .swiper-button-next, #blog .swiper-button-prev, #documents .swiper-button-next, #documents .swiper-button-prev {
    background-color: var(--white);
    border: 1px solid var(--grey2);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    height: 2.857rem;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    -moz-transition: all .3s ease;
    transition: all .3s ease;
    width:2.857rem
}
#blog .swiper-button-next, #documents .swiper-button-next {
    right:0
}
#blog .swiper-button-prev, #documents .swiper-button-prev {
    left:0
}
#blog .swiper-button-next:after, #blog .swiper-button-prev:after, #documents .swiper-button-next:after, #documents .swiper-button-prev:after {
    line-height: 2;
    font-size: 1.3rem;
    color: var(--blue1);
    font-weight:700
}
#blog .swiper-button-next:hover, #blog .swiper-button-prev:hover, #documents .swiper-button-next:hover, #documents .swiper-button-prev:hover {
    -webkit-box-shadow: var(--shadow);
    -moz-box-shadow: var(--shadow);
    box-shadow:var(--shadow)
}
#blog .swiper, #documents .swiper{
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}
#blog .swiper-pagination .swiper-pagination-bullet, #documents .swiper-pagination .swiper-pagination-bullet{
    background-color:var(--grey1);
    -webkit-border-radius:50%;
    -moz-border-radius:50%;
    border-radius:50%;
    height:.571rem;
    margin:0 .286rem;
    opacity:.5;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    -webkit-transition:all .3s ease;
    -o-transition:all .3s ease;
    -moz-transition:all .3s ease;
    transition:all .3s ease;
    -webkit-transition:all .4s cubic-bezier(.4,0,.2,1);
    -o-transition:all .4s cubic-bezier(.4,0,.2,1);
    -moz-transition:all .4s cubic-bezier(.4,0,.2,1);
    transition:all .4s cubic-bezier(.4,0,.2,1);
    width:.571rem
}
#blog .swiper-pagination .swiper-pagination-bullet-active, #documents .swiper-pagination .swiper-pagination-bullet-active{
    background-color:var(--blue1);
    -webkit-border-radius:.571rem;
    -moz-border-radius:.571rem;
    border-radius:.571rem;
    opacity:1;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    width:2.286rem
}
#blog .allposts, #documents .alldocs{
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: transparent;
    border: 2px solid var(--blue1);
    -webkit-border-radius: 2rem;
    -moz-border-radius: 2rem;
    border-radius: 2rem;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0.6rem 1.4rem;
}
#blog .allposts:hover, #documents .alldocs:hover{
    border: 2px solid var(--blue2);
    color: var(--blue2);
}

@media only screen and (max-width:1300px){
    #lawyer-container .lawyer-card{
        width: 100%;
    }
}
@media only screen and (max-width:800px){
    #questions-container .question-item, #lawyer-container .lawyer-card{
        width: 100%;
    }
}

@media only screen and (max-width:600px){
    #search{
        padding: 3rem 1rem 1rem 1rem;
    }
    #documents, #blog {
        padding: 3rem 1rem;
    }
    #search .centered, #category-tags{
        max-width: 100%;
    }
    #category-tags .tag-btn{
        padding: .5rem 1rem;
        font-size: .875rem;
    }
    
}