﻿/* ========== ПОЛНЫЙ ИСПРАВЛЕННЫЙ CSS ========== */
:root {
    --pure-white: #FFFFFF;
    --cloud-white: #FFFDFC;
    --mist-white: #FDFBFA;
    --pearl-white: #F2F0EF;
    --text-rich: #1A1A1A;
    --text-soft: #4A4A4A;
    --text-light: #8A8A8A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--pure-white);
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 300;
    color: var(--text-rich);
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* Главная */
.home-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 4rem;
}

/* Хедер */
.site-header {
    padding: 0.5rem 0 1rem;
    margin-bottom: 0.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-image {
    height: 32px;
    width: auto;
    opacity: 0.9;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-soft);
}

/* Заголовки */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: 0.02em;
    color: var(--text-rich);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Линия */
.accent-line {
    width: 60px;
    height: 1px;
    background: var(--text-light);
    opacity: 0.2;
    margin: 2rem 0 3rem;
}

/* Monocle стиль для ленты новостей */
.monocle-news-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% | 50% */
    gap: 2rem;
    margin: 2rem 0 4rem;
    padding-top: 0rem; 
}

/* Левая колонка - главная новость */
.monocle-news-left {
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.monocle-main-news {
    max-width: 85%;
    margin: 0 auto; 
    width: 100%;
}
.monocle-main-content {
    text-align: center;
    width: 100%;
}
.monocle-main-news-link {
    width: 100%;
    display: flex;
    justify-content: center; /* центрируем дочерний блок */
}
.monocle-main-image {
    width: 100%;
    margin-bottom: 1.5rem;
}

    .monocle-main-image img {
        width: 100%;
        height: auto;
        display: block;
    }

.monocle-news-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.5rem;
}

.monocle-main-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 200;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-rich);
}

.monocle-main-excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 200;
    line-height: 1.6;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

/* Правая колонка - сетка маленьких новостей */
.monocle-news-right {
    column-count: 2;
    column-gap: 2rem; 
    column-fill: balance;
    column-rule: 1px solid #e5e5e5; 
    column-rule-style: solid;
}

.monocle-small-news {
    display: block;
    break-inside: avoid-column; /* чтобы элемент не разрывался */
    margin-bottom: 1.5rem; /* отступ между новостями */
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.monocle-small-image {
    width: 100%; /* картинка на всю ширину */
    height: auto;
    margin-bottom: 0.8rem;
}

    .monocle-small-image img {
        width: 100%;
        height: auto;
        aspect-ratio: auto; /* без обрезки */
        object-fit: cover; /* или contain - как хотите */
        border-radius: 0; /* убрать круг, если не нужно */
    }

.monocle-small-content {
    width: 100%;
}

.monocle-small-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.2rem;
}

.monocle-small-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    color: var(--text-rich);
}

.monocle-small-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-soft);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s;
}

    .monocle-small-link:hover {
        opacity: 1;
    }
.monocle-small-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 200;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.monocle-main-news-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: center;
    transition: opacity 0.2s;
    width: 100%;
}

.monocle-small-news-link {
    text-decoration: none;
    color: inherit;
    display: block; /* block, не flex */
    transition: opacity 0.2s;
    width: 100%;
}

    .monocle-main-news-link:hover,
    .monocle-small-news-link:hover {
        opacity: 0.8;
    }

/* Адаптивность */
@media (max-width: 900px) {
    .monocle-news-container {
        grid-template-columns: 1fr;
    }

    .monocle-news-left {
        border-right: none;
        padding-right: 0;
    }

    .monocle-news-right {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .monocle-news-right {
        grid-template-columns: 1fr;
    }
}

/* Адаптивность */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 200;
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-rich);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Герой секция */
.hero-mini {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0 0.5rem;
    margin-top: -0.5rem;
}

.hero-left-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto; 
}

.hero-center {
    text-align: center;
    flex: 1;
    min-width: 0; /* разрешаем заголовку переноситься и сжиматься */
}

.hero-right-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
}

.hero-icon {
    height: 70px;
    width: 70px;
    margin-bottom: 0.3rem;
    display: block;
}

.hero-left-text,
.hero-right-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    white-space: nowrap;
}

.hero-left-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.2s;
}

    .hero-left-link:hover {
        opacity: 0.8;
    }

.hero-mini-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--text-rich);
}

.hero-mini-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* ====== Герой-блок: адаптивность (мобильные) ======
   На телефоне боковые плашки встают в ряд сверху, а заголовок —
   на всю ширину ниже. Это убирает горизонтальное переполнение. */
@media (max-width: 700px) {
    .hero-mini {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem 1.2rem;
    }

    .hero-center {
        flex: 0 0 100%;
        order: 3;
    }

    .hero-icon {
        height: 40px;
        width: 40px;
        margin-bottom: 0.25rem;
    }

    .hero-left-text,
    .hero-right-text {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        white-space: normal;
        text-align: center;
    }

    .hero-mini-title {
        font-size: 1.7rem;
        letter-spacing: 0.06em;
        line-height: 1.2;
        margin-bottom: 0.3rem;
        word-break: break-word;
    }

    .hero-mini-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
        line-height: 1.4;
        white-space: normal;
    }
}

/* Главная карточка */
.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 2.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px -30px rgba(0,0,0,0.1);
}
.featured-media-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-main-image-container {
    width: 100%;
}

.featured-main-image {
    width: 100%;
    /* Жёсткая высота 500px + object-fit:cover «съедали» фото: на мобильных
       колонка сужается до ~260px, а фото растягивалось в узкую полосу 260x500
       с сильной обрезкой. Теперь высота естественная (пропорции сохраняются),
       максимум — 600px, чтобы очень высокие фото не доминировали. */
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 1.8rem;
    display: block;
}

/* Галерея теперь в правой колонке */
.featured-gallery {
    width: 100%;
    margin-top: 0;
}

    .featured-gallery .media-gallery {
        width: 100%;
    }

    .featured-gallery .media-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .featured-gallery .media-item {
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 0.5rem;
        cursor: pointer;
        position: relative;
    }

        .featured-gallery .media-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

/* Адаптивность */
@media (max-width: 900px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-media-column {
        order: -1; /* Фото и галерея сверху на мобильных */
    }

    .featured-gallery .media-grid {
        grid-template-columns: repeat(4, 1fr); /* Больше миниатюр на мобильных */
    }
}

@media (max-width: 600px) {
    .featured-gallery .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 400px) {
    .featured-gallery .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.featured-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.featured-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 200;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-text {
    color: var(--text-soft);
    font-weight: 200;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.featured-link {
    color: var(--text-rich);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--text-light);
    padding-bottom: 0.2rem;
    align-self: flex-start;
}

.featured-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 1.8rem;
    display: block;
}

.featured-image .main-media {
    height: 500px !important;
}

.featured-image .main-image {
    width: 100%;
    height: 500px !important;
    object-fit: cover;
}

/* ========== МЕДИА-ГАЛЕРЕЯ ========== */
.media-gallery {
    width: 100%;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.media-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

    .media-item:hover {
        transform: scale(1.02);
    }

    .media-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .media-item .video-thumbnail {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .media-item .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        background: rgba(0,0,0,0.5);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        z-index: 1;
    }

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image,
.modal-video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 200; /* тонкий */
    background: transparent; /* без фона */
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10001;
    opacity: 0.9; /* всегда видим */
    text-shadow: 0 0 8px rgba(0,0,0,0.8), 0 0 2px black;
    transition: opacity 0.2s;
}

    .modal-close:hover {
        opacity: 1;
        transform: scale(1.1);
    }

/* Для мобильных */
@media (max-width: 700px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }
}
/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.modal-video {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    color: white;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
    z-index: 10000;
}

    .modal-close:hover {
        opacity: 0.8;
    }

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 900px) {
    .home-page {
        padding: 2rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .news-feed {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        order: -1;
    }
}

@media (max-width: 700px) {
    .main-media {
        height: 300px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .single-thumbnail {
        height: 180px;
    }

    .modal-image, .modal-video {
        max-height: 60vh;
    }
}

@media (max-width: 600px) {
    .home-page {
        padding: 1.5rem;
    }

    .logo-text {
        letter-spacing: 0.5em;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .news-title {
        font-size: 1.8rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .modal-close {
        top: -35px;
        font-size: 2rem;
    }
}


.featured-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

    .featured-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 50px -30px rgba(0,0,0,0.2);
    }

.featured-link {
    position: relative;
    display: inline-block;
}

    .featured-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--text-rich);
        transition: width 0.3s;
    }

    .featured-link:hover::after {
        width: 100%;
    }
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.media-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
}

    .media-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 1;
}
.monocle-line {
    width: 100%;
    height: 1px;
    background-color: #e5e5e5;
    margin: 0;
}
/* Меню */
.monocle-menu {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0.5rem 0; 
}

.menu-item {
    color: var(--text-soft);
    text-decoration: none;
    transition: opacity 0.2s ease;
    padding: 0 0.5rem;
}

    .menu-item:hover {
        opacity: 0.5;
    }

.menu-separator {
    color: var(--text-light);
    opacity: 0.3;
    font-weight: 200;
    display: inline-block;
}
/* Верхняя навигация */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: none; /* по умолчанию скрыт — показываем только на мобильных */
    align-items: center;
    color: var(--text-soft);
    transition: opacity 0.2s;
}

    .menu-button:hover {
        opacity: 0.5;
    }

    .menu-button svg {
        width: 18px;
        height: 18px;
    }

.menu-icon {
    font-size: 1.5rem;
    color: var(--text-soft);
    transition: opacity 0.2s;
}

    .menu-icon:hover {
        opacity: 0.5;
    }

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-link {
    color: var(--text-soft);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

    .search-link:hover {
        opacity: 0.5;
    }

    .search-link svg {
        width: 16px;
        height: 16px;
    }

.top-nav-sep {
    color: var(--text-light);
    opacity: 0.3;
    font-size: 0.7rem;
}

.top-nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
    text-decoration: none;
    transition: opacity 0.2s;
}

    .top-nav-link:hover {
        opacity: 0.5;
    }

.top-nav-login {
    display: inline-flex;
    align-items: center;
}

.top-nav-login-form {
    display: inline;
    margin: 0;
    padding: 0;
}


.top-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
    padding: 0;
    transition: opacity 0.2s;
}

    .top-nav-btn:hover {
        opacity: 0.5;
    }


/* Sticky эффект */
.top-nav.sticky {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    background: var(--pure-white);
    z-index: 1000;
    padding: 0.5rem 4rem;
    border-bottom: 1px solid #e5e5e5;
    margin: 0;
    animation: slideDown 0.2s ease; /* анимация быстрее */
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    will-change: transform; /* оптимизация */
}

.monocle-menu.sticky {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    background: var(--pure-white);
    z-index: 999;
    padding: 0.5rem 4rem;
    border-bottom: 1px solid #e5e5e5;
    margin: 0;
    animation: slideDown 0.2s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    will-change: transform, top; /* оптимизация */
}

/* ============================================================
   WYSIWYG-редактор TinyMCE в формах админки (новости/питомцы/помёты)
   ============================================================ */
.richtext-editor-target {
    min-height: 140px;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-soft, #4A4A4A);
    border: 1px solid #E2DEC6;
    border-radius: 6px;
}

.tox-tinymce {
    width: 100% !important;
    border-radius: 8px !important;
    border: 1px solid #E2DEC6 !important;
    box-shadow: 0 2px 10px rgba(163, 145, 130, 0.05) !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
    background: #FDFBF8 !important;
    border-bottom: 1px solid #EEE7DA !important;
    box-shadow: none !important;
}

.tox .tox-tbtn {
    color: #4A4A4A !important;
    border-radius: 4px !important;
}

    .tox .tox-tbtn:hover,
    .tox .tox-tbtn--enabled {
        background: #F2E8DC !important;
        color: #1A1A1A !important;
    }

.tox .tox-statusbar {
    background: #FDFBF8 !important;
    border-top: 1px solid #EEE7DA !important;
    color: #8A8A8A !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
}

.tox .tox-editor-container {
    background: #FFFDFC !important;
}

/* Кнопки заголовков */
.tox .tox-tbtn[data-mce-name='block-h1'] { font-weight: 700 !important; font-size: 13px !important; letter-spacing: 0.02em !important; }
.tox .tox-tbtn[data-mce-name='block-h2'] { font-weight: 600 !important; font-size: 12px !important; }
.tox .tox-tbtn[data-mce-name='block-h3'] { font-weight: 600 !important; font-size: 11px !important; }
.tox .tox-tbtn[data-mce-name='block-p'] { font-size: 13px !important; }

/* Кнопки размера шрифта */
.tox .tox-tbtn[data-mce-name^='fs-'] {
    padding: 0 4px !important;
    min-width: 26px !important;
    font-weight: 600 !important;
}
.tox .tox-tbtn[data-mce-name='fs-12'] { font-size: 9px !important; }
.tox .tox-tbtn[data-mce-name='fs-14'] { font-size: 10px !important; }
.tox .tox-tbtn[data-mce-name='fs-16'] { font-size: 11px !important; }
.tox .tox-tbtn[data-mce-name='fs-18'] { font-size: 12px !important; }
.tox .tox-tbtn[data-mce-name='fs-22'] { font-size: 14px !important; }
.tox .tox-tbtn[data-mce-name='fs-28'] { font-size: 16px !important; }

/* Кнопки-образцы цвета текста */
.tox .tox-tbtn[data-mce-name^='txt-'] {
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 0 5px !important;
    border-bottom: 2px solid transparent !important;
}
.tox .tox-tbtn[data-mce-name='txt-black'] { color: #1A1A1A !important; border-bottom-color: #1A1A1A !important; }
.tox .tox-tbtn[data-mce-name='txt-gray'] { color: #4A4A4A !important; border-bottom-color: #4A4A4A !important; }
.tox .tox-tbtn[data-mce-name='txt-gold'] { color: #B5926B !important; border-bottom-color: #B5926B !important; }
.tox .tox-tbtn[data-mce-name='txt-green'] { color: #2C6B2C !important; border-bottom-color: #2C6B2C !important; }
.tox .tox-tbtn[data-mce-name='txt-red'] { color: #A33B3B !important; border-bottom-color: #A33B3B !important; }
.tox .tox-tbtn[data-mce-name='txt-blue'] { color: #2E5A7A !important; border-bottom-color: #2E5A7A !important; }
.tox .tox-tbtn[data-mce-name='txt-brown'] { color: #7A5A2E !important; border-bottom-color: #7A5A2E !important; }

/* Кнопки-образцы заливки */
.tox .tox-tbtn[data-mce-name^='bg-'] {
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 0 5px !important;
}
.tox .tox-tbtn[data-mce-name='bg-black'] { color: #1A1A1A !important; background-color: rgba(26, 26, 26, 0.22) !important; }
.tox .tox-tbtn[data-mce-name='bg-gray'] { color: #4A4A4A !important; background-color: rgba(74, 74, 74, 0.22) !important; }
.tox .tox-tbtn[data-mce-name='bg-gold'] { color: #B5926B !important; background-color: rgba(181, 146, 107, 0.28) !important; }
.tox .tox-tbtn[data-mce-name='bg-green'] { color: #2C6B2C !important; background-color: rgba(44, 107, 44, 0.22) !important; }
.tox .tox-tbtn[data-mce-name='bg-red'] { color: #A33B3B !important; background-color: rgba(163, 59, 59, 0.22) !important; }
.tox .tox-tbtn[data-mce-name='bg-blue'] { color: #2E5A7A !important; background-color: rgba(46, 90, 122, 0.22) !important; }
.tox .tox-tbtn[data-mce-name='bg-brown'] { color: #7A5A2E !important; background-color: rgba(122, 90, 46, 0.22) !important; }


/* Убираем зазор - top будет задаваться JS */
.top-nav.sticky + .monocle-menu.sticky {
    border-top: none;
}

.sticky-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    color: var(--text-rich);
    white-space: nowrap;
    pointer-events: none; /* чтобы не мешал кликам */
}

/* Анимация */
@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
    }

    to {
        transform: translateX(-50%) translateY(0);
    }
}

/* Поправка для контента */
.top-nav.sticky + .monocle-menu.sticky + .home-page {
    margin-top: calc(48px + 48px); /* заменится через JS */
}

/* Подвал */
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 200;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 0.9rem;
}

.footer-name {
    color: var(--text-soft);
}

.footer-years {
    color: var(--text-light);
}

.footer-divider {
    opacity: 0.3;
}

.footer-rights {
    color: var(--text-light);
}

/* Бургер-меню */
.top-nav-left {
    position: relative; /* чтобы меню позиционировалось относительно кнопки */
}
.mobile-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background: var(--pure-white);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--text-soft);
    transition: opacity 0.2s;
}

    .mobile-menu-item:hover {
        opacity: 0.6;
    }

/* ====== АДАПТИВНОЕ МЕНЮ: бургер на мобильных, классическое меню на десктопе ====== */
@media (max-width: 900px) {
    .monocle-menu {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    /* Мобильное выпадающее меню — раскрывается ПОД верхней панелью,
       чтобы кнопка-«бургер» оставалась кликабельной и меню можно было закрыть. */
    .top-nav {
        position: relative;
    }

    .top-nav-left {
        position: static;
    }

    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
        border-radius: 0;
        border: none;
        border-top: 1px solid #e5e5e5;
        border-bottom: 1px solid #e5e5e5;
        padding: 0.5rem 1rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        z-index: 1200;
    }

    .mobile-menu-item {
        padding: 0.9rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-menu-item:last-child {
        border-bottom: none;
    }
}

@media (min-width: 901px) {
    .menu-button {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }

    .monocle-menu {
        display: block;
    }
}

/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@200;300&family=Montserrat:wght@100;200;300&display=swap');
