@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Medium.eot');
    src: url('../fonts/Gilroy-Medium.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Gilroy-Medium.woff2') format('woff2'),
        url('../fonts/Gilroy-Medium.woff') format('woff'),
        url('../fonts/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-SemiBold.eot');
    src: url('../fonts/Gilroy-SemiBold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Gilroy-SemiBold.woff2') format('woff2'),
        url('../fonts/Gilroy-SemiBold.woff') format('woff'),
        url('../fonts/Gilroy-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Regular.eot');
    src: url('../fonts/Gilroy-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Gilroy-Regular.woff2') format('woff2'),
        url('../fonts/Gilroy-Regular.woff') format('woff'),
        url('../fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica';
    src: url('../fonts/Helvetica.eot');
    src: url('../fonts/Helvetica.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Helvetica.woff2') format('woff2'),
        url('../fonts/Helvetica.woff') format('woff'),
        url('../fonts/Helvetica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html,
body {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

body {
  overflow-x: hidden;
}

button {
  cursor: pointer;
}

.wrapper {
  position: relative;
  overflow-x: hidden;
}

.section-padding {
  box-sizing: border-box;
  padding-left: 96px;
  padding-right: 96px;
}

.footer-swiper > .swiper-wrapper {
  -webkit-transition-timing-function: linear !important;
  -o-transition-timing-function: linear !important;
  transition-timing-function: linear !important;
}

.tablinks {
  font-family: 'Helvetica', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #aeaeae;
}

.tablinks.active-tab {
  font-weight: 600 !important;
  color: #d85140 !important;
}

.content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-column-gap: 24px;
  grid-row-gap: 48px;
  position: relative;
}

.input-search {
  border: 1px solid rgba(14, 14, 14, 0.1);
  border-radius: 1000px;
  padding: 8px 16px;
  width: 250px;
  height: 48px;
  font-family: 'Gilroy', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: #aeaeae;
}

.product-tablinks {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
}

.product-tabcontent {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-code-trigger {
  height: 36px;
  border: 1px solid rgba(14, 14, 14, 0.08);
  border-radius: 999px;
  padding: 0 13px;
  background-color: transparent;
  font-family: 'Helvetica', sans-serif;
  font-size: 13px;
  line-height: 100%;
  color: #9a9a9a;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.product-code-trigger:hover {
  border-color: rgba(14, 14, 14, 0.18);
  background-color: #f8f8f8;
  color: #686868;
}

.product-code-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(14, 14, 14, 0.42);
}

.product-code-modal:not(.hidden) {
  display: flex;
}

.product-code-modal.hidden {
  display: none !important;
}

.product-code-dialog {
  width: min(100%, 420px);
  border: 1px solid rgba(14, 14, 14, 0.08);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  background-color: #fff;
  box-shadow: 0 24px 80px rgba(14, 14, 14, 0.16);
}

.product-code-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(14, 14, 14, 0.08);
  border-radius: 50%;
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #fff;
  color: #8c8c8c;
  font-size: 24px;
  line-height: 28px;
}

.product-code-title {
  margin-bottom: 18px;
  padding-right: 40px;
  font-family: 'Gilroy', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 120%;
  color: #0e0e0e;
}

.product-code-text {
  font-family: 'Helvetica', sans-serif;
  font-size: 17px;
  line-height: 130%;
  color: #565656;
}

.product-code-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  margin-top: 18px;
  overflow: hidden;
  background-color: #ededed;
}

.product-code-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-color: #d85140;
  transition: width 1s linear;
}

.product-code-captcha-box {
  border: 1px solid rgba(14, 14, 14, 0.1);
  border-radius: 18px;
  margin: 16px 0;
  padding: 18px;
  background-color: #f8f8f8;
  text-align: center;
}

.product-code-captcha-box span {
  display: block;
  margin-bottom: 8px;
  font-family: 'Helvetica', sans-serif;
  font-size: 14px;
  line-height: 120%;
  color: #8c8c8c;
}

.product-code-captcha-box strong {
  display: block;
  font-family: 'Gilroy', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 110%;
  color: #0e0e0e;
}

.product-code-answer-row {
  display: flex;
  gap: 8px;
}

.product-code-answer-row input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(14, 14, 14, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  font-family: 'Helvetica', sans-serif;
  font-size: 16px;
  color: #0e0e0e;
}

.product-code-answer-row input:focus {
  border-color: #d85140;
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 81, 64, 0.12);
}

.product-code-answer-row button {
  height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  background-color: #d85140;
  color: #fff;
  font-family: 'Helvetica', sans-serif;
  font-size: 16px;
}

.product-code-answer-row button:disabled {
  opacity: 0.55;
}

.product-code-step-result {
  text-align: center;
}

.product-code-value {
  width: min(100%, 320px);
  border: 1px solid rgba(14, 14, 14, 0.1);
  border-radius: 18px;
  margin: 16px auto 0;
  padding: 16px 18px;
  background-color: #f8f8f8;
  font-family: 'Gilroy', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 100%;
  letter-spacing: 0.08em;
  color: #0e0e0e;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.product-code-value:hover {
  border-color: rgba(14, 14, 14, 0.24);
  background-color: #fff;
}

.product-code-copy-hint {
  margin-top: 10px;
  font-family: 'Helvetica', sans-serif;
  font-size: 14px;
  line-height: 130%;
  color: #8c8c8c;
}

.product-code-message {
  min-height: 18px;
  margin-top: 14px;
  font-family: 'Helvetica', sans-serif;
  font-size: 14px;
  line-height: 130%;
  color: #8c8c8c;
}

.product-code-message.is-error {
  color: #c0392b;
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* расстояние между кружками */
  margin: 20px 0;
  height: 24px;
}

/* Кружки */
.dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #404040;
  animation: pulse 1s infinite;
}

.dot1 {
  animation-delay: 0s;
}

.dot2 {
  animation-delay: 0.2s;
  background-color: #9A9A9A;
}

.dot3 {
  animation-delay: 0.4s;
  background-color: #E1E1E1;
}

/* Анимация пульсации */
@keyframes pulse {
  0%, 80%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  40% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.scrollbar-hide {
  -ms-overflow-style: none;  /* IE и Edge */
  scrollbar-width: none;     /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Opera */
}

.no-products {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.catalog-pagination {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.catalog-pagination__item,
.catalog-pagination__arrow,
.catalog-pagination__dots {
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Helvetica', sans-serif;
  font-size: 17px;
  line-height: 100%;
  color: #0e0e0e;
}

.catalog-pagination__item,
.catalog-pagination__arrow {
  border: 1px solid rgba(14, 14, 14, 0.14);
  background-color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.catalog-pagination__item:hover,
.catalog-pagination__arrow:hover,
.catalog-pagination__item.is-active {
  border-color: #d85140;
  background-color: #d85140;
  color: #fff;
}

.catalog-pagination__arrow.is-disabled {
  border-color: rgba(14, 14, 14, 0.08);
  color: #c4c4c4;
  pointer-events: none;
}

.catalog-pagination__dots {
  color: #aeaeae;
}

@media (max-width: 1441px) {
  .content {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .section-padding {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 960px) {
  .section-padding {
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 520px) {
  .tablinks {
    font-size: 18px;
  }
  
  .content {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-pagination {
    gap: 6px;
    margin-top: 36px;
  }

  .catalog-pagination__item,
  .catalog-pagination__arrow,
  .catalog-pagination__dots {
    min-width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .product-code-dialog {
    border-radius: 20px;
    padding: 20px;
  }

  .product-code-answer-row {
    flex-direction: column;
  }

  .product-code-answer-row button {
    width: 100%;
  }

  .product-code-value {
    max-width: 100%;
    font-size: 22px;
    word-break: break-all;
  }
}

@media (max-width: 460px) {
  .tablinks {
    font-size: 15px;
  }
  
  .content {
    grid-column-gap: 16px;
    grid-row-gap: 32px;
  }
  
  .input-search {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .section-padding {
    padding-left: 16px;
    padding-right: 16px;
  }
}
