/* фон и базовая раскладка */
html, body { 
  height: 100%; 
  margin: 0; 
  font-family: YS Geo, Helvetica, Arial, sans-serif;
}

.date-history {
  font-size: 13px;
  color: rgb(100,100,100);
}

.search-string {
  text-decoration: none; 
  color: rgb(150,150,150); 
  font-size: 13px; 
  font-weight: 600;
  font-family: YS Geo, Helvetica, Arial, sans-serif;
}

.index-bg{
  background-color: rgb(255,215,1);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;

  /* НОВОЕ: ставим элементы колонкой и делаем расстояние */
  flex-direction: column;
  gap: 12px;
}
/* логотип вверх-слева */
.index-header{
  position: absolute;
  top: 24px;
  left: 24px;
}
.logo-index{ width: 180px; height: auto; display: block; }

/* карточка поиска */
.index-search-block{
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 16px 16px 16px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  width: 100%;
  max-width: 780px;
}

/* ДЕЛАЕМ поле «на всю ширину минус кнопка» */
.index-search-block > div:first-child{ flex: 1 1 auto; min-width: 0; }
.index-search-block > div:last-child{ flex: 0 0 auto; }

/* поле ввода */
.index-search-block input[type="text"]{
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  background: #fafafa;
}
.index-search-block input[type="text"]::placeholder{ color: #888; }
.index-search-block input[type="text"]:focus{
  border-color: #0a66ff;
  box-shadow: 0 0 0 3px rgba(10,102,255,.15);
  background: #fff;
}

/* кнопка поиска */
.index-search-block input[type="submit"]{
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: #111;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .05s ease, box-shadow .2s, opacity .2s;
  white-space: nowrap;
}
.index-search-block input[type="submit"]:hover{ opacity: .95; }
.index-search-block input[type="submit"]:active{ transform: translateY(1px); }

/* мобильная адаптация */
@media (max-width: 640px){
  .index-header{ top: 16px; left: 16px; }
  .logo-index{ width: 140px; }
  .index-search-block{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
  }
  .index-search-block input[type="submit"]{ width: 100%; }
}


.index-caption{
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.index-caption a {
  text-decoration: none;
  color: black;
  padding-left: 10px;
  padding-right: 10px;
}



/* СТАТЬИ */
/* СТАТЬИ */
/* СТАТЬИ */

.article-main-bg {
  background-size: cover;
  width: 100%;
  height: 100%;
  display: flex;
}

.article-main-bg-inner {
  opacity: 0.7;
  background-color: black;
  width: 100%;
  height: 100%;
  display: flex;
}