/* Udovolstviya - Dream Car Website */
/* Color Palette: #262626 (dark), #acbfa4 (sage), #e2e8ce (cream), #ff7f11 (orange), #ff1b1c (red) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #262626;
  background-color: #e2e8ce;
  line-height: 1.6;
}

header {
  background-color: #262626;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 200px;
  height: 100px;
  object-fit: contain;
}

nav ul.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: #e2e8ce;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff7f11;
}

.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropbtn::after {
  content: '▼';
  font-size: 10px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #acbfa4;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px;
  margin-top: 8px;
}

.dropdown-content a {
  color: #262626;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #ff7f11;
  color: #e2e8ce;
}

.dropdown:hover .dropdown-content {
  display: block;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #acbfa4 0%, #e2e8ce 100%);
  border-radius: 8px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3.5rem;
  color: #262626;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  color: #262626;
  font-weight: 300;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 1.5rem;
  color: #262626;
  margin-bottom: 10px;
  font-weight: 600;
}

.product-price {
  font-size: 1.8rem;
  color: #ff7f11;
  font-weight: 700;
  margin-bottom: 15px;
}

.product-description {
  color: #262626;
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ff7f11;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.btn:hover {
  background-color: #ff1b1c;
}

.btn-secondary {
  background-color: #acbfa4;
  color: #262626;
}

.btn-secondary:hover {
  background-color: #ff7f11;
  color: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.news-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-8px);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-title {
  font-size: 1.3rem;
  color: #262626;
  margin-bottom: 10px;
  font-weight: 600;
}

.news-date {
  font-size: 0.85rem;
  color: #acbfa4;
  margin-bottom: 10px;
}

.news-excerpt {
  color: #262626;
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.read-more {
  color: #ff7f11;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  color: #ff1b1c;
}

.about-section {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
  font-size: 2rem;
  color: #262626;
  margin-bottom: 20px;
  border-bottom: 3px solid #ff7f11;
  padding-bottom: 10px;
}

.about-section p {
  color: #262626;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-list {
  list-style: none;
  margin: 20px 0;
}

.about-list li {
  padding: 8px 0;
  color: #262626;
}

.about-list li::before {
  content: '✓ ';
  color: #ff7f11;
  font-weight: bold;
  margin-right: 10px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #262626;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #acbfa4;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #ff7f11;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

footer {
  background-color: #262626;
  color: #e2e8ce;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer a {
  color: #ff7f11;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #e2e8ce;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #acbfa4;
}

.breadcrumb a {
  color: #acbfa4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #ff7f11;
}

.breadcrumb span {
  margin: 0 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 20px;
  }

  nav ul.nav-menu {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

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

  .products-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 20px;
  }

  .about-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 15px 20px;
  }

  .logo {
    width: 150px;
    height: 75px;
  }

  nav ul.nav-menu {
    gap: 10px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  main {
    padding: 20px 10px;
  }
}
