/* ================== */
/* 🎨 Основные переменные */
:root {
  --bg: #0f1113;
  --card: #141617;
  --muted: #9aa3a8;
  --accent: #d63939;
  --accent-2: #b63a3a;
  --radius: 12px;
  --container: 1100px;
  --transition: 0.3s ease;
}

/* ================== */
/* 🧱 Базовые стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: url("/static/img/background.png") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ================== */
/* 📌 Header */
header {
  padding: 15px 0;
  background: rgba(15, 17, 19, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Лого и текст */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 150px;
  height: auto;
  border-radius: 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-title {
  font-weight: 700;
  font-size: 18px;
}

.project-subtitle {
  font-size: 12px;
  color: var(--muted);
}

/* Навигация */
nav {
  flex: 1;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width var(--transition);
  margin: 4px auto 0;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ================== */
/* 🔘 Кнопки */
.btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn:hover {
  opacity: 0.9;
}

.ghost {
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  color: white;
  transition: var(--transition);
}

.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ================== */
/* 🖼 Hero */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 55vh;
  background: url("/static/img/background.jpg") no-repeat center center/cover;
  overflow: hidden;
  margin-bottom: 10px; /* уменьшен промежуток к новостям */
}

.hero-box {
  position: relative;
  z-index: 1;
  background: rgba(15, 17, 19, 0.85);
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  animation: fadeIn 1s ease forwards;
}

.hero-box h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(214, 57, 57, 0.8); /* красная тень */
}

.hero-box .lead {
  color: #cfcfcf;
  margin-bottom: 25px;
  font-size: 16px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-buttons .btn,
.hero-buttons .ghost {
  min-width: 180px;
  text-align: center;
  font-size: 15px;
}
/* ================== */
/* 🖼 Donate */
.donate-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40vh;
  background: url("/static/img/background.jpg") no-repeat center center/cover;
  overflow: hidden;
  margin-bottom: 10px;
}

.donate-box {
  position: relative;
  z-index: 1;
  background: rgba(15, 17, 19, 0.85);
  padding: 35px 25px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  animation: fadeIn 1s ease forwards;
}

.donate-box h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(214, 57, 57, 0.8); /* красная тень */
}

.donate-box .lead {
  color: #cfcfcf;
  margin-bottom: 25px;
  font-size: 16px;
}

.donate-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.donate-buttons .btn,
.donate-buttons .ghost {
  min-width: 180px;
  text-align: center;
  font-size: 15px;
}
/* ================== */
/* 📰 Новости / Карточки */
.card-section {
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  margin: 0 0 20px 0; /* уменьшен верхний отступ */
  padding: 20px;
  border-radius: var(--radius);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.news-item {
  display: flex;
  gap: 10px;
  background: rgba(20, 20, 20, 0.55);
  border-radius: var(--radius);
  padding: 10px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  background: rgba(20, 20, 20, 0.8);
}

.thumb {
  width: 80px;
  height: 64px;
  border-radius: 8px;
  background: #222;
  background-size: cover;
  background-position: center;
}

.thumb.large {
  width: 100%;
  height: 250px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  margin: 10px 0 20px;
}

.news-text h3 {
  margin: 0;
  font-size: 16px;
}

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

/* ================== */
/* 💰 Донаты */
.donate-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #555;
}

/* ================== */
/* 📝 Формы */
input,
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: #1a1a1a;
  color: inherit;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  border: 1px solid var(--accent);
  outline: none;
  box-shadow: 0 0 8px rgba(214, 57, 57, 0.5);
}

/* ================== */
/* ⚓ Footer */
footer {
  padding: 20px 0;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-right {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  filter: grayscale(100%) brightness(80%);
  transition: filter 0.2s, transform 0.2s;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icon:hover {
  filter: grayscale(0%) brightness(100%);
  transform: scale(1.1);
}

/* ================== */
/* 🔑 Login Page */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 81vh;
  background-image: url("/static/img/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-box {
  background: rgba(0, 0, 0, 0.75);
  padding: 40px;
  border-radius: 15px;
  width: 420px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.login-box h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
}

.login-box label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
}

/* Input Fields */
.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #fff;
  background: #1a1a1a;
  color: #fff;
  font-size: 15px;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.login-box input:hover,
.login-box input:focus {
  border: 1px solid #e53935;
  outline: none;
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.5);
}

/* Password Field with Eye */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 42px; /* место справа для глаза */
}

.toggle-password {
  position: absolute;
  top: 0;
  right: 10px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.toggle-password svg {
  height: 34px;
  width: 25px;
  transition: stroke 0.25s ease, transform 0.25s ease;
}

.toggle-password:hover svg {
  stroke: #e53935;
  transform: scale(1.15);
}

/* Submit Button */
.login-box .btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #d63939, #b63a3a);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 53, 0.4);
}

/* Hint Text */
.login-box .hint {
  margin-top: 10px;
  font-size: 12px;
  color: #bbb;
  text-align: center;
}

/* Alert Overlay */
.alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

.alert-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.alert-box {
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid #e53935;
  color: #fff;
  padding: 25px 40px;
  border-radius: 14px;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.5);
  transform: scale(0.95);
  opacity: 0;
  animation: fadeInBox 0.3s forwards ease;
}

@keyframes fadeInBox {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================== */
/* 📱 Адаптив */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 920px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius);
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-buttons {
    display: none;
  }

  .container.nav {
    justify-content: space-between;
  }
}
/* ================== */
/* 💳 Донат / Опции оплаты */
.donate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  height: 250px;
  gap: 20px;
  margin-top: 20px;
}

.donate-card {
  background: rgba(255, 0, 0, 0.071);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70%;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 2px solid rgba(255,255,255,0.05);
}

.donate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.288);
  background: rgba(255, 0, 0, 0.264);
}

.donate-card img {
  width: 200px;       /* одинаковая ширина */
  height: 200px;      /* одинаковая высота */
  object-fit: contain; /* сохраняем пропорции */
  margin-bottom: 12px;
}

.donate-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.donate-card p.muted {
  font-size: 13px;
  color: var(--muted);
}
