/* Materius — информационные страницы (вставка в статьи OpenCart) */

.mt-article { max-width: 960px; margin: 24px auto 56px; }
.mt-article__title { font-size: var(--mt-fs-32); font-weight: 800; margin: 0 0 8px; color: var(--mt-heading); }
.mt-article__body { font-size: var(--mt-fs-15); line-height: 1.75; color: var(--mt-text-muted); }
.mt-article__body > .mt-ipage { margin-top: 8px; }

/* ─── Layout blocks ─── */
.mt-ipage { color: var(--mt-text); }
.mt-ipage__hero {
  position: relative;
  padding: 36px 32px;
  margin-bottom: 32px;
  border-radius: var(--mt-radius-lg);
  background: linear-gradient(135deg, rgba(var(--mt-brand-red-rgb), .22) 0%, rgba(var(--mt-accent-rgb), .14) 55%, var(--mt-surface) 100%);
  border: 1px solid var(--mt-border);
  overflow: hidden;
}
.mt-ipage__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(var(--mt-accent-rgb), .25), transparent 45%);
  animation: mt-ipage-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.mt-ipage__hero > * { position: relative; z-index: 1; }
.mt-ipage__eyebrow {
  display: inline-block;
  font-size: var(--mt-fs-12);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--mt-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.mt-ipage__hero h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--mt-heading);
  line-height: 1.2;
}
.mt-ipage__hero p { margin: 0; max-width: 640px; color: var(--mt-text-muted); }

.mt-ipage__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.mt-ipage__card {
  padding: 22px;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-lg);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  animation: mt-ipage-fade-up .6s ease both;
}
.mt-ipage__card:nth-child(2) { animation-delay: .08s; }
.mt-ipage__card:nth-child(3) { animation-delay: .16s; }
.mt-ipage__card:nth-child(4) { animation-delay: .24s; }
.mt-ipage__card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--mt-accent-rgb), .35);
  box-shadow: var(--mt-shadow-md);
}
.mt-ipage__card-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(var(--mt-brand-red-rgb), .15);
  color: var(--mt-brand-red);
  border-radius: var(--mt-radius-md);
  font-size: 20px;
  margin-bottom: 14px;
}
.mt-ipage__card h3 { margin: 0 0 8px; font-size: var(--mt-fs-18); color: var(--mt-heading); }
.mt-ipage__card p { margin: 0; font-size: var(--mt-fs-14); color: var(--mt-text-muted); line-height: 1.6; }

.mt-ipage__steps { counter-reset: mt-step; margin: 28px 0; padding: 0; list-style: none; }
.mt-ipage__step {
  position: relative;
  padding: 18px 18px 18px 72px;
  margin-bottom: 12px;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  animation: mt-ipage-fade-up .5s ease both;
}
.mt-ipage__step::before {
  counter-increment: mt-step;
  content: counter(mt-step);
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mt-brand-red);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  font-size: var(--mt-fs-16);
}
.mt-ipage__step strong { display: block; color: var(--mt-heading); margin-bottom: 4px; }
.mt-ipage__step span { color: var(--mt-text-muted); font-size: var(--mt-fs-14); }

.mt-ipage__highlight {
  padding: 20px 24px;
  margin: 24px 0;
  border-left: 4px solid var(--mt-brand-red);
  background: rgba(var(--mt-brand-red-rgb), .08);
  border-radius: 0 var(--mt-radius-md) var(--mt-radius-md) 0;
}
.mt-ipage__highlight p { margin: 0; color: var(--mt-text); }

.mt-ipage__list { margin: 16px 0; padding: 0; list-style: none; }
.mt-ipage__list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--mt-border);
  color: var(--mt-text-muted);
  font-size: var(--mt-fs-14);
}
.mt-ipage__list li:last-child { border-bottom: 0; }
.mt-ipage__list li::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0; top: 12px;
  color: var(--mt-accent);
  font-size: 12px;
}

.mt-ipage__faq { margin: 28px 0; }
.mt-ipage__faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  overflow: hidden;
  background: var(--mt-surface);
}
.mt-ipage__faq-q {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--mt-heading);
  cursor: default;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mt-ipage__faq-q i { color: var(--mt-brand-red); }
.mt-ipage__faq-a {
  padding: 0 20px 16px 44px;
  color: var(--mt-text-muted);
  font-size: var(--mt-fs-14);
  line-height: 1.65;
}

.mt-ipage__cta {
  text-align: center;
  padding: 32px 24px;
  margin-top: 36px;
  background: var(--mt-khaki-bg);
  border-radius: var(--mt-radius-lg);
  color: #fff;
}
.mt-ipage__cta h3 { margin: 0 0 8px; color: #fff; font-size: var(--mt-fs-24); }
.mt-ipage__cta p { margin: 0 0 16px; opacity: .9; }

.mt-ipage h2 {
  margin: 36px 0 16px;
  font-size: var(--mt-fs-24);
  color: var(--mt-heading);
}
.mt-ipage p { margin: 0 0 14px; color: var(--mt-text-muted); }
.mt-ipage a { color: var(--mt-accent); text-decoration: underline; text-underline-offset: 3px; }
.mt-ipage a:hover { color: var(--mt-accent-hover); }

.mt-ipage__table-wrap {
  overflow-x: auto;
  margin: 16px 0 28px;
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  background: var(--mt-surface);
}
.mt-ipage__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}
.mt-ipage__table th,
.mt-ipage__table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--mt-border);
  font-size: var(--mt-fs-14);
}
.mt-ipage__table th {
  color: var(--mt-heading);
  background: rgba(255, 255, 255, .03);
  font-weight: 600;
}
.mt-ipage__table td { color: var(--mt-text-muted); }
.mt-ipage__table tbody tr:last-child td { border-bottom: 0; }
.mt-ipage__table tbody tr:hover td { color: var(--mt-text); }

@keyframes mt-ipage-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mt-ipage-glow {
  from { opacity: .5; }
  to   { opacity: 1; }
}

@media (max-width: 767px) {
  .mt-ipage__hero { padding: 24px 20px; }
  .mt-ipage__step { padding-left: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .mt-ipage__card, .mt-ipage__step, .mt-ipage__hero::before { animation: none; }
}
