﻿/* /css/nerves-muscles.css � ��-����� ������ */
:root{
  --bg:#f7f9fc;
  --ink:#0c1426;
  --muted:#6a7892;
  --card:#ffffff;
  --stroke:#e6edf7;
  --shadow:0 10px 28px rgba(12,20,38,.07);
  --radius:16px;
  --gap:18px;
  --brand:#1bbb6d;

  /* ����: ������� �� ������� �� ������ */
  --panel-min: 320px;
  --panel-max: 420px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Noto Sans";
  background:var(--bg);
  color:var(--ink);
  line-height:1.55;
}
.wrap{max-width:1100px;margin:0 auto;padding:20px}

.hero{padding:22px 0 6px}
.hero h1{margin:0 0 4px;font-size:clamp(24px,3.2vw,40px)}
.hero .sub{font-weight:800}
.lead{color:var(--muted);max-width:860px;margin:6px 0 0}

/* ��� ������: ���������� ��-������� ������ */
.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--gap);
  align-items:start;
  justify-items:center;    /* ���� */
  margin-top:12px;
}
@media (max-width: 900px){
  .two{grid-template-columns:1fr; justify-items:stretch}
}

/* ����� � ��-����� � ��-������� */
.pane{
  width: clamp(var(--panel-min), 42vw, var(--panel-max)); /* ���� */
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:12px;            /* ��-����� �� ����� */
}
.h2{margin:2px 6px 8px;font-size:clamp(17px,1.8vw,22px)}

/* 1:1 ����� + video hover */
.media-square{
  position:relative;
  aspect-ratio:1/1;
  border-radius:12px;
  overflow:hidden;
  background:#eaf1ff;
  border:1px solid var(--stroke);
}
.media-square .poster,
.media-square .hover-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; display:block;
}
.media-square .hover-video{
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
  filter:saturate(1.03);
}
.playing .hover-video{opacity:1}
.playing .poster{opacity:0; transition:opacity .25s ease}

/* ������ ������ */
.mini{margin:10px 0 10px 18px;padding:0}
.mini li{margin:3px 0}

/* ����� � ���� ���� ��-����� */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--brand); color:#06381f;
  border:1px solid #11985a;
  padding:9px 12px; border-radius:12px;
  font-weight:800; font-size:14px;
  text-decoration:none;
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover{transform:translateY(-1px); filter:brightness(1.02)}

/* �������� �������� */
@media (prefers-reduced-motion: reduce){
  .media-square .hover-video{transition:none}
}


