@media screen and (max-width: 1490px){

    {}


    
    #container7 {
        background: url(../images/poster-2.jpg) no-repeat 50% center;
    }
    #container {
        background-size: cover;
        background-position: center 0;
    }
    .pop input[type="button"] {
        height: 50px;
    }
}

@media screen and (max-width: 1020px){

    {}

    #catalog .inner > .flex{
        justify-content: space-around;
    }

   
    .container h1{
        text-align: center;
    }
    
    .container h2{
        text-align: center;
        box-sizing: border-box;
        padding: 0px 10px;
        color: #fff;
    }
    
    .container a{
        margin: 0 auto;
        text-align: center;
        display: block;
        margin-top: 50px;
    }
    #container .inner-caption{
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    
   .top_line.flex {
    
    justify-content: space-between;
   }
  
    
    .container2:before{
        content: "";
        background-image: none;
    
    
    }
    
    .container2_wrapper:before{
        content: "";
        background-image: none;
    
    }
    
    .container2:after{
        content: "";
        background-image: none;
    
    
    }
    
    .container2_wrapper:after{
        content: "";
        background-image: none;
    
    }
    .container2_wrapper .flex > div:nth-child(2) {
        padding-right: 0;
    }
    .container2 .flex{
        display: block;
        margin-bottom: 20px;
    }
    
    .container2 img{
        margin: 0;
        margin-bottom: 15px;
        max-width: 100%;
    }
    #container2 .h3 {
        
    }
    .container2 p{
        margin: 0;
        margin-top: 15px;
        text-align: justify;
    }
    
    .container2 .h3{
        margin-top: 0px;
        margin-bottom: 50px;
    }
    
    .footer{
            padding: 0 2%;
        }


    .container5 .flex > div:nth-child(1n){
        width: 33%;
        margin-bottom: 15px;
    }

    .container5 > .flex{
        flex-wrap: wrap;
        justify-content: space-around;
    }



}
#gallery .static {
    display: none;
}
@media screen and (max-width: 1020px){
    {}
    #gallery .grid {
        display: none;
    }
    #gallery .static a,
    #gallery .static img {
        display: block;
        max-width: 100%
    }
    #gallery .static {
        position: static;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    #gallery .static > div {
        width: 33.3%;
    }
}
@media screen and (max-width: 960px){
    {}
    .top_line .logo-img {
        padding-top: 0;
    }
    .call_button a {
        font-size: 16px;
        width: 200px;
        height: 40px;
        line-height: 40px;
    }
    .call a:before {
        top: 1px
    }
    .call a {
        font-size: 20px;
    }
    .call .h4 {
        font-size: 13px;
    }
    #top_line {
        padding-bottom: 10px;
    }
    .top_line img {
        margin-top: 6px;
    }
    #menu {
        margin-top: 10px;
    }
    .nav-icon {
        display: block;
        width: 46px;
        cursor: pointer;
        margin-left: 30px;
        vertical-align: middle;
    }
    .nav-icon span {
        border-radius: 2px;
        background: #191919;
        margin-bottom: 4px;
        height: 4px;
        display: block;
    }
    .nav-icon span:last-child {
        margin-bottom: 0;

    }
    .call {
        margin-left: 0px;
    }
    #menu {
        margin-left: 0;
        float: right;
    }
    #top_line .navigation {
        display: none;
    }
    #container{
        padding-bottom: 50px;
        margin-top: 50px;
    }
    #top_line.fixed {
        position: absolute;
    }
    .container{
        margin-top: 20px;

    }
    #top_line.fixed img {
        margin-top: 3px;
    }
    #top_line.fixed #menu {
        margin-top: 18px;
    }
    
    


    .container7 .h3{
        margin-top: 20px;
    }
    .container h2{
        padding: 0 20px;
    }


    
}


@media screen and (max-width: 900px){

    {}

    .container5 .flex{
        flex-wrap: wrap;
        justify-content: center;
    }

    .container5 .flex > div{
        width: 50%;
        margin-top: 40px;
    }


    .container7 .h3{
        padding: 0 120px;
    }

    #map {
        height: 300px !important;
    }
    #adress {
        text-align: center;
        margin-top: 40px;
        position: static;
        width: auto;
        background: #f9f9f9;
    }
    #adress p.mb {
        margin-bottom: 10px;
    }
    
}



@media screen and (max-width: 760px){

    {}

    #menu .call_button {
        display: none;
    }
    #container7{
        padding-top: 1px;
    }

    .container7{
        padding-bottom: 1px;
    }


    .container5 p{
        padding: 0 60px;
    }

    .container7 .h3{
        padding: 10px 30px 0;
        margin-top: 0;
    }

    .container7 form{
        margin-bottom: 10px;
        margin-top: 15px;
    }

    .container7 form input[type="text"]{
        margin: 0 auto;
        margin-bottom: 15px;
        display: block;
    }

    .container7 form input[type="button"]{
        margin-top: 10px;
    }

    .container7 form textarea{
         width: 334px;
         margin-top: 5px;
    }

    .container7 .h3{
        font-size: 30px;
        line-height: 42px;
    }

    .container7 form input[type="button"]{
        width: 334px;
    }
    #top_line.fixed img {
        margin-top: 4px;
    }

    .top_line.flex{
        flex-wrap: wrap;
    }

    .top_line.flex > div{
        float: none;
        clear: both;
        display: block;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    .logo > .flex{
        justify-content: center;
        align-items: center;
    }
    .top_line .logo{
        margin-top: 0;
    }
    #menu > .flex{
        justify-content: center;
    }
    .nav-icon{
        position: absolute;
        right: 25px;
        top: 25px;
    }
    .call a{
        padding-left: 10px;
    }
    .call a:before{
        top: 0;
    }
    #container .inner-caption{
        max-width: 100%;
    }

    .container5 .flex > div:nth-child(1n){
        width: 50%;
        margin-bottom: 15px;
    }
    .container7 .title-form-bottom span:before {
        bottom: -8px;
    }
    .container7 .title-form-bottom span:after {
        bottom: -12px;
    }
    .container7{
        padding: 60px 0;
    }
    .container7 .form input[type="text"]{
        width: 100%;
        max-width: 100%;
        margin: 5px auto;
    }
    .container7 .form textarea{
        width: 100%;
        max-width: 100%;
        margin: 5px auto;
    }
    .container7 .form > .flex{
        flex-wrap: wrap;
        justify-content: space-around;
    }
    


    
}


@media screen and (max-width: 640px){

    {}
    .container7 .title-form-top,
    .title span {
        font-size: 24px
    }
    .container7 .title-form-bottom {
        font-size: 14px
    }
    
    .container h1{
        font-size: 36px;
    }

    .container h2{
        font-size: 24px;
    }
    .container4 .h3{
        font-size: 30px;
    }

    .container5 p{
        padding: 0 10px;
    }

    .container4 {
        padding: 0 1%;
    }
    
    .container7 .h3 {
        font-size: 28px;
    }

    .container9 .flex {
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .container9 p {
        width: 100%;
        order: 2;
        display: block;
    }
    .container9 a {
     
        display: block;
        order: 1
    }
    .footer  {
        margin-top: 0;
    }
    .container9 a{
        margin-top: 15px;
    }
    .container h1 {
        font-size: 28px;
    }
    .container9 {
        padding-bottom: 12px;
    }
    #container .container {
        padding-top: 60px;
    }
    .container h2 {
        font-size: 20px;
    }
    #container {
        padding-bottom: 60px;
    }
    .top_line img {
        width: 150px;
    }
    .container6 .h3,
    .container5 .h3,
    #container2 .h3 {
        font-size: 30px;
    }
    .container7 .h3,
    .container4 .h3 {
        font-size: 20px;
    }
    .reviews .slick-list > div > div {
        padding: 0 15px;
    }
    .reviews .slick-prev,
    .reviews .slick-next {
        display: none !important;
    }
    .slick-dots {
        text-align: center;
        margin-top: 20px;
    }
    .slick-dots li {
        float: none;
        background: none;
        margin: 0 4px;
        display: inline-block;
        padding: 0;
    }
    .slick-dots li button {
        border: 1px solid #ee1111;
        background: #fff;
        border-radius: 14px;
        width: 14px;
        padding: 0;
        height: 14px;
        
    }
    .slick-dots li.slick-active button {
        background: #ee1111;
    }
    .container7 .h3, .container4 .h3 {
        padding: 10px 0px 0;
    }
    
    #container {
        margin-top: 84px;
    }
    #container {
        background-position: right -380px top;
    }
    .pop .h5{
        font-size: 28px;
    }
}

@media screen and (max-width: 620px){
    .logo > .flex{
        flex-wrap: wrap;
        justify-content: center;
    }
    .top_line .logo-caption {
        margin-left: 0;
        padding-left: 0;
        text-align: center;
    }
    .top_line .logo-caption:after {
        display: none;
    }
    .logo .logo-img{
        display: block;
        width: 100%;
    }
    .logo .logo-img img{
        margin: 0 auto;
    }
    .top_line .logo-caption{
        margin: 12px auto;
    }
    .nav-icon {
        right: 14px;
    }
    .logo .logo-img img {
        margin-left: 0;
    }
    #menu {
        margin-top: 0;
    }
}   


@media screen and (max-width: 560px){

    {}
    #gallery .static > div {
        width: 50%;
    }
    #top_line.fixed #menu {
        margin-top: 28px;
    }
    .container5 p:after{
        top: -5px;
    }
    

    #container6 .border {
        display: none;
    }
    .reviews .slick-list > div > div {
        padding: 0;
    }
    
    .container a{
        margin-top: 20px;
        width: 300px;
        font-size: 14px;
    }

    .container5 .flex > div:nth-child(1n){
        width: 100%;
        margin-bottom: 0px;
        margin-top: 25px;
    }



    

    
    
    #pop .h5,
    #pop2 .h5 {
        font-size: 28px;
    }
}


@media screen and (max-width: 380px){

    {}
    #pop .h5 {
        font-size: 24px;
    }
    .container7 .title-form-top, .title span {
        font-size: 21px;
    }
    #pop2 .h5 {
        font-size: 21px;
    }
    #pop .h6,
    #pop2 .h6 {
        font-size: 14px;
    }
    #pop,
    #pop2 {
        padding: 0 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .container a {
        width: 288px;
    }
    .reviews p {
        font-size: 14px;
        line-height: 16px;
    }
    .container5 .flex > div {
        width: 100%;
    }
    
    .container6 .h3, .container5 .h3,  #container2 .h3 {
        font-size: 24px;
    }
    .container7 form input[type="text"]{
        width: 280px;
    }

    .container7 form textarea{
        width: 280px;
    }
    
    .container7 form input[type="button"]{
        width: 280px;
    }


}

/* --- FIX: галерея в ряд --- */
#gallery .static {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;              /* расстояние между карточками */
}
#gallery .static .item {
  flex: 1 1 calc(33.333% - 20px);  /* 3 в ряд на десктопе */
  max-width: calc(33.333% - 20px);
  margin: 0;                         /* на всякий случай */
}
#gallery .static .item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Сетка для блока .grid без Masonry (надёжно и просто) */
#gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
#gallery .grid .grid-item {
  margin: 0;   /* убираем возможные внешние отступы темы */
}
#gallery .grid .grid-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Сброс возможных форсированных правил темы */
#gallery .static .item,
#gallery .grid .grid-item {
  float: none !important;
  width: auto !important;
  display: block; /* у .grid/.static управляет контейнер */
}
@media (max-width: 1024px) {
  #gallery .static .item {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}
@media (max-width: 600px) {
  #gallery .static .item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* === ГАЛЕРЕЯ: отключаем Masonry и делаем нормальную сетку === */

/* общий контейнер галереи */
#gallery .inner { overflow: visible; }

/* СТАТИЧНЫЙ ряд (верхний блок из 6 картинок) */
#gallery .static {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
#gallery .static .item { margin: 0 !important; }
#gallery .static .item img {
  width: 100%; height: auto; display: block;
}

/* Сетка .grid вместо Masonry */
#gallery .grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: static !important;
  height: auto !important;
}
#gallery .grid .grid-item {
  position: static !important;   /* гасим absolute/top/left от Masonry */
  top: auto !important; left: auto !important;
  margin: 0 !important;
}
#gallery .grid .grid-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;           /* приводим к одному соотношению сторон */
  height: auto;                  /* можно заменить на фикс. высоту + object-fit */
  object-fit: cover;
}

/* Адаптив */
@media (max-width: 1024px) {
  #gallery .static, #gallery .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  #gallery .static, #gallery .grid { grid-template-columns: 1fr; }
}

/* Показываем только .grid на десктопе, .static скрываем */
#gallery .static { display: none !important; }
#gallery .grid   { display: grid !important; }

/* Если хочешь на мобилках показывать упрощённую .static — включи её и спрячь .grid */
@media (max-width: 600px) {
  #gallery .static { display: grid !important; }  /* или flex — как настроил */
  #gallery .grid   { display: none !important; }
}


/* --- Вакансии --- */
#vacancy {
  padding: 60px 0;
  background: #f8f8f8;
}
#vacancy .title span {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}
#vacancy .vacancy-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
}
#vacancy .vacancy-list {
  margin: 20px 0 0 20px;
  padding: 0;
}
#vacancy .vacancy-list li {
  margin-bottom: 8px;
  list-style: disc;
}

/* === Вакансии: типографика и выравнивание === */
#vacancy { padding: 60px 0; background: #f6f6f6; }
#vacancy .title { margin-bottom: 24px; }
#vacancy .vacancy-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;           /* сбрасываем центровку */
  font: 15px/22px MuseoSansCyrl300;  
  font-size: 16px;            /* наследуем шрифт темы */
  color: inherit;
}
#vacancy .vacancy-content p {
  margin: 0 0 18px;
  
  line-height: 1.6;
}

/* список как у нормальных лендингов — с тире, без дыр между маркером и текстом */
#vacancy .vacancy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;                 /* 2 колонки на десктопе */
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px 40px;
}
#vacancy .vacancy-list li {
  position: relative;
  padding-left: 18px;            /* расстояние до тире */
  line-height: 1.5;
  
}
#vacancy .vacancy-list li::before {
  position: absolute;
  left: 0;
  top: 0;
}

/* адаптив: на планшете и ниже — в одну колонку */
@media (max-width: 900px) {
  #vacancy .vacancy-list { grid-template-columns: 1fr; }
}
