 /* Общие стили */


body{
    font-family: TildaSans;
}

.sfs-search{
    display: flex;
}

.sfs__sidebar{
    width: 25%;
    margin: 10px 20px auto 0;
}

div.sfs-search-form-2{
    display: flex;
    width: 100%;
    margin: 0 20px 0 calc(100% - calc(95% + 40px));
}

div.sfs-search-form-2 form{
    flex-direction: row;
}

.sfs-search-form {
    height: auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.sfs-search-form form {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}

.sfs-search-form input[type="text"],
.sfs-search-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1 1 150px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.sfs-search-form .sf-multiple-select {
    flex: 2 1 150px;
    min-width: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.sfs-search-form select option {
    padding: 8px;
}

.sfs-search-form button {
    background-color: #101F41;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}

.sfs-search-form button:hover {
    background-color: #101F41;
}


#sfs-search-results {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sfs-result-item {
    background-color: #fff;
    border: 1px solid #b8b8b8;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px;
    width: calc(calc(100% / 2) - 5px);
    transition: 500ms;
}

.sfs-result-item:hover{
    transform: scale(99%);
}

.sfs-result-item h3 {
    margin-top: 0;
    color: #333;
}

.rating-number {
    font-weight: 500;
    color: #555;
}

.sfs-result-item p {
    margin-bottom: 0;
}

.no-results {
    margin-top: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ff0000;
}

.tagline-checkboxes {
    margin-bottom: 10px;
}

.tagline-checkboxes label {
    display: block;
}

.sro-select {
    display: block;
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 0.25em;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.sro-select:focus {
    outline: none;
    border-color: #66afe9;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}
.salary-range {
	 margin-bottom:10px;
}
.cost-range {
	margin-bottom:10px;
    max-width: 100%;
}
.salary-slider {
    position: relative;
    width: 100%;
    height: 15px;
    background-color: #ddd;
    border-radius: 5px;
	margin-bottom:5px;
}
.cost-slider{
    position: relative;
    max-width: 100%;
    height: 15px;
    background-color: #ddd;
    border-radius: 5px;
	margin-bottom:5px;
}


.salary-slider input[type="range"],.cost-slider input[type="range"] {
    position: absolute;
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    margin: 0;
}

.salary-slider input[type="range"]::-webkit-slider-thumb,.cost-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #101F41;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
}

.salary-slider input[type="range"]::-moz-range-thumb,.cost-slider input[type="range"]::-moz-range-thumb {
    -moz-appearance: none;
    width: 15px;
    height: 15px;
    background: #101F41;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: none;
}
.search-slider-track{
	position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 3px;
    background: #101F41;
    pointer-events: none;
    background-image:none;
}
.slider-values{
	  display: flex;
    justify-content: space-between;
}

.slider-ranges{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.sfs-main-filters{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.sfs-main-filter-item{
    width: 100%;
}

.sfs-result-item{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sfs-service-card {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: 300ms;
}

.sfs-service-card:hover{
    transform: scale(103%);
}

.sfs-service-card h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.sfs-service-card p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}
.sfs-provider-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* space between service cards */
}

.sfs-filter-group{
    display: flex;
    flex-direction: column;
}
.sfs-filter-group button{
    width: 100%;
}
.sfs-filter-group div{
    margin-bottom: 5px;
}

div.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn){
    width: 100%;
}

.sfs-prov-info{
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sfs-prov-info img{
    border-radius: 5px;
}

.sfs__search-title{
    display: flex;
}

.sfs__search-title__text{
    padding: 20px;
    margin: 20px 20px auto auto;
    text-align: center;
    font-weight: 600;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 70% ;
}

.sfs__search-title__text h3{
    margin: 0 0 0 auto;
}

.sfs__search-title__logo{
    width: 25%;
    margin: 20px 20px auto 0;
}

.sfs__search-title__name-search{
    margin-top: 120px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sfs__search-title__name-search .sfs-main-filter-item{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.sfs__search-title__name-search .sfs-main-filter-item form{
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0 20px 0 auto;
}

.sfs__search-title__name-search .sfs-main-filter-item input{
    width: calc(71%);
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 45px;
    margin: 0 21px 0 auto;
}

.sfs__search-title__name-search .sfs-main-filter-item button{
    color: #fff;
    width: calc(25% + 4px);
    height: 45px;
    background-color: #101F41;
    border: 0;
    border-radius: 5px;
}

.sfs__search-title__name-search .sfs-main-filter-item button:hover{
    background-color:#101F41;
}

.sfs__prov-info__text{
    display: flex;
    min-height: 100px;
    flex-direction: column;
    justify-content: space-between;
    width: fit-content;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #f0f0f0;  
    border-radius: 5px;
    transition: 500ms;
}

.sfs__prov-info__text p{
    margin: 20px 0 20px 0;
}

.sfs__prov-info__text:hover{
    background-color: #f0f0f0;
    transform: scale(103%);
}

.sfs__prov-info__text h3{
    margin: 0;
    font-weight: 600;
    font-size: 22px;
    color: #101F41;
}

.sfs-provider-avatar{
    transition: 500ms;
}

.sfs-provider-avatar:hover{
    transform: scale(103%);
}

h4.sfs__provider-services__title{
    margin: 0;
    padding: 5px;
    width: 100%;
    font-weight: 600;
    font-size: 18px;
    color:#333 ;
    background-color: #f9f9f9;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
}


/*STARS*/
.header-author-rating-block {
    display: flex;
    align-items: center;
	justify-content: space-between;
    height: 20px;
}

.header-author-rating{
	display:flex;
	align-items: center;
	margin-right: 5px;
}

.header-star-rating-display {
    display: inline-block;
    font-size: 1.5em;
    margin-right: 8px;
	margin-bottom: 20px;
}

.header-star-rating-display .star {
    display: inline-block;
    position: relative;
    width: 1em;
    height: 1em;
}

.header-star-rating-display .star:before {
    content: "\2605";
    position: absolute;
    top: 0;
    left: 0;
     color: #ddd;
}
.header-star-rating-display .star.full:before {
    color: #101F41;
}
.header-star-rating-display .star.half:before {
    content: '\2605';
    color: #101F41;
    background: linear-gradient(to right, #101F41 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sfs__sidebar__ad{
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.UGI__ad-img img{
    object-fit: fill;
    width: 100%;
    height: 100%;
}

.UGI__ad-mark {
    padding: 10px 20px 10px 20px;
}

.UGI__ad-mark p{
    padding: 0;
    margin: 0;
}

.sfs__sidebar__copyright{
    padding: 20px;
    margin-top: 20px;
    color: #aaa;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.sfs__sidebar__copyright p{
    margin: 0;
}

.sfs__provider-services__empty h4{
    font-weight: 300;
    font-size: 21px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    color: #767676;
}

.header-nav{
    height: 100px;
}

#colophon{
    display: none;
}

.sfs__categ-mega-menu{
    display: flex;
    flex-direction:column-reverse;
}

button.mega-menu-toggle{
    
}

#sfs-search-form-1 > button:nth-child(2){
    padding: 0 15px;
}

button.sfs-toggle-filters{
    background-color: #f9f9f9;
    border: 2px solid #a3a3a3;
    color: #a3a3a3;
    transition: 300ms;
}

button.sfs-toggle-filters:hover{
    background-color: #f9f9f9;;
    border: 2px solid #101F41;
    color: #101F41;
}

/* Медиа-запросы для мобильной адаптации */
@media (max-width: 768px) {

}


.sfs__search__params__block{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
}



.sfs__search__params__block .search-params, .sfs__search__params__block .param-block{
    border-radius: 5px;
    border: 1px solid #101F41;
    height: auto;
    font-weight: 300;
    padding: 5px 10px;

    margin-right: 5px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.sfs__search__params__block .search-params{
    background-color: #101F41;
    color: #fff;
}

.sfs__search__params__block .search-params p{
    margin: 0;
    padding: 0;
}

.sfs__search__params__block .param-block{
    min-height: 80px;
}

.sfs__search__params__block .param-block p{
    padding: 0;
    margin: 0;
}

.sfs__search__params__block .param-block span{
    font-weight: 600;
}

.sfs__search__block{
    margin: 10px 20px auto auto;
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: stretch;
    flex-wrap: wrap;
}

a.hidden-content{
    cursor: pointer;
    display: flex;
}
a.hidden-content span{
    align-content: center;
}

/* iPhone 5, 5S, 5C, 5 SE (портретный режим) */
@media only screen and (max-width: 768px) {

    .sfs__search__block{
        width: 100%;
        margin: 0;
    }
    /* Общие корректировки */
    .sfs-search {
        flex-direction: column-reverse; /* Stack sidebar and results on small screens */
    }
    .sfs__search-title{
        flex-direction: column;
    }

    .sfs__search-title__text{
        margin: 0 auto;
        width: 100%;
        padding: 10px; /* Reduced padding */
    }

    .sfs__search-title__text h3{
        font-size: 1.3em; /* Reduced title size */
        margin: 0;
    }

    .sfs__search-title__logo {
        margin: 0 auto 10px; /* Added margin bottom */
        width: 100%;
    }

    .sfs__sidebar {
        width: 100%; /* Full width on small screens */
        margin: 0 0 10px;
    }

    div.sfs-search-form-2 {
        margin: 0;
        width: 100%;
    }

    div.sfs-search-form-2 form {
        flex-direction: column;
    }

    .sfs-search-form {
        padding: 10px; /* Reduced padding */
    }

    .sfs-search-form form {
       gap: 5px; /* Reduced gap */
    }

    .sfs-search-form input[type="text"],
    .sfs-search-form select,
    .sfs-search-form .sf-multiple-select{
         padding: 8px; /* Reduced padding */
		 font-size: 0.9em; /* Smaller font size */
		margin-bottom: 5px; /* Reduced bottom margin */
    }

    .sfs-search-form button {
        padding: 8px 10px; /* Reduced padding */
        font-size: 0.9em;
    }

    #sfs-search-results {
        width: 100%; /* Full width on small screens */
        margin: 0;
    }
    .sfs-result-item {
        width: 100%; /* Full width for items */
        padding: 10px; /* Reduced padding */
        margin-bottom: 5px; /* Reduced margin */
    }

    .sfs-result-item h3 {
        font-size: 1.1em; /* Reduced h3 size */
    }

    .sfs__search-title__name-search {
        margin-bottom: 10px; /* Added margin bottom */
    }
    .sfs__search-title__name-search .sfs-main-filter-item form {
        flex-direction: column;
        margin: 0;
    }

    .sfs__search-title__name-search .sfs-main-filter-item input{
        margin: 0;
        width: 100%;
        max-height: 40px; /* Reduced height */
    }

    .sfs__search-title__name-search .sfs-main-filter-item button{
        margin: 0;
        width: 100%;
        height: 30px; /* Reduced height */
        font-size: 0.9em;
    }

    .sfs__prov-info__text{
        min-height: 0;
        width: auto;
		padding: 5px; /* Reduced padding */
    }

   .sfs__prov-info__text p{
         margin: 10px 0;
    }

    .sfs__prov-info__text h3 {
         font-size: 1.1em;
    }

    .sfs-provider-services {
        gap: 5px; /* Reduce gap */
    }
	 .sfs-service-card {
        padding: 8px; /* Reduced padding */
    }

    .sfs-service-card h4 {
         font-size: 1em; /* Reduced size */
    }

	.salary-range, .cost-range {
        margin-bottom: 5px; /* Reduce space */
    }

	.sfs-filter-group h4{
		font-size: 1em; /* Reduced h4 size */
	}
	.sfs-main-filter-item{
		 margin-bottom: 5px; /* Reduce space */
	}
	
	.sfs__sidebar__ad{
        display: none;
	}

    .sfs__sidebar__copyright{
        display: none;
    }

	h4.sfs__provider-services__title {
		font-size: 1.1em; /* Reduced h4 size */
		padding: 2px;
	}

    .sfs__prov-info__text div.header-author-rating-block{
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        margin-top: -20px;
    }
    .header-author-rating-block div.header-author-rating{
        flex-direction: column;
        align-items: flex-start;
    }

    .header-author-rating div.header-star-rating-display{
        margin-bottom: 0;
    }


    .sf-company-name{
        font-size: 26px;
    }

    .author-rating-block .criteria-ratings{
        flex-direction: column;
    }

    .author-rating-block .criteria-ratings .criteria-rating{
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid #ececec;
        margin-bottom: 5px;
        font-size: 1.2em;
    }

    .author-rating-block div.author-rating{
        align-items: flex-start;
        flex-direction: column;
    }

    .author-rating div.rating-number{
        display: none;
    }

    .author-rating div.review-count{
        margin-left: 0;
    }


    div.custom-review{
        padding: 10px;
    }
    .custom-review div.review-header{
        padding: 2px 10px 10px 10px;
        flex-direction: column;
        border: 1px solid #f0f0f0;
        border-radius: 5px;
    }
    .custom-review .review-header div.star-rating-display{
        margin-right: 0;
        margin-bottom: 10px;
    }

    .review-header .star-rating-display span.star{
        margin-bottom: 0;
    }

    .custom-review .review-header p.review-rating{
        display: none;
    }

    .custom-review div.review-criteria-ratings{
        display: none;
    }
    
}

/**/