:root {
  --primary: #1a73e8;
  --text: #222;
  --bg: #f7f7f7;
  --card: #fff;
  --border: #e0e0e0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Шапка */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { display: block; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}
.main-nav a:hover { text-decoration: underline; }

/* Основное */
main.container {
  background: var(--card);
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

h1 { font-size: 28px; margin-top: 0; }
h2 { font-size: 22px; margin-top: 1.4em; }
h3 { font-size: 18px; margin-top: 1.2em; }
h4 { font-size: 16px; }

.page-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

/* Списки */
ul { padding-left: 24px; }
ol { padding-left: 24px; }
li { margin-bottom: 4px; }

.post-list {
  list-style: none;
  padding-left: 0;
}
.post-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.post-list time {
  color: #888;
  font-size: 14px;
  margin-left: 8px;
}
.post-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.post-list a:hover { text-decoration: underline; }

.news-list {
  list-style: none;
  padding-left: 0;
}
.news-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.news-list time {
  color: #888;
  font-size: 13px;
  margin-left: 8px;
}
.news-list a {
  color: var(--primary);
  text-decoration: none;
}
.news-list a:hover { text-decoration: underline; }

.home-section { margin-top: 24px; }
.home-section h2 { border-bottom: 2px solid var(--primary); padding-bottom: 6px; }

/* Контент */
img { max-width: 100%; height: auto; }
table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 14px;
}
th, td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: #f0f4f8; }
blockquote {
  border-left: 4px solid var(--primary);
  margin: 16px 0;
  padding: 8px 16px;
  background: #f8fafc;
  color: #333;
}
blockquote p { margin: 4px 0; }
code {
  background: #f0f0f0;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* YouTube */
.youtube {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 16px 0;
}
.youtube iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Подвал */
.site-footer {
  background: #333;
  color: #ccc;
  padding: 16px 0;
  font-size: 14px;
  text-align: center;
}
.site-footer a { color: #aaa; text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 600px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .main-nav ul { gap: 10px; }
  h1 { font-size: 24px; }
}