/* Общие стили */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 16px;
}

/* Шапка */
header {
  background-color: #0429cf;
  padding: 15px 20px;
  color: white;
  text-align: center;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.logo-container .logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.logo-container .logo-text {
  font-size: 32px;
  font-weight: 500;
}

/* Меню */
.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  background: white;
  padding: 20px 40px;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu ul li a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  position: relative;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #007BFF;
  transition: width 0.3s ease;
}

.menu ul li a:hover {
  color: #007BFF;
}

.menu ul li a:hover::after {
  width: 100%;
}

/* Основной контент */
main {
  padding: 40px 20px;
  font-size: 16px;
  flex-grow: 1;
}

.content, .card {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

/* Заголовки */
h2 {
  font-size: 24px;
  color: #003399;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h3.intro-text {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #444;
}

/* Таблица */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px;
}

.table thead {
  background-color: #28a745;
  color: white;
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.table tbody tr:hover {
  background-color: #f1f1f1;
}

/* Примечание */
.note {
  font-size: 14px;
  color: #777;
  font-style: italic;
  margin-top: 20px;
}

/* Футер */
footer {
  background-color: #0429cf;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 50px;
}

/* Адаптивность */
@media (max-width: 600px) {
  .menu ul {
    flex-direction: column;
    gap: 15px;
  }

  h2 {
    font-size: 20px;
  }

  h3.intro-text {
    font-size: 16px;
  }

  .table th,
  .table td {
    font-size: 14px;
    padding: 10px;
  }

  .logo-container .logo-text {
    font-size: 20px;
  }
}
