/* Общие стили */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #333;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Верхняя рамка */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000000;
  padding: 3px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  height: 60px;
}

.header-buttons .btn {
  margin-left: 10px;
  padding: 8px 14px;
  background: rgb(255, 208, 0); /* зелёный итальянского флага */
  color: #fff;
  border-radius: 6px;
  transition: 0.3s;
  font-weight: bold;
}

.header-buttons .btn:hover {
  background: rgb(255, 208, 0);
}

/* Герой-карточка на главной */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0, 0, 0, 0.35); /* тёмный налёт для текста */
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4em;
  margin: 0;
  animation: fadeIn 1s ease forwards;
}

.hero .subtitle {
  font-size: 1.8em;
  margin: 10px 0;
  animation: fadeIn 1.5s ease forwards;
}

.hero-buttons .btn {
  margin: 10px;
  padding: 12px 22px;
  background: rgb(255, 208, 0); /* красный итальянского флага */
  color: #fff;
  border-radius: 8px;
  transition: 0.3s;
  font-weight: bold;
}

.hero-buttons .btn:hover {
  background: #cc0000;
}

/* Секция "Про наше кафе" */
.about {
  padding: 50px 20px;
  text-align: center;
  background: #f9f9f9;
}

.about h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
  background: #eee;
  padding: 30px 20px;
  text-align: center;
  font-size: 1em;
}

.footer a {
  color: #008000;
  font-weight: bold;
}

/* Меню */
.menu-hero {
  text-align: center;
  padding: 50px 20px;
  background: #fff;
}

.menu-hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.menu-hero p {
  font-size: 1.5em;
  color: #666;
}

.menu-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.menu-categories button {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  background: #008000;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.menu-categories button:hover {
  background: #006400;
}

.menu-section {
  padding: 20px;
}

.menu-section h2 {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 30px;
}

.menu-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 25px;
  gap: 15px;
  align-items: center;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.menu-item img {
  width: 220px;
  border-radius: 12px;
  flex-shrink: 0;
}

.menu-info {
  flex: 1;
}

.menu-info p {
  margin: 6px 0;
  font-size: 1em;
}

.menu-info .price {
  font-weight: bold;
  font-size: 1.3em;
  color: #ff0000;
}

/* Секция заказа */
.order {
  text-align: center;
  padding: 50px 20px;
  background: #f9f9f9;
}

.order .btn {
  margin: 12px;
  padding: 12px 25px;
  background: #008000;
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.order .btn:hover {
  background: #006400;
}

/* Анимации */
@keyframes fadeIn {
  0% {opacity: 0; transform: translateY(20px);}
  100% {opacity: 1; transform: translateY(0);}
}

/* Адаптивность */
@media(max-width: 1024px){
  .cards, .menu-item {
    flex-direction: column;
    align-items: center;
  }

  .menu-item img {
    width: 90%;
  }
}

@media(max-width: 600px){
  .hero h1 {font-size: 3em;}
  .hero .subtitle {font-size: 1.2em;}
  .menu-categories button {padding: 10px 18px; font-size: 0.9em;}
}
