
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #f9f9f9;
  color: #111;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrapper > *:not(.footer) {
  flex: 0 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  color: #000;
  transform: translateY(-3px);
}

.auth-btn {
  background-color: #111;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-btn:hover {
  background-color: #333;
  transform: translateY(-2px);
}

.hero a button {
  position: relative;
  overflow: hidden;
  width: 200px; 
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background-color: #111;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1;
}


.hero a button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.1); /* полупрозрачный эффект заливки */
  z-index: 0;
  animation: slide-fill 2s linear infinite;
}

.hero a button span {
  position: relative;
  z-index: 2;
}

@keyframes slide-fill {
  from {
    left: -100%;
  }
  to {
    left: 100%;
  }
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: #fff;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.hero p {
  max-width: 400px;
  margin: 0.5rem 0 1.5rem;
}

.hero button {
  background: #111;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.advantages, .vehicles {
  padding: 2rem;
  background: #f0f0f0;
}

.advantages h2, .vehicles h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.adv-list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.adv-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.adv-item h3 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.adv-item p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.hero-car-2 {
  position: absolute;
  width: 520px;
  height: 350px;
  top: 113px;
  right: 90px;
  user-select: none;
}

.hero-car {
  position: absolute;
  width: 450px;
  height: 400px;
  top: 93px;
  left: 100px;
  user-select: none;
}

.hero-car,
.hero-car-2 {
  opacity: 0;
  transform: translateX(-200%);
  transition: all 0.9s ease;
}

.hero-car-2 {
  transform: translateX(200%);
}

.hero-car.animate,
.hero-car-2.animate {
  opacity: 1;
  transform: translateX(0);
}

.footer {
  margin-top: auto;
  background-color: #f8f8f8;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #ddd;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer nav {
  margin-top: 10px;
}

.footer nav a {
  margin: 0 10px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer nav a:hover {
  color: #000;
}
.profile-menu {
  position: relative;
  display: inline-block;
}


header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  color: #000;
  transform: translateY(-3px);
}

.auth-btn {
  background-color: #111;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-btn:hover {
  background-color: #333;
  transform: translateY(-2px);
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}


.modal-overlay.show {
  display: flex;
}

.modal-window {
  background: #fff;
  width: 50vw;
  height: 50vh;
  padding: 1rem;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}