/* Витрина методических материалов — общий стиль (стиль Apple: светлый, спокойный, информативный) */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: rgba(0, 0, 0, 0.8);
  --ink-3: rgba(0, 0, 0, 0.58);
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --link: #0066cc;
  --radius: 12px;
  --shadow: rgba(0, 0, 0, 0.16) 3px 5px 30px 0px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 6px;
  border-radius: 6px;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 720px; }

/* ---------- Навигация ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
}
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 22px; }
.nav__links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  letter-spacing: -0.12px;
}
.nav__links a:hover { color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 0; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
}
.hero__sub {
  margin: 0;
  max-width: 640px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.19px;
  color: var(--ink-2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 980px;
  font-size: 17px;
  letter-spacing: -0.374px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #0a7aea; }
.btn--ghost { border: 1px solid var(--link); color: var(--link); background: transparent; }
.btn--ghost:hover { background: rgba(0, 113, 227, 0.06); }

.hero__media { margin: 56px auto 0; max-width: 980px; padding: 0 24px; }
.hero__media img {
  width: 100%;
  max-height: 600px;   /* блок с картинкой — не выше 600px */
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Секции ---------- */

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.22px;
}
.lead {
  margin: 0 0 40px;
  max-width: 680px;
  font-size: 19px;
  line-height: 1.42;
  color: var(--ink-2);
}
.section--alt .lead { margin-bottom: 40px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.tile {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.tile h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: -0.19px;
}
.tile p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.224px;
  color: var(--ink-2);
}
.tile__more { font-size: 14px; letter-spacing: -0.224px; color: var(--link); }

.note {
  margin: 32px 0 0;
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink-3);
}

.rules { margin: 0; padding: 0; list-style: none; }
.rules li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
  color: var(--ink-2);
}
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules strong { color: var(--ink); font-weight: 600; }

/* ---------- Подвал ---------- */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--ink-3);
}

/* ---------- Адаптив ---------- */

@media (max-width: 720px) {
  .hero { padding-top: 56px; }
  .section { padding: 64px 0; }
  .grid { grid-template-columns: 1fr; }
  .hero__sub { font-size: 19px; }
  .nav__links { gap: 16px; }
}

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