/*
Theme Name: 1peredacha
Author: Sky Gooner
*/

.kpp-card__body {
  height: 100%;
}
/* 
.kpp-card__price {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.woocommerce-Price-currencySymbol.kpp-card__currency {
  display: inline-block;
  width: 0.72em;
  height: 1em;
  margin-left: 0.12em;
  font-size: 1rem;
  color: currentColor;
  background-color: currentColor;
  overflow: hidden;

  -webkit-mask: url("./assets/img/byn-symbol.svg") no-repeat center / contain;
  mask: url("./assets/img/byn-symbol.svg") no-repeat center / contain;
  position: relative;
  top: 8px;
}

.kpp-card__discount {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.kpp-card__price-value {
  font-size: 1.3rem;
}
.kpp-card__price--dscnt {

}

.kpp-card__discount-value {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

.kpp-card__discount-value::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-image: url("./assets/img/sale.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.kpp-card__price--discount {
  color: #fd1000;
}

.kpp-card__currency--old {
  font-size: 0.875rem;
  vertical-align: -0.08em;
} */

/* Price: card */

.kpp-card__price {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.kpp-card__price-value {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.kpp-card__price--discount {
  color: #fd1000;
}

/* Currency symbol */

.woocommerce-Price-currencySymbol.kpp-card__currency {
  display: inline-block;
  width: 0.72em;
  height: 1em;
  margin-left: 0.12em;
  font-size: 1rem;
  color: currentColor;
  background-color: currentColor;
  overflow: hidden;
  -webkit-mask: url("./assets/img/byn-symbol.svg") no-repeat center / contain;
  mask: url("./assets/img/byn-symbol.svg") no-repeat center / contain;
  position: relative;
  /* top: 8px; */
}

.kpp-card__currency--old {
  font-size: 0.875rem!important;
  /* vertical-align: -0.08em; */
}

/* Discount badge */

.kpp-card__discount {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.kpp-card__discount-value {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

.kpp-card__discount-value::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-image: url("./assets/img/sale.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Price: single product */

.product-price {
  color: #0f172a;
}

.product-price--discount {
  color: #fd1000;
}

.product-price__main {
  color: currentColor;
}

.product-price__integer {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.product-price__fraction {
  /* margin-bottom: 0.375rem; */
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.product-price__currency {
  /* margin-bottom: 0.375rem; */
  /* font-size: 1.5rem ; */
  font-size: 1.5em!important;
}

.product-price__text {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .product-price__integer {
    font-size: 4.5rem;
  }

  .product-price__fraction {
    /* margin-bottom: 0.5rem; */
    font-size: 1.875rem;
  }

  .product-price__currency {
    /* margin-bottom: 0.5rem; */
    /* font-size: 1.875rem !important; */
  }
}

.price {
  color: #0f172a;
}

.price--discount {
  color: #ef4444;
}

/* Карточка */

.price--card.kpp-card__price--discount .kpp-card__price-value,
.price--card.kpp-card__price--discount .kpp-card__currency {
  color: #ef4444;
}

/* Страница товара */

.price--single {
  margin-top: 0.75rem;
}

.price--single .price__main {
  color: #0f172a;
}

.price--single.price--discount .price__main {
  color: #ef4444;
}

.price--single .price__integer {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.price--single .price__fraction {
  margin-bottom: 0.375rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.price--single .price__main .kpp-card__currency {
  margin-bottom: 0.375rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.price--single .price__text {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .price--single .price__integer {
    font-size: 4.5rem;
  }

  .price--single .price__fraction {
    margin-bottom: 0.5rem;
    font-size: 1.875rem;
  }

  .price--single .price__main .kpp-card__currency {
    margin-bottom: 0.5rem;
    font-size: 1.875rem;
  }
}

.text > * {
  margin-bottom: 15px;
}

.post-single__img img {
  aspect-ratio: 16 / 7;
}

.item-blog {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.item-blog__img-ibg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.item-blog:hover .item-blog__img-ibg img {
  transform: scale(1.04);
}

.item-blog__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-slider__pagination .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.65;
}

.hero-slider__pagination .swiper-pagination-bullet-active {
  background: #dc2626;
  opacity: 1;
}

.kpp-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.client-pill.is-active {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}

.order-field:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* Header navigation */
.site-header .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header .menu-item {
  position: relative;
}

.site-header .menu-item > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-header .menu-item > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-header .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  min-width: 230px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.site-header .menu-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .sub-menu .menu-item > a {
  width: 100%;
  justify-content: space-between;
  color: #0f172a;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
}

.site-header .sub-menu .menu-item > a:hover {
  color: #dc2626;
  background: #fef2f2;
}

.site-header .sub-menu .sub-menu {
  top: 0;
  left: calc(100% + 8px);
}

/* Burger */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(226, 232, 240, 0.25);
  border-radius: 12px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.nav-overlay {
  display: none;
}

/* Mobile navigation */
@media (max-width: 1023px) {
  .burger {
    display: inline-flex;
  }

  .site-header .nav {
    position: fixed;
    top: 16px;
    right: 16px;
    left: 16px;
    bottom: 16px;
    z-index: 333;
    display: block;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border-radius: 18px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  body.nav-open .site-header .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) !important;
    overflow: visible;
    pointer-events: visible;
  }

  .site-header .nav-list {
    display: block;
    /* overflow: hidden;
    pointer-events: none; */
  }

  .site-header .menu-item > a {
    width: 100%;
    justify-content: space-between;
    color: #0f172a;
  }

  .site-header .menu-item > a:hover {
    color: #dc2626;
    background: #fef2f2;
  }

  .site-header .sub-menu,
  .site-header .sub-menu .sub-menu {
    position: static;
    min-width: 0;
    margin: 4px 0 4px 12px;
    padding: 4px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f8fafc;
  }

  body.nav-open .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    background: rgba(15, 23, 42, 0.45);
  }
}

/* Table of contents */
.toc-aside__list {
  display: grid;
  gap: 6px;
}

.toc-aside__list a {
  display: block;
  border-radius: 10px;
  padding: 7px 9px;
  color: #475569;
  font-size: 14px;
  line-height: 1.35;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.toc-aside__list a:hover,
.toc-aside__list .is-active a {
  color: #dc2626;
  background: #fef2f2;
}

/* Product */
.product-gallery__thumbs .swiper-slide-thumb-active .product-gallery__thumb {
  border-color: #dc2626;
}

.product-gallery__thumbs .swiper-slide {
  height: auto;
}

.product-summary__card,
.product-info,
.product-details {
  border-radius: 16px;
}

@media (max-width: 640px) {
  .product-gallery__main .js-kpp-prev,
  .product-gallery__main .js-kpp-next {
    width: 36px;
    height: 36px;
  }
}

/* Blog pagination */
.blog-archive__pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.blog-archive__pagination .page-numbers:hover,
.blog-archive__pagination .page-numbers.current {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

/* Content typography */
.text {
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.text > *:first-child {
  margin-top: 0;
}

.text > *:last-child {
  margin-bottom: 0;
}

.text p {
  margin: 0 0 18px;
}

.text h2 {
  margin: 36px 0 16px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text h3 {
  margin: 28px 0 14px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text h4 {
  margin: 24px 0 12px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.text a {
  color: #dc2626;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text a:hover {
  text-decoration: none;
}

.text ul,
.text ol {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}

.text li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
}

.text ul li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #dc2626;
}

.text ol {
  counter-reset: text-counter;
}

.text ol li {
  counter-increment: text-counter;
}

.text ol li::before {
  content: counter(text-counter) ".";
  position: absolute;
  top: 0;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

.text li > ul,
.text li > ol {
  margin-top: 10px;
  margin-bottom: 0;
}

.text blockquote {
  margin: 28px 0;
  border-left: 4px solid #dc2626;
  border-radius: 0 16px 16px 0;
  background: #f8fafc;
  padding: 18px 20px;
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
}

.text strong,
.text b {
  color: #0f172a;
  font-weight: 700;
}

.text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: 20px;
}

.text figure {
  margin: 28px 0;
}

.text figure img {
  margin: 0;
}

.text figcaption {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.text table {
  width: 100%;
  margin: 28px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 14px;
}

.text th,
.text td {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.text th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.text tr:last-child td {
  border-bottom: 0;
}

.text code {
  border-radius: 8px;
  background: #f1f5f9;
  padding: 2px 6px;
  color: #0f172a;
  font-size: 0.9em;
}

.text pre {
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 16px;
  background: #0f172a;
  padding: 18px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.7;
}

.text pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.text hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 767px) {
  .text {
    font-size: 15px;
    line-height: 1.7;
  }

  .text h2 {
    margin-top: 30px;
    font-size: 24px;
  }

  .text h3 {
    font-size: 20px;
  }

  .text img,
  .text figure,
  .text table,
  .text blockquote {
    margin-top: 24px;
    margin-bottom: 24px;
  }
}


/* FAQ / Rank Math accordion */
#rank-math-faq.rank-math-block {
  margin-top: 32px;
}

#rank-math-faq .rank-math-list {
  display: grid;
  gap: 12px;
}

#rank-math-faq .rank-math-list-item {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

#rank-math-faq .rank-math-list-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

#rank-math-faq .rank-math-list-item.is-open {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
}

#rank-math-faq .rank-math-question {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

#rank-math-faq .rank-math-question__button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

#rank-math-faq .rank-math-question__button:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.25);
  outline-offset: -3px;
}

#rank-math-faq .rank-math-question__text {
  flex: 1;
}

#rank-math-faq .rank-math-question__icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

#rank-math-faq .rank-math-question__icon::before,
#rank-math-faq .rank-math-question__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #dc2626;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

#rank-math-faq .rank-math-question__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

#rank-math-faq .rank-math-list-item.is-open .rank-math-question__icon {
  background: #dc2626;
  border-color: #dc2626;
  transform: rotate(180deg);
}

#rank-math-faq .rank-math-list-item.is-open .rank-math-question__icon::before,
#rank-math-faq .rank-math-list-item.is-open .rank-math-question__icon::after {
  background: #fff;
}

#rank-math-faq .rank-math-list-item.is-open .rank-math-question__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

#rank-math-faq .rank-math-answer {
  padding: 0 20px 18px;
  color: #475569;
  font-size: 16px;
  line-height: 1.65;
}

#rank-math-faq .rank-math-answer p {
  margin: 0;
}

#rank-math-faq .rank-math-answer p + p {
  margin-top: 10px;
}

@media (max-width: 640px) {
  #rank-math-faq.rank-math-block {
    margin-top: 24px;
  }

  #rank-math-faq .rank-math-list {
    gap: 10px;
  }

  #rank-math-faq .rank-math-list-item {
    border-radius: 16px;
  }

  #rank-math-faq .rank-math-question {
    font-size: 16px;
  }

  #rank-math-faq .rank-math-question__button {
    padding: 16px;
    gap: 12px;
  }

  #rank-math-faq .rank-math-question__icon {
    width: 30px;
    height: 30px;
  }

  #rank-math-faq .rank-math-answer {
    padding: 0 16px 16px;
    font-size: 15px;
  }
}