html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body{
  background-color: #ffffff;
  overflow-x: hidden;
}


h1 {
  font-family: 'Poppins', sans-serif;
} 

h2 {
  font-family: 'Roboto', sans-serif;
  color: #1F1F1F;
  font-weight: 900;
}

h3 {
  font-family: 'Roboto', sans-serif;
  color: #ba1212; 
  font-weight: 900;
}

li, ol {
  list-style: none;
  margin-left: 20px;
}
li:first-child {
  margin-left: 0;
}

header {
  height: 100vh; /* высота под экран */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ba1212;
  z-index: 1;

  background-image: url("/Pics/background.jpg");
  background-size: cover;
  background-position: center;
}

footer {
  margin: 0 auto;
  background-color: #ba1212;
  
}

nav {
  position: fixed;
  top: 0;  /* точка, при которой панель начинает прилипать */
  z-index: 1000;
  background-color: rgb(0, 0, 0);
  width: 100%;
}

p {
  line-height: 1.5;
} 

section {
  padding-bottom: 50px;
  overflow: hidden;
  position: relative;
  background-color: rgb(255, 255, 255);
}

a,
a:link,
a:visited {
  text-decoration: none;
}

input {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.12);
  margin-bottom: 40px;
}

textarea {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.12);
  border-radius: 5px; 
  margin-bottom: 40px;
  padding: 10px;
  width: 100%;
  height: 150px;
  background-color: rgba(224, 224, 224, 0.199);
}

button {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.12);
  border-radius: 5px; 
  width: 150px;
  height: 50px;
  background-color: #000000;
  color: #ffffff;
  font-weight: 900;
}











.container__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 20px;
  position: relative;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
}

.image__logo {
  max-width: 180px;
  height: auto;
}

/* Menu */
.header-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-list a {
  color: red;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

/* Social */
.header-social {
  display: flex;
  flex-shrink: 0;
}

.header-social img {
  width: 28px;
  height: 28px;
  display: block;
}











.container__header {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  color: #ba1212;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 1);
}

.container__header h2, .container__header p {
  font-weight: 600;
  color: #ba1212;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 1);
}

.container__header h1 { 
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 15px 0;
}

.container__header h3 { 
  margin-top: 20px;
  color: #ba1212;
}

.header__button button {
  margin-top: 20px;
  color: #ba1212;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header__button button:hover{
  color: rgb(255, 255, 255);
  transform: translateY(-2px);
  transition: all 0.4s ease; 
}


/* Кнопка в навигации */
.nav-quote-li {
    margin-left: 10px;           /* небольшой отступ слева */
}

.nav-quote-btn {
    color: #ba1212;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;   

}

.nav-quote-btn:hover {
  color: rgb(255, 255, 255);
  transform: translateY(-2px);    /* лёгкий подъём при наведении */ 
  transition: all 0.4s ease;
}

/* Адаптив — на маленьких экранах кнопка остаётся кнопкой */
@media (max-width: 768px) {
    .nav-quote-li {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .nav-quote-btn {
        width: 100%;               /* на мобильных кнопка на всю ширину */
        text-align: center;
    }
}











.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 50px 0;
}


.container h2 {
  font-size: 250%;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1 );
  padding-top: 5px;
  padding-bottom: 50px;
}

.container h3 {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
}

.block {
  display: flex;
}

.image {
  width: 30px;
  margin-left: 15px;
  border-radius: 15.0px;
}
.image.first {
  margin-left: 0;
}












.block.service {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
}

.service__block__item {
  width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 10px 30px 10px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.service__block__item img {
  padding-bottom: 20px;  
}

.service__block__item h3 {
  padding-top: 5px;
  padding-bottom: 15px;
  font-size: 50 0%;
  font-weight: 900;
  display: inline-block;           
  transform: scaleY(1.2);          
  transform-origin: center;
  font-size: 20px;
}

.service__block__item p {
  text-align: center;
  word-wrap: break-word;
  padding: 0 10px;
}













.aboutUs__block__text{
  width: 70%;
}

.aboutUs__block__text p {
  padding: 0 33px 0 7px;
}

.aboutUs__block__text h3 {
  margin: 20px 30px 10px 0;
  padding: 12px 10px;
  border-radius: 5px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.08);
  font-size: 18px;
}

.aboutUs__block__img {
  width: 30%;
}

.aboutUs__block__img img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}












.section__prices {
  background-color: rgb(245, 245, 245);
}

.block.prices {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  border-radius: 8px;
  gap: 20px;
}

.block__prices__item  {
  padding: 30px 0;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);  
  width: 300px;
  border-radius: 8px;
}

.block__prices__item h3 {
  padding: 5px 0px 5px 5px;
  font-size: 20px;
  display: block ;
  color: #000;
  text-align: center;
}

.block__prices__item img {
  width: 50px;
  margin: 0 auto 10px auto;
  display: block;
}

.car-body-type {
  display: flex;              /* главное свойство */
  justify-content: space-between;   /* разводит по краям */
  align-items: center;        /* выравнивает по вертикали по центру */
  width: 100%;                /* на всю ширину контейнера */
  padding: 5px 20px;
  border-radius: 8px;
}

.car-body-type span {
  color: #ba1212;
  font-weight: 900  ;
}














.section__gallery .container {
  padding-bottom: 0;
}

.Carousel-slider {
  height: 560px;
  position: relative;
  width: 100%;
}

.Carousel-slider.fullwidth {
  height: 500px;
}

.Carousel-slider.fullwidth .slider-item{
  height: 480px;
  line-height: 480px;
  width: 100%;
}

.slider-wrapper {
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 0 50%;
  perspective: 800px !important;
}

.slider-item {
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.12);
  display: none;
  height: 400px;
  left: 0;
  position: absolute;
  text-align: center;
  top: 0;
  width: 400px;
  cursor: pointer;
  border-radius: 4%;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.indicators {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  list-style-type: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-wrap: nowrap;           
  gap: 8px;                   
  align-items: center;
  width: fit-content;
  white-space: nowrap;
}

.indicators li {
  color: #000000;
  float: left;
  margin-right: 8px;
  text-align: center;
}

.indicators a {
  background: #000000;
  border-radius: 8px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.indicators .active a {
  background: #e4e5e6;
}

.car1 {background-image: url(/Pics/Gallery/headlight.jpg);}
.car2 {background-image: url(/Pics/Gallery/headlights.jpg);}
.car3 {background-image: url(/Pics/Gallery/headlights1.jpg);}
.car4 {background-image: url(/Pics/Gallery/2.jpg);}
.car5 {background-image: url(/Pics/Gallery/polishing.jpg);}
.car6 {background-image: url(/Pics/Gallery/polishing1.jpg);}
.car7 {background-image: url(/Pics/Gallery/polishing2.jpg);}
.car8 {background-image: url(/Pics/Gallery/red.jpg);}
.car9 {background-image: url(/Pics/Gallery/red1.jpg);}
.car10 {background-image: url(/Pics/Gallery/1.jpg);}














.testimonials {
  background-color: rgb(245, 245, 245);
}

.block.testimonials {
   background-color: rgba(224, 224, 224, 0);
   width: 100%;
   display: flex;
   flex-wrap: wrap;
   justify-content: space-evenly;
   border-radius: 8px;
   gap: 20px;
}

.item__testimonials {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
  width: 300px;
  border-radius: 8px;
  background-color: #ffffff;
}

.item.testimonials:last-child {
  margin-right: 0;
}

.item__testimonials__img img{
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center 0px;
  border-radius: 100%;
  padding: 20px;
}

.item__testimonials__content {
  padding: 20px 20px 20px 0px;
}

.item__testimonials__content img{
  width: 80px;
}

.name {
  font-weight: 900;
}














.getQuote {
  background-color: #000;
  padding-bottom: 0;
}

.getQuote__title {
  font-weight: 900;
  font-size: 25px;
  color: white;
  text-align: center;
  text-transform: uppercase;
}

.getQuote__img__logo {
  margin-bottom: 10px;
  width: 300px;
}

.container.getQuote  {
  padding: 100px 0;
}

/* Основной стиль модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 10px;           /* отступы по краям на мобильных */
  box-sizing: border-box;
  overflow-y: auto;        /* важно! */
}

.modal-content {
  background-color: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  
  /* Адаптив под мобильные */
  max-height: 95vh;           /* не больше 95% высоты экрана */
  overflow-y: auto;           /* прокрутка внутри окна */
  display: flex;
  flex-direction: column;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.close:hover { color: #000; }

.modal-content h2 { margin-top: 0; }
.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

.submit-btn {
    background: #1b1b1b;        /* красный цвет под твой бизнес */
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.quote-btn {
    background: #ba1212;
    /* background: #ac9369; */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 900;
    padding: 10px 10px;
    width: 200px;
    height: 50px;
    margin-top: 25px;
    cursor: pointer;
}

.quote-btn:hover {
  color: rgb(0, 0, 0);
  transform: translateY(-2px);
  transition: all 0.4s ease;
}













.block.contactUs {
   display: block;
   width: 100%;
}

.block.contactUs form{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}


.block__contactUs__info {
  display: flex;
  margin-bottom: 50px;
  justify-content: space-between;
}

.item__contactUs {
  display: flex;
  align-items: center;
  width: 49%;
}

.item__contactUs img {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  filter: brightness(0) saturate(100%) invert(18%) sepia(86%) saturate(3707%) hue-rotate(355deg) brightness(75%) contrast(94%);
}

.wrapper__contactUs {
  margin-left: 10px;
}

.wrapper__contactUs p:first-child {
  font-size: 20px;
  font-weight: 900;
}

.input__username {
  width: 49%;
  padding: 10px;
  border-radius: 5px;  
  background-color: rgba(224, 224, 224, 0.199);
}

.input__email {
  width: 49%;
  padding: 10px;
  border-radius: 5px;  
  background-color: rgba(224, 224, 224, 0.199);
}

.input__subject {
  width: 100%;
  padding: 10px;  
  border-radius: 5px; 
  background-color: rgba(224, 224, 224, 0.199);
}

.contactUs__button {
  color: #ac9369;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contactUs__button:hover{
  color: rgb(255, 255, 255);
  transform: translateY(-2px);
  transition: all 0.4s ease; 
}





.pre__footer {
  background-color: #000000;
  color: #eee6cd;
  padding-bottom: 0;
}

.img__logo {
  width: 300px;
}

.item p img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(86%) saturate(3707%) hue-rotate(355deg) brightness(75%) contrast(94%);
}

.item p {
  margin-bottom: 10px;
}

.item p span {
  margin-left: 100px;
}
















footer .container {
  padding: 10px 0;
  font-weight: 900;
}















/* ==================== Адаптив ==================== */

/* Hamburger */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: red;
  border-radius: 3px;
}

/* Мобильная версия */
@media (max-width: 1200px) {
  .container__header {
    padding: 0 40px;
  }

  section {
    padding: 0 40px;
  }
  .section__gallery  {
    padding: 0 20px;
  }
  .section__carousel {
    padding: 0;
  }
}


@media (max-width: 992px) {
  .header-list a {
    font-size: 14px;
  }

  li, ol {
    margin-left: 15px;
  }
}

@media (max-width: 870px) {
  .header-list a {
        font-size: 13px;
    }

  .header-social img {
    width: 20px;
    height: 20px; 
  }

  .image {
    margin-left: 10px;
  }

  .image__logo {
    max-width: 170px;
  }

   li, ol {
    margin-left: 10px;
  }
}

@media (max-width: 768px) {

  .header-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
  }

  li:first-child {
    margin-left: 10px
  }

  .header-social img {
    width: 28px;
    height: 28px; 
  }

  .image__logo {
    max-width: 180px;
  }

  .image {
    margin-left: 15px;
  }

  .nav-toggle:checked ~ .header-list {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .aboutUs__block__img {
    display: none;
  }

  .aboutUs__block__text {
    width: 100%;
  }

  .aboutUs__block__text p {
    padding: 12px 10px;
  }

  .aboutUs__block__text h3 {
    margin: 20px 0px 0px 0;
  }

  .indicators {
    gap: 0px;
  }

  .indicators li{
    padding: 0px 5px;
    font-size: 15px;
  }
  
}

@media (max-width: 680px) {

  header {
    background-position: 70% center;
  }
  
  .container__header button {
    background-color: #ba1212;;
    color: white;
  }

  .section__gallery h2 {
    padding: 0;
  }
  .indicators  {
    top: 70px;
    gap: 0px;
  }
  .indicators li{
    padding: 0px 3px;
    font-size: 14px;
  }

  .slider-item {
    width: 300px;
    height: 300px;
  }


  .block__contactUs__info {
    margin-bottom: 30px;
  }

  .item__contactUs img {
    width: 20px;
    height: 20px;
  }

  .wrapper__contactUs p:first-child {
    font-size: 15px;
  }



}

@media (max-width: 470px) {

  .item__contactUs:first-child {
    margin-bottom: 20px;
  }

  .block__contactUs__info {
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  input {
    margin-bottom: 25px;
  }

  textarea {
    margin-bottom: 25px;
  }

  .item__contactUs{
    width: 100%;
  }
  
  .input__username {
    width: 100%;
  }

  .input__email {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .container__nav {
    padding: 10px 10px;
  }
  .header-social img {
    width: 22px;
    height: 22px; 
  }

  .image__logo {
    max-width: 170px;
  }

  .hamburger {
    width: 20px;
  }

  .indicators li{
    font-size: 14px;
  }
}
