/* Убираем стандартные отступы у body */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Чтобы всё наследовало правильный box-sizing */
*, *::before, *::after {
  box-sizing: inherit;
}

/* Компенсируем фиксированный header */
main {
  margin-top: 100px; /* если высота шапки 100px */
}

.h3 {

	font-family: "Trebuchet MS", sans-serif;
	font-size: 1.5rem;
  	color: #00b8b8;
  	font-weight: 600;
}



/* Заголовок блока услуг */
.services-title {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 1.8rem;
  color: #00b8b8;
  font-weight: 400;   /*  font-weight: 600;  */
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: left;
  padding-left: 20px;    
}

/* Современный адаптивный список */

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 0px;    /* Было 20px */
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.services-list li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 5px solid #00b8b8;          /*#ff4b4b        */
  padding: 12px 16px 12px 20px;
  border-radius: 12px;
  line-height: 1.5;
  color: #f0f0f0;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

/* Квадратик вместо символа */
.services-list li::before {
  content: "¦";
  color: #ff4b4b;
  position: absolute;
  left: -15px;
  top: 12px;
  font-size: 0.8em;
  opacity: 0.8;
}

/* Hover-эффект */
.services-list li:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
  border-left-color: #ff6b6b;
}

/* Адаптивность */
@media (max-width: 768px) {
  .services-list {
    grid-template-columns: 1fr;
  }

  .services-title {
    text-align: center;
  }
}


.right-column {
  align-items: center; /* Центрует внутренний контент по горизонтали */
}

.services-list {
  max-width: 350px; /* Ограничим ширину списка */
  margin: 0 auto;   /* Центрируем */
}


/* 3 картинки */

.respect, respect_kinder_buch_2 {
	
    margin: 0px;
    margin-top: 10px;
    display: inline-block;
    text-align: center;
    color: #FFF; 
}
.respect>img{
    max-width: 300px;  
    justify-content: center;
}

.respect_kinder_buch_2>img{
    max-width: 450px;  
    justify-content: center;
}

.bclock_100_proz{
	display: inline-block;
	width: 100%;
	float: left;
	background-color: #021118;
  }

  .block_100_proz_kinder_buch {
  display: block;
  width: 100%;
  max-width:750px;
  text-align: center;
  justify-content: center;
  border-bottom-left-radius: 10px; 
  border-bottom-right-radius: 10px; 
  border-top-left-radius: 10px; 
  border-top-right-radius: 10px; 
}

.block_100_proz_kinder_buch_100 {
	display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
	background-color: #021118;
}

.block_100_proz_kinder_buch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-bottom-left-radius: 10px; 
  border-bottom-right-radius: 10px; 
  border-top-left-radius: 10px; 
  border-top-right-radius: 10px; 
}








  .block_100_proz {
  display: block;
  width: 100%;
  text-align: center;
  justify-content: center;
  background-color:  #FFF; 
}

   .block_100_proz_temnuy {
	 background-color:  #021118;
	 color: #FFF;
	 text-align: center;
     justify-content: center
}

.block_70_proz {
  display: block;
  max-width: 1200px;
  background-color:  #000;
  margin-left: 10px;
  
}
.block_30_proz {
  display: block;
  max-width: 1200px;
  background-color:  #021118;
  margin-left: 0%;
 width: 100%;
  height: 100%;

}


img
{
width: 100%;
height: auto;
}

/* Правый и левый блоки на странице Obo_mne.htm */

.about-container,  .about-container_2 {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 400px;
}

.about-container_2 {
  width: 100%;
  min-height: 500px;
}




/* Левый блок с текстом */
.about-text {
  background-color: #021118;
  color: #fff;
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  box-sizing: border-box;
  padding: 0 5%; /* паддинги внутри, но они считаются ВНУТРИ ширины */
}

/* Левый блок с текстом 60 proz */
.about-text_60_proz {
  background-color: #021118;
  color: #fff;
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  text-align: left;
  box-sizing: border-box;
  padding: 0 5%; /* паддинги внутри, но они считаются ВНУТРИ ширины */
}













/* Решение: учитываем паддинги в ширину */
.about-text {
  flex-basis: 40%;
  max-width: 40%;
}

* решение: учитываем паддинги в ширину 25 proz */ .about-text_60_proz {
  flex-basis: 60%;
  max-width: 60%;
}





/* Правый блок с фото */
.about-photo {
  flex: 0 0 60%;
  max-width: 60%;
}

/* Правый блок с фото 40 proz */
.about-photo_40_proz {
  flex: 0 0 40%;
  max-width: 40%;
}




.about-photo img {
  width: 100%;
  height: 100%; 
  object-fit: cover;
  display: block;
}

/* ?? Адаптивность */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }

  .about-text, .about-photo {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .about-text {
    padding: 10% 8%;
    text-align: center;
  }
}

/* Конец Правый и левый блоки на странице Obo_mne.htm */


/* галерея картинок на стр. skazki.htm */

  .gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 0px 75px;
  background: #021118;
  border: 3px solid #021118;

}

.gallery-item {
  aspect-ratio: 1 / 1; /* делает блок квадратным */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* лёгкое увеличение картинки при наведении */
.gallery-item:hover img {
  transform: scale(1.05);
}

/* адаптация: чтобы 4 блока занимали ширину экрана */
@media (min-width: 1200px) {
  .gallery-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* при среднем экране — 3 в ряд */
@media (max-width: 1199px) and (min-width: 800px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* при узком экране — 2 в ряд */
@media (max-width: 799px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* эффект плавного появления при загрузке */
.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

/* с небольшой задержкой для разных элементов */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* лёгкая тень при наведении */
.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* подпись под каждой картинкой */
.gallery-caption {
  display: block;
  width: 100%;
  height: 15%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 4px 6px;
  /*   position: absolute;  */
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 1.3;
  
}

/* общий блок картинки + подписи */
.gallery-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  

}                                 


/* конец галереи картинок на стр. index.htm */



/* ===== Иллюстрации - новая страница ===== */


            


/* Герой-блок 
.hero-illustration {
  position: relative;
  width: 100%;
  height: 130px;
  background: url("../images_fon/fon_header.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #808080;
  text-align: center;
  overflow: hidden;
}
*/


/* Герой-блок */

.hero-illustration {
  position: relative;
  width: 100%;
  height: 130px;
  background: url("../images_fon/fon_header.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #808080;
  text-align: center;
  overflow: hidden;
  padding: 0 80px; /* ?? отступы слева и справа под кнопки */
}

/* Текст по центру */
.hero-illustration h1 {
  color: #fff;
  font-size: 2rem;
  font-family: "Arial", serif;   /*  "Playfair Display", serif;   */
  font-weight: 300;
  margin: 0;
  z-index: 2;
}

/* Иконка галереи (слева) */
.gallery-link {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-link:hover {
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

/* Контейнер стрелок (справа) */
.hero-nav {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

/* Стили стрелок */
.nav-arrow svg {
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}
.nav-arrow:hover svg {
  transform: scale(1.2);
  opacity: 1;
}

.illustration-content, .illustration-content-backgr {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 50px 35px;   /*   Было padding: 50px 75px; */
}
	.illustration-content-backgr {
	background-color: #021118;
	width: 100%;
}

/* Левая колонка (картинки) */
.left-column {
  flex: 0 0 75%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

.image-block {
  width: 100%;
  max-width: 750px;
 /* aspect-ratio: 1 / 1;  */
  overflow: hidden;
  border-radius: 8px;
}

.image-block_80 {
display: inline-block;
width: 100%;
max-width: 850px;
background: #021118;

justify-content: center;
}


.image-block_250 {
  display: inline-block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
 }



.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
/*  border: 1px solid #000080;  */
  border-bottom-left-radius: 10px; 
  border-bottom-right-radius: 10px; 
  border-top-left-radius: 10px; 
  border-top-right-radius: 10px; 
}



.image-block img:hover {
  transform: scale(1.00);
}

/* Правая колонка (текст) */
.right-column {
  flex: 1;
  text-align: justify; 
  font-size: 18px;
  line-height: 1.7;
  color: #FFF;
  display: flex;
  flex-direction: column;
/*   justify-content: center; */
  gap: 20px;
  background-color: #021118;
  padding-left: 20px;
}

/* Адаптивное поведение */
@media (max-width: 1100px) {
  .illustration-content {
    flex-direction: column;
    align-items: center;
  }

  .left-column {
    flex: 1 1 100%;
    justify-content: center;
  }
/*           
  .right-column {
    flex: 1 1 100%;
    max-width: 900px;
    text-align: center;
  } 
  
*/
  .image-block {
    max-width: 100%;
  }
  
  .block_proz {
  display: block;
  width: 100%;
  text-align: center;
  justify-content: center;
}



/*

.about-container, .about-container_2 {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 400px;
}

.about-container_2 {

width: 100%;
min-height: 500px;

}



.about-text {
  background-color: #021118;
  color: #fff;
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 15%;
  padding-right: 15%;
  text-align: left;
  box-sizing: border-box;
}

.about-text h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-photo {
  flex: 0 0 60%;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ?? Адаптивность */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }

  .about-text, .about-photo {
    flex: 0 0 100%;
    width: 100%;
  }

  .about-text {
    padding: 10% 8%;
    text-align: center;
  }
}

*/

.content
{
 	display: block;
	width: 100%;
	background: #FFF;
}


.maluy_block_290x250, .maluy_block_290x470
{
	display: block;
	width:290px;
	height:250px; 
	text-align: left;
	margin-top: 5px;
	margin-left: 5px;
	padding-top:5px;
	padding-right:5px;
	padding-left:5px;
	padding-bottom:5px;
	float:left;
}
.maluy_block_290x470
{
	height:470px;
}


@media (max-width: 1024px) {
  .hero-illustration h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-illustration h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-illustration h1 {
    font-size: 1.3rem;
  }
}