/* Отключение возможности выделения в элементе с классом nocopy */
.nocopy {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

span.red-far {
  color: red;
}

span.green-far {
  color: green;
}

.name-h2 {
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0;
  padding: 7px 15px;
  min-height: 13px;
  text-transform: none; 
  background-color: #99ccff;
}

.p-far {
  text-indent: 30px;  
  text-align: justify;
}

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.responsive {
  width: 100%;
  height: auto;
}

.container img {
  width: 100%;
  height: auto;
  display: inline-block;
  border: 1px solid #99ccff;
  box-shadow: -18px 0 20px -20px #333, 18px 0 20px -20px #333;
  padding: 0px;
  background: #ffffff;
  margin: 15px 0px 7px 0px;
}

ul.ul-far {
  padding: 0 0 0 20px;
  margin-top: 15px;
  margin-bottom: 5px;
}

ul#galochka li {
  list-style-image: url(/uploads/diz/blue-check-mark.jpg); 
}

ul#strelka li {
  list-style-image: url(/uploads/diz/ul-li-strelka.jpg); 
}

ul#disc li {
  list-style-type: disc;
}

ul#circle li {
  list-style-type: circle;
}

ul#square li {
  list-style-type: square;
}

ul.ul-tire {
  list-style: none;
}

ul.ul-tire li:before {
  content: "– ";
  padding-right: 5px;
}

table.feature {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid #99ccff;
  border-collapse: collapse;
}

table.feature td,
table.feature th {
  border: 1px dotted #99ccff;
  border-collapse: collapse;
  background: #f0f8ff;
  padding: 10px;
  text-align: left;
}

.blok-fon-96fafa {
  width: 100%;
  margin: 0px;
  padding: 15px;
  border: 2px solid #5aa6f2;
  background: #96fafa;
}

.h-far {
  text-align: left;
  margin-top: 2em;
  margin-bottom: .5rem;
}

.h-far h2,
.h-far h3,
.h-far h4 {
  background: #6699cc;
  margin-bottom: 0;
  padding: .5rem 1rem;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: #fff;
}

/* ==========================================================================
   MEDTOVAR.UZ — БАЗОВЫЕ SEO-СТИЛИ И КАРТОЧКИ ТОВАРОВ / КАТЕГОРИЙ
   ========================================================================== */

.med-product-content,
.med-seo-section {
  color: #334155;
  font-size: 15px;
  line-height: 1.65;
  margin-top: 25px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.med-product-content *,
.med-seo-section * {
  box-sizing: border-box;
}

.med-h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 15px 0 12px 0;
}

.med-product-content h2,
.med-product-content .med-h2,
.med-seo-section h2,
.med-seo-section .med-h2 {
  background: transparent !important;
  color: #1e293b !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 24px 0 12px 0 !important;
  padding: 0 0 8px 0 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 2px solid #e2e8f0 !important;
  text-transform: none !important;
}

.med-p {
  margin: 0 0 14px 0;
  color: #334155;
}

.med-lead-text {
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 18px;
  line-height: 1.6;
}

.med-product-content a,
.med-seo-section a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.med-product-content a:hover,
.med-seo-section a:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* Бейджи (верхний ряд) */
.med-badge-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 16px;
  gap: 8px;
}

.med-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}

.med-badge-brand {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
}

.med-badge-accent {
  background-color: #fef3c7 !important;
  color: #b45309 !important;
}

.med-badge-primary {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
}

a.med-badge-link,
.med-badge-row a {
  text-decoration: none !important;
}

/* Сетка карточек преимуществ (ПК: 4 в ряд, Планшет: 2х2, Моб: скрыто) */
.med-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.med-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #0284c7;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.med-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.08);
}

.med-card-icon {
  width: 34px;
  height: 34px;
  background-color: #f0f9ff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.med-card-icon svg {
  width: 18px;
  height: 18px;
  fill: #0284c7;
}

.med-feature-card strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.med-feature-card span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Сетка чек-листа преимуществ */
.med-advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0 20px 0;
}

.med-adv-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13.5px;
}

.med-adv-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.med-adv-icon svg {
  width: 11px;
  height: 11px;
  fill: #15803d;
}

/* Таблица технических характеристик (32% на 68%) */
.med-table-wrapper {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 16px 0;
  background: #ffffff;
}

.med-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  table-layout: auto;
}

.med-table tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.med-table tr:last-child {
  border-bottom: none;
}

.med-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.med-table tr:hover {
  background-color: #f1f5f9;
}

.med-table td {
  padding: 10px 14px;
  text-align: left;
  border: none;
}

/* Левая колонка — 32% ширины с переносом строк */
.med-table td:first-child {
  font-weight: 600;
  color: #1e293b;
  width: 32%;
  white-space: normal;
  padding: 10px 16px;
  border-right: 1px solid #e2e8f0;
}

/* Правая колонка — 68% ширины */
.med-table td:last-child {
  color: #475569;
  padding: 10px 16px;
  width: 68%;
}

/* Аккордеоны */
details.med-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #ffffff;
  overflow: hidden;
}

details.med-accordion summary {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  padding: 14px 16px;
  cursor: pointer;
  background: #f8fafc;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

details.med-accordion summary::-webkit-details-marker {
  display: none;
}

details.med-accordion summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 600;
  color: #0284c7;
  transition: transform 0.2s;
}

details.med-accordion[open] summary::after {
  content: '−';
}

details.med-accordion .med-accordion-body {
  padding: 14px 16px;
  border-top: 1px solid #e2e8f0;
}

/* Блок скачивания файлов */
.med-download-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 16px 0;
  font-size: 13.5px;
}

.med-download-box svg {
  flex-shrink: 0;
  fill: #16a34a;
}

.med-download-box a {
  color: #15803d;
  font-weight: 600;
  text-decoration: none;
}

.med-download-box a:hover {
  text-decoration: underline;
}

/* Информационные плашки (Alerts) */
.med-alert {
  display: flex;
  gap: 12px;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.5;
}

.med-alert-danger {
  background: #fff1f2;
  border-left: 4px solid #e11d48;
  color: #881337;
}

.med-alert-info {
  background: #f0f9ff;
  border-left: 4px solid #0284c7;
  color: #0c4a6e;
}

/* CTA Блок доставки */
.med-cta-box {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 18px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.med-cta-title {
  font-size: 16px;
  font-weight: 700;
  color: #0369a1;
}

/* ==========================================================================
   ПЛАГИН "ВЫ НЕДАВНО СМОТРЕЛИ" (Moguta CMS)
   ========================================================================== */

.mg-recently-viewed-plugin {
  position: relative;
  margin: 40px 0 20px 0;
  padding: 0 10px;
}

/* Жестко скрываем слайдер ДО инициализации JavaScript (защита от скачка) */
.mg-recently-viewed.hide-slider,
.mg-recently-viewed-plugin .hide-slider,
.mg-recently-viewed-plugin ul.mg-recently-viewed:not(.bxslider) {
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.mg-recently-viewed-plugin .bx-wrapper,
.mg-recently-viewed-plugin .bx-viewport {
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  overflow: hidden !important;
  padding: 6px 0 !important;
  transition: opacity 0.25s ease-in-out;
}

.mg-recently-viewed-plugin ul.mg-recently-viewed {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mg-recently-viewed-plugin h2 {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 20px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f172a;
  display: block;
}

.mg-recently-viewed-plugin h2 .custom-arrow {
  display: none;
}

.mg-recently-product-wrapper {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 10px 14px 10px;
  box-sizing: border-box;
  text-align: center;
  min-height: 300px;
  height: 100%;
  margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mg-recently-product-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.mg-recently-viewed .mg-recently-product-image a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 125px;
  text-align: center;
  position: relative;
  margin-bottom: 8px;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.mg-recently-viewed .mg-recently-product-image a img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
  margin: auto;
  box-shadow: none !important;
  filter: none !important;
  background: transparent !important;
}

.mg-recently-viewed .mg-recently-product-name {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  max-height: 38px !important;
  margin: 0 0 10px 0 !important;
  overflow: hidden;
}

.mg-recently-viewed .mg-recently-product-name a {
  color: #1e293b;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 500;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.mg-recently-viewed .mg-recently-product-name a:hover {
  color: #0088cc;
  text-decoration: none;
}

.mg-recently-viewed .mg-recently-product-price,
.mg-recently-viewed .mg-recently-product-wrapper .product-price {
  margin-top: auto !important;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #D21919;
  font-size: 16px;
  font-weight: 700;
  display: block;
  text-align: center;
  height: 24px;
  line-height: 24px;
  margin-bottom: 10px !important;
}

.mg-recently-viewed .addToCart,
.mg-recently-viewed .product-info {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #0088cc !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  width: calc(100% - 8px) !important;
  margin: 0 auto !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.mg-recently-viewed .addToCart:hover,
.mg-recently-viewed .product-info:hover {
  background: #0077b3 !important;
  color: #ffffff !important;
}

.mg-recently-viewed-plugin .bx-prev,
.mg-recently-viewed-plugin .bx-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: block;
  z-index: 10;
  text-indent: -999999px;
}

.mg-recently-viewed-plugin .bx-prev { left: -12px; }
.mg-recently-viewed-plugin .bx-next { right: -12px; }

/* ==========================================================================
   АДАПТИВНОСТЬ (Медиазапросы)
   ========================================================================== */

/* Планшеты (641px - 1023px) */
@media (min-width: 641px) and (max-width: 1023px) {
  .med-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .med-table td:first-child {
    width: 38%;
  }
  .med-table td:last-child {
    width: 62%;
  }
}

/* Смартфоны (до 640px) */
@media (max-width: 640px) {
  .med-features-grid {
    display: none !important;
  }
  .med-advantages-grid {
    grid-template-columns: 1fr;
  }
  .med-table td:first-child {
    width: 45%;
    padding: 8px 10px;
    font-size: 12.5px;
  }
  .med-table td:last-child {
    width: 55%;
    padding: 8px 10px;
    font-size: 12.5px;
  }
  .mg-recently-viewed-plugin .bx-prev { left: 0; }
  .mg-recently-viewed-plugin .bx-next { right: 0; }
}