/* Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

/* Header */
header {
  background-color: #dceaf3;
  padding: 1em 0;

  color: #333333;
}

header .container {
  display: block;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

header h1 {
  margin-left: 10px;
  font-size: 30px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  justify-content: center;
  margin-right: 5px;
}

nav a {
  text-decoration: none;
  color: #333333;
  font-weight: bold;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2em 0;
  background-image: url(../images/morskayasol.png);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
  color: white; /* если фон тёмный */
  text-align: center;
  height: 700px;
  display: flex;
  align-items: center; /* по вертикали */
  justify-content: center; /* по горизонтали */
  text-align: center;
  position: relative;
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* затемнение */
  z-index: 1;
}
.hero > .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3em;
  margin-bottom: 0.5em;
  color: white;
  text-transform: uppercase;
}
.hero p {
  font-size: 25px;
  max-width: 850px;
  margin: 0 auto;
}

.main-image {
  max-width: 100%;
  height: auto;
  margin-top: 1em;
}

/* Content */
.content,
.content-general {
  padding: 2em 0;
  margin-top: 45px;
  margin-bottom: 45px;
}
.sugar-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  flex: 1 1;
}
.sugar-image {
  max-width: 900px;
  width: 100%;
  flex: 1 1 0;
}
.sugar-image img {
  width: 100%;
  height: auto;
}
.sugar-text {
  flex: 1 1 0;
}
.content p,
.content-general p {
  line-height: 1.6em;
  margin-bottom: 1em;
  font-size: 18px;
  margin: 0;
}
.content-general h3 {
  text-transform: uppercase;
  font-size: 26px;
}

/* Reviews */
.reviews {
  background-color: #50a0c6;
  padding: 2em 0;
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.reviews .container {
  position: relative;
}

.reviews h3 {
  text-align: center;
  color: white;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1em;
}

.review {
  background: #fff;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  text-align: center;
}
.reviews h4 {
  text-align: center;
  text-transform: uppercase;
}

/* Offer */
.offer {
  background-color: #d6ecff;
  padding: 2em 0;
  text-align: center;
}

.price {
  font-size: 1.5em;
  margin: 1em 0;
}

.btn-green {
  background-color: green;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
}

input[type="email"] {
  padding: 10px;
  width: 80%;
  max-width: 300px;
  margin-right: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* Footer */
footer {
  background-color: #dceaf3;
  padding: 1em 0;
  text-align: center;
  color: #333333;
}

footer a {
  color: #333333;
}

.content {
  min-height: calc(100vh - 296px);
}
.content {
  padding: 2em 0;
  background-image: url(../images/lifestyle-tips-hero.jpg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
  color: white;

  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
}
.content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* затемнение */
  z-index: 1;
}

.content > .container {
  position: relative;
  z-index: 2;
}
/* === Фотогалерея === */
.gallery-section {
  padding: 2em 0;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: 1em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
  display: none !important;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}
.contact-section {
  padding: 2em 0;
  background-image: url(../images/about-hero.jpg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
  color: white;

  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
}
.meal-section {
  padding: 2em 0;
  background-image: url(../images/recipe1.jpg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
  color: black;

  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
}
.meal-section h3 {
  text-align: center;
  text-transform: uppercase;
  color: white;
  font-size: 30px;
}

.worckout-section {
  color: black;
}
.worckout-section h3 {
  text-align: center;
  text-transform: uppercase;
  color: white;
  font-size: 30px;
}
.contact-section h2 {
  text-align: center;
  margin-bottom: 45px;
}
.contact {
  display: flex;
  justify-content: space-between;
  gap: 45px;
  align-items: center;
}

.contact-text {
  flex: 1 1 0;
}
.contact-form label {
  display: block;
  margin-bottom: 15px;
  font-size: 25px;
  text-transform: uppercase;
}
.contact-form {
  flex: 1 1 0;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.recipe-card {
  background-color: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease;
  display: flex; /* Flex-контейнер для вертикального выравнивания */
  flex-direction: column; /* Вертикальное направление */
}

.recipe-card:hover {
  transform: translateY(-5px);
}

.recipe-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.recipe-content {
  flex: 1; /* Занимает всю доступную высоту */
  padding: 20px;
}

.recipe-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: #8bc34a; /* Мягкий зеленый цвет */
  margin: 0 0 10px;
}

.recipe-content p {
  font-size: 16px;
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1004px) {
  /* nav {
    display: block !important;
    background-color: #ffd9b3;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
  } */
  .reviews {
    display: block;
  }
  .review {
    margin: 0 auto;
    margin-bottom: 25px;
  }
  .contact {
    display: block;
  }
  .contact-form {
    margin-top: 30px;
  }
  .menu-toggle {
    display: none !important;
    font-size: 30px;
    color: #333;
    float: right;
    cursor: pointer;
  }
  /* nav {
    display: none;
    background-color: #ffd9b3;
    position: absolute;
    top: 112px;
    left: 0;
    width: 100%;
    z-index: 1000;
  } */

  nav.active {
    display: block;
  }

  /* nav ul {
    flex-direction: column;
    background-color: #ffd9b3;
    padding-bottom: 25px;
  } */

  nav li {
    text-align: center;
  }

  .review-track .review {
    flex: 0 0 100%;
  }
  nav a {
    font-size: 13px;
  }

  input[type="email"] {
    width: 100%;

    margin-bottom: 10px;
  }

  .btn-green {
    width: 100%;
    max-width: 250px;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }
  .sugar-section {
    display: block;
  }
}
