@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lobster&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
}

p {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.header {
  border-bottom: 2px solid rgb(225 225 225);
}

.container {
  max-width: 1320px;
  /* padding: 0 20px; */
  margin-left: auto;
  margin-right: auto;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 25px 0;
}

.logo {
  font-family: "Lobster";
  font-style: normal;
  font-weight: 400;
  font-size: 24px;

  color: #000000;
}

.logo span {
  color: #ff7426;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 60px;
}

.nav__link {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: -0.02em;

  color: #000000;
}

.socials {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* ! WELCOME SECTION ! */

.welcome .container {
  background-image: url("./images/bg_img.png");

  background-size: cover; /* Чтобы картинка не сжималась, а обрезалась красиво */
  background-position: center; /* Выровнять справа, как в макете */
  background-repeat: no-repeat;

  min-height: 659px;
  margin-top: 40px;
  margin-bottom: 162px;

  display: flex;
  align-items: center;
}

.inner__content {
  position: relative;

  max-width: 520px;
  margin-left: 50px;
}

.welcome .inner__content::before {
  content: "";
  position: absolute;

  top: 5px;
  left: 530px;

  background-image: url("./images/badge_like.svg");
  width: 150px;
  height: 150px;
  background-repeat: no-repeat;
}

.hot__recipes {
  display: inline-flex;

  padding: 16px 20px 15px 20px;
  margin-bottom: 32px;
  border-radius: 30px;
  background-color: #fff;

  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;

  color: #000000;

  border: 1px solid transparent;

  transition: background-color 0.5s ease, border-color 0.5s ease,
    box-shadow 0.5s;
}

.hot__recipes:hover {
  background-color: #f4f4f4;
  border-color: #d5d5d535;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.hot__recipes::before {
  content: "";
  background-image: url("./images/recipes_paper_in_button.svg");
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  margin-right: 13px;
}

.welcome__title {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 57px;
  line-height: 62px;
  letter-spacing: -0.04em;
  margin-bottom: 24px;

  color: #000000;
}

.welcome__desc {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 30px;

  color: rgba(0, 0, 0, 0.6);
}

.badge__wrapper {
  display: flex;
  gap: 16px;
  margin-bottom: 104px;
}

.badge {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 30px;

  background: #dbedf1;

  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: -0.02em;
  cursor: default;

  padding: 12px 16px;

  color: rgba(0, 0, 0, 0.6);

  display: flex;
  align-items: center;
}

.badge-time::before {
  content: "";
  display: inline-block;
  background-image: url("./images/timer.png");
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  margin-right: 10px;
}

.badge-fork_and_knife::before {
  content: "";
  display: inline-block;
  background-image: url("./images/fork_and_knife.png");
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  margin-right: 10px;
}

.john__and__button-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.john__card {
  display: flex;
  gap: 16px;
}

.john__img {
  width: 50px;
  height: 50px;
}

.john__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.date {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;

  color: rgba(0, 0, 0, 0.6);
}

.view__recipes__button {
  background: #000000;
  border-radius: 16px;

  padding: 21px 37px;
  padding-bottom: 20px;

  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;

  transition: transform 0.35s ease, box-shadow 0.25s ease;
}

.view__recipes__button:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.view__recipes__button::after {
  content: "";
  display: inline-block;
  background-image: url("./images/play_circle_in_button.png");
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  margin-left: 17px;
}

.nav__list a {
  transition: all 0.4s;
}

.nav__list a:hover {
  opacity: 0.7;
}

/* ! CATEGORIES SECTION  ! */

.categories .container {
  min-height: 350px;
  margin-bottom: 183px;
}

.categories__text {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 48px;
  letter-spacing: -0.04em;
  color: #000000;
}

.category__btn {
  background: #e7fafe;
  border-radius: 16px;
  padding: 21px 27px;

  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;

  border: 1px solid transparent;

  transition: background-color 0.5s ease, border-color 0.5s ease,
    box-shadow 0.5s;
}

.category__btn:hover {
  background-color: #ccf7ff;
  border-color: #d5d5d526;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* 
border: 1px solid transparent;

  transition: background-color 0.5s ease, border-color 0.5s ease,
    box-shadow 0.5s;
}

.hot__recipes:hover {
  background-color: #f4f4f4;
  border-color: #d5d5d535;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
} */

.category__card-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;

  margin-top: 80px;
}

.category__card-wrapper .card-1::before {
  content: "";
  background-image: url("./images/first_category.png");

  width: 180px;
  height: 202px;

  background-repeat: no-repeat;
  background-position: center;

  transition: transform 0.5s, box-shadow 0.5s;
}
.category__card-wrapper .card-2::before {
  content: "";
  background-image: url("./images/second_category.png");

  width: 180px;
  height: 202px;

  background-repeat: no-repeat;
  background-position: center;

  transition: transform 0.5s;
}
.category__card-wrapper .card-3::before {
  content: "";
  background-image: url("./images/third_category.png");

  width: 180px;
  height: 202px;

  background-repeat: no-repeat;
  background-position: center;

  transition: transform 0.5s;
}
.category__card-wrapper .card-4::before {
  content: "";
  background-image: url("./images/fourth_category.png");

  width: 180px;
  height: 202px;

  background-repeat: no-repeat;
  background-position: center;

  transition: transform 0.5s;
}
.category__card-wrapper .card-5::before {
  content: "";
  background-image: url("./images/fifth_category.png");

  width: 180px;
  height: 202px;

  background-repeat: no-repeat;
  background-position: center;

  transition: transform 0.5s;
}
.category__card-wrapper .card-6::before {
  content: "";
  background-image: url("./images/sixth_category.png");

  width: 180px;
  height: 202px;

  background-repeat: no-repeat;
  background-position: center;

  transition: transform 0.5s;
}

.category__card:hover::before {
  transform: scale(1.03);
}

.category__card {
  position: relative;

  display: flex;
  justify-content: center;
}

.card__title {
  position: absolute;
  bottom: 30px;

  font-weight: 600;
  font-size: 18px;
  text-align: center;

  color: #000000;
}

/* ! SIMPLE AND TASTY RECIPES SECTION ! */

.simple__recepies .container {
  margin-bottom: 143px;
}

.simple__recepies__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 96px;
}

.recepies__desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  max-width: 610px;
  color: rgba(0, 0, 0, 0.6);
}

.recipes__cards__wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

/* --- сама карточка --- */
.recipe__card {
  position: relative;
  display: flex;
  cursor: pointer;

  width: 100%; /* тянется по ширине контейнера */
  max-width: 400px; /* но на больших экранах не шире 400px */
}

/* --- фон-картинка через before, РЕЗИНОВЫЙ --- */
.recipe__card::before {
  content: "";
  display: block;

  width: 100%;
  aspect-ratio: 400 / 434; /* то же соотношение сторон, что и раньше */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* важно: подрезаем, а не растягиваем */
  border-radius: 24px;

  transition: transform 0.5s, box-shadow 0.5s;
}

/* подставляем картинки для каждого рецепта */
.recipe-card-1::before {
  background-image: url("images/1st_recipe.png");
}
.recipe-card-2::before {
  background-image: url("images/2nd_recipe.png");
}
.recipe-card-3::before {
  background-image: url("images/3rd_recipe.png");
}
.recipe-card-4::before {
  background-image: url("images/4th_recipe.png");
}
.recipe-card-5::before {
  background-image: url("images/5th_recipe.png");
}
.recipe-card-6::before {
  background-image: url("images/7th_recipe.png");
}

/* hover-эффект */
.recipe__card:hover::before {
  transform: scale(1.02);
}

/* текст и бейджи остаются поверх фоновой картинки */
.recipe__card__title {
  /* position: absolute;
  bottom: 80px;
  left: 24px;
  right: 24px;
  max-width: 100%; */

  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.04em;
  max-width: 280px;
}

.badges__wrapper {
  /* position: absolute; */
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  /* bottom: 32px;
  left: 24px; */
}

.recipe__card__time {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.6);
  cursor: default;
}

.recipe__card__time::before {
  content: "";
  display: inline-block;
  background-image: url("./images/timer.png");
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  margin-right: 10px;
}

.recipe__card__fork-knife {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.6);
  cursor: default;
}

.recipe__card__fork-knife::before {
  content: "";
  display: inline-block;
  background-image: url("./images/fork_and_knife.png");
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  margin-right: 10px;
}

.recipe__card__time,
.recipe__card__fork-knife {
  display: flex;
  align-items: center;
}

.recipe__card__content {
  position: absolute;
  inset: 0; /* растянуть на всю карточку */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* текст и бейджи внизу карточки */
  padding: 24px;
}

/* ! HAPPY CHEF SECTION ! */

.happy__chef .container {
  display: flex;
  align-items: center;
  margin-bottom: 150px;
  justify-content: space-between;
}

.happy__chef__text {
  max-width: 572px;
}

.happy__chef__title {
  line-height: 55px;
  margin-bottom: 24px;
  max-width: 450px;
}

.happy__chef__desc {
  max-width: 545px;
  margin-bottom: 72px;

  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;

  color: rgba(0, 0, 0, 0.6);
}

.subtitle__desc {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;

  color: rgba(0, 0, 0, 0.6);
}

.happy__chef__btn {
  background: #000000;
  border-radius: 16px;
  padding: 22px 53px;
  display: inline-block;

  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 14px;

  color: #ffffff;
  transition: transform 0.35s ease, box-shadow 0.25s ease;
}

.happy__chef__btn:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.happy__chef__img {
  width: 710px;
  height: 600px;
}

/* ! TRY RECIPE SECTION ! */

.try__recipe .container {
  margin-bottom: 160px;
}

.try__recipe__text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
}

.try__recipe__main__title {
  max-width: 507px;
  line-height: 55px;
}

.try__recipe .try__recipe__desc {
  max-width: 460px;
  text-align: start;
}

.try__recipe__cards__wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.try__recipe__card {
  max-width: 290px;
  display: flex;
  flex-direction: column;
}

.try__recipe__title {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 24px;
  max-width: 185px;

  color: #000000;
}

.try__recipe__img {
  margin-bottom: 16px;
  cursor: pointer;

  transition: all 0.5s;
}

.try__recipe__img:hover {
  transform: scale(1.02);
}

.try__recipe__card__text {
  display: flex;
  flex-direction: column;
  flex: 1; /* тянем текстовый блок на всю оставшуюся высоту */
}

.try__recipe__badges__wrapper {
  display: flex;
  gap: 24px;

  margin-top: auto; /* ВОТ это key: толкает бейджи к низу текста/карточки */
}

.recipe__card__time {
  display: flex;
  align-items: center;
}

.recipe__card__fork-knife {
  display: flex;
  align-items: center;
}

/* ! INBOX SECTION ! */

.subscribe-form {
  display: flex;
  align-items: center;
  max-width: 480px;
  min-width: 480px;
  height: 80px;

  background: #ffffff;
  border-radius: 24px;

  padding-left: 24px;
  padding-right: 6px;

  border: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Обводка вокруг ВСЕГО блока, когда курсор в инпуте */
.subscribe-form:focus-within {
  border-color: #000000;
}

/* Сам инпут — без рамок */
.subscribe-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;

  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont;
  font-size: 14px;
  color: #000000;
}

.subscribe-input::placeholder {
  color: #9f9f9f;
}

/* Кнопка внутри той же «пилюли» */
.subscribe-btn {
  border: none;
  outline: none;
  cursor: pointer;

  background: #000000;
  color: #ffffff;

  padding: 22px 46px;
  border-radius: 16px;

  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont;
  font-weight: 600;
  font-size: 14px;

  transition: background-color 0.25s ease, transform 0.2s ease;
}

.subscribe-btn:hover {
  background-color: #151515;
  transform: translateX(2px);
}

.subscribe-btn:focus {
  outline: none;
}

.inbox .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 160px;
  background-image: url("images/inbox_img.png");
  min-height: 445px;
  background-repeat: no-repeat;
  background-position: center;
}

.inbox__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 64px;
}

.inbox__title {
  margin-bottom: 18px;
}

.subtitle__desc {
  max-width: 620px;
  text-align: center;
}

/* ! FOOTER ! */

.inner__footer__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.footer__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__text__desc {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;

  color: rgba(0, 0, 0, 0.6);
}

.footer__nav {
  display: flex;
  gap: 60px;
}

.footer__nav__link {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: -0.02em;

  color: #000000;

  transition: all 0.4s;
}

.footer__nav__link:hover {
  opacity: 0.8;
}

.copyright-socials__wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 48px 0;
}

.copytight__title {
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  letter-spacing: -0.02em;

  color: rgba(0, 0, 0, 0.6);
}

.footer__socials {
  position: absolute;
  right: 0;
  display: flex;
  gap: 40px;
}

/* ! БУРГЕР МЕНЮ */

.header-right {
  display: none; /* прячем на десктопе */
  align-items: center;
  margin-left: 24px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 900;
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .main {
  filter: blur(3px);
}

body.menu-open {
  overflow: hidden;
}

.burger {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
}

.burger__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background-color: #000000;
  transition: transform 0.25s, opacity 0.25s, top 0.25s, bottom 0.25s;
}

.burger__line:nth-child(1) {
  top: 0;
}

.burger__line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger__line:nth-child(3) {
  bottom: 0;
}

body.menu-open .burger__line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

body.menu-open .burger__line:nth-child(2) {
  opacity: 0;
}

body.menu-open .burger__line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.recipe__card__content {
  align-items: center;
  text-align: center;
  padding-bottom: 35px;
}

.recipe__card__title {
  margin-bottom: 15px;
}

.subscribe-btn-mobile {
  display: none;
}

/* ! ВТОРАЯ СТРАНИЦА ! */

.recipes__welcome {
}

.recipes__welcome .container {
  margin-top: 50px;
  margin-bottom: 80px;
}

.recipes__welcome__title {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 50px;
  line-height: 77px;
  letter-spacing: -0.04em;
  margin-bottom: 37px;

  color: #000000;
}

.info__recipes__wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.divider__vertical {
}

.prep__time__recipes__info {
}

.prep__time__recipes__text {
  display: flex;
  align-items: center;
}

.prep__time__recipes__text::before {
  content: "";
  display: inline-block;
  background-image: url("./images/timer.png");
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  margin-right: 16px;
}

.cook__time__recipes__text {
  display: flex;
  align-items: center;
}

.cook__time__recipes__text::before {
  content: "";
  display: inline-block;
  background-image: url("./images/timer.png");
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  margin-right: 16px;
}

.prep__time__recipes__inner__text {
}

.prep__time__recipes__title,
.cook__time__recipes__title {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.03em;

  color: #000000;
}

.prep__time__recipes__subtitle,
.cook__time__recipes__subtitle {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;

  color: rgba(0, 0, 0, 0.6);
}

.cook__time__recipes__info {
}

.cook__time__recipes__text {
}

.cook__time__recipes__title {
}

.cook__time__recipes__subtitle {
}

.category__info {
  display: flex;
  align-items: center;
}

.category__info::before {
  content: "";
  display: inline-block;
  background-image: url("./images/fork_and_knife.png");
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  margin-right: 16px;
}

.category__info__title {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;

  color: rgba(0, 0, 0, 0.6);
}

.main__recipe__wrapper {
  display: flex;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 70px;
}

.main__recipe {
  max-width: 750px;
}

.recipe__table {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 30px;

  background-color: #e7fafe;
}

.recipe__table__title {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.03em;
  margin-bottom: 8px;

  color: #000000;
}

.recipe__table__row {
  display: flex;
  justify-content: space-between;

  padding-bottom: 16px;
  border-bottom: 1px solid #bcbcbc94;
}

.recipe__table__row__title {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 17px;

  letter-spacing: 0.03em;

  color: rgba(0, 0, 0, 0.6);
}

.recipe__table__row__number {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 17px;

  letter-spacing: 0.03em;

  color: #000000;
}

.recipe__table__bottom__desc {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  text-align: center;

  color: rgba(0, 0, 0, 0.6);

  margin-top: auto;
}

.divider__horizontal {
}

/* .additional__desc {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;

  color: rgba(0, 0, 0, 0.6);
} */

/* ============ INGREDIENTS SECTION ============ */

.ingredients-section {
  margin-bottom: 80px;
}

.ingredients-layout {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

/* Левая колонка */

.ingredients-left {
  flex: 1 1 60%;
}

.ingredients-title {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 36px;
  color: #000000;

  margin-bottom: 32px;
}

.ingredients-group + .ingredients-group {
  margin-top: 40px;
}

.ingredients-group-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 24px;
}

.ingredients-list {
  list-style: none;
}

/* Строка ингредиента */

.ingredients-item {
  border-bottom: 1px solid #ececec;
}

.ingredients-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  cursor: pointer;
}

/* чекбокс скрываем */
.ingredients-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* кастомный кружок */

.ingredients-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #cfcfcf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* внутренний кружок при checked (делаем через box-shadow) */
.ingredients-checkbox:checked + .ingredients-custom {
  background-color: #000000;
  border-color: #000000;
}

/* текст ингредиента */

.ingredients-text {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #111111;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* зачёркиваем и сереем, если чекбокс включен */

.ingredients-checkbox:checked ~ .ingredients-text {
  color: rgba(0, 0, 0, 0.3);
  text-decoration: line-through;
}

/* Правая колонка */

.ingredients-right {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.other-recipes-title {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 32px;

  color: #000000;
}

.other-recipes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.other-recipes-item {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.other-recipes-thumb {
  width: 96px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.other-recipes-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.other-recipes-name {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.other-recipes-author {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
}

/* Большой баннер */

.other-recipes-banner img {
  display: block;
  width: 89%;
  border-radius: 24px;
  object-fit: cover;
}
/* Контейнер одного чекбокса */
.ingredients-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

/* Прячем стандартный чекбокс */
.ingredients-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Наш кастомный кружок */
.ingredients-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

/* .ingredients-checkbox:checked + .ingredients-custom {
  background: #000;
  border-color: #000;
} */

/* Рисуем галочку */
.ingredients-checkbox:checked + .ingredients-custom::after {
  content: "✓";
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

/* !!!!!!!!!!!!! */

/* ============ DIRECTIONS SECTION ============ */

.directions-section {
  margin-bottom: 140px;
}

.directions-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.directions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.directions-item {
  padding: 24px 0 32px;
  border-bottom: 1px solid #efefef;
}

.directions-item:last-child {
  border-bottom: none;
}

/* чекбокс + заголовок шага */

.directions-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 16px;
}

.directions-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.directions-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.2s ease;
}

/* активный чекбокс */

.directions-checkbox:checked + .directions-custom {
  background: #000;
  border-color: #000;
}

.directions-checkbox:checked + .directions-custom::after {
  content: "✓";
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}

/* текст заголовка шага */

.directions-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

/* при отмеченном шаге заголовок чуть бледнее и зачёркнут */

.directions-checkbox:checked + .directions-custom + .directions-header {
  color: rgba(0, 0, 0, 0.35);
  text-decoration: line-through;
}

/* основной текст шагов */

.directions-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  max-width: 780px;
  margin-bottom: 14px;
}

/* картинка внутри первого шага */

.directions-image {
  margin: 22px 0 22px;
}

.directions-image img {
  display: block;
  width: 100%;
  max-width: 780px;
  border-radius: 24px;
  object-fit: cover;
}

/* лёгкий ховер на чекбокс */

.directions-label:hover .directions-custom {
  border-color: #444;
}

/* !!!!!!! */

/* ============ DIRECTIONS SECTION ============ */

.directions-section {
  margin-bottom: 100px;
}

.directions-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.directions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.directions-item {
  padding: 24px 0 32px;
  border-bottom: 1px solid #efefef;
}

.directions-item:last-child {
  border-bottom: none;
}

/* чекбокс + заголовок шага */

.directions-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 16px;
}

.directions-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.directions-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.2s ease;
}

/* активный чекбокс */

.directions-checkbox:checked + .directions-custom {
  background: #000;
  border-color: #000;
}

.directions-checkbox:checked + .directions-custom::after {
  content: "✓";
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}

/* текст заголовка шага */

.directions-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

/* .directions-step-number {
  color: #000;
}

.directions-step-title {
  color: #000;
} */

/* при отмеченном шаге заголовок чуть бледнее и зачёркнут */

.directions-checkbox:checked + .directions-custom + .directions-header {
  color: rgba(0, 0, 0, 0.35);
  text-decoration: line-through;
}

/* основной текст шагов */

.directions-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  max-width: 780px;
  margin-bottom: 14px;
}

/* картинка внутри первого шага */

.directions-image {
  margin: 22px 0 22px;
}

.directions-image img {
  display: block;
  width: 100%;
  max-width: 780px;
  border-radius: 24px;
  object-fit: cover;
}

/* лёгкий ховер на чекбокс */

.directions-label:hover .directions-custom {
  border-color: #444;
}

/* ------------ АДАПТИВ ------------ */

/* !!!! */

@media (max-width: 1400px) {
  .container {
    padding: 0 20px;
  }

  .header .container {
    padding: 25px 20px;
  }

  .category__card-wrapper {
    gap: 20px;
    justify-content: space-between;
  }
}

@media (max-width: 1310px) {
  .welcome .inner__content::before {
    content: none;
  }

  .recipes__cards__wrapper {
    justify-content: center;
  }

  .category__card-wrapper {
    justify-content: space-around;
  }

  .happy__chef__img {
    width: 100%;
    height: 100%;
  }

  .try__recipe__cards__wrapper {
    justify-content: center;
  }

  .try__recipe__text {
    flex-direction: column;
  }

  .try__recipe .try__recipe__desc {
    text-align: center;
    max-width: 520px;
  }

  .try__recipe__main__title {
    text-align: center;
  }

  .try__recipe__text {
    gap: 20px;
  }

  .john__and__button-wrapper {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .badge__wrapper {
    margin-bottom: 60px;
  }

  .welcome__title {
    font-size: 43px;
    line-height: 50px;
  }

  .welcome__desc {
    max-width: 90%;
  }

  .hot__recipes {
    margin-bottom: 10px;
  }
}

@media (max-width: 1200px) {
  .happy__chef .container {
    justify-content: center;
    gap: 20px;
  }

  .happy__chef__img {
    width: 450px;
  }

  .happy__chef__text {
    max-width: 440px;
  }

  .happy__chef__title {
    font-size: 32px;
  }

  .happy__chef__desc {
    margin-bottom: 30px;
  }
}

@media (max-width: 1130px) {
  .welcome__desc {
    max-width: 80%;
  }

  .main__recipe {
    max-width: 568px;
    max-height: 385px;
  }
}

@media (max-width: 1050px) {
  .category__card-wrapper {
    justify-content: center;
  }

  .categories__text {
    justify-content: center;
  }

  .category__btn {
    display: none;
  }

  .welcome .container {
    margin-bottom: 80px;
  }

  .categories .container {
    margin-bottom: 90px;
  }

  .simple__recepies__text {
    margin-bottom: 50px;
  }

  .try__recipe .container {
    margin-bottom: 100px;
  }

  .inbox .container {
    margin-bottom: 100px;
  }

  .try__recipe__main__title {
    font-size: 32px;
    max-width: 600px;
  }

  .happy__chef .container {
    margin-bottom: 100px;
  }

  .simple__recepies .container {
    margin-bottom: 100px;
  }

  .inbox__title {
    font-size: 32px;
  }

  .recepies__title {
    font-size: 32px;
  }

  .category__title {
    font-size: 32px;
  }

  .inner__content {
    margin-left: 10px;
  }
}

@media (max-width: 1000px) {
  .main__recipe__wrapper {
    flex-direction: column;
    align-items: center;
  }

  .info__recipes__wrapper {
    justify-content: center;
    gap: 30px;
  }

  .recipes__welcome__title {
    text-align: center;
    font-size: 37px;
    line-height: 50px;
  }

  .other-recipes-author {
    font-size: 14px;
  }

  .welcome__title {
    font-size: 28px;
    max-width: 350px;
    line-height: 40px;
  }

  .badge__wrapper {
    margin-bottom: 30px;
  }

  .view__recipes__button {
    padding: 13px 21px;
    padding-bottom: 13px;
  }

  .hot__recipes {
    padding: 11px 15px 11px 15px;
  }

  .welcome__text {
    max-width: 400px;
  }
}

@media (max-width: 900px) {
  .directions-section {
    margin-bottom: 110px;
  }

  .directions-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .directions-text {
    font-size: 14px;
    max-width: 100%;
  }

  .directions-image img {
    max-width: 100%;
  }
  .footer__nav {
    gap: 30px;
  }

  .inner__content {
    margin-left: 0;
  }

  .subscribe-form {
    min-width: 410px;
  }

  .welcome .container {
    background-image: url("./images/blue_bg.png");
    display: flex;
    justify-content: center;
  }

  .inner__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .welcome__text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .welcome__title {
    text-align: center;
  }

  .welcome__desc {
    text-align: center;
  }

  .john__and__button-wrapper {
    align-items: center;
  }

  .welcome .container {
    margin-top: 0;
  }

  .recepies__desc {
    max-width: 70%;
  }

  .happy__chef .container {
    flex-direction: column;
  }

  .happy__chef__text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .happy__chef__title,
  .happy__chef__desc {
    text-align: center;
  }

  .simple__recepies .container {
    margin-bottom: 70px;
  }

  .happy__chef__title {
    line-height: 40px;
  }

  .happy__chef .container {
    gap: 40px;
  }

  .happy__chef__img {
    width: 510px;
  }

  .welcome__text {
    max-width: 550px;
  }

  .welcome__desc,
  .welcome__title {
    max-width: 100%;
  }
}

@media (max-width: 800px) {
  .divider__vertical {
    display: none;
  }

  .info__recipes__wrapper {
    flex-direction: column;
  }

  .prep__time__recipes__inner__text {
    text-align: center;
  }

  /* показываем бургер */
  .burger {
    display: block;
  }

  /* прячем соцсети на мобилке */
  .socials {
    display: none;
  }

  /* показываем контейнер справа с бургером */
  .header-right {
    display: flex;
    margin-left: auto;
  }

  /* делаем меню "модальным" сверху */
  .nav {
    position: fixed;
    top: -100%; /* спрятано выше экрана */
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 70px 20px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    transition: top 0.25s ease;
  }

  .nav__list {
    flex-direction: column;
    justify-content: center;
    /* align-items: flex-start; */
    gap: 40px;
  }

  .nav__list a {
    color: black;
    font-size: 20px;
    letter-spacing: 1px;
  }

  .nav__link {
    font-size: 18px;
    color: #ffffff;
  }

  /* когда меню открыто — опускаем его вниз */
  body.menu-open .nav {
    top: 0;
  }
}

@media (max-width: 700px) {
  .directions-section {
    margin-bottom: 70px;
  }

  .recipes__welcome__title {
    font-size: 34px;
  }

  .recipes__welcome .container {
    margin-top: 40px;
  }

  .ingredients-layout {
    flex-direction: column;
    align-items: center;
  }

  .ingredients-left {
    text-align: center;
  }

  .ingredients-right {
    align-items: center;
  }

  .ingredients-label {
    justify-content: center;
  }

  .other-recipes-banner img {
    width: 100%;
  }

  .other-recipes-thumb {
    width: 124px;
    height: 80px;
    border-radius: 14px;
  }

  .welcome__desc,
  .badge,
  .happy__chef__desc,
  .try__recipe__desc,
  .subtitle__desc {
    font-size: 18px;
  }

  .subtitle__desc {
    max-width: 460px;
  }

  .inbox__title {
    margin-bottom: 10px;
  }

  .recipe__card__time,
  .recipe__card__fork-knife {
    font-size: 15px;
  }

  .badges__wrapper {
    margin: 0;
  }

  .recipe__card {
    justify-content: center;
  }

  .recipe__card__title {
    text-align: center;
  }

  .recepies__desc {
    max-width: 62%;
  }

  .happy__chef__btn {
    font-size: 16px;
  }

  .view__recipes__button {
    font-size: 15px;
  }

  .try__recipe__text {
    gap: 10px;
  }

  .happy__chef__title {
    margin-bottom: 10px;
  }

  .happy__chef__desc {
    margin-bottom: 45px;
  }

  .subscribe-form {
    height: 60px;
  }

  .subscribe-btn {
    padding: 14px 30px;
  }

  .inner__footer__wrapper {
    flex-direction: column;
  }

  .footer__text {
    align-items: center;
    gap: 7px;
    margin-bottom: 50px;
  }

  .copyright-socials__wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .footer__socials {
    position: relative;
  }
}

@media (max-width: 600px) {
  .main__recipe {
    max-width: 410px;
  }

  .recipes__welcome__title {
    max-width: 70%;
  }

  .recipes__welcome .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
  }

  .directions-item {
    padding: 20px 0 26px;
  }

  .directions-label {
    align-items: flex-start;
  }

  .directions-header {
    font-size: 15px;
  }

  .directions-custom {
    margin-top: 2px;
  }
  .try__recipe__main__title {
    max-width: 470px;
  }

  .try__recipe .try__recipe__desc {
    max-width: 345px;
  }

  .inbox__title {
    text-align: center;
    max-width: 400px;
  }

  .happy__chef__img {
    width: 420px;
  }

  .recipe__card__title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .recipe__table__title {
    text-align: center;
  }

  .recipes__welcome__title {
    max-width: 100%;
    font-size: 31px;
    line-height: 40px;
  }

  .main__recipe {
    max-width: 340px;
  }

  .try__recipe__card__text {
    align-items: center;
  }

  .try__recipe__title {
    text-align: center;
    margin-bottom: 15px;
  }

  .try__recipe__cards__wrapper {
    gap: 50px;
  }

  .try__recipe__text {
    margin-bottom: 60px;
  }

  .try__recipe__main__title {
    line-height: 40px;
  }

  .simple__recepies__text {
    text-align: center;
  }

  .subscribe-form {
    min-width: 350px;
    height: 45px;
    border-radius: 16px;
  }

  .subscribe-btn {
    padding: 9px 19px;
  }

  .directions-title {
    margin-bottom: 10px;
  }
}

@media (max-width: 430px) {
  .directions-title {
    font-size: 24px;
  }

  .directions-header {
    flex-direction: row;
    align-items: center;
  }

  .directions-text {
    font-size: 15px;
  }

  .directions-section {
    margin-bottom: 50px;
  }

  .directions-image {
    margin: 18px 0 18px;
  }
  .category__card-wrapper {
    gap: 10px;
  }

  .category__card-wrapper ::before {
    background-size: 85%;
  }

  .category__card-wrapper .card-1::before {
    width: 150px;
    height: 150px;
  }
  .category__card-wrapper .card-2::before {
    width: 150px;
    height: 150px;
  }
  .category__card-wrapper .card-3::before {
    width: 150px;
    height: 150px;
  }
  .category__card-wrapper .card-4::before {
    width: 150px;
    height: 150px;
  }
  .category__card-wrapper .card-5::before {
    width: 150px;
    height: 150px;
  }
  .category__card-wrapper .card-6::before {
    width: 150px;
    height: 150px;
  }

  .categories .container {
    padding: 0;
  }

  .directions-step-title {
    font-size: 16px;
  }
}

@media (max-width: 410px) {
  .recipe__card__content {
    padding-bottom: 20px;
  }

  .recipe__card__title {
    font-size: 21px;
    line-height: 26px;
  }

  .recepies__desc {
    max-width: 96%;
  }

  .category__card-wrapper {
    /* gap: 40px; */
    margin-top: 50px;
  }

  .inbox__title {
    font-size: 28px;
  }

  .happy__chef__img {
    width: 300px;
  }

  .welcome .container {
    margin-bottom: 60px;
  }

  .subscribe-form {
    padding-left: 17px;
    min-width: 320px;
  }

  .welcome {
    position: relative;
  }

  .welcome__title {
    max-width: 275px;
  }

  .recipes__welcome__title {
    max-width: 290px;
  }
}

@media (max-width: 390px) {
  .try__recipe__badges__wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .recipe__card__time {
    justify-content: center;
  }
}

@media (max-width: 370px) {
  .main__recipe {
    max-width: 300px;
  }

  .recipe__card__content {
    padding: 15px;
  }

  .recipe__card__title {
    font-size: 20px;
  }
  .subscribe-btn {
    display: none;
  }

  .subscribe-btn-mobile {
    display: block;
    border: none;
    outline: none;
    cursor: pointer;
    background: #000000;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 16px;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.25s ease, transform 0.2s ease;
  }

  .subscribe-form {
    margin-bottom: 15px;
    min-width: 290px;
  }
}

@media (max-width: 340px) {
  .footer__nav {
    flex-direction: column;
    align-items: center;
  }

  .recipe__card__title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .badge {
    padding: 10px 13px;
  }
}
