/* Раздел «Решения»: индекс и страницы систем. Подключается после site.css */

.hero { padding-bottom: clamp(36px, 4vw, 52px); }
.hero__top { max-width: 800px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero h1 span { color: var(--accent-ink); }
.hero .lead { font-size: 1rem; max-width: 680px; }
.crumbs { font-size: 0.8rem; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent-ink); }

/* что входит в систему */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feat__ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat__ico svg { width: 22px; height: 22px; }
.feat b { display: block; font-size: 1rem; font-weight: 800; margin-bottom: 7px; }
.feat span { font-size: 0.86rem; color: var(--ink-2); line-height: 1.6; }

/* сравнение */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; vertical-align: top; font-size: 0.87rem; line-height: 1.55; border-bottom: 1px solid var(--border); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: none; }
.cmp thead th { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-soft); }
.cmp thead th.cmp__on { color: var(--accent-ink); }
.cmp tbody th { width: 22%; font-weight: 800; color: var(--ink); }
.cmp td.cmp__off { color: var(--ink-2); }
.cmp td.cmp__on { font-weight: 600; color: var(--ink); background: rgba(25, 181, 143, 0.04); }

/* оборудование в системе */
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kit__c { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.kit__pic { aspect-ratio: 4 / 3; background: #f1f3f2; display: flex; align-items: center; justify-content: center; }
.kit__pic img { width: 100%; height: 100%; object-fit: contain; }
.kit__pic--ico { color: var(--accent-ink); }
.kit__pic--ico svg { width: 56px; height: 56px; }
.kit__b { padding: 20px 22px 22px; }
.kit__t { display: block; font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.kit__role { display: block; font-size: 0.86rem; color: var(--ink-2); line-height: 1.6; }
.kit__spec { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.78rem; font-weight: 700; color: var(--accent-ink); }

/* сценарии */
.scen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.scen__i { padding: 22px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.scen__i b { display: block; font-size: 0.98rem; font-weight: 800; margin-bottom: 8px; }
.scen__i span { font-size: 0.84rem; color: var(--ink-2); line-height: 1.6; }

/* faq */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq summary { padding: 20px 24px; font-size: 0.98rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 24px 22px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.7; }

/* два пути в конце страницы */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.path { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.path--accent { border-color: var(--accent); box-shadow: var(--shadow-md); }
.path__tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.path b { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 8px; }
.path span { font-size: 0.88rem; color: var(--ink-2); line-height: 1.65; margin-bottom: 22px; }
.path .btn { margin-top: auto; align-self: flex-start; }

/* соседние системы */
.others { display: flex; flex-wrap: wrap; gap: 10px; }
.other { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 980px; font-size: 0.86rem; font-weight: 700; box-shadow: var(--shadow-sm); transition: border-color var(--transition), color var(--transition); }
.other:hover { border-color: var(--accent); color: var(--accent-ink); }

/* индекс раздела: карточки систем */
.sol-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.sol { grid-column: span 2; display: flex; flex-direction: column; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.sol:nth-child(4), .sol:nth-child(5) { grid-column: span 3; }
.sol:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.sol__n { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent-ink); margin-bottom: 14px; }
.sol b { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.sol span { font-size: 0.86rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }
.sol i { margin-top: auto; font-style: normal; font-size: 0.85rem; font-weight: 700; color: var(--accent-ink); }

@media (max-width: 1000px) {
  .feats, .kit { grid-template-columns: 1fr 1fr; }
  .scen { grid-template-columns: 1fr 1fr; }
  .paths { grid-template-columns: 1fr; }
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .sol, .sol:nth-child(4), .sol:nth-child(5) { grid-column: auto; }
  .sol:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 700px) {
  .feats, .kit, .scen, .sol-grid { grid-template-columns: 1fr; }
  .sol:nth-child(5) { grid-column: auto; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr { border-bottom: 1px solid var(--border); padding: 6px 0; }
  .cmp tr:last-child { border-bottom: none; }
  .cmp th, .cmp td { border-bottom: none; padding: 8px 18px; }
  .cmp tbody th { width: 100%; padding-top: 14px; }
  .cmp td.cmp__off::before { content: 'Обычно: '; font-weight: 700; }
  .cmp td.cmp__on::before { content: 'С TouchOn: '; font-weight: 800; color: var(--accent-ink); }
  .cmp td.cmp__on { background: none; }
}
