@media (max-width: 767.98px) {
  .home-banner.row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 21px;
    margin-left: -15px;
    margin-right: -15px;
  }
  .home-banner.row > .col-xs-12 {
    float: none !important;
    width: 50% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .home-banner__item {
    height: 100%;
  }
}
@media (max-width: 425px) {
  .home-banner.row > .col-xs-12 {
    width: 100% !important;
  }
}

.home-banner.row > * {
  width: 50%;
}

.home-banner__item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.home-banner__item:after {
  background: none;
}

.home-banner__image {
  display: block;
  flex: 0 0 auto;
  max-width: unset;
  max-height: unset;
  height: 100%;
  width: 50%;
  border-radius: 6px;
  object-fit: cover;
}

.home-banner__text {
  flex: 1 1 auto;
  padding: 13px;
  justify-content: flex-start;
}
.home-banner__text-1 {
  text-align: center;
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.home-banner__icon {
  font-size: 28px;
  line-height: 1;
}

.footer__socials-payments {
  display: none;
}

.modal-register__customer-group > .modal-register__item {
  display: none;
}
.modal-register__customer-group > .modal-register__heading {
  display: none;
}
.unicheckout__user > .checkout-customer__group {
  display: none;
}

.header-search__category-btn {
  border: 2px solid var(--header-search-input-c) !important;
  border-right-width: 0 !important;
}

.header-search__input {
  border: 2px solid var(--header-search-input-c) !important;
  border-left-width: 0 !important;
}

.product-block > .product-page__cart {
  align-items: flex-start;
}

@media (max-width: 900px) {
  .home-banner__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-banner__image {
    width: 100%;
    height: auto;
  }

  .home-banner__text {
    padding: 10px 13px;
  }
}

:root {
  --brand-green: #8ed645;
  --brand-dark: #1f2a37;
  --text: #0b1220;
  --muted: #5b6775;
  --bg: #f7f9fc;
  --sg-ink: #0e1420;
  --sg-muted: #647084;
  --sg-bg: #ffffff;
  --sg-accent: #8fd14f;
  --sg-accent-2: #1e2836;
  --sg-radius: 16px;
  --sg-scale: clamp(0.7, 1.2vw + 0.1, 1);
}

.safeguard-hero {
  position: relative;
  background: var(--sg-bg);
  border-radius: var(--sg-radius);
  overflow: clip;
  margin: clamp(8px, 2vw, 18px) auto;
}

.safeguard-hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  transform: skewY(-6deg);
  background: linear-gradient(90deg, #f1f7ea 0%, #f7fff1 40%, #ffffff 100%);
  z-index: 0;
}

.safeguard-hero-rev {
  position: relative;
  background: var(--sg-bg);
  border-radius: var(--sg-radius);
  overflow: clip;
  margin: clamp(8px, 2vw, 18px) auto;
}
.safeguard-hero-rev::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  transform: skewY(-6deg);
  background: linear-gradient(270deg, #f1f7ea 0%, #f7fff1 40%, #ffffff 100%);
  z-index: 0;
}

.safeguard-hero__wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  /* padding: clamp(18px, 3vw, 36px); */
  min-height: 420px;
}

.safeguard-hero__content {
  order: 2;
  color: var(--sg-ink);
}

.safeguard-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #eef6e6;
  color: #27321a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid #d6eac3;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(143, 209, 79, 0.25);
}

.safeguard-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--sg-muted);
  font-size: 0.95rem;
}
.meta-sep {
  opacity: 0.5;
}

.safeguard-hero__media {
  order: 1;
  position: relative;
  justify-self: end;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.12));
}
.safeguard-hero__img {
  display: block;
  inline-size: min(620px, 100%);
  border-radius: 18px;
  transform: rotate(-3deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.safeguard-hero:hover .safeguard-hero__img {
  transform: rotate(0deg);
}

.safeguard-hero__flag {
  position: absolute;
  left: 0px;
  top: -1px;
  transform-origin: left top;
  background: var(--sg-accent-2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px 10px 0 0;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.safeguard-hero__discount {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #111;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 10px;
  opacity: 0.95;
}

.hero-deli__content {
  position: relative;
  z-index: 2;
}
.hero-deli__badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  background: var(--sg-accent);
  color: #0a0a0a;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.hero-deli__title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
}
.hero-deli__subtitle {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--muted);
  margin: 0 0 18px;
}
.hero-deli__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.safeguard-hero__wrap .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  height: 46px;
  padding: 0 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.safeguard-hero__wrap .btn--primary {
  background: var(--sg-accent);
  color: #0b0b0b;
  border: 2px solid #cfefb0;
}
.safeguard-hero__wrap .btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(40, 200, 40, 0.18);
}
.btn--link {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-deli__sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  opacity: 0.92;
}

.safeguard-hero,
.hero-deli__content {
  font-size: calc(16px * var(--sg-scale));
}

/* поджимаем вертикальные размеры пропорционально */
.safeguard-hero__wrap,
.hero-deli__inner {
  padding: clamp(16px, 2.2vw, 36px);
  gap: clamp(12px, 2.2vw, 32px);
  min-height: clamp(340px, 42vw, 420px);
}

/* заголовки и лиды – плавная шкала */
.safeguard-hero__title,
.hero-deli__title {
  font-size: clamp(22px, 3.2vw, 46px);
  line-height: 1.06;
}
.safeguard-hero__lead,
.hero-deli__subtitle {
  font-size: clamp(13px, 1.2vw, 18px);
}

/* кнопки – не ломать, просто уменьшать чуть-чуть */
.safeguard-hero__wrap .btn,
.safeguard-hero__wrap .btn-solid,
.safeguard-hero__wrap .btn-outline {
  height: clamp(40px, 4.2vw, 46px);
  padding: 0 clamp(12px, 1.8vw, 18px);
  border-radius: clamp(10px, 1.2vw, 12px);
}

/* чипы – тоже «сжимаемы» */
.chip {
  padding: 0.5rem 0.75rem;
  font-size: clamp(0.86rem, 1.8vw, 0.92rem);
}

/* медиа-блок не выпрыгивает из контейнера */
.safeguard-hero__media,
.hero-deli__media {
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.12));
}
.safeguard-hero__img,
.hero-deli__img {
  inline-size: min(620px, 48vw);
  border-radius: 18px;
  max-height: 540px;
  height: 100%;
}

/* бейджи скидки/флага – фиксируем читаемость при сжатии */
.safeguard-hero__flag,
.hero-deli__sale-badge {
  font-size: clamp(11px, 1.4vw, 14px);
  padding: clamp(6px, 0.9vw, 8px) clamp(10px, 1.2vw, 12px);
}
/* tablet */
@media (max-width: 1024px) {
  .hero-deli__img {
    inline-size: min(540px, 100%);
  }
  .hero-deli__subtitle {
    margin-bottom: 14px;
  }
}

@media (max-width: 575px) {
  .safeguard-hero__media,
  .hero-deli__img {
    display: none;
  }
  .safeguard-hero__wrap {
    display: block;
  }
}
/* --- MOBILE TIGHT PATCH (≤480px) --- */
@media (max-width: 480px) {
  .safeguard-hero__media {
    display: none;
  }

  .safeguard-hero__wrap {
    display: block;
    padding: 14px !important;
    min-height: 340px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .safeguard-hero__img,
  .chip {
    transition: none;
  }
}

.uni-wrapper > #button-filter {
  position: sticky;
  bottom: 10px;
}

.header-phones__main:has(.fa-whatsapp) {
  color: #1daa61;
}

.yt-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.yt-svg {
  display: block;
  transform-origin: 50% 50%;
}

/* навели — увеличили и покачали 2 раза */
.yt-icon:hover {
  transform: scale(1.1);
}
.yt-icon:hover .yt-svg {
  animation: yt-wobble 0.4s ease-in-out 2;
}

/* ключевые кадры: правый бок вниз (положительный угол), затем влево и затухание */
@keyframes yt-wobble {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(6deg);
  } /* вправо: правый бок вниз */
  100% {
    transform: rotate(-6deg);
  } /* влево: левый бок вниз */
}

/* уважение к пользователям с reduced motion */
@media (prefers-reduced-motion: reduce) {
  .yt-icon,
  .yt-svg {
    transition: none;
    animation: none !important;
  }
}
