/* Общие стили */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1a1a1a;
    padding-top: 0;
}

/* Верхний бар с контактами */
.top-bar {
    background: #000;
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .top-bar-right {
        justify-content: flex-end;
    }
}

.top-bar-booking-btn {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.top-bar-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.4);
}

.top-bar-booking-btn i {
    font-size: 1.1rem;
}

.top-bar-item i {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* Анимация пульсации для иконок телефона и геолокации */
.top-bar-link .pulse-icon {
    animation: icon-pulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

.top-bar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.top-bar-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-link:hover {
    color: white;
    opacity: 0.8;
    text-decoration: underline;
}

.address-link {
    cursor: pointer;
}

/* Слайдер */
.slider-section {
    position: relative;
    margin-bottom: 0;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
}

#galleryCarousel {
    max-height: 600px;
    overflow: hidden;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
}

#galleryCarousel .carousel-item {
    max-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
}

#galleryCarousel .carousel-item img {
    max-width: 100%;
    height: 600px;
    width: auto;
    object-fit: contain;
    object-position: center;
}



#galleryCarousel .carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1.5rem;
    border-radius: 8px;
    bottom: 20px;
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

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

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

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

#galleryCarousel .carousel-indicators {
    margin-bottom: 20px;
}

#galleryCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
}

#galleryCarousel .carousel-indicators button.active {
    background-color: white;
}

/* Карточки */
.info-card, .booking-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: #0d6efd;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.map-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

/* Форма */
.services-select {
    width: 100%;
    min-height: 150px;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #fff;
    transition: all 0.3s ease;
}

.services-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.services-select option {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.selected-services-info {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem;
}

.selected-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-service-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 4px;
    border-left: 3px solid #0d6efd;
}

.selected-service-item .service-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.selected-service-item .service-details {
    font-size: 0.875rem;
    color: #666;
}

.services-select option:hover {
    background-color: #f8f9ff;
}

.services-select option:checked {
    background-color: #0d6efd;
    color: white;
}

/* Улучшения для мобильных устройств */
@media (max-width: 768px) {
    .services-select {
        min-height: 200px;
        font-size: 1rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        padding: 0.75rem;
    }
    
    .services-select option {
        padding: 1rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .selected-services-info {
        padding: 0.5rem;
    }
    
    .selected-service-item {
        padding: 0.75rem;
    }
    
    .selected-service-item .service-name {
        font-size: 0.95rem;
    }
    
    .selected-service-item .service-details {
        font-size: 0.8rem;
    }
}

.form-control:focus,
.form-check-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 0.75rem 2rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Анимация загрузки */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .top-bar {
        padding: 0.75rem 0;
    }
    
    .top-bar-title {
        font-size: 1.2rem;
    }
    
    .top-bar-item {
        font-size: 0.85rem;
    }
    
    .top-bar-item i {
        font-size: 0.9rem;
    }
    
    #galleryCarousel {
        max-height: 400px;
    }
    
    #galleryCarousel .carousel-item {
        max-height: 400px;
    }
    
    #galleryCarousel .carousel-item img {
        height: 400px;
    }
    
    #galleryCarousel .carousel-control-prev,
    #galleryCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    #galleryCarousel .carousel-control-prev {
        left: 10px;
    }
    
    #galleryCarousel .carousel-control-next {
        right: 10px;
    }
    
    
    .services-select {
        min-height: 250px;
        font-size: 1.1rem;
    }
    
    .services-select option {
        padding: 1.2rem;
        min-height: 50px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .top-bar-title {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .top-bar-item {
        font-size: 0.85rem;
        justify-content: flex-start;
    }
    
    .top-bar-right {
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .top-bar-title {
        font-size: 1rem;
    }
    
    .top-bar-item {
        font-size: 0.75rem;
    }
    
    .top-bar-item span {
        word-break: break-word;
    }
    
    #galleryCarousel {
        max-height: 300px;
    }
    
    #galleryCarousel .carousel-item {
        max-height: 300px;
    }
    
    #galleryCarousel .carousel-item img {
        height: 300px;
        object-fit: cover;
    }
    
    .top-bar-booking-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Валидация формы */
.was-validated .form-control:invalid,
.was-validated .form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-control:valid,
.was-validated .form-control:valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Модальные окна */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-body {
    padding: 3rem 2rem;
}

/* Улучшения для производительности */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Улучшения доступности */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Футер */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.site-footer .container {
    max-width: 1200px;
}

/* Секция услуг */
.footer-services-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.footer-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: center;
}

.footer-services-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 1rem 0 2rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.footer-services-grid::-webkit-scrollbar {
    height: 8px;
}

.footer-services-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.footer-services-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.footer-services-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.footer-service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 0 0 300px;
    min-width: 280px;
    max-width: 350px;
}

.footer-service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.service-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Секция преимуществ */
.footer-advantages-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.footer-advantages-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 1rem 0 2rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.footer-advantages-grid::-webkit-scrollbar {
    height: 8px;
}

.footer-advantages-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.footer-advantages-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.footer-advantages-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.footer-advantage-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 0 0 300px;
    min-width: 280px;
    max-width: 350px;
}

.footer-advantage-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.advantage-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.advantage-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Секция призыва к действию */
.footer-cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Каунтер в CTA-секции */
.footer-cta-counter {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.cta-counter-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cta-counter-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cta-counter-badge i {
    font-size: 2.5rem;
    color: #fff;
    flex-shrink: 0;
}

.counter-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.counter-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.counter-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.counter-value span:first-child {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.counter-value #today-count {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.counter-value .counter-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-cta-buttons .btn {
    min-width: 200px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: 600;
}

.footer-cta-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
}

.footer-cta-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
}

/* Анимация для кнопки "Записаться онлайн" */
.footer-cta-buttons .booking-btn-animated {
    position: relative !important;
    animation: pulse-glow 2s ease-in-out infinite !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.6), 0 0 75px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
}

.footer-cta-buttons .booking-btn-animated:hover {
    animation: none !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 0 35px rgba(255, 255, 255, 1), 0 0 70px rgba(255, 255, 255, 0.8), 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 1) !important;
}

.footer-cta-buttons .booking-btn-animated i {
    animation: bounce-icon 1.5s ease-in-out infinite !important;
    display: inline-block !important;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.6), 0 0 75px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 35px rgba(255, 255, 255, 1), 0 0 70px rgba(255, 255, 255, 0.8), 0 0 100px rgba(255, 255, 255, 0.6);
    }
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.1);
    }
}

.footer-description p {
    margin-bottom: 1rem;
}

.footer-ip-info {
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-ip-info strong {
    color: #fff;
}

.footer-ip-info p {
    margin: 0;
}

.footer-ip-info span {
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0 1.5rem;
        margin-top: 2rem;
    }
    
    .footer-section-title {
        font-size: 1.5rem;
    }
    
    .footer-services-grid {
        gap: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .footer-service-card {
        flex: 0 0 280px;
        min-width: 250px;
        padding: 1.5rem;
    }
    
    .footer-advantages-grid {
        gap: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .footer-advantage-card {
        flex: 0 0 280px;
        min-width: 250px;
        padding: 1.5rem;
    }
    
    .footer-advantage-card {
        padding: 1.5rem;
    }
    
    .footer-cta-section {
        padding: 2rem 1.5rem;
    }
    
    .footer-cta-title {
        font-size: 1.25rem;
    }
    
    .footer-cta-text {
        font-size: 1rem;
    }
    
    .footer-cta-buttons {
        flex-direction: column;
    }
    
    .footer-cta-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .cta-counter-badge {
        padding: 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .cta-counter-badge i {
        font-size: 2rem;
    }
    
    .counter-value #today-count {
        font-size: 1.75rem;
    }
    
    .counter-label {
        font-size: 0.9rem;
    }
    
    .footer-ip-info {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
    
    .footer-ip-info p {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .footer-ip-info span {
        margin: 0;
    }
}

