/* ==========================================================================
   1. СБРОС СТИЛЕЙ И ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ
   ========================================================================== */
:root {
  --font-family: 'Open Sans', Arial, sans-serif;
  --text-color: #262626;
  --bg-main: #ffffff;
  --bg-gray: #f8f8f8;
  --accent-blue: #0d5ae6;
  --container-width: 1109px;
}

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



a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

  .nast-content {padding-top:60px;}
.participation-col {font-weight:400;}
/* ==========================================================================
   4. ТИПОГРАФИКА И ОСНОВНОЙ КОНТЕНТ
   ========================================================================== */
.main-content {
  padding-top: 48px;
  overflow-x: hidden;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.13;
  margin-bottom: 40px;
  position: relative;
  color: var(--text-color);
}

/* Декоративная линия слева от главного заголовка */
.page-title::before {
  content: '';
  position: absolute;
  left: -165px;
  top: 50%;
  width: 128px;
  height: 1px;
  background-color: var(--text-color);
}

.intro-section {
  margin-bottom: 32px;
}

.section-subtitle,
.section-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--text-color);
}

.paragraph {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color);
}

.paragraph--mt {
  margin-top: 24px;
}

.intro-text {
  margin-top: 35px;
  margin-bottom: 48px;
}

/* ==========================================================================
   5. ВИДЕОПЛЕЕР
   ========================================================================== */
.video-section {
  margin: 32px 0 48px;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   6. ПОЛОСЫ НА ВСЮ ШИРИНУ ЭКРАНА (STRIPES) И СПИСКИ
   ========================================================================== */
.features-section {
  margin-top: 48px;
}

.stripe {
  width: 100%;
  padding: 24px 0;
}

.stripe--gray {
  background-color: var(--bg-gray);
}

.stripe--white {
  background-color: var(--bg-main);
}

.stripe--compact {
  padding: 16px 0;
}

.stripe__header {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-bottom: 12px;
}

.stripe__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
}

/* Квадратный синий маркер */
.square-marker {
  width: 10px;
  height: 10px;
  background-color: var(--accent-blue);
  flex-shrink: 0;
  display: inline-block;
}

.recommendations-section {
  margin-top: 48px;
}

.recommendations-intro {
  margin-bottom: 32px;
}

.grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 29px;
  font-size: 16px;
  color: var(--text-color);
}

.list-item .square-marker {
  margin-top: 7px;
}

/* ==========================================================================
   7. СЕКЦИЯ: НАШИ НАСТАВНИКИ (ПО 4 В РЯД)
   ========================================================================== */
.mentors-section {
  margin-top: 64px;
}

/* Сетка ровно по 4 колонки */
.mentors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  margin-top: 30px;
}

.mentor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Внешняя рамка фото */
.mentor-card__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 21px;
}

/* Внутренняя рамка фото */
.mentor-card__img-wrapper {
  width: 94%;
  height: 94%;
  background-color: var(--bg-main);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.mentor-card__img-wrapper img {
  width: 90%;
  height: 99%;
  object-fit: contain;
}

.mentor-card__name {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-color);
}

.mentor-card__role {
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  color: var(--text-color);
}

/* ==========================================================================
   8. СЕКЦИЯ: КАК ПРИНЯТЬ УЧАСТИЕ
   ========================================================================== */
.participation-section {
  width: 100%;
  background-color: var(--bg-gray);
  padding: 48px 0;
  margin-top: 64px;
}

.participation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.participation-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
}

.participation-info {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 6px;
  color: var(--text-color);
}

.participation-info:last-child {
  margin-bottom: 0;
}

.participation-info a {
  color: var(--text-color);
  text-decoration: none;
}

.participation-info a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* ==========================================================================
   9. СЕКЦИЯ: ДОКУМЕНТЫ ПО НАСТАВНИЧЕСТВУ
   ========================================================================== */
.documents-section {
  padding: 48px 0 80px;
  background-color: var(--bg-main);
}

.documents-description {
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 32px;
}

.documents-list {
  display: flex;
  flex-direction: column;
}

.document-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #eaeaea;
  text-decoration: none;
}

.document-item:first-child {
  border-top: 1px solid #eaeaea;
}

.document-item:hover .document-item__title {
  color: var(--accent-blue);
}

.document-item__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.document-item__icon {
  flex-shrink: 0;
}

.document-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.document-item__size {
  font-size: 16px;
  color: var(--accent-blue);
  font-weight: 600;
}
 

/* ==========================================================================
   10. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1200px) {
  .page-title::before {
    display: none;
  }
}

@media (max-width: 1024px) {
  .mentors-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 в ряд на средних экранах */
  }
}

@media (max-width: 768px) {
  .mentors-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 в ряд на планшетах */
  }

  .grid-two-columns,
  .participation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .header__container {
    flex-direction: column;
    gap: 16px;
  }

  .nav__list {
    flex-wrap: wrap;
    gap: 12px;
  }

 
  .nast-content {padding-top:80px;}
  .nast-content h1{
          margin-bottom: 28px;
        color: var(--med-heading-mobile);
        font-size: 16px;
        line-height: 1.3;}
        .paragraph {
    font-size: 14px;
  
}
.nast-content {font-size:14px;}
.section-subtitle, .section-title {
    font-size: 14px;
}
}

@media (max-width: 480px) {
  .mentors-grid {
    grid-template-columns: 1fr; /* 1 в ряд на смартфонах */
  }
}