/* ============================================================
 *  Лендинг автора (Влад Лей) — гибрид в духе Author.Today
 * ============================================================ */
:root {
  --accent: #2f80b5;
  --accent-dk: #266a96;
  --bg: #f3f4f6;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #6b7480;
  --line: #e4e7eb;
  --ok: #3a9d4e;
  --warn: #e0a800;
  --info: #2f80b5;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
img { display: block; }

/* ---------- HERO ---------- */
.hero {
  background:
    radial-gradient(1200px 320px at 18% -10%, rgba(47,128,181,.35), transparent 60%),
    linear-gradient(135deg, #15324a 0%, #1d3f5c 45%, #0f2336 100%);
  color: #fff;
}
.hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 44px 20px 48px;
  display: flex; gap: 28px; align-items: center;
}
.hero__avatar {
  width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; flex: 0 0 auto;
  border: 4px solid rgba(255,255,255,.85);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.hero__body { min-width: 0; }
.hero__name { margin: 0; font-size: 38px; font-weight: 700; line-height: 1.1; }
.hero__handle { color: #aecbe2; font-size: 16px; margin-top: 4px; }
.hero__desc { margin: 14px 0 0; max-width: 640px; color: #e7eef5; font-size: 17px; }
.hero__stats { margin: 16px 0 20px; font-size: 15px; color: #cfe0ee; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero__stats .stat { display: inline-flex; align-items: center; gap: 7px; }
.hero__stats svg { width: 18px; height: 18px; fill: none; stroke: #9ec6e6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__stats b { color: #fff; font-weight: 700; }
.hero__btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.55); color: #fff; font-weight: 500; font-size: 15px;
  transition: background .15s, border-color .15s;
}
.hero__btn:hover { background: rgba(255,255,255,.12); border-color: #fff; text-decoration: none; }

/* ---------- Липкая мини-нав ---------- */
.cyclenav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 20px; max-width: 100%;
  scrollbar-width: thin;
}
.cyclenav a {
  flex: 0 0 auto; padding: 6px 13px; border-radius: 999px;
  background: #eef1f4; color: #3a444e; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s;
}
.cyclenav a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---------- Секция цикла ---------- */
.cycle { padding: 30px 0 6px; scroll-margin-top: 60px; }
.cycle__head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.cycle__title { margin: 0; font-size: 24px; font-weight: 700; }
.cycle__title a { color: var(--ink); }
.cycle__title a:hover { color: var(--accent); }
.cycle__count { color: var(--muted); font-size: 14px; font-weight: 400; }

/* Бейджи статуса */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; line-height: 1.4;
}
.badge--ok   { background: #e7f6ec; color: #1f7a3d; }
.badge--warn { background: #fdf3d6; color: #8a6d0f; }
.badge--info { background: #e4f0f8; color: #1f5e87; }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Сетка карточек */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(6, 1fr);
}
.card {
  display: block; background: var(--card); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(20,40,60,.16); text-decoration: none; }
.card__coverwrap { position: relative; aspect-ratio: 2/3; background: #e9edf1; }
.card__cover { width: 100%; height: 100%; object-fit: cover; }
.card__badge {
  position: absolute; left: 8px; bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.card__title {
  padding: 10px 11px 13px; font-size: 14px; line-height: 1.3; color: var(--ink);
  font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Аудио ---------- */
.audio { padding: 26px 0 10px; }
.audio__title { font-size: 20px; margin: 0 0 12px; }
.audio__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.audio__list a {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; color: var(--ink);
}
.audio__list a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.audio__list .ic { font-size: 14px; }

/* ---------- Футер ---------- */
.foot { margin-top: 40px; background: #11283a; color: #cdd9e3; padding: 26px 0; }
.foot__inner { display: flex; flex-direction: column; gap: 6px; }
.foot a { color: #9ec6e6; }
.foot__note { color: #7f97a9; font-size: 13px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) {
  .hero__inner { flex-direction: column; text-align: center; gap: 18px; padding: 32px 18px 36px; }
  .hero__avatar { width: 112px; height: 112px; }
  .hero__name { font-size: 30px; }
  .hero__stats { justify-content: center; }
  .hero__desc { font-size: 16px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cycle__title { font-size: 21px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__title { font-size: 13px; }
}
