:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --gray-color: #6c757d;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-top: 15px;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(41, 128, 185, 0.05) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.specialist-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    background: white;
    margin-top: 30px;
}

.specialist-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.specialist-image:hover img {
    transform: scale(1.05);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Advantages Section */
.advantages-section {
    background-color: white;
}

.advantage-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.5rem;
}

.advantage-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.advantage-card p {
    color: var(--gray-color);
    font-size: 1.05rem;
}

/* Booking Form */
.booking-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.booking-form-container .card {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    border: none;
}

.booking-form-container .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 25px 30px;
    text-align: center;
}

.booking-form-container .card-header h3 {
    font-weight: 700;
    font-size: 1.8rem;
}

.booking-form-container .card-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 1.05rem;
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-control-lg {
    padding: 16px 25px;
    font-size: 1.1rem;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Emergency Button */
.emergency-btn {
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

.emergency-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.6);
}

.emergency-btn i {
    font-size: 1.2rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.6);
}

/* Calendar Widget */
.calendar-widget .card {
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    border: none;
    overflow: hidden;
}

.calendar-widget .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0 !important;
}

#booking-calendar {
    padding: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a2530 100%);
    color: rgba(255,255,255,0.8);
    padding: 70px 0 30px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
}

.footer .copyright a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer .copyright a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .emergency-btn {
        bottom: 100px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .booking-form-container .card-body {
        padding: 25px;
    }
    
    .advantage-card {
        padding: 25px 15px;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .emergency-btn {
        bottom: 80px;
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .header.scrolled {
        padding: 5px 0;
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calendar Custom Styles */
.fc-theme-bootstrap .fc-col-header-cell-cushion {
    font-weight: 700;
    color: var(--dark-color);
}

.fc-theme-bootstrap .fc-daygrid-day-number {
    font-weight: 600;
}

.fc-timegrid-slot-label-cushion {
    font-weight: 500;
    color: var(--gray-color);
}

.fc-event {
    border-radius: 4px;
    padding: 0 4px !important;
    font-size: 0.85rem;
    margin: 1px 0 !important;
    cursor: pointer;
}

.fc-event.available-slot {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
}

.fc-event.booked-slot {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    opacity: 0.7;
}

/* Success Modal */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-radius: 20px 20px 0 0 !important;
}

.modal-body {
    padding: 30px;
}

/* Voice Input Button */
.voice-input-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.voice-input-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.voice-input-btn.recording {
    background: var(--accent-color);
    animation: pulse 1.5s infinite;
}

/* Telegram Input Styles */
input[name="telegram"] {
    background: rgba(231, 76, 60, 0.05);
    border-color: rgba(231, 76, 60, 0.2);
}

input[name="telegram"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25);
}