/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ============================================
 *    Формы
 * ============================================ */
.elementor-form .elementor-field-type-acceptance .elementor-field-subgroup label {
	font-size: 12px !important; 
	line-height: 12px !important; 
	font-weight: 400 !important;
}



/* ============================================
 *    Для фильтра Услуга + Тренер + Стоимость
 * ============================================ */


.sb-af {
    position: relative;
}

.sb-af__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.sb-af__layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.sb-af--service-context .sb-af__main {
    width: 100%;
}

.sb-af__main {
    min-width: 0;
}

.sb-af.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.sb-af.is-loading::before {
    content: "";
    position: absolute;
    top: 120px;
    left: 50%;
    z-index: 6;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border: 3px solid rgba(180, 0, 0, 0.2);
    border-top-color: #b40000;
    border-radius: 50%;
    animation: sb-af-spin 0.7s linear infinite;
}

@keyframes sb-af-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Услуги: radio визуально как checkbox */

.sb-af-services {
    display: flex;
    flex-direction: column;
}

.sb-af-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    color: #1d4e7a;
    font-size: 16px;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.sb-af-service:hover {
    color: #b40000;
}

.sb-af-service.is-active {
    color: #111;
    font-weight: 600;
}

.sb-af-service__title {
    flex: 1 1 auto;
}

.sb-af-service__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sb-af-service__box {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1px solid #e22d2d;
    border-radius: 4px;
    background: transparent;
}

.sb-af-service.is-active .sb-af-service__box {
    background: #b40000;
    border-color: #b40000;
}

.sb-af-service.is-active .sb-af-service__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Тренеры */

.sb-af__trainers-wrap {
    margin-bottom: 30px;
}

.sb-af-trainers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
@media(max-width: 767px) {
	.sb-af-trainers {
		width: 100%;
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: scroll;
		padding-bottom: 10px;
	}
}


.sb-af-trainer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    max-width: 260px;
    padding: 8px 14px 8px 8px;
    border: 1px solid #ff3b3b;
    border-radius: 7px;
    background: #fff8ed;
    color: #111;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.sb-af-trainer:hover {
	background: #b40000;
    border-color: #b40000;
}

.sb-af-trainer.is-active {
    background: #b40000;
    border-color: #b40000;
    color: #fff;
}

.sb-af-trainer__photo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.06);
}

.sb-af-trainer__img,
.sb-af-trainer__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sb-af-trainer__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ddd, #f4f4f4);
}

.sb-af-trainer__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sb-af-trainer__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
	text-wrap: auto;
}

.sb-af-trainer__spec {
    font-size: 12px;
    line-height: 1.2;
    opacity: 0.75;
	text-wrap: wrap;
}

/* Цены */

.sb-af-price-content {
    margin-bottom: 36px;
}

.sb-af-price-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    color: #111;
}

.sb-af-price-heading span {
    font-size: 20px;
    font-weight: 700;
}

.sb-af-price-heading strong {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.75;
}

.sb-af-price-once {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 0 0 14px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 18px;
    line-height: 1.25;
}

.sb-af-price-once strong {
    white-space: nowrap;
}

.sb-af-price-section {
    margin-bottom: 36px;
}

.sb-af-price-section__title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.sb-af-price-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
}

.sb-af-price-card {
    padding: 16px;
    border: 1px solid #ff3b3b;
    border-radius: 8px;
    background: #fff8ed;
}
@media(max-width: 767px) {
	.sb-af-price-card {
		min-width: 160px;
		padding: 15px 10px;
	}
}

.sb-af-price-card__title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}
@media(max-width: 767px) {
	.sb-af-price-card__title {
		font-size: 16px;
	}
}
.sb-af-price-card__rows {
    display: flex;
    flex-direction: column;
}

.sb-af-price-card__row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sb-af-price-card__row:last-child {
    border-bottom: 0;
}

.sb-af-price-card__row span,
.sb-af-price-card__row strong {
    font-size: 15px;
    line-height: 1.2;
}
@media(max-width: 767px) {
	.sb-af-price-card__row span,
	.sb-af-price-card__row strong {
		font-size: 13px;
		line-height: 1;
	}
	.sb-af-price-card__row {
		gap: 10px;
		width: 100%;
	}
}

.sb-af-price-card__row strong {
    font-weight: 500;
    white-space: nowrap;
}

.sb-af-empty {
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #fff;
    color: #333;
}

@media (max-width: 1024px) {
    .sb-af__layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 28px;
    }

    .sb-af__layout--single {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .sb-af__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sb-af-trainer {
        width: 100%;
        max-width: none;
    }

    .sb-af-price-cards {
/*         grid-template-columns: 1fr; */
		width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: scroll;
        display: flex;
        padding-bottom: 10px;
    }

    .sb-af-price-once {
        font-size: 16px;
    }
}


/* Кнопка сброса фильтра */

.sb-af-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    border: 1px solid #b40000;
    border-radius: 7px;
    background: transparent;
    color: #b40000;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.sb-af-reset:hover {
    background: #b40000;
    color: #fff;
}

.sb-af-reset:focus-visible {
    outline: 2px solid rgba(180, 0, 0, 0.35);
    outline-offset: 3px;
}

.sb-af-reset:active {
    transform: translateY(1px);
}