:root {
  --bg: #050505;
  --card: #111111;
  --card-2: #151515;
  --border: #242424;
  --text: #ffffff;
  --muted: #a1a1a1;
  --muted-2: #707070;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #050505;
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 78px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 20px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.login-btn,
.primary-btn {
  background: #ffffff;
  color: #050505;
}

.login-btn:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  background: #dcdcdc;
}

.secondary-btn {
  background: #111111;
  color: #ffffff;
}

.secondary-btn:hover {
  transform: translateY(-2px);
  background: #191919;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: white;
  font-size: 22px;
  cursor: pointer;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px 6px 6px;
}

.user-box img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.user-box span {
  font-size: 14px;
  font-weight: 800;
  max-width: 130px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-box button {
  border: 1px solid var(--border);
  background: #181818;
  color: white;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
}

.section {
  padding: 92px 7%;
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-center {
  width: 100%;
  max-width: 980px;
}

.small-badge,
.section-title span {
  display: inline-flex;
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #d6d6d6;
  background: #101010;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: -5px;
}

.hero p {
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 52px auto 0;
  max-width: 850px;
}

.stats div,
.donation-goal,
.application-card,
.application-form,
.review-card,
.donation-card,
.team-card,
.gallery-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stats div {
  padding: 22px;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 17px;
  margin-bottom: 7px;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.donation-goal {
  max-width: 850px;
  margin: 22px auto 0;
  padding: 24px;
  text-align: left;
}

.donation-goal-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.donation-goal-top span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}

.donation-goal-top strong {
  font-size: 20px;
}

.goal-bar {
  width: 100%;
  height: 13px;
  border-radius: 999px;
  background: #050505;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 18px;
}

.goal-bar div {
  height: 100%;
  background: #ffffff;
  border-radius: 999px;
}

.donation-goal p {
  font-size: 14px;
  margin-top: 12px;
}

.section-title {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-title.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -2px;
}

.section-title p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.application-cards {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.application-card {
  min-height: 122px;
  padding: 20px;
  color: white;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.application-card:hover,
.application-card.active {
  transform: translateY(-3px);
  background: #191919;
  border-color: #555555;
}

.application-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.application-card span {
  color: var(--muted);
  line-height: 1.4;
  font-size: 14px;
}

.application-form {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
  box-shadow: var(--shadow);
}

.selected-application {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 16px;
  background: #080808;
  border: 1px solid var(--border);
}

.selected-application span {
  color: var(--muted);
  font-size: 13px;
}

.selected-application strong {
  font-size: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.application-form label {
  display: grid;
  gap: 9px;
  margin-bottom: 15px;
  color: #e8e8e8;
  font-size: 14px;
  font-weight: 900;
}

.application-form input,
.application-form textarea,
.review-toolbar select,
.review-card select,
.review-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #080808;
  color: white;
  border-radius: 14px;
  padding: 14px 15px;
  outline: none;
  font-size: 15px;
}

.application-form textarea,
.review-card textarea {
  min-height: 110px;
  resize: vertical;
}

.application-form input:focus,
.application-form textarea:focus,
.review-card textarea:focus {
  border-color: #555555;
}

.application-question-group {
  display: none;
}

.application-question-group.active {
  display: block;
}

.submit-btn {
  width: 100%;
  border: 0;
  margin-top: 8px;
}

.form-message {
  min-height: 24px;
  margin-top: 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.form-message.success {
  color: #8dffbd;
}

.form-message.error {
  color: #ff8d8d;
}

.review-toolbar {
  max-width: 1050px;
  margin: 0 auto 18px;
  display: flex;
  gap: 12px;
}

.review-toolbar select {
  max-width: 260px;
}

.review-list {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.review-card {
  padding: 20px;
  box-shadow: var(--shadow);
}

.review-summary {
  width: 100%;
  border: 0;
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-user img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.review-user h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.review-user p {
  color: var(--muted);
}

.review-body {
  margin-top: 22px;
}

.review-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: #080808;
  border: 1px solid var(--border);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.review-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.review-meta div,
.review-texts div,
.review-reply {
  background: #080808;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.review-meta div {
  padding: 12px;
}

.review-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.review-texts {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.review-texts div {
  padding: 16px;
}

.review-texts strong {
  display: block;
  margin-bottom: 8px;
}

.review-texts p {
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
}

.review-replies {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.review-reply {
  padding: 14px;
}

.review-reply strong {
  display: block;
  margin-bottom: 6px;
}

.review-reply p {
  color: var(--muted);
  line-height: 1.55;
}

.review-actions {
  display: grid;
  gap: 12px;
}

.server-gallery {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #080808;
}

.gallery-card div {
  padding: 14px;
}

.gallery-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gallery-card span {
  color: var(--muted);
  font-size: 13px;
}

.rules-section {
  background: #070707;
}

.rules-wrapper {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
}

.rule-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.rule-section:first-child {
  padding-top: 0;
}

.rule-section:last-child {
  border-bottom: 0;
}

.rule-section h3 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.rule-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rule-item:first-of-type {
  border-top: 0;
}

.rule-item p {
  color: var(--muted);
  line-height: 1.75;
}

.donation-store {
  display: grid;
  gap: 36px;
}

.donation-store-section {
  display: grid;
  gap: 16px;
}

.donation-store-head {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.donation-store-head img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 16px;
  background: #080808;
  border: 1px solid var(--border);
}

.donation-store-head h3 {
  font-size: 25px;
  margin-bottom: 5px;
}

.donation-store-head p {
  color: var(--muted);
}

.donation-grid {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.donation-card {
  min-height: 0;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.donation-card:hover {
  transform: translateY(-3px);
  background: #171717;
  border-color: #444444;
}

.donation-card.featured {
  background: #171717;
  border-color: #444444;
}

.donation-card img {
  width: 100%;
  height: 88px;
  object-fit: contain;
  border-radius: 14px;
  background: #080808;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.donation-card h3 {
  font-size: 17px;
  margin-bottom: 7px;
  line-height: 1.2;
}

.donation-card strong {
  display: block;
  font-size: 22px;
  margin: 8px 0;
}

.donation-card p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.team-pyramid {
  display: grid;
  gap: 22px;
}

.team-category {
  display: grid;
  gap: 18px;
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
}

.team-category:first-child {
  padding-top: 0;
}

.team-category:last-child {
  border-bottom: 0;
}

.team-category > h3 {
  text-align: center;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -1px;
}

.team-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.team-card {
  width: 210px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid #2c2c2c;
  background: #090909;
}

.team-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.team-card p {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 34px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--border);
  background: #050505;
  color: var(--muted);
}

.footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 900;
}

.footer img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 10px;
}

.cookie-box {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 22px;
  background: #111111;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-box p {
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}

.cookie-box button {
  min-width: 120px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: black;
  font-weight: 900;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

@media (max-width: 1200px) {
  .donation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .application-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .server-gallery {
    grid-template-columns: 1fr;
  }

  .rule-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .review-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .navbar {
    padding: 0 5%;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 5%;
    right: 5%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: #090909;
    border: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
    border-radius: 14px;
    background: #111111;
  }

  .login-btn {
    display: none;
  }

  .user-box span {
    display: none;
  }

  .section {
    padding: 72px 5%;
  }

  .stats,
  .form-row,
  .review-meta {
    grid-template-columns: 1fr;
  }

  .donation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-toolbar,
  .donation-goal-top {
    flex-direction: column;
    align-items: stretch;
  }

  .review-toolbar select {
    max-width: none;
  }

  .footer,
  .cookie-box {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  .cookie-box button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .donation-store-head {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    letter-spacing: -2px;
  }

  .application-cards,
  .donation-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    width: 100%;
  }

  .review-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}