*,
*::before,
*::after {
  box-sizing: border-box;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body {
  margin: 0;
  font-family: "Content_Font", sans-serif;
  min-height: 150vh;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Kiçik telefonlar */
@media (max-width: 359px) {
  .container {
    padding-inline: 12px;
  }
}

/* Telefonlar */
@media (min-width: 360px) {
  .container {
    max-width: 100%;
  }
}

/* Tabletlər */
@media (min-width: 768px) {
  .container {
    max-width: 750px;
  }
}

/* Kiçik laptoplar */
@media (min-width: 992px) {
  .container {
    max-width: 970px;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
}

/* Böyük desktop */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

/* Ultra-wide ekranlar */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
}

.main_nav {
    display: flex;
    align-items:center;
    gap: 48px;
    font-size: 14px;
    padding-block: 16px;
    font-weight: 500;
    color: #fff;
}
.other_nav a>img {
    filter: invert(1);
}
.other_nav {
    display: flex;
    align-items:center;
    gap: 48px;
    font-size: 14px;
    padding-block: 16px;
    font-weight: 500;
}

.overlay_header.scrolled {
  background-color: #fff;
  height: 100%;
  box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.1);
}

.overlay_header.scrolled ~ .container nav {
  color: #000;
}

.overlay_header.scrolled ~ .container nav button {
  border-color: #000;
}

.overlay_header.scrolled ~ .container nav img {
  filter: brightness(0);
}
.overlay_video {
  background: #000000;
  background: -webkit-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.71) 0%,
    rgba(0, 0, 0, 0.13) 57%
  );
  background: -moz-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.71) 0%,
    rgba(0, 0, 0, 0.13) 57%
  );
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.71) 0%,
    rgba(0, 0, 0, 0.13) 57%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=0);
}
#livechat_button::before,
#livechat_button::after {
  animation: amo-button-wave 2.6s linear 0s infinite;
  background: inherit;
  border-radius: inherit;
  content: "";
  display: block;
  height: 100% !important;
  left: 0;
  position: absolute;
  width: 100% !important;
  z-index: 0;
}
#livechat_button::after {
  animation-delay: 1.3s;
}
.amo_animation_waves:before {
  animation-delay: 0s;
}
@keyframes amo-button-wave {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}
#fixed_wp {
  width: 60px;
  height: 60px;
  bottom: 17.5px;
  right: 56px;
  position: absolute;
  border-radius: 100%;
  border: 2px solid transparent;
}
.circlephone,
.circle-fill {
  box-sizing: content-box;
  position: absolute;
  -webkit-box-sizing: content-box;
  border-radius: 100%;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}
.circlephone {
  border: 2px solid #000000;
  width: 150px;
  height: 150px;
  bottom: -30px;
  right: 5px;
  opacity: 0.5;
  -webkit-animation: 2.4s ease-in-out infinite circle-anim !important;
  animation: 2.4s ease-in-out infinite circle-anim !important;
}
.circle-fill {
  background-color: #000000;
  width: 100px;
  height: 100px;
  bottom: -5px;
  right: 30px;
  border: 2px solid transparent;
  -webkit-animation: 2.3s ease-in-out infinite circle-fill-anim;
  animation: 2.3s ease-in-out infinite circle-fill-anim;
}
@keyframes circle-anim {
  0% {
    -webkit-transform: rotate(0) scale(0.5) skew(1deg);
    transform: rotate(0) scale(0.5) skew(1deg);
    opacity: 0.1;
  }

  30% {
    -webkit-transform: rotate(0) scale(0.7) skew(1deg);
    transform: rotate(0) scale(0.7) skew(1deg);
    opacity: 0.5;
  }
  100% {
    -webkit-transform: rotate(0) scale(1) skew(1deg);
    transform: rotate(0) scale(1) skew(1deg);
    opacity: 0.1;
  }
}
@keyframes circle-fill-anim {
  0%,
  100% {
    -webkit-transform: rotate(0) scale(0.7) skew(1deg);
    transform: rotate(0) scale(0.7) skew(1deg);
    opacity: 0.2;
  }

  50% {
    -webkit-transform: rotate(0) scale(1) skew(1deg);
    transform: rotate(0) scale(1) skew(1deg);
    opacity: 0.2;
  }
}
#fixed_wp svg {
  fill: #000000;
  -webkit-background-size: 40px 40px;
  width: 60px;
  height: 60px;
  background-repeat: no-repeat;
  animation-name: tossing;
  -webkit-animation-name: tossing;
  animation-duration: 1.5s;
  -webkit-animation-duration: 1.5s;
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
}
@keyframes tossing {
  0%,
  100% {
    -webkit-transform: rotate(-8deg);
    transform: rotate(-8deg);
  }

  50% {
    -webkit-transform: rotate(8deg);
    transform: rotate(8deg);
  }
}
.service_card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5);
}

.portfolio_carousel_viewport {
  overflow: hidden;
  width: 100%;
  margin-top: 48px;
}

#portfolio_wrapper_infinite_carousel {
  display: flex;
  gap: 24px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
}

#portfolio_wrapper_infinite_carousel.is-dragging {
  cursor: grabbing;
}

#portfolio_wrapper_infinite_carousel a {
  flex: 0 0 calc((100% - 48px) / 3);
  height: 700px;
  position: relative;
}

#about_portfolio #portfolio_wrapper_infinite_carousel a {
  height: 500px;
}

#portfolio_wrapper_infinite_carousel img {
  display: block;
  width: 100%;
  height: calc(100% - 40px);
  object-fit: cover;
  pointer-events: none;
}

#portfolio_wrapper_infinite_carousel a,
#portfolio_wrapper_infinite_carousel p {
  -webkit-user-drag: none;
}
#portfolio_wrapper_infinite_carousel p {
  font-weight: 600;
}

@media (max-width: 767px) {
  #portfolio_wrapper_infinite_carousel a {
    flex-basis: 78%;
  }
}
#portfolio_wrapper_infinite_carousel a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 40px);
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#portfolio_wrapper_infinite_carousel a:hover::before {
  opacity: 1;
}

/* products */
#products_section {
  background: url("https://fedorova.ru/media/e1abc605-f672-4942-9440-c89944686d61.webp")
    center/cover no-repeat;
  height: 100svh;
  position: relative;
  margin-top: 60px;
}

#products_section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000000;
  background: -webkit-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  background: -moz-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=0);
}
.product_card p {
  transition: all 0.3s ease;
}
.product_card:hover p {
  color: #fff;
}
.product_card:hover .front_img {
  opacity: 0;
}

.product_card .front_img {
  transition: all 1s cubic-bezier(0.25, 1, 0.3, 1);
}
.product_card .back_img {
  transition: all 1s cubic-bezier(0.25, 1, 0.3, 1);
  transform: scale(1.1);
}

.product_card:hover .back_img {
  opacity: 1;
  transform: scale(1);
}

#fixed_right_phone {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
#right_box {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}
#right_box.active {
  right: 0px;
}
@property --border-progress {
  syntax: "<angle>";
  initial-value: 360deg;
  inherits: false;
}

.close_right_box {
  position: relative;
  border-radius: 50%;
}

.close_right_box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;

  background: conic-gradient(
    from -90deg,
    #ccc var(--border-progress),
    transparent 0
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

#right_box.active .close_right_box::before {
  animation: border_loader 2s ease-in-out forwards;
}

@keyframes border_loader {
  from {
    --border-progress: 360deg;
  }

  to {
    --border-progress: 0deg;
  }
}

.about_faq li::marker {
  font-weight: bold;
}
.custom_checkbox::after {
  content: "";
  position: absolute;
  background: #1d5960;
  padding: 4px;
  border-radius: 0;
  top: 6px;
  left: 6px;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  transform: scale(1);
}
.custom_checkbox.active::after {
  transform: scale(0);
}
