
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #257;
    padding: 10px 20px;
}
/* Блок 1: логотип и название центра */
.header-block-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}
.header-block-top .logo {
    margin-right: 10px;
}
.header-block-top .logo img {
    max-width: 100px;
}
.center-name h1 {
    margin: 0;
    font-size: 40px;
    color: #fff;
}

/* Блок 2: адрес и фотография здания */
.header-block-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-block-bottom .building-photo img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 8px;
}
.address {
    max-width: 200px;
}
.header-block-bottom .address p {
    margin: 0;
    font-size: 16px;
    text-align: center;
    color: #fff;
}

/* Навигационное меню */
nav.menu {
    padding: 10px 20px;
}
nav.menu select {
    margin-right: 10px;
    padding: 5px;
    font-size: 16px;
    font-weight: bold;
    width: 200px;
    border: none;
    color: #257;
    cursor: pointer;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}
nav.menu select:hover {
    display: flex;
    justify-content: space-around;
    color: #b31;
}

/* Остальной рабочий CSS не изменяется */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

.foto {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  background-color:#313030;
  background-image:
      linear-gradient(to top, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 23%, rgba(255,255,255,0) 100%),
      linear-gradient(to right top, rgba(255,255,255,0) 0%, rgba(0,0,0,0) 53%, rgba(0,0,0,.4) 100%),
      linear-gradient(rgba(34,33,28,.5) 0%, rgba(34,33,28,.5) 100%),
      url(/image/butikov.jpg);
  /* ключевой момент: размеры по слоям (3 градиента + фото) */
  background-size: 100% 100%, 100% 100%, 100% 100%, cover;
  background-repeat:no-repeat;
    background-position:
    center center,         /* градиент 1 */
    center center,         /* градиент 2 */
    center center,         /* градиент 3 */
    75% 5%;               /* <<< ФОКУС ФОТО: левее и чуть выше центра */
  color:#fff;
  text-align:center;
  padding:0;
  height:100vh; /* только для десктопа */
}

/* Мобилка: не растягиваем до 100vh и показываем фото целиком */
@media (max-width: 600px){
  .foto{
    height:auto;                 /* <-- убираем 100vh */
    min-height: 50vh;            /* разумная минимальная высота */
    padding-block: 16px;         /* чуть воздуха для текста */
    background-size: 100% 100%, 100% 100%, 100% 100%, contain;
    background-position:center, center, center, center;
    background-color:#000;       /* цвет полей, если вдруг появятся */
  }
}

/* Очень узкие — допускаем лёгкую кадровку, чтобы убрать поля совсем */
@media (max-width: 380px){
  .foto{
    background-size: 100% 100%, 100% 100%, 100% 100%, cover;
    background-position: center 25%, center, center, center; /* сдвиг фокуса при cover */
  }
}
.logo_text {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    color: #47579d;
    margin-left: 20px;
    margin-top: 32px;
}

.main_logo {
    width: 150px;
}

.main_logotext {
    font-weight: bold;
    font-size: 48px;
}

.main_leftcontain {
    display: flex;
    align-items: center;
    border-radius: 24px;
    padding: 12px;
    opacity: 0.9;
    width: 420px;
}

.main_leftcontain h1 {
    font-size: 24px;
    text-align: left;
}

.main_rightcontain {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    border-radius: 24px;
    padding: 12px;
    opacity: 0.9;
    color: white;
    width: 440px;
    margin-right: 24px;
}

.main_logotextnumber {
    font-size: 32px;
    color: white;
    text-decoration: none;
    margin: 0;
}

.main_logotextsecond {
    font-weight: 300;
    color: white;
    margin-top: 15px;
    text-decoration: none;
}

.main_logoimg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.main_logoimg img {
    max-width: 200px;
}

.accreditation_text {
    margin-top: 30px;
}

.container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Marquee */
marquee {
    color: white;
    font-size: 32px;
    font-weight: bold;
}
/* Секция "Наши преимущества" */
.section__advantage {
  background: #d0e1f9;
  padding: 40px 20px;
  border-top: 5px solid #4679bd;
  border-radius: 8px;
  text-align: center;
  margin: 40px auto;
}

.advantage__logo {
  font-size: 2em;
  font-weight: bold;
  color: #257;
  margin-bottom: 30px;
}

.advantage__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.container__item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 280px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.container__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.container__logotext {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #257;
}

.advantage__img {
  margin-bottom: 10px;
}
.advantage__img img {
  max-width: 60px;
  height: auto;
}

.container__text {
  font-size: 0.95em;
  text-align: center;
  color: #555;
}

/* Слайдер */
/* Слайдер */
.index-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 500px; /* Фиксированная высота для слайдера курсов */
}

.index-slider .slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.index-slider .slide {
  flex: 0 0 100%;
  position: relative;
}

.index-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-button {
  display: inline-block;
  padding: 12px 20px;
  background-color: #FF4081;
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  border-radius: 5px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #f06292;
}

/* Контент поверх изображения */
.index-slider .slide .content {
  position: absolute;
  bottom: 30px;
  left: 50px;
  z-index: 2;
  color: #fff;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  max-width: 70%;
}

/* Навигация слайдера курсов */
.index-slider .slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.index-slider .slider-nav button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 15px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.index-slider .slider-nav button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative;
    bottom: 0;
}

/* Стили для рубрик (разделов) */
.container section {
    margin: 0px auto;
    padding: 20px;
    max-width: 1200px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    border-radius: 8px;
}

/* О центре */
#about {
    background: linear-gradient(135deg, #2c3e50, #257);
    color: #fff;
    text-align: center;
}

/* Историческая справка */
/* Стили для страницы «Историческая справка» */

.history-container {
  margin: 0 auto;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  padding: 0px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: justify;
  line-height: 1.7;
}

/* Шапка */
.graduates_header img {
  width: 60px;
  height: auto;
  margin-right: 1rem;
  display: none;
}


/* Первый блок картинки (полная ширина, без обтекания) */
.accreditation-images:first-of-type img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

/* Основная секция с текстом */
.history-section {
  overflow: hidden; /* сброс float внутри */
}
.history-section p {
  margin-bottom: 1rem;
}
.history-highlight {
  padding: 0.5rem;
  margin-bottom: 1rem;
}

/* По умолчанию все .accreditation-images плавают слева */
.history-section .accreditation-images {
  float: left;
  margin-right: 1rem;
}
.history-section .accreditation-images img {
  display: block;
  width: 200px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Вторая картинка (history2.png) — второй элемент внутри .history-section */
.history-section > div.accreditation-images:nth-child(2) {
  float: left;
  margin-left: 1rem;
}
.history-section > div.accreditation-images:nth-child(2) img {
  width: 270px;
  height: auto;
}

/* Третья картинка (history3.png) — шестой элемент внутри .history-section */
.history-section > div.accreditation-images:nth-child(6) {
  float: right;
  margin-left: 1rem;
  margin-right: 0;
}
.history-section > div.accreditation-images:nth-child(6) img {
  width: 200px;
  height: auto;
}

/* Четвёртая картинка (history4.png) — восьмой элемент (остается слева) */
.history-section > div.accreditation-images:nth-child(8) {
  float: left;
  margin-right: 1rem;
}
.history-section > div.accreditation-images:nth-child(8) img {
  width: 200px;
  height: auto;
}

/* Пятая картинка (history5.png) — десятый элемент внутри .history-section */
.history-section > div.accreditation-images:nth-child(10) {
  float: right;
  margin-left: 1rem;
}
.history-section > div.accreditation-images:nth-child(10) img {
  width: 350px;
  height: auto;
}

/* Адаптив для экранов ≤ 600px */
@media (max-width: 600px) {
  .history-section .accreditation-images {
    float: none;
    margin: 0 auto 1rem auto;
    text-align: center;
  }
  .history-section .accreditation-images img {
    width: 100%;
    max-width: 300px;
  }
}


/* Выпускники центра */
#graduates {
    background: #e0e0e0;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
  }
  #graduates h2 {
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
  }
  .graduates-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .graduate-card {
    background: #fff;
    width: 250px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .graduate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
  }
  .graduate-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }

  /* ===============================
   Слайдер выпускников (Graduates Slider)
   =============================== */
:root{
  --slider-max-w: 800px;   /* общая максимальная ширина */
  --g2-max-h:     420px;   /* высота ТОЛЬКО для верхнего Swiper */
}

/* ───────────────────────────────────── */
/*          ОБЁРТКИ СЛАЙДЕРОВ            */
/* ───────────────────────────────────── */
.g2-coverflow-section,
.graduates-slider{
  max-width:var(--slider-max-w);
  margin:0 auto;              /* центрирование */
}

/* ───────────────────────────────────── */
/*           SWIPER (g2-coverflow)       */
/* ───────────────────────────────────── */
.g2-coverflow-swiper{
  width:100%;
  height:var(--g2-max-h);      /* фиксируем высоту только здесь */
}
.g2-coverflow-swiper .swiper-slide{
  display:flex;
  align-items:center;
  justify-content:center;
}
.g2-coverflow-swiper .swiper-slide img{
  width:100%;
  height:100%;
  object-fit:contain;
  image-rendering:auto;
}

/* ───────────────────────────────────── */
/*          GRADUATES-SLIDER (низ)       */
/* ───────────────────────────────────── */
.graduates-slider{
  position:relative;
  overflow:hidden;            /* прячем лишнее по ширине */
}

/* .slides — простой контейнер без flex-раскладки */
.graduates-slider .slides{
  position:relative;
}

/* все кадры скрыты … */
.graduates-slider .slide{
  display:none;
  text-align:center;          /* для центрирования портретных фото */
}

/* … активный кадр появляется */
.graduates-slider .slide.active{
  display:block;
}

/* изображения: ширина = вся ширина слайдера,
   высота рассчитывается автоматически по пропорциям
   (поэтому больше нет ужатия по вертикали) */
.graduates-slider .slide img{
  width:100%;
  height:auto;
  image-rendering:auto;
}
.graduates-slider .slide,
.graduates-slider .slide img{
  width:100% !important;
  height:auto !important;
  max-width:none !important;
  max-height:none !important;
}
/* ─── КНОПКИ НАВИГАЦИИ ─── */
.graduates-slider .prev,
.graduates-slider .next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  background:#ffffffcc;
  padding:.5rem 1rem;
  border:none;
  border-radius:50%;
  font-size:1.5rem;
  cursor:pointer;
  transition:background .2s ease;
}

.graduates-slider .prev:hover,
.graduates-slider .next:hover{ background:#ffffff; }
.graduates-slider .prev{ left:.5rem; }
.graduates-slider .next{ right:.5rem; }

/* ─── АДАПТИВ (>800 px) ─── */
@media (min-width:801px){
  .g2-coverflow-section,
  .graduates-slider{ width:var(--slider-max-w); }
}

.course_bull{
  max-width: 96px;
}












/* Секция Учебные курсы */
#courses {
    background: #d0e1f9;
    padding: 40px 20px;
    border-top: 5px solid #4679bd;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
    margin-top: 40px;
  }
  #courses h2 {
    margin-bottom: 30px;
    font-size: 2em;
    color: #257;
  }
  
  .courses-section {
    padding: 60px 20px;
    background-color: #f5f8fc;
  }
  
  .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .course-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    border-radius: 16px;
    text-align: center;
    padding: 24px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: #1d1d1d;
  }
  
  .course-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  
  .course-item img {
    width: 100%;
    max-width: 220px;
    height: auto;
    margin-bottom: 20px;
  }
  
  .course-item h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
  }
  /* Центр по горизонтали для всего содержимого карточки */
.course-item{
  align-items: center;         /* картинка и текст по центру */
  text-align: center;          /* на всякий случай */
}

/* Картинки одинаковой высоты без растяжения */
.course-item img{
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;         /* квадратная «площадка» под иконку */
  object-fit: contain;         /* не режем картинку */
  display: block;
  margin-inline: auto;         /* центрируем */
}

/* Заголовок читаемый и центрированный */
.course-item h3{
  margin: 0;
  text-align: center;
  line-height: 1.35;
  font-weight: 700;
  font-size: 18px;
  max-width: 26ch;             /* ограничим длину строки, чтобы не «растягивало» */
  text-wrap: balance;          /* более ровные переносы (Chrome/Edge/Firefox новые) */
  hyphens: auto;               /* нормальные переносы для длинных слов */
  word-break: normal;
}

/* На узких экранах чуть компактнее */
@media (max-width: 420px){
  .course-item{
    padding: 20px 14px;
    border-radius: 14px;
  }
  .course-item h3{
    font-size: 16px;
    max-width: 28ch;
  }
}
  /* Стили секции курса «Оценка имущества» */
.valuation-course-section{
  background:#fff;
  border-left:6px solid #257;           /* фирменный оттенок, как в header */
  padding:40px 25px;
  margin:40px 0;
  border-radius:20px;
  box-shadow:0 8px 24px rgba(0,0,0,.05);
}

.valuation-course-title{
  font-size:32px;
  font-weight:700;
  text-align:center;
  margin:0 0 25px;
  color:#257;
}

.valuation-benefits-list{
  counter-reset:item;
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  row-gap:14px;
}

.valuation-benefits-list li{
  font-size:18px;
  line-height:1.45;
  padding:14px 20px;
  border-radius:14px;
  background:#f5f7fb;
  box-shadow:0 4px 12px rgba(0,0,0,.03);
}


/* Преподаватели учёные – практики */
#scientists {
    background: linear-gradient(90deg, #34495e, #2c3e50);
    color: #fff;
    text-align: center;
}

/* Всегда впереди! */
#leading {
    background: #e9e9e9;
    border: 3px solid #777;
    text-align: center;
    font-weight: bold;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Наш адрес (раздел внутри контейнера) */
#address {
    background: #f5f5f5;
    font-size: 1.1em;
}
/* Стили для блока карты в секции "Наш адрес" */
/* Стили для секции "Наш адрес" */
#address {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
  }
  
  #address h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
  }
  
  /* Иконки в адресной информации */
  #address p i {
    margin-right: 8px;
    color: #257;
  }
  
  /* Стили для блока с картой и фото */
  .address-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
  }
  
  .map-container {
    flex: 1 1 500px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    min-width: 300px;
  }
  
  .address-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    min-width: 300px;
    max-height: 500px;
  }
  
  .address-photo img {
    width: 100%;
    height: auto;
    display: block;
  }
  

/* Как подать заявку */
#application {
    background: #fff;
    border: 2px solid #999;
}
#application form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#application input,
#application select,
#application button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Новости и объявления */
#news article {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}
/* Секция Новостей и объявлений */
#news {
    background: #f5f5f5;
    padding: 16px 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
  }
  #news h2 {
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
  }
  
  /* Слайдер новостей */
  .news-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
  }
  .news-slides {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
  }
  
  /* Карточка новости */
  .news-slide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 0 0 300px;
    overflow: hidden;
    text-align: left;
  }
  .news-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }
  .news-content {
    display: flex;
    padding: 15px;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 15px;
  }
  .news-content h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #257;
  }
  .news-content p {
    font-size: 0.95em;
    color: #666;
    margin: 0 0 15px;
  }
  .news-content .cta-button {
    display: inline-block;
    max-width: 150px;
    padding: 8px 12px;
    background: #F9B551;
    text-align: center;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
  }
  .news-content .cta-button:hover {
    background: #b31;
  }
  
  /* Навигация слайдера новостей */
  .news-slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
  }
  .news-slider-nav button {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  .news-slider-nav button:hover {
    background: rgba(0,0,0,0.8);
  }

/* Фотогалерея */
#gallery {
    background: #f9f9f9;
}
#gallery .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
#gallery .gallery img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
#gallery .gallery img:hover {
    transform: scale(1.05);
}
.accreditation-images {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  .accreditation-images img {
    max-width: 640px;
    border: 2px solid #ccc;
    border-radius: 4px;
  }
  /* Секция Преподаватели центра */
#teachers {
    background: #eef2f5;
    border-radius: 8px;
    margin-bottom: 40px;
  }
  #teachers h2 {
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
    text-align: center;
  }
    #teachers{position:relative;z-index:1; padding:24px 0}
  .teachers-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:16px
  }
  .teacher-card{display:block;background:#fff;border-radius:12px;overflow:hidden;
                text-decoration:none;color:inherit;box-shadow:0 4px 14px rgba(0,0,0,.08)}
  .teacher-image img{width:100%;height:240px;object-fit:cover;display:block}
  .teacher-info{padding:12px}

  /* --- Не даём предыдущим слайдерам перекрывать секцию --- */
  #news,.index-slider{position:relative;z-index:0}

  /* --- Мобилки: точно показываем секцию и складываем в 1–2 колонки --- */
  @media (max-width:768px){
    #teachers{display:block !important;visibility:visible !important}
    .teachers-gallery{grid-template-columns:repeat(2,1fr)}
  }
  @media (max-width:420px){
    .teachers-gallery{grid-template-columns:1fr}
    .teacher-image img{height:200px}
  }
  .teachers-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 80%;
    margin: 0 auto;
  }
  
  .teacher-card {
    display: block;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
  }
  
  .teacher-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .teacher-card-content {
    display: flex;
    flex-direction: row;
  }
  
  .teacher-image {
    flex: 0 0 200px;
    height: 200px;
    overflow: hidden;
  }
  .teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .teacher-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .teacher-info h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #257;
  }
  
  .teacher-info p {
    margin: 0;
    font-size: 1em;
    color: #666;
  }
  section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  section.visible {
    opacity: 1;
    transform: translateY(0);
  }
      /* Стили для содержимого страницы "О Центре и дамы и господа" */
/* Контейнер */
.speech-container{
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

/* Фото: слева + обтекание на десктопе */
.speech-container img.speaker-photo{
  float: left;                               /* обтекание слева */
  width: clamp(240px, 32vw, 400px);          /* адаптивная ширина на больших экранах */
  height: auto;                              
  margin: 6px 24px 16px 0;                   /* отступы справа/снизу */
  border-radius: 12px;
  object-fit: cover;                          /* если где-то зададут высоту — кадрирование аккуратнее */
  shape-outside: inset(0 round 12px);         /* мягкая линия обтекания (там, где поддерживается) */
  shape-margin: 8px;
  max-width: 100%;                            /* не выходить за контейнер */
}

/* Мобилки: убираем float, фото идёт выше текста и тянется на ширину */
@media (max-width: 640px){
  .speech-container img.speaker-photo{
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 12px 0 16px 0;
    shape-outside: none;
  }
}

/* Чтобы подпись и нижние блоки не «подпрыгивали» рядом с float */
.speech-container .bio-korsh{ clear: both; }

/* На всякий случай: любые картинки внутри блока не вылезают за края */
.speech-container img{ max-width: 100%; height: auto; }


      .about-container {
        max-width: 1200px;
        margin: 0 auto;
        text-align: justify;
      }
      .about-container h2 {
        font-size: 2em;
        margin-bottom: 20px;
        color: #257;
        text-align: center;
      }
      .about-container p {
        font-size: 1.2em;
        line-height: 1.6;
        margin: 20px 0 20px 0;
        color: #333;
        text-indent: 2em;
      }
      .about-images {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        margin-top: 30px;
      }
      .about-images img {
        width: 250px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      }
      .speech-container {
        max-width: 1000px;
        margin: 0 auto;
        text-align: justify;
        font-size: 1.2em;
      }
      .speech-container h2 {
        text-align: center;
        font-size: 2em;
        color: #257;
      }
      .speech-container p {
        margin-bottom: 25px;
        text-indent: 2em;
        color: #333;
      }
      /* Увеличенный размер фотографии спикера */
      .speaker-photo {
        float: left;
        width: 550px;
        margin: 0 30px 30px 0;
        object-fit: cover;
      }
      /* Очистка float */
      .speech-container::after {
        content: "";
        display: table;
        clear: both;
      }

       /* Стили для содержимого страницы "Историческая справка" */

    .history-container h2 {
      text-align: center;
      font-size: 2em;
      margin-bottom: 30px;
      color: #257;
    }
    .history-container h3 {
      font-size: 1.8em;
      margin: 30px 0 15px;
      color: #257;
    }
    .history-container p {
      font-size: 1.1em;
      text-indent: 2em;
      color: #333;
    }
    /* Визуальное оформление временной шкалы */
    .timeline {
      border-left: 3px solid #257;
      margin: 20px 0;
      padding-left: 20px;
    }
    .timeline-item {
      margin-bottom: 30px;
    }
    .timeline-item::before {
      content: "";
      display: inline-block;
      width: 12px;
      height: 12px;
      background: #257;
      border-radius: 50%;
      position: relative;
      top: 0.5em;
      margin-right: 10px;
    }
    .graduates_container {
      max-width: 1280px;
      margin: 20px auto;
      background-color: #fff;
      padding: 0px 40px;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .graduates_history p {
      font-size: 24px;
      margin-bottom: 20px;
      text-align: justify;
      font-family: 'Arial', sans-serif;
      color: #444;
      line-height: 1.6;
      text-indent: 5%;
    }
    .graduates-list {
      list-style: none;
      padding: 0;
      margin: 0 0 40px 0;
      font-size: 18px;
    }
    .graduates-list li {
      margin-bottom: 10px;
      padding: 10px;
      transition: background-color 0.3s ease;
      border-radius: 5px;
    }
    .graduates-list li:hover {
      background-color: #f0f0f0;
    }
    .graduates-list a {
      text-decoration: none;
      color: #007BFF;
      font-weight: bold;
    }
    .graduates-list a:hover {
      text-decoration: underline;
    }
    /* Стили для слайдера */


    /* Кнопки навигации */
    .prev, .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(68, 68, 68, 0.8);
      color: #fff;
      border: none;
      padding: 10px;
      cursor: pointer;
      border-radius: 50%;
      font-size: 18px;
    }
    .prev:hover, .next:hover {
      background-color: rgba(68, 68, 68, 1);
    }
    .prev {
      left: 15px;
    }
    .next {
      right: 15px;
    }
    
  .graduates-container{
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Респонсивная сетка */
.graduates-gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* min = 260px */
  gap:20px;
  justify-items:center;             /* центр карточек в колонке */
}

.graduate-card{
  width: 100%;
  max-width: 340px; 
   min-width: 160px;                /* верхний предел */
}

/* Карточка тянется по высоте колонки */
.graduate-card{
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  overflow: hidden; /* скругление и для картинки */
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.graduate-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

/* Картинка адаптивная по соотношению сторон */
.graduate-card img{
  width: 100%;
  aspect-ratio: 4 / 3;    /* вместо фикс. 250px высоты */
  object-fit: cover;
  display: block;
}

/* Контент карточки */
.graduate-info{
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

/* Имя: можно оставить uppercase, но делаем читабельнее */
.graduate-info h3{
  margin: 0;
  font-size: clamp(14px, 2.6vw, 18px);
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  color: #257;
  overflow-wrap: anywhere;   /* аккуратные переносы длинных слов */
}

/* Должность/место работы — без тотального uppercase */
.graduate-info p{
  margin: 0;
  font-size: clamp(12px, 2.2vw, 14px);
  line-height: 1.25;
  font-weight: 600;
  text-transform: none;
  color: #222;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Узкие экраны — одна колонка, чуть крупнее отступы/радиусы можно упростить */
@media (max-width: 420px){
  .graduates-gallery { grid-template-columns: 1fr; }
  .graduate-card { border-radius: 10px; }
}

/* одна карточка в строке — центр */
@media (max-width: 560px){
  .graduates-gallery{
    justify-content: center;    /* центрируем линию */
  }
  .graduate-card{
    flex: 0 0 260px;            /* фиксируем ширину колонки */
    margin-inline: auto;        /* и центрируем саму карточку */
  }
}


     /* Основной контейнер для структуры */
     .structure-container {
      margin: 0 auto;
      text-align: center;
      max-width: 1000px;
    }
    .structure-container h2 {
      font-size: 2em;
      margin-bottom: 40px;
      color: #257;
    }
    /* Основной стиль органиграммы */
    .orgchart {
      list-style: none;
      margin: 0 auto;
      padding: 0;
      position: relative;
    }
    /* Первый уровень: узел директора */
    .orgchart > li {
      display: block;
      margin: 0 auto;
      position: relative;
    }
    .orgchart > li > .org-node {
      padding: 15px 20px;
      border: 2px solid #257;
      border-radius: 8px;
      background: #fff;
      display: inline-block;
      min-width: 160px;
    }
    .orgchart > li > .org-node h3 {
      margin: 0;
      font-size: 1.2em;
      color: #257;
      font-weight: bold;
    }
    .orgchart > li > .org-node p {
      margin: 5px 0 0;
      font-size: 0.95em;
      color: #666;
    }
    /* Второй уровень: flex-контейнер для трёх узлов */
    .orgchart > li > ul {
      display: flex;
      justify-content: center;
      padding-top: 30px;
      position: relative;
      margin: 0;
    }
    /* Горизонтальная линия, соединяющая второй уровень */
    .orgchart > li > ul::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      border-top: 2px solid #257;
      z-index: -1;
    }
    /* Каждый узел второго уровня */
    .orgchart > li > ul > li {
      position: relative;
    }
    /* Вертикальная линия от горизонтальной линии к каждому узлу второго уровня */
    .orgchart > li > ul > li::before {
      content: '';
      position: absolute;
      top: -30px;
      left: 50%;
      border-left: 2px solid #257;
      height: 30px;
    }
    .orgchart > li > ul > li .org-node {
      padding: 15px 20px;
      border: 2px solid #257;
      border-radius: 8px;
      background: #fff;
      display: inline-block;
      min-width: 160px;
    }
    /* Третий уровень: для Научно-педагогического совета */
    .orgchart li ul li ul {
      display: flex;
      justify-content: center;
      gap: 40px;
      padding-top: 30px;
      position: relative;
      margin: 0;
    }
    /* Горизонтальная линия для третьего уровня */
    .orgchart li ul li ul::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      border-top: 2px solid #257;
      z-index: -1;
    }
    .orgchart li ul li ul li {
      position: relative;
    }
    /* Вертикальная линия для каждого узла третьего уровня */
    .orgchart li ul li ul li::before {
      content: '';
      position: absolute;
      top: -30px;
      left: 50%;
      border-left: 2px solid #257;
      height: 30px;
    }
    .orgchart li ul li ul li .org-node {
      padding: 10px 15px;
      border: 2px solid #257;
      border-radius: 8px;
      background: #fff;
      display: inline-block;
      min-width: 160px;
    }
    .orgchart li ul li ul li .org-node h3 {
      margin: 0;
      font-size: 1em;
      color: #257;
      font-weight: bold;
    }
    .orgchart li ul li ul li .org-node p {
      margin: 5px 0 0;
      font-size: 0.95em;
      color: #666;
    }
        /* Стили для страницы "Клиенты центра" */

/* public/css/nspr-orgs.css */

/* Контейнер */
.nspr-orgs-container {
  max-width: 1200px;
  margin: 2.5rem auto;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  font-family: Arial, sans-serif;
}

/* Заголовок */
.nspr-orgs-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nspr-orgs-logo-main {
  width: 56px;
  height: 56px;
}

.nspr-orgs-title {
  font-size: 1.75rem;
  margin: 0;
  color: #1a1a1a;
}

/* Описание */
.nspr-orgs-intro {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #555;
}

/* Сетка карточек */
.nspr-orgs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

/* Одна карточка */
.nspr-org-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nspr-org-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: #dcdcdc;
}

/* Обертка логотипа */
.nspr-org-logo-wrap {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 8px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

/* Логотип */
.nspr-org-logo-card {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

/* Название */
.nspr-org-name-card {
  font-size: 1.05rem;
  color: #222;
  line-height: 1.4;
  font-weight: 600;
}















        


        

        /*Преподаватели ученые практики */

        .ncps-page {
          max-width: 1000px;
          margin: 20px auto;
          padding: 30px;
          background: #fff;
          border-radius: 8px;
          box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .ncps-header {
          display: flex;
          align-items: center;
          flex-wrap: wrap;
          justify-content: center;
          text-align: center;
          margin-bottom: 30px;
          border-radius: 8px;
        }
        .ncps-logo {
          flex: 0 0 auto;
          max-width: 80px;
          display: none;
        }
        .ncps-logo img {
          width: 100%;
          height: auto;
        }
        .ncps-headtext {
          flex: 1 1 auto;
        }
        .ncps-headtext h1 {
          font-size: 2em;
          margin: 0;
          text-transform: uppercase;
          letter-spacing: 2px;
          color: #004080;
        }
        .ncps-headtext h2 {
          font-size: 24px;
          margin: 10px 0 0;
          color: #004080;
          letter-spacing: 1px;
        }
        .ncps-intro {
          margin-bottom: 30px;
          padding: 20px;
          background: #e8f2ff;
          border-radius: 8px;
          font-size: 18px;
          text-align: justify;
        }
        .ncps-intro p {
          margin: 15px 0;
          text-indent: 5%;
        }
        .ncps-achievements {
          margin-bottom: 30px;
        }
        .ncps-achievements h3 {
          font-size: 26px;
          color: #004080;
          border-bottom: 2px solid #007BFF;
          padding-bottom: 5px;
          margin-bottom: 15px;
          text-align: center;
        }
        .ncps-achievements ul {
          padding-left: 20px;
          font-size: 16px;
          list-style-type: decimal;
        }
        .ncps-achievements li {
          margin-bottom: 10px;
          margin-left: 5px;
        }
        .ncps-achievements li i {
          color: #007BFF;
          margin-right: 8px;
        }
        .ncps-profile-photo {
          display: block;
          max-width: 250px;
          width: 100%;
          height: auto;
          border-radius: 8px;
          margin: 20px auto;
          box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        footer.ncps-footer {
          text-align: center;
          font-size: 14px;
          color: #777;
          margin-top: 40px;
          border-top: 1px solid #ddd;
          padding-top: 10px;
        }
        @media (max-width: 600px) {
          .ncps-headtext h1 {
            font-size: 36px;
          }
          .ncps-headtext h2 {
            font-size: 20px;
          }
          .ncps-intro {
            font-size: 16px;
          }
          .ncps-achievements h3 {
            font-size: 22px;
          }
          .ncps-achievements ul {
            font-size: 14px;
          }
          .ncps-logo {
            max-width: 60px;
          }
        }
        /*Абсолютная лигитимность*/
         /* Общие стили */
    .page-container {
      max-width: 1000px;
      margin: 20px auto;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      font-family: 'Roboto', sans-serif;
      color: #333;
      line-height: 1.6;
    }
    /* Верхняя секция с логотипом и заголовком как в graduates_header */
    .graduates_header {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      border-radius: 8px;
      text-align: center;
      text-transform: uppercase;
    }
    .graduates_header h1 {
      font-size: 2em;
      color: #257;
      text-transform: uppercase;
    }
    /* Теглайн под заголовком */
    .tagline {
      text-align: center;
      font-size: 1.2em;
      color: #004080;
      margin: 10px auto;
    }
    /* Секция контента */
    .content-section {
      margin-bottom: 30px;
      padding: 20px;
      background-color: #e8f2ff;
      border-radius: 8px;
      font-size: 22px;
      text-align: justify;
    }
    .content-section p{
      text-indent: 5%;
    }
    .courses-list {
      margin: 20px 0;
      padding-left: 20px;
      font-size: 22px;
      list-style-type: decimal;
    }
    .courses-list li {
      margin-bottom: 10px;
    }
    .final-note {
      font-weight: bold;
      text-align: center;
      font-size: 20px;
      color: #007BFF;
      margin-top: 30px;
    }
    .content-text{
      text-align: center;
      font-weight: bold;
      font-size: 32px;
    }
    /* Фото Госинспекции */
    .gov-photo {
      display: block;
      max-width: 600px;
      width: 100%;
      margin: 20px auto;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    /* Контейнер для дополнительных фотографий */
    .photos-container {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
    }
    .photos-container img {
      max-width: 48%;
      width: 100%;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .center-container img{
      height: 300px;
      width: 170px;

    }
    .letimg img{
      width: 100%;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .content {
      padding: 20px;
      font-size: 18px;
      background-color: #e8f2ff;
      border-radius: 8px;
      margin-bottom: 30px;
      text-align: justify;
    }
    .content p {
      margin: 15px 0;
      text-indent: 5%;
    }

    .header-section {
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 20px;
      border-radius: 8px;
      margin-bottom: 30px;
      text-align: center;
    }
    .header-section .logo-container {
      flex-shrink: 0;
    }
    .header-section .logo-container img {
      max-height: 60px;
      width: auto;
      display: none;
    }
    .header-section .header-text {
      flex-grow: 1;
    }
    .header-section .header-text h1 {
      font-size: 40px;
      margin: 0;
      letter-spacing: 2px;
    }
    .header-section .header-text h2 {
      font-size: 24px;
      margin: 10px 0 0;
      color: var(--primary-color, #004080);
      letter-spacing: 1px;
    }
    /* Секция контента */
    .intro-section {
      font-size: 24px;
      margin-bottom: 30px;
      padding: 20px;
      background: var(--highlight-bg, #e8f2ff);
      border-radius: 8px;
      text-align: justify;
    }
    .intro-section p {
      margin: 15px 0;
      text-indent: 5%;
    }
    .achievements-section {
      max-width: 900px;
      margin: 2rem auto;
      padding: 0 1rem;
    }
    .achievements-title {
      font-size: 1.8rem;
      text-align: center;
      margin-bottom: 1rem;
      color: #222;
      position: relative;
    }
    .achievements-title::after {
      content: "";
      display: block;
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, #0066cc, #3399ff);
      margin: 0.5rem auto 0 auto;
      border-radius: 2px;
    }
    /* Список достижений */
    .achievements-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .achievement-item {
      display: flex;
      align-items: center;
      padding: 1rem 0;
      border-bottom: 1px solid #e0e0e0;
    }
    .achievement-item:last-child {
      border-bottom: none;
    }
    .achievement-img-wrapper {
      flex-shrink: 0;
      margin-right: 1rem;
      cursor: pointer;
      transition: transform 0.2s;
    }
    .achievement-img-wrapper:hover {
      transform: scale(1.02);
    }
    .achievement-img-wrapper img {
      display: block;
      max-width: 250px;
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .achievement-text {
      font-size: 1.4rem;
      line-height: 1.5;
      color: #333;
    }
    .branch {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      text-align: center;
    }
    .branch-images{
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 48px;
      text-align: center;
    }
    @media (max-width: 600px) {
      .achievement-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .achievement-img-wrapper {
        margin: 0 0 0.75rem 0;
      }
      .achievement-img-wrapper img {
        max-width: 100%;
      }
      .achievement-text {
        width: 100%;
      }
    }
    /* Модальное окно для слайдера */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      z-index: 9999;
      align-items: center;
      justify-content: center;
    }
    .modal-content {
      position: relative;
      max-width: 90%;
      max-height: 90%;
    }
    .modal-content img {
      display: block;
      width: auto;
      height: auto;
      max-width: 100%;
      max-height: 640px;
      border-radius: 4px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    .modal-close,
    .modal-prev,
    .modal-next {
      position: absolute;
      color: #fff;
      background: rgba(0, 0, 0, 0.5);
      border: none;
      padding: 0.5rem 0.75rem;
      font-size: 1.5rem;
      cursor: pointer;
      border-radius: 4px;
      z-index: 10000;
    }
    .modal-close {
      top: 1rem;
      right: 1rem;
      font-size: 1.2rem;
      transform: none;
    }
    .modal-prev {
      top: 50%;
      left: 1rem;
      transform: translateY(-50%);
    }
    .modal-next {
      top: 50%;
      right: 1rem;
      transform: translateY(-50%);
    }
    @media (max-width: 600px) {
      .modal-prev {
        left: 0.5rem;
      }
      .modal-next {
        right: 0.5rem;
      }
    }
    
    .profile-container {
      max-width: 900px;
      margin: 30px auto;
      padding: 20px;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .profile-header {
      text-align: center;
      border-bottom: 1px solid #ddd;
      padding-bottom: 20px;
      margin-bottom: 20px;
    }
    
    .profile-photo {
      max-width: 640px;
      width: 100%;
      height: auto;
      border-radius: 8px;
      margin-bottom: 10px;
    }
    .structure{
      width: 100%;
      height: auto;
      border-radius: 8px;
      margin-bottom: 10px;
    }
    .profile-name {
      margin: 10px 0;
      font-size: 32px;
      color: var(--primary-color);
    }
    
    .profile-contact {
      font-size: 16px;
      margin: 5px 0;
      line-height: 1.4;
    }
    
    .profile-contact span {
      display: block;
      margin: 2px 0;
    }
    
    .profile-section {
      margin-bottom: 30px;
    }
    
    .profile-section-title {
      font-size: 22px;
      color: var(--primary-color);
      margin-bottom: 10px;
      border-bottom: 2px solid var(--accent-color);
      padding-bottom: 5px;
    }
    
    .profile-list {
      list-style: none;
      padding-left: 0;
    }
    
    .profile-list li {
      margin-bottom: 10px;
      font-size: 16px;
      line-height: 1.4;
      text-indent: 5%;
    }
    
    .profile-text {
      font-size: 16px;
      text-indent: 5%;
      margin-bottom: 15px;
      line-height: 1.5;
      text-align: justify;
    }
    
    @media (max-width: 600px) {
      .profile-container {
        padding: 15px;
        margin: 15px;
      }
      .profile-name {
        font-size: 26px;
      }
      .profile-photo {
        max-width: 200px;
      }
      .profile-section-title {
        font-size: 20px;
      }
    }
    


/* Стили для страницы 404 */
.notfound-container {
  max-width: 600px;
  margin: 100px auto;
  padding: 40px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.notfound-container h1 {
  font-size: 96px;
  margin: 0;
  color: var(--primary-color);
}

.notfound-container p {
  font-size: 18px;
  margin: 20px 0;
  color: var(--text-color);
  line-height: 1.4;
}

.notfound-container .btn-back {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 16px;
  background-color: var(--accent-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;border: 1px solid white;
}

.notfound-container .btn-back:hover {
  background-color: darken(var(--accent-color), 10%);
  color: black;
  border: 1px solid black;
}



.teacher-list {
  list-style: none;
  counter-reset: teacher;
  padding: 0;
  margin: 0;
}

.teacher-item {
  counter-increment: teacher;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.teacher-item::before {
  content: counter(teacher) ". ";
  font-size: 1.2rem;
  font-weight: bold;
  color: #007bff;
  margin-right: 10px;
  flex-shrink: 0;
}

.teacher-thumb {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  flex-shrink: 0;
}

.teacher-content {
  flex: 1;
}

.teacher-name a {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.teacher-name a:hover {
  color: #007bff;
  text-decoration: underline;
}

.teacher-role {
  font-size: 1.1rem;
  color: #555;
  margin-top: 5px;
}

/* Адаптив */
@media (max-width: 768px) {
  .teacher-item {
    flex-direction: column;
    text-align: center;
  }

  .teacher-item::before {
    display: none;
  }

  .teacher-thumb {
    margin: 0 0 15px;
    width: 140px;
    height: 140px;
  }

  .teacher-content {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 2rem;
  }
  .header h2 {
    font-size: 1.2rem;
  }
  .teacher-name a {
    font-size: 1.2rem;
  }
  .teacher-role {
    font-size: 1rem;
  }
}


/* ===== Общие стили для works и gallery ===== */
.section-title {
  font-size: 2rem;
  color: var(--primary-color, #004080);
  text-align: center;
  margin-bottom: 1rem;
}

/* Сброс отступов у контейнеров */
.works-section,
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Список папок (/works) ===== */
.folders-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.folder-card {
  background: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 1.2rem 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}

.folder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.folder-card .folder-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color, #007BFF);
}

.folder-card .folder-label {
  margin-top: .5rem;
  font-size: .9rem;
  color: #555;
}

/* ===== Сетка публикаций (gallery) ===== */
.publications-list {
  display: flex;
  flex-direction: column;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.publication-card {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .2s, box-shadow .2s;
}

.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.publication-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== Кнопка «назад» ===== */
.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--primary-color, #004080);
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  text-decoration: underline;
}

/* ===== Адаптив ===== */
@media (max-width: 768px) {
  .folder-card { padding: 1rem 0; }
  .publication-card { }
}

.works-section {
  text-align: center;
}
.folders-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.folder-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.folder-label {
  margin-top: 0.5rem;
  font-weight: bold;
}

.folders-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}


.folder-cover {
  width: 240px;
  height: 320px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.folder-cover:hover {
  transform: translateY(-5px);
}

.folder-label {
  margin-top: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
}
/* Форма подачи заявки */
.application-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}
.application-section h2 {
  text-align: center;
  font-size: 28px;
  color: #004080;
  margin-bottom: 16px;
}
.application-section p {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}
.application-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.application-form label {
  font-weight: bold;
}
.application-form input,
.application-form select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.application-form button {
  padding: 12px;
  font-size: 16px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.application-form button:hover {
  background-color: #0056b3;
}
.contact-telegram {
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
}
.contact-telegram a {
  color: #007BFF;
  text-decoration: none;
}
.contact-telegram a:hover {
  text-decoration: underline;
}

/* Стиль страницы успешной отправки */
.application-success {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
.application-success h2 {
  font-size: 26px;
  color: #004080;
  margin-bottom: 12px;
}
.application-success p {
  font-size: 16px;
  margin-bottom: 16px;
}
.application-success .button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.application-success .button:hover {
  background-color: #0056b3;
}


.course-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.course-title {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 0.5em;
  text-align: center;
}

.course-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1.5em;
}

.course-meta {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  margin-bottom: 2em;
}

.course-meta li {
  background: #f4f4f4;
  padding: 0.5em 1em;
  border-radius: 4px;
  font-size: 0.95rem;
}

.course-block {
  margin-bottom: 2em;
}

.course-block h2 {
  font-size: 1.5rem;
  color: #007BFF;
  margin-bottom: 0.5em;
  border-bottom: 2px solid #007BFF;
  padding-bottom: 0.3em;
}

.course-block ul {
  list-style: disc inside;
}

.course-block p {
  margin-bottom: 1em;
  line-height: 1.6;
}


/* Профиль выпускника */
.nspr-profile {
  max-width: 800px;
  margin: 2rem auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-family: 'Segoe UI', sans-serif;
  color: #333333;
}

/* Шапка */
.nspr-header {
  text-align: center;
  margin-bottom: 24px;
}

.nspr-avatar {
  width: 320px;
  height: 320px;
  object-fit: cover;
  margin-bottom: 16px;
}

.nspr-name {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.nspr-role {
  font-size: 16px;
  margin: 0;
  color: #555555;
}

/* Основной текст */
.nspr-bio {
  line-height: 1.7;
}

.nspr-bio p {
  margin-bottom: 16px;
  text-indent: 5%;
  text-align: justify;
}

/* Цитата */
.nspr-quote {
  border-left: 4px solid #cccccc;
  padding-left: 12px;
  font-style: italic;
  text-indent: 5%;
  color: #444444;
  text-align: justify;
  margin: 16px 0;
}

/* Заголовок раздела */
.nspr-section-title {
  font-size: 22px;
  margin: 24px 0 12px;
  color: #1F78D1;
  font-weight: 600;
}

/* Список достижений */
.nspr-achievements {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.nspr-achievements li {
  position: relative;
  padding-left: 24px;
  text-align: justify;
  margin-bottom: 8px;
  text-indent: 5%;
}

.nspr-achievements li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2a7f62;
}

/* Ссылка «Назад» */
.nspr-back-wrapper {
  margin-top: 24px;
}

.nspr-back-link {
  font-size: 16px;
  color: #1F78D1;
  text-decoration: none;
  font-weight: 600;
}

.nspr-back-link:hover {
  text-decoration: underline;
}


/* ============================================================
   public/css/gallery.css
   Полный набор стилей для списка альбомов и просмотра альбома
   ============================================================ */

/* === Общий контейнер и заголовки === */
.nspr-gallery-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.nspr-gallery-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2em;
  color: #257;
  font-weight: 600;
}

/* ============================================================
   1. СТИЛИ СПИСКА АЛЬБОМОВ (photogallery.ejs)
   ============================================================ */

/* Сетка карточек */
.nspr-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* Карточка альбома */
.nspr-gallery-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nspr-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Превью-изображение */
.nspr-gallery-link {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #f0f0f0;
  overflow: hidden;
}
.nspr-gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .3s ease;
}
.nspr-gallery-item:hover .nspr-gallery-thumb {
  opacity: .9;
}

/* Подпись под карточкой — до 3 строк текста */
.nspr-gallery-caption {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-wrap: break-word;
}

/* ============================================================
   2. СТИЛИ ПРОСМОТРА АЛЬБОМА СО СЛАЙДЕРОМ (photogalleryFolder.ejs)
   ============================================================ */

/* Слайдер-контейнер */
.nspr-slider-container {
  position: relative;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
}

/* Дорожка слайдов */
.nspr-slider-track {
  display: flex;
  transition: transform .4s ease;
  height: 100%;
}
.nspr-slide {
  min-width: 100%;
  box-sizing: border-box;
}
.nspr-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Кнопки навигации */
.nspr-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  padding: .4rem .8rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 2;
}
.nspr-slider-btn.prev { left: 8px; }
.nspr-slider-btn.next { right: 8px; }
.nspr-slider-btn:hover { background: rgba(255,255,255,0.9); }

/* Миниатюры под слайдером */
.nspr-thumbs-container {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.nspr-thumb-item {
  width: 60px;
  height: 40px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .2s ease, border .2s ease;
  border: 2px solid transparent;
}
.nspr-thumb-item:hover,
.nspr-thumb-item.active {
  border-color: #007BFF;
  transform: scale(1.05);
}
.nspr-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ссылка «Назад» */
.nspr-gallery-back {
  text-align: center;
  margin-top: 1.5rem;
}
.nspr-gallery-back a {
  color: #007BFF;
  text-decoration: none;
  font-size: 1rem;
}
.nspr-gallery-back a:hover {
  text-decoration: underline;
}
.bio-korsh p{
  max-width: 200px;
  text-align: center;
  text-indent: 0;
  }


  .collage{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1rem;
    max-width:900px;
    width:100%;
  }
  @media(max-width:768px){.collage{grid-template-columns:repeat(2,1fr);}}
  @media(max-width:480px){.collage{grid-template-columns:1fr;}}
  .tile{
    position:relative;
    overflow:hidden;
    border-radius:16px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:transform .25s ease,box-shadow .25s ease;
  }
  .tile:hover{
    transform:translateY(-4px) scale(1.03);
    box-shadow:0 6px 18px rgba(0,0,0,.12);
  }
  .tile img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .caption{
    position:absolute;
    left:0;right:0;bottom:0;
    background:linear-gradient(transparent 10%,rgba(0,0,0,.65));
    color:#fff;
    padding:.5rem .75rem;
    font-size:.875rem;
    text-shadow:0 1px 2px rgba(0,0,0,.5);
  }






/* ============================================================
   3. АДАПТИВНЫЕ СТИЛИ
   ============================================================ */
@media (max-width: 768px) {
  .nspr-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  .nspr-slider-container {
    max-width: 100%;
  }
  .nspr-thumb-item {
    width: 50px;
    height: 35px;
  }
}
@media (max-width: 480px) {
  .nspr-gallery-title {
    font-size: 1.8em;
  }
  .nspr-gallery-caption {
    font-size: .9rem;
    -webkit-line-clamp: 2;
  }
  .nspr-slider-btn {
    padding: .3rem .6rem;
    font-size: .9rem;
  }
  .nspr-thumb-item {
    width: 40px;
    height: 30px;
  }
}

/*bio bil*/
/* Уникальный стиль для миниатюр */
.profile-section img.slider-img {
  display: block;
  margin: 30px auto;
  max-width: 75%;
  height: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.profile-section img.slider-img:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}


.after-education {
  border: 4px solid #cf6a8c;
}
.slider-img {
  display: block;
  margin: 40px auto;
  max-width: 70%;
  height: auto;
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  cursor: pointer;
}
.slider-img:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

/* Анимация появления модалки */
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Стилевой стеклянный фон модалки */
.image-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
}
.image-modal.open {
  display: flex;
  animation: fadeInScale 0.4s ease-out;
}

/* Контейнер для большого изображения */
.image-modal__content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.image-modal__content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Кнопки навигации и закрытия */
.image-modal__close,
.image-modal__prev,
.image-modal__next {
  position: absolute;
  width: 44px; height: 44px;
  background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  user-select: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-modal__close:hover,
.image-modal__prev:hover,
.image-modal__next:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px #fff;
}
.image-modal__close {
  top: 12px; right: 12px;
}
.image-modal__prev {
  left: 12px; top: 50%; transform: translateY(-50%);
}
.image-modal__next {
  right: 12px; top: 50%; transform: translateY(-50%);
}




.mentor-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.mentor-header {
  text-align: center;
  margin-bottom: 2rem;
}
.mentor-header h1 {
  font-size: 2.5rem;
  color: #004080;
  font-weight: 700;
}

.mentors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.mentor-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.mentor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mentor-photo {
  width: 240px;
  height: 360px;
  object-fit: cover;
  margin-bottom: 1rem;
  background: #f0f0f0;
}

.mentor-info {
  text-align: center;
}

.mentor-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
}

.mentor-title {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* public/style.css */

/* --- Общие стили для секции новостей/объявлений --- */
.club-news {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #fafafa;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

/* Заголовок */
.club-news__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  line-height: 1.2;
}

/* Вступительный абзац */
.club-news__intro {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  color: #444;
}

/* Основной текст */
.club-news__text p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  text-align: justify;
}

/* Выделенный текст */
.club-news__text p:first-of-type {
  font-style: italic;
  color: #555;
}

/* Ссылка на вступление в клуб */
.club-news__cta {
  display: block;
  text-align: center;
  margin: 2rem 0 0;
}

.club-news__cta a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #006bb3;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.club-news__cta a:hover {
  background-color: #005699;
}

/* Адаптив */
@media (max-width: 600px) {
  .club-news {
    padding: 1rem;
  }
  .club-news__title {
    font-size: 1.75rem;
  }
  .club-news__intro {
    font-size: 1rem;
  }
}


/* === Блок новости === */
/* ================================================================
   NSPS · ARTICLE CARD · CORPORATE STYLE
   — подключайте ПОСЛЕДНИМ, чтобы переопределить любые старые правила
   — использует классы .article-card, .article-card__image, … (см. шаблон)
   ================================================================ */

/* 0. Шрифт */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 1. Контейнер карточки ------------------------------------------- */
.article-card{
  /* палитра */
  --c-main:#0a2e4e;   /* глубокий корпоративный */
  --c-sec:#184a8a;    /* акцентный синий          */
  --c-text:#212529;   /* основной текст           */

  --radius:12px;
  --shadow:0 8px 24px rgba(0,0,0,.05);

  max-width:900px;
  margin:0 auto;
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding: 15px;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,
              'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  font-size:1.08rem;       /* ≈17 px */
  line-height:1.8;
  color:var(--c-text);
}


.article-card__logo{
  max-width:110px;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.08));
}
.article-card__title{
  font-weight:700;
  font-size:2.1rem;
  letter-spacing:.015em;
  text-transform:uppercase;
  color:var(--c-main);
  text-align:center;
}

/* 3. Изображение (сдержанная тень) -------------------------------- */
.article-card__image{
  text-align:center;
  margin-bottom:1.8rem;
}
.article-card__image img{
  width:100%;
  max-width:700px;
  border-radius:var(--radius);
  box-shadow:0 4px 16px rgba(0,0,0,.08);
}

/* 4. Вводный абзац ----------------------------------------------- */
.article-card__intro{
  font-weight:600;
  font-size:28px;
  color:var(--c-sec);
  text-align:center;
  margin-bottom:1.8rem;
}

/* 5. Основное содержание ------------------------------------------ */
.article-card__content p{
  text-align:justify;
  font-size: 24px;
}

/* серьёзный акцент для ПЕРВОГО абзаца: строгая вертикальная линия */
.article-card__content p:first-of-type{
  border-left:4px solid var(--c-sec);
  padding-left:1rem;
}

/* подчёркнутые фразы (<strong>) — чёрный полужир */
.article-card__content strong{
  font-weight:600;
  color:var(--c-main);
}

/* 6. Адаптивность ------------------------------------------------- */
@media(max-width:600px){
  .article-card{padding:2.4rem 1.4rem;font-size:1rem;}
  .article-card__title{font-size:1.7rem;}
  .article-card__intro{font-size:1.15rem;}
}


/* Для списков, цитат и изображений внутри текста можно дописать по аналогии */



/* =======================================================================
   ДОПОЛНИТЕЛЬНАЯ АДАПТИВНАЯ ВЕРСТКА ДЛЯ МОБИЛЬНЫХ ЭКРАНОВ
   (добавьте в конец существующего CSS-файла, ничего из старого не правя)
   ======================================================================= */

/* ---------- Планшеты и смартфоны ≤ 768 px ---------- */
@media (max-width: 768px) {
  /* Header */
  header{flex-direction:column;gap:10px;padding:10px}
  .header-block-top,
  .header-block-bottom{flex-direction:column;align-items:center}
  .center-name h1{font-size:28px;text-align:center}

  /* Меню */
  nav.menu{padding:10px}
  nav.menu select{width:100%;margin:6px 0}

  /* Шапка-герой (.foto) */
  .logo_text{flex-direction:column;align-items:center;margin:24px 0 0}
  .main_leftcontain,
  .main_rightcontain{width:100%;margin:0;text-align:center}
  .main_logotextnumber{font-size:26px}
  .main_logotextsecond{margin-top:8px;font-size:14px}

  /* Основной курс-слайдер */
  .index-slider{height:320px}
  .index-slider .slide .content{left:16px;bottom:20px;max-width:90%;padding:14px;font-size:14px}

  /* Навигация курсового слайдера */
  .index-slider .slider-nav button{padding:10px}

  /* Слайдер новостей */
  .news-slides{gap:12px}
  .news-slide{flex:0 0 240px}
  .news-slide img{height:140px}

  /* Кнопка в карточке новости */
  .news-content .cta-button{font-size:.8em;padding:6px 10px}

  /* Общие секции */
  section{padding:20px 10px}
}

/* ---------- Маленькие смартфоны ≤ 480 px ---------- */
@media (max-width: 480px) {
  /* Текстовые масштабы */
  .center-name h1{font-size:22px}
  marquee{font-size:20px}
  .main_logotextnumber{font-size:20px}

  /* Герой-слайдер */
  .index-slider{height:260px}
  .index-slider .slide .content{left:12px;bottom:14px;padding:10px;font-size:12px}

  /* Списки преимуществ курсов */
  .valuation-course-title{font-size:24px}
  .valuation-benefits-list li{font-size:14px;padding:10px 14px}

  /* Галерея выпускников */
  .graduate-card{width:46%}
  .graduate-card img{height:140px}

  /* Преподаватели */
  .teacher-card-content{flex-direction:column}
  .teacher-image{height:160px}
  .teacher-info h3{font-size:1.2em}
  .teacher-info p{font-size:.9em}

  /* Курсы – сетка */
  .courses-grid{grid-template-columns:1fr}
  .course-item img{max-width:180px}

  /* Адрес: карта и фото друг под другом */
  .address-content{flex-direction:column}
  .map-container,
  .address-photo{flex:1 1 100%}

  /* Футер */
  footer{padding:15px;font-size:14px}
}
.map-lazy { position: relative; background: #f3f3f3; }
.map-load-btn {
  position: absolute; z-index: 2; left: 16px; bottom: 16px;
  padding: 10px 14px; border-radius: 10px; border: 0; cursor: pointer;
  background: rgba(0,0,0,.7); color: #fff; font-size: 14px;
}
.map-lazy iframe { display:block; width:100%; height:500px; border:0; }

/* === FIX для ленивой карты === */
:root { --map-h: 480px; }              /* высота карты — подстрой при желании */

.address-grid{
  display:grid;
  grid-template-columns: 520px 1fr;    /* карта уже, фото шире */
  gap:24px;
  align-items:start;
}

/* контейнер ленивой карты/обычной карты одной высоты */
.map-lazy,
.address-map{
  height: var(--map-h);
  border-radius: 12px;
  overflow: hidden;
}

/* ВАЖНО: убираем absolute/height:100% у iframe */
.map-lazy iframe,
.address-map iframe{
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border: 0;
}

/* фото — без обрезки, как просил */
.address-photo img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
}

.address-img{
  max-height: 500px;
}