/* ========== ОСНОВНЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0b1a2e 0%, #132b3c 100%);
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ========== ВЕРТИКАЛЬНАЯ НАВИГАЦИЯ ========== */
.vertical-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(100, 200, 255, 0.3);
    border: 2px solid rgba(100, 200, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover {
    background: #64c8ff;
    transform: scale(1.3);
    box-shadow: 0 0 20px #64c8ff;
}

.nav-dot.active {
    background: #64c8ff;
    box-shadow: 0 0 20px #64c8ff;
    transform: scale(1.2);
}

.nav-dot::before {
    content: attr(data-title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 26, 46, 0.9);
    color: #64c8ff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #64c8ff;
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.3);
}

.nav-dot:hover::before {
    opacity: 1;
    visibility: visible;
    right: 35px;
}

/* ========== АНИМИРОВАННЫЙ ФОН ========== */
.floating-flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.flower {
    position: absolute;
    color: rgba(100, 200, 255, 0.15);
    font-size: 3rem;
    animation: float-flower 20s infinite linear;
}

.flower:nth-child(1) { top: 10%; left: 5%; animation-duration: 25s; animation-delay: 0s; font-size: 4rem; }
.flower:nth-child(2) { top: 70%; left: 15%; animation-duration: 22s; animation-delay: 2s; font-size: 3.5rem; }
.flower:nth-child(3) { top: 30%; right: 10%; animation-duration: 28s; animation-delay: 4s; font-size: 5rem; }
.flower:nth-child(4) { bottom: 20%; right: 20%; animation-duration: 24s; animation-delay: 1s; font-size: 4.5rem; }
.flower:nth-child(5) { top: 50%; left: 30%; animation-duration: 30s; animation-delay: 3s; font-size: 3.8rem; }
.flower:nth-child(6) { bottom: 40%; right: 40%; animation-duration: 26s; animation-delay: 5s; font-size: 4.2rem; }
.flower:nth-child(7) { top: 80%; left: 70%; animation-duration: 23s; animation-delay: 2.5s; font-size: 3.2rem; }
.flower:nth-child(8) { top: 15%; right: 30%; animation-duration: 27s; animation-delay: 3.5s; font-size: 4.8rem; }
.flower:nth-child(9) { bottom: 60%; left: 50%; animation-duration: 29s; animation-delay: 1.5s; font-size: 3.6rem; }
.flower:nth-child(10) { bottom: 10%; right: 5%; animation-duration: 21s; animation-delay: 4.5s; font-size: 4rem; }

@keyframes float-flower {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    50% {
        transform: translate(100px, -100px) rotate(180deg) scale(1.2);
        opacity: 0.3;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translate(200px, -200px) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* ========== ЧАСТИЦЫ ========== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #64c8ff;
    border-radius: 50%;
    box-shadow: 0 0 15px #64c8ff, 0 0 30px #64c8ff;
    animation: float-particle 10s infinite linear;
}

.particle:nth-child(11) { left: 25%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(12) { left: 35%; animation-duration: 15s; animation-delay: 2s; width: 6px; height: 6px; }
.particle:nth-child(13) { left: 45%; animation-duration: 18s; animation-delay: 4s; }
.particle:nth-child(14) { left: 55%; animation-duration: 14s; animation-delay: 1s; width: 5px; height: 5px; }
.particle:nth-child(15) { left: 65%; animation-duration: 16s; animation-delay: 3s; }
.particle:nth-child(16) { left: 75%; animation-duration: 13s; animation-delay: 5s; width: 7px; height: 7px; }
.particle:nth-child(17) { left: 85%; animation-duration: 17s; animation-delay: 2s; }
.particle:nth-child(18) { left: 95%; animation-duration: 19s; animation-delay: 4s; width: 5px; height: 5px; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

/* ========== НАВИГАЦИЯ ========== */
.elegant-nav {
    background: rgba(11, 26, 46, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    padding: 15px 0;
    transition: all 0.3s ease;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.elegant-nav.scrolled {
    padding: 10px 0;
    background: rgba(11, 26, 46, 0.95);
    box-shadow: 0 5px 30px rgba(100, 200, 255, 0.2);
}

.navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.6rem;
    background: linear-gradient(45deg, #64c8ff, #a67cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: fadeInRight 0.8s ease-out;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
    white-space: nowrap;
    margin-right: 30px;
}

.navbar-brand .brand-text {
    font-size: 1.2rem;
    font-weight: 500;
    background: linear-gradient(45deg, #64c8ff, #a67cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand i {
    background: linear-gradient(45deg, #64c8ff, #a67cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 8px;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 12px;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #64c8ff, #a67cff);
    transition: width 0.3s ease;
    box-shadow: 0 0 15px #64c8ff;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: #64c8ff !important;
    transform: translateY(-2px);
    text-shadow: 0 0 20px #64c8ff;
}

/* ========== БЛОК АВТОРИЗАЦИИ ========== */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid rgba(100, 200, 255, 0.3);
}

.auth-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.auth-link:hover {
    color: #64c8ff;
    transform: translateY(-2px);
    text-shadow: 0 0 10px #64c8ff;
}

.auth-link i {
    margin-right: 6px;
    color: #64c8ff;
}

.btn-auth {
    background: linear-gradient(45deg, #64c8ff, #a67cff);
    border: none;
    color: #0b1a2e;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(100, 200, 255, 0.3);
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(100, 200, 255, 0.5);
    color: #0b1a2e;
}

/* ========== КАРТОЧКИ ========== */
.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 25px;
    border: 1px solid rgba(100, 200, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ========== КНОПКИ ========== */
.btn-elegant {
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    border: 2px solid #64c8ff;
    color: #64c8ff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
}

.btn-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #64c8ff, #a67cff);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-elegant:hover::before {
    left: 0;
}

.btn-elegant:hover {
    color: #0b1a2e;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(100, 200, 255, 0.4);
    border-color: transparent;
}

.btn-elegant-solid {
    background: linear-gradient(45deg, #64c8ff, #a67cff);
    border: 2px solid transparent;
    color: #0b1a2e;
    font-weight: 700;
    text-shadow: none;
}

.btn-elegant-solid::before {
    display: none;
}

.btn-elegant-solid:hover {
    background: linear-gradient(45deg, #7ad2ff, #b894ff);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(100, 200, 255, 0.5);
    color: #0b1a2e;
}

/* ========== КАРТОЧКИ УСЛУГ ========== */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 25px;
    border: 1px solid rgba(100, 200, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #64c8ff, #a67cff);
    transition: left 0.5s ease;
    z-index: 0;
    opacity: 0;
}

.service-card:hover::before {
    left: 0;
    opacity: 0.15;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #64c8ff;
    box-shadow: 0 20px 40px rgba(100, 200, 255, 0.2);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* ========== ВЫПАДАЮЩЕЕ МЕНЮ ========== */
.service-card .dropdown-menu {
    background: rgba(11, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 15px;
    padding: 8px 0;
}

.service-card .dropdown-item {
    color: #ffffff;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.service-card .dropdown-item:hover {
    background: linear-gradient(45deg, #64c8ff, #a67cff);
    color: #0b1a2e;
}

.service-card .dropdown-item i {
    width: 20px;
    margin-right: 10px;
    color: #64c8ff;
}

.service-card .dropdown-item.text-danger {
    color: #ff6b6b;
}

.service-card .dropdown-item.text-danger:hover {
    background: #dc3545;
    color: white;
}

/* ========== ЗАГОЛОВКИ ========== */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #64c8ff, #a67cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
}

/* ========== ФОРМЫ ========== */
.form-control-custom {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 15px;
    padding: 12px 15px;
    color: white;
    width: 100%;
}

.form-control-custom:focus {
    outline: none;
    border-color: #64c8ff;
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.3);
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.modal-content-custom {
    background: linear-gradient(135deg, #0b1a2e 0%, #132b3c 100%);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 30px;
}

.modal-header {
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
}

.modal-footer {
    border-top: 1px solid rgba(100, 200, 255, 0.2);
}

/* ========== ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ ========== */
.flash-messages-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 99999;
    max-width: 350px;
    pointer-events: none;
}

.alert-custom {
    background: rgba(11, 26, 46, 0.98);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(100, 200, 255, 0.5);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    animation: slideInRight 0.3s ease-out;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    border-left: 6px solid;
}

.alert-custom.success {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.2);
}

.alert-custom.danger {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.2);
}

.alert-custom.warning {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.2);
}

.alert-custom.info {
    border-left-color: #17a2b8;
    background: rgba(23, 162, 184, 0.2);
}

.alert-custom i {
    margin-right: 12px;
    font-size: 1.4rem;
}

.alert-custom .btn-close-custom {
    background: transparent;
    border: none;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0 8px;
    transition: all 0.3s ease;
}

.alert-custom .btn-close-custom:hover {
    opacity: 1;
    transform: scale(1.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
        display: none;
    }
}

.alert-custom.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/* ========== ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ - УСИЛЕННЫЙ ПРИОРИТЕТ ========== */
.flash-messages-container {
    position: fixed !important;
    top: 100px !important;
    right: 20px !important;
    z-index: 999999 !important;
    max-width: 350px;
    pointer-events: none;
}

.alert-custom {
    background: rgba(11, 26, 46, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(100, 200, 255, 0.5) !important;
    border-radius: 15px !important;
    padding: 15px 20px !important;
    margin-bottom: 10px !important;
    color: white !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8) !important;
    animation: slideInRight 0.3s ease-out !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-weight: 500 !important;
    border-left: 6px solid !important;
    position: relative !important;
}

/* Убеждаемся, что модальные окна и навигация не перекрывают */
.modal {
    z-index: 1000 !important;
}

.modal-backdrop {
    z-index: 999 !important;
}

.navbar {
    z-index: 1000 !important;
}

/* ========== ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ - МАКСИМАЛЬНЫЙ ПРИОРИТЕТ ========== */
.flash-messages-container {
    position: fixed !important;
    top: 100px !important;
    right: 20px !important;
    z-index: 9999999 !important;
    max-width: 350px;
    pointer-events: none;
}

.alert-custom {
    background: rgba(11, 26, 46, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(100, 200, 255, 0.5) !important;
    border-radius: 15px !important;
    padding: 15px 20px !important;
    margin-bottom: 10px !important;
    color: white !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8) !important;
    animation: slideInRight 0.3s ease-out !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-weight: 500 !important;
    border-left: 6px solid !important;
    width: auto !important;
}

.alert-custom.success { border-left-color: #28a745 !important; }
.alert-custom.danger { border-left-color: #dc3545 !important; }
.alert-custom.warning { border-left-color: #ffc107 !important; }
.alert-custom.info { border-left-color: #17a2b8 !important; }

.alert-custom i { margin-right: 12px; font-size: 1.4rem; }

.alert-custom .btn-close-custom {
    background: transparent;
    border: none;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0 8px;
    transition: all 0.3s ease;
}

.alert-custom .btn-close-custom:hover { opacity: 1; transform: scale(1.2); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}

.alert-custom.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/* ===== FLUID LAYOUT - АДАПТАЦИЯ ПОД ЛЮБЫЕ УСТРОЙСТВА ===== */

/* Отключаем горизонтальный скролл */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Fluid типографика */
h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 3.5vw, 1.5rem); }
body, p, span, li, a { font-size: clamp(14px, 2.5vw, 16px); }

/* Минимальный размер кнопок */
button, .btn, [role="button"], .btn-elegant {
    min-width: 44px;
    min-height: 44px;
}

/* Все изображения адаптивны */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Гибкая сетка */
.masters-grid, .stats-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

/* Блок Telegram бота — резиновый */
.telegram-block, .telegram-bot-section, [class*="telegram"] {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Адаптивные колонки */
@media (max-width: 768px) {
    .row, .d-flex {
        flex-direction: column;
    }
    .col-md-6, .col-md-4, .col-md-3 {
        width: 100%;
    }
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ - ДОПОЛНЕНИЯ ========== */

/* Отключаем вертикальную навигацию на мобильных */
@media (max-width: 768px) {
    .vertical-nav {
        display: none;
    }
}

/* Отключаем анимированный фон на мобильных для производительности */
@media (max-width: 768px) {
    .floating-flowers,
    .particles {
        display: none;
    }
}

/* Бургер-меню */
.navbar-toggler {
    border-color: #64c8ff;
    background: rgba(100, 200, 255, 0.1);
}

.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='%2364c8ff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Мобильная навигация */
@media (max-width: 768px) {
    .navbar-collapse {
        background: rgba(11, 26, 46, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 20px;
        padding: 15px;
        margin-top: 10px;
        border: 1px solid rgba(100, 200, 255, 0.2);
    }
    
    .auth-buttons {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
        flex-wrap: wrap;
    }
    
    .navbar-brand {
        white-space: normal;
        text-align: center;
        margin-right: 0;
    }
}

/* Адаптивные карточки */
@media (max-width: 576px) {
    .service-card {
        padding: 15px;
    }
    
    .auth-card {
        padding: 15px;
        margin: 10px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* Таблицы с прокруткой */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Улучшение читаемости на мобильных */
@media (max-width: 576px) {
    .text-white-50 {
        font-size: 0.8rem;
    }
    
    .badge, .role-badge, .status-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Отступы для модальных окон на мобильных */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* Карточки в 2 колонки на планшетах */
@media (min-width: 577px) and (max-width: 992px) {
    .services-grid,
    .masters-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Карточки в 1 колонку на телефонах */
@media (max-width: 576px) {
    .services-grid,
    .masters-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Кнопки на всю ширину на мобильных */
@media (max-width: 576px) {
    .btn-elegant,
    .back-btn,
    .save-btn,
    .btn-book,
    .add-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 8px;
    }
    
    .d-flex.gap-2 .btn-elegant,
    .d-flex.gap-2 .back-btn {
        width: 100%;
    }
}

/* ========== АДАПТАЦИЯ КАЛЕНДАРЯ ========== */

/* Календарь мастера и клиента */
.calendar-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.calendar-grid {
    min-width: 600px;
}

@media (max-width: 768px) {
    .calendar-container {
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    .calendar-header h3 {
        font-size: 1.1rem;
    }
    
    .calendar-header .btn-elegant {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .calendar-day {
        min-height: 70px;
        padding: 5px;
    }
    
    .calendar-day-number {
        font-size: 0.8rem;
    }
    
    .appointment-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}

/* Список записей под календарём */
.appointments-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.appointment-item {
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .appointment-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .appointment-time {
        min-width: auto;
    }
    
    .appointment-info {
        margin-left: 0;
    }
    
    .appointment-status {
        align-self: center;
    }
}

/* ========== СТИЛИ ДЛЯ ШАГОВ (ПЕРЕНОС ИЗ beauty-connect-full.css) ========== */
.elegant-step-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 35px;
    padding: 55px 30px;
    text-align: center;
    border: 1px solid rgba(100, 200, 255, 0.2);
    transition: all 0.4s ease;
    height: 100%;
}

.elegant-step-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #64c8ff, #a67cff, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.elegant-step-card:hover {
    transform: translateY(-10px);
    border-color: #64c8ff;
    box-shadow: 0 25px 50px rgba(100, 200, 255, 0.25);
}

.elegant-step-card:hover::after {
    transform: scaleX(1);
}

.elegant-step-card:hover .step-number-elegant {
    background: #64c8ff;
    color: #0b1a2e;
    border-color: #64c8ff;
}

.elegant-step-card:hover .elegant-step-icon {
    transform: scale(1.15);
}

.step-number-elegant {
    position: absolute;
    top: -18px;
    left: 25px;
    font-size: 1rem;
    font-weight: 700;
    color: #64c8ff;
    background: rgba(11, 26, 46, 0.95);
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid #64c8ff;
    transition: all 0.3s ease;
}

.elegant-step-icon {
    font-size: 4.5rem;
    margin-bottom: 25px;
    color: #64c8ff;
    transition: all 0.3s ease;
}

.elegant-step-card h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.elegant-step-card p {
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .elegant-step-card {
        padding: 40px 20px;
    }
    
    .elegant-step-icon {
        font-size: 3.5rem;
    }
    
    .elegant-step-card h4 {
        font-size: 1.5rem;
    }
    
    .elegant-step-card p {
        font-size: 0.95rem;
    }
}


