/* Сброс стандартных отступов и базовая типографика */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Шапка (Header) и навигация */
header {
  background-color: #222;
  padding: 1rem 0;
}

.navbar {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #f0c040; 
}

.lang-switch button {
  margin-left: 5px;
  background: #444;
  border: none;
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.lang-switch button:hover {
  background: #666;
}

/* Hero-секция */
.hero-section {
  position: relative; /* чтобы работать с .hero-overlay */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: url('https://via.placeholder.com/1200x600?text=Dunav+Brew+Hero') no-repeat center/cover;
  /* Замените на реальное фоновое изображение */
  min-height: 500px;
  padding: 60px 20px;
}

/* Затемняющий оверлей поверх фоновой картинки */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 34, 34, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2; /* Чтобы текст был поверх оверлея */
  text-align: center;
  max-width: 800px;
  color: #fff;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #f0c040;
  color: #222;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s;
}

.cta-btn:hover {
  background-color: #ffdd40;
}

/* Секция "О нас" */
.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  align-items: center;
}

.about-content, .about-animation {
  flex: 1 1 400px;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.about-content p {
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Секция "Продукты" */
.products-section {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  text-align: center;
}

.products-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #222;
}

.product-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.product-card {
  background: #fff;
  border-radius: 5px;
  width: 300px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  text-align: left;
}

.product-card img {
  width: 100%;
  border-radius: 5px 5px 0 0;
}

.product-card h3 {
  margin: 10px;
  font-size: 1.25rem;
  color: #444;
}

.product-card p {
  margin: 0 10px 10px;
  line-height: 1.6;
}

/* CTA-секция */
.cta-section {
  background-color: #f0c040;
  padding: 40px 20px;
  text-align: center;
}

.cta-section .cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* Секция "Контакты" */
.contact-section {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Подвал */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}

/* Адаптивность (для мобильных устройств) */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 10px;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-animation {
    margin-bottom: 20px;
  }

  .nav-links {
    display: none; /* Здесь можно реализовать бургер-меню по желанию */
  }
}
