/* Зарежда се само за началната, „За нас“ и „Поръчка и доставка“. */
html {
  scroll-padding-top: var(--ns-header-offset, 244px);
}

.ns-tuning-header {
  position: fixed !important;
  inset: 0 0 auto;
  z-index: 999;
  background: #fff;
  box-shadow: 0 2px 12px rgba(47, 35, 22, .08);
}

.ns-tuning-header + .ns-tuning-header-space {
  block-size: 230px;
}

.ns-tuning-header .logo {
  left: 50%;
  transform: translateX(-50%);
}

.ns-tuning-header .left-side {
  width: min(400px, 38vw);
}

.ns-tuning-home .design_template {
  max-inline-size: 100%;
}

.ns-tuning-home .html-content img,
.ns-tuning-article img {
  max-inline-size: 100%;
  block-size: auto;
}

.ns-tuning-home .headline > .container,
.ns-tuning-home .products_focus > .container,
.ns-tuning-home .blog > .container {
  padding-block: clamp(14px, 2.5vw, 28px);
}

.ns-tuning-article {
  width: min(710px, calc(100% - 40px));
  margin: 0 auto;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.68;
  overflow-wrap: break-word;
}

.ns-tuning-article p {
  margin-block: 0 1em;
}

.ns-tuning-article h2 {
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(18px, 2.8vw, 23px);
  font-weight: 400;
  margin: 1.2em 0 .55em;
}

.ns-tuning-article .delivery-options {
  margin-block: 0 1em;
  padding: 13px 16px;
  list-style: none;
  background: #faf8f5;
  border: 1px solid #e9e5df;
  border-radius: 7px;
}

.ns-tuning-article .delivery-options li + li {
  margin-block-start: 7px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #76532b !important;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  html {
    --ns-header-offset: 96px;
  }

  .ns-tuning-home {
    /* Keep off-screen slider tracks inside the homepage, away from the header. */
    overflow-x: clip;
  }
}

/* Защитено превю на компактния хедър и блока с предимства. */
html:has(.ns-tuning-header) {
  --ns-header-offset: 180px;
  --ns-header-height: 115px;
  --ns-header-side: clamp(24px, 8vw, 150px);
}

.ns-tuning-header {
  height: var(--ns-header-height) !important;
  box-shadow: 0 3px 15px rgb(45 35 25 / 8%);
}

.ns-tuning-header + .ns-tuning-header-space {
  block-size: var(--ns-header-height);
}

.ns-tuning-header > .pad10 {
  position: absolute;
  inset: 8px var(--ns-header-side) auto auto;
  width: 40%;
  max-width: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.3;
}

.ns-tuning-header .logo {
  top: 0;
  width: clamp(128px, 13vw, 184px);
  height: auto;
  padding: 7px 12px 10px;
  border-radius: 0 0 21px 21px;
  background: #fff;
  box-shadow: 0 10px 14px -12px rgb(45 35 25 / 42%);
}

.ns-tuning-header .logo a,
.ns-tuning-header .logo img {
  display: block;
  width: 100%;
  height: auto;
}

.ns-tuning-header .logo img:hover {
  transform: none;
}

body:has(.ns-tuning-article) .ns-tuning-header .logo {
  width: 147px;
}

body:has(.ns-tuning-article) .ns-tuning-header + .ns-tuning-header-space {
  block-size: calc(var(--ns-header-height) + 26px);
}

.ns-tuning-header .left-side,
.ns-tuning-header .right-side {
  top: 43px;
  bottom: auto;
  width: auto;
  height: 44px;
}

.ns-tuning-header .left-side {
  left: var(--ns-header-side);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ns-tuning-header .hamburger_menu_icon {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  background-position: center;
  background-size: 30px auto;
}

.ns-tuning-header .right-side {
  right: var(--ns-header-side);
  white-space: nowrap;
  font-size: 0;
  text-align: right;
}

.ns-tuning-header .right-side a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  margin-inline-start: 8px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  vertical-align: top;
  font-size: 16px;
}

.ns-tuning-header .right-side img {
  width: auto;
  max-width: 30px;
  max-height: 31px;
}

.ns-tuning-header #frmSearch {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0;
  overflow: visible;
}

.ns-tuning-header #btnSearch {
  position: static;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
}

.ns-tuning-header #inputSearch {
  position: absolute;
  top: calc(var(--ns-header-height) - 34px);
  left: -54px;
  width: min(320px, calc(100vw - 48px));
  height: 44px;
  margin-top: 0;
  padding-inline: 14px;
  border: 1px solid #ece4d9;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 7px 20px rgb(45 35 25 / 12%);
  z-index: 1;
}

.ns-tuning-header #inputSearch:not([style]) {
  visibility: hidden;
}

.ns-benefits {
  box-sizing: border-box;
  width: min(100%, 1742px);
  margin-inline: auto;
  padding: clamp(16px, 2vw, 30px) clamp(14px, 2.25vw, 38px) clamp(24px, 4vw, 62px);
  border: 1px solid transparent;
  background:
    linear-gradient(#f5f5f5, #f5f5f5) padding-box,
    linear-gradient(100deg, #ffda73, #dba033 52%, #ffda73) border-box;
  text-align: center;
  color: #262524;
}

.ns-benefits,
.ns-benefits :where(h2, li) {
  font-family: Montserrat, Arial, sans-serif;
}

.ns-benefits__title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(9px, 1.4vw, 18px);
  margin: 0 0 clamp(10px, 2vw, 28px);
  font-size: clamp(18px, 2.05vw, 34px);
  font-weight: 400;
  line-height: 1.25;
}

.ns-benefits__signature,
.ns-benefits__icon {
  display: block;
  flex: none;
  background-image: url('/resources/images/whynefertiti.jpg');
  background-repeat: no-repeat;
  mix-blend-mode: darken;
}

.ns-benefits__signature {
  width: 148px;
  height: 81px;
  background-size: 1219.4px 277.9px;
  background-position: -750px -13px;
}

.ns-benefits ul.ns-benefits__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 20px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.ns-benefits li.ns-benefits__item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 8px 6px 10px;
  border-radius: 10px;
  font-size: clamp(13px, 1.22vw, 21px);
  line-height: 1.23;
  overflow-wrap: anywhere;
}

.ns-benefits__icon {
  width: 84px;
  height: 64.4px;
  background-size: 1219.4px 277.9px;
  background-position: var(--ns-icon-x) -101.5px;
}

.ns-benefits__icon--quality { --ns-icon-x: -100.8px; }
.ns-benefits__icon--merchant { --ns-icon-x: -334.6px; }
.ns-benefits__icon--inspection { --ns-icon-x: -567px; }
.ns-benefits__icon--delivery { --ns-icon-x: -802.2px; }
.ns-benefits__icon--return { --ns-icon-x: -1032.5px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ns-benefits__item,
  .ns-benefits__icon {
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .ns-benefits__item:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px rgb(219 160 51 / 30%), 0 7px 15px rgb(84 56 13 / 8%);
  }

  .ns-benefits__item:hover .ns-benefits__icon {
    transform: translateY(-2px);
  }
}

@media (max-width: 767px) {
  html:has(.ns-tuning-header) {
    --ns-header-offset: 145px;
    --ns-header-height: 93px;
    --ns-header-side: 12px;
  }

  .ns-tuning-header > .pad10 {
    top: 6px;
    width: 41%;
    font-size: 10px;
  }

  .ns-tuning-header .logo,
  body:has(.ns-tuning-article) .ns-tuning-header .logo {
    width: clamp(86px, 22vw, 118px);
    padding-inline: 7px;
    border-radius: 0 0 13px 13px;
  }

  .ns-tuning-header .left-side,
  .ns-tuning-header .right-side { top: 31px; }
  .ns-tuning-header .left-side { gap: 0; }
  .ns-tuning-header .right-side a { min-width: 34px; margin-inline-start: 1px; font-size: 13px; }
  .ns-tuning-header .right-side img { max-width: 23px; max-height: 23px; }
  .ns-tuning-header #inputSearch { left: -44px; top: calc(var(--ns-header-height) - 24px); }

  .ns-benefits ul.ns-benefits__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ns-benefits li.ns-benefits__item { grid-column: span 2; font-size: clamp(10px, 2.9vw, 14px); gap: 5px; padding-inline: 2px; }
  .ns-benefits li.ns-benefits__item:nth-child(4) { grid-column: 2 / span 2; }
  .ns-benefits__title { font-size: clamp(16px, 3.8vw, 24px); gap: 0 8px; }
  .ns-benefits__signature {
    width: 115px;
    height: 59px;
    background-size: 940.68px 214.38px;
    background-position: -578px -11px;
  }
  .ns-benefits__icon { transform: scale(.73); transform-origin: center bottom; margin-top: -15px; }
}

/* Начална витрина и общ футър. */
.ns-tuning-home .product-list-headline > div,
.ns-tuning-home .products_focus .product-list,
.ns-tuning-home .articles-slider a {
  border-radius: 8px;
}

.ns-tuning-home .product-list-headline > div,
.ns-tuning-home .product-list .product-image {
  overflow: hidden;
}

.ns-tuning-home .product-list-headline .text {
  pointer-events: none;
}

.ns-tuning-home .products_focus .slick-slide.product-list,
.ns-tuning-home .products_new .slick-slide.product-list {
  margin-inline: clamp(4px, .5vw, 9px);
  margin-block: 5px 9px;
}

.ns-tuning-home .products_focus .list-container .product-list,
.ns-tuning-home .products_new .list-container .product-list {
  margin: 4px !important;
}

.ns-tuning-home :is(.products_focus, .products_new) a:has(> img[src$="/allproducts.png"]) {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border-radius: 6px;
}

.ns-tuning-home :is(.products_focus, .products_new) img[src$="/allproducts.png"] {
  display: block;
  width: min(185px, 60vw);
  height: auto;
}

.ns-tuning-home .articles-slider a {
  overflow: hidden;
}

.ns-tuning-home .articles-slider .blog-image {
  border-radius: 7px;
}

.ns-tuning-home .articles-slider a:focus-visible,
.ns-tuning-home .product-list-headline:focus-within > div,
.ns-tuning-home .product-list:focus-within {
  outline: 2px solid #87601c;
  outline-offset: -2px;
}

:is(.bgr3, footer) a:is(:hover, :focus-visible) {
  color: #754f15;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

@media (hover: hover) {
  .ns-tuning-home .product-list-headline > div:hover {
    box-shadow: 0 7px 20px rgb(44 32 18 / 17%);
  }

  .ns-tuning-home .product-list-headline > div:hover .text {
    background-color: rgb(255 248 234 / 92%);
  }

  .ns-tuning-home :is(.products_focus, .products_new) .product-list:hover {
    border-color: #c7a268;
    box-shadow: 0 4px 10px rgb(44 32 18 / 12%);
  }

  .ns-tuning-home .articles-slider a:hover h3 {
    color: #754f15;
    text-decoration: underline;
    text-underline-offset: .18em;
  }

  .ns-tuning-home .articles-slider a:hover .blog-image {
    filter: brightness(1.07);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ns-tuning-home :is(.product-list-headline > div, .product-list, .blog-image),
  .ns-tuning-home .product-list-headline img.grow {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
  }

  .ns-tuning-home .product-list-headline > div:hover,
  .ns-tuning-home :is(.products_focus, .products_new) .product-list:hover {
    transform: translateY(-3px);
  }

  .ns-tuning-home .product-list-headline > div:hover img.grow {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-tuning-home :is(.product-list-headline, .product-list, .products_focus, .products_new) img.grow:hover {
    transition: none;
    transform: none;
  }
}

/* Подравняване на десктоп контролите и преливка под логото. */
.ns-tuning-header .left-side,
.ns-tuning-header .right-side {
  top: 50%;
  transform: translateY(-50%);
}

.ns-tuning-header .left-side {
  gap: 4px;
}

.ns-tuning-header .hamburger_menu_icon {
  background-size: 23px auto;
}

.ns-tuning-header #btnSearch .bi {
  display: grid;
  place-items: center;
  line-height: 1;
}

.ns-tuning-header > .pad10 {
  top: calc(var(--ns-header-height) / 2 - 37px);
}

.ns-tuning-header .right-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ns-tuning-header .right-side a {
  display: flex;
  margin-inline-start: 0;
  gap: 3px;
  font-size: 14px;
  line-height: 1;
}

.ns-tuning-header .right-side img {
  max-width: 24px;
  max-height: 24px;
  margin-block: 0;
}

.ns-tuning-header .logo {
  background: linear-gradient(to bottom, #fff 0 51%, rgb(255 255 255 / 93%) 65%, rgb(255 255 255 / 68%) 79%, transparent 100%);
  box-shadow: none;
}

.ns-tuning-home .articles-slider a article {
  position: relative;
}

.ns-tuning-home .articles-slider a:is(:hover, :focus-visible) article {
  background-color: #fffaf2;
}

.ns-tuning-home .articles-slider a:is(:hover, :focus-visible) h3 {
  color: #754f15;
  text-decoration: underline;
  text-decoration-color: #a9782f;
  text-underline-offset: .2em;
}

:is(.bgr3, .footer_design, footer) a:is(:hover, :focus-visible) {
  color: #754f15;
  text-decoration-line: underline;
  text-decoration-color: #a9782f;
  text-decoration-thickness: 2px;
  text-underline-offset: .24em;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.bgr3, .footer_design, footer) a,
  .ns-tuning-home .articles-slider h3,
  .ns-tuning-home .articles-slider article {
    transition: color .18s ease, background-color .18s ease, text-decoration-color .18s ease;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ns-tuning-home .articles-slider .blog-image {
    transition: scale .25s ease, filter .25s ease;
  }

  .ns-tuning-home .articles-slider a:hover .blog-image {
    scale: 1.035;
  }
}

.ns-tuning-header .logo img {
  filter: drop-shadow(0 1px 1.5px rgb(255 255 255 / 75%));
}

.ns-tuning-header #inputSearch {
  top: calc(var(--ns-header-height) / 2 + 31px);
  left: -48px;
}

@media (max-width: 767px) {
  .ns-tuning-header .left-side {
    gap: 0;
  }

  .ns-tuning-header > .pad10 {
    top: 5px;
  }

  .ns-tuning-header .right-side a {
    font-size: 13px;
  }

  .ns-tuning-header .right-side img {
    max-width: 21px;
    max-height: 22px;
  }

  .ns-tuning-header #inputSearch {
    left: -44px;
  }
}

/* По-широка подложка с кант, без промяна на размера на логото. */
.ns-tuning-header .logo {
  isolation: isolate;
  background: none;
}

.ns-tuning-header .logo::before {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline: calc(-1 * clamp(18px, 3.5vw, 58px));
  border: 1px solid #e8e3de;
  border-radius: inherit;
  background: #fff;
  mask-image: linear-gradient(to bottom, #000 0 64%, transparent 100%);
  pointer-events: none;
  content: "";
}

.ns-tuning-header > .pad10 {
  top: max(4px, calc(var(--ns-header-height) / 2 - 44px));
}

/* Фин кант и вертикално центриране на двата десни реда. */
.ns-tuning-header .logo {
  filter: drop-shadow(0 2px 4px rgb(24 28 32 / 5%));
}

.ns-tuning-header .logo::before {
  border-color: #f5f5f5;
}

.ns-tuning-header > .pad10 {
  top: calc(var(--ns-header-height) / 2 - 28px);
}

.ns-tuning-header .right-side {
  top: calc(50% + 16px);
}
