/*
  Основной стиль для улучшенного сайта Внука Елькина.
  Цветовая палитра вдохновлена оригинальными красно‑золотыми постерами,
  но дизайн делает страницы более чистыми и современными.  
  Все тексты сохранены в полном объёме, чтобы посетитель получил
  ту же информацию, но с более приятной подачей.
*/

/* Цвета и шрифты */
:root {
  --primary: #d89928;      /* золотой */
  --secondary: #b01515;    /* глубокий красный */
  --accent: #2c182f;       /* тёмный фиолетовый/бордовый */
  --dark: #0a0a0a;         /* почти чёрный фон */
  --light: #f7f2e9;        /* светлый фон */
  --muted: #373737;        /* приглушённый серый */
  --text-dark: #1e1e1e;
  --text-light: #f5f5f5;
  --font-base: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
}

/* Сброс и базовые стили */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-base);
  background-color: var(--dark);
  color: var(--text-light);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: 8px;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* Контейнер */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 0;
}

/* Навигационная панель */
.nav-bar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(6px);
  z-index: 1000;
  border-bottom: 1px solid var(--secondary);
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links li a {
  font-weight: 600;
  color: var(--text-light);
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.05rem;
}
.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--primary);
}
.nav-links .highlight {
  color: var(--primary);
  font-weight: 700;
}

/* Герой */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.9));
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-content .avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--secondary);
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--primary);
}
.hero-content .subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #f2c5c5;
  letter-spacing: 0.05rem;
}
.hero-text {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #f0e8e8;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-danger {
  background-color: var(--secondary);
  color: var(--text-light);
}
.btn-danger:hover {
  background-color: #921010;
}
.btn-warning {
  background-color: #f0b429;
  color: var(--dark);
}
.btn-warning:hover {
  background-color: #d09c21;
  color: var(--dark);
}
.btn-primary {
  background-color: var(--primary);
  color: var(--dark);
}
.btn-primary:hover {
  background-color: #b98520;
}
.btn-dark {
  background-color: var(--dark);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-dark:hover {
  background-color: #181818;
}

/* Секции */
.section {
  padding: 4rem 0;
}
.section-light {
  background-color: var(--light);
  color: var(--text-dark);
}
.section-dark {
  background-color: var(--accent);
  color: var(--text-light);
}
.section-accent {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--text-light);
  position: relative;
}
.section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* История */
.story-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.story-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.story-content h3 {
  color: var(--secondary);
  font-weight: 700;
}
.story-list {
  margin: 1rem 0;
  padding-left: 1rem;
}
.story-list li {
  margin: 0.4rem 0;
  font-size: 1rem;
  position: relative;
  padding-left: 0.5rem;
}
.secta {
  background-color: rgba(176, 21, 21, 0.1);
  border-left: 4px solid var(--secondary);
  padding: 1rem;
  margin-top: 1rem;
}
.secta h4 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.story-conclusion {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .story-grid {
    flex-direction: row;
    align-items: flex-start;
  }
  .story-image, .story-content {
    flex: 1;
  }
  .story-image {
    margin-right: 2rem;
  }
}

/* Изобретения */
#inventions .section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}
.invention-link {
  text-align: center;
  margin-bottom: 3rem;
}
.special-invention {
  background-color: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--secondary);
  border-radius: 8px;
  padding: 2rem;
}
.special-invention h3 {
  font-size: 1.8rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
}
.warning {
  text-align: center;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.special-invention p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.save-message {
  background-color: rgba(176, 21, 21, 0.2);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  border-radius: 4px;
}
.save-message h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.save-message p {
  color: var(--text-light);
}

/* Проекты */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.project-card {
  background-color: #fdfaf2;
  color: var(--text-dark);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.project-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.project-card a {
  color: var(--secondary);
  font-weight: 600;
  transition: color 0.3s ease;
}
.project-card a:hover {
  color: var(--primary);
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Сериал */
.series-container {
  max-width: 1100px;
  margin: 0 auto;
}
.series-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.series-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.series-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
}
.series-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
@media (min-width: 768px) {
  .series-grid {
    flex-direction: row;
    align-items: flex-start;
  }
  .series-image, .series-content {
    flex: 1;
  }
  .series-image {
    margin-right: 2rem;
  }
}

/* Социальные сети */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.social-card {
  padding: 1.5rem;
  border-radius: 8px;
  background-color: #fdfaf2;
  color: var(--text-dark);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.social-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.social-card .label {
  font-weight: 600;
}
.social-card:hover {
  transform: translateY(-3px);
  background-color: #f2e7ce;
}

/* Специальные цвета для карточек социальных сетей */
.social-card.youtube {
  border: 2px solid #c53030;
}
.social-card.telegram {
  border: 2px solid #2a8ad8;
}
.social-card.vk {
  border: 2px solid #27408b;
}

/* Галерея постеров */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.gallery-grid img:hover {
  transform: translateY(-4px);
}

/* Галерея личных фотографий */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.photos-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.photos-grid img:hover {
  transform: translateY(-4px);
}

/* Помощь */
.help-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.help-container h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}
.help-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--dark);
}
.help-content {
  background-color: rgba(255,255,255,0.8);
  border-radius: 8px;
  padding: 2rem;
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.danger-box {
  background-color: rgba(176, 21, 21, 0.2);
  border-left: 5px solid var(--secondary);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.danger-box h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.help-donations {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.donation-card {
  background-color: #f7f0d5;
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1;
  text-align: center;
}
.donation-card h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.btc-address {
  background-color: var(--dark);
  color: var(--primary);
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-family: monospace;
  word-break: break-all;
}
.immortality-application, .emergency-appeal {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: rgba(255,255,255,0.8);
  border: 2px solid var(--primary);
  border-radius: 8px;
}
.immortality-application h3,
.emergency-appeal h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.immortality-application p,
.emergency-appeal p {
  color: var(--text-dark);
}
.emergency-appeal {
  background-color: rgba(176,21,21,0.1);
  border-left: 5px solid var(--secondary);
  color: var(--text-dark);
}
.emergency-appeal h3 {
  color: var(--secondary);
}

@media (min-width: 768px) {
  .help-donations {
    flex-direction: row;
  }
}

/* Контакты */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-card {
  background-color: rgba(255,255,255,0.8);
  color: var(--text-dark);
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.contact-card h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.contact-card a {
  color: var(--secondary);
  font-weight: 600;
}
.contact-card a:hover {
  color: var(--primary);
}
@media (min-width: 768px) {
  .contact-grid {
    flex-direction: row;
    justify-content: center;
  }
  .contact-card {
    flex: 1;
  }
}

/* Footer */
.footer {
  background-color: #0a0a0a;
  color: var(--text-light);
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid var(--secondary);
}
.footer-content p {
  font-size: 0.9rem;
  opacity: 0.8;
}