/* 1. Регистрируем переменную, чтобы браузер мог плавно менять позицию градиента */
@property --glow-x {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}

/* 2. Ключевые кадры: пятно летит слева (0%) направо (90%) */
@keyframes glow-slide {
  from {
    --glow-x: 0%;
  }
  to {
    --glow-x: 90%;
  }
}

/* 3. Ваш header с анимацией */
/* 3. Ваш header с анимацией (ОБНОВЛЕННЫЙ) */
.header {
  position: fixed; /* Создаем контекст для псевдоэлемента */
  z-index: 15; /* Гарантируем, что контент шапки будет выше фона */
  background: transparent;
  /* Мы УБРАЛИ отсюда background, backdrop-filter и background-image */
}

/* Создаем отдельный визуальный слой ПОД контентом шапки */
.header::before {
  content: "";
  position: absolute;
  inset: 0; /* Растягиваем на всю площадь шапки (top, right, bottom, left = 0) */
  z-index: -1; /* Помещаем этот слой строго ПОД текстом и иконками */
  pointer-events: none; /* КРИТИЧНО ВАЖНО: позволяет кликать сквозь фон по кнопкам и ссылкам */
  border-radius: inherit; /* Наследует скругления, если они есть у .header */
  
  /* Перенесенные визуальные стили */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background-image: radial-gradient(
    ellipse at var(--glow-x) 50%,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 60%
  );
}
/* Контекст позиционирования */
.banner--full {
  position: relative; /* Обязательно! Чтобы видео позиционировалось внутри */
  overflow: hidden;   /* Обрезаем всё, что вылезает за рамки */
}

/* Видео: скрыто по умолчанию, растянуто на весь блок */
.banner__video {
  inset: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 50px 0px 0px 0px;
    padding: 0;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
}

/* Оверлей и текст должны быть выше видео */
.banner__overlay {
  position: relative;
  z-index: 2;
}

/* При наведении на ссылку-обертку показываем видео */
.banner-link:hover .banner__video {
  opacity: 1;
}

  animation: glow-slide 3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#btn-about-us,
.btn-catalogue {
  font-size: 24px;
  backdrop-filter: blur(16px);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.1);
}

input[type="search"] {
  border: 1px solid var(--color-white) !important;
  color: var(--color-white);
  background-color: transparent;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0);
}

#btn-about-us .text-btn,
.btn-catalogue .text-btn {
  color: var(--color-white);
}

.icon-burger-long,
.icon-call {
  filter: invert(1);
}

.aws-container .aws-search-form .aws-search-btn.aws-form-btn {
  background-color: transparent;
  backdrop-filter: blur(16px);
  border-color: var(--color-white);
}

.header-title,
.header-tel {
  color: var(--color-white);
}
.header-title {
  top: 3px;
}
.header-login-container a {
    filter: invert(1) brightness(2);
}

.header-userlogin-container h4 {
  color: var(--color-white);
}
.cart-counter{
  filter: invert(1) brightness(1.5);
}
.header-social-item-after {

    border: 1px solid var(--color-white);
}
.header-social-item-after a span {
  filter: invert(1) brightness(1.5);
}
/* ===== СОСТОЯНИЕ ПРИ СКРОЛЛЕ ===== */

.header.header-scroll::before {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
}

/* Текст и заголовки становятся черными */
.header.header-scroll .header-title {
  opacity: 0;
  transition: all .15s;
}

.header.header-scroll .header-tel {
  color: var(--color-black);
}

/* Текст кнопок становится черным */
.header.header-scroll #btn-about-us .text-btn,
.header.header-scroll .btn-catalogue .text-btn {
  color: var(--color-black);
}

/* Иконки становятся черными (инвертируем обратно) */
.header.header-scroll .icon-burger-long,
.header.header-scroll .icon-call {
  filter: invert(0);
}

/* Другие иконки, если они есть */
.header.header-scroll .icon-container {
  filter: invert(0)
}

.header.header-scroll .aws-search-btn_icon {
  filter: invert(1);
}

/* Поле поиска */
.header.header-scroll input[type="search"] {
  border-color: var(--color-black) !important;
  color: var(--color-black);
  background-color: rgba(255, 255, 255, 0.8);
}

.header.header-scroll input[type="search"]::placeholder {
  color: #999;
}

/* Кнопка поиска */
.header.header-scroll .aws-container .aws-search-form .aws-search-btn.aws-form-btn {
  border-color: var(--color-black);
}

/* Кнопки с блюром */
.header.header-scroll #btn-about-us,
.header.header-scroll .btn-catalogue {
  background: transparent;
  border-color: var(--color-black);
  backdrop-filter: none;
  transition: all .15s;
}

/* Hover эффекты при скролле */
.header.header-scroll #btn-about-us:hover,
.header.header-scroll .btn-catalogue:hover {
  background: var(--color-black);
  border-color: var(--color-black);
  transition: all .15s;
}

.header.header-scroll #btn-about-us:hover .text-btn,
.header.header-scroll .btn-catalogue:hover .text-btn {
  color: var(--color-white);
  transition: all .15s;
}

.header.header-scroll .btn-catalogue:hover .icon-burger-long {
  filter: invert(1);
}


/* Если есть ссылки в шапке */
.header.header-scroll a:not(.btn-catalogue):not(#btn-about-us) {
  color: var(--color-black);
  transition: all .15s;
}

/* Для иконок социальных сетей */
.header.header-scroll .header-social-link .icon-container {
  filter: invert(0);
}

/* Для счетчика корзины */
.header.header-scroll .cart-counter p {
  background: var(--color-black);
  color: #fff;
}

/* Для имени пользователя */
.header.header-scroll .header-userlogin-container h4 {
  color: var(--color-black);
}
















.index {
  margin-top: 0;
}

.collection-slider-main,
.journal-slider-main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.collection-slider-content,
.journal-slider-content {
  position: relative;
  width: 100%;
  border-radius: var(--radius-maximum);
  margin: 0 auto;
  background-color: var(--color-white);
  box-shadow: var(--shadow-bottom);
}

.collection-slider-content {
  height: 400px;
}

.journal-slider-content {
  height: 300px;
}

#collection-item,
.journal-item {
  overflow: hidden;
}

.collection-item-container,
.journal-item-container {
  display: flex;
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-maximum);
  width: 100%;
}

.collection-item-container {
  flex-direction: row;
}

.journal-item-container {
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  padding: 40px 60px;
  height: 100%;
}

.collection-info-container {
  right: 0;
  width: 50%;
  padding: 25px 60px;
  transform: scale(1);
  transition: transform .25s;
}

.collection-image-container {
  position: relative;
  overflow: hidden;
  height: 400px;
  min-width: 50%;
}

.collection-image-container img {
  position: absolute;
  object-fit: cover;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  border-radius: 0;
  transform: translateX(0px);
  filter: brightness(95%);
  transition: all .15s;
}

.collection-info-description {
  min-height: 40px;
  max-height: 180px;
  overflow: hidden;
}

.collection-link,
.journal-link,
.about-link {
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  text-decoration-line: underline;
  transition: all .15s;
}

.collection-link,
.journal-link {
  color: var(--color-dark-gray);
}

.about-link {
  color: var(--color-white);
}

.collection-link {
  position: absolute;
  float: right;
  bottom: 35px;
  right: 40px;
}

.journal-link {
  position: relative;
}

@media screen and (max-width: 1280px) {}

@media screen and (max-width: 1000px) {

  .collection-slider-content,
  .journal-slider-content {
    padding: 0;
    margin: auto;
  }
}

@media screen and (max-width: 880px) {}

@media screen and (max-width: 450px) {}

/*COLLECTION*/
.left_button,
.left_journal_button,
.right_button,
.right_journal_button {
  display: block;
  z-index: 5;
  cursor: pointer;
  color: black;
  text-align: center;
  font: normal bold 48px/48px 'Advent Pro', sans-serif;
  padding: 5px;
  width: 30px;
  height: 30px;
  opacity: 0.5;
  transition: all .15s;
}

.right_button:hover,
.left_journal_button:hover,
.left_button:hover,
.right_journal_button:hover {
  opacity: 1;
  text-decoration: none;
  transform: scale(1.1);
  transition: all .15s;
}

.collection-text,
.journal-text {
  overflow: hidden;
  color: #1C1B1F;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.collection-heading {
  margin: 15px 0px 30px;
  font-weight: 400;
  line-height: normal;
  text-transform: none;
}

.journal-heading {
  font-weight: 400;
}

.dots {
  line-height: 0;
}

.collection-image-container:hover img {
  transform: scale(1.05);
  filter: brightness(100%);
  transition: all .15s;
}

.collection-item-container:hover .collection-link {
  color: var(--color-black);
  transition: all .15s;
  transform: scale(1.01);
}

/**/
.index-dw-container {
  border-radius: var(--radius-maximum);
  box-shadow: var(--shadow-bottom);
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 600px;
  transition: all .5s;
}

.dw-img {
  width: 100%;
  height: 600px;
  transform: scale(1.01);
  transition: all .5s;
}

.index-dw-container:hover .dw-img {
  filter: brightness(0.1);
  transform: scale(1);
  transition: all .5s;
}

.dw-svg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: 0;
  opacity: 0;
  transition: opacity .5s;
}

.index-dw-container:hover .dw-svg-logo {
  opacity: 1;
  z-index: 3;
  transform: translate(-50%, -50%);
  transition: opacity 3s;
}

.index-dw-container:hover .dw-svg-logo svg path {
  fill: burlywood;
  transition: all 2s;
}

.dw-svg-logo svg path {
  fill: white;
  transition: all .5s;
}

/**/
.about-main-container {
  display: flex;
  gap: var(--offset-usual);
}

.about-wrapper {
  position: relative;
  background-size: cover;
  max-width: 386px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-maximum);
  box-shadow: var(--shadow-bottom);
  overflow: hidden;
  transition: filter .3s ease-in-out;
}

.about-wrapper:hover {
  filter: saturate(0);
  transition: filter .3s ease-in-out;
}

.about-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 30px 15px;
  z-index: 2;
  background-color: rgba(28, 27, 31, 0.7);
  transform: translateY(275px);
  transition: transform .3s;
}

.about-content h3,
.about-content p,
.about-content a {
  color: var(--color-white);
}

.about-content h3 {
  text-transform: capitalize;
}

.about-wrapper:hover .about-filter {
  filter: opacity(0.4);
  transition: filter .15s;
}

.about-wrapper:hover .about-content {
  transform: translateY(0px);
  transition: transform .3s ease-in-out;
}

@media screen and (max-width: 1280px) {
  .about-content {
    transform: translateY(240px);
  }
}

@media screen and (max-width: 1024px) {
  .about-content {
    transform: translateY(0px);
  }

  .about-content h3 {
    font-size: 24px;
  }

  .about-content p {
    font-size: 14px;
  }
}

.watch-container {
  width: 100%;
  height: 500px;
  padding: 40px;
  border-radius: var(--radius-maximum);
  box-shadow: var(--shadow-bottom);
}

.watch-content {
  width: 40%;
}

.watch-content p,
.watch-content h3 {
  margin: var(--offset-biggest);
}

.watch-content a {
  color: var(--color-white);
  font-weight: 400;
  text-decoration-line: underline;
  font-size: 20px;
}


.watch-container-min {
  display: none;
}

.new-item-container-min {
  display: none;
}

/*watch*/
#parallax {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: var(--radius-maximum);
}

.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.layer img {
  width: 100%;
  height: 100%;
}

.text {
  z-index: 7;
  position: relative;
  margin: 40px 0px 0px 50px;
  width: 50%;
}

.text h3 {
  font-size: 40px;
  text-transform: uppercase;
  font-weight: bold;
}

.text h3,
.text p,
.text a {
  color: white;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.text p {
  font-size: 20px;
}

.text a {
  font-size: 24px;
}

#base__layer {
  scale: 1.2;
  filter: blur(3px);
}

#one__layer {
  margin-top: 350px;
}

#two__layer {
  margin-top: 200px;
}

#three__layer {
  margin-top: 150px;
}

#four__layer {
  margin-top: 100px;
}

#base__layer,
#one__layer,
#two__layer,
#three__layer,
#four__layer {
  transition: all 0.4s;
}

.text {
  opacity: 0;
  transition: opacity 0.3s;
}

.parallax__in_a {
  filter: blur(1px);
}

.parallax__in_b {
  scale: 1.05;
  filter: contrast(110%);
}

.parallax__in_c {
  filter: blur(2px);
}

.parallax__in_d {
  filter: blur(4px);
}




@media screen and (max-width: 1280px) {

  /*dw*/
  .index-dw-container,
  .dw-img {
    height: 500px;
  }

  .dw-img {
    background-size: cover;
  }
}

@media screen and (max-width: 1000px) {
  .main {
    width: 880px;
  }

  .storefront-breadcrumb {
    margin: 95px 0px 0px 0px;
  }
  .banner__video {
    margin-top: 0;
  }
  .main {
        margin: 0px 0px 0px !important;
  }

  @media screen and (max-width: 880px) {
    .main {
      width: 750px;
      margin-top: 75px;
    }

    /*watch*/
    .watch-container {
      height: 350px;
      background-size: cover;
    }

    .watch-content {
      width: 50%;
    }

    /* .collection-slider-main, .journal-slider-main {
      max-width: 750px;
    } */
    /* .collection-slider-content,.journal-slider-content{
        max-width: 700px;
        padding: 0;
        margin: auto;
    } */
    .collection-slider-content,
    .collection-image-container {
      height: 350px;
    }

    .collection-image-container {
      min-width: 44%;
    }

    .collection-info-description {
      max-height: 135px;
    }

    .collection-info-container {
      width: auto;
    }

    .collection-link {
      font-size: 18px;
    }

    /*journal*/
    .about-main-container .about-wrapper:first-child {
      display: none;
    }

    /*dw*/
    .index-dw-container,
    .dw-img {
      height: 400px;
    }

    .dw-img {
      background-size: cover;
      filter: brightness(0.4);
    }

    .index-dw-container:hover .dw-img {
      transform: none;
    }

    .dw-svg-logo {
      opacity: 1;
      z-index: 2;
    }

    .storefront-breadcrumb {
      margin: 95px 0px 0px 0px;
    }
  }
}

@media screen and (max-width: 768px) {
  .index {
    width: auto !important;
    margin: 75px 20px 90px;
  }

  .journal-slider-content {
    height: 235px;
  }

  .journal-item-container {
    padding: 20px 30px;
  }

  .collection-image-container {
    min-width: 50%;
  }

  .collection-info-container {
    padding: 20px 30px;
  }

  .about-wrapper {
    max-width: 335px;
  }

  .about-main-container {
    justify-content: center;
  }
}

@media screen and (max-width: 450px) {
  .index {
    margin-top: 0px !important;
  }

  /**/
  .journal-item-container .index-heading {
    margin: 15px 0px;
  }

  .owl-carousel {
    margin-bottom: var(--offset-usual);
  }

  .owl-carousel-newest {
    width: 100%;
    padding: 15px;
    height: 170px;
  }

  .owl-carousel-newest .owl-stage {
    gap: var(--offset-usual);
  }

  .newest-item img {
    border-radius: var(--radius-minimum);
    height: 100px;
    padding: 10px;
    min-width: 100px;
  }

  .newest-item p {
    font-size: 10px;
  }

  #parallax {
    width: 100%;

    height: 170px;
  }

  .layer {
    width: auto;
    height: auto;
  }

  .text {
    margin: 20px 0px 0px 30px;
  }

  .text h3 {
    font-size: 18px;
  }

  .text p {
    font-size: 12px;
  }

  .text a {
    font-size: 14px;
  }

  .watch-container-min {
    display: block;
    height: 180px;
    width: 100%;
    background-color: var(--color-dark-gray);
    border-radius: var(--radius-medium);
  }

  .new-item-container-min {
    display: flex;
    justify-content: space-between;
  }

  .new-item-content {
    width: 90px;
    height: 90px;
    background-color: var(--color-accent);
    border-radius: var(--radius-medium);
  }

  .new-item-content img {
    margin: auto;
    max-height: 100%;
    padding: 5px;
  }

  .new-item-content p {
    font-size: 10px;
    text-align: center;
  }

  .about-wrapper {
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-height: 100px;
  }

  .about-main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    transform: none;
    transition: none;
    padding: 15px;
  }

  .about-content p {
    font-size: 9px;
  }

  .about-content h3 {
    font-size: 18px;
  }

  .about-content a {
    font-size: 17px;
  }

  .about-link {
    display: none;
  }

  .index-dw-container a span svg {
    width: 300px;
  }

  .journal-slider-main,
  .collection-slider-main {
    width: auto;
  }

  .journal-item-container {
    padding: 20px 15px;
  }

  .journal-heading,
  .collection-heading {
    text-align: center;
    font-size: 12px;
  }

  .collection-heading {
    margin: 10px 0px;
  }

  .journal-text,
  .collection-text {
    font-size: 10px;
    text-align: justify;
  }

  .journal-link,
  .collection-link {
    font-size: 14px;
  }

  .journal-slider-content {
    height: 195px;
  }

  .collection-info-description {
    max-height: 100px;
    min-height: 100px;
  }

  .collection-item-container {
    flex-direction: column;
    height: 350px;
  }

  .collection-image-container {
    max-height: 150px;
    min-height: 150px;
  }

  .collection-info-container {
    padding: 10px 15px;
  }

  .collection-text {
    margin: 0;
  }

  .collection-link {
    bottom: -20px;
    position: absolute;
    float: none;
    right: 0;
    text-align: center;
    display: block;
    width: 100%;
  }

  .dots {
    display: none;
  }

  .index-dw-container,
  .dw-img {
    height: 215px;
  }
}
/*BANNERS */

.main {
  max-width: 100% !important;
}
  /* ===== ОБЩИЕ СТИЛИ ===== */
.grid__item-inner-long::after, .grid__item-inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 33%;
  background: linear-gradient(to top, rgba(72, 44, 35, 0.9), rgba(72, 44, 35, 0));
  pointer-events: none;
}

.jewelry-home {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.jewelry-home *,
.jewelry-home *::before,
.jewelry-home *::after {
  box-sizing: border-box;
}

/* ===== БАННЕРЫ (полная ширина) ===== */
.banner {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
  
  aspect-ratio: 21 / 8;
  border-radius: var(--radius-maximum);
}
.banner__gifts {
  height: 300px;
}
.banner__gifts .banner__overlay {
  align-items: center;
  justify-content: end;
}
.banner::after {
  content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 33%;
    background: linear-gradient(to top, rgba(72, 44, 35, 0.9), rgba(72, 44, 35, 0));
    pointer-events: none;
}

.banner--full {
  aspect-ratio: 21 / 6.5;
  border-radius: 0px 0px 20px 20px;
}

.banner--wide {
  aspect-ratio: 21 / 6;
}

.banner--bottom {
  aspect-ratio: 21 / 7;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--offset-usual);

}

.banner__overlay--right {
  justify-content: flex-end;
  padding-right: 40px;
}

.banner__overlay--center {
  flex-direction: column;
  text-align: center;
}

.banner__text {
  color: #c9a96e;
  font-size: 14px;
  font-family: 'Akimow Sans';
  letter-spacing: 1px;
}

.banner__heading {
  color: #fff;
  font-size: 70px;
  font-family: 'Akimow Sans';
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.banner__heading-emal {
  color: #fff;
  margin-top: 25%;
  font-size: 70px;
  font-family: 'Akimow Sans';
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.banner__heading--large {
  font-size: 42px;
  letter-spacing: 5px;
}

.banner__subtext {
  color: #fff;
  font-size: 16px;
  font-family: 'Akimow Sans';
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ===== СЕТКА ===== */
.grid-index {
  display: grid;
  width: 100%;
  margin-bottom: 12px;
}

/* --- Сетка категорий: 4 в ряд по умолчанию --- */
.grid--categories {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* --- Сетка из 3 блоков --- */
.grid--three {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* --- Сетка из 2 блоков --- */
.grid--two {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ===== КВАДРАТНЫЕ БЛОКИ 1:1 ===== */
.grid__item {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-maximum);
}

.grid__item-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-maximum);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid__item-inner-gender {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-maximum);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gender-right {
  justify-content: right;
}

.gender-left {
  justify-content: left;
}

.grid__item-inner-long  {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-maximum);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid__item-inner::before {
  content: '';
  position: absolute;
  inset: 0;

  z-index: 1;
}

.grid__item:hover .grid__item-inner {
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all .15s;
}

.grid__item:hover .grid__item-inner-long {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.grid__item:hover .grid__item-inner-gender {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.grid__label {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 32px;
  font-family: 'Akimow Sans';
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 8px;
  line-height: 42px;
}
.long-collections {
  padding: 12px 30px;
}

.grid__label--left {
  text-align: left;
  padding-right: 3px;
  align-self: flex-start;
  padding-top: 26px;
  font-size: 50px;
  font-weight: 800;
  width: 70%;
  line-height: 52px;
  margin-left: 28px;
  text-align: left;
  word-spacing: 100vw;
}

.grid__label--right {
  text-align: right;
    padding-right: 3px;
    align-self: flex-start;
    padding-top: 26px;
    font-size: 50px;
    font-weight: 800;
    width: 70%;
    line-height: 52px;
    margin-right: 28px;
    text-align: right;
    word-spacing: 100vw;
}

/* ===== АДАПТИВНОСТЬ: изменение отступов и количества колонок ===== */

/* Большие экраны — 4 колонки в категории, большие отступы */
@media (min-width: 1200px) {
  .jewelry-home {
    padding: 0 20px;
  }

  .grid--categories {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
  }

  .grid--three {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 16px;
  }

  .grid--two {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
  }

  .banner {
    margin-bottom: 16px;
  }
}

/* Очень большие экраны — можно 6 или 8 в ряд */
@media (min-width: 1600px) {
  .jewelry-home {
    max-width: 100%;
    padding: 0 20px;
  }

  .grid--categories {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--offset-usual);
    margin-bottom: var(--offset-usual);
  }

  .grid--three {
    gap: var(--offset-usual);
    margin-bottom: var(--offset-usual);
  }

  .banner {
    margin-bottom: var(--offset-usual);
  }
}

/* Средние экраны — 3 в ряд */
@media (max-width: 1199px) and (min-width: 768px) {
  .grid--categories {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--offset-smallest);
    margin-bottom: 10px;
  }

  .grid--three {
    gap: var(--offset-smallest);
    margin-bottom: 10px;
  }

  .grid--two {
    gap: var(--offset-smallest);
    margin-bottom: 10px;
  }

  .banner {
    margin-bottom: 10px;
  }

  .banner__heading {
    font-size: 22px;
  }
}

/* Планшеты — 3 в ряд, уменьшенные отступы */
@media (max-width: 767px) and (min-width: 480px) {
  .jewelry-home {
    padding: 0 8px;
  }

  .grid--categories {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }

  .grid--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }

  .grid--two {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }

  .banner {
    margin-bottom: 8px;
  }

  .banner__heading {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .banner__heading--large {
    font-size: 28px;
  }

  .grid__label {
    font-size: 11px;
    letter-spacing: 1px;
  }
}

/* Мобильные — 2 в ряд, минимальные отступы */
@media (max-width: 479px) {
  .site {
    margin-bottom: 0;
  }
  .footer-copyright {
    margin-bottom: 70px;
  }
  .wp-block-paragraph {display: none;}
  #burger_min,#search_min {
    filter: invert(1) brightness(1.5);
  }
  .grid__item-inner-gender {
    border-radius: var(--radius-minimum);
  }
  .footer-menu-min {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background-image: radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    transition: all .3s;
  }
  .footer-menu-min-item {
    filter: invert(1) brightness(10.5);
  }
  .header-title {
    letter-spacing: 10px;
  }
  .jewelry-home {
    padding: 0 6px;
  }
  .banner--full {
    aspect-ratio: 21 / 12;
  }
  .banner--wide {
    aspect-ratio: 21 / 10;
  }
  .grid__item-inner-long {
    border-radius: var(--radius-minimum);
  }
  .banner__heading-emal {
    color: #fff;
    margin: 0;
    font-size: 20px;
    font-family: 'Akimow Sans';
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  .banner__overlay {
    position: relative;
    z-index: 10;
    display: flex;
    height: 100%;
    align-items: flex-end;
    padding: 10px;
  }
  .banner__overlay--right {
    padding-right: 10px;
  }
  .grid--categories {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--offset-smallest);
    margin-bottom: 10px;
  }
  .grid__item {
    border-radius: var(--radius-minimum);
  }
  .grid--three {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 6px;
  }

  .grid--two {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 6px;
  }

  .banner {
    margin-bottom: 6px;
    border-radius: var(--radius-minimum);
  }

  .banner__heading {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .banner__heading--large {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .banner__subtext {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .grid__label {
    font-size: 16px;
    letter-spacing: 1px;
    padding: 10px 4px;
    line-height: 24px;
  }

  .grid__item-inner {
    border-radius: 4px;
  }
  .gender-left, .gender-right {
    aspect-ratio: 1 / 0.75;
  }
}

/* Промежуточное разрешение — плавное изменение отступов через clamp */
@media (min-width: 480px) and (max-width: 1199px) {
  .grid--categories,
  .grid--three,
  .grid--two {
    gap: clamp(6px, 1.5vw, 14px);
    margin-bottom: clamp(6px, 1.5vw, 14px);
  }

  .banner {
    margin-bottom: clamp(6px, 1.5vw, 14px);
  }
}