/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.header h1 {
    color: #3498db;
    margin-bottom: 10px;
}

.header nav {
    margin-top: 15px;
}

.header nav a {
    display: inline-block;
    margin: 0 15px;
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.header nav a:hover,
.header nav a.active {
    background: #3498db;
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-next, .btn-submit {
    background: #2ecc71;
}

.btn-next:hover, .btn-submit:hover {
    background: #27ae60;
}

.btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.service-price {
    color: #e74c3c;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-desc {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.service-duration {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Booking Form */
.booking-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.service-item {
    border: 2px solid #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.service-item:hover {
    border-color: #3498db;
}

.service-item.selected {
    border-color: #3498db;
    background: #ebf5fb;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.time-slot {
    padding: 12px;
    text-align: center;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot.available:hover {
    border-color: #3498db;
    background: #ebf5fb;
}

.time-slot.selected {
    border-color: #2ecc71;
    background: #e8f8f5;
}

.time-slot.unavailable {
    background: #ecf0f1;
    color: #95a5a6;
    cursor: not-allowed;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    color: #7f8c8d;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* Error messages */
.error-message {
    color: #e74c3c;
    padding: 10px;
    background: #fdedec;
    border-radius: 5px;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header nav a {
        display: block;
        margin: 5px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}