@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;
  left: 0;
  bottom: -2px;
  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: 1fr;
  gap: 30px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .programs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.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;
}

.nav-list li.has-dropdown {
  position: relative;
}

.nav-list li.has-dropdown {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: -15px;
}

.nav-list li.has-dropdown .fa-angle-down {
  font-size: 14px;
  margin-left: 5px;
  transition: transform 0.2s ease-in-out;
}

.nav-list li.has-dropdown:hover .fa-angle-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
  z-index: 100;
  list-style: none;
  padding: 8px 0;
  border-radius: 8px;

  margin-top: 0;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.nav-list li.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li a {
  color: #333;
  padding: 12px 20px;
  display: block;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #4caf50;
}

.dropdown-menu li a.active::after {
  display: none;
}

.dropdown-menu li a.active {
  font-weight: 700;
  color: #4caf50;
}

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

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

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

.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: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #4caf50;
  border-radius: 2px;
}

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

.nav-list li.prova a {
  color: #e74c3c;
  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 .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: 8px;
  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.1);
}

.container {
  padding-left: 15vw;
  padding-right: 15vw;
  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(3, 1fr);
  gap: 30px;
  padding-bottom: 40px;
}

.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-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: 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: 100%;
  margin: 20px auto 0 auto;
  padding: 12px 25px;
}

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

.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;
}

@media (max-width: 1400px) {
  .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

@media (max-width: 992px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 30px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .nav-list {
    flex-direction: column;
    gap: 15px;
  }

  .nav-list .for__login {
    position: static;
    transform: none;
    margin-top: 10px;
  }
}

/* === НОВЫЙ ДИЗАЙН: КОМПАКТНОЕ МЕНЮ СВЕРХУ С ЭФФЕКТОМ BLUR === */
.burger-btn {
  display: none;
}

@media (max-width: 992px) {
  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: fixed;
    top: 5px;
    right: 10px;
  }

  .burger-btn span {
    width: 2.5rem;
    height: 0.25rem;
    background: #333;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
  }

  #main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);

    padding-top: 20px;
    padding-bottom: 0px;
  }

  #main-navigation .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0;
  }

  #main-navigation .nav-list li a {
    font-size: 1.55rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
  }

  #main-navigation .nav-list li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  #main-navigation .nav-list .for__login {
    position: static;
    transform: none;
    margin-top: 20px;
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open #main-navigation {
    transform: translateY(0);
  }

  body.nav-open .burger-btn span {
    background: #333;
  }

  body.nav-open .burger-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  body.nav-open .burger-btn span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }

  body.nav-open .burger-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

.nav-list li.has-dropdown {
  position: relative;
}

.nav-list li.has-dropdown .fa-angle-down {
  font-size: 14px;
  margin-left: 5px;
  transition: transform 0.2s ease-in-out;
}

.nav-list li.has-dropdown:hover .fa-angle-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
  z-index: 100;
  list-style: none;
  padding: 10px 0;
  border-radius: 8px;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, margin-top 0.2s ease-in-out;
}

.nav-list li.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 5px;
}

.dropdown-menu li a {
  color: #333;
  padding: 12px 20px;
  display: block;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #4caf50;
}

.dropdown-menu li a.active::after {
  display: none;
}

.dropdown-menu li a.active {
  font-weight: 700;
  color: #4caf50;
}

.footer-update-date {
  font-size: 14px;
  color: #95a5a6;
}

/* Прелоадер стили */

body.preloading {
  overflow: hidden;
}


#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #eef1f4;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s, visibility 0.5s;
}

#loader {
  width: 230px;
  height: 230px;
}

#main-content {
  visibility: hidden;
}