/* Hugo Site — сгенерировано автоматически */
:root {
  --primary: #006994;
  --bg: #e3f2fd;
  --card: #ffffff;
  --header-text: #ffffff;
  --radius: 0px;
  --radius-img: 0px;
  --font: 'Trebuchet MS', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg); margin: 0; color: #333; line-height: 1.7; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* Header */
.site-header { background: var(--primary); text-align: center; padding: 50px 20px; margin-bottom: 30px; border-bottom: 4px solid rgba(0,0,0,0.1); }
.site-header a { color: var(--header-text); text-decoration: none; font-size: 2.8em; font-weight: bold; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }
.site-header a:hover { opacity: 0.85; }

/* Grid (список статей) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; align-items: stretch; }
.item-card { text-decoration: none; color: inherit; display: flex; }
.card { background: var(--card); padding: 25px; border-radius: var(--radius); box-shadow: 0 5px 20px rgba(0,0,0,0.06); width: 100%; display: flex; flex-direction: column; transition: transform 0.3s ease; }
.item-card:hover .card { transform: translateY(-8px); }
.card img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-img); margin-bottom: 15px; }
.card-title { margin: 0; font-size: 1.2em; font-weight: bold; color: var(--primary); flex-grow: 1; }

/* Статья */
.article-card { background: var(--card); padding: 40px; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
h1 { color: var(--primary); font-size: 2.4em; margin-top: 0; line-height: 1.3; }
h2, h3 { color: var(--primary); border-left: 6px solid var(--primary); padding-left: 15px; margin-top: 35px; }
.main-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; display: block; }

/* Видео */
.video-block { text-align: center; margin: 30px 0; }
.video-block iframe { max-width: 100%; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Inline related */
.inline-related { background: rgba(0,0,0,0.03); border-left: 4px solid var(--primary); padding: 14px 20px; border-radius: 6px; margin: 30px 0; }
.inline-related p { margin: 0; font-size: 0.97em; }
.inline-related a { color: var(--primary); font-weight: bold; text-decoration: none; border-bottom: 1px dashed var(--primary); }
.inline-related a:hover { background: var(--primary); color: white; border-radius: 3px; padding: 0 4px 1px; border-bottom: none; }

/* Related sidebar */
.related-box { margin-top: 50px; padding-top: 30px; border-top: 2px dashed var(--primary); }
.related-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.related-list a { color: var(--primary); text-decoration: none; font-weight: bold; background: rgba(0,0,0,0.03); padding: 10px 15px; border-radius: 8px; display: block; }
.related-list a:hover { background: var(--primary); color: white; }

/* Таблицы */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td { border: 1px solid #ddd; padding: 12px; text-align: left; }
th { background: var(--primary); color: white; }
tr:nth-child(even) { background: var(--bg); }

/* Пагинация */
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 40px 0; flex-wrap: wrap; }
.page-link { padding: 10px 16px; background: var(--card); color: var(--primary); text-decoration: none; border-radius: 8px; font-weight: bold; border: 2px solid var(--primary); transition: all 0.3s; display: inline-block; }
.page-link:hover, .page-link.active { background: var(--primary); color: white; }

/* Мета статьи */
.article-meta { color: #666; font-size: 0.9em; margin-bottom: 20px; }
.article-meta span { margin-right: 15px; }
.tags a { display: inline-block; background: var(--primary); color: white; padding: 3px 10px; border-radius: 20px; text-decoration: none; font-size: 0.85em; margin: 2px; }

@media (max-width: 600px) {
  .related-list { grid-template-columns: 1fr; }
  h1 { font-size: 1.8em; }
  .article-card { padding: 20px; }
  .site-header a { font-size: 1.8em; }
  .grid { grid-template-columns: 1fr; }
}
