/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #4A3728;
    background-color: #F9E8C5;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M20,20 L80,20 L80,80 L20,80 Z" fill="none" stroke="%23EDD4B2" stroke-width="2" stroke-dasharray="5,5"/></svg>');
    background-size: 30px 30px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #4A3728;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 10px;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #C97B2E, #E67E22);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: #E67E22;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #C97B2E;
}

/* ===== HEADER ===== */
.header {
    background-color: rgba(249, 232, 197, 0.95);
    border-bottom: 2px solid #EDD4B2;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(201, 123, 46, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .tagline {
    font-size: 0.9rem;
    color: #A1887F;
    font-style: italic;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 30px;
    font-weight: 600;
    color: #4A3728;
    background-color: transparent;
    transition: all 0.3s;
}

.nav-list a:hover,
.nav-list a.active {
    background-color: #C97B2E;
    color: #fff;
}

/* Search form */
.search-item {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-input {
    padding: 8px 12px;
    border: 2px solid #EDD4B2;
    border-radius: 20px;
    font-family: 'Noto Serif', serif;
    font-size: 0.9rem;
    background: #FFFBF0;
    color: #4A3728;
    transition: border 0.3s;
    width: 180px;
}

.search-input:focus {
    outline: none;
    border-color: #C97B2E;
}

.search-button {
    background: #C97B2E;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.search-button:hover {
    background: #E67E22;
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #4A3728;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #F9E8C5 0%, #EDD4B2 100%);
    border-bottom: 1px solid #E6CCB2;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #5A4738;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(to right, #C97B2E, #E67E22);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(201, 123, 46, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 123, 46, 0.6);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.pattern-overlay {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30,5 L55,30 L30,55 L5,30 Z" fill="none" stroke="%23C97B2E" stroke-width="1" opacity="0.3"/></svg>');
    background-size: 60px 60px;
    z-index: 1;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 20px 20px 0 #EDD4B2;
    position: relative;
    z-index: 2;
    border: 8px solid #F9E8C5;
}

/* ===== FEATURES ===== */
.features {
    padding: 5rem 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #F9E8C5;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 2px solid #EDD4B2;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #C97B2E, #E67E22);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(201, 123, 46, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #C97B2E;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: #5A4738;
    margin-bottom: 1.5rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #E67E22;
}

.feature-link:hover {
    gap: 12px;
}

/* ===== ABOUT ===== */
.about {
    padding: 5rem 0;
    background-color: #F9E8C5;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #4A3728;
    color: #EDD4B2;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #C97B2E, #E67E22);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    justify-items: center;
    text-align: center;
}

.footer-col {
    max-width: 300px;
    width: 100%;
}

.footer-col h3,
.footer-col h4 {
    color: #F9E8C5;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #C97B2E, #E67E22);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #EDD4B2;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #C97B2E;
    padding-left: 10px;
}

.footer-col p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #5A4738;
    border-radius: 50%;
    color: #EDD4B2;
    font-size: 1.3rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social a:hover {
    background-color: #C97B2E;
    transform: translateY(-5px);
    border-color: #EDD4B2;
    box-shadow: 0 5px 15px rgba(201, 123, 46, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #5A4738;
    font-size: 0.9rem;
    color: #A1887F;
    position: relative;
}

.footer-bottom::before {
    content: '✦';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4A3728;
    color: #C97B2E;
    padding: 0 10px;
    font-size: 1.2rem;
}

.footer-bottom a {
    color: #EDD4B2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h2 {
        font-size: 2.4rem;
    }
    .pattern-overlay {
        top: -10px;
        right: -10px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #F9E8C5;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
    }
    .nav-list.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo {
        margin-bottom: 1rem;
    }
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .page-hero {
        padding: 2rem 0;
    }
    .page-hero h2 {
        font-size: 2.2rem;
    }
    .page-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 16px;
    }
    .container {
        padding: 0 15px;
    }
    .hero {
        padding: 2rem 0;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .footer {
        padding: 3rem 0 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-col {
        max-width: 100%;
    }
    .footer-col h3::after,
    .footer-col h4::after {
        width: 40px;
    }
    .social a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .page-hero {
        padding: 1.5rem 0;
        background-size: cover;
        background-position: center top;
    }
    .page-hero h2 {
        font-size: 1.8rem;
    }
    .page-hero p {
        font-size: 0.9rem;
        max-width: 90%;
    }
}
/* ===== PAGE-SPECIFIC STYLES ===== */
.page-hero {
    padding: 3rem 0;
    background-color: #E6D2B5; /* fallback */
    background-image:
        linear-gradient(135deg, #E6D2B5 0%, #B38B6D 100%),
        url('data:image/svg+xml;utf8,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 L80,40 M40,0 L40,80" stroke="%235A4738" stroke-width="0.8" opacity="0.05"/><circle cx="20" cy="20" r="2" fill="%235A4738" opacity="0.07"/><circle cx="60" cy="60" r="2" fill="%235A4738" opacity="0.07"/></svg>');
    background-repeat: repeat;
    background-size: auto, 60px 60px;
    background-blend-mode: normal;
    color: #2C1810;
    text-align: center;
    border-bottom: 5px solid #8B6B4F;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.page-hero h2 {
    color: #2C1810;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #3A2C1E;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.content-section {
    padding: 4rem 0;
    background-color: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-card {
    background: #F9E8C5;
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #EDD4B2;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #C97B2E, #E67E22);
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(201, 123, 46, 0.3);
}

.content-image {
    font-size: 3.5rem;
    color: #C97B2E;
    margin-bottom: 1.5rem;
}
.content-thumbnail {
    width: 60px !important; /* квадрат */
    height: 60px !important;
    border-radius: 8px;
    border: 2px solid #EDD4B2;
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 0.3rem;
    background-color: #FFFBF0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
    display: block;
    max-width: 100%;
}
#search-results-container .content-thumbnail {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    border-radius: 10px;
    margin-right: 0;
    margin-bottom: 1rem;
}
#search-results-container .content-image {
    font-size: inherit;
    margin-bottom: 1rem;
    text-align: center;
}
.content-section .content-thumbnail {
    width: 230px !important;
    height: 140px !important;
    margin-right: 1rem;
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.content-card h3 {
    margin-bottom: 1rem;
    color: #4A3728;
}

.content-card p {
    color: #5A4738;
    margin-bottom: 1.5rem;
}

.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #C97B2E;
    color: #C97B2E;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
    background: transparent;
}

.btn-outline:hover {
    background: #C97B2E;
    color: white;
}

.text-content {
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.text-content h3 {
    margin-top: 1.5rem;
    color: #4A3728;
}

.table-container {
    overflow-x: auto;
    margin: 3rem 0;
}

.deities-table {
    width: 100%;
    border-collapse: collapse;
    background: #F9E8C5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.deities-table thead {
    background: #C97B2E;
    color: white;
}

.deities-table th, .deities-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #EDD4B2;
}

.deities-table tbody tr:nth-child(even) {
    background: #EDD4B2;
}

.deities-table tbody tr:hover {
    background: #E6CCB2;
}

.creature-list ul {
    list-style: none;
    padding-left: 0;
}

.creature-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #A1887F;
    color: #4A3728;
}

.creature-list strong {
    color: #C97B2E;
}

.map-container {
    margin: 3rem 0;
    text-align: center;
}

.map-placeholder {
    background: #F9E8C5;
    border: 3px dashed #C97B2E;
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    min-height: 300px;
}

.map-dots {
    position: relative;
    width: 100%;
    height: 300px;
    background: #EDD4B2;
    border-radius: 10px;
}

.dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #C97B2E;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 10px #E67E22;
}

.dot::after {
    content: attr(data-title);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #4A3728;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.dot:hover::after {
    opacity: 1;
}

.map-caption {
    margin-top: 1rem;
    font-style: italic;
    color: #A1887F;
}

/* Анимация появления */
.animated {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 55, 40, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #F9E8C5;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    border: 3px solid #C97B2E;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #4A3728;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #C97B2E;
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #EDD4B2;
}

.modal-header h2 {
    color: #4A3728;
    font-size: 2.2rem;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5A4738;
}

.article-section {
    background: #FFFBF0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #EDD4B2;
}

.article-section h3 {
    color: #4A3728;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5A4738;
    white-space: pre-line;
}
.article-image {
    margin: 1rem 0;
    text-align: center;
    display: none; /* по умолчанию скрыто, показывается если есть изображение */
}
.article-image-img {
    max-width: 100%;
    width: 100%; /* растягиваем по ширине контейнера */
    height: auto; /* сохраняем пропорции */
    display: block; /* устраняем лишние отступы снизу */
    margin: 0 auto; /* центрируем, если ширина меньше 100% */
    border-radius: 10px;
    border: 3px solid #EDD4B2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /* Примечание: изображение растянуто практически по ширине текста в модальной форме */
}
.modal-comments {
    margin-top: 1.5rem;
}
.modal-comments.collapsed .comments-content {
    display: none;
}

.modal-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem;
    background: #EDD4B2;
    border-radius: 10px;
    margin-bottom: 0;
    transition: background 0.3s;
}

.modal-comments-header:hover {
    background: #E6CCB2;
}

.modal-comments-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4A3728;
}

.toggle-icon {
    transition: transform 0.3s;
    color: #C97B2E;
}

.modal-comments.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.comments-content {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #EDD4B2;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.comment-item {
    background: #F9E8C5;
    border-left: 4px solid #C97B2E;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 10px 10px 0;
}

.comment-author {
    font-weight: bold;
    color: #4A3728;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-author i {
    color: #C97B2E;
}

.comment-text {
    margin-top: 0.5rem;
    color: #5A4738;
}

.comment-date {
    font-size: 0.85rem;
    color: #A1887F;
    margin-top: 0.3rem;
    text-align: right;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    color: #4A3728;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    padding: 0.6rem;
    border: 2px solid #EDD4B2;
    border-radius: 10px;
    font-family: 'Noto Serif', serif;
    font-size: 0.95rem;
    background: #FFF;
    color: #4A3728;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C97B2E;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.btn-submit {
    align-self: flex-start;
    padding: 10px 20px;
    background: linear-gradient(to right, #C97B2E, #E67E22);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(201, 123, 46, 0.5);
}

.no-comments {
    text-align: center;
    color: #A1887F;
    font-style: italic;
    padding: 2rem;
}
/* ===== COMPACT LIST FOR CATEGORY PAGES ===== */
.content-section .content-grid {
    display: block;
    gap: 0;
}

.content-section .content-card {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid #EDD4B2;
    background: #F9E8C5;
    transition: all 0.2s;
    position: relative;
}

.content-section .content-card::before {
    height: 3px;
    background: linear-gradient(to right, #C97B2E, #E67E22);
}

.content-section .content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 123, 46, 0.2);
    border-color: #C97B2E;
}

.content-section .content-image {
    font-size: 1.5rem;
    color: #C97B2E;
    margin-right: 1rem;
    margin-bottom: 0;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.content-section .content-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    margin-right: 10rem;
    align-self: center;
    color: #4A3728;
}

.content-section .content-card p {
    font-size: 0.95rem;
    color: #5A4738;
    margin-bottom: 0.4rem;
    line-height: 1.5;
    margin-right: 2rem;
    align-self: center;

}

.content-section .btn-outline {
    padding: 5px 15px;
    font-size: 0.9rem;
    border-width: 1px;
    margin-left: auto;
    align-self: center;
}

/* Убираем лишние отступы и центрирование */
.content-section .content-card > *:not(.content-image) {
    flex: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .content-section .content-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .content-section .content-image {
        margin-right: 0;
        margin-bottom: 0.4rem;
    }
    .content-section .content-card h3 {
        margin-right: 0;
        align-self: flex-start;
    }
    .content-section .content-card p {
        margin-right: 0;
        align-self: flex-start;
    }
    .content-section .btn-outline {
        align-self: flex-start;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    .content-section .content-thumbnail {
        width: 150px !important;
        height: 100px !important;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
/* Extra small screens */
@media (max-width: 576px) {
    .content-section .content-thumbnail {
        width: 120px !important;
        height: 80px !important;
    }
    .content-section .content-card {
        padding: 0.8rem 1rem;
    }
    .content-section .content-card h3 {
        font-size: 1.1rem;
    }
    .content-section .content-card p {
        font-size: 0.85rem;
    }
}