/* Фауна Ловозёрских тундр — общие стили
   Палитра взята с натуры: снег в сумерках, гранит, вода Сейдозера,
   ягель, морошка, брусника. */

:root {
  --sneg: #e7ebec;
  --namet: #f6f8f8;
  --granit: #1e272c;
  --granit-2: #55636b;
  --hairline: #c5cfd1;
  --seyd: #12525e;
  --yagel: #7d8f6e;
  --moroshka: #c8761e;
  --brusnika: #7c2b33;

  --les: #2c3b38;
  --krivoles: #56695f;
  --plato: #6f8087;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sneg);
  color: var(--granit);
  font-family: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "liga" 1;
}

h1, h2, h3 {
  font-family: "Unbounded", "Golos Text", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--seyd); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--moroshka); }

:focus-visible {
  outline: 2px solid var(--seyd);
  outline-offset: 3px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  z-index: 20;
  background: var(--granit);
  color: var(--sneg);
  padding: 10px 16px;
}

/* ---------- шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--sneg);
  border-bottom: 1px solid var(--hairline);
}

.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  padding-top: 14px;
  padding-bottom: 12px;
}

.mark {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--granit);
  text-decoration: none;
}
.mark:hover { color: var(--granit); }
.mark span {
  display: block;
  font-family: "Golos Text", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--granit-2);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-left: auto;
  font-size: 0.92rem;
}
.nav a {
  color: var(--granit-2);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--granit); border-bottom-color: var(--hairline); }
.nav a[aria-current="page"] {
  color: var(--granit);
  border-bottom-color: var(--moroshka);
}

/* ---------- герой: профиль массива ---------- */

.hero {
  background: linear-gradient(178deg, #101a20 0%, #1b2a30 55%, #22333a 100%);
  color: #dfe8ea;
  padding: 56px 0 28px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6.4vw, 4.1rem);
  font-weight: 600;
  max-width: 16ch;
  color: #f2f6f7;
}

.hero .lead {
  max-width: 54ch;
  margin-top: 20px;
  color: #b4c3c7;
  font-size: 1.05rem;
}

.profile {
  margin-top: 34px;
  width: 100%;
  height: auto;
  display: block;
}

.ridge {
  fill: none;
  stroke: #cfdde0;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.grid { stroke: rgba(223, 232, 234, 0.14); stroke-width: 1; }
.gridlab {
  fill: rgba(223, 232, 234, 0.45);
  font-size: 11px;
  font-family: "Golos Text", system-ui, sans-serif;
}
.lbl {
  fill: #dfe8ea;
  font-size: 12.5px;
  font-family: "Golos Text", system-ui, sans-serif;
}
.dot { fill: var(--moroshka); }
.water { fill: #14606e; }
.waterline { stroke: #6fb3bd; stroke-width: 1; }

@media (prefers-reduced-motion: no-preference) {
  .ridge {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    animation: draw 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

.zonekey {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(223, 232, 234, 0.2);
  font-size: 0.86rem;
  color: #a9babe;
}
.zonekey div { max-width: 26ch; }
.zonekey b {
  display: block;
  font-weight: 500;
  color: #eaf1f2;
}
.zonekey i {
  display: inline-block;
  width: 26px;
  height: 8px;
  margin-right: 8px;
  vertical-align: 1px;
}

/* ---------- заголовок внутренней страницы ---------- */

.pagehead {
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--hairline);
}
.pagehead h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 600;
  max-width: 18ch;
}
.pagehead p {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--granit-2);
}

/* ---------- секции ---------- */

.band { padding: 48px 0; }
.band + .band { border-top: 1px solid var(--hairline); }
.band > .wrap > h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  max-width: 22ch;
}
.band .note {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--granit-2);
}

/* ---------- список видов ---------- */

.species { margin-top: 30px; }

.sp {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 8px 44px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}
.sp:last-child { border-bottom: 1px solid var(--hairline); }

.sp h3 {
  font-size: 1.16rem;
  font-weight: 500;
}
.sp .lat {
  display: block;
  margin-top: 5px;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--granit-2);
}
.sp .body { max-width: 64ch; }
.sp .body p { margin-bottom: 0.7em; }

/* высотные пояса вида */
.zone {
  display: flex;
  gap: 3px;
  margin-top: 14px;
}
.zone span {
  width: 26px;
  height: 6px;
  background: var(--hairline);
}
.zone .on-les { background: var(--les); }
.zone .on-kriv { background: var(--krivoles); }
.zone .on-plato { background: var(--plato); }

.where {
  margin-top: 7px;
  font-size: 0.8rem;
  color: var(--granit-2);
}

.tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 9px;
  font-size: 0.75rem;
  line-height: 1.4;
  background: var(--brusnika);
  color: #fdf3f0;
}
.tag.reg { background: var(--yagel); color: #1b2318; }
.tag.chuzh { background: var(--granit-2); color: var(--namet); }

/* ---------- карточки-переходы ---------- */

.routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--hairline);
}
.routes a {
  display: block;
  padding: 22px 24px 26px 0;
  text-decoration: none;
  color: var(--granit);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.routes a:last-child { border-right: none; }
.routes a:hover { background: var(--namet); color: var(--granit); }
.routes strong {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
}
.routes span {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--granit-2);
}
.routes em {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--seyd);
}

/* ---------- календарь ---------- */

.calendar { margin-top: 26px; }
.cal {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 6px 40px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}
.cal:last-child { border-bottom: 1px solid var(--hairline); }
.cal dt {
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}
.cal dd {
  margin: 0;
  max-width: 62ch;
  color: var(--granit-2);
}

/* ---------- числа ---------- */

.counts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px 56px;
  margin-top: 30px;
}
.counts div { max-width: 22ch; }
.counts b {
  display: block;
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 2.3rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}
.counts span {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--granit-2);
}

/* ---------- правила поведения ---------- */

.rules {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}
.rules li {
  padding: 16px 0 16px 26px;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.rules li:last-child { border-bottom: 1px solid var(--hairline); }
.rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 12px;
  height: 2px;
  background: var(--moroshka);
}

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

.foot {
  background: var(--granit);
  color: #aebbc0;
  padding: 42px 0 52px;
  font-size: 0.88rem;
}
.foot a { color: #d7e3e5; }
.foot a:hover { color: var(--moroshka); }
.foot p { max-width: 64ch; }
.footnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-bottom: 22px;
}

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

@media (max-width: 860px) {
  .sp { grid-template-columns: 1fr; gap: 14px; }
  .cal { grid-template-columns: 1fr; gap: 4px; }
  .routes a { border-right: none; padding-right: 0; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero { padding-top: 38px; }
  .lbl { display: none; }
  .dot { r: 5; }
}
