:root {
  --bg: #0b1f24;
  --bg-soft: #122c33;
  --surface: #16343c;
  --text: #f4f1ea;
  --muted: #b7c5c9;
  --accent: #e8b86d;
  --accent-deep: #c9923f;
  --teal: #1f8a7a;
  --teal-bright: #2db89f;
  --line: rgba(244, 241, 234, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(45, 184, 159, 0.22), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(232, 184, 109, 0.14), transparent 50%),
    linear-gradient(180deg, #08161a 0%, var(--bg) 40%, #0d2228 100%);
  min-height: 100vh;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(8, 22, 26, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.brand span {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lang-switch button {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-switch button:hover,
.lang-switch button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  overflow: visible;
  z-index: 0;
}

/* Портрет уходит под следующий блок — без жёсткой обрезки по низу hero */
.hero__media {
  position: absolute;
  inset: 0 0 -48vh 0;
  z-index: 0;
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.02);
  animation: heroZoom 12s ease-out both;
}

.hero__shade {
  position: absolute;
  inset: 0 0 -48vh 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(8, 22, 26, 0.28) 0%,
      rgba(8, 22, 26, 0.42) 38%,
      rgba(8, 22, 26, 0.55) 62%,
      rgba(8, 22, 26, 0.72) 82%,
      rgba(8, 22, 26, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 22, 26, 0.78) 0%, rgba(8, 22, 26, 0.22) 52%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 2.4rem;
  max-width: 38rem;
  animation: rise 0.9s ease both;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  line-height: 0.95;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #1a1208;
  box-shadow: 0 10px 30px rgba(232, 184, 109, 0.28);
}

.btn--ghost {
  border-color: rgba(244, 241, 234, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.section {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0;
}

/* Первый блок контента лежит поверх портрета, фон плавно набирает плотность */
.section--over-hero {
  margin-top: -1.5rem;
  padding-top: 3.5rem;
  background: linear-gradient(
    180deg,
    rgba(8, 22, 26, 0.18) 0%,
    rgba(8, 22, 26, 0.72) 28%,
    rgba(11, 31, 36, 0.94) 58%,
    var(--bg) 100%
  );
}

.section__head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.section__head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.help-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.help-list a,
.article-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, padding 0.2s ease;
}

.help-list a:hover,
.article-list a:hover {
  color: var(--accent);
  padding-left: 0.35rem;
}

.help-list__num,
.article-list__meta {
  color: var(--teal-bright);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.help-list__title,
.article-list__title {
  font-weight: 700;
}

.help-list__arrow,
.article-list__arrow {
  color: var(--muted);
}

.telegram-band {
  margin: 1rem 0 0;
  padding: 2.2rem;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(135deg, rgba(31, 138, 122, 0.35), rgba(22, 52, 60, 0.9)),
    var(--surface);
  border: 1px solid rgba(45, 184, 159, 0.28);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.25rem;
  animation: rise 0.8s ease both;
}

.telegram-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.telegram-band p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.disclaimer {
  margin-top: 2.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.article-page {
  padding: 2.5rem 0 4rem;
}

.article-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.back-link {
  color: var(--muted);
  font-weight: 600;
}

.back-link:hover {
  color: var(--accent);
}

.article-page article {
  max-width: 44rem;
}

.article-page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.article-page .lead {
  margin: 1rem 0 2rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.article-body h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.article-body p,
.article-body li {
  color: #e6ebea;
}

.article-body ul {
  padding-left: 1.2rem;
}

.article-body li + li {
  margin-top: 0.4rem;
}

.article-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 78vh;
  }

  .hero__media,
  .hero__shade {
    inset: 0 0 -36vh 0;
  }

  .hero__media img {
    object-position: center 12%;
  }

  .hero__content {
    padding-top: 4.5rem;
  }

  .telegram-band {
    padding: 1.5rem;
  }

  .help-list a,
  .article-list a {
    grid-template-columns: auto 1fr;
  }

  .help-list__arrow,
  .article-list__arrow {
    display: none;
  }
}
