/* style_gen.css */

.firstscreen__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.firstscreen__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}


/* Главный экран */
/* Заголовок начинается с 1-й колонки и тянется до конца */
.firstscreen__title {
  grid-column: 1 / -1;
  font-size: 64px;
  font-weight: 700;
  color: #17416f;
  line-height: 1.2;
  margin-top: 80px;
}

/* Подзаголовок — с 2-й колонки */
.firstscreen__subtitle {
  grid-column: 2 / -1;
  font-size: 20px;
  line-height: 1.4;
  color: #333;
  margin-top: 20px;
  margin-bottom: 50px;
}

/* Кнопки — с 2-й колонки */
.firstscreen__buttons {
  grid-column: 2 / 4;
  display: flex;
  gap: 15px;
  
}

.firstscreen__btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  
}

.firstscreen__btn--primary {
  background-color: #17416f;
  color: #fff !important;
}

.firstscreen__btn--primary:hover {
  background-color: #17416fd5;
  color: #fff;
}

.firstscreen__btn--secondary {
  background-color: #e0e6ed;
  color: #17416f !important;
}

.firstscreen__btn--secondary:hover {
  background-color: #d4dbe4;
}

.firstscreen__btn--small {
  padding: 8px 14px;
  font-size: 14px;
  background-color: #c60440;
  color: #fff;
  border-radius: 6px;
  margin-top: 15px;
}

/* Слайдер */
.firstscreen__slider{
  position:relative; overflow:hidden;
  border-radius:16px; border:1px solid #e0e6ed;
  margin-top:60px;
}
.firstscreen__slide{ position:relative; }
.firstscreen__slide-img{
  display:block; width:100%; height:400px;
  object-fit:cover; border-radius:16px;
}

/* ВЕРХ: кружок + заголовок */
.firstscreen__overlay-top{
  position:absolute; top:0; left:0; right:0;
  padding:20px 24px 60px; /* нижний паддинг, чтобы текст не лип к центру */
  display:flex; gap:12px; align-items:flex-start;
  /* мягкий слой для читабельности */
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.85) 0%,
    rgba(255,255,255,0.55) 60%,
    rgba(255,255,255,0) 100%
  );
  border-radius:16px 16px 0 0;
}
.firstscreen__red-dot{
  width:20px; height:20px; border-radius:50%;
  background:#c60440; flex:0 0 20px; margin-top:6px;
}
.firstscreen__title-top{
  margin:0; color:#17416f; font-size:32px; line-height:1.25;
  font-weight:700;
  text-wrap:balance;
}

/* НИЗ: синяя плашка */
.firstscreen__overlay-bottom{
  position:absolute; left:0; right:0; bottom:0;
  background:#17416f; color:#fff;
  border-radius:0 0 16px 16px;
  padding:14px 16px;
}
.firstscreen__meta{
  display:flex; 
  align-items:center; 
  justify-content:space-between;
  gap:16px;
}
.firstscreen__meta-text{ font-size:18px; line-height:1.35; opacity:.95; }

/* Кнопка "Подробнее" только в слайдере */
.firstscreen__btn-more{
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  padding:8px 14px; 
  border-radius:50px;
  background:#c60440; 
  color:#fff; 
  text-decoration:none;
  font-weight:600; 
  font-size:14px; 
  white-space:nowrap;
  transition: background .2s ease;
}

.firstscreen__btn-more:hover{ background:#cd3464; }

/* Навигация */
.firstscreen__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;   
  color: #17416f;           
  border: none;
  font-size: 2rem;         
  cursor: pointer;
  padding: 4px;             
  border-radius: 50%;        
  transition: background 0.2s ease;
}


.firstscreen__nav--prev{ left:10px; }
.firstscreen__nav--next{ right:10px; }
.firstscreen__nav:hover{ color: #7d7d7d; }



/* 2 блок */

/* Кнопки */
.conf-btn {
  padding: 12px 20px;
  border-radius: 50px;
  background-color: #e0e6ed;
  border-color: #e0e6ed;
  color: #17416f;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 30px;
  border: none;
}

.conf-btn:hover {
  background-color: #d4dbe4;
}

.conf-btn.active {
  background-color: #17416f;
  color: #fff;
  
}

/* Списки */
.conf-list {
  display: none;
  margin-top: 30px;
}

.conf-list.active {
  display: block;
}

.conf-item {
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

.conf-item h4 {
  margin: 0 0 5px;
  font-size: 18px;
  color: #555;
  margin-bottom: 15px;
  
}

.conf-item p {
  margin: 2px 0;
  color: #555;
  font-size: 14px;
}

.conf-item a {
  color: #c60440 !important;
  text-decoration: none;
  font-weight: bold;
}

.conf-item a:hover {
  text-decoration: underline;
}




/* 3 блок. Новости */

.news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.news__title {
  grid-column: 1 / -1;
  font-size: 48px;
  font-weight: 700;
  color: #17416f;
  line-height: 1.2;
  margin-top: 60px;
  margin-bottom: 20px;
}

.news__subtitle {
  grid-column: 1 / -1;
  font-size: 18px;
  color: #333;
  margin-bottom: 40px;
}

.news__item {
  background-color: #fdfdfd;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.news__item:hover {
  box-shadow: 0 4px 12px rgba(23, 65, 111, 0.099);
}

.news__item-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #e0e6ed;
}

.news__item-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news__item-title {
  font-size: 18px;
  font-weight: 700;
  color: #17416f;
  margin-bottom: 10px;
  flex-grow: 0;
}

.news__item-description {
  font-size: 14px;
  color: #555;
  flex-grow: 1;
  margin-bottom: 15px;
}

.news__item-date {
  font-size: 12px;
  color: #999;
  text-align: right;
  flex-grow: 0;
}


/* Мобильная версия */
@media (max-width: 768px) {
  .firstscreen__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  
  /* Главный экран */
  /* Заголовок уменьшаем и переносим в одну колонку */
  .firstscreen__title {
    grid-column: 1 / -1 !important;
    font-size: 28px;
    line-height: 1.3;
    margin-top: 40px;
  }

  /* Подзаголовок в одну колонку */
  .firstscreen__subtitle {
    grid-column: 1 / -1 !important;
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Кнопки — в столбик и по центру */
  .firstscreen__buttons {
    grid-column: 1 / -1 !important;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .firstscreen__btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    font-size: 14px;
    margin: 0 auto;
    grid-column: 1 / -1 !important; /* на всю ширину */
  }

  .firstscreen__slide-img{ height:300px; } /* фиксированная высота, чтобы не «ехать» */
  .firstscreen__overlay-top{ padding:14px 14px 48px; }
  .firstscreen__title-top{ font-size:18px; }
  .firstscreen__overlay-bottom{ padding:12px; }
  .firstscreen__meta{ flex-direction:column; align-items:flex-start; gap:10px; }
  .firstscreen__btn{ width:100%; max-width:280px; }
  .firstscreen__btn-more{ width:100%; max-width:280px; }



  /* 2 блок */
  .conf-grid {
    grid-template-columns: 1fr !important;
    text-align: left;
  }

  .conf-btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    grid-column: 1 / -1 !important; /* на всю ширину */
    font-size: 14px;
  }

  .conf-list {
    grid-column: 1 / -1 !important;
  }



  /* 3 блок. Новости */

  .news__grid {
    grid-template-columns: 1fr;
  }

  .news__title {
    font-size: 32px;
    margin-top: 40px;
  }

  .news__subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }


  
}
