* { 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: #f4f4f4; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; width: 100%; }
header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 40px 0; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
header h1 { font-size: 2.5em; margin-bottom: 10px; }
header p { font-size: 1.2em; opacity: 0.9; }
.services { background: white; margin: 30px 0; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.services h2 { color: #667eea; margin-bottom: 20px; text-align: center; }
.services ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.services li { padding: 15px; background: #f8f9ff; border-left: 4px solid #667eea; border-radius: 5px; }
.services li:before { content: "✓ "; color: #667eea; font-weight: bold; margin-right: 10px; }
.form-section { background: white; margin: 30px 0; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.form-section h2 { color: #667eea; margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #555; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 2px solid #e0e0e0; border-radius: 5px; font-size: 1em; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #667eea; }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px 40px; border: none; border-radius: 5px; font-size: 1.1em; cursor: pointer; transition: transform 0.2s; width: 100%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); }
.calendar-section { background: white; margin: 30px 0; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); overflow-x: auto; }
.calendar-section h2 { color: #667eea; margin-bottom: 20px; text-align: center; }
#calendar { margin: 20px 0; overflow-x: auto; }
#calendar table { width: 100%; min-width: 280px; border-collapse: collapse; }
#calendar th, #calendar td { padding: 10px 5px; font-size: 0.9em; }
.calendar-legend { display: flex; gap: 20px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-color { width: 20px; height: 20px; border-radius: 3px; }
.free { background: #4caf50; }
.busy { background: #f44336; }
.contact { background: white; margin: 30px 0; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); text-align: center; }
.contact h2 { color: #667eea; margin-bottom: 20px; }
.contact p { font-size: 1.2em; margin: 10px 0; word-break: break-word; }
.contact a { color: #667eea; text-decoration: none; }
.contact a:hover { text-decoration: underline; }
footer { text-align: center; padding: 20px; background: #333; color: white; margin-top: 40px; }
.message { padding: 15px; margin: 20px 0; border-radius: 5px; display: none; }
.message.success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.message.error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }

/* Мобильная адаптация */
@media (max-width: 768px) {
    header h1 { font-size: 1.8em; }
    header p { font-size: 1em; }
    .container { padding: 10px; }
    .services, .form-section, .calendar-section, .contact { padding: 20px; margin: 15px 0; }
    .services ul { grid-template-columns: 1fr; gap: 15px; }
    .btn { padding: 12px 20px; font-size: 1em; }
    #calendar th, #calendar td { padding: 8px 3px; font-size: 0.85em; }
    .contact p { font-size: 1em; }
}

@media (max-width: 480px) {
    header h1 { font-size: 1.5em; }
    header { padding: 20px 10px; }
    .services, .form-section, .calendar-section, .contact { padding: 15px; }
    #calendar th, #calendar td { padding: 6px 2px; font-size: 0.8em; }
}
