/* start form 7 */

.wpcf7-spinner {
  display: none !important;
}

.wpcf7-not-valid {
  border: 1px solid #dc3232;
  background: rgba(220, 50, 50, .2);
}

.wpcf7-not-valid:hover {
  border: 1px solid #dc3232 !important;
}

.wpcf7-not-valid-tip {
  display: none !important;
}

.wpcf7 form.invalid .wpcf7-response-output {
  display: none !important;
}


.wpcf7 form.sent .wpcf7-response-output {
  border-color: #4435f1;
}

/* eof form 7 */

/* Архив новостей */
.news-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 150px 30px;
}

.breadcrumbs {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumbs a {
  color: #0073aa;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-item {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  padding-bottom: 20px;
  position: relative;
  margin: 0;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
  height: 200px;
  overflow: hidden;
}

.news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-thumbnail img {
  transform: scale(1.05);
}

.news-title {
  margin: 15px 20px;
  font-size: 1.2rem;

  min-height: 3.6em;
  /* Примерная высота 3 строк */
  color: #000;
  transition: all .3s;
}

.news-grid {
  .news-title {
    /* Ограничение до 3 строк */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-title:hover {
    color: #007aff;
  }
}



.news-excerpt {
  padding: 0 20px;
  color: #666;
  margin-bottom: 15px;
  /* Ограничение до 5 строк */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 7.5em;
  /* Примерная высота 5 строк */
  line-height: 1.5em;
}

.read-more {
  display: block;
  margin: 0 20px 15px;
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

.news-item time {
  display: block;
  padding: 0 20px;
  color: #888;
  font-size: 0.9rem;
}

/* Стили пагинации */
.news-pagination {
  margin-top: 50px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 2px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  transition: all 0.3s;
}

.pagination .page-numbers.current {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

.pagination a.page-numbers:hover {
  background: #f0f0f0;
}

/* Отдельная новость */
.news-single {
  max-width: 800px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

.breadcrumbs {
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumbs a {
  color: #0073aa;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.news-header {
  margin-bottom: 30px;
}

.news-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.news-meta {
  color: #666;
  font-size: 0.95rem;
  display: flex;
  gap: 20px;
}

.news-featured-image {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
}

.news-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.news-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.news-content p {
  margin-bottom: 1.5em;
}

.news-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 0.9rem;
}

.news-tags {
  margin-top: 10px;
}

.news-tags a {
  color: #0073aa;
  text-decoration: none;
  margin-right: 10px;
}

.news-tags a:hover {
  text-decoration: underline;
}

.yith-wcwl-add-to-wishlist-button__label,
.yith-wcwl-feedback-messages-container,
.woocommerce-result-count {
  display: none !important;
}

.woocommerce-no-products-found {
  margin-bottom: 50px;

  .woocommerce-info {
    background-color: transparent;
  }
}

.page-header {
  margin-bottom: 50px;
}

.site-main {
  padding-bottom: 50px;
}

@media (max-width: 991.98px) {
  .site-main {
    padding-top: 80px;

  }
}

/* .info_page {
 
  h1 {
    font-size: 2.5rem;
    margin: 2rem 0 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
  }

  h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }

  h4 {
    font-size: 1.25rem;
    margin: 1.8rem 0 0.8rem;
    color: #666;
  }

  h5 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  h6 {
    font-size: 1rem;
    margin: 1.5rem 0 0.7rem;
    color: #666;
  }

  p {
    margin: 0 0 1.5rem;
    text-align: justify;
    hyphens: auto;
  }

  ul,
  ol {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
  }

  ul li {
    list-style-type: '—';
    padding-left: 0.7rem;
  }

  ol {
    counter-reset: ordered-list;
  }

  ol li {
    counter-increment: ordered-list;
    list-style-type: none;
    position: relative;
    padding-left: 1.8rem;
  }

  ol li::before {
    content: counter(ordered-list) '.';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 500;
  }

  li {
    margin-bottom: 0.7rem;
    padding-left: 0.5rem;
  }

  li>ul,
  li>ol {
    margin-top: 0.7rem;
    margin-bottom: 0;
  }

  hr {
    margin: 2.5rem 0;
    border: 0;
    height: 1px;
    background: linear-gradient(to right,
      transparent,
      #e2e8f0,
      transparent);
  }

  blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem 2rem;
    background: #f0f9ff;
    border-left: 4px solid #2563eb;
    border-radius: 0 4px 4px 0;
    font-style: italic;
  }

  blockquote p:last-child {
    margin-bottom: 0;
  }

  code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    background: #f8fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.95em;
  }

  pre {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: inset 0 0 0 1px #e2e8f0;
  }

  pre code {
    background: none;
    padding: 0;
  }

  table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    box-shadow: 0 0 0 1px #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
  }

  th,
  td {
    padding: 0.8rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
  }

  th {
    background-color: #f1f5f9;
    font-weight: 600;
  }

  tr:last-child td {
    border-bottom: none;
  }

  a {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

*/

.info_page h1 {
  font-size: 2.5rem;
  margin: 2rem 0 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.info_page h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.info_page h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.info_page h4 {
  font-size: 1.25rem;
  margin: 1.8rem 0 0.8rem;
  color: #666;
}

.info_page h5 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info_page h6 {
  font-size: 1rem;
  margin: 1.5rem 0 0.7rem;
  color: #666;
}

.info_page p {
  margin: 0 0 1.5rem;
  text-align: justify;
  hyphens: auto;
}

.info_page ul,
.info_page ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

.info_page ul li {
  list-style-type: '—';
  padding-left: 0.7rem;
}

.info_page ol {
  counter-reset: ordered-list;
}

.info_page ol li {
  counter-increment: ordered-list;
  list-style-type: none;
  position: relative;
  padding-left: 1.8rem;
}

.info_page ol li::before {
  content: counter(ordered-list) '.';
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 500;
}

.info_page li {
  margin-bottom: 0.7rem;
  padding-left: 0.5rem;
}

.info_page li>ul,
.info_page li>ol {
  margin-top: 0.7rem;
  margin-bottom: 0;
}

.info_page hr {
  margin: 2.5rem 0;
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.info_page blockquote {
  margin: 1.5rem 0;
  padding: 1.5rem 2rem;
  background: #f0f9ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 4px 4px 0;
  font-style: italic;
}

.info_page blockquote p:last-child {
  margin-bottom: 0;
}

.info_page code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  background: #f8fafc;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95em;
}

.info_page pre {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.info_page pre code {
  background: none;
  padding: 0;
}

.info_page table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  box-shadow: 0 0 0 1px #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.info_page th,
.info_page td {
  padding: 0.8rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.info_page th {
  background-color: #f1f5f9;
  font-weight: 600;
}

.info_page tr:last-child td {
  border-bottom: none;
}

.info_page a {
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.info_page a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Медиа-запросы для мобильных */
@media (max-width: 768px) {

  .info_page {
    h1 {
      font-size: 2rem;
    }

    h2 {
      font-size: 1.7rem;
    }

    h3 {
      font-size: 1.4rem;
    }

    ul,
    ol {
      margin-left: 1.2rem;
    }

    pre {
      padding: 1rem;
      font-size: 0.9em;
    }
  }
}

/* Карусель избранных товаров */

.featured-products-block {
  margin: 120px 0;
}

@media (max-width: 991.98px) {
  .featured-products-block {
    margin: 100px 0;
  }
}

@media (max-width: 767.98px) {
  .featured-products-block {
    margin: 80px 0;
  }
}

.featured-products-swiper {
  padding: 20px 0 60px;
  position: relative;
}

.featured-products-swiper__controls {
  /*position: absolute;
    bottom: 0;
    left: 0;
    right: 0;*/
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
}

.featured-button-prev,
.featured-button-next {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  width: 30px;
  height: 30px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.featured-button-prev:hover,
.featured-button-next:hover {
  background: #e0e0e0;
}

.featured-button-prev::after,
.featured-button-next::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border: solid #333;
  border-width: 2px 2px 0 0;
}

.featured-button-prev::after {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.featured-button-next::after {
  transform: rotate(45deg);
  margin-right: 3px;
}

.featured-pagination {
  position: relative;
  width: fit-content !important;
  bottom: 0;
}

.featured-products-swiper__slide {
  .catalog_item {
    width: 100% !important;
  }
}


@media (max-width: 767px) {
  .featured-products-swiper__controls {
    bottom: 5px;
  }
}

.swiper-pagination {
  position: static;
  display: inline-block;
  width: auto;
  margin: 3px 26px 0;
  width: auto !important;
}

.swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  background: transparent;
  opacity: 1;
  margin: 0 12px !important;
  border-radius: 50%;
  position: relative;

  border: 3px solid rgba(0, 46, 99, 0.5);



  &:before {
    background: rgba(0, 46, 99, 0.5);
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
    content: '';
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all .3s;
  }

  &:hover:before {
    opacity: 0.4;
  }


}

@media (min-width: 992px) {
  /*.swiper-pagination-bullet {
    width: 27px;
    height: 27px;

    &:before {
      width: 14px;
      height: 14px;
    }
  }*/

}

@media (max-width: 991.98px) {
  .swiper-pagination-bullet {
    margin: 0 5px !important;
  }
}

.swiper-pagination-bullet-active {
  border: 3px solid #009BFF !important;
  position: relative;

  &:before {
    background: #009BFF !important;
    opacity: 1 !important;
  }
}

.header_left {
  position: relative;
}

.catalog-menu-wrapper {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateY(105%);
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
  width: 80%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .3s;

}

.catalog-menu-wrapper.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(100%);
}

@media (max-width: 767.98px) {
  .catalog-menu-wrapper {
    width: 100%;
  }
}

.catalog-menu {
  padding: 8px 16px;
}

.catalog-menu li {
  padding: 8px 0;
}

.catalog-menu a {
  color: #000;
  transition: color .3s;
  font-size: 15px;
  display: flex;
}

.catalog-menu a:hover {
  color: #009BFF;
}

.catalog-menu a:hover:after {
  color: #009BFF;
  content: url('data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity="0.6"><path d="M7 17L13 11L7 5" stroke="%23009BFF" stroke-width="2"></path></g></svg>');
}

.catalog-menu a:after {
  content: url('data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity="0.6"><path d="M7 17L13 11L7 5" stroke="currentColor" stroke-width="2"></path></g></svg>');
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 3px;
  min-width: 1px;
  flex-shrink: 0;
  transition: all .3s;
}

.entry-content p {
  line-height: 1.4;
}

.entry-content a {
  transition: all .3s;
}

.entry-content a:hover {
  color: #009BFF;
}

.catalog_item-btn {
  margin-top: 16px;
}

.catalog_info {

  P,
  ul {
    text-align: justify;
  }
}


.card_tabs-content {
  overflow: hidden;

  
}

.card_tabs-content table{
  border-collapse: collapse;
  margin-bottom: 24px;
}
.card_tabs-content table tr, .card_tabs-content table td {    
  border: 1px solid #000; 
}
.card_tabs-content table td {    
  padding: 8px;   
}
.card_tabs-content__inner:has(table){
  width: 100%;
  overflow-x: auto;
}
.card_tabs-content table p{
  margin: 0 !important;
}
@media (max-width: 575.98px) {
  .card_tabs-content {
    table {
      font-size: 14px;
    }
  }
}

.card_tabs-content__inner {
  width: 100%;
  overflow-x: auto
}

.wpcf7 .screen-reader-response {
  display: none !important;
}

.wpcf7-form.sent .consult_btn {
  right: 52px;
}

@media (max-width: 991.98px) {
  .wpcf7-form.sent .consult_btn {
    right: 53px;
  }
}

@media (max-width: 767.98px) {
  .wpcf7-form.sent .consult_btn {

    right: 58px;
  }
}

.single-product-image,
.single-product-image img {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .catalog_top {
    display: none !important;
  }

  .catalog_wrapper {
    margin-top: 90px;
    padding-bottom: 90px;
  }
}

.contacts-block {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.contacts-block h2 {
  text-align: center;
  color: #333;
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 600;
  margin-top: 0;
  padding-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed #e0e0e0;
}

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

.contact-item i {
  font-size: 20px;
  color: #007bff;
  margin-right: 15px;
  min-width: 24px;
  text-align: center;
  padding-top: 3px;
}

.contact-item strong {
  color: #333;
  font-weight: 600;
}

.contact-item a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #0056b3;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .contacts-block {
    padding: 20px;
    margin: 20px;
  }

  .contacts-block h2 {
    font-size: 20px;
  }

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

  .contact-item i {
    margin-bottom: 8px;
  }
}

.info_page img{
  max-width: 100%;
  height: auto;
}