
/* ===== Логотип сайта ===== */
.navbar-brand .brand-logo img {
    height: 80px !important;
    width: auto !important;
}

/* ==================================================
   Информация о публикации статьи
   Категория • Дата публикации • Количество просмотров
   ================================================== */

.article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 25px;
    padding: 0;
    font-size: 0.9rem;
    color: #666;
}

.article-info dd {
    margin: 0;
}

.article-info dd:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: #aaa;
}

.article-info .icon-fw {
    display: none;
}

/* ===== Авторская заметка / Примечание к рассказу ===== */
.story-note {
    margin: 35px 0;
    padding: 18px 22px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.story-note-title {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
}

.story-note p {
    margin: 0;
    color: #555;
}

/* Разделитель частей рассказа */
.story-divider {
    text-align: center;
    margin: 45px 0;
    color: #b0b0b0;
    font-size: 1.3rem;
    line-height: 1;
}

/* Разделитель между окончанием рассказа и футером сайта */
.story-end {
    text-align: center;
    margin: 70px 0 90px;
    color: #8c8c8c;
    font-size: 1.9rem;
}

/* Шапка статьи */
.com-content-article {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 420px;
    grid-template-areas:
        "title image"
        "meta image"
        "body body";
    gap: 15px 40px;
}

/* Заголовок */
.page-header {
    grid-area: title;
    align-self: end;
}

.page-header h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0;
}

/* Метаинформация */
.article-info {
    grid-area: meta;
    margin: 0 0 20px;
}

/* Картинка */
.item-image {
    grid-area: image;
    margin: 0;
    max-width: none;
    width: 100%;
}

.item-image img {
    width: 100%;
    display: block;
    border-radius: 8px;

    opacity: 0.92;
    filter: saturate(.85);
    transition: .4s ease;
}

.item-image img:hover {
    opacity: 1;
    filter: saturate(1);
}

/* Текст */
.com-content-article__body {
    grid-area: body;
    margin-top: 30px;
}

/* ===== Мобильная версия ===== */
@media (max-width: 768px) {

    .com-content-article {
        display: block;
    }

    .page-header h1 {
        font-size: 2.3rem;
        margin-bottom: 10px;
    }

    .article-info {
        margin-bottom: 20px;
    }

    .item-image {
        width: 100%;
        margin: 0 0 30px;
    }

    .com-content-article__body {
        margin-top: 0;
    }
}

@media (max-width: 768px) {

    .page-header h1 {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .item-image img {
        border-radius: 6px;
    }
}

/* ==================================================
   Основная зона контента сайта
   (статьи, категории, главная, страницы проекта)
   ================================================== */

.container-component main {
    font-size: 1.08rem;
    line-height: 1.8;
}

/* Абзацы в зоне контента */
.container-component main p {
    margin-bottom: 1.1em;
}

/* Текст полного рассказа */
.com-content-article__body {
    grid-area: body;
    margin-top: 30px;

    font-size: 1.12rem;
    line-height: 1.9;
}

.blog-featured .item-image img,
.com-content-category-blog .item-image img {
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.readmore .btn {
    font-size: 0.95rem;
    padding: .45rem .9rem;
}

.blog-item p {
    color: #333;
}

.blog-item p {
    line-height: 1.85;
}

.blog-item .item-title {
    margin-top: 20px;
}

.blog-featured > .page-header {
    margin-top: 40px;
    margin-bottom: 25px;
}

/* =====================================================
   ГЛАВНОЕ МЕНЮ САЙТА
   ===================================================== */

/* Общий фон меню */
.container-header .navbar {
    background: #ffffff;              /* Белый фон */
    border-bottom: 1px solid #e8e8e8; /* Тонкая линия снизу */
}

/* Отступы внутри меню */
.navbar-nav > li > a {
    padding: 14px 18px;      /* Внутренние отступы */
    font-size: 17px;         /* Размер текста */
    font-weight: 500;        /* Немного жирнее */
    color: #333333;          /* Основной цвет текста */
    transition: all .25s ease; /* Плавные анимации */
    position: relative;      /* Нужно для подчеркивания */
}

/* Цвет при наведении */
.navbar-nav > li > a:hover {
    color: #6b2337; /* Бордовый цвет */
}

/* =====================================================
   ГЛАВНОЕ МЕНЮ
   ===================================================== */

.container-nav {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.mod-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Ссылки меню */

.mod-menu > .nav-item > a {
    position: relative;
    display: block;
    padding: 14px 18px;
    color: #333;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: .25s;
}

/* Наведение */

.mod-menu > .nav-item > a:hover {
    color: #5a2232;
}

/* Полоска снизу при наведении */

.mod-menu > .nav-item > a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 3px;
    background: transparent;
    border-radius: 2px;
    transition: .25s;
}

.mod-menu > .nav-item > a:hover::after {
    background: rgba(90,34,50,.3);
}

/* Активный пункт */

.mod-menu > .current > a,
.mod-menu > .active > a {
    color: #5a2232;
}

.mod-menu > .current > a::after,
.mod-menu > .active > a::after {
    background: #5a2232;
}

/* =====================================================
   ВЫПАДАЮЩЕЕ МЕНЮ
   ===================================================== */

.mod-menu__sub {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    padding: 8px 0;
    min-width: 220px;
}

.mod-menu__sub a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
}

.mod-menu__sub a:hover {
    background: #f8f3f5;
    color: #5a2232;
}

/* =====================================================
   КНОПКА СТРЕЛКИ
   ===================================================== */

.mod-menu__toggle-sub {
    background: none;
    border: none;
    color: #555;
    padding: 0 5px;
}

.mod-menu__toggle-sub:hover {
    color: #5a2232;
}

/* =====================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ===================================================== */

@media (max-width: 991px) {

    .mod-menu {
        gap: 0;
    }

    .mod-menu > .nav-item > a {
        padding: 12px;
    }
}

/* =====================================================
   ХЛЕБНЫЕ КРОШКИ
   ===================================================== */

/* Немного улучшаем внешний вид */
.breadcrumb {
    background: #fafafa;
    border-radius: 8px;
    padding: 12px 16px;
}

/* =====================================================
   ЗАГОЛОВКИ РАССКАЗОВ
   ===================================================== */

/* Заголовок статьи */
.item-title a,
.page-header h1 {
    color: #6b2337;
    text-decoration: none;
}

.item-title a:hover {
    text-decoration: underline;
}

/* =====================================================
   ИЗОБРАЖЕНИЯ РАССКАЗОВ
   ===================================================== */

/* Более современный вид обложек */
.item-image img,
.intro-image img {
    border-radius: 12px;
    transition: transform .3s ease;
}

/* Небольшое увеличение при наведении */
.item-image img:hover,
.intro-image img:hover {
    transform: scale(1.01);
}
/* =====================================================
   ГЛАВНОЕ МЕНЮ САЙТА
   Для Joomla Cassiopeia / Cassiopeia Extended
   ===================================================== */


/* -----------------------------------------------------
   Контейнер меню
   ----------------------------------------------------- */

.container-nav {
    background: #fff;                     /* Белый фон */
    border-bottom: 1px solid #e8e8e8;     /* Тонкая линия снизу */
}


/* -----------------------------------------------------
   Основной список меню
   ----------------------------------------------------- */

.mod-menu {
    display: flex;            /* Пункты в одну строку */
    align-items: center;      /* Вертикальное выравнивание */
    gap: 0;                   /* Убираем большие промежутки */
}


/* -----------------------------------------------------
   Каждый пункт меню
   ----------------------------------------------------- */

.mod-menu .nav-item {
    display: flex;
    align-items: center;
}


/* -----------------------------------------------------
   Ссылки меню
   ----------------------------------------------------- */

.mod-menu > .nav-item > a {

    display: block;

    padding: 14px 16px;       /* Внутренние отступы */

    color: #333;              /* Основной цвет текста */

    font-size: 1.08rem;       /* Размер текста */

    font-weight: 400;         /* Обычный вес */

    text-decoration: none;    /* Убираем подчёркивание */

    transition:
        color .2s ease,
        background .2s ease;
}


/* -----------------------------------------------------
   Наведение мышкой
   ----------------------------------------------------- */

.mod-menu > .nav-item > a:hover {
    color: #5a2232;           /* Бордовый цвет */
}


/* -----------------------------------------------------
   Текущий активный пункт
   ----------------------------------------------------- */

.mod-menu > .current > a,
.mod-menu > .active > a {

    color: #5a2232;           /* Цвет логотипа */

    font-weight: 600;         /* Чуть жирнее */

    background: transparent;  /* Без заливки */
}


/* -----------------------------------------------------
   Полностью убираем линии и подчёркивания
   ----------------------------------------------------- */

.mod-menu > .nav-item > a::after {
    display: none !important;
}


/* -----------------------------------------------------
   Кнопка раскрытия подменю (стрелка)
   ----------------------------------------------------- */

.mod-menu__toggle-sub {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: auto;

    height: auto;

    padding: 0 6px 0 0;

    margin-left: -4px;

    background: transparent;

    border: 0;

    color: #555;

    transition: color .2s ease;
}


/* Цвет стрелки при наведении */

.mod-menu__toggle-sub:hover {
    color: #5a2232;
}


/* -----------------------------------------------------
   Выпадающее меню
   ----------------------------------------------------- */

.mod-menu__sub {

    background: #fff;

    border: none;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0,0,0,.10);

    padding: 8px 0;

    min-width: 220px;
}


/* Пункты выпадающего меню */

.mod-menu__sub a {

    display: block;

    padding: 10px 18px;

    color: #333;

    text-decoration: none;

    transition: all .2s ease;
}


/* Наведение внутри подменю */

.mod-menu__sub a:hover {

    background: #f8f3f5;

    color: #5a2232;
}


/* -----------------------------------------------------
   Немного уменьшаем высоту шапки
   ----------------------------------------------------- */

.container-header {

    padding-top: 0;

    padding-bottom: 0;
}


/* Логотип и подпись */

.navbar-brand {

    margin-bottom: 8px;
}


/* -----------------------------------------------------
   Хлебные крошки
   ----------------------------------------------------- */

.breadcrumb {

    background: #fafafa;

    border-radius: 8px;

    padding: 10px 16px;
}


/* -----------------------------------------------------
   Заголовки рассказов
   ----------------------------------------------------- */

.page-header h1,
.page-header h2 a {

    color: #5a2232;

    text-decoration: none;

    transition: color .2s ease;
}


.page-header h2 a:hover {

    color: #7b3449;
}


/* -----------------------------------------------------
   Изображения рассказов
   ----------------------------------------------------- */

.item-image img,
.intro-image img {

    border-radius: 12px;

    transition: transform .25s ease;
}


.item-image img:hover,
.intro-image img:hover {

    transform: scale(1.01);
}


/* -----------------------------------------------------
   Мобильные устройства
   ----------------------------------------------------- */

@media (max-width: 991px) {

    .mod-menu > .nav-item > a {

        padding: 12px;

        font-size: 1rem;
    }

    .mod-menu__sub {

        box-shadow: none;

        border-radius: 0;
    }
}

/* =====================================================
   БИБЛИОТЕКА РАССКАЗОВ
   ===================================================== */
   
   /* Карточка рассказа */

.boxed .blog-item {
    padding: 30px;
    margin-bottom: 35px;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

    background: #fff;

    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}


/* Обложка */

.image-left .item-image {
    margin: 0;
}

.image-left .item-image img {

    width: 100%;

    aspect-ratio: 2 / 3;

    object-fit: cover;
}


/* Заголовок */

.boxed .item-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.boxed .item-title a {

    font-size: 2rem;

    color: #5a2232;

    text-decoration: none;
}


/* Дата публикации */

.boxed .article-info {
    margin-bottom: 20px;

    color: #777;
}


/* Текст анонса */

.boxed .blog-item p {

    font-size: 1.1rem;

    line-height: 1.9;
}


/* Кнопка */

.boxed .readmore {
    margin-top: 25px;
}


/* Мобильная версия */

@media (max-width: 768px) {

    .boxed .blog-item {

        padding: 20px;
    }

    .boxed .item-title a {

        font-size: 1.6rem;
    }
}

/* =====================================================
   БИБЛИОТЕКА РАССКАЗОВ - ЗАГОЛОВКИ
   ===================================================== */

.boxed .item-title,
.boxed .page-header {
    margin-top: 0;
    margin-bottom: 20px;
}

.boxed .item-title a,
.boxed .page-header a {
    font-size: 3rem !important;
    line-height: 1.1;
    font-weight: 700;
    color: #5a2232;
    text-decoration: none;
}



/* Заголовок категории "Рассказы" */

.com-content-category-blog > .page-header {
    margin-top: 30px;
    margin-bottom: 35px;
}

.com-content-category-blog > .page-header h1 {
    margin-top: 0;
    margin-bottom: 0;

    font-size: 3.5rem;
    line-height: 1.1;
}