/* ============================================
   ИСПРАВЛЕННЫЙ CSS 2026
   ============================================ */

/* 1. CSS VARIABLES (Дизайн-токены) */
:root {
  /* Цвета */
  --color-primary: #7f1f37;
  --color-primary-dark: #c50101;
  --color-primary-light: #c8124e;
  --color-text-main: #585858;
  --color-text-dark: #2d2d2d;
  --color-text-light: #757575;
  --color-text-muted: #989898;
  --color-border: #d8d8d8;
  --color-border-light: #e6e6e6;
  --color-border-lighter: #f2f2f2;
  --color-bg-body: #eceae9;
  --color-bg-light: #f5f2ed;
  --color-bg-white: #ffffff;
  --color-bg-grey: #e1e1e0;
  --color-bg-grey-light: #fafafa;
  --color-link: #2f2f2f;
  --color-link-hover: #f00;
  --color-success: #4f4f4f;
  
  /* Тени */
  --shadow-card: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-soft: 7px 20px 5px rgba(0, 0, 0, 0.1);
  --shadow-medium: 7px 25px 15px rgba(0, 0, 0, 0.2);
  --shadow-button: 7px 10px 5px rgba(0, 0, 0, 0.1);
  
  /* Типографика */
  --font-primary: Georgia, "Hoefler Text", "Times New Roman", serif;
  --font-secondary: Lato, Arial, Helvetica, sans-serif;
  --font-body: Verdana, sans-serif;
  
  /* Размеры */
  --container-max: 1600px;
  --container-width: 1480px;
  --radius-base: 10px;
  --radius-small: 4px;
  --radius-medium: 7px;
  
  /* Анимации */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease-in-out;
  --transition-slow: 0.5s ease;
  --transition-very-slow: 2s ease;
}

/* 2. RESET И БАЗОВЫЕ СТИЛИ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-main);
  background: var(--color-bg-body);
  overflow-x: hidden;
  cursor: auto;
}

/* Современный Clearfix */
.clearfix,
#Header,
.navbar,
.tabs,
.tabs-contents,
.page,
.productGrid {
  display: flow-root;
}

/* 3. ТИПОГРАФИКА */
h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 400;
  letter-spacing: 0.25px;
  color: var(--color-text-dark);
  text-transform: uppercase;
  margin-bottom: 0.73333rem;
}

h1 { font-size: 1.0rem; }
h2 { font-size: 25px; color: #c82d4c; }
h3 { font-size: 22px; color: #d60942; }
h4 { font-size: 20px; }

p {
  margin-bottom: 1rem;
  line-height: 1.3;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  font-weight: normal;
  background: transparent;
  line-height: inherit;
  transition: color var(--transition-fast);
}

a:hover,
a:active {
  color: var(--color-link-hover);
  outline: 0;
  cursor: pointer;
}

a:hover {
  text-decoration-skip-ink: auto;
}

b, strong {
  font-weight: 700;
}

i {
  font-style: italic;
}

/* 4. ФОРМЫ И ЭЛЕМЕНТЫ */
input, select {
  color: inherit;
  font: inherit;
  margin: 0;
  font-size: 0.8em;
  cursor: pointer;
}

input {
  padding: 1px;
  line-height: normal;
}

select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background-color: var(--color-bg-white);
  color: #454545;
  max-width: 100%;
  width: 25em;
  display: block;
  margin-bottom: 15px;
  text-transform: none;
  appearance: none;
}

select option {
  padding: 0 10px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  height: auto;
}

input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
  appearance: none;
}

/* 5. ИЗОБРАЖЕНИЯ И МЕДИА */
img, picture, video, canvas, svg {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
  vertical-align: middle;
  border: 0;
}

img {
  height: auto;
  ms-interpolation-mode: bicubic;
  transition: transform var(--transition-slow);
}

figure {
  margin: 0 0 1.5rem;
}

figcaption {
  color: var(--color-text-light);
  margin-top: 0.73333rem;
}

/* 6. СПИСКИ */
ul, ol {
  margin: 0 0 1em;
  padding: 2px;
}

ul {
  list-style: none;
}

ol {
  list-style: decimal;
}

ul ul, ol ol, ul ol, ol ul {
  margin: 4px 0 5px 20px;
}

li {
  margin-bottom: 0.25em;
}

/* 7. LAYOUT КОНТЕЙНЕРЫ */
.container {
  position: relative;
  margin: 0 auto;
  max-width: var(--container-max);
  width: 100%;
  padding: 0;
  overflow: visible; /* ИСПРАВЛЕНО: было overflow: hidden, что ломало sticky */
}

.container::after {
  display: table;
  content: " ";
  width: 100%;
  clear: both;
}

.wrapper {
  margin: 0 auto;
  overflow: visible; /* ИСПРАВЛЕНО: было overflow: hidden */
  max-width: 1200px;
  padding: 0 15px;
}

.page {
  margin: 0 -0.75rem;
  width: auto;
  padding-bottom: 30px;
}

.page-content {
  padding: 0 1.2% 0 1%;
  width: 100%;
  float: left;
  background: var(--color-bg-white);
  box-shadow: var(--shadow-soft);
}

/* ============================================
   ИСПРАВЛЕНИЕ #1: МЕНЮ И НАВИГАЦИЯ
   ============================================ */
#Outer {
  margin-top: 2px;
  clear: both;
}

#Header {
  height: 161px;
  clear: both;
  margin: 0;
  padding-bottom: 12px;
  position: relative;
  z-index: 4000;
}

#Logo {
  float: left;
  width: auto;
  margin: 70px 10px 25px 0;
  position: relative;
  z-index: 9;
}

#LogoImage {
  margin-top: -65px;
  width: 145%;
}

header#header {
  position: relative;
}

#header {
  padding: 0;
  margin: 0;
}

/* Меню - ИСПРАВЛЕННЫЕ СТИЛИ */
.nav-bar {
  border-left: 0;
  border-right: 0;
  background-color: #d2d2d2;
  box-shadow: var(--shadow-medium);
  margin: 0 auto;
  width: 90%;
  position: relative; /* Добавлено для корректного позиционирования выпадающих меню */
}

.navbar.visible-navbar {
  margin: 0 auto;
  max-width: 1500px;
  padding: 0 20px;
}

.subbanner {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* ИСПРАВЛЕНИЕ: Добавлены недостающие стили для sm-simple */
.sm-simple {
  background-color: var(--color-bg-white);
}

.sm-simple a.droplink {
  padding: 20px;
  font-size: 14px;
  line-height: 1;
  font-family: var(--font-primary);
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  display: block;
  white-space: nowrap;
  color: var(--color-text-main);
  text-decoration: none;
  transition: all var(--transition-base);
}

.sm-simple a.droplink:hover,
.sm-simple a.droplink:active,
.sm-simple a.droplink.highlighted {
  background: var(--color-bg-white);
  color: #f90505;
}

.sm-simple .HasSubMenu > a.droplink {
  padding: 20px 36px 20px 16px;
}

/* Выпадающие меню - ИСПРАВЛЕННЫЕ СТИЛИ */
#main-menu ul.sm-simple,
#main-menu ul.sm-simple-child {
  margin: 120px 0 0 0;
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  background-color: var(--color-bg-white);
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.05);
}

#main-menu li:hover > ul.sm-simple-child {
  opacity: 1;
  visibility: visible;
  margin: 0;
}

#main-menu ul.sm-simple li,
#main-menu ul.sm-simple-child li {
  float: none;
  display: block;
  border: 0;
  padding: 20px 20px;
}

#main-menu ul.sm-simple-child li a.droplink,
#main-menu ul.sm-simple-child ul li a.droplink {
  color: #7d7d7b;
  border-top: 1px solid var(--color-border-light);
}

/* Иконки меню */
#main-menu .HasSubMenu > a::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  transition: transform 0.5s ease-in-out;
}

#main-menu ul a.droplink::before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  left: 1px;
  transition: all 0.5s ease-in-out;
}

#main-menu ul a.droplink:hover::before {
  transform: translate(4px);
}

/* Мобильное меню */
#mobileNavBar {
  display: none;
  width: 100%;
  background-color: var(--color-bg-white);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 7000;
  height: 50px;
}

.mobileNavBar-link {
  display: block;
  padding: 10px 0;
  color: #5e5a5a;
  cursor: pointer;
  text-decoration: none;
}

.display-table-cell {
  display: table-cell;
  vertical-align: middle;
  float: none;
  padding: 0 15px;
}

/* ============================================
   ИСПРАВЛЕНИЕ #2 и #3: КАРТОЧКИ ТОВАРОВ
   ============================================ */
.product-grid,
.productGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  list-style: none;
  margin: 0 -0.75rem 1.5rem;
  padding: 15px;
  max-width: 90%;
  margin-inline: auto;
}

.product,
.prod {
  padding: 5px 5px 10px 5px;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform var(--transition-base);
  position: relative;
  overflow: hidden;
  background: var(--color-bg-white);
}

.product:hover,
.prod:hover {
  transform: translateY(-5px);
}

/* ИСПРАВЛЕНИЕ #3: Убран aspect-ratio, который обрезал изображения */
.card-figure {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-white);
  padding: 0;
  margin-top: 0;
  /* УБРАНО: aspect-ratio: 1 / 1; - это обрезало изображения */
}

.card-image {
  inline-size: 100%;
  block-size: auto; /* ИСПРАВЛЕНО: было 100%, что растягивало изображения */
  object-fit: contain; /* ИСПРАВЛЕНО: было cover, что обрезало изображения */
  transition: transform var(--transition-slow);
}

.card-figure:hover .card-image {
  transform: scale(1.1);
}

.card-figcaption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(55, 55, 56, 0.9);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card-figure:hover .card-figcaption {
  opacity: 1;
}

.card-figcaption-button {
  background-color: rgba(55, 55, 56, 0.9);
  color: var(--color-bg-white);
  border: none;
  display: block;
  margin: 0.4rem 0 0;
  transition: background-color var(--transition-base);
}

.card-figcaption-button:hover {
  background-color: #373738;
}

/* ИСПРАВЛЕНИЕ #2: Восстановлены стили для подписей товаров */
.card-body {
  padding: 0.3333rem 0 0;
  background-color: var(--color-bg-white);
  min-height: 1px;
  text-align: center;
}

.card-title {
  font-size: 0.7rem;
  margin: 0 0 0.26667rem;
  font-family: var(--font-secondary);
  line-height: 1.3;
  text-transform: uppercase;
  padding: 0 0 5px 0;
  overflow: hidden;
  margin-bottom: 1px;
}

.card-title > a {
  color: var(--color-text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-title > a:hover {
  color: #aba1a1;
}

/* ИСПРАВЛЕНИЕ #2: Добавлены стили для product-info */
.product-info {
  padding: 10px 5px;
  text-align: center;
}

.product h3,
.product .card-title {
  margin-top: 10px;
  font-size: 0.9em;
  color: var(--color-text-dark);
}

.product .product-text,
.prod .prod-text {
  position: absolute;
  inset: 40% 50% auto auto;
  transform: translate(50%, -50%);
  width: 90%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  font-size: 0.8em;
  color: #333;
}

.product:hover img,
.prod:hover img {
  opacity: 0;
}

.product:hover .product-text,
.prod:hover .prod-text {
  opacity: 1;
}

/* ============================================
   ИСПРАВЛЕНИЕ #4: КНОПКИ SWIPER
   ============================================ */
.swiper-thumbs {
  max-width: 92%;
  margin: 20px auto 0;
  height: 70px;
  box-sizing: border-box;
  padding: 0 40px;
}

.swiper-thumbs .swiper-wrapper {
  align-items: center;
}

.swiper-thumbs .swiper-slide {
  width: 70px;
  height: 70px;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
  background: transparent;
  border-radius: var(--radius-small);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  outline: 2px solid var(--color-bg-white);
  transform: scale(1.05);
}

.swiper-thumbs .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.swiper.my-slider {
  overflow: visible;
  padding: 20px 0;
}

.swiper.my-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: visible;
  width: 65%;
}

.swiper.my-slider .swiper-slide img {
  object-fit: contain;
  max-height: 70vh;
  max-width: 100%;
  width: 90%;
  height: 100%;
  display: block;
  margin: 0 auto;
  backface-visibility: hidden;
}

.swiper-slide-prev,
.swiper-slide-next {
  opacity: 0.4;
}

/* ИСПРАВЛЕНИЕ #4: Исправлено позиционирование кнопок Swiper */
.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%; /* ИСПРАВЛЕНО: было 35%, что смещало кнопки */
  transform: translateY(-50%);
  margin-top: 0;
  width: clamp(30px, 5vw, 70px);
  height: clamp(30px, 5vw, 70px);
  background: transparent;
  border: none;
  padding: 0;
  z-index: 100;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
  content: none;
}

.swiper-button-prev img,
.swiper-button-next img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

/* ИСПРАВЛЕНИЕ #4: Кнопки теперь позиционируются относительно центрального слайда */
.swiper-button-prev {
  left: clamp(5px, 2vw, 30px);
}

.swiper-button-next {
  right: clamp(5px, 2vw, 30px);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: translateY(-50%) scale(1.5);
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

.swiper-button-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Прячем теневые наложения Swiper */
.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right,
.swiper-3d .swiper-slide-shadow-top,
.swiper-3d .swiper-slide-shadow-bottom {
  display: none;
  background: none;
}

/* ============================================
   ОСТАЛЬНЫЕ СТИЛИ (без изменений)
   ============================================ */

/* Кнопки */
.button {
  font-size: 1rem;
  font-family: var(--font-primary);
  border-style: solid;
  border-width: 1px;
  cursor: pointer;
  font-weight: 400;
  margin: 0 0 1rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 1rem;
  border-radius: var(--radius-small);
  outline: 0;
  vertical-align: middle;
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-button);
  appearance: none;
  position: relative;
  text-shadow: 5px 10px 5px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.button:hover,
.button:active,
.button:focus {
  background-color: transparent;
}

.button:active {
  border: 1px solid;
}

.button--small {
  font-size: 13px;
  padding: 0.6rem 1.5rem;
}

/* Вкладки */
.tabs {
  clear: both;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}

.tab {
  position: relative;
  float: left;
  border-top: 1px solid var(--color-border);
  padding: 0 1em 0.1em;
  margin: 0;
  margin-right: 1px;
}

.tab-title {
  color: var(--color-text-muted);
  display: block;
  font-size: 15px;
  padding: 1.13333rem 0;
  text-align: center;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tab-title:hover,
.tab.is-active .tab-title {
  color: var(--color-text-main);
}

.tab.is-active {
  border: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border-lighter);
  box-shadow: 0 15px 15px #c2c2c2;
  margin-bottom: -1px;
}

.tab.is-active .tab-title {
  outline: 0;
  font-weight: 400;
  background: var(--color-bg-white);
}

.tab-content {
  display: none;
  padding: 1.5rem 0;
}

.tab-content.is-active {
  display: block;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-top: none;
  padding: 20px;
}

.tabs-contents {
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

/* FAQ блоки */
.faq-block {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
  justify-content: center;
  align-items: center;
  width: 88%;
  margin: 20px auto;
  padding: 5px 5px 10px 5px;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
}

.faq-block.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.left-block {
  flex: 1;
  padding: 20px;
}

.right-block {
  flex-shrink: 0;
}

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

/* Хлебные крошки */
.Breadcrumb {
  font-size: 0.9em;
  border-bottom: 1px solid #787878;
}

/* Footer */
#Footer {
  clear: both;
  font-size: 0.85em;
  text-align: center;
  margin: 0;
  padding: 15px 0 0 0;
  height: 99px;
  border-top: 2px solid var(--color-primary-dark);
}

/* Ninja Slider */
#ninja-slider {
  position: absolute;
  width: 100%;
  height: auto;
  background: var(--color-bg-white);
  padding: 0;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 0.98;
}

#ninja-slider ul {
  position: relative;
  list-style: none;
  padding: 0;
  box-sizing: border-box;
  background: black;
  margin-bottom: 0;
  margin-left: 0;
}

#ninja-slider li {
  width: 100%;
  height: 100%;
  inset: 0;
  position: absolute;
  font-size: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition: opacity var(--transition-very-slow);
}

#ninja-slider li.ns-show {
  opacity: 1;
}

#ninja-slider .ns-img {
  background-color: rgba(0, 0, 0, 0.8);
  background-size: contain;
  border-radius: var(--radius-small);
  cursor: default;
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

/* Скроллбар */
::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: solid var(--color-primary-dark);
  position: relative;
}

::-webkit-scrollbar-track::before {
  content: "Прокрутка слайдов";
  color: solid #940937;
  font-size: 12px;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  writing-mode: vertical-lr;
  text-align: center;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary-dark), #bcbcbc);
  border-radius: 8px;
  border: 2px #000;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-light), #000);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-dark) #bcbcbc;
}

/* Утилиты */
.FloatRight { float: right; }
.FloatLeft { float: left; }
.Clear { clear: both; }

.disabled {
  color: var(--color-bg-white);
  background-color: #dadada;
  border: 1px solid #dadada;
  cursor: no-drop;
  pointer-events: none;
}

.page-heading {
  text-align: center;
  margin: 0 0 30px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.2rem;
}

/* Дополнительный текст */
.additional-text {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  padding: 10px;
  animation: fancyFadeOut 1s;
  border: 1px solid #5d5d5f;
  color: var(--color-bg-white);
  visibility: hidden;
  text-align: center;
}

.additional-text a {
  background: transparent;
  display: block;
  height: 100%;
  color: #000;
  outline: 0;
  margin-top: 30%;
}

.card:hover .additional-text,
.card:hover .card-figcaption {
  opacity: 1;
  visibility: visible;
}

/* Меню Backlink */
.menubacklink {
  padding: 5px;
  background: linear-gradient(to bottom, #311e0f 0%, #8c8c8c 70%);
  color: var(--color-bg-white);
}

/* Скрытие элементов */
.HideOnDigitalProduct,
.ShowOnDigitalProduct {
  display: none;
}

/* ============================================
   МЕДИА-ЗАПРОСЫ (Консолидированные)
   ============================================ */

/* МОБИЛЬНЫЕ УСТРОЙСТВА (до 768px) */
@media (width <= 768px) {
  .nav-bar {
    display: none;
  }
  
  #mobileNavBar {
    display: table;
  }
  
  body {
    margin-top: 50px;
  }
  
  .swiper.my-slider .swiper-slide {
    width: 100%;
  }
  
  /* ИСПРАВЛЕНИЕ #4: Мобильное позиционирование кнопок Swiper */
  .swiper-button-prev,
  .swiper-button-next {
    top: 50%;
    width: clamp(25px, 8vw, 45px);
    height: clamp(25px, 8vw, 45px);
  }
  
  .swiper-button-prev {
    left: -7px;
  }
  
  .swiper-button-next {
    right: -10px;
  }
  
  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    transform: translateY(-50%) scale(1.1);
  }
  
  .faq-block {
    flex-direction: column;
  }
  
  body.show-nav .nav-bar {
    inset: 50px 0 auto 0;
    padding-bottom: 50px;
    position: fixed;
    width: 100%;
    z-index: 1000009;
    border: 0;
    max-height: 100%;
    overflow-y: scroll;
    background: var(--color-bg-white);
  }
}

/* МАЛЕНЬКИЕ ПЛАНШЕТЫ (до 800px) */
@media (width <= 800px) {
  .desktop {
    display: none;
  }
  
  #LogoImage {
    float: left;
    margin-top: -40px;
    width: 35%;
  }
  
  #Header {
    margin-top: 80px;
    height: 0;
  }
  
  #ninja-slider {
    display: none;
  }
  
  #Footer {
    margin: 0 15px;
  }
  
  .sm-simple a.droplink {
    padding: 5px;
    font-size: 0.9em;
  }
}

/* ПЛАНШЕТЫ (801px - 1023px) */
@media (width >= 801px) {
  body {
    padding-top: 0;
  }
  
  .tab-title {
    text-align: left;
  }
  
  .tab.is-active {
    border-top-color: var(--color-border-lighter);
  }
  
  .tab-title {
    padding: 0.73333rem 1.5rem;
  }
  
  .blog-post-figure {
    width: 66.66667%;
  }
}

/* ДЕСКТОП (1024px+) */
@media (width >= 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
    max-width: 90%;
  }
  
  .raz-menu {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    max-width: 70%;
  }
}

/* БОЛЬШИЕ ЭКРАНЫ (1261px+) */
@media (width >= 1261px) {
  .container {
    padding: 0 6rem;
  }
  
  .productView-brand {
    font-size: 20px;
    margin: -0.2rem 0 1rem;
  }
}

/* ОЧЕНЬ БОЛЬШИЕ ЭКРАНЫ (1650px+) */
@media (width >= 1650px) {
  .container {
    width: var(--container-width);
  }
}

/* АДАПТИВНОСТЬ ДЛЯ РАЗНЫХ РАЗМЕРОВ HEADER */
@media (width <= 2200px) {
  .containerfilter {
    margin: 0 0 0 20%;
  }
  
  #Header {
    height: 246px;
    padding: 0;
  }
  
  #LogoImage {
    margin-top: -65px;
    width: 145%;
  }
}

@media (width <= 1800px) {
  #Header {
    padding: 0;
    height: 228px;
  }
  
  #LogoImage {
    margin-top: -60px;
    width: 125%;
  }
}

@media (width <= 1600px) {
  #Header {
    padding: 0;
    height: 196px;
  }
  
  #LogoImage {
    margin-top: -60px;
    width: 125%;
  }
}

@media (width <= 1400px) {
  #Header {
    padding: 0;
    height: 156px;
  }
  
  #LogoImage {
    margin-top: -75px;
    width: 105%;
  }
}

@media (width <= 1200px) {
  #Header {
    padding: 0;
    height: 136px;
  }
  
  #LogoImage {
    margin-top: -85px;
    width: 80%;
  }
}

@media (width <= 1100px) {
  #Header {
    height: 128px;
    padding: 0;
  }
  
  #LogoImage {
    margin-top: -70px;
    width: 70%;
  }
}

@media (width <= 980px) {
  #LogoImage {
    margin-top: -70px;
    width: 60%;
  }
  
  #Header {
    height: 100px;
    margin-top: 0;
  }
  
  #ninja-slider ul {
    margin-left: 0;
  }
  
  .additional-text {
    display: none;
  }
}

@media (width <= 800px) and (orientation: portrait) {
  #Logo {
    text-align: center;
    width: 80%;
    float: none;
  }
}

@media (width <= 800px) and (orientation: landscape) {
  #LogoImage {
    float: left;
    margin-top: -30px;
    width: 35%;
  }
  
  #Header {
    margin-top: 100px;
    height: auto;
  }
  
  #ninja-slider {
    display: none;
  }
}

@media (width <= 700px) {
  #Header {
    margin-top: 0;
    height: auto;
  }
  
  #ninja-slider {
    display: none;
  }
  
  #LogoImage {
    margin-top: -90px;
    width: 30%;
    text-align: center;
    position: fixed;
  }
}

@media (width <= 500px) {
  body {
    font-size: 13px;
  }
}

@media (width <= 480px) {
  .small--one-whole {
    width: 100%;
  }
  
  .blog-title,
  .page-heading {
    font-size: 1em;
  }
  
  .home-blog-posts .home-blog-post:nth-child(even) {
    clear: left;
    padding-left: 0;
  }
  
  .home-blog-posts .home-blog-post {
    padding-left: 0;
  }
}

@media (width <= 450px) {
  #LogoImage {
    margin-top: -70px;
  }
  
  .FloatRight,
  .FloatLeft {
    float: none;
  }
}

@media (width <= 376px) {
  #LogoImage {
    margin-top: -25px;
    width: 55%;
  }
  
  #PhoneCart {
    margin-top: -40px;
    padding-right: 20px;
    width: 55%;
    font-size: 0.8em;
  }
}

@media (width <= 350px) {
  #Menu {
    top: 150px;
  }
}

/* GRID АДАПТИВНОСТЬ */
@media (width >= 481px) and (width <= 799px) {
  .medium--one-half {
    width: 49.69%;
  }
}

@media (width >= 800px) {
  .large--one-quarter {
    width: 25%;
  }
}

@media (width >= 551px) {
  .tab {
    float: left;
  }
  
  .tab.is-active {
    margin-bottom: -1px;
  }
  
  .productGrid .product {
    width: 33.33333%;
    padding: 0 0.15rem 0 0.5rem;
    float: none;
    vertical-align: top;
  }
}

/* ============================================
   АНИМАЦИИ (Оптимизированные)
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}

@keyframes zoomInDown {
  from {
    opacity: 0;
    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  60% {
    opacity: 1;
    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
  }
}

@keyframes bounceInDown {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }
  75% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, 5px, 0);
  }
  to {
    transform: none;
  }
}

@keyframes fancyZoomIn {
  from {
    opacity: 0;
    transform: scale3d(5, 5, 5);
  }
  50% {
    opacity: 0.5;
    transform: scale3d(1.5, 1.5, 1.5);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes fancyFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.8;
  }
}

@keyframes fancyFadeOut {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 0;
  }
}

@keyframes swiper-preloader-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fadeInUp {
  animation: fadeInUp 0.6s ease-out both;
}

.zoomIn {
  animation: zoomIn 0.6s ease-out both;
}

.zoomInDown {
  animation: zoomInDown 1s ease-out both;
}

.bounceInDown {
  animation: bounceInDown 1s ease-out both;
}

.fancyZoomIn {
  animation: fancyZoomIn 1s ease-out both;
}

.fancyFadeIn {
  animation: fancyFadeIn 0.7s ease-out both;
}

.fancyFadeOut {
  animation: fancyFadeOut 1s ease-out both;
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animated.infinite {
  animation-iteration-count: infinite;
}

.animated.hinge {
  animation-duration: 2s;
}

/* ============================================
   SWIPER CORE (Минимальная версия)
   ============================================ */

:root {
  --swiper-theme-color: #007aff;
  --swiper-navigation-size: 44px;
}

.swiper {
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
  display: block;
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

.swiper-slide {
  flex-shrink: 0;
  width: 65%;
  height: 100%;
  position: relative;
  transition-property: transform;
  display: block;
}

.swiper-lazy-preloader {
  width: 42px;
  height: 42px;
  position: absolute;
  inset: 50% auto auto 50%;
  margin: -21px 0 0 -21px;
  z-index: 10;
  transform-origin: 50%;
  box-sizing: border-box;
  border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
  border-radius: 50%;
  border-top-color: transparent;
  animation: swiper-preloader-spin 1s infinite linear;
}

.swiper-pagination {
  position: absolute;
  text-align: center;
  transition: 0.3s opacity;
  transform: translate3d(0, 0, 0);
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #000;
  opacity: 0.2;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--swiper-theme-color);
}

/* ============================================
   FONT AWESOME (Базовые иконки)
   ============================================ */

.fa,
.fas,
.fab,
.far,
.fal {
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  font-size: 0.7em;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1.3;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.fab {
  font-family: "Font Awesome 5 Brands";
}

.fa-angle-down::before {
  content: "\f107";
}

.fa-eye::before {
  content: "\f06e";
}

.fa-bars::before {
  content: "\f0c9";
}

.fa-telegram-plane::before {
  content: "\f3fe";
}

.fa-whatsapp::before {
  content: "\f232";
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   ============================================ */

.scrollup {
  width: 100%;
  height: 28px;
  opacity: 1;
  position: fixed;
  inset: auto 0 0 0;
  text-align: center;
  color: #000;
  font-size: 1.2em;
  padding: 0 10px;
  z-index: 99;
  background: var(--color-bg-grey);
}

.card .rating,
.rating {
  position: relative;
  inset: 50% auto auto auto;
  transform: translateY(-50%);
  font-size: 0.8rem;
}

article,
aside,
figcaption,
figure,
header,
main,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

.grid-item {
  width: 100%;
  float: left;
  padding: 0 0 20px 20px;
  vertical-align: top;
}

.bread {
  position: absolute;
  margin-left: 20px;
  z-index: 2;
  margin-top: -15px;
}

.textopis {
  margin: 0;
  padding: 0 0 0 15px;
}

/* Блог и новости */
.blog {
  margin-bottom: 1.5rem;
}

.blog + .blog {
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding-top: 3rem;
}

.blog-title {
  font-size: 22px;
  text-align: center;
  margin: 0 0 30px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
}

.blog-title a {
  text-decoration: none;
  color: inherit;
}

.blog-post-figure {
  text-align: center;
  width: auto;
  display: block;
  margin: auto;
}

.blog-thumbnail {
  margin: 0 0 2rem;
}

/* Домашняя страница - блог посты */
.home-blog-posts {
  text-align: center;
  overflow: visible;
  padding: 0;
  background: var(--color-bg-white);
  box-shadow: var(--shadow-soft);
}

.home-blog-posts .blog + .blog {
  margin: 0;
  border: none;
  padding: 0 0 30px 15px;
}

.home-blog-posts .home-blog-post:first-of-type {
  padding: 0;
}

.home-blog-posts .blog-title {
  clear: both;
  font-size: 0.9em;
  margin-bottom: 10px;
  padding-top: 9px;
  text-transform: uppercase;
}

.home-blog-posts p.posted {
  text-transform: uppercase;
  display: table;
  width: 100%;
  border: 1px solid var(--color-border);
  margin: 0;
  box-shadow: var(--shadow-button);
  text-align: center;
}

.home-blog-posts p.posted span.date {
  background-color: rgba(0, 0, 0, 0.03);
  font-family: var(--font-secondary);
  color: var(--color-text-main);
  padding: 15px 0 12px;
  text-align: center;
  line-height: 1;
  font-size: 80%;
  display: block;
}

.home-blog-posts .blog-post-figure {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
  text-align: center;
  background: var(--color-bg-grey);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.home-blog-posts .blog-post-figure .blog-thumbnail {
  margin: 0;
  padding: 0 10px;
}

.home-blog-posts .blog-post-figure a {
  display: block;
  height: 100%;
  width: 100%;
}

/* Просмотр продукта */
.productView-brand {
  color: var(--color-text-muted);
  font-size: 15px;
  margin: 0 0 0.73333rem;
}

.productView-brand a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.productView-brand a:hover {
  color: var(--color-success);
}

/* Пагинация категорий */
.CategoryPagination {
  padding: 5px;
  text-align: center;
  color: var(--color-text-dark);
  background: var(--color-bg-white);
  border: 1px solid #c097a1;
}

.CategoryPagination .PagingList,
.CategoryPagination .PagingList li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.CategoryPagination .PagingList li {
  display: inline;
  padding: 0 5px;
}

/* Контролы навигации слайдера */
#ninja-slider-prev,
#ninja-slider-next {
  position: absolute;
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 52px;
  margin: 0;
  border: 2px solid var(--color-bg-white);
  backface-visibility: hidden;
  color: var(--color-bg-white);
  overflow: hidden;
  user-select: none;
  font-family: sans-serif;
  font-size: 14px;
  transition: all 0.5s;
  cursor: pointer;
}

#ninja-slider-prev {
  left: auto;
  right: 50%;
  margin-right: -2px;
  display: none;
}

#ninja-slider-next {
  left: 50%;
  right: auto;
  display: none;
}

#ninja-slider-prev:hover,
#ninja-slider-next:hover {
  width: 80px;
  background-color: rgba(0, 0, 0, 0.6);
}

#ninja-slider-prev div,
#ninja-slider-next div {
  white-space: nowrap;
  opacity: 0;
  position: absolute;
}

#ninja-slider-prev div {
  left: 6px;
}

#ninja-slider-next div {
  right: 6px;
}

#ninja-slider-prev:hover div,
#ninja-slider-next:hover div {
  opacity: 1;
}

#ninja-slider-prev:hover.disabled {
  opacity: 0.1;
  cursor: default;
}

#ninja-slider-prev::before,
#ninja-slider-next::before {
  position: absolute;
  inset: 17px auto auto auto;
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  border-left: 4px solid var(--color-bg-white);
  border-top: 4px solid var(--color-bg-white);
  backface-visibility: hidden;
}

#ninja-slider-prev::before {
  transform: rotate(-45deg);
  right: 15px;
}

#ninja-slider-next::before {
  transform: rotate(135deg);
  left: 15px;
}

#ninja-slider-pager,
#ninja-slider-pause-play {
  display: none;
}

/* Разное меню */
.raz-menu {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0;
  padding: 0;
  max-width: 100%;
  margin: 0 auto;
}

.raz-item a {
  text-decoration: none;
  color: black;
  font-size: 18px;
  gap: 10px;
  padding: 15px;
}

/* Скрытие элементов на мобильных */
@media (width <= 500px) {
  #ninja-slider-prev,
  #ninja-slider-next,
  #ninja-slider-pager {
    display: none;
  }
}

/* ============================================
   КОНЕЦ ФАЙЛА
   ============================================ */