body{
  margin:0;
  background:#fefcf7;
  font-family:'Montserrat', sans-serif;
  color:#2a2a2a;
  text-align:center;
}

/* Контейнер */
.container{
  max-width:900px;
  margin:0 auto;
  padding:0 1rem;
  position: relative;
}

.header-bar {
  position: relative;
  z-index: 1000;
}

/* Полоса/шапка */
.header-bar{
  height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 1rem;
  box-shadow:0 4px 12px rgba(0,0,0,0.25);
  margin:20px 0;
}

/* Логотип */
.header-bar .logo{
  font-weight:700;
  font-size:18px;
  letter-spacing:2px;
}

/* Меню */
.header-bar .nav{
  display:flex;
  gap:16px;
}

.header-bar .nav a{
  color: #2a2a2a;
  text-decoration:none;
  font-size:14px;
}

.header-bar .nav a:hover{
  color:#b5838d;
}

/* Гамбургер */
.menu-toggle{
  display:none;
  font-size:20px;
  cursor:pointer;
}

/* Секции */
section{
  display:none;
}
section.active{
  display:block;
}

/* Стили блоков */
.header-bar.s1-block, .header-bar.s2-block, .header-bar.s3-block {
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:0 5%;
  color:#2a2a2a;
  margin:20px 0;
  text-align:center;
    height: auto;
   padding-bottom: 40px;

}
    

.header-bar.s1-block h1,
.header-bar.s2-block h2,
.header-bar.s3-block h2 {
  font-family:'Montserrat', sans-serif;
  font-size:32px;
}

.header-bar.s1-block button,
.header-bar.s2-block button,
.header-bar.s3-block button {
  padding: 10px 50px;
  font-size: 16px;
  background: #5b6e92;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
    margin-top: 40px;
}
.header-bar.s1-block button:hover,
.header-bar.s2-block button:hover,
.header-bar.s3-block button:hover {
  background:#6a5d8f;
}

.text-bl {
  margin-top: 40px;
  line-height: 1.5;
    font-size: 22px;
}
.text-bl-sm {
line-height: 1.5;
  font-size: 17px;
    margin-top: 30px;
    
}
    
    .text-bl-sm2{
line-height: 1.5;
  font-size: 16px;
        margin-top: 20px;
}
/* Счетчик */
.counter {
  color:#2a2a2a;
  padding:40px;
  text-align:center;
  font-family:'Montserrat', sans-serif;
}
.counter h3 {
  margin:0 0 10px 0;
  font-size:18px;
}
.counter span {
  font-size:28px;
  font-weight:700;
}

/* Поля и кнопки */
textarea, select {
width: 100%;
  max-width: 420px;
  font-size: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-top: 1rem;
  background-color: #f9f5f2;
  margin-bottom: 20px;

}
    
    
    
.select-text {
  border-radius:0;
  resize:none;
      background: #f9f5f2 url(../img/form.jpg);
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
  background-repeat: no-repeat;
  background-position: right;
    height: 80px;
}
.price {
  margin-bottom:30px;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
}
.unit1 {
  padding:10px 15px;

}
.unit1.last {
  border-right:none;
}

/* Облако слов */
#cloud {
  width: 100%;
  min-height: 200px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
    margin-bottom: 30px;
}
#cloud span {
  display: inline-block;
  white-space: nowrap;
  cursor: default;
  opacity:0;
  transition: opacity 0.5s;
}


    
    .my-blok {
 
  text-align: center;
}

.slider-block {
 display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 20px;


  margin-bottom: 40px;
}
#liveCounter {
  min-width: 110px;
  display: inline-block;
}
.word-text {
margin: 0 10px;
  font-size: 18px;
  font-weight: 500;
  font-weight: bold;
  padding: 25px;

  width: 500px;
}

.day-counter {
  font-size: 12px;
  margin-top: 5px;
  text-align: center;
  width: 100%;
}

.slider-arrow {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #5b6e92;
  transition: color 0.3s;
}
.slider-arrow:hover {
  color: #b5838d;
}
    
    .right,.left {
  background: none !important;
  color: black !important;
        font-size: 18px !important;
        margin-top: -200px !important;
}
  .kon {
      text-align: right;
  float: right;
  margin-right: 10px;
}
    
    
.s1-block {
  background: url(../img/st3.png);
   background-size: 100%;
  background-position: 20px -90px;
    }
    
    .s2-block {
  background: url(../img/st3.png);
background-size: 90%;
  background-position: 100px -90px;
    }
    
    
    
    
    
    
    
        .word-cloud  {
        background: url(../img/lan.png);
background-size: 100%;
  background-position: 0px;
            background-repeat: no-repeat;
    }
    
   
.logo a {
  color: #2a2a2a;
  font-weight: bold;
  text-decoration: none;
}

.telegram {
color: #5b6e92;
  font-weight: bold;
}




      @media(max-width:600px){
  .word-text {
width: auto
    font-size: 12px;
    margin: 0px -5px;
    padding: 25px;
} 
     .header-bar .nav{
    display:none;
    flex-direction:column;
    position:absolute;
    right:15px;
    top:40px;
    width:150px;
    padding:10px;
    z-index:999999;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
      background: #fefcf7;
  }
  .menu-toggle{
    display:block;
  }
    
   .header-bar.s1-block h1, .header-bar.s2-block h2, .header-bar.s3-block h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
} 
    }  
    



.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;margin-bottom:40px;}
.blog-card{background:white;border-radius:10px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,0.08);text-decoration:none;color:inherit;transition:0.3s;}
.blog-card:hover{transform:translateY(-4px);box-shadow:0 8px 18px rgba(0,0,0,0.12);}
.blog-card img{width:100%;height:170px;object-fit:cover;}
.blog-card .info{padding:14px;text-align:left;}
.meta{font-size:13px;color:#777;margin-bottom:6px;display:flex;justify-content:space-between;}
.blog-card h3{margin:8px 0;font-size:18px;font-weight:600;}
.blog-card p{font-size:14px;line-height:1.5;color:#555;}
.sort-buttons{display:flex;gap:12px;margin-bottom:20px;}
.sort-buttons button{padding:6px 14px;border:none;background:#5b6e92;color:white;border-radius:4px;cursor:pointer;transition:0.3s;}
.sort-buttons button:hover{background:#6a5d8f;}

.post-text {
  text-align: left !important;
	display: block;
	padding: 40px !important;
}
.post-text h1,.post-text h2,.post-text h3,.post-text h4,.post-text h5,.post-text h6 {
	font-size: 22px;
	display: inline;
float: left;
  width: 100%;
}


/* КАРТИНКА + ЗАГОЛОВОК */
.image-wrapper {
    position: relative;
    height: 300px; /* картинка не высокая */
    overflow: hidden;
   
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 50%; /* по вертикали центрируем */
    left: 50%; /* по горизонтали центрируем */
    transform: translate(-50%, -50%); /* точное центрирование */
    width: 75%; /* ширина под текст */
    background: rgba(0, 0, 0, 0.25); /* почти прозрачная подложка */
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    border-radius: 8px;
}

.image-overlay h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

/* Блок с текстом */


/* Мета информация */
.meta {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}

.meta span {
    margin-right: 15px;
}

@media(max-width:600px){.header-bar.s1-block h1{font-size:20px;}.blog-card img{height:150px;}}
    





 /* Адаптивное меню */
@media(max-width:1200px){
    
    
      .word-text {
width: auto;
    font-size: 12px;
    margin: 0px -5px;
    padding: 25px;
} 
 
  .my-blok {
  text-align: center;
  width: 100%;
}  
    

    
 .right, .left {
margin-top: -60px;
  padding: 0px !important;
}   
  .slider-block {
padding: 10px 5px; 
}
       
    
  .kon {

  margin-top: 10px;  
    float: none;
    
    }
    
    
    
 .header-bar.s1-block, .header-bar.s2-block, .header-bar.s3-block {
z-index: 0;
  padding-bottom: 40px;
}   
    
    
    
    }
    
        @media(max-width:420px){
  .word-text {
width: auto;
    font-size: 12px;
    margin: 0px 2px;
    padding: 25px;
} 
    
    }



.lang-switch {
    position: relative;
   
}

/* Рисуем палочку */
.lang-switch:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -12px;
    color: #999;
	font-weight: lighter;
}

/* 📱 Мобильная версия */
@media (max-width: 768px) {
    .lang-switch::after {
        content: "";
    }
.lang-switch:not(:last-child)::after {
  content: "";
	}
    .lang-switch {
        margin-right: 10px;
    }
}
