@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: rgb(229, 229, 229);
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #ffffff;
  padding: 5px;
  text-align: center;
  position: relative;
}

.nav-list {
  list-style-type: none;
  padding: 0;
  margin: 40px 0;
  display: flex;
  justify-content: center;
  gap: 60px;
}

.nav-list li a {
  font-size: 22px;
  font-weight: bold;
  color: black;
  position: relative;
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  color: #4caf50;
}

.nav-list li a.active {
  color: #4caf50;
  font-weight: bold;
}

.nav-list li a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #4caf50;
}

nav ul li a.prova {
  color: red;
  font-weight: 800;
}

.nav-list li.prova a {
  color: red;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-list li.prova a:hover {
  color: #4caf50;
}

.nav-list li.prova a.active {
  color: #4caf50;
  font-weight: bold;
}

.nav-list .fa-user-shield {
  font-size: 24px; /* Размер иконки */
  vertical-align: middle; /* Выравнивание по центру */
}

.nav-list .for__login {
  position: absolute; /* Абсолютное позиционирование */
  right: 40px; /* Смещение от правого края */
  top: 50%; /* Центрирование по вертикали */
  transform: translateY(-50%); /* Корректируем вертикальное смещение */
}

.login__img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

main {
  flex-grow: 1;
}

.btn {
  display: inline-block;
  background-color: #4caf50;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 15px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background-color: #388e3c;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
  background-color: #2e7d32;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-1 {
  display: inline-block;
  background-color: transparent;
  color: #f8f8f8;
  background-color: #2044e6;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  border: 2px solid #235cc0;
  border-radius: 15px;
  text-decoration: none;
  margin-top: 10px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Плавный переход */
}

.btn-1:hover {
  background-color: #0935a3;
  color: #ffffff;
}

.btn-1:active {
  background-color: #388e3c;
  color: #ffffff;
}

.container {
  padding-left: 300px;
  padding-right: 300px;
  padding-top: 60px;
}

.main-hero {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ffffff;
  border-radius: 15px;
  margin-bottom: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.main-hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #4caf50;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.main-hero .main-hero-subtitle {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #ecf0f1;
  line-height: 1.4;
}

.main-hero-description {
  font-size: 18px;
  color: #bdc3c7;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

.main-page-title-section {
  text-align: center;
  margin-bottom: 40px;
}

.main-page-title-section h2 {
  font-size: 34px;
  color: #2c3e50;
  font-weight: 700;
  border-bottom: 3px solid #4caf50;
  display: inline-block;
  padding-bottom: 10px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding-bottom: 40px;
}

.program-intro {
  font-size: 20px;
  font-weight: 700;
  color: #555555;
  margin-bottom: 30px;
  text-align: center;
}

.program-card-main {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-hero {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ffffff;
  border-radius: 15px;
  margin-bottom: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.program-hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #4caf50;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.program-hero .program-subtitle {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #ecf0f1;
  line-height: 1.4;
}

.program-content-wrapper {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.program-content-wrapper h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 25px;
  text-align: center;
}

.program-card-main:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.program-card-main h3.name {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  text-align: center;
}

.program-card-main p.name.sub-name {
  font-size: 16px;
  font-weight: 500;
  color: #4caf50;
  margin-top: -5px;
  margin-bottom: 15px;
  text-align: center;
}

.program-card-main .about-program-card {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
  flex-grow: 1;
}

.program-card-main .btn {
  display: block;
  width: fit-content;
  margin: 20px auto 0 auto;
  padding: 12px 25px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.feature-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 15px;
  border-left: 5px solid #4caf50;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.feature-card p,
.feature-card ul {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.feature-card ul {
  list-style-type: none;
  padding-left: 0;
}

.feature-card ul li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.feature-card ul li::before {
  content: "✔";
  color: #4caf50;
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: bold;
  font-size: 18px;
}

.program-conclusion {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left: 5px solid #4caf50;
  border-radius: 0 10px 10px 0;
}

.site-footer {
  background-color: #2c3e50;
  color: #bdc3c7;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

.site-footer .container {
  padding-top: 0;
  padding-bottom: 0;
}

.site-footer p {
  margin-bottom: 15px;
  font-size: 14px;
}

.site-footer .nav-list {
  margin-top: 0;
  margin-bottom: 0;
  gap: 30px;
}

.site-footer .nav-list li a {
  font-size: 16px;
  color: #ecf0f1;
  font-weight: normal;
}

.site-footer .nav-list li a:hover {
  color: #4caf50;
}

.auth-section {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    justify-content: center;
}

.auth-card {
    flex: 1;
    padding: 30px;
    border-radius: 15px;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px; /* Ограничиваем ширину карточек */
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.auth-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 10px;
}

.auth-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #ecf0f1;
}

.auth-card .btn {
    display: inline-block;
    width: auto;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: 700;
}

/* Градиенты для карточек */
.moderator-card {
    background: linear-gradient(135deg, #3498db, #2980b9); /* Синий градиент */
}
.admin-card {
    background: linear-gradient(135deg, #2c3e50, #46627f); /* Темный градиент */
}

.admin-card .btn-admin {
    background-color: #4CAF50;
    color: #ffffff;
}

