/* Бяла подложка в десктоп хедъра. */
body .ns-tuning-header .logo::before {
  background: #fff;
  mask-image: none;
}

/* Блог. */
.ns-blog-list .row > .col-md-12 > table {
  margin-block: 0 16px;
}

.ns-blog-list .row > .col-md-12 > table > tbody > tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(12px, 2vw, 26px);
  align-items: center;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid #ebe6df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgb(39 30 20 / 5%);
  text-align: start;
}

.ns-blog-list .row > .col-md-12 > table td {
  width: auto;
  min-width: 0;
  padding: 0;
}

.ns-blog-list .row > .col-md-12 > table td:first-child a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.ns-blog-list .row > .col-md-12 .img-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
}

.ns-blog-list .row > .col-md-12 td:nth-child(2) .gray_20 {
  margin-bottom: 7px;
  line-height: 1.35;
}

.ns-blog-list .row > .col-md-12 td:nth-child(2) .btn {
  margin-top: 10px;
}

.ns-blog-article {
  box-sizing: border-box;
  width: min(100%, 960px);
  margin: 14px auto 28px;
  padding: clamp(16px, 3vw, 36px);
  border: 1px solid #ebe6df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 24px rgb(39 30 20 / 6%);
  overflow-wrap: anywhere;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
}

.ns-blog-article :is(p, ul, ol) {
  margin-block: 0 1em;
}

.ns-blog-article :is(h2, h3) {
  margin-block: 1.4em .65em;
  padding-inline-start: 12px;
  border-inline-start: 2px solid #b6925b;
  line-height: 1.35;
}

.ns-blog-article img {
  max-inline-size: 100%;
  block-size: auto;
  border-radius: 8px;
}

.ns-blog-article a {
  text-underline-offset: .22em;
}

table:has(.ns-blog-article) a[data-lightbox] .img-thumbnail {
  border-radius: 10px;
  box-shadow: 0 5px 18px rgb(39 30 20 / 9%);
}

/* Категории с пръстени. */
.ns-rings-catalog :is(.product_list, .product-list) {
  border-radius: 9px;
  box-shadow: 0 0 0 1px #ece8e2, 0 4px 14px rgb(39 30 20 / 5%);
}

.ns-rings-catalog :is(.product_image, .product-image) {
  border-radius: 7px;
}

.ns-rings-catalog div[data-aos="zoom-in"]:has(> a img) > a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #ece8e2, 0 4px 14px rgb(39 30 20 / 5%);
}

.ns-blog-list .row > .col-md-12 > table > tbody > tr:focus-within,
.ns-rings-catalog :is(.product_list, .product-list):focus-within {
  box-shadow: 0 0 0 1px #a78452, 0 5px 16px rgb(39 30 20 / 10%);
}

@media (hover: hover) {
  .ns-blog-list .row > .col-md-12 > table > tbody > tr:hover,
  .ns-rings-catalog :is(.product_list, .product-list):hover,
  .ns-rings-catalog div[data-aos="zoom-in"]:has(> a img) > a:hover,
  table:has(.ns-blog-article) a[data-lightbox]:hover .img-thumbnail {
    box-shadow: 0 0 0 1px #c6ae8a, 0 8px 22px rgb(39 30 20 / 12%);
  }

  .ns-blog-list .row > .col-md-12 > table > tbody > tr:hover .gray_20 a,
  .ns-blog-article a:hover {
    color: #754f15;
    text-decoration: underline;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ns-blog-list .row > .col-md-12 > table > tbody > tr,
  .ns-rings-catalog :is(.product_list, .product-list) {
    transition: translate .2s ease, box-shadow .2s ease;
  }

  .ns-blog-list .img-thumbnail,
  .ns-rings-catalog div[data-aos="zoom-in"] > a img,
  table:has(.ns-blog-article) a[data-lightbox] img {
    transition: transform .24s ease;
  }

  .ns-blog-list .row > .col-md-12 > table > tbody > tr:hover,
  .ns-rings-catalog :is(.product_list, .product-list):hover {
    translate: 0 -3px;
  }

  .ns-blog-list .row > .col-md-12 > table > tbody > tr:hover img,
  .ns-rings-catalog div[data-aos="zoom-in"] > a:hover img,
  table:has(.ns-blog-article) a[data-lightbox]:hover img {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-blog-list img.grow:hover,
  .ns-rings-catalog img.grow:hover,
  table:has(.ns-blog-article) img.grow:hover {
    transform: none;
    transition: none;
  }
}

@media (max-width: 650px) {
  .ns-blog-list .row > .col-md-12 > table > tbody > tr {
    grid-template-columns: minmax(0, 1fr);
  }
}
