/* resheniya.css - additions for the parametrized ResolutionPage template.
 * Loaded AFTER resheniya-fundament.css (which already imports site.css and
 * provides all .rf-* structural classes). Industry-solution pages reuse rf-*
 * for head, hero, sections, sorts cards, docs cards, FAQ accordion, big CTA
 * and add the few .rs-* deltas below for the things unique to the new pages:
 *
 *   .rs-badge          - "Решение" pill above the H1
 *   .rs-head__top      - flex row that holds the badge + "Updated:" date
 *   .rs-hero-preview   - 6-tile preview grid inside the hero left panel
 *   .rs-spec           - typical-kit spec table wrapper (uses .tbl class)
 *   .rs-info           - 3-col logistics info grid (like gp-info)
 *   .rs-case-big       - single big case card with photo placeholder
 *   .rs-related        - 4-col related links cluster
 */

/* ========== HEAD additions ================================================ */
.rs-head__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.rs-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px 4px;
  background: var(--c-accent-soft, #E6F0FB);
  color: var(--c-accent, #2A6FDB);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
}
.rs-head__updated {
  font-size: 12px;
  color: var(--fg-3);
}
.rs-head__updated .t-num { font-family: var(--font-mono); }

/* ========== HERO preview tiles ============================================ */
.rs-hero-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
}
.rs-hero-preview__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 20px;
  border-right: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  min-height: 140px;
}
.rs-hero-preview__cell:nth-child(3n) { border-right: 0; }
.rs-hero-preview__cell:nth-last-child(-n+3) { border-bottom: 0; }
.rs-hero-preview__ic {
  width: 32px; height: 32px;
  color: var(--fg-1);
  margin-bottom: 4px;
}
.rs-hero-preview__t {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  line-height: 1.3;
}
.rs-hero-preview__s {
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}

@media (max-width: 760px) {
  .rs-hero-preview { grid-template-columns: repeat(2, 1fr); }
  .rs-hero-preview__cell:nth-child(3n) { border-right: 1px solid var(--border-1); }
  .rs-hero-preview__cell:nth-child(2n) { border-right: 0; }
}

/* ========== SPEC TABLE (typical kit) ====================================== */
.rs-spec {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  overflow: hidden;
}
.rs-spec .tbl { margin: 0; }
.rs-spec__total td {
  background: var(--bg-soft);
  border-top: 2px solid var(--border-1);
}
.rs-spec__note {
  margin: 0;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--fg-2);
  background: var(--bg-soft);
  border-top: 1px solid var(--border-1);
  line-height: 1.55;
}

/* ========== LOGISTICS info grid =========================================== */
.rs-info {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.rs-info__col { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rs-info__lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  font-weight: 600;
}
.rs-info__v {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--fg-1);
  line-height: 1.2;
}
.rs-info__sub {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .rs-info { grid-template-columns: 1fr; gap: 22px; }
}

/* ========== CASE big card ================================================= */
.rs-case-big {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  overflow: hidden;
}
.rs-case-big__photo {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #F4F6F9 0 12px, #EDF0F4 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--c-steel-500, #8d99a8);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  min-height: 360px;
}
.rs-case-big__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rs-case-big__photo-note {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.85);
  padding: 4px 10px;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  font-size: 11px;
  font-family: inherit;
  color: var(--fg-3);
  letter-spacing: 0;
  font-weight: 500;
}
.rs-case-big__body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rs-case-big__city {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-accent);
  font-weight: 600;
}
.rs-case-big__ttl {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: var(--fg-1);
}
.rs-case-big__desc {
  margin: 0;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}
.rs-case-big__kit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 14px 0 14px;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
.rs-case-big__kit-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rs-case-big__kit-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.rs-case-big__kit-v {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-1);
}
.rs-case-big__meta {
  display: flex;
  gap: 24px;
}
.rs-case-big__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--fg-3);
}
.rs-case-big__meta-item b {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.01em;
}
.rs-case-big__note {
  margin: 0;
  font-size: 12px;
  color: var(--fg-3);
  font-style: italic;
  line-height: 1.45;
}

@media (max-width: 880px) {
  .rs-case-big { grid-template-columns: 1fr; }
  .rs-case-big__photo { min-height: 220px; }
}

/* ========== RELATED cluster (4 cols) ====================================== */
.rs-related {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.rs-rel-col h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  font-weight: 600;
  margin: 0 0 12px;
}
.rs-rel-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rs-rel-col li a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-2, 6px);
  text-decoration: none;
  color: var(--fg-1);
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.15s ease;
}
.rs-rel-col li a:hover {
  background: var(--bg-soft);
}
.rs-rel-col li .url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 2px;
}
.rs-rel-col li svg { color: var(--fg-3); flex: 0 0 14px; }

@media (max-width: 1000px) {
  .rs-related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .rs-related { grid-template-columns: 1fr; }
}
