/* marochnik.css - steel-grade reference page deltas.
 *
 * Loaded AFTER site.css and gost.css. We reuse all the .gp-* structural
 * patterns (head, intro, meta card, TOC, sections, tables, FAQ accordion,
 * SKU grid, big CTA, related cluster, author block) verbatim - only the
 * three mark-specific layouts get their own classes here:
 *
 *   .mk-tech     - auto-fit key/value grid for technological properties
 *                  (variable item count, doesn't fit the fixed 3-col gp-info)
 *   .mk-apply    - 4-up cards for application areas (each links to a catalog
 *                  segment, taller than SKU plates so it can carry description)
 *   .mk-gostlist - dense list of GOST cross-references with name + description
 */

/* ========== mk-tech: technological properties grid ========================= */
.mk-tech {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 28px;
}
.mk-tech__item { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mk-tech__lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  font-weight: 600;
}
.mk-tech__v {
  font-size: 14px;
  color: var(--fg-1);
  line-height: 1.55;
}

/* mk-tech-table: технологические свойства таблицей (читабельнее карточек) */
.mk-tech-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border-1);
  font-size: 14px;
}
.mk-tech-table tr + tr { border-top: 1px solid var(--border-1); }
.mk-tech-table th {
  text-align: left;
  vertical-align: top;
  width: 230px;
  padding: 14px 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  font-weight: 600;
  background: var(--bg-soft);
  border-right: 1px solid var(--border-1);
}
.mk-tech-table td { padding: 14px 18px; color: var(--fg-1); line-height: 1.6; }
@media (max-width: 640px) {
  .mk-tech-table th, .mk-tech-table td { display: block; width: auto; border-right: none; }
  .mk-tech-table th { padding-bottom: 4px; }
  .mk-tech-table td { padding-top: 0; }
}

/* ========== mk-apply: application-area cards ============================== */
.mk-apply {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.mk-apply__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.mk-apply__card:hover {
  border-color: var(--fg-2, #4a5560);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -10px rgba(15, 22, 36, 0.18);
}
.mk-apply__h {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
  line-height: 1.3;
}
.mk-apply__d {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
  flex: 1;
}
.mk-apply__cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent, #2A6FDB);
}

/* ========== mk-gostlist: structured cross-reference list ================== */
.mk-gostlist {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  overflow: hidden;
}
.mk-gostlist li {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 16px 26px;
  border-bottom: 1px solid var(--border-1);
}
.mk-gostlist li:last-child { border-bottom: none; }
.mk-gostlist__name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-1);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.mk-gostlist__name:hover {
  color: var(--accent, #2A6FDB);
  border-bottom-color: currentColor;
}
.mk-gostlist__desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .mk-gostlist li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }
}

/* ========== sticky meta card (generic mark page) ========================== */
.gp-meta--sticky { position: sticky; top: 84px; }
@media (max-width: 980px) {
  .gp-meta--sticky { position: static; top: auto; }
}

/* ========== mk-buy: weight-calc + stock SKUs split ======================== */
.mk-buy {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
.mk-buy--nocalc { grid-template-columns: 1fr; }
.mk-buy__grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
.mk-buy__empty {
  background: #fff;
  border: 1px dashed var(--c-steel-300);
  border-radius: var(--r-3);
  padding: 26px 28px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
}
.mk-buy__empty-h { font-size: 16px; font-weight: 600; color: var(--fg-1); margin-bottom: 8px; }
.mk-buy__empty p { margin: 0; }

/* Живые офферы марки (марка→каталог) */
.mk-buy__h { font-size: 15px; font-weight: 600; color: var(--fg-1); margin-bottom: 12px; }
.mk-buy__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--c-steel-300, #dbe1e8); border-radius: var(--r-3); overflow: hidden; background: #fff; }
.mk-buy__row + .mk-buy__row { border-top: 1px solid var(--c-steel-300, #dbe1e8); }
.mk-buy__row-link {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; text-decoration: none; color: var(--fg-1);
  transition: background .12s;
}
.mk-buy__row-link:hover { background: var(--bg-soft, #f4f6f9); }
.mk-buy__name { flex: 1 1 auto; font-size: 14px; font-weight: 500; line-height: 1.4; }
.mk-buy__gost { color: var(--fg-3, #8a94a0); font-weight: 400; font-size: 13px; white-space: nowrap; }
.mk-buy__val { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; text-align: right; }
.mk-buy__price { font-size: 14px; font-weight: 600; color: var(--fg-1); white-space: nowrap; }
.mk-buy__stock { font-size: 12px; white-space: nowrap; }
.mk-buy__stock--in { color: #1f9d55; }
.mk-buy__stock--order { color: var(--fg-3, #8a94a0); }
.mk-buy__chev { flex: 0 0 auto; color: var(--fg-3, #8a94a0); }
.mk-buy__all {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 14px; font-weight: 500;
  color: var(--accent, #2A6FDB); text-decoration: none;
}
.mk-buy__all:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .mk-buy__row-link { flex-wrap: wrap; gap: 6px 14px; }
  .mk-buy__val { width: 100%; justify-content: flex-start; }
  .mk-buy__chev { display: none; }
}

@media (max-width: 980px) {
  .mk-buy { grid-template-columns: 1fr; }
  .mk-buy__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mk-buy__grid { grid-template-columns: 1fr; }
}

/* ========== mkc: weight calculator widget ================================= */
.mkc {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  padding: 20px 22px 18px;
}
.mkc__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.mkc__title { font-size: 15px; font-weight: 600; color: var(--fg-1); line-height: 1.3; }
.mkc__rho { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.mkc__seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: var(--bg-soft); border: 1px solid var(--border-1);
  border-radius: var(--r-2, 8px); padding: 4px; margin-bottom: 16px;
}
.mkc__seg-btn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; padding: 7px 8px; border-radius: 6px;
  color: var(--fg-2); transition: background 0.12s ease, color 0.12s ease;
}
.mkc__seg-btn:hover { color: var(--fg-1); }
.mkc__seg-btn.is-active { background: #fff; color: var(--fg-1); font-weight: 600; box-shadow: 0 1px 2px rgba(15,22,36,0.12); }
.mkc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 16px; }
.mkc-field { display: flex; flex-direction: column; gap: 5px; }
.mkc-field__lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-3); font-weight: 600; }
.mkc-field__in { position: relative; display: flex; align-items: center; }
.mkc-input {
  width: 100%; font: inherit; font-size: 15px; padding: 9px 38px 9px 12px;
  border: 1px solid var(--border-1); border-radius: var(--r-2, 8px);
  background: #fff; color: var(--fg-1); -moz-appearance: textfield;
}
.mkc-input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.mkc-field__suf {
  position: absolute; right: 12px; font-size: 12px; color: var(--fg-3);
  font-family: var(--font-mono); pointer-events: none;
}
.mkc__out {
  border-top: 1px solid var(--border-1); padding-top: 14px;
  display: grid; gap: 8px;
}
.mkc__out-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mkc__out-lbl { font-size: 13px; color: var(--fg-3); }
.mkc__out-val { font-size: 15px; font-weight: 600; color: var(--fg-1); white-space: nowrap; }
.mkc__out-row--total .mkc__out-lbl { color: var(--fg-2); }
.mkc__out-row--total .mkc__out-val { font-size: 22px; color: var(--c-accent); letter-spacing: -0.01em; }
.mkc__note { margin-top: 14px; font-size: 11px; line-height: 1.5; color: var(--fg-3); }
