/* Общие */
body {
    background: rgb(242,242,242);
    font-family: "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* Контейнер - максимум 600px */
.app-wrap {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    padding: 0 12px;
}

/* Белая карточка с контентом */
.card {
    background: #fff;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
    margin-top: -20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.club-title {
    position: relative;
    margin-top: -60px;
    padding: 10px 30px;
    background: #fff;
    border-radius: 14px 14px 0 0;
    width: 80%;
    left: 10%;
}

/* Header */
.top-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 12px;
}

.logo {
    text-align: center;
    margin-bottom: 8px;
}

.logo img {
    width: 100%;
}

.h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.sub {
    color: #8a8a8a;
    font-size: 13px;
    margin-bottom: 14px;
}

/* Дни (горизонтальный скролл) */
.days {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.days .fa-chevron-left {
    margin-right: 8px;
}

.day {
    min-width: 41px;
    height: 66px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.day.active {
    background: #00aaff;
    color: #fff;
    border-color: #00aaff;
}

.day .dow {
    font-size: 14px;
    color: #8a8a8a;
}

.day .rectangle {
    width: 25px;
    height: 2px;
    background: #E6E6E6;
    margin: 4px auto
}

.day.active .dow {
    color: rgba(255, 255, 255, 0.9);
}

.day .num {
    font-weight: 700;
    font-size: 14px;
}

/* Tabs */
.service-filters {
    display: flex;
    margin: 20px 0;
    border-radius: 8px;
    padding: 6px;
}

.service-tab {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

.service-tab.active {
    background: #00aaff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    color: #fff;
}

/* Слоты */
.slots {
    margin-top: 20px;
}

.slot-title {
    font-size: 16px;
    font-weight: bold;
}

.slot-empty {
    font-size: 16px;
    padding: 40px 0 60px;
}

.slots-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 6px;
}

.slot {
    min-width: 72px;
    margin: 6px;
    padding: 10px 20px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    font-weight: 600;
}


.text-left {
    text-align: left;
}

.slot .muted {
    font-size: 12px;
    font-weight: normal;
}


.slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #fafafa;
}

.slot.booked {
    opacity: 0.5;
}

/* Group session cards */
.group-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.group-card {
    flex: 1;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    padding: 12px;
    background: #fff;
    cursor: pointer;
}

.muted {
    color: #9b9b9b;
    font-size: 13px;
}

/* Image carousel styling */
#photoCarousel {
    margin: 20px 0;
}

.carousel-inner > .item > img {
    width: 100%;
    border-radius: 10px;
    max-height: 220px;
    object-fit: cover;
}

/* Descriptions and contact */
.section-title {
    font-weight: 700;
    font-size: 18px;
    margin-top: 14px;
    margin-bottom: 8px;
}

.desc {
    color: #6b6b6b;
    line-height: 1.4;
    font-size: 14px;
}

.contact {
    margin-top: 12px;
    font-size: 14px;
    color: #333;
}

/* Bottom spacing for mobile */
.bottom-space {
    height: 100px;
}

@media (max-width: 768px) {
    .day {
        min-width: 35px;
    }
}

/* Small adjustments for very small screens */
@media (max-width: 380px) {
    .day {
        min-width: 30px;
    }
}

.spinner {
    width: 45px;
    height: 45px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 24px 0 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.modal-lg {
    max-width: 600px;
    margin: 0 auto;
}

.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    padding: 0;
    border-bottom: none;
    position: relative;
}

.modal-header img {
    width: 100%;
    height: auto;
}

.modal-body {
    padding: 20px;
}

#eventModal h5 {
    font-family: Roboto;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;

}

.fade {
    opacity: 0;
    transition: opacity .2s linear;
}

#eventModal .modal-footer {
    display: flex;
    justify-content: space-between;
}

#eventModal .btn-cancel {
    padding: 10px 20px;
}

#eventModal .btn-book {
    background: #00bfff;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    font-weight: bold;
    padding: 10px 60px;
}

#eventModal .btn-book:hover {
    background: #00a5e6;
}

#eventModal .btn-book:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.date-label {
    font-family: Roboto;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    vertical-align: middle;
    margin-right: 30px;
}

.time-label {
    background: #f44336;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: Roboto;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;

}

.event-title {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
}

.event-subtitle {
    color: #555;
    margin-bottom: 15px;
}

.event-block {
    margin-bottom: 20px;
}

.event-address {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;

}

.event-block h5 {
    font-weight: bold;
    margin-bottom: 5px;
}

.event-description-title {
    font-family: Montserrat;
    font-weight: 700;
    font-style: Bold;
    font-size: 16px;
    line-height: 20px;

}

.event-description {
    color: #555;
    line-height: 1.5;
}

.text-error {
    color: #b94a48
}

.invalid input{
    border-color: #f44336;
}

.carousel-control{
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright{
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Montserrat;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    margin-top: 50px;
}
.copyright svg{
    height: 20px;
    margin-left: 10px;
}