.sectionsPage { padding: 40px 0 80px; }


.sectionsGrid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sectionsCard{
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
  text-decoration: none;
  color: #202020;
  overflow: hidden;
}

.sectionsCard__img{ height: 220px; background: rgba(0,0,0,.03); }
.sectionsCard__img img{ width:100%; height:100%; object-fit:cover; display:block; }

.sectionsCard__body{ padding: 16px; }
.sectionsCard__title{ margin:0 0 10px; font-size:20px; line-height:1.15; }
.sectionsCard__text{ font-size:14px; line-height:1.45; opacity:.9; }

.sectionsCard:hover{ border-color: rgba(62,109,122,.55); }

.sectionDetail{ padding: 40px 0 80px; }
.sectionDetail__back{
  display:inline-block;
  margin-bottom:18px;
  color:#202020;
  text-decoration: underline;
}

.sectionDetail__top{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:24px;
  align-items:start;
  margin-bottom:26px;
}

.sectionDetail__img{
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.08);
  overflow:hidden;
}
.sectionDetail__img img{ width:100%; height:auto; display:block; }

.sectionDetail__title{ margin:0 0 12px; }
.sectionDetail__preview{ font-size:16px; line-height:1.5; opacity:.9; }

.sectionDetail__schedule{
  margin-top:18px;
  padding:14px 16px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
}
.sectionDetail__scheduleTitle{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
  opacity:.75;
  margin-bottom:6px;
}
.sectionDetail__scheduleText{ font-size:14px; line-height:1.45; }

.sectionDetail__text{ font-size:16px; line-height:1.65; }

/* адаптив */
@media (max-width: 1280px){
  .sectionsGrid{ grid-template-columns: repeat(3, 1fr); }
  .sectionDetail__top{ grid-template-columns: 360px 1fr; }
}
@media (max-width: 960px){
  .sectionsGrid{ grid-template-columns: repeat(2, 1fr); }
  .sectionDetail__top{ grid-template-columns: 1fr; }
  .sectionsCard__img{ height: 200px; }
}
@media (max-width: 560px){
  .sectionsGrid{ grid-template-columns: 1fr; }
}
/* Центруем карточки секций в строке */
.programsListWrapper .programsList{
  justify-content: center !important;
}
/* Центруем карточки секций в строке */
.programsListWrapper .programsList{
  justify-content: center !important;
}
.sectionsHome__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.sectionsHome__allLink{
  display:inline-block;
  font-size:14px;
  line-height:18px;
  text-decoration:underline;
  color:inherit;
  white-space:nowrap;
  margin-top:6px; /* чтобы визуально было "в правом верхнем" рядом с заголовком */
}

.sectionsHome__allLink:hover{
  text-decoration:none;
}
/* ссылка "Посмотреть все секции" - темная по умолчанию, hover ярче, без скруглений */
.sectionsHome__allLink{
  display:inline-flex;
  align-items:center;
  gap:10px;

  background-color:#3e6d7a;  /* темная */
  color:#fff;                 /* белый текст */
opacity:0.7;

  border:1px solid #3e6d7a;
  border-radius:0;

  font-size:14px;
  line-height:18px;
  font-weight:400;
  letter-spacing:0;

  padding:10px 14px;
  text-decoration:none;
  white-space:nowrap;

  transition:background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.sectionsHome__allLink::after{
  content:"→";
  font-size:16px;
  line-height:1;
  transform:translateY(-1px);
}

/* hover - ярче */
@media (hover:hover){
  .sectionsHome__allLink:hover{
    background-color:#8fc5d3;  /* ярче */
    border-color:#8fc5d3;
  }
}
/* Главная: заголовок "Секции" по центру */
.ourPartnersSection .sectionsPage__title{
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Ссылка "Посмотреть все секции" - темная, без скруглений, белый текст */
.sectionsHome__allLink{
  background-color: #3e6d7a;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  line-height: 18px;
  font-size: 14px;
  border-radius: 0;
  transition: filter .2s ease;
}

/* Наведение - ярче */
.sectionsHome__allLink:hover{
  filter: brightness(1.12);
  color: #ffffff;
  text-decoration: none;
}

/* Если ссылка стоит справа сверху рядом с заголовком */
.sectionsHome__allLinkWrapper{
  display: flex;
  justify-content: flex-end;
}

/* На всякий - чтобы кнопка/ссылка не становилась жирной из-за общих стилей */
.sectionsHome__allLink,
.sectionsHome__allLink *{
  font-weight: 400;
}
.sectionsHome__allLink:active{
  opacity:.9;
}
/* Главная / блок "Секции": фиксируем шапку секции */
.ourPartnersSection .container{
  position: relative; /* якорь для абсолютной ссылки */
}

/* Заголовок строго по центру и не зависит от ссылки */
.ourPartnersSection .sectionsPage__title{
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Ссылка "посмотреть все секции" - вынимаем из потока и ставим вправо сверху */
.ourPartnersSection .sectionsHome__allLink{
  position: absolute;
  top: 0;
  right: 0;

  background-color: #3e6d7a;
  color: #ffffff;
  text-decoration: none;

  padding: 12px 16px;
  display: inline-flex;
  align-items: center;

  border-radius: 0;
  font-weight: 400;
  line-height: 18px;
  font-size: 14px;

  transition: filter .2s ease;
}

.ourPartnersSection .sectionsHome__allLink:hover{
  filter: brightness(1.12);
  color: #ffffff;
  text-decoration: none;
}

/* На мобиле: чтобы не налезало на заголовок */
@media screen and (max-width: 767px){
  .ourPartnersSection .sectionsHome__allLink{
    position: static;
    margin: 12px auto 0;
    justify-content: center;
    display: flex;
    width: fit-content;
  }
}
/* =========================
   SECTION DETAIL PAGE
   ========================= */

/* общий фон страницы детальной секции */
.sectionDetailPage{
  background: #efe7e1; /* твой бежевый */
  padding: 40px 0 80px;
}

/* контейнер под контент */
.sectionDetailPage__container{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* верхний блок: картинка + текст */
.sectionDetailPage__top{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 40px;
}

@media screen and (max-width: 1023px){
  .sectionDetailPage__top{
    grid-template-columns: 1fr;
  }
}

/* картинка */
.sectionDetailPage__image{
  background: #ffffff;
  overflow: hidden;
  border-radius: 0; /* без закруглений */
}

.sectionDetailPage__image img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 1023px){
  .sectionDetailPage__image img{
    height: 320px;
  }
}

/* заголовок / анонс */
.sectionDetailPage__title{
  margin: 0 0 14px;
  font-family: "PT Serif", serif;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media screen and (max-width: 1023px){
  .sectionDetailPage__title{
    font-size: 34px;
  }
}

.sectionDetailPage__preview{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: #202020;
  opacity: 0.9;
}

/* “чип” графика */
.sectionDetailPage__schedule{
  display: inline-block;
  padding: 12px 16px;
  background-color: #3e6d7a;  /* темная */
  color: #ffffff;
  border-radius: 0; /* без закруглений */
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  margin-top: 10px;
}

/* разделитель */
.sectionDetailPage__divider{
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 28px 0 32px;
}

/* детальное описание */
.sectionDetailPage__detail{
  background: #ffffff;
  padding: 28px 28px 30px;
  border-radius: 0; /* без закруглений */
}

@media screen and (max-width: 767px){
  .sectionDetailPage__detail{
    padding: 20px;
  }
}

/* типографика внутри детального текста */
.sectionDetailPage__detail h2,
.sectionDetailPage__detail h3{
  font-family: "PT Serif", serif;
  margin: 22px 0 12px;
  line-height: 1.2;
}

.sectionDetailPage__detail p{
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #202020;
}

.sectionDetailPage__detail ul,
.sectionDetailPage__detail ol{
  margin: 0 0 16px 22px;
  padding: 0;
}

.sectionDetailPage__detail li{
  margin: 0 0 8px;
  line-height: 1.55;
}

/* кнопка “назад ко всем секциям” если добавишь */
.sectionDetailPage__back{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 18px;
  padding: 12px 16px;
.sectionDetailPage { padding: 40px 0 80px; }
@media screen and (min-width: 768px){ .sectionDetailPage{ padding: 60px 0 100px; } }

.sectionDetailPage .sectionsPage__title{
  text-align: center;
  margin: 0 0 30px;
}

.sectionDetailPage__image{
  max-width: 920px;
  margin: 0 auto 24px;
  overflow: hidden;
}

.sectionDetailPage__image img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.sectionDetailPage__desc{
  max-width: 920px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.55;
}

.sectionDetailPage__schedule{
  max-width: 920px;
  margin: 28px auto 0;
}

.sectionDetailPage__schedule h2{
  margin: 0 0 12px;
}

.sectionDetailPage__scheduleText{
  font-size: 16px;
  line-height: 1.55;
}

.sectionDetailPage__back{
  max-width: 920px;
  margin: 36px auto 0;
}

.sectionDetailPage__backLink{
  display: inline-block;
  background-color: #3e6d7a; /* темное */
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
}

@media (hover: hover){
  .sectionDetailPage__backLink:hover{
    background-color: #8fc5d3; /* ярче */
    color: #fff;
  }
}

  background-color: #3e6d7a;
  color: #ffffff;
  text-decoration: none;

  border-radius: 0; /* без закруглений */
  font-weight: 400;
  line-height: 1;
  transition: filter .2s ease;
  white-space: nowrap;
}

.sectionDetailPage__back:hover{
  filter: brightness(1.12);
  color:#ffffff;
}
/* FIX: секции - чтобы карточки не налезали на заголовок (как на contacts) */
.pageLikeContacts.sectionsPage {
  margin-top: -62px;
  padding-top: 80px;
}

@media screen and (min-width: 768px) {
  .pageLikeContacts.sectionsPage {
    padding-top: 122px;
  }
}

/* H1 должен быть выше карточек */
.pageLikeContacts.sectionsPage .sectionsPage__title {
  position: relative;
  z-index: 2;
  /*margin: 0 0 44px;*/
}

/* карточкам запрещаем лезть наверх */
.pageLikeContacts.sectionsPage .programsListWrapper {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
}
/* Отступ между H1 и карточками на списке секций */
.pageLikeContacts.sectionsPage .sectionsPage__title{
  margin-bottom: 60px; /* можно 40-80, подгони */
}

@media screen and (min-width: 1024px){
  .pageLikeContacts.sectionsPage .sectionsPage__title{
    margin-bottom: 90px;
  }
}