/* ==========================================================================
   Журнал SmartGear (/magazine/)
   ========================================================================== */

/* ---------- Список статей ---------- */
.magazine-list__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 0 -12px;
}

.magazine-list__cell {
  width: 33.333%;
  padding: 0 12px 30px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.magazine-list__empty {
  margin: 0 0 30px;
  font-size: 16px;
  color: #848892;
}

.magazine-list__pager {
  margin-top: 10px;
}

.magazine-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border-radius: 10px;
  -webkit-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
          box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  -webkit-transition: box-shadow 0.3s;
  transition: box-shadow 0.3s;
}

.magazine-card:hover {
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.magazine-card__img {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
}

.magazine-card__img img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
}

.magazine-card:hover .magazine-card__img img {
  -webkit-transform: scale(1.04);
          transform: scale(1.04);
}

.magazine-card__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding: 20px 25px 25px;
}

.magazine-card__date {
  margin-bottom: 12px;
  font-size: clamp(12px, 0.875vw, 14px);
  line-height: 120%;
  color: #848892;
}

.magazine-card__title {
  margin-bottom: 10px;
  font-size: clamp(18px, 1.375vw, 22px);
  line-height: 135%;
  font-weight: 700;
  color: #1B1F29;
  text-decoration: none;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}

.magazine-card__title:hover {
  color: #C20F0F;
}

.magazine-card__text {
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 150%;
  color: #545862;
}

.magazine-card__more {
  margin-top: auto;
  -ms-flex-item-align: start;
      align-self: flex-start;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  height: auto;
  padding: 0;
}

.magazine-card__more img,
.magazine-product__more img {
  display: inline-block;
  width: 9px;
  height: 12px;
  max-width: none;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Детальная страница ---------- */
.magazine-detail__inner {
  max-width: 850px;
  padding: 30px 40px 40px;
}

.magazine-detail__date {
  margin: -10px 0 25px;
  font-size: 14px;
  line-height: 150%;
  color: #848892;
}

.magazine-detail__picture {
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
}

.magazine-detail__picture img {
  display: block;
  width: 100%;
  height: auto;
}

/* Контент из визуального редактора */
.magazine-detail__content {
  font-size: 16px;
  line-height: 160%;
  color: #1B1F29;
}

.magazine-detail__content > *:first-child {
  margin-top: 0;
}

.magazine-detail__content > *:last-child {
  margin-bottom: 0;
}

.magazine-detail__content p {
  margin: 0 0 15px;
}

.magazine-detail__content h2,
.magazine-detail__content h3,
.magazine-detail__content h4 {
  margin: 30px 0 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 135%;
  text-transform: none;
}

.magazine-detail__content h2 {
  font-size: clamp(20px, 1.625vw, 26px);
}

.magazine-detail__content h3 {
  font-size: clamp(18px, 1.375vw, 22px);
}

.magazine-detail__content h4 {
  font-size: 18px;
}

.magazine-detail__content a {
  color: #C20F0F;
  text-decoration: underline;
}

.magazine-detail__content a:hover {
  text-decoration: none;
}

.magazine-detail__content ul,
.magazine-detail__content ol {
  margin: 0 0 15px;
  padding-left: 22px;
}

.magazine-detail__content ul {
  list-style-type: disc;
}

.magazine-detail__content ol {
  list-style-type: decimal;
}

.magazine-detail__content li {
  margin-bottom: 7px;
}

.magazine-detail__content img {
  max-width: 100%;
  height: auto !important;
  border-radius: 10px;
}

.magazine-detail__content figure {
  margin: 25px 0;
}

.magazine-detail__content figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #848892;
  text-align: center;
}

.magazine-detail__content blockquote {
  margin: 25px 0;
  padding: 15px 20px;
  background: #f7f7f9;
  border-left: 4px solid #C20F0F;
  border-radius: 8px;
  font-style: italic;
}

.magazine-detail__content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  overflow-x: auto;
  border-collapse: collapse;
}

.magazine-detail__content th,
.magazine-detail__content td {
  padding: 10px 12px;
  border: 1px solid #e6e6ea;
  text-align: left;
  vertical-align: top;
}

.magazine-detail__content th {
  background: #f7f7f9;
  font-weight: 700;
}

.magazine-detail__content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 25px 0;
  border: 0;
  border-radius: 10px;
}

/* ---------- Товары из статьи ---------- */
.magazine-products {
  margin-top: 50px;
}

.magazine-products__title {
  margin: 0 0 25px;
  font-size: clamp(20px, 1.875vw, 30px);
  line-height: 120%;
  color: #1B1F29;
}

.magazine-products__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 0 -12px;
}

.magazine-products__cell {
  width: 25%;
  padding: 0 12px 24px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.magazine-product {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  color: #1B1F29;
  text-decoration: none;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
          box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  -webkit-transition: box-shadow 0.3s;
  transition: box-shadow 0.3s;
}

.magazine-product:hover {
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.magazine-product__img {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 200px;
  margin-bottom: 15px;
}

.magazine-product__img img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.magazine-product__name {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 135%;
  font-weight: 700;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}

.magazine-product:hover .magazine-product__name {
  color: #C20F0F;
}

.magazine-product__more {
  margin-top: auto;
  -ms-flex-item-align: start;
      align-self: flex-start;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  height: auto;
  padding: 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
  .magazine-products__cell {
    width: 33.333%;
  }
}

@media (max-width: 991px) {
  .magazine-list__row,
  .magazine-products__row {
    margin: 0 -10px;
  }

  .magazine-list__cell {
    width: 50%;
    padding: 0 10px 20px;
  }

  .magazine-card__img {
    height: 220px;
  }

  .magazine-card__body {
    padding: 15px 20px 20px;
  }

  .magazine-detail__inner {
    padding: 20px;
  }

  .magazine-detail__date {
    margin: -5px 0 15px;
    font-size: 12px;
  }

  .magazine-detail__picture {
    margin-bottom: 20px;
  }

  .magazine-products {
    margin-top: 35px;
  }

  .magazine-products__cell {
    width: 50%;
    padding: 0 10px 20px;
  }
}

@media (max-width: 768px) {
  .magazine-list__cell {
    width: 100%;
  }

  .magazine-card__img {
    height: 200px;
  }

  .magazine-card__text {
    font-size: 14px;
  }

  .magazine-detail__content {
    font-size: 14px;
  }

  .magazine-detail__content h2,
  .magazine-detail__content h3,
  .magazine-detail__content h4 {
    margin: 20px 0 10px;
  }

  .magazine-product__img {
    height: 150px;
  }
}

@media (max-width: 500px) {
  .magazine-products__row {
    margin: 0 -5px;
  }

  .magazine-products__cell {
    padding: 0 5px 10px;
  }

  .magazine-product {
    padding: 12px;
  }

  .magazine-product__name {
    font-size: 14px;
  }
}

/* ---------- Блоки статей журнала (mz-), 27.11.2026 ---------- */
.mz .mz-sub {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 150%;
  font-style: italic;
  color: #545862;
}

.mz .mz-toc {
  margin: 0 0 30px;
  padding: 20px 25px;
  background: #F8F9FA;
  border-radius: 10px;
}

.mz .mz-toc__t {
  margin: 0 0 10px;
  font-weight: 700;
  color: #1B1F29;
}

.mz .mz-toc ol {
  margin: 0;
}

.mz .mz-check {
  margin: 25px 0;
  padding: 20px 25px;
  border: 2px solid #C20F0F;
  border-radius: 10px;
}

.mz .mz-check__t {
  margin: 0 0 8px;
  font-weight: 700;
  color: #1B1F29;
}

.mz .mz-check p:last-child,
.mz .mz-myth p:last-child,
.mz .mz-cta p:last-child {
  margin-bottom: 0;
}

.mz .mz-myth {
  margin: 25px 0;
  padding: 18px 22px;
  background: #F8F9FA;
  border-left: 4px solid #C20F0F;
  border-radius: 0 10px 10px 0;
}

.mz .mz-table {
  margin: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mz .mz-table table {
  margin: 0;
  min-width: 560px;
}

.mz .mz-cta {
  margin: 35px 0;
  padding: 25px 30px;
  color: #ffffff;
  background: #232731;
  border-radius: 10px;
}

.mz .mz-cta__t {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 130%;
  font-weight: 700;
}

.mz .mz-cta__btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mz a.mz-btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 120%;
  color: #ffffff;
  text-decoration: none;
  background: #C20F0F;
  border: 2px solid #C20F0F;
  border-radius: 6px;
  -webkit-transition: background 0.3s, border-color 0.3s;
  transition: background 0.3s, border-color 0.3s;
}

.mz a.mz-btn:hover {
  color: #ffffff;
  background: #AE0000;
  border-color: #AE0000;
}

.mz a.mz-btn--o {
  background: transparent;
  border-color: #ffffff;
}

.mz a.mz-btn--o:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.mz .mz-faq {
  padding: 14px 0;
  border-bottom: 1px solid #E3E5E8;
}

.mz .mz-faq summary {
  font-weight: 700;
  color: #1B1F29;
  cursor: pointer;
}

.mz .mz-faq p {
  margin: 10px 0 0;
}

.mz .mz-src li {
  font-size: 14px;
  word-break: break-word;
}

@media (max-width: 768px) {
  .mz .mz-sub {
    font-size: 15px;
  }

  .mz .mz-toc,
  .mz .mz-check,
  .mz .mz-cta {
    padding: 16px 18px;
  }

  .mz .mz-cta__t {
    font-size: 18px;
  }

  .mz .mz-cta__btns a.mz-btn {
    width: 100%;
    text-align: center;
  }
}
