/* ============================================================
   СОМНИЯ — гильдия Free Fire
   Тёмная элегантная тема: чёрный + серебро + неоново-зелёный
   ============================================================ */

:root {
  --bg: #050608;
  --bg-2: #090b10;
  --ink: #eef1f6;
  --muted: #a6adba;
  --faint: #6b7280;
  --lime: #b8ff29;
  --lime-soft: rgba(184, 255, 41, .14);
  --gold: #f0c75e;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(255, 255, 255, .045);
  --glass-strong: rgba(13, 16, 22, .72);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(184, 255, 41, .25); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a2f38, #171b22);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3a4150; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { width: min(1180px, 92%); margin-inline: auto; }

.ico { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Типографика секций ---------- */

.section { padding: clamp(88px, 11vw, 150px) 0; position: relative; }

.section__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: .01em;
  margin-bottom: 22px;
}

.section__title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--lime) 20%, #e9ffb0 55%, var(--lime) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__sub {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 52ch;
}

/* ---------- Кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

.btn--primary {
  background: linear-gradient(135deg, #c6ff3d, #8fe015);
  color: #0a0f02;
  box-shadow: 0 0 0 rgba(184, 255, 41, 0);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(184, 255, 41, .28), 0 4px 14px rgba(184, 255, 41, .18);
}

.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { transform: translateY(0) scale(.98); }

.btn--ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 255, 41, .45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.btn--ghost:active { transform: translateY(0) scale(.98); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(5, 6, 8, .72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: min(1180px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav__brand { display: flex; align-items: center; gap: 12px; }

.nav__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(184, 255, 41, .18));
}

.nav__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nav__links { display: flex; align-items: center; gap: 30px; }

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .3s;
  padding: 6px 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--lime);
  transition: right .35s var(--ease);
}

.nav__link:hover, .nav__link--active { color: var(--ink); }
.nav__link:hover::after, .nav__link--active::after { right: 0; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .3s;
}

.nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* capture-режим: фиксированная высота героя для fullpage-скриншотов */
html.shot .hero { min-height: 880px; }

.hero__bg { position: absolute; inset: 0; z-index: -2; }

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 30%;
  will-change: transform;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, .18) 0%, rgba(5, 6, 8, .55) 42%, rgba(5, 6, 8, .92) 78%, var(--bg) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, .55) 0%, transparent 26%, transparent 62%, var(--bg) 100%);
}

.hero__petals { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__content {
  width: min(1180px, 92%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-top: var(--nav-h);
}

.hero__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #c9ced8;
  margin-bottom: 20px;
  text-shadow: 0 1px 14px rgba(5, 6, 8, .9), 0 0 4px rgba(5, 6, 8, .8);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 12.5vw, 168px);
  line-height: .95;
  letter-spacing: .12em;
  margin-left: -.12em; /* компенсация letter-spacing у последней буквы */
  text-shadow: 0 0 60px rgba(238, 241, 246, .28), 0 0 140px rgba(184, 255, 41, .12);
}

.hero__title .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(.35em);
  filter: blur(12px);
  animation: letter-in 1.1s var(--ease) forwards;
}

@keyframes letter-in {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero__tag {
  margin-top: 22px;
  max-width: 42ch;
  color: #bcc3cf;
  font-size: clamp(15px, 1.8vw, 18px);
  text-shadow: 0 1px 12px rgba(5, 6, 8, .8);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
}

.chip .ico { color: var(--lime); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 38px;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  transition: color .3s;
}

.hero__scroll:hover { color: var(--muted); }

.hero__scroll-txt {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--muted));
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  animation: scroll-hint 2.2s var(--ease) infinite;
}

@keyframes scroll-hint {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* ---------- О гильдии ---------- */

.about { overflow: hidden; }

.about__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("assets/about-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: .14;
  -webkit-mask-image: radial-gradient(75% 70% at 30% 45%, #000 0%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 30% 45%, #000 0%, transparent 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.emblem-glow {
  position: relative;
  width: min(100%, 380px);
  margin-inline: auto;
}

.emblem-glow::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 255, 41, .22) 0%, rgba(184, 255, 41, .05) 42%, transparent 68%);
  animation: pulse 4.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .65; transform: scale(.97); }
  50% { opacity: 1; transform: scale(1.04); }
}

.emblem-glow img {
  position: relative;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, .6));
}

.about__text p { color: var(--muted); margin-bottom: 16px; max-width: 58ch; }
.about__text p strong { color: var(--ink); letter-spacing: .06em; }

.slogan {
  position: relative;
  margin: 30px 0;
  padding: 22px 26px 22px 34px;
  border-left: 2px solid var(--lime);
  background: linear-gradient(90deg, var(--lime-soft), transparent 70%);
  border-radius: 0 18px 18px 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 27px);
  font-style: italic;
  font-weight: 500;
}

.slogan__mark {
  position: absolute;
  left: 10px;
  top: 2px;
  font-size: 44px;
  color: var(--lime);
  opacity: .55;
  line-height: 1;
}

.slogan cite {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.fact {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 14px 16px;
  transition: transform .35s var(--ease), border-color .35s;
}

.fact:hover { transform: translateY(-4px); border-color: rgba(184, 255, 41, .35); }

.fact__k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}

.fact__v {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .03em;
}

/* ---------- Требования ---------- */

.reqs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
  counter-reset: req;
}

.req {
  position: relative;
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}

.req::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 90% at 85% 0%, var(--lime-soft), transparent 60%);
  opacity: 0;
  transition: opacity .45s;
}

.req:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 255, 41, .4);
  background: rgba(255, 255, 255, .06);
}

.req:hover::before { opacity: 1; }

.req__num {
  position: absolute;
  right: 22px;
  top: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(64px, 7vw, 92px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 241, 246, .22);
  transition: color .45s, -webkit-text-stroke-color .45s;
}

.req:hover .req__num { color: rgba(184, 255, 41, .85); -webkit-text-stroke-color: transparent; }

.req__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: .01em;
  margin-bottom: 10px;
  max-width: 75%;
}

.req__sub {
  position: relative;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 42ch;
}

/* ---------- Вступление ---------- */

.join__panel {
  position: relative;
  text-align: center;
  padding: clamp(52px, 8vw, 96px) clamp(22px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.join__glow {
  position: absolute;
  inset: auto -20% -70% -20%;
  height: 130%;
  background: radial-gradient(50% 55% at 50% 100%, rgba(184, 255, 41, .18), transparent 70%);
  pointer-events: none;
}

.join__panel .section__title { max-width: 18ch; margin-inline: auto; }

.join__text {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 36px;
}

.join__cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Футер ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, #07090d 100%);
  padding-top: clamp(48px, 6vw, 72px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr .9fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
  padding-bottom: 44px;
}

.footer__brand { display: flex; align-items: center; gap: 16px; }

.footer__logo { width: 62px; object-fit: contain; }

.footer__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.footer__meta { color: var(--faint); font-size: 13px; letter-spacing: .06em; }

.footer__links { display: flex; flex-direction: column; gap: 14px; }

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: color .3s, transform .3s var(--ease);
}

.footer__links a .ico { color: var(--lime); }

.footer__links a:hover { color: var(--ink); transform: translateX(4px); }

.footer__note { color: var(--faint); font-size: 12.5px; line-height: 1.7; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
  letter-spacing: .08em;
}

.heart { color: var(--lime); }

/* ---------- Reveal-анимации ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: translateY(0); }

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

@media (max-width: 1023px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__emblem { order: -1; }
  .emblem-glow { width: min(64vw, 320px); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__note { grid-column: 1 / -1; }
}

@media (max-width: 759px) {
  :root { --nav-h: 62px; }

  html.shot .hero { min-height: 830px; }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: rgba(5, 6, 8, .9);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
  }

  .nav--open .nav__links { opacity: 1; pointer-events: auto; }

  .nav__link { font-size: 22px; font-family: var(--font-display); letter-spacing: .1em; }

  .nav__burger { display: flex; position: relative; z-index: 5; }

  .hero__content {
    align-items: flex-start;
    text-align: left;
    justify-content: flex-end;
    min-height: 100svh;
    padding-bottom: 90px;
  }

  .hero__bg img { object-position: 0% 22%; }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(5, 6, 8, .38) 0%, rgba(5, 6, 8, .66) 55%, var(--bg) 96%),
      linear-gradient(90deg, rgba(5, 6, 8, .35), transparent 55%);
  }

  .hero__badges { justify-content: flex-start; }
  .hero__cta { justify-content: flex-start; }
  .hero__title { font-size: clamp(58px, 17vw, 96px); }

  .hero__scroll { display: none; }

  .reqs__grid { grid-template-columns: 1fr; gap: 14px; }
  .req { padding: 28px 24px 26px; }
  .req__title { max-width: 68%; }

  .facts { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}

/* ---------- Доступность: сниженные анимации ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .hero__title .ltr { opacity: 1; transform: none; filter: none; animation: none; }
}
