/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* alert message */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 10px;
    border-radius: 5px;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 10px;
    border-radius: 5px;
}

/* Стили для страницы логина админ-панели */
body.login-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Градиент для гармонии */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.login-container {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
    overflow: hidden;
}

.login-card .card-header {
    background: #007bff;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
}

.login-card .card-body {
    padding: 2rem;
}

.login-card .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-card .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

.login-card .input-group-text {
    background: #f8f9fa;
    border-radius: 8px 0 0 8px;
    border: 1px solid #ced4da;
    color: #6c757d;
}

.login-card .btn-primary {
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.login-card .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.login-card .alert {
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.toggle-password {
    cursor: pointer;
    user-select: none;
}

/* Анимация появления карточки */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 576px) {
    .login-card {
        margin: 1rem;
        max-width: 100%;
    }

    .login-card .card-body {
        padding: 1.5rem;
    }
}

/* about */
/* Стили для flatpickr */
.flatpickr-input[readonly] {
    background-color: #fff;
    cursor: pointer;
}
.flatpickr-calendar {
    z-index: 1066 !important;
}
.has-unavailable-day {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    cursor: not-allowed !important;
}

/* Стили для страницы About */
.about-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.about-icon {
    font-size: 2.5rem;
    color: #212529;
}
h2, h3, h5 {
    color: #212529;
}
.text-muted {
    color: #6c757d !important;
}

.gallery-card {
    transition: transform 0.3s ease;
}

.gallery-card img {
    object-fit: cover;
    height: 300px; /* Фиксированная высота для единообразия */
    width: 100%;
    border-radius: 8px;
}

.gallery-card:hover {
    transform: translateY(-5px); /* Лёгкий эффект подъёма при наведении */
}

@media (max-width: 576px) {
    .gallery-card img {
        height: 350px; /* Увеличенная высота на мобильных для лучшей видимости */
        /* width: 50%; */
    }
}

/* Стили для раздела оборудования */
.equipment-section {
    padding: 2rem 0;
}
.equipment-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.equipment-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
@media (max-width: 767px) {
    .about-card, .equipment-card {
        margin-bottom: 1.5rem;
    }
    .equipment-img {
        height: 150px;
    }
}
/* Footer */
main {
    flex: 1 0 auto; /* Контент занимает всё пространство */
}

.footer {
    flex-shrink: 0; /* Футер не сжимается */
    background-color: #000;
    color: #fff;
    padding: 3rem 0 1.5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    opacity: 0.3;
}

.footer-brand {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-brand:hover {
    color: #e0e0e0 !important;
}

.footer-text {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
}

.footer-nav li a {
    color: #fff !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-nav li a:hover {
    color: #e0e0e0 !important;
}

.footer-social li a {
    color: #fff !important;
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-right: 1rem;
}

.footer-social li a:hover {
    color: #e0e0e0 !important;
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 0.8rem;
    color: #e0e0e0;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    color: #fff;
    margin: 0;
}

.hero-section p {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin: 1rem 0;
}

/* Navigation */
.navbar {
    background-color: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #e0e0e0 !important;
}

.brand-text {
    text-transform: uppercase;
}

.navbar-nav {
    gap: 1.5rem;
}

.nav-link {
    color: #fff !important;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #e0e0e0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Language Dropdown */
.dropdown-toggle {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: #fff;
    border: 1px solid #fff;
    background: transparent;
    transition: background 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    background: #000;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    color: #fff;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.lang-current {
    text-transform: uppercase;
}

/* Buttons */
.btn-booking {
    background-color: #fff;
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-booking:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.glow-effect:hover::before {
    left: 100%;
}

.btn-icon {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn-icon:hover {
    background: #fff;
    color: #000;
}

.animate-pulse:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

/* Service Cards */
/* Стили для карточек */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    max-width: 280px; /* Компактная ширина карточки */
    margin: 0 auto; /* Центрируем карточку в колонке */
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.card-img-top {
    height: 300px; /* Уменьшенная высота изображения */
    width: 100%;
    object-fit: cover; /* Изображение заполняет контейнер */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.3s ease;
}
.service-card:hover .card-img-top {
    transform: scale(1.05);
}
.card-body {
    padding: 12px;
}
.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.card-text {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
}
.card-duration {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}
.btn-booking.select-service {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 5px;
}

/* Стили для кнопок переключения */
.category-buttons {
    text-align: center;
    margin-bottom: 20px;
}
.category-btn {
    font-size: 1rem;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    border: none;
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.category-btn:hover {
    background-color: #e0e0e0;
}
.category-btn.active {
    background-color:  linear-gradient(90deg, transparent, rgba(98, 98, 98, 0.3), transparent);
    /* color: #fff; */
}
.category-section {
    display: none;
}
.category-section.active {
    display: block;
}

/* Адаптивная сетка для карточек */
.row.g-3 {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.col-md-4, .col-sm-6 {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px; /* Отступ между карточками */
}
@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%; /* 3 карточки в ряд на десктопе */
        max-width: 33.333333%;
    }
}
@media (min-width: 576px) and (max-width: 767.98px) {
    .col-sm-6 {
        flex: 0 0 50%; /* 2 карточки в ряд на планшете */
        max-width: 50%;
    }
}
@media (max-width: 575.98px) {
    .col-sm-6 {
        flex: 0 0 100%; /* 1 карточка в ряд на мобильном */
        max-width: 100%;
    }
    .service-card {
        max-width: 100%; /* Полная ширина на мобильных */
    }
    .card-img-top {
        height: 120px; /* Меньше высота для мобильных */
    }
    .card-title {
        font-size: 0.95rem;
    }
    .card-text {
        font-size: 0.85rem;
    }
    .card-duration {
        font-size: 0.75rem;
    }
    .btn-booking.select-service {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

    /* contacts */
    /* Стили для flatpickr */
.flatpickr-input[readonly] {
    background-color: #fff;
    cursor: pointer;
}
.flatpickr-calendar {
    z-index: 1066 !important;
}
.has-unavailable-day {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    cursor: not-allowed !important;
}

/* Стили для страницы About */
.about-card, .contact-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover, .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.about-icon, .contact-icon {
    font-size: 2.5rem;
    color: #212529;
    transition: transform 0.3s ease;
}
.contact-icon:hover {
    animation: pulse 0.6s infinite alternate;
}
@keyframes pulse {
    to { transform: scale(1.1); }
}
h2, h3, h5 {
    color: #212529;
}
.text-muted {
    color: #6c757d !important;
}

/* Стили для раздела оборудования */
.equipment-section {
    padding: 2rem 0;
}
.equipment-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.equipment-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Стили для страницы Contacts */
.contact-section, .map-section, .form-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.contact-section.visible, .map-section.visible, .form-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.contact-form {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}
#map {
    z-index: 1; /* Низкий z-index, чтобы не перекрывать модальные окна */
}
@media (max-width: 767px) {
    .about-card, .contact-card, .equipment-card {
        margin-bottom: 1.5rem;
    }
    .equipment-img {
        height: 150px;
    }
    #map {
        height: 300px;
    }
}

/* Services Carousel */
#servicesCarousel .carousel-inner {
    padding: 0 10px;
}

#servicesCarousel .carousel-item {
    transition: transform 0.5s ease;
}

#servicesCarousel .d-flex {
    gap: 15px;
    justify-content: center;
}

#servicesCarousel .col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background: rgba(87, 87, 87, 0.021);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 50%;
}

@media (max-width: 768px) {
    #servicesCarousel .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    #servicesCarousel .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* About Section Image */
.about-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    max-width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .about-image {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .about-image {
        max-width: 100%;
    }
}

/* Booking Panel */
.booking-panel {
    background-color: #fff;
    width: 400px;
    height: 100%;
    position: fixed;
    top: 0;
    right: -400px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

.booking-panel.open {
    right: 0;
}

.booking-content {
    padding: 2rem;
}

.booking-panel h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1.5rem;
}

.btn-close {
    background: none;
    color: #000 !important;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.btn-close:hover {
    opacity: 1;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #000 !important;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    outline: none;
}

.text-danger {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

#calendar {
    max-width: 100%;
}

.flatpickr-calendar {
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }

    .btn-booking {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        width: 100%;
        margin-bottom: 1rem;
    }

    .btn-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .service-card img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .booking-panel {
        width: 100%;
        right: -100%;
    }

    .booking-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .service-card img {
        height: 150px;
    }

    .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .btn-icon {
        margin-bottom: 0.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-brand {
        font-size: 1.3rem;
    }

    .footer-text,
    .footer-nav li a {
        font-size: 0.85rem;
    }

    .footer-social li a {
        font-size: 1.2rem;
    }
}