:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --bg: #fafafa;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg);
    color: #333;
    margin: 0;
    padding-top: 70px; /* Отступ для меню */
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* МЕНЮ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
}
.main-header.hidden {
    transform: translateY(-100%);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
}
nav a { margin-left: 20px; text-decoration: none; color: #555; transition: color 0.2s; }
nav a:hover { color: var(--accent); }

/* СЕТКА СТАТЕЙ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.card-body { padding: 20px; }
.card-body h3 { margin: 0 0 10px; }

/* КОНТЕНТ СТАТЬИ */
.single-post {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* КНОПКА НАВЕРХ */
#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 20px;
}
#scrollTop.show { opacity: 1; pointer-events: auto; }

/* АДАПТИВ */
@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
    .single-post { padding: 20px; }
}