html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: rgba(255, 255, 255, 1);

  --background-color: rgba(174, 19, 50, 1);
  --text-color: rgba(0, 0, 0, 1);
  --button-color: rgba(164, 203, 102, 1);
  --button-color-2: rgba(245, 206, 19, 1);
}
* {
  box-sizing: border-box;
}
body {
  color: var(--primary-color);
  font-family: "DM Sans", sans-serif;
  font-style: Regular;
  background-color: var(--background-color);
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
}
p,
ul,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}
ul {
  padding-left: 0;
  display: flex;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  /* outline: 2px solid blue; */
}

/*----------------Анимация------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* -----HEADER----- */

.header {
  background-color: var(--primary-color);

  /* padding: 11px 32px; */
}
.header-container {
  padding-top: 11px;
  padding-bottom: 11px;
}
.navigation {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.navigation-list {
  color: var(--background-color);

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.navigation-item {
  font-weight: 400;

  font-size: 14px;

  line-height: 1.3;
  letter-spacing: -0.03em;
}
.link-navigation {
  color: var(--background-color);

  font-weight: 400;

  font-size: 14px;

  line-height: 1.2;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.link-navigation:hover {
  font-weight: 600;
  transform: scale(1.1);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
.link-logo {
  width: 16;
  height: 16;
  color: var(--background-color);

  font-weight: 700;

  font-size: 14px;

  line-height: 1.2;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  /*margin-left: 322px;*/
  margin-right: 200px;
}

.link-bag {
  position: relative; /* Чтобы счётчик позиционировался относительно ссылки */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  color: var(--background-color);
  /* margin-left: 0 auto; */
}
.link-bag:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
  box-shadow: 0 0 20px rgba(242, 238, 235, 0.4);
}

.bag-icon {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.bag-count {
  position: absolute;
  top: -5px;
  right: -8px;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 18px;
  height: 18px;
  padding: 2px;

  background-color: #ef445b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid #ffffff;
  /* Гарантируем, что нолик не перекроет всё своим размером */
  box-sizing: border-box;

  /* Управление видимостью */
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;

  /* Чтобы нолик не мешал кликать по корзине */
  pointer-events: none;
}

/* 4. Класс для скрытия */
.bag-count.is-empty {
  opacity: 0;
  transform: scale(0);
}

/* Эффект пульсации при обновлении цифры */
.bag-count.bump {
  transform: scale(1.3) !important;
}

/*-------- HERO------ */

* Анимация появления для заголовка */ @keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0% {
    transform: translateY(0px) rotate(-15deg);
  }
  50% {
    transform: translateY(-15px) rotate(-10deg); /* Поднимаем на 15px */
  }
  100% {
    transform: translateY(0px) rotate(-15deg);
  }
}

.hero {
  padding-top: 64px;
  padding-bottom: 150px;
}

.hero-container {
  /* display: flex;
  flex-direction: row; */
}
.hero-title {
  position: relative;
  z-index: 10;
  margin-bottom: -40px;
  max-width: 898px;
  margin: 0 auto;
  font-weight: 500;
  font-style: Medium;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease-out forwards;
}
.hero-content {
  position: relative;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 103px;
}
/* Общие настройки контейнеров блоков для позиционирования фруктов внутри них */
.hero-left,
.hero-right {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}
.hero-left {
  align-items: flex-end;
}
.hero-right {
  align-items: flex-center;
}

/* Летающие бананы в левом блоке */
.hero-floating-bananas {
  position: absolute;
  top: -80px; /* Поднимаем выше текста */
  left: 120px; /* Сдвигаем немного влево */
  width: 183px;
  transform: rotate(-5deg);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}
@keyframes float-strawberry {
  0% {
    transform: translateY(0px) rotate(10deg);
  }
  50% {
    transform: translateY(-20px) rotate(15deg);
  }
  100% {
    transform: translateY(0px) rotate(10deg);
  }
}
/* Летающая клубника в правом блоке */
.hero-floating-strawberry {
  position: absolute;
  top: -120px; /* Над желтой карточкой */
  right: 10px; /* Сдвигаем ближе к центру или краю */
  width: 120px;
  transform: rotate(10deg);
  z-index: 2;
  animation: float-strawberry 5s ease-in-out infinite;
}

/* Стили карточек (корзинка и арбуз) */
.hero-card {
  width: 250px;
  padding: 24px;
  border-radius: 500px;
  text-align: center;
  z-index: 1;
}

.green-card {
  background-color: #85be48;
  padding: 28px 25px 40px 24px;
}
.yellow-card {
  background-color: #f7d046;
  padding: 28px 44px 40px 43px;
  margin-bottom: 44px;
  margin-top: 74px;
}
.card-title {
  font-weight: 400;
  font-style: Regular;
  font-size: 12px;

  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  vertical-align: middle;
}
.card-img {
  width: 100%;
  max-width: 249px;
  height: auto;
  margin-bottom: 44px;
}
.left-card-img {
  margin-bottom: 2px;
  margin-top: 61px;
}
.right-card-img {
  margin-bottom: 17px;
  margin-top: 19px;
}

/* Центральный блок с овальным фото */
.hero-center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* Анимация для центрального овала */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.main-image-wrapper {
  position: relative;
  z-index: 1;
  width: 452px;
  height: 702px;
  border-radius: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: -120px; /* Поднимаем выше текста */
  animation: zoomIn 1s ease-out 0.2s backwards; /* 0.2s — задержка, чтобы заголовок начал первым */
}
/* Создаем исчезающую рамку */
.hero-center::after {
  content: "";
  position: absolute;
  /* Рамка должна быть чуть больше картинки, чтобы создать зазор в 10px */
  top: 5px; /* (15px отступа родителя - 10px зазора) */
  left: 5px;
  right: 5px;
  bottom: 5px;
  /* Увеличиваем размер рамки относительно wrapper на 10px с каждой стороны */
  width: 486px; /* 340 + 10 + 10 */
  height: 742px; /* 480 + 10 + 10 */

  /* Центрируем рамку относительно центрального блока */
  left: 50%;
  top: 41%; /* Чуть выше центра, так как кнопка внизу */
  transform: translate(-50%, -50%);

  border: 2px solid #ffffff;
  border-radius: 500px; /* Чуть больше, чем у картинки, для параллельности */
  pointer-events: none; /* Чтобы рамка не мешала кликать на кнопку */

  /* МАГИЯ ИСЧЕЗНОВЕНИЯ: */
  /* Линейный градиент от прозрачного (сверху) к белому (снизу) */
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 0) 90%
  );
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 0) 90%
  );
}
.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 20%;
  /* transform: scale(1.05); */
  display: block;
}

.hero-text-small {
  max-width: 222px;
  margin-top: 146px;
  margin-bottom: 44px;

  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: left;
}
.hero-card-text {
  max-width: 163px;

  font-weight: 500;
  font-style: Medium;
  font-size: 12px;

  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
}

.button-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  z-index: 5;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%) rotate(-14deg);
  width: 114px;
  height: 114px;
  background-color: var(--primary-color);
  color: var(--background-color);

  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  opacity: 1;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}
.button-hero:hover {
  /* Мы сохраняем твои центровку и поворот, добавляя scale */
  transform: translateX(-50%) rotate(-14deg) scale(1.1);
  color: var(--button-color);
  box-shadow: 0 0 20px rgba(233, 229, 227, 0.4);
}
.hero-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.hero-item {
  gap: 8px;
  opacity: 0; /* Изначально скрываем, чтобы они не «мигали» перед началом */
  animation: fadeInUp 0.5s ease-out forwards;
}
/* Назначаем разную задержку (delay) для каждого элемента */
.hero-item:nth-child(1) {
  animation-delay: 0.6s;
}
.hero-item:nth-child(2) {
  animation-delay: 0.8s;
}
.hero-item:nth-child(3) {
  animation-delay: 1s;
}
.hero-item:nth-child(4) {
  animation-delay: 1.2s;
}
.hero-tag {
  color: var(--primary-color);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 1000px;

  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;

  padding: 12px 32px;

  font-weight: 500;
  font-style: Medium;
  font-size: 12px;

  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
}
.hero-tag:hover {
  transform: scale(1.1);
  background-color: var(--primary-color);
  color: var(--background-color);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/*-------ORDER---------- */

.order {
  padding-bottom: 150px;
}
.order-container {
}
.order-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.order-title {
  max-width: 624px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 1);
  font-style: Medium;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
}
.order-description {
  max-width: 509px;
  margin-top: 14px;
  margin-bottom: 44px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-align: center;
}
.order-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 80px;
}
.order-item {
  /* width: calc((100%-48px) / 3); */
  width: 389px;
  padding: 40px 20px;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
}
.order-button {
  display: inline-flex;
  min-width: 136px;
  width: auto;
  height: 48px;
  white-space: nowrap;
  color: var(--primary-color);
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 200px;
  padding: 15px 42px;
  gap: 10px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.button-color-1 {
  background-color: var(--background-color);
}
.button-color-2 {
  background-color: var(--button-color);
}
.button-color-3 {
  background-color: var(--button-color-2);
}

.order-text {
  color: rgba(0, 0, 0, 1);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  vertical-align: middle;
}
.order-image {
  width: 860px;
  height: 476px;
  border-radius: 20px;
  justify-content: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.order-item:hover {
  /* Увеличиваем картинку на 5% */
  transform: scale(1.05);

  /* Добавляем мягкую тень для объема */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.order-image:hover {
  /* Увеличиваем картинку на 5% */
  transform: scale(1.05);

  /* Добавляем мягкую тень для объема */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* -------ABOUT------ */

.about {
  padding-bottom: 150px;
}
.about-container {
}
.about-title {
  display: block;
  max-width: 624px;
  margin: 0 auto;

  font-weight: 500;
  font-style: Medium;
  font-size: 40px;

  line-height: 1.1;
  letter-spacing: -0.01em;

  text-align: center;

  text-transform: uppercase;
}
.about-text {
  max-width: 547px;
  margin: 0 auto;
  margin-top: 14px;

  font-weight: 400;
  font-style: Regular;
  font-size: 14px;

  line-height: 1.3;
  letter-spacing: -0.03em;

  text-align: center;
  margin-bottom: 44px;
}
.about-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.about-item {
  width: 389px;
  height: 465px;
  border-radius: 20px;
  padding: 64px 47px 24px 24px;
  transition: transform 0.3s;
}
.about-item:nth-child(1) {
  background-color: rgba(248, 118, 107, 1);
} /* Клубника */
.about-item:nth-child(2) {
  background-color: rgba(237, 210, 81, 1);
} /* Банан */
.about-item:nth-child(3) {
  background-color: rgba(157, 194, 98, 1);
} /* Арбуз */
.about-item:nth-child(4) {
  background-color: rgba(191, 214, 99, 1);
} /* Лайм */
.about-item:nth-child(5) {
  background-color: rgba(233, 63, 41, 1);
} /* Яблоко */
.about-item:nth-child(6) {
  background-color: rgba(219, 79, 75, 1);
} /* Персик */
.about-item:nth-child(7) {
  background-color: rgba(155, 83, 102, 1);
} /* Слива */
.about-item:nth-child(8) {
  background-color: rgba(244, 127, 76, 1);
} /* Апельсин */
.about-item:nth-child(9) {
  background-color: rgba(152, 179, 126, 1);
} /* Киви */
.about-subtitle {
  margin-bottom: 7px;

  font-weight: 700;
  font-size: 32px;

  line-height: 1.1;
  letter-spacing: -0.01em;
}
.about-plant {
  margin-bottom: 4px;

  font-weight: 400;
  font-size: 18px;

  line-height: 1.3;
  letter-spacing: -0.01em;
}
.about-img {
  margin-bottom: 4px;
  transition:
    transform 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}
.about-item:hover {
  /* Увеличиваем картинку на 5% */
  transform: scale(1.05);

  /* Добавляем мягкую тень для объема */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.about-price {
  display: inline-flex;
  white-space: nowrap;
  font-weight: 500;
  font-style: Medium;
  font-size: 18px;

  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--background-color);
  min-width: 136px;
  width: auto;
  opacity: 1;

  border: none;
  cursor: pointer;
  border-radius: 200px;
  padding: 12px 21px;
  background-color: var(--primary-color);
}
.about-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 44px;
  padding: 38px 18px;
  width: 114px;
  height: 114px;
  background-color: var(--button-color);
  color: var(--primary-color);
  border: none;
  border-radius: 500px;
  font-weight: 500;
  font-style: Medium;
  font-size: 18px;

  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;

  text-transform: uppercase;

  opacity: 1;
  transform: rotate(-14deg);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}
.about-button:hover {
  /* Мы сохраняем твои центровку и поворот, добавляя scale */
  transform: rotate(-14deg) scale(1.1);
  background-color: var(--primary-color);
  color: var(--button-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.about-button-icon {
  margin-right: 4px;
  fill: var(--primary-color);
}
.about-button-icon {
  fill: currentColor;
}

/* --------ADVANTAGES-------- */

.advantages {
  padding-bottom: 150px;
}
.advantages-container {
}
.advantages-title {
  position: relative; /* Включаем возможность управления слоями */
  z-index: 10; /* Поднимаем заголовок выше всех */
  max-width: 740px;
  margin: 0 auto;
  margin-bottom: -40px;
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease-out forwards;
}
.advantages-list {
  position: relative; /* Также добавляем, чтобы z-index работал */
  z-index: 1; /* Картинки будут под заголовком */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.advantages-item {
  gap: 24px;
}
.advantages-image {
  border-radius: 20px;
  display: block;

  /* Плавный переход: свойство, время, функция ускорения */
  transition:
    transform 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

/* Эффект при наведении на саму картинку или на всю карточку */
.advantages-item:hover .advantages-image {
  /* Увеличиваем картинку на 5% */
  transform: scale(1.05);

  /* Добавляем мягкую тень для объема */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.advantages-description {
  margin: 80px auto;

  max-width: 492px;

  font-weight: 400;
  font-style: Regular;
  font-size: 14px;

  line-height: 1.3;
  letter-spacing: -0.03em;
  text-align: center;
}
.advantages-form {
  position: relative;
  width: 100%;
  max-width: 292px; /* Ширина должна совпадать с max-width инпута */
  margin: 0 auto 150px; /* Центрируем саму форму на странице */
}
.advantages-input {
  width: 100%;
  max-width: 292px;
  height: 48px;
  padding: 15px 110px 15px 24px; /* 110px справа, чтобы текст не прятался под кнопкой */
  opacity: 1;
  border-radius: 100px;
  border-width: 1px;
  border: 1px solid var(--primary-color);
  outline: none;
  background-color: var(--background-color);
  color: var(--primary-color);
  transition: border-color 0.3s ease;
}
/* Эффект при клике в поле ввода */
.advantages-input:focus {
  border-color: var(--button-color); /* Подсвечиваем рамку акцентным цветом */
}
.advantages-button {
  position: absolute;
  top: 0;
  right: 0;
  height: 48px;
  width: 102px;

  border: none;
  cursor: pointer;
  outline: none;
  opacity: 1;

  gap: 15px;
  border-radius: 100px;
  /* padding-top: 15px;
  padding-right: 35px;
  padding-bottom: 15px;
  padding-left: 35px; */
  background-color: var(--button-color);
  color: var(--primary-color);
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}
/* Эффекты при наведении и нажатии */
.advantages-button:hover {
  color: var(--button-color);
  background-color: var(--primary-color); /* Немного темнее при наведении */
  transform: translateY(-2px); /* Слегка приподнимается */
}

.advantages-button:active {
  transform: translateY(0); /* Возвращается на место при клике */
}

/* ----------------FOOTER--------- */

.footer {
  padding-top: 80px;
  padding-bottom: 97px;
  background-color: var(--primary-color);
}
.footer-container {
  display: flex;

  justify-content: space-between;
  /* align-items: center; */
}
.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.footer-image {
  max-width: 349px;
  margin-bottom: 20px;
}
.footer-logo {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 16;
  height: 16;
  color: var(--background-color);

  font-weight: 700;

  font-size: 14px;

  line-height: 1.2;
  letter-spacing: 0.03em;
}
.logo-icon {
  width: 16px;
  height: 16px;
  fill: var(--background-color);
}
.footer-navigation {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Все элементы прижаты к правому краю */
  text-align: left;
}
.footer-social-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.footer-social-item {
}
.footer-social-link {
  height: 44px;
  width: 44px;
}
.link {
}
.footer-social-icons {
  padding: 8px;
  border: 1px solid var(--background-color);
  border-radius: 10px;
  fill: var(--background-color);
}
.footer-social-link:hover .footer-social-icons {
  background-color: rgba(174, 19, 50, 0.1);

  transition:
    background-color 0.3s ease,
    fill 0.3s ease;
}
.footer-adress {
  color: var(--background-color);
  margin-top: 20px;
}
.footer-adress-list {
  display: block;
}
.footer-adress-item {
}
.footer-adress-link {
  color: var(--background-color);
}
.footer-adress-text {
}

/*------------MODAL------------ */
.backdrop {
  position: fixed;
  z-index: 99999;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 47, 66, 0.4);
  top: 0;
  left: 0;
  transition:
    opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.backdrop.is-hidden .modal {
  transform: translate(-50%, -50%) scale(0.9);
}
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Делаем окно адаптивным */
  width: 100%; /* На маленьких экранах оно займет почти всю ширину */
  max-width: 891px; /*Но не станет больше, чем ты задумала*/

  min-height: auto;
  /* Ограничиваем высоту */
  max-height: 95vh;
  overflow-y: auto; /* Если контента будет много, внутри появится прокрутка */
  background-color: var(--primary-color);
  border-radius: 20px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  transition: transform 250ms ease;
  cursor: pointer;
}
.modal-close:hover {
  transform: scale(1.1);
}
.modal-close-icon {
  fill: var(--background-color);
}
.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.no-scroll {
  overflow: hidden;
}
.modal-content {
  padding: 40px;
}

.modal-title {
  color: var(--background-color); /* Твой красный цвет */
  text-transform: uppercase;
  font-size: 40px;
  margin-bottom: 40px;
}

/* Сетка карточек */
.order-selection-list {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  list-style: none;
}

.selection-item {
  position: relative;
  flex: 1;
  padding: 20px;
  border-radius: 20px;
  color: #fff;
}

/* Цвета карточек из твоего списка about */
.strawberry-bg {
  background-color: #f8766b;
}
.apple-bg {
  background-color: #f7d046;
}
.fruits-bg {
  background-color: #9dc262;
}

.selection-name {
  font-size: 18px;
  margin-bottom: 4px;
}
.selection-type {
  font-size: 14px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.selection-img {
  display: block;
  margin: 0 auto;
}

/* Чекбоксы (кастомные точки в углу) */
.selection-check-input {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Контейнер для формы и девушки */
.modal-bottom-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
}

.modal-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-input,
.modal-textarea {
  width: 100%;
  padding: 14px 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  outline: none;
  font-size: 14px;
}

.modal-textarea {
  border-radius: 20px;
  height: 120px;
  resize: none;
}
.modal-input,
.modal-textarea:focus-within {
  border-color: var(--button-color);
}
.modal-submit-btn {
  width: fit-content;
  padding: 14px 40px;
  background-color: var(--button-color); /* Зеленый цвет */
  color: #fff;
  border: none;
  border-radius: 100px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
}
.modal-submit-btn:hover {
  background-color: var(--primary-color); /* Темнее при наведении */
  color: var(--button-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
/* Фото девушки в углу */
.modal-image-decor {
  position: absolute;
  right: -40px; /* Выносим немного за пределы паддинга */
  bottom: -40px;
}

.woman-decor {
  /*width: 450px; Регулируй размер под макет*/
  display: block;
}
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background-color: #ef445b; /* Розово-красный фон из макета */
  border-radius: 20px;
  color: #ffffff;
  text-align: center;
  height: 100%; /* Занимает всё пространство модалки */
  min-height: 545px;
}

/* Скрываем контент через класс is-hidden */
.modal-success.is-hidden {
  display: none !important;
}
.modal-content.is-hidden {
  display: none !important;
}
.success-img {
  width: 250px;
  margin-bottom: 40px;
  /* Анимация: название, время, эффект */
  animation: popIn 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-title {
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.success-text {
  font-size: 16px;
  line-height: 1.4;
  max-width: 400px;
  opacity: 0.9;
}
