:root {
    --color-primary: #5d4037;
    --color-primary-light: #8d6e63;
    --color-primary-dark: #3e2723;
    --color-secondary: #c49a6c;
    --color-secondary-light: #d4af37;
    --color-accent: #8b4513;
    --color-text: #3e2723;
    --color-text-light: #5d4037;
    --color-background: #f5f1e8;
    --color-background-alt: #ffffff;
    --color-background-dark: #2e1e16;
    --color-border: #d7ccc8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-lg: 16px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    padding-top: 60px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
}

.container {
    width: 100%;
    padding: 0 20px;
}

/* Хедер */
.site-header {
    background: var(--color-background-alt);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 20px;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
    max-width: 500px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: var(--color-border);
}

/* Выпадающее меню */
.dropdown-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--color-background-alt);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 500px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
}

.dropdown-menu.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.dropdown-menu ul {
    list-style: none;
    padding: 20px 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-menu a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.dropdown-menu a:hover {
    background-color: var(--color-border);
    color: var(--color-primary);
}

/* Секции */
.section {
    padding: 30px 0;
}

.section-header {
    margin-bottom: 25px;
    padding: 0 10px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.section-header p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Категории молитв */
.categories-section {
    background: var(--color-background);
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 15px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.category-content {
    flex-grow: 1;
}

.category-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-text);
}

.category-content p {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.category-stats {
    display: flex;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.category-stats span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.category-stats i {
    margin-right: 5px;
    font-size: 0.7rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-border);
    border-radius: 50%;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-link:hover {
    background: var(--color-primary);
    color: white;
    transform: rotate(-15deg);
}

/* Футер */
.site-footer {
    background: var(--color-background-alt);
    color: var(--color-text);
    padding: 30px 0 20px;
    margin-top: 30px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Оверлей для меню */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Адаптивность */
@media (max-width: 500px) {
    body {
        box-shadow: none;
    }
    
    .site-header {
        box-shadow: var(--shadow-sm);
    }
}

/* Дополнительные стили для контента */
.entry-content {
    line-height: 1.7;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 20px 0 15px;
    color: var(--color-text);
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 5px;
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.entry-content a:hover {
    color: var(--color-primary-dark);
}