/* Основные стили сайта */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #f11212;
    --text-color: #333333;
    --border-color: #cccccc;
    --background-color: #fefefe;
    --font-family-primary: 'GothamPro', Arial, sans-serif;
    --font-family-medium: 'GothamPro-Medium', Arial, sans-serif;
    --font-family-light: 'GothamPro-Light', Arial, sans-serif;
}

/* Общие стили */
body {
    background: var(--background-color);
    font-family: var(--font-family-primary);
    color: var(--text-color);
    line-height: 1.6;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-medium);
    margin-bottom: 1rem;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Формы */
.form-container {
    margin-top: 20px;
}

.form-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.form-label {
    width: 20%;
    font-family: var(--font-family-primary);
    margin-right: 10px;
}

.form-input {
    width: 300px;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.btn-primary-custom {
    background: var(--primary-color);
    border: none;
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-family-primary);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary-custom:hover {
    background: #333333;
}

/* Контент секции */
.content-section {
    width: 70%;
    margin-left: 10px;
}

.service-section {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.service-text {
    flex: 1;
    max-width: 70%;
}

.service-media {
    flex: 0 0 35%;
    max-width: 35%;
}

.service-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.service-description {
    font-size: 16px;
    line-height: 1.5;
}

/* Боковая панель */
.sidebar {
    width: 25%;
    border-right: 1px solid var(--primary-color);
    padding-right: 15px;
}

.schedule-container {
    font-family: var(--font-family-primary);
    font-weight: bold;
    padding-left: 29px;
}

.schedule-container h1 {
    font-size: 21px;
    margin-bottom: 15px;
}

.schedule-container p {
    margin-bottom: 5px;
    line-height: 1.4;
}

.schedule-container .row {
    margin-left: 0;
    margin-right: 0;
}

.schedule-container .col {
    padding-left: 0;
    padding-right: 5px;
    font-size: 14px;
}

.schedule-container .col:first-child {
    flex: 0 0 45%;
    max-width: 45%;
}

.schedule-container .col:last-child {
    flex: 0 0 55%;
    max-width: 55%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-container .col:last-child strong {
    font-size: 13px;
}

.day-off {
    color: var(--accent-color);
}

.weekend {
    color: #da1205;
}

/* Навигация */
.navbar-custom {
    height: 61px;
}

.navbar-brand-custom {
    font-family: var(--font-family-medium);
    display: flex;
    align-items: center;
}

.brand-icon {
    background: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.brand-text {
    font-weight: bold;
}

.nav-links {
    font-family: var(--font-family-medium);
}

/* Алерты */
.alert-custom {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger-custom {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success-custom {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Адаптивность */
@media (max-width: 768px) {
    .content-section {
        width: 100%;
        margin-left: 0;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--primary-color);
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .service-section {
        flex-direction: column;
    }
    
    .service-text,
    .service-media {
        max-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .form-input {
        width: 100%;
        max-width: 100%;
    }
    
    .schedule-container {
        padding-left: 15px;
    }
    
    .schedule-container h1 {
        font-size: 18px;
    }
    
    .schedule-container .col {
        font-size: 13px;
    }
    
    .schedule-container .col:first-child {
        flex: 0 0 40%;
        max-width: 40%;
    }
    
    .schedule-container .col:last-child {
        flex: 0 0 60%;
        max-width: 60%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    .schedule-container h1 {
        font-size: 16px;
    }
    
    .schedule-container .col {
        font-size: 12px;
    }
    
    .schedule-container .col:first-child {
        flex: 0 0 35%;
        max-width: 35%;
    }
    
    .schedule-container .col:last-child {
        flex: 0 0 65%;
        max-width: 65%;
    }
    
    /* Альтернативный вариант для очень маленьких экранов */
    @media (max-width: 320px) {
        .schedule-container .row {
            display: block;
        }
        
        .schedule-container .col {
            display: block;
            width: 100%;
            max-width: 100%;
            margin-bottom: 10px;
        }
        
        .schedule-container .col:last-child {
            white-space: normal;
        }
    }
}

/* Утилиты */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-10 {
    padding: 10px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Улучшения для видео */
.service-video {
    transition: transform 0.3s ease;
}

.service-video:hover {
    transform: scale(1.02);
}