body { margin: 0; font-family: sans-serif; overflow-x: hidden; background-image: url('../картинки/фон.jpg'); font-family: sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: #f4f4f4; background-size: cover; background-position: center; } .container { position: relative; width: 100%; overflow: hidden; /* Скрываем переполнение для закругления */ } .background-image { width: 100%; height: 400px; /* Высота фона */ background-size: cover; background-position: center; border-radius: 10px; /* Закругленные углы */ min-height: 100vh } .content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; z-index: 1; /* Помещаем текст поверх изображения */ } .content h2 { font-size: 36px; margin-bottom: 10px; color: #fff; } h4 { font-size: 28px; margin-bottom: 10px; color: #fff; } p { font-size: 24px; margin-bottom: 10px; color: #fff; } header { background-color: transparent; padding: 20px; display: flex; align-items: center; justify-content: space-between; position: absolute; /* Помещаем меню поверх изображения */ top: 20px; /* Отступ сверху */ left: 20px; /* Отступ слева */ z-index: 2; /* Помещаем меню поверх текста */ justify-content: space-between; width: 95% } .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); } .dropdown { position: relative; margin-left: 20px; } .dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; } .dropdown-content a { color: #333; padding: 12px 16px; text-decoration: none; display: block; } .dropdown-content a:hover { background-color: #f1f1f1; } .dropdown:hover .dropdown-content { display: block; } .icon { margin-left: 20px; cursor: pointer; } .icon img { width: 30px; height: 30px; } /* Стили для фонов */ section { padding: 50px; text-align: center; min-height: 100vh; } .data_foot { display: flex; flex-direction: column; align-items: center; gap: 5px; } hr { width: 100%; border: 1px solid #D1D1D1; } .i:hover svg path { fill: #D1D1D1; } .scroll-to-top { position: fixed; bottom: 20px; right: 20px; display: none; z-index: 10; cursor: pointer; } .scroll-to-top img { width: 50px; } .container { background-color: #fff; padding: 40px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); width: 350px; background-color: rgba(255, 255, 255, 0.8); } h2 { text-align: center; margin-bottom: 20px; color: #333; } p { text-align: center; margin-bottom: 20px; color: #333; } input[type="email"], input[type="password"] { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="kod"] { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } button { background-color: #444444; color: #fff; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; width: 100%; } button:hover { background-color: #6e6e6e; } .register-link { text-align: center; margin-top: 15px; color: #333; } .register-link a { color: #444444; text-decoration: none; } 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, #ffffff, #ffffff, #ffffff); /* Градиент */ transform: scaleX(0); transition: transform 0.3s ease-in-out; } nav a:hover::after { transform: scaleX(1); } .footer-link { position: absolute; 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; } .popup { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(80, 80, 80, 0.7); padding: 20px; border-radius: 5px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); z-index: 1000; text-align: center; } .close-button { position: absolute; top: 10px; right: 10px; cursor: pointer; } .register-link { text-align: center; margin-top: 15px; color: #333; } .register-link a { color: #007bff; text-decoration: none; } 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, #bebebe, #3a3a3a, #bebebe); transform: scaleX(0); transition: transform 0.3s ease-in-out; } nav a:hover::after { transform: scaleX(1); } .profile-picture .upload-wrapper { position: relative; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; /* Скрывает лишнюю часть изображения */ margin: 0 auto; /* Центрирование по горизонтали */ } .profile-picture img { width: 100%; height: 100%; background-color: #444444; object-fit: cover; border-radius: 50%; /* Делаем изображение круглым */ } .profile-picture .upload-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.5); border-radius: 50%; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; cursor: pointer; } .profile-picture .upload-icon i { color: white; font-size: 1.5em; }