.stories-hero{
  padding: 70px 0 50px;
  background: #f7fbff;
  border-bottom: 1px solid rgba(15,59,105,.08);
}

.stories-hero h1{
  margin: 0 0 18px;
  font-size: 48px;
  line-height: 1.08;
  color: #0f3b69;
  max-width: 860px;
}

.stories-hero-lead{
  max-width: 820px;
  font-size: 20px;
  line-height: 1.65;
  color: #244a73;
  margin: 0;
}

.stories-page{
  padding: 42px 0 80px;
  background: #ffffff;
}

.stories-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.stories-filter{
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15,59,105,.12);
  background: #ffffff;
  color: #244a73;
  font-weight: 600;
  cursor: pointer;
}

.stories-filter.active{
  background: #eef7ff;
  color: #0f3b69;
}

.stories-list{
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 980px;
}

.story-card{
  background: #ffffff;
  border: 1px solid rgba(15,59,105,.10);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.story-head{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.story-avatar{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 58px;
  border: 1px solid rgba(15,59,105,.12);
  background: #eef7ff;
}

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

.story-person{
  min-width: 140px;
}

.story-name{
  font-size: 17px;
  font-weight: 800;
  color: #0f3b69;
}

.story-city{
  font-size: 14px;
  color: #6b7280;
  margin-top: 2px;
}

.story-tag{
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7fbff;
  border: 1px solid rgba(15,59,105,.10);
  color: #244a73;
  font-size: 13px;
  font-weight: 700;
}

.story-title{
  margin: 18px 0 12px;
  font-size: 28px;
  line-height: 1.25;
  color: #0f3b69;
}

.story-excerpt{
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #4b5563;
  max-width: 860px;
}

.story-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.story-btn{
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(15,59,105,.12);
  background: #ffffff;
  color: #0f3b69;
  font-weight: 700;
  cursor: pointer;
}

.story-video-btn{
  background: #eef7ff;
}

.story-full{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.story-card.open .story-full{
  max-height: 1200px;
}

.story-full-inner{
  padding-top: 18px;
}

.story-full-inner p{
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.75;
  color: #4b5563;
}

.stories-more{
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.stories-final{
  margin-top: 46px;
}

.stories-final-box{
  background: #eef7ff;
  border: 1px solid rgba(15,59,105,.10);
  border-radius: 20px;
  padding: 32px;
  max-width: 980px;
}

.stories-final-box h2{
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.2;
  color: #0f3b69;
}

.stories-final-box p{
  margin: 0 0 22px;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.75;
  color: #4b5563;
}

/* Видео-модалка */
.story-video-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.story-video-modal.active{
  display: block;
}

.story-video-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.story-video-dialog{
  position: relative;
  width: min(980px, calc(100% - 24px));
  margin: 5vh auto;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.story-video-close{
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.95);
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
}

.story-video-frame{
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.story-video-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 980px){
  .stories-hero h1{
    font-size: 38px;
  }

  .stories-hero-lead{
    font-size: 18px;
  }

  .story-title{
    font-size: 24px;
  }

  .stories-final-box h2{
    font-size: 28px;
  }
}

@media (max-width: 700px){
  .story-head{
    align-items: flex-start;
  }

  .story-tag{
    margin-left: 0;
  }

  .story-card{
    padding: 18px;
  }

  .story-title{
    font-size: 22px;
  }

  .story-excerpt,
  .story-full-inner p,
  .stories-final-box p{
    font-size: 16px;
  }
}

.nav a.active{
  color: #2a7de1;
  font-weight: 700;
}

.story-video-cover{
  margin-top: 16px;
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef7ff, #f8fbff);
  border: 1px solid rgba(15,59,105,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.2s ease;
}

.story-video-cover:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Кнопка play */
.video-cover-play{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2f5f9e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

/* Текст */
.video-cover-text{
  text-align: center;
}

.video-cover-title{
  font-size: 16px;
  font-weight: 700;
  color: #0f3b69;
}

.video-cover-name{
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

.story-bottom{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  margin-top: 22px;
  align-items: stretch;
}

.story-read-btn{
  border: 1px solid rgba(15,59,105,.12);
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  color: #0f3b69;
  cursor: pointer;
  min-height: 120px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-video-wide{
  min-height: 120px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef7ff, #f8fbff);
  border: 1px solid rgba(15,59,105,.10);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  cursor: pointer;
  transition: .2s ease;
}

.story-video-wide:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.story-video-wide__play{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #2f5f9e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 58px;
}

.story-video-wide__text{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.story-video-wide__title{
  font-size: 20px;
  font-weight: 800;
  color: #0f3b69;
}

.story-video-wide__meta{
  font-size: 15px;
  color: #6b7280;
}

@media (max-width: 760px){
  .story-bottom{
    grid-template-columns: 1fr;
  }

  .story-read-btn,
  .story-video-wide{
    min-height: 96px;
  }
}