/* Сброс стилей */

*, *::before, *:after {
    padding: 0;
    margin: 0;
    border: none;
    /* В размер элемента уже будут включены все отступы */
    box-sizing: border-box;
}

/* убираем обводку у ссылок при клике и фокусе */
a:focus, a:active {
    outline: none;
}

a, a:visited, a:hover {
    text-decoration: none;
}

/* Убираем маркеры у списков */
ul {
    list-style: none;
}

/* Стилизация сайта */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 10px 0 10px;
}

/* Шапка */
.header {
    width: 100%;
    position: absolute;
    display: flex;
    justify-content: space-between;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(57, 62, 70, 0.75) 0%, rgba(57, 62, 70, 0) 100%);
}

.header_inner {
    padding: 0;
    display: flex;
}

.logo_link_pc {
    display: block;
    position: fixed;
}
/* Навигация */

.menu {
    display: block;
}
.menu li {
    float: left;
}

.menu li:not(:last-child) {
    margin: 0 0 0 200px;
}

.menu li a{
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: var(--dark_white);
    font-size: 25px;
    
    display: block;
    padding: 1em;
    
    transition: color 0.5s;
}

.menu li a:hover {
    color: #E90909;
}

/* Логотип для шапки */
.logo_link {
    display: none; 
}

/* Кнопка бургер */
.burger_btn {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: transparent;
    margin: 20px 0 0 0;
    display: none;
    z-index: 2;
}

/* Палочки кнопки */
.burger_btn span{
    position: absolute;
    left: 10px;
    
    width: 30px;
    height: 3px;
    background: #E90909;
    //background: rgba(233, 9, 9, 0.8);
    
    /* Анимация */
    transition: transform 0.5s, opacity 0.5s, background-color 0.5s;
}

/* Первая палочка */
.burger_btn span:nth-child(1) {
    /* С помощью transform и атрибута translate перемещаем одну из палочек вверх на 10пкс */
    transform: translateY(-10px);
}

/* Вторая палочка */
.burger_btn span:nth-child(3) {
    transform: translateY(10px);
}

/* ---Свойства бургер-кнопки при сужении экрана--- */

.header.open .burger_btn span:nth-child(2){
    /* полностью прозрачный элемент (невидимый) 2 палочка */
    opacity: 0;   
}

/* Поворачиваем две палочки, чтобы образовать крестик */
.header.open .burger_btn span:nth-child(1){
    /* Сдвигаем палочки в одну позицию и поворачиваем на 45 и -45 градусов */
    transform: translateY(0) rotate(45deg);  
}

.header.open .burger_btn span:nth-child(3){
    /* Сдвигаем палочки в одну позицию и поворачиваем на 45 и -45 градусов */
    transform: translateY(0) rotate(135deg);
    
}

/* welcome */
.welcome {
    width: 100%;
    height: 100vh;
    background: url(../images/bgPict_1x.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Блок для логотипа */
.logo_block {
    max-width: 1200px;
    width: 100%;
    margin-top: 5%;
    text-align: center;
}
/* Сам логотип */
.logo {
    display: inline-block;
    width: 60%;
}

/* Блок для карточек */
.cards-wrapper {
    padding-top: 10%;
    display: flex;
    justify-content: space-between;
}

/* Каждая отдельная карточка */
.cards-wrapper .card {
    font-family: "Hind", sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 118%;
    color: #b1b1b1;
    padding: 0.6em 0.6em;
    text-align: center;
    
    width: 25%;
    background: rgba(34, 40, 49, 0.65);
    border-radius: 5px;
}

/* Заголовок в карточке */
.title_card {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #EEEEEE;
    font-size: 25px;
    padding: 0.7em 0;
    text-transform: uppercase;
}

/* -------СЕРВИС------- */

.service-section {
    background: #27292d;
    width: 100%;
    min-height: 900px;
}

.service-section p{
    font-family: "Hind", sans-serif;
    font-weight: 500;
}

.service_container {
    max-width: 1350px;
    padding: 0 20px;
}

/* -------КАРТОЧКИ------- */

/* Блок с карточками(кнопками) */
.service_cards {
    margin: 20px auto;
    display: grid;
    /* Кол-во блоков в ряду сетки */
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 15px;
    row-gap: 15px;
    padding: 10px 0;
    text-align: center;
    justify-content: center;

}

/* Каждая отдельная кнопка*/
.service_butt {
    width: 300px;
    padding: 0px 20px;
    cursor: pointer;
    transition: border 0.7s;
    margin: 10px 5px 0 5px;
}

.service_butt:hover {
    border: 1px solid var(--red);
}

/* Кнопка "Лодки" при нажатии */
.service_cards.active1 .boat_btn {
    /* При нажатии на карточку */
    background: linear-gradient(rgba(235, 235, 235, 0.9), rgba(235, 235, 235, 0.78)), url(../images/card1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border: none;
    
    padding: 15px 5px;
}

/* Кнопка "Лодочный мотор" при нажатии */
.service_cards.active2 .motors_btn {
    /* При нажатии на карточку */
    background: linear-gradient(rgba(235, 235, 235, 0.78), rgba(235, 235, 235, 0.78)), url(../images/card2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border: none;
    
    padding: 15px 5px;
}

/* Кнопка "Садовая мототехника" при нажатии */
.service_cards.active3 .garden_btn{
    /* При нажатии на карточку */
    background: linear-gradient(rgba(235, 235, 235, 0.78), rgba(235, 235, 235, 0.78)), url(../images/card3.2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border: none;
    
    padding: 15px 5px;
}

/* Кнопка "3д печать" при нажатии */
.service_cards.active4 .printing_btn {
    /* При нажатии на карточку */
    background: linear-gradient(rgba(235, 235, 235, 0.78), rgba(235, 235, 235, 0.78)), url(../images/card4.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border: none;
    
    padding: 15px 5px;
}

.boat_btn { 
    height: 726px;
    background-image: url(../images/card1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;  
}

.motors_btn {
    height: 726px;
    background-image: url(../images/card2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    
}

.garden_btn {
    height: 726px;
    background-image: url(../images/card3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    
}

.printing_btn {
    height: 726px;
    background-image: url(../images/card4.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
   
}

/* Заголовок на кнопке */
.service_butt .title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 27px;
    text-transform: uppercase;
    color: #eee;
    
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Стили для нажатой кнопки */

/* Лодки */
.boat_list {   
    font-family: var(--hind);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    color: #000;
}

.boat_list li{
    padding: 3px 5px 0 5px;
}

/* Моторы */
.motors_list {   
    font-family: var(--hind);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    color: #000;
}

.motors_list li{
    padding: 5px 5px;
}

/* Садовая мототехника */
.garden_list {
    font-family: var(--hind);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    color: #000;
}

.garden_list li{
    padding: 5px 5px;
}

/* Линия в меню услуг в активных кнопка */
.underline {
    display: block;
    width: 80%;
    margin: 0 auto 15px auto;
    border-color: rgb(0, 0, 0, 0.5);
    border-style: inset;
    border-width: 1px;
}


/* ссылка на каталог в 3д печати */
.catalog_link {
    font-family: var(--hind);
    font-weight: 400;
    font-size: 16px;
    color: var(--dark_white);
    padding: 5px 5px;
    margin: 20px 0 0 0;
    display: inline-block;
    background-color: var(--red);
    
    transition: 0.2s linear;
}

.catalog_link:hover {
    box-shadow: 300px 0 0 0 rgba(0, 0, 0, .3) inset;
}
/* ------ОПИСАНИЕ------- */

/* Левый блок */
.service_container .left_service {
    width: 26%;
    height: 100%;
    float: left;
    padding: 0 15px;
}

/* Заголовок */
.service_title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    
    font-size: 40px;
    text-transform: uppercase;
    color: #eee;
    
    width: 60%;
    padding-top: 60px;
    padding-left: 3px;
}

/* Описание сервиса */
.desc_block{
    width: 88%;
    padding-top: 40px;

}
.desc_text .support_text {
    font-family: "Hind", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 138%;
}

.desc_text {
    color: #DFDFDF;
}

/* Ссылка для связи */

.contact_link {
    font-family: "Hind", sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #e3e3e3;
    text-transform: uppercase;
    display: inline-block;
    width: 190px;
    border-radius: 5px;
    transition: .2s linear;
    
    padding: 16px 0 7px 13px;
    margin: 38px 0 0 5px;
    /* После текста ссылки расположится стрелка */
    background-color: var(--red);
    
    position: relative;
}

.contact_link:hover {
    box-shadow: 200px 0 0 0 rgba(0,0,0,.3) inset;
}

/* Стрелочка в кнопке связаться */
.contact_link img {
    position: absolute;
    top: 35%;
    left: 70%;
    
}
/* Поддержка */
.support {
    float: left;
    width: 30%;
    margin: 50px 0 50px 0;
}

.support_text {
    color: #b1b1b1;
}

/* -----------О НАС------------- */

/* Секция */
.about_us {
    width: 100%;
    background-color: #27292D;
}

/* Контейнер */
.about_container {
    max-width: 1350px;
    padding: 20px 20px;
}

/* ------ЛЕВЫЙ БЛОК----- */
.left_about {
    width: 100%;
    padding: 0 15px;
    margin: 40px 0 0 0;
}

.about_title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 35px;
    text-transform: uppercase;
    color: #f5f5f5;
    
    width: 80%;
}
.about_block {
    width: 75%;
    margin-top: 40px;
}

.about_block > p{
    font-family: "Hind", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 138%;
    color: #dfdfdf;
}

.about_down {
    
    font-family: "Hind", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 138%;
    color: #b1b1b1;
    
    width: 80%;
    margin-top: 100px;   
}

/* ----------ГАЛЕРЕЯ----------- */

/* Главный блок галереи */
.gallery {
    width: 100%;
    padding: 10px 15px;
}

/* Заголовок */
.works_title {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 30px;
    text-transform: uppercase;
    color: #fff;
    
    width: 35%;
    margin: 50px 0 25px 0;
}

/* Ссылка, внутри которой лежит картинка */
.gallery__link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

/* Параметры для картинок в слайдере */
.gallery__img {
    width: 100%;
    height: 100%;
    /* Для того, чтобы картинки растягивались пропорционально */
    object-fit: cover;
}

/* Вся навигация слайдера */
.gallery-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
    /* Расстояние между элементами в gallery-navigation */
    gap: 100px;
}

/* Пагинация (точки) */
.gallery__pagination {
    display: flex;
    justify-content: center;
    
}

/* Кнопки вперед назад */
.gallery__btn {
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    background-color: rgba(255, 0, 0);
    
    transition: background-color 0.3s;
}

.gallery__btn:hover {
    background-color: rgba(255, 0, 0, 0.5);
}

/* Когда слайды закончились, кнопка становится некликабельной */
.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}


/* ------НОВОСТИ------- */

.news {
    width: 100%;
    min-height: 700px;
    background-color: #27292D;
}

.news_container {
    padding: 20px;
    max-width: 1350px;
    width: 100%;
}

.up_block {
    padding: 10px 15px;
}
.news_title {
    font-family: "Montserrat", sans-serif;
    font-weight; 600;
    font-size: 30px;
    text-transform: uppercase;
    color: var(--dark_white);
    
    width: 30%;
}
/* Контейнер для карточек */
.grid {
    display: grid;
    /* Кол-во блоков в ряду сетки */
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 30px;
    row-gap: 30px;
    padding: 20px 0;
}
.grid_item {
    width: 100%;
    height: 100%;
}

.grid_item:hover .img_block img {
    /* Увеличивает масштаб элемента по x и y
     Если значение больше 1, увеличивает масштаб элемента, если меньше 1 — уменьшает масштаб. */
    transform: scale(1.1);
}
.img_block {
    width: 100%;
    height: 200px;
    text-align: center;
    overflow: hidden;
}
.img_block img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    
    /* Анимирование изменение масштаба картинки при наведении на grid_item */
    transition: transform 280ms ease-in-out;
}

.news_info {
    position: relative;
    /* calc позволяет вычислять значения для свойств, можно считать проценты пиксели и тд.
    Берем 100% от grid_item и вычитаем 200px, которые занимает блок с картинкой */ 
    height: calc(100% - 200px);
    padding: 16px 14px 23% 14px;
}
.date {
    font-family: "Cabin", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--white);
    
    margin: 20px 0 0 0;
}

.info_text .info {
    font-family: "Hind", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 138%;
    color: var(--white);
    
    margin: 20px 0 0 0;
    
}

.button__wrap {
    width: 100%;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: center;
}
.news_link {
    font-family: "Hind", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #e3e3e3;
    border-radius: 5px;
    transition: .2s linear;
    /* Ставим inline чтобы кнопка не заполняла всё свободное пространство, а расширялась только по
    содержимому */
    display: inline-flex;
    cursor: pointer;
    background: #E90909;
    text-transform: uppercase;
    padding: 8px 30px;
}

.news_link:hover {
    box-shadow: 200px 0 0 0 rgba(0,0,0,.3) inset;
}
/* ------КОНТАКТЫ----- */

.contacts {
    width: 100%;
    min-height: 600px;
    background-color: #27292D;
} 

.contacts_container {
    width: 100%;
    padding: 20px 20px;
    max-width: 1350px;
    padding: 0 15px;
}

/* Левый блок */

.left_contacts {
    width: 30%;
    padding: 0 15px;
    float: left;
    border-right: 1px solid var(--dark_white);
}

.contacts_title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 30px;
    text-transform: uppercase;
    color: var(--dark_white);
    
    width: 70%;
    margin: 30px 0 0 0px;
}

.contact_text {
    font-family: "Hind", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 138%;
    color: var(--white);
    
    width: 87%;
    margin: 20px 0 0 0px;
}

/* Телефон */
.number {
    font-family: "Hind", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--white);
    
    width: 80%;
    margin: 40px 0 0 0;
}

/* Почта */
.em_text {
    font-family: "Hind", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--white);
    
    margin: 10px 0 0 0;
    float: left;
}
.email {
    transition: color 0.3s;
}
.left_contacts img{
    /* 300px => 10% */
    margin: 20% 0 20px 0px;
    float: left;
}

/* Правый блок */
.right_contacts {
    width: 70%;
    float: right;
    padding: 0 15px;
}

.consult_title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 30px;
    text-transform: uppercase;
    color: var(--white);
    
    width: 100%;
    margin: 30px 0 0 20px;
}

/* ---Форма для связи--- */

.form {
    width: 75%;
    //display: flex;
    //flex-wrap: wrap;
    
    margin: 20px 0 0 40px;
}

/* Ввод данных */
.input {
    font-family: "Hind", sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--white);
    
    border: 1px solid #FFF;
    background: transparent;
    padding: 10px 0 0 5px;
    margin: 20px 20px 0 0;
    height: 50px;
}

/* Стилизуем placeholder для firefox */
input::-moz-placeholder {
    font-family: "Hind", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--white);
}

/* Стилизуем placeholder для Chrome и Safari */
input::-webkit-input-placeholder {
    font-family: "Hind", sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--white);
   }

/* Кнопка отправки данных */
.app_btn {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 24px;
    width: 50%;
    color: var(--dark_white);
    text-transform: uppercase;
    
    cursor: pointer;
    background-color: rgba(219, 0, 0, 0.83);
    
    padding: 7px 5px;
    margin: 20px 10px 0 0;
    border-radius: 5px;
    
    display: flex;
    justify-content: space-around;
    
    transition: background-color 0.3s;
}

.app_btn img {
    margin: 2px 5px 0 10px;
    width: 9%;
}

.app_btn:hover {
    background-color: rgba(219, 0, 0, 0.5);
}

/* сообщение после отправки формы заявки */
.msg_app {
    width: 100%;
    align-items: center;
    border-radius: 3px;
    padding: 5px;
    font-size: 1em;
    text-align: center;
    margin: 30px auto;
    color: var(--white);
}

/* Скрываем msg_app, пока нет никакого сообщения */
.none {
    display: none;
}

.error {
    border: 1px solid var(--red);
}

.succes {
     border: 1px solid green;
}
.cons_text {
    font-family: var(--hind);
    font-weight: 500;
    color: #DFDFDF;
    font-size: 16px;
}

.auth_link {
    font-family: var(--hind);
    font-weight: 500
    font-size: 16px;
    
}

/* Карта */
.map {
    margin: 40px 0 0 40px;
}

/* Адрес */
.addr {
    font-family: "Hind", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 138%;
    color: var(--white);
    
    margin: 30px 0 0 40px; 
}

/* ----ПОДВАЛ---- */

.footer {
    border-top: 1px solid var(--dark_white);
    width: 100%;
    min-height: 180px;
    background-color: #27292D;
}

.footer_container {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-around; 
}

/* Навигация */
.footer_nav {
    width: 35%;
    
}

.nav_title {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    
    font-size: 20px;
    text-transform: uppercase;
    color: var(--white);
    padding: 0 0 0.7em 0;
}

.nav a{
    font-family: "Hind", sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    color: #fff;
    
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--red);
}
/* Блок соц сетей */
.social_block {
    width: 30%;
    margin-left: 20px;
    text-align: center;
}

/* Заголовок */
.social_title {
    width: 100%;
    
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--white);
}

/* Ссылки на соц сети */
.soc_links {
    margin: 20px 0 10px 0;
    display: flex;
    justify-content: space-around;
}

.soc_links a{
    display: block;
    width: 20%;
    height: 50px;
}
.tg {
    background: url(../images/tg1.svg) no-repeat;
    background-position: center;
}

.yan {
    background: url(../images/yan1.svg) no-repeat;
    background-position: center;
}

.vk {
    background: url(../images/vk.svg) no-repeat;
    background-position: center;
}


.email:hover {
    color: var(--red);
}