/* ====== ОСНОВНОЙ ФЛЕКС ДЛЯ ПРИЖАТОГО ФУТЕРА ====== */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Тёплый творческий фон – персиково-золотистый градиент */
    background: #f9f3e7;
    background-attachment: fixed;
    /* Лёгкий паттерн нот (очень прозрачный) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' opacity='0.03'%3E%3Cpath fill='%239b4b6e' d='M40,25 L45,25 L45,55 L40,55 Z M42,20 L43,20 L43,25 L42,25 Z' /%3E%3Ccircle cx='45' cy='58' r='3' fill='%239b4b6e'/%3E%3Cpath d='M70 30 L75 28 L80 30 L80 60 L75 62 L70 60 Z' fill='%239b4b6e'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 80px;
    color: #2c1a2e;
    font-family: 'Segoe UI', 'Roboto', 'Georgia', serif;
}

.main-content {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    background: linear-gradient(120deg, #2c1a2e, #4a2a3e);
    color: rgba(255, 240, 220, 0.9);
    padding: 0.8rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ====== НАВИГАЦИЯ (ТЁМНО-БОРДОВАЯ + ЗОЛОТИСТЫЙ АКЦЕНТ) ====== */
.navbar {
    background: linear-gradient(95deg, #3e1f2c, #6b3e4e) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #e2b87a;
}

.navbar-brand {
    color: #ffe2b5 !important;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 250, 240, 0.95) !important;
    font-weight: 500;
    transition: all 0.25s;
    border-radius: 30px;
    margin: 0 6px;
    padding: 6px 18px;
}

    .navbar-nav .nav-link:hover {
        background-color: #e2b87a !important;
        color: #2c1a2e !important;
        transform: translateY(-2px);
    }

.dropdown-menu {
    background-color: #6b3e4e;
    border: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    margin-top: 8px;
}

.dropdown-item {
    color: #fff3e0;
    font-weight: 500;
    border-radius: 12px;
    padding: 8px 20px;
}

    .dropdown-item:hover {
        background-color: #e2b87a;
        color: #2c1a2e;
    }

/* ====== ЗАГОЛОВКИ ====== */
h1, h2, h3, h4, h5, h6 {
    color: #4a2a3e;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-shadow: 1px 1px 0 rgba(255, 250, 220, 0.6);
}

/* ====== КАРТОЧКИ (преподаватели, галерея) ====== */
.card {
    border: none;
    border-radius: 28px;
    background: rgba(255, 248, 235, 0.95);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(1px);
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 24px 40px rgba(98, 54, 72, 0.2);
        background: #ffffff;
    }

.card-img-top {
    border-radius: 28px 28px 0 0;
    transition: transform 0.5s;
}

.card:hover .card-img-top {
    transform: scale(1.02);
}

/* ====== КНОПКИ (Музыкальная тема) ====== */
.btn-primary {
    background: linear-gradient(135deg, #9b4b6e, #6f3b55);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    border-radius: 40px;
    padding: 8px 28px;
    transition: all 0.2s;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #b45f82, #8c4a6b);
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(155, 75, 110, 0.4);
    }

.btn-success {
    background: linear-gradient(135deg, #e2b87a, #c9974f);
    border: none;
    color: #2c1a2e;
    font-weight: 600;
}

    .btn-success:hover {
        background: linear-gradient(135deg, #ecc48b, #daa65e);
        color: #1f121f;
        transform: translateY(-2px);
    }

.btn-warning {
    background: #ffcd7e;
    border: none;
    color: #3e1f2c;
    font-weight: 600;
}

.btn-danger {
    background: #b9475a;
    border: none;
    transition: 0.2s;
}

    .btn-danger:hover {
        background: #a53448;
        transform: scale(0.98);
    }

/* ====== ТАБЛИЦЫ ====== */
.table {
    background-color: rgba(255, 248, 235, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

    .table thead {
        background: linear-gradient(95deg, #4a2a3e, #6b3e4e);
        color: #ffefda;
    }

        .table thead th {
            font-weight: 700;
            border-bottom: none;
            padding: 14px 12px;
        }

    .table tbody tr:hover {
        background-color: #ffe6ce;
        transition: background 0.2s;
    }

    .table td, .table th {
        vertical-align: middle;
        padding: 12px 10px;
    }
    .table img {
        width: 200px; /* или 100px, как вам нравится */
        height: auto; /* сохраняем пропорции */
        object-fit: cover; /* чтобы красиво вписать в квадрат */
    }
.gallery-table td:first-child,
.gallery-table th:first-child {
    width: 320px;
    min-width: 320px;
}
    .gallery-table td:first-child img {
        width: 100%;
        max-width: 300px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
.gallery-table td:last-child,
.gallery-table th:last-child {
    width: 120px;
    white-space: nowrap;
}

/* ====== ФОРМЫ ====== */
.form-control {
    border-radius: 40px;
    border: 1px solid #e2b87a;
    background-color: #fffcf8;
    padding: 10px 20px;
}

    .form-control:focus {
        border-color: #9b4b6e;
        box-shadow: 0 0 0 0.25rem rgba(155, 75, 110, 0.3);
    }

/* ====== ДОПОЛНИТЕЛЬНЫЕ БЛОКИ ====== */
.bg-light {
    background: rgba(255, 245, 230, 0.92) !important;
    border-radius: 40px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(4px);
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
    color: #8c4a6b;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dotted #e2b87a;
}

    a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand):hover {
        color: #4a2a3e;
        border-bottom-color: #9b4b6e;
    }

.rounded-circle {
    border: 3px solid #e2b87a;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

    .rounded-circle:hover {
        transform: scale(1.02);
        border-color: #9b4b6e;
    }

/* ====== АДАПТИВНОСТЬ ====== */
@media (max-width: 768px) {
    .card {
        margin-bottom: 24px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn-primary {
        padding: 6px 18px;
    }
}

/* ====== МУЗЫКАЛЬНЫЕ НАХОДКИ ====== */
blockquote {
    border-left: 6px solid #e2b87a;
    background: #fffaf2;
    padding: 12px 24px;
    border-radius: 60px 20px 60px 20px;
    font-style: italic;
}

/* Для страницы "О нас" и ценностей */
.text-center h5 {
    font-size: 1.35rem;
    color: #6b3e4e;
}

.shadow {
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2) !important;
}
