/* Витрина: полевой определитель птиц. Каждый бот — запись о виде. */

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- шапка ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .5s;
}
.site-head.is-scrolled { border-bottom-color: var(--rule); }
.site-head__row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand .theme-bird { width: 44px; height: 44px; }
.brand .bird { width: 34px; height: 34px; }
.brand__name {
  font-family: var(--ff-display); font-weight: 600; font-size: 1.75rem; line-height: 1;
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
}
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: var(--step--1); }
.site-nav a:hover { color: var(--ink); }
.site-head .btn { min-height: 40px; padding: 0 1.1em; font-size: var(--step--1); }
@media (max-width: 760px) { .site-nav { display: none; } .site-head .btn { margin-left: auto; } }

/* ---------- первый экран ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem; align-items: center;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero h1 {
  font-family: var(--ff-display); font-weight: 500;
  font-size: var(--step-5); line-height: .95; letter-spacing: -.015em;
  color: var(--ink); margin: 0 0 1.75rem; max-width: 11ch;
}
.hero__lead { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; margin: 0 0 2.25rem; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__note { margin: 2rem 0 0; color: var(--muted); font-size: var(--step--1); max-width: 46ch; }
.hero__note strong { color: var(--ink); font-weight: 600; }

.hero__bird { display: grid; justify-items: center; gap: .9rem; }
.hero__bird .theme-bird { width: min(100%, 420px); aspect-ratio: 1; }
.hero__bird .bird { width: 100%; height: 100%; }
.hero__hint { font-size: var(--step--1); color: var(--muted); margin: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero__bird { order: -1; justify-items: start; }
  .hero__bird .theme-bird { width: 140px; }
  .hero__hint { display: none; }
}

/* Одна сцена при загрузке: птица влетает */
@media (prefers-reduced-motion: no-preference) {
  .hero__bird .bird { animation: fly-in 1.1s cubic-bezier(.2, .8, .2, 1) both .1s; }
}
@keyframes fly-in {
  from { opacity: 0; transform: translate(-60px, 40px) rotate(-12deg) scale(.92); }
  to { opacity: 1; transform: none; }
}

/* ---------- секции ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--rule); }
.section__title {
  font-family: var(--ff-display); font-weight: 500; font-size: var(--step-4);
  line-height: 1; color: var(--ink); margin: 0 0 1rem;
}
.section__lead { max-width: 58ch; margin: 0 0 3rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* ---------- стая: записи о видах ---------- */
.species { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2.5rem; padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.species:first-of-type { border-top: 0; padding-top: .5rem; }
.species__name {
  font-family: var(--ff-display); font-style: italic; font-weight: 500;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1; color: var(--ink); margin: 0 0 .65rem;
}
.species__habitat { margin: 0 0 1rem; color: var(--muted); font-size: var(--step--1); }
.status { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--step--1); font-weight: 500; color: var(--c, var(--ink)); }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.status--live::before { box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.species__owl { width: 132px; height: 132px; margin-top: 1.5rem; color: var(--ink); }

.species__body p { margin: 0 0 1rem; max-width: 62ch; }
.species__body ul { margin: 0 0 1.5rem; padding: 0; list-style: none; max-width: 62ch; }
.species__body li { padding: .55rem 0 .55rem 1.6rem; position: relative; border-bottom: 1px dashed var(--rule); }
.species__body li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: .9rem; height: 1.5px; background: var(--c, var(--ink));
}
.species__links { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.species__links .btn { min-height: 42px; font-size: var(--step--1); }
.species__handle { color: var(--muted); font-size: var(--step--1); }

.species[data-bird="bio"] { --c: var(--bio); }
.species[data-bird="flow"] { --c: var(--flow); }
.species[data-bird="study"] { --c: var(--study); }
.species[data-bird="work"] { --c: var(--work); }

@media (max-width: 820px) {
  .species { grid-template-columns: 1fr; gap: 1rem; }
  .species__owl { width: 96px; height: 96px; margin-top: 1rem; }
}

/* ---------- как начать: настоящая последовательность ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--ff-display); font-size: 4rem; line-height: 1;
  color: var(--ink); margin-bottom: .75rem;
}
.steps h3 { margin: 0 0 .5rem; font-size: var(--step-1); font-weight: 600; color: var(--ink); }
.steps p { margin: 0; color: var(--text); }
.web-start { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.web-start p { margin: 0; color: var(--muted); max-width: 44ch; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- правила стаи ---------- */
.rules { display: grid; gap: 0; }
.rule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.rule:first-child { border-top: 0; padding-top: 0; }
.rule h3 { margin: 0; font-family: var(--ff-display); font-weight: 500; font-size: var(--step-3); line-height: 1.05; color: var(--ink); }
.rule p { margin: 0; max-width: 46ch; }
@media (max-width: 760px) { .rule { grid-template-columns: 1fr; gap: .5rem; } }

/* ---------- планы ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.plan { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.plan h3 { margin: 0 0 .35rem; font-size: var(--step-1); font-weight: 600; color: var(--ink); display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
.plan h3 .status { font-weight: 500; }
.plan p { margin: 0; color: var(--text); max-width: 48ch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- автор ---------- */
.author { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.author blockquote {
  margin: 0; font-family: var(--ff-display); font-size: var(--step-3); line-height: 1.2; color: var(--ink);
}
.author blockquote p { margin: 0 0 1rem; }
.author__side p { margin: 0 0 1.25rem; }
@media (max-width: 820px) { .author { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- подвал ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; color: var(--muted); font-size: var(--step--1); }
.site-foot__row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }

/* ---------- текстовые страницы ---------- */
.prose { max-width: 68ch; padding: clamp(2.5rem, 7vw, 5rem) 0; }
.prose h1 { font-family: var(--ff-display); font-weight: 500; font-size: var(--step-4); line-height: 1; color: var(--ink); margin: 0 0 1.5rem; }
.prose h2 { font-size: var(--step-1); color: var(--ink); margin: 2.25rem 0 .5rem; }
.prose p, .prose li { color: var(--text); }
.prose .meta { color: var(--muted); font-size: var(--step--1); }
