body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-image: url("../картинки/фон.jpg"); } .shapka { margin: 0 auto; background-color: #22242B; } .container { width: 70%; height: auto; margin: 20px auto; padding: 20px; background-color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border-radius: 5px; } h1 { text-align: center; margin-bottom: 30px; color: #333; } h2 { margin-top: 30px; color: #333; } ul { list-style: none; padding: 0; margin-bottom: 20px; } li { margin-bottom: 10px; } .contact-info, .payment-details { margin-bottom: 30px; } .contact-info ul, .payment-details ul { padding-left: 20px; } a { color: #007bff; text-decoration: none; } a:hover { text-decoration: underline; } /* Стиль для скрытого блока с контактами сотрудников */ #staff-contacts { background-color: #f0f0f0; padding: 15px; border: 1px solid #ddd; border-radius: 5px; } * { padding: 0; margin: 0; box-sizing: border-box; border: none; outline: none; scroll-behavior: smooth; } html { scroll-behavior: smooth; font-family: 'Tac', sans-serif; } a { text-decoration: none; font-family: 'Tac', sans-serif; font-size: 0.875rem; font-weight: 400; color: white; } header { display: flex; justify-content: space-between; align-items: center; padding: 33px 0; } .big_con { width: 1475px; margin: 0 auto; } .logo { display: flex; justify-content: space-between; align-items: center; } .line { border: 1px solid #444444; height: 30px; margin: 0 20px; } .p18 { font-size: clamp(1rem, 0.75rem + 0.33vw, 1.125rem); font-weight: 700; color: white; } .p16 { font-size: clamp(0.8rem, 0.4rem + 0.53vw, 1rem); font-weight: 400; color: white; } .p14 { font-family: 'Tac', sans-serif; font-size: clamp(0.7rem, 0.35rem + 0.47vw, 0.875rem); font-weight: 400; color: white; } .p15 { font-family: 'Tac', sans-serif; color: black; } .requisites { display: flex; justify-content: space-between; align-items: center; color: white; } .requisites .p18 { color: #444444; cursor: pointer; } .requisites img { padding-right: 16px; } .requisites .line { margin: 0 70px; } .opacity { position: relative; background: none; border: none; cursor: pointer; width: 310px; height: 40px; display: flex; justify-content: space-around; align-items: center; border: 1px solid white; background-color: rgba(255, 255, 255, 0); transition: all ease 0.3s; cursor: pointer; } .opacity:hover { background-color: #5585ff; } .arrow svg { width: 9px; display: flex; justify-content: center; transition: all ease 0.3s; } .opacity:hover svg path { stroke: white; } .location { display: flex; flex-direction: column; align-items: flex-start; background-color: rgba(48, 54, 58, 0.85); padding: 80px 33px; gap: 20px; position: absolute; top: 2px; left: 230px; } .location .logo { flex-direction: column; align-items: flex-start; gap: 20px; } .location .line { display: flex; align-items: flex-start; border: 1px solid #444444; width: 125px; height: 0px; margin: 0; } .location .logo p { font-weight: 700; } .location .requisites { flex-direction: column; } .address { display: flex; padding-bottom: 20px; } .location .requisites .p16 { color: #444444; } .mode_work { display: flex; padding-top: 20px; } /*футер*/ .data_foot { display: flex; flex-direction: column; align-items: center; gap: 35px; padding: 77px 200px; } nav { width: 100%; display: flex; justify-content: space-between; align-items: center; } nav a { font-size: 1rem; } .info { width: 100%; display: flex; justify-content: space-between; } .info .p14 { width: 500px; } hr { width: 100%; border: 1px solid #D1D1D1; } .i:hover svg path { fill: #D1D1D1; } @media screen and (max-width: 1440px) { .big_con { width: 1200px; margin: 0 auto; } .title { top: 70px; } .opacity, .orange, .black { width: 220px; } .line { height: 80px; } .requisites .line { margin: 0 20px; } .back_img { width: 100%; } .carts { width: 100%; } .path1 { padding: 0; } .location { padding: 89px 33px; } .location .requisites { align-items: flex-start; } .data_foot { padding: 77px 100px; } } .opacity .arrow { position: absolute; top: 50%; transform: translateY(-50%); right: 10px; } .container { width: 100%; max-width: 2000px; margin: 0 auto; /* Center the container */ position: relative; /* Make the container the parent for absolute positioning */ } .content { position: absolute; top: 5%; left: 20%; padding: 30px; transform: translate(-10%, -10%); color: #fff; margin-top: 100px; /* Внешние отступы сверху 100px */ z-index: 1; /* Помещаем текст поверх изображения */ } .content h2 { font-size: 24px; } h2 { text-align: center; } p { text-align: justify; line-height: 1.6; margin-bottom: 15px; } .info-box { background-color: rgba(160, 160, 160, 0.7); border: 1px solid #ccc; padding: 15px; margin-bottom: 20px; border-radius: 5px; } .info-box h3 { margin-top: 0; } .info-box ul { list-style-type: disc; margin-left: 20px; } .logo { font-size: 24px; font-weight: bold; color: #0022ff; /* Синий цвет */ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Тень */ } nav { display: flex; } nav a { text-decoration: none; color: #faf3f3; padding: 10px 20px; position: relative; margin-left: 20px; } nav a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(to right, #007bff, #663399, #ff0000); /* Градиент */ transform: scaleX(0); transition: transform 0.3s ease-in-out; } nav a:hover::after { transform: scaleX(1); } .icon { margin-left: 20px; cursor: pointer; } .icon img { width: 30px; height: 30px; } /* Стили для фонов */ section { padding: 50px; text-align: center; min-height: 100vh; } .footer-link { position:fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: white; text-decoration: none; font-weight: bold; background-color: #444444; padding: 10px 20px; border-radius: 5px; z-index: 2; } .footer-link:hover { background-color: #6e6e6e; } .scroll-to-top { position: fixed; bottom: 20px; right: 20px; display: none; z-index: 10; cursor: pointer; } .scroll-to-top img { width: 50px; } .car-cards { /* Стили для блока с классом 'car-cards' */ display: flex; /* Использование flexbox для расположения в строку с переносом */ flex-wrap: wrap; /* Перенос элементов на новую строку в случае нехватки места */ justify-content: center; } .car-card { /* Стили для элементов с классом 'car-card' */ position: relative; /* Относительное позиционирование */ margin: 20px; /* Внешние отступы 20px */ overflow: hidden; /* Скрытие содержимого, выходящего за границы */ transition: transform 0.3s; /* Плавное изменение свойства трансформации за 0.3 секунды */ background: rgba(0, 0, 0, 0); /* Цвет фона */ border-radius: 10px; /* Скругление углов 10px */ border-color: #ffffff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Тень */ padding: 10px; /* Внутренние отступы 10px */ display: flex; flex-wrap: wrap; justify-content: center; } .car-card:hover { /* Стили для наведения на элемент с классом 'car-card' */ transform: scale(1.1); /* Увеличение масштаба при наведении */ } .car-card h2, .car-card p { /* Стили для заголовков и параграфов внутри элемента 'car-card' */ color: black; /* Цвет текста */ text-align: center; /* Выравнивание текста по центру */ margin: 5px 0; /* Внешние отступы сверху и снизу 5px, слева и справа 0 */ font-size: 16px; /* Размер шрифта 16px */ } .car-card img { /* Стили для изображения внутри элемента 'car-card' */ width: 80%; /* Ширина 100% */ height: auto; /* Автоматическая высота */ } .car-info { /* Стили для информации об автомобиле */ background-color: rgba(160, 160, 160, 0.7); /* Цвет фона с прозрачностью */ position: absolute; /* Абсолютное позиционирование */ bottom: 0; /* Расположение внизу */ width: 100%; /* Ширина 100% */ text-align: center; /* Выравнивание по центру */ padding: 10px; /* Внутренние отступы 10px */ } .availability { /* Стили для информации о доступности автомобиля */ display: none; /* Начальное скрытие элемента */ position: absolute; /* Абсолютное позиционирование */ bottom: 10px; /* Расположение снизу 10px */ left: 50%; /* Расположение по центру по горизонтали */ transform: translateX(-50%); /* Центрирование по горизонтали */ background-color: rgba(255, 255, 255, 0.7); /* Цвет фона с прозрачностью */ color: rgb(0, 0, 0); /* Цвет текста */ padding: 5px 10px; /* Внутренние отступы 5px сверху и снизу, 10px слева и справа */ border-radius: 5px; /* Скругление углов 5px */ } .car-card:hover .availability { /* Отображение информации о доступности при наведении на элемент 'car-card' */ display: block; /* Показ элемента */ } .popup { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color:rgba(255, 255, 255, 0.9); padding: 20px; border-radius: 5px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); z-index: 1000; text-align: center; width: 400px; max-width: 90%; /* Чтобы окно не выходило за пределы экрана */ } .close-button { position: absolute; top: 10px; right: 10px; cursor: pointer; } .order-button { background-color: #444444; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; } .opacity { position: relative; background: none; border: none; cursor: pointer; width: 310px; height: 40px; display: flex; justify-content: space-around; align-items: center; border: 1px solid white; background-color: rgba(255, 255, 255, 0); transition: all ease 0.3s; cursor: pointer; } .opacity:hover { background-color: #5585ff; } .arrow svg { width: 9px; display: flex; justify-content: center; transition: all ease 0.3s; } .opacity:hover svg path { stroke: white; } .opacity .arrow { position: absolute; top: 50%; transform: translateY(-50%); right: 10px; } .dropdown { display: none; position: absolute; background-color: #5585ff; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); top: 100%; right: 1px; left: 0px; z-index: 2; width: 310px; /* Ширина списка */ } .dropdown a { color: rgb(255, 255, 255); padding: 12px 16px; text-decoration: none; display: block; } .dropdown a:hover { background-color: #ffffff; color: #5585ff; } .opacity:hover .dropdown { display: block; } .close-button { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; } .close-button:hover, .close-button:focus { color: black; text-decoration: none; cursor: pointer; }