/* 1. ПОДКЛЮЧЕНИЕ ШРИФТОВ */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=UnifrakturMaguntia&family=Inter:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kelly+Slab&family=Kurale&family=Ruslan+Display&family=Inter:wght@400;700&display=swap');

/* 2. БАЗОВЫЕ НАСТРОЙКИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f0f12; /* Глубокий темный фон */
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
}

main[role="main"] {
    padding-top: 100px; /* Высота шапки + запас */
}

/* 3. ХЕДЕР И НАВИГАЦИЯ */
.header1 {
    background-color: #1a1a2e;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #8b0000; /* Кроваво-красный акцент */
    padding: 10px 5%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'UnifrakturMaguntia', serif;
    font-size: 24px;
    color: #4ecca3;
}

.logo img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #8b0000;
}

/* 4. ГОТИЧЕСКИЙ ЗАГОЛОВОК */
.goth-title {
    font-family: 'MedievalSharp', cursive;
    font-size: 3.5rem;
    color: #f5f5f5;
    text-transform: uppercase;
    text-align: center;
    display: block;
    margin: 40px auto;
    text-shadow: 0 0 10px #8b0000, 0 0 20px #8b0000, 2px 2px 2px #000;
}

.goth-title::before, .goth-title::after {
    content: " ✝ ";
    color: #8b0000;
    font-size: 2rem;
    vertical-align: middle;
    margin: 0 15px;
}

/* 5. КАРТОЧКИ КАТЕГОРИЙ (ГОТИКА) */
.gothic-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid #1a1a1a;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gothic-card:hover {
    border-color: #8b0000;
    box-shadow: 0 0 25px rgba(139, 0, 0, 0.6);
    transform: translateY(-10px) scale(1.02);
}

.goth-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: sepia(40%) grayscale(50%) contrast(110%);
    transition: filter 0.5s ease;
}

.gothic-card:hover .goth-img {
    filter: sepia(0%) grayscale(0%) contrast(110%);
}

.gothic-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.8rem;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 10px 20px;
    text-align: center;
    text-shadow: 2px 2px 4px #000;
}

.gothic-card:hover .gothic-text {
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.8);
}

/* 6. ФУТЕР */
.footer {
    background-color: #0a0a0c;
    border-top: 1px solid #1a1a1a;
    padding: 20px 0;
    color: #666;
}

/* 7. АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .goth-title {
        font-size: 1.8rem;
    }
    .goth-title::before, .goth-title::after {
        display: none;
    }
    .goth-img {
        height: 400px;
    }
    .gothic-text {
        font-size: 1.4rem;
    }
}

/* 8. СЛУЖЕБНЫЕ СТИЛИ YII2 (ОЧИЩЕНО) */
.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 15px;
    margin-bottom: 20px;
}

.hint-block { color: #888; font-size: 0.85rem; }
.not-set { color: #c55; font-style: italic; }
.lang-switcher {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-left: auto; /* Прижмет вправо внутри флекс-контейнера */
        }
        .lang-link {
            text-decoration: none;
            color: #333;
            font-weight: bold;
            padding: 5px 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            transition: 0.3s;
        }
        .lang-link:hover {
            background-color: #f0f0f0;
        }
        .lang-link.active {
            background-color: #007bff;
            color: #fff;
            border-color: #007bff;
        }
.page-header {
    margin-top: 20px;
}
.goth-titleru {
    /* Ruslan Display — самый "готический" из кириллических в Google Fonts */
    font-family: 'Old Standard TT', serif;
    font-size: 3.5rem;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px #8b0000, 
        0 0 20px #8b0000, 
        2px 2px 2px #000;
}

/* Текст внутри карточек */
.gothic-textru {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Kelly Slab — отлично читается и выглядит остро, по-готически */
    font-family: 'Old Standard TT', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    padding: 30px 10px 15px;
    text-align: center;
}
@media (max-width: 768px) {
    .goth-titleru {
        font-size: 1.8rem;
    }
    .goth-titleru::before, .goth-title::after {
        display: none;
    }
    .goth-img {
        height: 400px;
    }
    .gothic-textru {
        font-size: 1.4rem;
    }
}