/* LIOSUN homepage. Scoped to the Shop-Script home wrapper. */
.s-home-wrapper {
  --lh-font: "Exo 2", sans-serif;
  --lh-ink: #172b40;
  --lh-muted: #627286;
  --lh-accent: #0079df;
  --lh-accent-hover: #0063b8;
  --lh-tint: #eaf4ff;
  --lh-surface: #f4f7fb;
  --lh-card: #fff;
  --lh-border: #dfe7ef;
  --lh-radius: 5px;
  --bs-border-radius: 5px;
  --bs-border-radius-sm: 3px;
  --bs-border-radius-lg: 5px;
  --bs-border-radius-xl: 5px;
  --bs-border-radius-xxl: 5px;
  --bs-border-radius-pill: 5px;
  --lh-title: clamp(1.75rem, 2.5vw, 2.25rem);
  --lh-space: 64px;
  font-family: var(--lh-font);
  color: var(--lh-ink);
}
.s-home-wrapper .b-home-item { font-family: var(--lh-font); }
.s-home-wrapper :is(.rounded-circle, .rounded-pill) { border-radius: 5px !important; }
.s-home-wrapper :is(.b-home-slider__media-inner, .swiper-pagination-bullet, .b-products-images__dot) { border-radius: 5px !important; }
.s-home-wrapper .b-home-item > :is(.b-categories, .b-brands-01, .b-products-sets, .b-posts-wrapper),
.s-home-wrapper .lio-tools--home,
.s-home-wrapper .lio-focus {
  padding-block: var(--lh-space) !important;
  border: 0 !important;
  margin-block: 0;
}
.s-home-wrapper .b-home-item > div > :is(.container-xl, .container-xxl),
.s-home-wrapper [data-id="home__calc"] > .container-xxl,
.s-home-wrapper .lio-focus__inner {
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: 28px;
}
.s-home-wrapper :is(.b-categories, .b-brands-01, .b-products-sets, .b-posts-wrapper) > .container-xl > .row:first-child {
  margin-bottom: 28px !important;
  align-items: end;
}
.s-home-wrapper :is(.b-categories, .b-brands-01, .b-products-sets, .b-posts-wrapper) > .container-xl > .row:first-child > div:first-child {
  width: auto;
  max-width: 100%;
}
.s-home-wrapper :is(.b-categories, .b-brands-01, .b-products-sets, .b-posts-wrapper) .fs-3,
.s-home-wrapper .lio-tools--home .lio-tools__heading,
.s-home-wrapper .lio-focus h2 {
  font-family: var(--lh-font);
  font-size: var(--lh-title) !important;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--lh-ink);
  margin: 0;
}
.s-home-wrapper :is(.b-categories, .b-brands-01, .b-products-sets, .b-posts-wrapper) .fs-3::before,
.s-home-wrapper .lio-tools--home .lio-tools__eyebrow,
.s-home-wrapper .lio-focus__eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--lh-accent);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.s-home-wrapper .b-categories .fs-3::before { content: "Каталог оборудования"; }
.s-home-wrapper .b-brands-01 .fs-3::before { content: "Производители"; }
.s-home-wrapper .b-products-sets .fs-3::before { content: "Готовые решения"; }
.s-home-wrapper .b-posts-wrapper .fs-3::before { content: "Знания и опыт"; }
.s-home-wrapper .lio-focus__eyebrow::before { display: none; }
.s-home-wrapper :is(.lio-tools__intro, .lio-focus__intro) {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lh-muted);
  margin-top: 12px;
}
.s-home-wrapper :is(.lio-tools__head, .lio-focus__heading) {
  gap: 24px;
  margin-bottom: 28px;
  align-items: end;
}
/* One radius, border and hover treatment across the content cards. */
.s-home-wrapper :is(.b-categories-01__link, .b-brands-01__link, .lio-tools__card, .s-product-block, .b-post-wrapper, .lio-focus__feature) {
  border: 1px solid var(--lh-border) !important;
  border-radius: var(--lh-radius) !important;
  background: var(--lh-card) !important;
  box-shadow: 0 2px 4px rgb(23 43 64 / 2%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
@media (hover: hover) {
  .s-home-wrapper :is(.b-categories-01__link, .b-brands-01__link, .lio-tools__card, .s-product-block, .b-post-wrapper):hover {
    transform: translateY(-3px);
    border-color: #91bfe9 !important;
    box-shadow: 0 10px 28px rgb(23 43 64 / 8%) !important;
  }
}
.s-home-wrapper :is(a, button, select):focus-visible {
  outline: 3px solid var(--lh-accent);
  outline-offset: 4px;
}
.s-home-wrapper :is(.btn, .lio-focus__action, .lio-focus__arrow, .lio-focus__quality select) {
  border-radius: 5px;
  font-family: var(--lh-font);
  font-size: 1rem;
  font-weight: 500;
  min-height: 44px;
}
.s-home-wrapper :is(.btn-primary, .lio-focus__action) {
  background: var(--lh-accent);
  border-color: var(--lh-accent);
  color: #fff;
}
.s-home-wrapper :is(.btn-primary, .lio-focus__action):hover {
  background: var(--lh-accent-hover);
  border-color: var(--lh-accent-hover);
}
.s-home-wrapper .btn-gray-theme {
  color: var(--lh-ink);
  background: var(--lh-card);
  border: 1px solid var(--lh-border);
}
.s-home-wrapper .btn-gray-theme:hover {
  color: var(--lh-accent);
  border-color: var(--lh-accent);
  background: var(--lh-tint);
}
.s-home-wrapper :is(.b-brands-01, .b-posts-wrapper) .row.justify-content-center { margin-top: 4px; }
.s-home-wrapper :is(.b-brands-01, .b-posts-wrapper) .btn-gray-theme { max-width: 240px; }
/* Opening photographs retain their established content and navigation. */
.s-home-wrapper .b-home-slider { padding-top: 7px !important; padding-bottom: 24px !important; }
.s-home-wrapper .b-home-slider > .container-xl > .swiper { border-radius: 5px; }
.s-home-wrapper .b-home-slider__title {
  font-family: var(--lh-font);
  font-size: clamp(28px, 2.5vw, 40px) !important;
  font-weight: 600;
  line-height: 1.18 !important;
  letter-spacing: -.025em;
  max-width: 680px;
}
.s-home-wrapper .b-home-slider__text {
  font-family: var(--lh-font);
  font-size: 18px !important;
  line-height: 1.5 !important;
  max-width: 650px;
}
@media (max-width: 767px) {
  .s-home-wrapper .b-home-slider__title { font-size: clamp(24px, 5.5vw, 28px) !important; line-height: 1.2 !important; }
  .s-home-wrapper .b-home-slider__text { font-size: 16px !important; line-height: 1.45 !important; }
}
.s-home-wrapper .b-banners-01 { padding-bottom: 0 !important; }
.s-home-wrapper .b-banners-01__image-wrapper { border-radius: var(--lh-radius); overflow: hidden; }
.s-home-wrapper .b-banners-01__title { font-size: 1.25rem !important; line-height: 1.3; font-weight: 600; }
.s-home-wrapper .b-banners-01__text { font-size: 1rem !important; line-height: 1.5; }
/* Six even columns eliminate the short final row in the equipment catalogue. */
.s-home-wrapper .b-categories-01 > .container-xl > .row:last-child {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-inline: 0;
  padding: 0;
  overflow: visible;
}
.s-home-wrapper .b-categories-01__item { width: auto; min-width: 0; padding: 0; }
.s-home-wrapper .b-categories-01 .card-body { padding: 24px 14px !important; }
.s-home-wrapper .b-categories-01__image { height: 112px; display: grid; place-items: center; }
.s-home-wrapper .b-categories-01__image img { max-height: 112px; width: auto; max-width: 100%; }
.s-home-wrapper .b-categories-01__name {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--lh-ink);
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-home-wrapper .b-categories-01 .text-quaternary { color: var(--lh-muted) !important; font-size: .875rem !important; margin-top: 4px; }
/* Calculators use the same blue accent as the shop controls. */
.s-home-wrapper [data-id="home__calc"] { background: var(--lh-surface); }
.s-home-wrapper .lio-tools--home { --lt-accent: var(--lh-accent); }
.s-home-wrapper .lio-tools--home .lio-tools__grid { gap: 20px; }
.s-home-wrapper .lio-tools--home .lio-tools__card { padding: 24px; color: var(--lh-ink); min-height: 192px; }
.s-home-wrapper .lio-tools--home .lio-tools__icon { color: var(--lh-accent); background: var(--lh-tint); border-radius: 5px; }
.s-home-wrapper .lio-tools--home .lio-tools__name { color: var(--lh-muted); font-size: .875rem; font-weight: 500; }
.s-home-wrapper .lio-tools--home .lio-tools__title { color: var(--lh-ink); font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.s-home-wrapper .lio-tools--home .lio-tools__desc { color: var(--lh-muted); font-size: 1rem; line-height: 1.55; }
.s-home-wrapper .lio-tools--home .lio-tools__arrow { color: var(--lh-accent); }
.s-home-wrapper .lio-tools--home .lio-tools__all {
  color: var(--lh-accent);
  background: var(--lh-card);
  border: 1px solid var(--lh-border);
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 18px;
  white-space: nowrap;
  min-height: 46px;
}
.s-home-wrapper .lio-tools--home .lio-tools__all:hover { border-color: var(--lh-accent); background: var(--lh-tint); }
.s-home-wrapper .lio-tools--home .lio-tools__all > span { display: none; }
/* Brand logos, product tabs and product cards. */
.s-home-wrapper .b-brands-01 .card-body { padding: 24px 12px !important; min-height: 112px; justify-content: center; }
.s-home-wrapper .b-brands-01__image { height: 64px; }
.s-home-wrapper .b-brands-01__image img { max-height: 64px; object-fit: contain; }
.s-home-wrapper .b-products-sets { background: var(--lh-surface) !important; }
.s-home-wrapper .b-products-sets__nav { gap: 4px !important; padding: 4px; background: var(--lh-card); border: 1px solid var(--lh-border); border-radius: 5px; }
.s-home-wrapper .b-products-sets__nav .btn { border: 0; font-size: .875rem; padding: 10px 14px; min-height: 40px; }
.s-home-wrapper .b-products-sets__nav .btn.active { background: var(--lh-accent); color: #fff; box-shadow: 0 2px 6px rgb(0 121 223 / 18%); }
.s-home-wrapper .s-product-block { overflow: hidden; }
.s-home-wrapper .s-product-header { color: var(--lh-ink); font-size: 1rem; font-weight: 500; line-height: 1.45 !important; margin-top: 8px; }
.s-home-wrapper .s-price { font-size: 1.25rem !important; }
/* Video and editorial content share the catalogue's column edges. */
.s-home-wrapper .lio-focus { --lf-ink: var(--lh-ink); --lf-muted: var(--lh-muted); --lf-line: var(--lh-border); --lf-accent: var(--lh-accent); background: var(--lh-card); color: var(--lh-ink); }
.s-home-wrapper .lio-focus__feature { grid-template-columns: minmax(0, 1fr) 340px; }
.s-home-wrapper .lio-focus__heading { align-items: center; }
.s-home-wrapper .lio-focus__intro { margin-top: 0; }
.s-home-wrapper .lio-focus__media { border-radius: 0; }
.s-home-wrapper .lio-focus__meta { padding: 32px; gap: 16px; }
.s-home-wrapper .lio-focus__tag { font-size: .875rem; color: var(--lh-accent); font-weight: 500; letter-spacing: .06em; }
.s-home-wrapper .lio-focus h3 { color: var(--lh-ink); font-size: 1.375rem; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; }
.s-home-wrapper .lio-focus__meta p { font-size: 1rem; line-height: 1.6; }
.s-home-wrapper .lio-focus__action { text-align: center; }
.s-home-wrapper .lio-focus__sound { border-radius: 5px; }
.s-home-wrapper .lio-focus__quality select { background: var(--lh-card); color: var(--lh-ink); font-size: .875rem; }
.s-home-wrapper .lio-focus__card .lio-focus__media { border-radius: var(--lh-radius); }
.s-home-wrapper .lio-focus__card h4 { color: var(--lh-ink); font-size: 1rem; line-height: 1.45; font-weight: 500; }
.s-home-wrapper .lio-focus__shorts-head { margin-top: 32px; margin-bottom: 20px; }
.s-home-wrapper .lio-focus__arrow { background: var(--lh-card); color: var(--lh-ink); }
.s-home-wrapper .lio-focus__footer { font-size: .875rem; margin-top: 16px; }
.s-home-wrapper .lio-focus__footer a { color: var(--lh-accent); border: 0; }
.s-home-wrapper .b-posts-wrapper { background: var(--lh-surface); }
.s-home-wrapper .b-posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-inline: 0; }
.s-home-wrapper .b-post-wrapper { overflow: hidden; width: auto; padding: 0; }
.s-home-wrapper .b-posts__image-wrapper { border-radius: 0; }
.s-home-wrapper .b-posts__content-wrap { padding: 20px 16px; gap: 12px; }
.s-home-wrapper .b-posts__title { color: var(--lh-ink); font-size: 1.125rem; font-weight: 600; line-height: 1.45; min-height: 4.35em; }
.s-home-wrapper .b-posts__title:hover { color: var(--lh-accent); }
.s-home-wrapper .b-posts__meta { color: var(--lh-muted); font-size: .875rem; }
.s-home-wrapper .b-posts__image-wrapper::before { display: none; }
.s-home-wrapper .b-post-wrapper:hover .b-posts__image-wrapper img { transform: scale(1.025); }
/* Honour the store's existing dark-mode switch. */
[data-bs-theme="dark"] .s-home-wrapper {
  --lh-ink: #e6eef7;
  --lh-muted: #a4b4c7;
  --lh-accent: #79bbff;
  --lh-accent-hover: #a0cfff;
  --lh-tint: #1e344a;
  --lh-surface: #131e2b;
  --lh-card: #1a2838;
  --lh-border: #344457;
}
[data-bs-theme="dark"] .s-home-wrapper :is(.btn-primary, .lio-focus__action, .b-products-sets__nav .btn.active) { color: #10263e; }
@media (max-width: 1199px) {
  .s-home-wrapper .b-categories-01 > .container-xl > .row:last-child { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s-home-wrapper .lio-focus__feature { grid-template-columns: minmax(0, 1fr) 300px; }
  .s-home-wrapper .lio-focus__meta { padding: 24px; }
  .s-home-wrapper .b-products-sets__nav { margin-top: 16px; }
}
@media (max-width: 991px) {
  .s-home-wrapper { --lh-space: 48px; }
  .s-home-wrapper .b-categories-01 > .container-xl > .row:last-child { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-home-wrapper .lio-tools--home .lio-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-home-wrapper .lio-focus__feature { display: block; }
  .s-home-wrapper .lio-focus__meta { gap: 14px; }
  .s-home-wrapper .b-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .s-home-wrapper { --lh-space: 40px; --lh-radius: 5px; }
  .s-home-wrapper .b-home-item > div > :is(.container-xl, .container-xxl),
  .s-home-wrapper [data-id="home__calc"] > .container-xxl,
  .s-home-wrapper .lio-focus__inner { padding-inline: 20px; }
  .s-home-wrapper :is(.b-banners-01, .b-brands-01, .b-products-sets) .row-scrolling { margin-inline: -20px; padding-inline: 8px; }
  .s-home-wrapper :is(.b-categories, .b-brands-01, .b-products-sets, .b-posts-wrapper) > .container-xl > .row:first-child { margin-bottom: 24px !important; }
  .s-home-wrapper :is(.lio-tools__head, .lio-focus__heading) { display: flex; flex-direction: column; align-items: start; gap: 18px; margin-bottom: 24px; }
  .s-home-wrapper .lio-focus__intro { margin: 0; }
  .s-home-wrapper .lio-tools--home .lio-tools__card { padding: 20px; min-height: 180px; }
  .s-home-wrapper .lio-tools--home .lio-tools__title { font-size: 1.125rem; }
  .s-home-wrapper .lio-tools--home .lio-tools__all { white-space: normal; }
  .s-home-wrapper .lio-focus__meta { padding: 24px; }
  .s-home-wrapper .lio-focus__card { flex-basis: 44%; }
  .s-home-wrapper .b-posts__title { font-size: 1.125rem; }
}
@media (max-width: 575px) {
  .s-home-wrapper .b-categories-01 > .container-xl > .row:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .s-home-wrapper .b-categories-01 .card-body { padding: 18px 10px !important; }
  .s-home-wrapper .b-categories-01__image { height: 88px; }
  .s-home-wrapper .b-categories-01__image img { max-height: 88px; }
  .s-home-wrapper .b-categories-01__name { overflow-wrap: anywhere; }
  .s-home-wrapper .lio-tools--home .lio-tools__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .s-home-wrapper .lio-tools--home .lio-tools__card { min-height: 0; }
  .s-home-wrapper .b-products-sets__nav { flex-wrap: wrap; width: fit-content; }
  .s-home-wrapper .b-products-sets__nav .btn { padding-inline: 10px; font-size: .875rem; }
  .s-home-wrapper .lio-focus__card { flex-basis: 64%; }
  .s-home-wrapper .lio-focus__meta { padding: 20px; }
  .s-home-wrapper .b-posts { display: flex; flex-wrap: nowrap; gap: 16px; overflow-x: auto; padding: 0 0 12px; scroll-snap-type: x mandatory; }
  .s-home-wrapper .b-post-wrapper { width: 86%; flex: 0 0 86%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .s-home-wrapper *, .s-home-wrapper *::before, .s-home-wrapper *::after { transition: none !important; scroll-behavior: auto !important; }
  .s-home-wrapper :is(.b-categories-01__link, .b-brands-01__link, .lio-tools__card, .s-product-block, .b-post-wrapper):hover { transform: none; }
}
