*{
  padding: 0;
  margin: 0;
  border: 0;
}
:focus,:active{outline:none;}
a:focus,a:active{outline:none;}
nav,footer,header,aside{display: block;}
html,body{
  width: 100%;
  line-height: 1;
  font-size: 10px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
input,button,textarea{font-family: inherit;}
input::-ms-clear{display: none;}
button{cursor: pointer;}
button::-moz-focus-inner{padding: 0;border: 0;}
a,a:visited{text-decoration: none;}
a:hover{text-decoration: none;}
ul li{list-style: none;}
img{vertical-align: top;}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight: 400;}
.h_center h2{
 display: flex;
 width: 100%;
 justify-content: center;
}

html, body {
    overflow-x: hidden; /* Запрещаем горизонтальное переполнение */
    touch-action: manipulation; /* Отключаем резиновый эффект */
}
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url("../images/fon.webp") no-repeat center center fixed; /* Объединяем все свойства фона */
    background-size: cover; /* Масштабируем фон на всю область */
    background-color: rgba(0,0,0,0.8); /* Добавляем полупрозрачный чёрный фон */
    background-blend-mode: multiply; /* Смешиваем слои */
    height: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    cursor: url(../images/cursor.cur) 4 1, pointer;
    font-family: Helvetica, Arial, sans-serif;
    color: silver;
    scroll-behavior: smooth;
}
body h1 {
  font-size:calc(18px + 10 * (100vw - 320px) / 1280);
  text-align: center;
  margin-top: 3%;
}
body h2{   
  font-size:calc(15px + 7 * (100vw - 320px) / 1280);
  margin-top: 2%;
}
body h3{   
  font-size:calc(12px + 4 * (100vw - 320px) / 1280);
  margin-top: 1%;
}
body a{
  color: #90CAF9;
}
description, select, input, label, a, p, ul, ol, li, figcaption, .serv ul, .serv ul li, .desc li{
  font-size: calc(12px + 4 * (100vw - 320px) / 1280);
}
p, ol, li{
  margin-top: 5px;
}
p{
  text-align: justify;
}
main{
  display: flex;
  flex-direction: row; 
  justify-content: space-between;
  margin-top: 100px;
  scroll-behavior: smooth;
}

article{
  display: flex;
  flex-direction: column;
  max-width: 60%;  
}
section{
  width: 100%;
  scroll-margin-top: 150px;
}
@media screen and (max-width: 900px) {   
  body{
    max-width: 90%;
  }
  article{
   max-width: 100%;
  }  
}  
.header_text{  
  text-align: center;   
}
.main_image{
  height: calc(160px + 300 * (100vw - 320px) / 1280);
  background:url(../images/engine.webp);
  background-repeat: no-repeat;
  background-position: center;    
  background-size: contain;
  margin-top: 20px;
}
.engine{
  color: red;
}
#back-to-top-btn {
  position: fixed;
  bottom: 50px;
  right: 10px;
  z-index: 9999;
  display: none;
  background-color: rgba(0, 0, 0, 0.2);
  font-size: 36px; /* Большой размер стрелки */
  color: #2196f3; /* Приятный синий оттенок */
  text-shadow: 0 2px 4px rgba(255, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.3s ease-in-out; /* Мягкая анимация */
}

#back-to-top-btn:hover {
  transform: translateY(-5px); /* При наведении чуть приподнимает стрелку */
}

#back-to-top-btn.show {
  display: block;
}



.engine_to_auto {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центральное выравнивание по горизонтали */
    width: 100%;
}

.engine_to_auto_block {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 800px; /* Максимальная ширина блока */
    margin: 30px auto; /* Центрируем блок по горизонтали */
}

.engine_to_auto_block ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.engine_to_auto_block li{
  display: flex;
  justify-content: center;
}

.engine_to_auto_block li a {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10%;
    box-shadow: 0 4px 6px rgba(0, 128, 255, 1.0);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    width: 80%;
    padding: 10px;
    margin: 10px 0; /* Небольшой отступ между элементами */
}

.engine_to_auto_block li a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(255, 0, 0, 0.4);
}

.engine_to_auto_block h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.engine_to_auto_block h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    scroll-margin-top: 150px;
}

.car_foto_description{
  width: 100%;
  margin-top: 30px;
}
.car_foto_url_block{
  
 margin: 20px;
 scroll-margin-top: 150px;
}
.car_foto_url_block img{
  float: left; /* Изображение плавающее слева */
  width: calc(300px + 100 * (100vw - 320px) / 1280);
  height: auto;
}
.car-description-block {
    clear: both; /* Чтобы текст не продолжал обтекание после блока с изображением */
}


.yandex_icon{
  width: calc(44px + 44 * (100vw - 320px) / 1280);
  height: calc(16px + 15 * (100vw - 320px) / 1280);
  margin-left: 20px;
  margin-top: 10px;
}






