@import "@fancyapps/ui/dist/fancybox.css";

.filterSection {
  margin-top: 64px;
}

.filter__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 33px;
  row-gap: 12px;
}

.filter {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.3s;
  color: #1B1C2F;
}

.filter:hover {
  color: var(--blue);
  transition: 0.3s;
}

.activeFilter {
  color: var(--blue);
}

.filter__name {
  font-family: "Roboto";
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.filter__number {
  font-family: "Roboto";
  font-size: 18px;
  line-height: 24px;
  border: 1px solid #EBEBEB;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.allProducts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}

.product {
  border: 1px solid var(--light-blue);
  border-radius: 24px;
  overflow: hidden;
  color: var(--blue);
}

.productLink {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 36px;
  position: relative;
}

.productLink:hover {
  background-color: var(--blue);
  color: var(--white);
  transition: 0.3s;
}

.product__image {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
  width: 100%;
  height: 365px;
}

.productImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.product__title {
  font-family: "Exo 2";
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  text-align: center;
}

.product__stats {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.classes {
  font-family: "Roboto";
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 10px;
}

.status {
  background-color: #FCE8F3;
  color: var(--pink);
}

.weight {
  background-color: var(--light-blue);
  color: var(--blue);
}

.class {
  background-color: #E7FFDF;
  color: #48C81E;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 56px;
}

.centerButton {
  font-family: "Exo 2";
  font-size: 20px;
  line-height: 28px;
  color: var(--pink);
  border: 1px solid var(--pink);
  padding: 26px 87px;
  border-radius: 20px;
  transition: 0.3s;
  text-align: center;
  cursor: pointer;
}

.centerButton:hover {
  color: var(--white);
  background-color: var(--pink);
  transition: 0.3s;
}

/* ===== Product-inner ===== */
.aboutProductSection {
  margin-top: 64px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.productNavigation {
  display: flex;
  flex-direction: column;
  gap: 44px;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  padding-top: 20px;
  background-color: #fff;
}

.activeSquare {
  border: 2px solid var(--pink);
  transition: 0.3s;
}

#productTopBtn {
  background: none;
}

.square {
  position: relative;
  width: 88px;
  height: 88px;
  background-color: var(--light-blue);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.square:hover {
  border: 2px solid var(--pink);
}

.square img {
  max-width: 80%;
  object-fit: fill;
  max-height: 80%;
  width: 100%;
  height: 100%;
}

.square__icon {
  width: 32px;
  height: 32px;
  color: var(--blue);
}

.productImageSquare {
  position: relative;
  width: 100%;
  height: 100%;
}

.mainProduct {
  flex: 1 1 auto;
  margin: 0 136px;
  overflow-y: scroll;
}

.mainProduct::-webkit-scrollbar {
  width: 4px;
  border-radius: 4px;
  background-color: var(--white);
}

.mainProduct::-webkit-scrollbar-thumb {
  background-color: #EBEBEB;
  border-radius: 8px;
}

.productMainImageSection {
  position: relative;
  max-width: 60%;
  margin: 0 auto;
  width: 100%;
  height: 480px;
}

.productMainImageSection>img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.productInfoSection {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 104px;
}

.textRegular {
  font-family: "Roboto";
  font-size: 20px;
  line-height: 32px;
  color: #353437;
}

.textSemibold {
  font-family: "Roboto";
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
}

.sostavDiv {
  display: flex;
  gap: 16px;
}

.productImageSection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.productImage__div {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 40px;
  overflow: hidden;
}

.productImage__div:nth-child(1) {
  grid-column: span 2/ span 2;
  height: 360px;
}

.productImage__div img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.productMainInfo {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  padding-top: 20px;
  max-width: 320px;
  width: 100%;
  color: #020105;
  background-color: #fff;
}

.productName {
  font-family: "Exo 2";
  font-size: 32px;
  line-height: 40px;
  font-weight: 500;
}

.productWeight {
  font-family: "Roboto";
  font-size: 40px;
  line-height: 48px;
  font-weight: 500;
  margin-top: 28px;
  margin-bottom: 36px;
}

.partners__text {
  font-family: "Roboto";
  font-size: 16px;
  line-height: 20px;
}

.partners {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.partners__partners {
  display: flex;
  flex-wrap: wrap;
  column-gap: 56px;
  row-gap: 12px;
}

.blue {
  color: var(--blue);
}

.partners .blue:hover {
  text-decoration: underline;
  cursor: pointer;
}

.callBtn {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.callBtn__inner {
  font-family: "Exo 2";
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: var(--white);
  background-color: var(--pink);
  padding: 20px 85px;
  border-radius: 20px;
  transition: 0.3s;
  text-align: center;
  cursor: pointer;
}

.callBtn__inner:hover {
  box-shadow: 0 10px 30px rgba(239, 28, 148, 0.5);
  transition: 0.3s;
}

.callBtn__inner:active,
.submitBtn:active {
  transform: scale(0.95);
  transition: 0.3s;
}

.aboutProduction_mini {
  display: none;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.5s ease;
  transition: 0.5s;
  z-index: 10;
  align-items: center;
  justify-content: center;
}

.modal__inner {
  padding: 50px;
  background-color: var(--white);
  max-width: 1070px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-radius: 32px;
}

.modalForm {
  max-width: 660px;
  width: 100%;
  margin-top: 48px;
}

.textarea {
  height: 150px;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.textarea::placeholder {
  position: absolute;
  top: 16px;
  left: 16px;
}

.modalTitle {
  font-family: "Exo 2";
  font-size: 56px;
  line-height: 72px;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 600;
}

.closeBtn {
  position: absolute;
  top: 36px;
  right: 36px;
  width: 36px;
  height: 36px;
  color: var(--blue);
  cursor: pointer;
  transition: 0.3s;
}

.closeBtn:active {
  transform: scale(0.75);
  transition: 0.3s;
}

.circlesDiv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 44px;
}

.circle {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 8px;
  background-color: rgba(227, 24, 139, 0.08);
}

.circleTextDiv {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

#lastChild {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-direction: column;
}

.key {
  font-family: "Roboto";
  font-size: 16px;
  line-height: 28px;
  font-weight: 500;
}

.value {
  font-family: "Roboto";
  font-size: 20px;
  line-height: 28px;
  color: var(--blue);
  font-weight: 500;
}

.circleSvg {
  width: 48px;
  height: 48px;
}

.gridModal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.fancybox__slide {
  flex-direction: column-reverse;
}

@media (max-width: 1800px) {
  .productLink {
    padding: 24px;
  }

  .modalTitle {
    font-size: 48px;
    line-height: 52px;
  }

  .modalForm {
    margin-top: 32px;
  }

  .product__image {
    max-width: 80%;
    margin: 0 auto;
    height: 300px;
  }

  .product__title {
    max-width: 80%;
    margin: 0 auto;
    font-size: 24px;
    line-height: 28px;
  }

  .classes {
    font-size: 14px;
    line-height: 22px;
  }

  .center {
    margin-top: 40px;
  }

  .centerButton {
    padding: 18px 43.5px;
  }

  .filter__name,
  .filter__number {
    font-size: 16px;
  }

  .productMainImageSection {
    height: 380px;
  }

  .square {
    width: 68px;
    height: 68px;
  }

  .productInfoSection {
    gap: 16px;
    margin-top: 32px;
  }

  .textRegular {
    font-size: 16px;
    line-height: 24px;
  }

  .textSemibold {
    font-size: 18px;
    line-height: 26px;
  }

  .productImageSection {
    margin-top: 32px;
  }

  .productName {
    font-size: 24px;
    line-height: 30px;
    max-width: 60%;
  }

  .productWeight {
    font-size: 32px;
    line-height: 36px;
  }

  .partners {
    max-width: 60%;
  }

  .partners__text {
    font-size: 14px;
    line-height: 22px;
  }

  .callBtn__inner {
    padding: 16px 60px;
  }
}

@media (max-width: 1440px) {
  .modal__inner {
    max-width: 920px;
  }

  .modalForm {
    margin-top: 24px;
  }

  .modalTitle {
    font-size: 32px;
    line-height: 48px;
  }

  .mainProduct {
    margin: 0 80px;
  }

  .partners {
    max-width: 100%;
  }

  .productName {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .circle {
    width: 130px;
    height: 130px;
  }

  .key {
    font-size: 14px;
    line-height: 20px;
  }

  .value {
    font-size: 16px;
    line-height: 24px;
  }

  .circlesDiv {
    gap: 8px;
  }

  .circleSvg {
    width: 40px;
    height: 40px;
  }

  .circleTextDiv {
    align-items: center;
  }

  .allProducts__inner {
    margin-top: 32px;
  }

  .filterSection {
    margin-top: 32px;
  }

  .product__image {
    max-width: 90%;
    height: 240px;
  }

  .product__title {
    max-width: 90%;
    font-size: 20px;
    line-height: 26px;
  }

  .classes {
    padding: 8px 16px;
  }

  .filter__name,
  .filter__number {
    font-size: 14px;
    line-height: 22px;
  }

  .mainProduct {
    margin: 0 60px;
  }

  .productMainImageSection {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .modal__inner {
    max-width: 100%;
    height: 100%;
    justify-content: center;
    border-radius: 0;
  }

  .allProducts__inner {
    grid-template-columns: 1fr 1fr;
  }

  .product__image {
    max-width: 80%;
  }

  .product__title {
    max-width: 80%;
  }

  .center {
    margin-top: 32px;
  }

  .centerButton {
    font-size: 16px;
    line-height: 24px;
    width: 100%;
  }

  .activeFilter {
    background-color: var(--blue);
    color: var(--white);
  }

  .filter__inner {
    flex-wrap: nowrap;
    overflow-x: scroll;
    justify-content: flex-start;
    gap: 12px;
  }

  .filter {
    padding: 10px 13px;
    border: 1px solid #EBEBEB;
    border-radius: 16px;
    min-width: 120px;
    align-items: center;
    justify-content: center;
  }

  .filter__name {
    font-weight: 400;
  }

  ::-webkit-scrollbar {
    display: none;
  }

  .filter__number {
    border: none;
    width: auto;
    height: auto;
  }

  .classes {
    font-weight: 500;
  }

  .aboutProductSection {
    display: none;
  }

  .aboutProduction_mini {
    display: flex;
    flex-direction: column;
  }

  .productMainImageSection {
    height: 370px;
    margin-top: 40px;
  }

  .productMainInfo {
    position: static;
    max-width: 100%;
    margin-top: 32px;
  }

  .productName {
    font-size: 24px;
    line-height: 32px;
  }

  .productWeight {
    font-size: 32px;
    line-height: 40px;
    margin-top: 16px;
    margin-bottom: 32px;
  }

  .partners {
    gap: 14px;
  }

  .partners__text {
    font-size: 16px;
    line-height: 20px;
  }

  .callBtn__inner {
    width: 100%;
  }

  .productImage__div {
    border-radius: 24px;
  }
}

@media (max-width: 600px) {
  .modalTitle {
    font-size: 28px;
    line-height: 32px;
    text-align: center;
  }

  .gridModal {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .closeBtn {
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
  }

  .allProducts__inner {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .productLink {
    gap: 12px;
  }

  .product__image {
    height: 325px;
  }

  .product__title {
    font-size: 22px;
    line-height: 28px;
  }

  .centerButton {
    font-size: 16px;
    line-height: 20px;
  }

  .filterSection {
    margin-top: 40px;
  }

  .productMainImageSection {
    max-width: 80%;
  }

  .partners__partners {
    max-width: 60%;
  }

  .productInfoSection {
    margin-top: 56px;
  }

  .sostavDiv {
    gap: 12px;
  }

  .textRegular {
    font-size: 14px;
    line-height: 20px;
  }

  .textSemibold {
    font-size: 20px;
    line-height: 28px;
  }

  .productImageSection {
    margin-top: 24px;
    gap: 12px;
  }

  .productImage__div:nth-child(1) {
    height: 182px;
  }

  .productImage__div {
    height: 182px;
  }
}

@media (max-width: 400px) {
  .circlesDiv {
    flex-direction: column;
  }

  .circle {
    width: 160px;
    height: 160px;
  }
}