/* =====================================================
   ярхкх дкъ тнпслю ╚пндхмю по╩
   style.css
===================================================== */

/* 1. наыхе ярхкх х яапня он слнквюмхч */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1{,}6;
  color: #333;
  background-color: #f5f5f5;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  color: #0056b3;
}

/* 2. бепумхи йнкнмрхрск (ьюойю) */
.header {
  background: linear-gradient(to right, #1a237e, #283593);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0{,}1);
}

.header h1 {
  font-size: 1{,}8rem;
}

.nav {
  display: flex;
  gap: 1{,}5rem;
}

.nav a {
  color: white;
  font-weight: bold;
}

.nav a:hover {
  text-decoration: underline;
}

/* 3. нямнбмне яндепфхлне */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* яОХЯНЙ ТНПСЛНБ */
.forum-list {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0{,}05);
}

.forum-item {
  display: flex;
  align-items: center;
  padding: 1{,}2rem 1{,}5rem;
  border-bottom: 1px solid #eee;
}

.forum-item:last-child {
  border-bottom: none;
}

.forum-icon {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
  background: #e3f2fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1976d2;
}

.forum-title {
  flex: 1;
}

.forum-title a {
  font-size: 1{,}2rem;
  font-weight: bold;
  color: #212121;
}

.forum-description {
  color: #757575;
  margin-top: 0{,}3rem;
}

.stats {
  text-align: center;
  min-width: 120px;
}

.stats .count {
  display: block;
  font-weight: bold;
  font-size: 1{,}1rem;
  color: #424242;
}

.stats .label {
  font-size: 0{,}9rem;
  color: #9e9e9e;
}

/* 4. яохянй рел б тнпсле */
.topic-list {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0{,}05);
  margin-top: 1{,}5rem;
}

.topic-item {
  display: grid;
  grid-template-columns: 1fr 120px 80px;
  padding: 1{,}2rem 1{,}5rem;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.topic-item:last-child {
  border-bottom: none;
}

.topic-title {
  font-weight: 500;
}

.topic-author {
  color: #616161;
  font-size: 0{,}9rem;
}

.replies, .views {
  text-align: center;
  color: #424242;
  font-weight: 500;
}

/* 5. ймнойх х тнплш */
.btn {
  display: inline-block;
  padding: 0{,}6rem 1{,}2rem;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0{,}3s;
}

.btn:hover {
  background: #0d47a1;
}

.btn-secondary {
  background: #607d8b;
}

.btn-secondary:hover {
  background: #37474f;
}

/* 6. мхфмхи йнкнмрхрск (ондбюк) */
.footer {
  background: #263238;
  color: #cfd8dc;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.footer p {
  margin-bottom: 0{,}5rem;
}

/* 7. юдюорхбмнярэ */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav {
    gap: 1rem;
  }

  .forum-item,
  .topic-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0{,}5rem;
    padding: 1rem;
  }

  .stats,
  .replies,
  .views {
    width: 100%;
    text-align: left;
  }
}
