

/* Start:/local/templates/main/css/pages/autoservice.css?17750558201762*/
.howwork {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.howwork li {
    position: relative;
    aspect-ratio: 1; /* квадрат */
    border: 1px solid var(--01-purple);
    display: flex;
    align-items: flex-end; /* текст к низу */
    justify-content: flex-start; /* текст к левому краю */
    padding: 16px 24px 16px 24px; /* отступ слева для номера */
    box-sizing: border-box;
    list-style: none;
    font-weight: 700;
    font-size: 32px;
    
    /* line-height: 42px; */ 
    line-height: 130%;
    color: #000;
    
}

.howwork li::before {
    content: attr(data-number); /* 01, 02, 03, 04 */
    position: absolute;
    top: -7px;
    right: 0;
    font-weight: 500;
    font-size: 120px;
    
    /* line-height: 156px; */ 
    line-height: 130%;
    color: rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .howwork {
        align-items: stretch;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .howwork li {
        aspect-ratio: auto;
    }
    
    .howwork li::before {
    }
}
@media (max-width: 991px) {
    .howwork {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
    
    .howwork li {
        font-size: 28px;
    }
    
}
@media (max-width: 768px) {
    .howwork {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .howwork li {
        font-size: 24px;
    }
    
}

@media (max-width: 480px) {
    .howwork {
        grid-template-columns: 1fr;
    }
}
/* End */


/* Start:/local/templates/main/components/bitrix/news.list/map-autoservice/style.css?17781152249426*/

#map .ymaps-2-1-79-ground-pane,
#map .ymaps-layers-pane {
   -webkit-filter: grayscale(100%);
   /*-webkit-transition: filter 2s ease;
   -moz-transition: filter 2s ease;
   -ms-transition: filter 2s ease;
   -o-transition: filter 2s ease;*/
   transition: filter 2s ease;
}
#map:active .ymaps-2-1-79-ground-pane,
#map:active .ymaps-layers-pane{
   -webkit-filter: grayscale(0%);
}
.page-contact .contain-map{
   height: 440px;
}
@media (min-width: 1200px) {
   .contain-map{
      height: 600px;
      width: 100%;
      max-height: calc(100vh - 100px);
   }
   .page-contact .contain-map{
      height: 400px;
   }
}
.page-contact #map .ymaps-2-1-79-controls__toolbar{
    opacity: 0;
}
.page-contact #map .ymaps-2-1-79-inner-panes:before{
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    height: 100%;
    
  background: linear-gradient(360deg, rgba(255, 255, 255, 0) 0%, #F5F5F5 100%);
  
    pointer-events: none;
    z-index: 620;
   -webkit-transition: all .3s ease;
   -moz-transition: all .3s ease;
   -ms-transition: all .3s ease;
   -o-transition: all .3s ease;
   transition: all .3s ease;
}
.page-contact #map:hover .ymaps-2-1-79-inner-panes:before{
   opacity: 0;
}
.page-contact #map.color .ymaps-2-1-79-ground-pane{
   -webkit-filter: grayscale(0%);
}
.page-contact #map:hover .ymaps-2-1-79-controls__toolbar{
    opacity: 1;
}



.contain-map{
    position: relative;
}

/* Оформление меню (начало)*/
.map-filter{
   position: absolute;
   top: 48px;
   bottom: 48px;
   left: 0;
   right: 0;
   pointer-events: none;
   z-index: 10;
}
.map-filter > div{
    height: 100%;
}
.map-filter .city_list-wrap{
   width: 310px;
   height: 100%;
   overflow-y: hidden;
   backdrop-filter: blur(10px);
   box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.25);
   background: rgba(255, 255, 255, 0.39);
   border: 1px solid var(--01-purple);
   pointer-events: all;
   margin-left: auto;
   margin-right: 0;
    position: relative;
    padding: 18px 10px;
}
.section-map-autoservice-bottom {
   position: relative;
   height: 600px;
   width: 100%;
   max-height: calc(100vh - 100px);
 }


.menu-avtoservice {
   list-style: none;
   padding: 0;
   margin: 0;
}
.avtoservice-point{
   font-weight: 300;
   font-size: 16px;
   /* line-height: 21px; */ 
   line-height: 130%;
   color: #000;
}
.avtoservice-point .avtoservice-name,
.avtoservice-point .avtoservice-phone{
   font-weight: 600;
}
.avtoservice-point.active .avtoservice-name{
   color: var(--redd)
}
.submenu {
   list-style: none;
   margin: 0 0 0 0;
   padding: 0;
   display: none;
}
.avtoservice-city > span{
    color: #000;
}

.avtoservice-city > span:hover{
   color: var(--redd);
}
li.avtoservice-city:before {
    content: "•";
    float: left;
    padding: 0 0.5em 0 0;
    margin-left: -15px;
    padding-right: 10px;
    font-size: 14px;
}
.menu-avtoservice li {
    display: block;
    float: left;
    width: 100%;
    border-bottom: 1px solid var(--deepblue);
    padding: 10px 0;
}
.avtoservice-point:hover{
   cursor: pointer;
   color: var(--01-purple);
}
.menu-avtoservice li:hover{
    border-color:  var(--redd);
}

.avtoservice-city{
cursor: pointer;
 padding-left: 25px;
 color: #000;
}
.avtoservice-city .submenu.active{
display: block;
}
.avtoservice-point .avtoservice-name{
   font-weight: bold;
}
.map-filter .filtered-hidden{
   display: none;
}

/* Оформление меню (конец)*/

.city_list-wrap.scroller-baron.h-mode .list-scroller{
    /*height: calc(100% - 70px);*/
    position: relative;
    padding-top: 10px;
}
.city_list-wrap h3{
   margin-bottom: 0;
}
.map-autoservice-filter .city_list-wrap{
   margin-top: -87px;
   z-index: 1;
   position: relative;
 }

/* Адаптивный грид для автосервисов */
.services-grid {
   display: flex;
   flex-direction: column;
   gap: 0;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0;
}

.services-grid__item .service-card {
   display: grid;
   grid-template-columns: 1.5fr 2fr 1fr 1fr;
   gap: 0;
   align-items: stretch;
   background: #fff;
   padding: 10px 0;
   transition: all 0.3s ease;

   font-weight: 400;
   font-size: 16px;
   /* line-height: 21px; */ 
   line-height: 130%;
   color: #000;
   border-bottom: 1px solid var(--light-gray);
}
.services-grid__item:last-child .service-card {
   border-bottom: none;
}
.services-grid__item .service-card:hover {
   box-shadow: 0 10px 25px rgb(130 23 116 / 15%);
   transform: translateY(-3px);
}
.service-card >div{
   border-right: 1px solid var(--deepblue);

   padding: 10px;
   align-items: center;
}
.service-card >div:last-child{
   border-right: none;
}

/* Специализация и название */
.service-card__info {
   display: flex;
   flex-direction: column;
   justify-content: center;      /* вертикальное центрирование */
   align-items: flex-start;      /* по левому краю */
   width: 100%;
   text-align: left;
   font-weight: 300;
   font-size: 16px;
   line-height: 130%;
   color: #000;
}
.service-card__info > div{
   width: 100%;
}

.service-card__specialization {
}

.service-card__name {
   font-weight: 700;
}

/* Телефон */
.service-card__phone {
   display: flex;
}

.service-card__phone-link {
   display: inline-flex;
   text-decoration: none;
   gap: 8px;
   font-weight: 700;
   font-size: 30px;
   
   /* line-height: 39px; */ 
   line-height: 130%;
   color: #000;
   
   transition: color 0.2s ease;
}

.service-card__phone-link:hover {
   color: var(--deepblue);
}

.service-card__phone-empty {
   color: var(--light-gray);
   font-size: 14px;
}

/* Время работы */
.service-card__hours {
   display: flex;
}

.service-card__hours-content {
   display: flex;
   gap: 10px;
   align-items: flex-start;
}

.service-card__hours-icon {
   flex-shrink: 0;
   margin-top: 2px;
   color: #6b7280;
}

.service-card__hours-text br {
   margin: 2px 0;
}

.service-card__hours-empty {
   color: var(--light-gray);
   font-size: 14px;
}

/* Адрес */
.service-card__address {
   display: flex;
   gap: 8px;
   align-items: flex-start;
}

.service-card__address-icon {
   flex-shrink: 0;
   margin-top: 2px;
   color: #6b7280;
}

.section-map-autoservice-bottom .contain-map::after{
   display: none;
}
/* Делаем Яндекс.Карту серой */
#map-autoservice .ymaps-2-1-79-ground-pane,
#map-autoservice .ymaps-2-1-79-layers-pane,
#map-autoservice .ymaps-image-tile,
#map-autoservice .ymaps-2-1-79-layer {
    -webkit-filter: grayscale(100%) !important;
    filter: grayscale(100%) !important;
    transition: filter 0.5s ease;
}

/* При наведении возвращаем цвет (опционально) */
#map-autoservice:hover .ymaps-2-1-79-ground-pane,
#map-autoservice:hover .ymaps-2-1-79-layers-pane,
#map-autoservice:hover .ymaps-image-tile,
#map-autoservice:hover .ymaps-2-1-79-layer {
    -webkit-filter: grayscale(0%) !important;
    filter: grayscale(0%) !important;
}

/* Контролы остаются цветными */
#map-autoservice .ymaps-2-1-79-controls {
    -webkit-filter: grayscale(0%) !important;
    filter: grayscale(0%) !important;
}


/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 1200px) {
   .services-grid__item .service-card {
      display: grid;
      grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
   }
   .section-map-autoservice-bottom{
      height: 600px;
      width: 100%;
   }
   .section-map-autoservice-bottom .contain-map {
      height: 600px;
      width: 100%;
      max-height: calc(100vh - 100px);
    }
}
@media (max-width: 991px) {

   .services-grid__item .service-card {
      display: grid;
      grid-template-columns: 1fr 1fr;  /* 2 колонки */
      grid-template-rows: auto auto;   /* 2 строки */
      gap: 0;
      justify-items: stretch;
      width: 100%;
  }
  .service-card > div.service-card__info { grid-row: 1; grid-column: 1;}
  .service-card > div.service-card__phone { grid-row: 1; grid-column: 2; border-right: none;}
  .service-card > div.service-card__hours { grid-row: 2; grid-column: 2 / -1; border-right: none;border-left: 1px solid var(--deepblue);margin-left: -1px;}  /* вся ширина */
  .service-card > div.service-card__address { grid-row: 2; grid-column: 1 / -1;  border-right: none;}
  .service-card > div{
   padding: 0 10px;
   margin: 10px 0;
   }
}
/* Мобильные телефоны */
@media (max-width: 640px) {
   
   .services-grid__item .service-card {
      grid-template-columns: 1fr !important;  /* принудительно */
   }
   .service-card__info,
   .service-card__phone,
   .service-card__hours,
   .service-card__address {
       grid-column: 1 / -1;  /* вся ширина */
       grid-row: auto !important;       /* естественный порядок */
   }
   .service-card > div{
      grid-column: 1 / -1 !important;
      border-right: none !important;

   }
   
   .service-card__phone {
       font-size: 24px;
   }
   
}
/* End */
/* /local/templates/main/css/pages/autoservice.css?17750558201762 */
/* /local/templates/main/components/bitrix/news.list/map-autoservice/style.css?17781152249426 */
