.header {
  border-color: var(--color-dark);
}

.header__logo svg path {
  fill: var(--color-primary);
}

.header__search svg path {
  fill: var(--color-dark);
}

.header__lang {
  color: var(--color-dark);
}

.header__phone {
  color: var(--color-dark);
}

.header__menu a {
  color: var(--color-dark);
}

.header__catalog-link > .btn__text {
  color: var(--color-white);
}

.product-overview {
  padding-top: 12vh;
}

.product-overview__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.product-gallery {
  display: flex;
  gap: 13px;
  position: sticky;
  top: 40px;
  min-width: 0;
}

.product-thumbs {
  width: 120px;
  height: 456px;
  flex-shrink: 0;
}

.product-thumbs .swiper-slide {
  border-radius: var(--radius-m);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition:
    opacity 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: inset 0 0 0 2px transparent;
}

.product-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-main {
  flex-grow: 1;
  min-width: 0;
  height: 456px;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.product-main .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.product-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-main--placeholder {
  background-color: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-m);
  width: 100%;
  min-height: 300px;
}

.product-main--placeholder-logo {
  width: 50%;
  height: 50%;
  object-fit: contain;
  box-shadow: none;
}

.product-main__prev,
.product-main__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-main__prev:hover,
.product-main__next:hover {
  background-color: #d9781f;
}

.product-main__prev {
  left: 15px;
}

.product-main__next {
  right: 15px;
}

.product-main__prev.swiper-button-disabled,
.product-main__next.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

.icon-arrow-left,
.icon-arrow-right {
  position: relative;
  width: 19px;
  height: 10px;
  color: inherit;
}

.icon-arrow-left::before,
.icon-arrow-right::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  transform: translateY(-50%);
}

.icon-arrow-left::after,
.icon-arrow-right::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
}

.icon-arrow-left::after {
  left: 1px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
}

.icon-arrow-right::after {
  right: 1px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-info__title {
  font-size: 36px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 15px;
}

.product-info__descr {
  font-size: 15px;
  margin-bottom: 30px;
}

.product-info__btn {
  align-self: flex-start;
  margin-bottom: 50px;
  width: 100%;
  max-width: 200px;
  padding: 5px 5px 5px 20px;
}

.product-accordion {
  border: var(--border-width-thin) solid #000;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.prod-acc-item {
  border-bottom: var(--border-width-thin) solid #000;
}

.prod-acc-item:last-child {
  border-bottom: none;
}

.prod-acc-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: transparent;
  text-align: left;
  border: none;
  font-size: 16px;
  color: var(--color-dark);
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.prod-acc-header:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.prod-acc-item.is-open .prod-acc-header {
  background-color: #fcfcfd;
}

.prod-acc-header .chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-dark);
}

.prod-acc-item.is-open .chevron {
  transform: rotate(180deg);
}

.prod-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  background-color: #fcfcfd;
}

.prod-acc-item.is-open .prod-acc-body {
  grid-template-rows: 1fr;
}

.prod-acc-content {
  overflow: hidden;
}

.prod-acc-content p {
  padding: 0 25px 25px;
  margin: 0;
  line-height: 1.5;
}

.application-section {
  margin-top: 40px;
}

.application__title {
  margin-bottom: 20px;
}

.application__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.application__list--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
}

.application__list--centered .app-item {
  flex: 0 0 calc(25% - 26.25px);
}

.app-item {
  display: flex;
  flex-direction: column;
}

.app-item__icon {
  display: block;
  max-height: 80px;
  width: auto;
  margin-bottom: 5px;
  align-self: center;
}

.app-item__title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
  text-align: center;
  color: #d9781f;
}

.app-item__descr {
  font-size: 14px;
  margin: 0;
}

.downloads-section {
  margin-top: 40px;
  padding: 22px 0 27px;
  background-color: #ececec;
}

.downloads__title {
  margin-bottom: 20px;
}

.downloads__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  border: var(--border-width-thin) solid var(--color-dark);
  border-radius: var(--radius-m);
  padding: 10px 20px;
  text-decoration: none;
  color: var(--color-dark);
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.download-item:hover {
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(246, 139, 41, 0.05);
}

.download-item__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.download-item__name {
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  color: var(--color-dark);
}

.download-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background-color: #fff;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 400;
  color: var(--color-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.download-item__right {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.download-item__right svg {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.download-item:hover .download-item__right svg {
  transform: rotate(45deg);
}

.similar-products {
  margin-top: 40px;
  overflow: hidden;
}

.similar-products__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.similar-products__nav {
  display: flex;
  gap: 30px;
}

.custom-prev,
.custom-next {
  position: relative;
  width: 35px;
  height: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--color-dark);
  transition: opacity var(--transition-base);
}

.custom-prev:hover,
.custom-next:hover {
  opacity: 0.5;
}

.custom-prev.swiper-button-disabled,
.custom-next.swiper-button-disabled {
  opacity: 0.2;
  cursor: default;
}

.custom-prev::before,
.custom-next::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: currentColor;
}

.custom-next::after {
  content: "";
  position: absolute;
  right: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.custom-prev::after {
  content: "";
  position: absolute;
  left: 0;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-dark);
}

.product-card__img {
  width: 100%;
  aspect-ratio: 245 / 310;
  border-radius: var(--radius-m);
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.09);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card__img--placeholder {
  background-color: #ececec;
}

.product-placeholder-logo {
  width: 60% !important;
  height: 60% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.product-card__title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  transition: color var(--transition-base);
}

.product-card:hover .product-card__img {
  transform: translateY(-5px);
  box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.15);
}

.product-card:hover .product-card__title {
  color: var(--color-primary);
}

.contact-section {
  margin-top: 40px;
}

.contact-box {
  background-color: var(--color-primary);
  border-radius: var(--radius-l);
  padding: 40px;
  overflow: hidden;
}

.contact-box__title,
.wpcf7-form-control-wrap .contact-form__control,
.contact-form__bottom .contact-form__btn {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-box.is-revealed .contact-box__title,
.contact-box.is-revealed .wpcf7-form-control-wrap .contact-form__control,
.contact-box.is-revealed .contact-form__bottom .contact-form__btn {
  opacity: 1;
  transform: scaleX(1);
}

.contact-box .contact-box__title {
  transition-delay: 0s;
}

.wpcf7-form
  > span.wpcf7-form-control-wrap:nth-of-type(1)
  .contact-form__control {
  transition-delay: 0.15s;
}

.wpcf7-form
  > span.wpcf7-form-control-wrap:nth-of-type(2)
  .contact-form__control {
  transition-delay: 0.3s;
}

.contact-form__bottom span.wpcf7-form-control-wrap .contact-form__textarea {
  transition-delay: 0.45s;
}

.contact-form__bottom .contact-form__btn {
  transition-delay: 0.6s;
}

.contact-box__title {
  color: var(--color-white);
  margin-bottom: 20px;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wpcf7-form-control-wrap {
  display: block;
}

.contact-form__control {
  width: 100%;
  background-color: var(--color-white);
  border: none;
  border-radius: var(--radius-m);
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-dark);
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
}

.contact-form__control::placeholder {
  color: var(--color-dark);
}

.contact-form__control:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.contact-form__input-half {
  max-width: 50%;
}

.contact-form__bottom {
  display: flex;
  gap: 25px;
  align-items: flex-end;
}

.contact-form__bottom .wpcf7-form-control-wrap {
  flex: 1;
  width: 100%;
}

.contact-form__textarea {
  width: 100%;
  height: 120px;
  resize: none;
  display: block;
}

.contact-form__btn {
  flex-shrink: 0;
}

.wpcf7-response-output {
  margin: 0 !important;
  padding: 10px !important;
  border-radius: var(--radius-m) !important;
}

.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-dark);
}

.product-specs-table tr {
  border-bottom: 1px solid #e5e5e7;
  transition: background-color 0.2s ease;
}

.product-specs-table tr:last-child {
  border-bottom: none;
}

.product-specs-table tr:hover {
  background-color: rgba(246, 139, 41, 0.03);
}

.product-specs-table td {
  padding: 12px 16px;
  vertical-align: top;
  box-sizing: border-box;
}

.product-specs-table__label {
  font-weight: 600;
  color: #515154;
  width: 35%;
}

.product-specs-table__value {
  width: 65%;
}

.product-specs-table__value p {
  margin: 0;
}

@media (max-width: 992px) {
  .header__burger span {
    background: var(--color-dark);
  }

  .product-overview__wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-gallery {
    position: static;
  }

  .product-main {
    max-width: 100%;
  }

  .application__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .application__list--centered .app-item {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .contact-box {
    padding: 15px;
    padding-bottom: 25px;
  }

  .contact-box__title {
    text-align: center;
    margin-bottom: 15px;
  }

  .contact-form__textarea {
    flex: auto;
  }

  .contact-form__input-half {
    max-width: 100%;
  }

  .contact-form__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form__btn {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  .product-overview {
    padding-top: 15vh;
  }

  .product-gallery {
    flex-direction: column-reverse;
  }

  .product-thumbs {
    width: 100%;
    height: auto !important;
  }

  .product-thumbs .swiper-slide {
    height: 80px !important;
  }

  .product-main {
    max-width: 100%;
    height: 372px !important;
  }

  .product-info__title {
    font-size: 28px;
  }

  .application__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .application__list--centered {
    gap: 20px;
  }

  .application__list--centered .app-item {
    flex: 0 0 100%;
  }

  .product-specs-table td {
    padding: 10px 8px;
  }

  .product-specs-table__label {
    width: 45%;
    font-size: 13px;
  }

  .product-specs-table__value {
    width: 55%;
    font-size: 13px;
  }
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0s 0.4s;
}

.order-modal.is-active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.4s ease,
    visibility 0s 0s;
}

.order-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.order-modal__box {
  position: relative;
  z-index: 1;
  background-color: var(--color-primary);
  width: 100%;
  max-width: 480px;
  height: 100vh;
  padding: 60px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-modal.is-active .order-modal__box {
  transform: translateX(0);
}

.order-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.order-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.order-modal__title {
  font-size: 32px;
  font-weight: 500;
  color: var(--color-white);
  margin: 0;
}

.order-modal__product {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 20px;
  line-height: 1.4;
}

.order-modal .wpcf7-form-control-wrap .modal-form__control,
.order-modal .modal-form__bottom .modal-form__btn {
  opacity: 1;
  transform: none;
  transition: none;
}

.order-modal .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.order-modal .wpcf7-form-control-wrap {
  display: block;
}

.modal-form__control {
  width: 100%;
  background-color: #fff;
  border-radius: var(--radius-m);
  border: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-dark);
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.modal-form__control::placeholder {
  color: var(--color-dark);
}

.modal-form__input-half {
  max-width: 100%;
}

.modal-form__bottom {
  display: flex;
  justify-content: flex-start;
  margin-top: 5px;
}

.modal-form__btn {
  min-width: 180px;
  padding: 9px 9px 9px 22px;
}

.order-modal .wpcf7-not-valid.modal-form__control {
  box-shadow: 0 0 0 2px rgba(255, 80, 80);
}

.order-modal .wpcf7-not-valid-tip {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.order-modal .wpcf7-response-output {
  color: var(--color-white) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-m) !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  font-size: 14px;
}

.order-modal .wpcf7-mail-sent-ok.wpcf7-response-output {
  border-color: rgba(255, 255, 255, 0.6) !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.order-modal .wpcf7-mail-sent-ng.wpcf7-response-output,
.order-modal .wpcf7-spam-blocked.wpcf7-response-output {
  border-color: rgba(255, 80, 80, 0.6) !important;
  background-color: rgba(255, 80, 80, 0.15) !important;
}

@media (max-width: 576px) {
  .order-modal__box {
    max-width: 100%;
    padding: 60px 20px 30px;
  }

  .order-modal__title {
    font-size: 26px;
  }

  .modal-form__btn {
    width: 100%;
    justify-content: space-between;
  }
}
