/* Общие настройки (без *!) */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  padding-top: 20px;
  /* Отступ от шапки */
}

footer {
  padding: 2rem 0;
  /* Вертикальные отступы */
  background-color: #eee;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
  /* Меньше отступы для мобильных */
}

/* Шапка */
.header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  color: #1e88e5;
  font-size: 1.2rem;
}

/* Меню навигации */
.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: #1e88e5;
}

/* Статьи */
.post {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #ddd;
}

.post-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.post-title {
  margin: 10px 0;
  font-size: 1.5rem;
}

.post-body {
  color: #444;
}

/* Форма */
.version-form {
  margin-top: 40px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e88e5;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Кнопка */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #1e88e5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.1s;
}

.btn:hover {
  background-color: #0d47a1;
  transform: translateY(-1px);
}
