
*{
    box-sizing: border-box;
}

:root {
    --main-font: 'Montserrat', sans-serif;

    --gray: #3b3b3b;
    --white: #fff;
    --yellow: #f3ee7e;
    --menu: #bec3ca;
    --menu1: #777;
    --bg: #555;

    --fz-14: 14px;
    --fz-18: 18px;
    --fz-24: 24px;
    --fz-38: 38px;
    --fz-40: 40px;
    --fz-50: 50px;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
}
body {
    font-family: var(--main-font);
    background-image: url(../Img/bgc.png);
    /* Заполнить все пространство */
    background-size: contain;
    background-attachment: fixed;
    background-size: cover;
    /* background-repeat: no-repeat; */
}

p{ 
    font-family: var(--main-font);
    color:  var(--white);
    font-size: var(--fz-18);
    font-weight: 500;
    text-indent: 35px;
    line-height: 150%;
    text-align: justify;
    padding: 10px;
    margin-bottom: 20px;

}
header {
    background: var(--gray);
    /* Закрепить хедер при скролле */
    position: fixed;
    /* По всей ширине страницы */
    width: 100%;
    padding-top: 10px;
    z-index: 2;
}
nav {
    display: flex;
    /* По центру */
    margin: 0 auto;
    /* Прижать по краям с растяжением и пробелами междц */
    justify-content: space-between;
    /* Прижать к нижней части */
    align-items: center;
}

.menu {
    /* В строку */
    display: flex;
    /* Между столбцами промежутки */
    column-gap: 80px;
    /* Отступ к нижней границе */
    padding-bottom: 10px;
}

.menu li a {
    text-decoration: none;
    font-family: var(--main-font);
    font-size: var(--fz-18);
    font-weight: 700;
    line-height: 22px;
    color: var(--menu);
}

.menu .menu-item a:hover {
    color: var(--yellow);
    text-decoration: overline;
    -webkit-text-shadow: 2px 2px 2px #000;
    -moz-text-shadow: 2px 2px 2px #000;
      text-shadow: 2px 2px 2px #000;
}


nav .menu .menu-item .dropdown {
    /* Выравнивание относительно пункта меню -дочерний элемент */
    position: absolute;
    z-index: 200;
    left: 0;
    display: none;
    column-gap: 10px;
    /* Прозрачность- не видно изначально пункты меню */
    opacity: 0;
    transition: 500ms;
}

@media screen  and (min-width: 768px){
    nav .menu .menu-item:hover .dropdown {
        /* А\При наведении становится видно выпадающий список */
        opacity: 1;
        background-color: var(--gray);
        min-width: 300px;
        padding: 5px;
        width: max-content;
        display: block;
    }

    nav .menu .menu-item .dropdown .dropdown-item {
        width: 100%;
        display: block;
        padding: 10px 10px;
    }
}

main {
    margin: 0 auto;
}

.description{
    margin-bottom: 100px;
}
/* .description-info {
    padding-top: 0;
    margin-top: 40px;
    display: flex;
    margin-bottom: 80px;
    background-color: var(--gray);
    
} */

.description p {
    text-indent: 35px;
    /* background-color: #4D4D4DB0; */
    font-family: var(--main-font);
    font-size: var(--fz-24);
    font-weight: 700;
    line-height: 58.51px;
    text-align: justify;
    color: var(--white);
    column-gap: 25px;
    align-items: center;
    padding: 10px 20px;
}

h1 {
    font-family: var(--main-font);
    font-size: var(--fz-50);
    font-weight: 700;
    line-height: 55px;
    text-align: center;
    align-items: center;
    color: var(--yellow);
    padding-top: 190px;
    margin-bottom: 20px;
}

h2 {
    font-family: var(--main-font);
    font-size: var(--fz-40);
    font-weight: 700;
    line-height: 58.51px;
    text-align: center;
    align-items: center;
    color: var(--yellow);
}

h3 {
    font-family: var(--main-font);
    font-size: var(--fz-24);
    font-weight: 500;
    line-height: 28px;
    text-align: center;
    align-items: center;
    color: var(--yellow);
    margin-bottom: 20px;
}

.slider-container .slider img{
    width: 100%;
    height: 100%;
}
.advantages h2{
    margin-bottom: 100px;
    text-align: center;
}
.advantages-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    margin-bottom: 100px;
}

.advantages-card div{
    display: flex;
    flex-direction: column;
    row-gap: 30px;
    align-items: center;
}

.advantages p{
    font-family: var(--main-font);
    font-size: var(--fz-24);
    font-weight: 500;
    line-height: 30.76px;
    text-align: center;
    color: var(--white);
}

.gallery h2 {
    margin-bottom: 80px;
}

.gallery-photo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
  }
   
  .gallery img {
    width: 500px;
    height: 500px;
    height: auto;
    cursor: pointer;
    border-radius: 5%;
  }
  .gallery video {
    width: 500px;
    height: 500px;
    height: auto;
    cursor: pointer;
    border-radius: 5%;
  }

  .gallery img:hover{
    transform: scale(1.1);
  }

  video{
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
  }

  footer {
    background: var(--gray);
    width: 100%;
    padding-top: 20px;
    width: 100%
}

.contacts{
    text-align: center;
    text-decoration: none;
    color: var(--white);
    font-family: var(--main-font);
    font-size: var(--fz-18);
}

.contacts a{
    text-decoration: none;
    color: var(--white);
    font-family: var(--main-font);
    font-size: var(--fz-18);
    
}
.contacts p{
    margin: 10px;
    text-align: center;
}

.map{
   display: flex;
   justify-content: center;

}

.social-card{
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    justify-content: center;
}

.social-card div a img:hover{
    transform: scale(1.2);
}

.services{
    margin-bottom: 50px;
}

.tireservice{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    column-gap: 20px;
    row-gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.tireservice img{
    width: 300px;
}

.services-btn{
    width: 200px;
    height: 50px;
    background-color: var(--gray);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: var(--fz-14);
}

.services-btn a{
    text-decoration: none;
    color: var(--white);
    border: none;
}

.services-btn:hover{
    background-color: var(--menu1);
}


/*стили для бургер меню, изначально он display:none, так как его не видно*/
.container-burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 50px;
    height: 30px;
    cursor: pointer;
}

.burger-menu-button {
    all: revert;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Задайте желаемые размеры кнопки */
    height: 30px; /* Задайте желаемые размеры кнопки */
    background-image: url('../Img/maxresdefault.jpg');
    background-size: cover;
}

h4{
    font-family: var(--main-font);
    color: var(--menu);
    font-size: var(--fz-24);
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;

}
.reasons{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.reason{
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--main-font);
    font-size: var(--fz-18);
    font-weight: 500;
    text-align: justify;
    color: var(--white);
    align-items: center;
    padding: 30px 10px;
    margin-bottom: 30px;
    background-color: var(--bg);
    border-radius: 20px;
}

@media screen and (max-width: 1000px) {
    .reasons {
        justify-content: center;
    }
}

.keepservices{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    margin-bottom: 50px;
}

.keeping{
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--main-font);
    font-size: var(--fz-24);
    font-weight: 300;
    text-align: center;
    color: var(--white);
    align-items: center;
    padding: 10px 10px;
    margin-bottom: 20px;
    background-color: var(--bg);
    border-radius: 20px;
    word-break: break-all;
}

.price-tireservice {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.price-tireservice p{
    color: var(--yellow);
    font-size: var(--fz-24);
}

#shinomontazh {
    border-radius: 30%;
    margin: 0 auto;
}

.description-tireservice{
    font-family: var(--main-font);
    font-size: var(--fz-24);
    font-weight: 500;
    text-align: center;
    color: var(--white);}

.text-tireservice p{
    text-indent: 35px;
    line-height: 150%;
    text-align: justify;
    padding: 10px;
    margin-bottom: 20px;
}
table {
	width: 100%;
	margin-bottom: 20px;
    font-size: var(--fz-18);
	border: 1px solid #dddddd;
	border-collapse: collapse; 
    background-color: var(--bg);
}
table th {
	font-weight: bold;
	padding: 5px;
	border: 1px solid #dddddd;
}
table td {
	border: 1px solid #dddddd;
	padding: 5px;
}

/* Стили для слайдера на странице Шиномонтажных услуг*/

.slider-container{
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.slider{
    display: flex;
    height: 400px;
    transition: 500ms;
}

.slider img{
    object-fit: cover;
    width: 100%;
}

.prev-button, 
.next-button{
    position: absolute;
    top: 45%;
    width: 50px;
    height: 50px;
    /* Прозрачные кнопки */
    background-color: transparent;
    font-size: 35px;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.prev-button{
    left: 10px;
}

.next-button{
    right: 10px;

}

#sliderDots{
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 5px;
}

.dot{
    width: 15px;
    height: 15px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;

}

.dot.active{
    background-color: var(--gray);
}

/* Стили для формы обратной связи на странице шиномонтажных услуг */

form{
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--gray);
    padding: 20px;
    border-radius: 25px;
    margin-bottom: 20px;
}

label{
    font-size: var(--fz-18);
    margin-bottom: 20px;
    color: var(--white);
    font-family: var(--main-font);
}

#book{
    margin-bottom: 15px;
}

input{
    height: 30px;
    border-radius: 5px;
    border: 1px solid #fff;
    width: 300px;
    padding: 5px;
}
/* Обращение к первому элементу псведокласа */
form input:first-of-type{
    margin-top: 20px;
}
form button{
    background-color: var(--yellow);
    padding: 10px 25px;
    border: 1px solid black;
    border-radius: 5px;
    font-family: var(--main-font);
}
form button:hover{
    background-color: var(--menu1);
    color: var(--white);
    transform: scale(0.9);
}

form button:active{
    color: var(--yellow);
}

/* Страница Акции */
.article-promo{
    display: flex;
    flex-wrap: wrap;
    
}

.article-promo-card{
    background-color: var(--gray) ;
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    border-radius: 20px;
}
.article-promo-content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.article-promo-img {
    padding: 20px;

}
.article-promo-content img{
    margin: 0 auto;
}


.promo-detail ul li {
    text-decoration: dotted;
    color: var(--white);
    font-size: var(--fz-18);
    text-align: center;
    font-family: var(--main-font);
}

#attention{
    color: crimson;
}
.grid-container{
    display: grid;
   grid-template-rows: 1;
   grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
   gap: 16px;
   padding: 16px 0;
   margin-top: 50px;
   margin-bottom: 50px;
}

.card-promo{
    background-color: var(--gray);
    padding: 16px;
  
    border-radius: 5px;
}

/* .image-container {
    width: 400px;
    height: 250px;
} */

.image-container img{
    width: 100%;
    height: 100%;
    margin: 0 auto;
    margin-bottom: 20px;
}

.accordion-hidden{
    max-height: 0;
    overflow: hidden;

}
/* .accordion-show{
    max-height: 1000px;
} */

#accordion.card{
    margin-top: 20px;
}

#discount-details{
    background-color: #555;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

#discount-details:hover{
    background-color: #777;
}

#discount-details2{
    background-color: #555;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

#discount-details2:hover{
    background-color: #777;
}

каталог


.modal-image {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

tbody tr td{
margin: 0 auto;
text-align: center;
}

tbody tr td div {
    display: flex;
    flex-direction: row;
    margin: 2px;
    flex-wrap: wrap;
}


/* Стили для маленьких экранов */
@media (max-width: 768px) {
    .modal-fullscreen-sm-down {
        width: 100vw;
        margin: 0;
    }
    
    .modal-content {
        border-radius: 0;
    }
}



/*медиа запрос, то есть когда у нас экран меньше или равен 768 (это планшеты или телефон, мы показываем бургер меню)*/
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .container-burger-menu {
        width: 100%;
        display: flex;
        justify-content: end;
    }

    header nav {
        width: inherit;
    }

    .burger-menu {
        display: flex;
    }

    header .container {
        display: flex;
        justify-content: space-between;
    }
}

  @media screen  and (min-width: 768px){
      nav .menu .menu-item {
          top: 120%;
          /* Выравнивание относительно пункта меню - дочерние элементы  относительно родительского */
          position: relative;

      }
  }

@media screen and (max-width: 1250px) {
    .container{
        width: 1140px;
    }
    
}
@media screen and (max-width: 1195px) {
    .container{
        width: 900px;
    }
    .description p {
        font-size: 25px;
        font-weight: 500;
        line-height: 40px;
        column-gap: 20px;
        padding: 10px 20px;
    }
    .slider-container img{
        width: 100%;
    }

    .advantages p{
        font-size: 25px;
    }

    .gallery img{
        width: 300px;
    }

    .menu {
        column-gap: 30px;
    }
}
@media screen and (max-width: 1160px) {
    .container{
        width: 750px;
    }

    header img{
        width: 70px;
    }

    .description{
        flex-wrap: wrap;
    }

    .slider-container img{
        margin: 0 auto;
    }
    .description p {
        font-size: 20px;
    }
    .advantages{
        display: flex;
        flex-wrap: wrap;
    }

    .advantages p{
        font-size: 20px;
    }

    .menu li a  {
        font-size: 15px;

    }

    .gallery img{
        width: 200px;
    }

}

@media screen and (max-width: 900px){
    .tireservice h3{
        font-size: 10px;
    }
    
    .tireservice img{
        width: 200px;
    }
}

@media screen and (max-width: 769px) {
    .container{
        width: 100%;
        padding: 0 15px;
    }
    .menu{
        /* Уьираем меню на планшете, поскольку не можем еще делать бургерное меню в джаваскрипт */
        display: none;
    }

    .gallery img {
        width: 100%;
    }

    .footer-container{
        flex-direction: column;
        row-gap: 10px;
    }

    h2{
        font-size: 25px;
        margin-bottom: 25px;
    }

    h1{
        font-size: 30px;
        margin-bottom: 30px;
    }

    .description p{
        font-size: 16px;
    }
    .article-promo-content img{
        width: 600px;

    }

    .services-btn{
        width: 150px;
    }

    .tireservice img{
        width: 200px;
    }

    #contacts-h{
        font-size: var(--fz-18);
    }

    .services h1{
        margin-bottom: 30px;
        font-size: var(--fz-24);
    }

    .contacts a{
        font-size: var(--fz-14);
    }
    .contacts p{
        font-size: var(--fz-14);
    }

    .social h2{
        font-size: var(--fz-18);
    }

    .social-card div a img {
        width: 50px;
        height: 50px;
        
    }
    .social-card div p{
        padding: 0px;
    }


}

@media screen and (max-width: 690px) {
    .article-promo-content img{
        width: 400px;

    }
}

@media screen and (max-width: 575px) {
    .container{
        width: 100%;
        padding: 0 15px;
    }
    .slider-container .slider img{
        width: 450px;
        height: 400px;
    }
}

@media screen and (max-width: 575px) {
    .slider-container .slider img{
        width: 100%;
        height: 100%;
    }

    .tireservice img {
        width: 100px;
    }

    .services-btn{
        width: 150px;
    }
    .name-item p{
        font-size: var(--fz-14);
    }
}


.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pagination button,
.pagination span {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    min-width: 36px;
    text-align: center;
}

.pagination button:hover:not(:disabled) {
    background: #007bff;
    color: #fff;
}

.pagination button.active {
    background: #007bff;
    color: #fff;
    font-weight: bold;
    cursor: default;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination span.dots {
    cursor: default;
    background: transparent;
    border: none;
}
