:root {
  --bg: #ffffff;
  --surface: #f5fbf8;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.10);

  --accent: #1f7a8c; /* спокойный синий/зелёный оттенок */
  --accent-2: #2f9d73;

  --shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: #fff;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 18px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  vertical-align: middle;
}

.site-nav {
  flex: 0 0 auto;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(31, 122, 140, 0.06);
  border-color: rgba(31, 122, 140, 0.14);
}

.nav-link.is-active {
  color: var(--text);
  border-color: rgba(31, 122, 140, 0.22);
  background: rgba(31, 122, 140, 0.10);
}

.hero {
  padding: 46px 0 26px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.hero-copy {
  padding: 18px 0;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 62ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid transparent;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(31, 122, 140, 0.35);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 20px rgba(31, 122, 140, 0.20);
}
.btn-primary:hover {
  transform: translateY(-1px);
}

.hero-stats {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-stats .stat {
  padding: 12px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.hero-stats .stat:first-child {
  border-top: 0;
  padding-top: 0;
}

.stat-value {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
}
.stat-label {
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.section {
  padding: 46px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(31, 122, 140, 0.05), rgba(47, 157, 115, 0.03));
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.section-head {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-inventory {
  align-items: stretch;
}

.card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card-text {
  margin: 0;
  color: var(--muted);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.program {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
}

.program-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.program-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
}

.exercise-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.exercise {
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.exercise::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: rgba(31, 122, 140, 0.16);
  border: 1px solid rgba(31, 122, 140, 0.18);
}

.exercise strong {
  color: var(--text);
  font-weight: 800;
}

.site-footer {
  padding: 28px 0 34px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-disclaimer {
  margin: 0;
  max-width: 56ch;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.footer-text {
  color: var(--muted);
  font-weight: 650;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .cards,
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn-primary:hover {
    transform: none;
  }
}

