:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: white;
}

.modal-title {
    color: var(--dark-color);
    font-weight: 700;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: white;
}

.modal-content {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.carousel-fade .carousel-item {
    transition: opacity 0.5s ease-in-out !important;
}

/* Стилизация хэдера */
header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand img {
    height: 70px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    gap: 12px;
}

.nav-link {
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Стилизация новостей */
.news-section {
    padding: 80px 0;
}

/* Центрирование всех карточек */
.news-section .row {
    justify-content: center;
}

.news-section .col-md-4 {
    display: flex;
    justify-content: center;
}

.news-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-align: center;
    max-width: 390px;
    width: 100%;
    height: 540px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-card .card-body {
    padding: 25px;
    padding-bottom: 70px;
    flex-grow: 1;
}

.news-card .card-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.news-card .card-button-container {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    padding: 0 25px;
    text-align: center;
}

.news-card .btn-outline-primary {
    min-width: 120px;
    margin: 0 auto;
    display: block;
}

.news-content {
    white-space: pre-line;
    line-height: 1.7;
    font-size: 16px;
}

.news-content p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.news-content br {
    display: block;
    content: "";
    margin-bottom: 0.5em;
}

.news-modal-img {
    border-radius: 0.3rem;
}

/* Стили для блока социальных ссылок */
.social-links {
    text-align: center;
    padding-top: 20px;
}

.social-title {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.social-link[title="ВКонтакте"]:hover {
    background-color: #4a76a8;
    border-color: #4a76a8;
}

.social-link[title="Telegram"]:hover {
    background-color: #0088cc;
    border-color: #0088cc;
}

.social-link[title="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}

.social-link[title="YouTube"]:hover {
    background-color: #ff0000;
    border-color: #ff0000;
}

.social-link[title="WhatsApp"]:hover {
    background-color: #25d366;
    border-color: #25d366;
}

@media (max-width: 576px) {
    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-title {
        font-size: 14px;
    }
}

/* Стилизация герой секции */
.hero-section .carousel-item img {
    height: 1100px;
    max-height: 100%;
    object-fit: cover;
    max-width: 100%;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    margin: 3px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;

}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #0b5ed7;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 60%;
    width: 30px;
    height: 30px;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Стилизация преимущества */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefit {
    padding: 80px 0;
}

.benefit h5 {
    font-weight: 600;
    margin-top: 15px;
    color: var(--dark-color);
}

.benefit .itdcircle {
    margin-bottom: 20px;
    font-size: 3.5rem;
    color: var(--primary-color);
    background-color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}


.benefit h5 {
    font-weight: 600;
    margin-top: 15px;
    color: var(--dark-color);
}

/* Стилизация карточек услуг */
.service-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 25px;
    text-align: center;
}

.service-card .btn-outline-primary {
    margin-top: 10pcax;
}

.service-card img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.service-card .card-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card .card-text {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Стилизация тренеров */
.team-section {
    padding: 80px 0;
}
.trainer-modal-img {
    border-radius: 0.3rem;
}

 /* Центрирование всех карточек */
.team-section .row {
    justify-content: center;
}

.team-section .col-lg-4,
.team-section .col-md-6 {
    display: flex;
    justify-content: center;
}

.team-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-align: center;
    max-width: 390px;
    width: 100%;
    height: 570px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
}

.team-card .card-body {
    padding: 25px;
    padding-bottom: 70px;
    flex-grow: 1;
}

.team-card .card-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.team-card .position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-card .card-button-container {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    padding: 0 25px;
    text-align: center;
}

.team-card .btn-outline-primary {
    min-width: 120px;
    margin: 0 auto;
    display: block;
}

.trainer-description {
    white-space: pre-line;
    line-height: 1.7;
    font-size: 16px;
}

.trainer-description p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.trainer-description br {
    display: block;
    content: "";
    margin-bottom: 0.5em;
}

/* Стилизация расписания */
.schedule-section {
    padding: 80px 0;
}

.schedule-carousel .carousel-inner {
    height: 750px;
    border-radius: 10px;
    overflow: hidden;
}

.schedule-carousel .carousel-item {
    height: 100%;
}

.schedule-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #f5f5f5;
}

.caption-indicators {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 10px;
}

.caption-indicators button {
    width: 30px;
    height: 3px;
    padding: 0;
    background-color: #fff;
    border: none;
    border-radius: 0;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.caption-indicators button.active {
    opacity: 1;
}

.caption-indicators button:hover {
    opacity: 0.8;
}

.schedule-caption {
    bottom: 5px;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    border-radius: 10px;
    padding: 8px 20px;
    width: auto;
    left: 20px;
    right: 20px;
    max-width: 400px;
    margin: 0 auto;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.1);
}

.schedule-caption h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
}

.schedule-caption p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.9);
}

.close-modal {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 100px;
    height: 100px;
    border-radius: 0;
    background-color: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1060;
    transition: all 0.3s ease;
    padding: 0;
}

.close-modal:hover {
    color: white;
    transform: scale(1.2);
}

@media (max-width: 991.98px) {
    .schedule-carousel .carousel-inner {
        height: 500px;
    }
}

@media (max-width: 767.98px) {
    .schedule-carousel .carousel-inner {
        height: 400px;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 36px;
    }

    .schedule-caption {
        bottom: 5px;
        max-width: 300px;
        padding: 6px 15px;
    }

    .schedule-caption h5 {
        font-size: 0.95rem;
    }

    .schedule-caption p {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .schedule-carousel .carousel-inner {
        height: 350px;
    }

    .schedule-caption {
        max-width: 250px;
        padding: 5px 12px;
    }

    .schedule-caption h5 {
        font-size: 0.85rem;
    }

    .schedule-caption p {
        font-size: 0.7rem;
    }
}

/*Стилизация таблицы Прайса*/
.price-table {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.price-table .table {
    margin-bottom: 0;
    width: 100%;
}

.price-table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 15px;
}

.price-table th.service-col {
    text-align: left;
    width: 70%;
}

.price-table th.price-col,
.price-table td:nth-child(2) {
    text-align: right;
    width: 30%;
}

.price-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.price-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.price-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Стилизация футера */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo img {
    height: 90px;
    width: auto;
    margin-bottom: 20px;
}

.footer-links h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 90px;
    }
    .hero-section .carousel-item img {
        height: 500px;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand img {
        height: 80px;
    }
    .hero-section .carousel-item img {
        height: 400px;
    }  
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 70px;
    }  
}

/*Виджет карты*/
.yandex-map-wrapper {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yandex-map-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.yandex-map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 600px;
}

.yandex-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none !important;
    border-radius: 10px;
}

.alert-info{
    text-align: center;
}

@media (max-width: 768px) {
    .yandex-map-container {
        height: 400px;
    }

    .yandex-map-wrapper {
        margin: 1.5rem 0;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .yandex-map-container {
        height: 300px;
    }

    .yandex-map-wrapper {
        margin: 1rem 0;
        border-radius: 8px;
    }
}