/* =============================================
   styles.css — Стилизация страницы «Веня Дркин»
   Тёмная тема | Андеграунд/рок-эстетика
   ============================================= */

/* ---------- Сброс и базовые настройки ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #0a0a0a;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(180, 20, 20, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(180, 20, 20, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #111 30%, #141414 60%, #0d0d0d 100%);
  color: #ddd;
  line-height: 1.7;
  padding: 0 20px;
  min-height: 100vh;
}

/* ---------- Типографика ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Ссылки ---------- */
a {
  color: #e33;
  transition: color 0.25s;
}

a:hover {
  color: #ff5555;
}

/* ---------- Header / Шапка ---------- */
header {
  text-align: center;
  padding: 50px 0 24px;
  border-bottom: 1px solid #2a2a2a;
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #c00;
  border-radius: 2px;
}

header h1 {
  font-size: 2.8rem;
  color: #c00;
  margin-bottom: 10px;
  text-shadow: 0 0 40px rgba(204, 0, 0, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

header .subtitle {
  font-size: 1rem;
  color: #999;
  margin-bottom: 24px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Навигация ---------- */
nav {
  position: relative;
}

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

nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: #c00;
  transition: transform 0.3s ease;
}

nav a:hover {
  background: rgba(204, 0, 0, 0.15);
  color: #ff4444;
}

nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ---------- Бургер-меню (мобильное) ---------- */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 auto 12px;
  padding: 8px;
  transition: border-color 0.3s;
}

.burger-btn:hover {
  border-color: #c00;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ccc;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Main ---------- */
main {
  max-width: 920px;
  margin: 0 auto;
  padding: 50px 0;
}

/* ---------- Секции ---------- */
section {
  margin-bottom: 70px;
}

section h2 {
  font-size: 2rem;
  color: #c00;
  border-bottom: 2px solid #2a2a2a;
  padding-bottom: 10px;
  margin-bottom: 24px;
  position: relative;
  padding-left: 16px;
}

section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 10px;
  width: 4px;
  background: #c00;
  border-radius: 2px;
}

/* ---------- Секция «Биография» ---------- */
#biography article h3 {
  color: #ff5555;
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

#biography article p {
  margin-bottom: 12px;
  color: #ccc;
}

#biography article strong {
  color: #eee;
}

/* ---------- Секция «Фото» ---------- */
#photo figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#photo figcaption {
  font-style: italic;
  color: #999;
  font-size: 0.9rem;
}

#photo svg {
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  height: auto;
  width: 300px;
}

/* ---------- Секция «Дискография» ---------- */
#discography ol {
  list-style-position: inside;
  padding-left: 0;
  counter-reset: album-counter;
}

#discography li {
  margin-bottom: 18px;
  list-style: none;
  counter-increment: album-counter;
}

#discography li::before {
  content: counter(album-counter) ".";
  color: #c00;
  font-weight: 700;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1rem;
  margin-right: 8px;
}

#discography article {
  background: linear-gradient(135deg, #161616 0%, #1a1a1a 100%);
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 4px solid #c00;
  display: inline-block;
  width: 100%;
  transition: background 0.3s, transform 0.2s;
}

#discography article:hover {
  background: linear-gradient(135deg, #1e1e1e 0%, #222 100%);
  transform: translateX(4px);
}

#discography article h3 {
  font-size: 1.15rem;
  color: #eee;
  margin-bottom: 4px;
}

#discography article p {
  color: #999;
  font-size: 0.9rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Секция «Известные песни» ---------- */
.songs-list {
  list-style: none;
  padding: 0;
}

.song {
  background: linear-gradient(135deg, #161616 0%, #1a1a1a 100%);
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #222;
  transition: border-color 0.3s;
}

.song:hover {
  border-color: #333;
}

.song-title {
  font-size: 1.1rem;
  color: #eee;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s, color 0.3s;
  position: relative;
  padding-right: 44px;
}

.song-title:hover,
.song-title:focus {
  background: rgba(204, 0, 0, 0.08);
  color: #ff5555;
  outline: none;
}

.song-title:focus-visible {
  background: rgba(204, 0, 0, 0.08);
  color: #ff5555;
  outline: 2px solid #ff5555;
  outline-offset: -2px;
}

.song-title::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: #c00;
  transition: transform 0.3s ease;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1;
}

.song-title.active::after {
  content: '−';
  transform: translateY(-50%) scale(1.2);
}

.song-title.active {
  color: #ff5555;
}

.song-lyrics {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid #222;
  animation: fadeSlideIn 0.3s ease;
}

.song-lyrics.open {
  display: block;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.song-lyrics em {
  display: block;
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 12px;
  padding-top: 16px;
}

.song-lyrics blockquote {
  border-left: 3px solid #c00;
  padding-left: 16px;
  color: #ccc;
  font-style: italic;
}

.song-lyrics blockquote p {
  margin-bottom: 10px;
  line-height: 1.8;
}

.song-lyrics blockquote strong {
  color: #e55;
  font-style: normal;
}

/* ---------- Footer / Подвал ---------- */
footer {
  text-align: center;
  padding: 36px 0 30px;
  border-top: 1px solid #222;
  color: #777;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

footer a {
  color: #c00;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  color: #ff5555;
}

/* ---------- Кнопка «Наверх» (back-to-top) ---------- */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #c00 0%, #a00 100%);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s, visibility 0.35s, transform 0.35s, box-shadow 0.3s;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(204, 0, 0, 0.3);
  line-height: 1;
}

#back-to-top.show {
  opacity: 0.9;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(204, 0, 0, 0.5);
}

#back-to-top:focus {
  outline: 2px solid #ff5555;
  outline-offset: 4px;
}

#back-to-top:focus-visible {
  outline: 2px solid #ff5555;
  outline-offset: 4px;
}

/* ---------- Адаптивность: Десктоп (1280px+) ---------- */
@media (min-width: 1280px) {
  body {
    padding: 0 40px;
  }

  main {
    max-width: 1100px;
    padding: 60px 0;
  }

  header {
    padding: 60px 0 28px;
  }

  header h1 {
    font-size: 3.4rem;
    text-shadow: 0 0 60px rgba(204, 0, 0, 0.3);
  }

  header .subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  nav {
    max-width: 800px;
    margin: 0 auto;
  }

  nav a {
    font-size: 1.05rem;
    padding: 10px 20px;
  }

  section {
    margin-bottom: 90px;
  }

  section h2 {
    font-size: 2.3rem;
    padding-left: 20px;
    padding-bottom: 14px;
  }

  section h2::before {
    width: 5px;
    top: 6px;
    bottom: 14px;
  }

  #biography article p {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  #biography article h3 {
    font-size: 1.35rem;
  }

  #discography li {
    margin-bottom: 22px;
  }

  #discography article {
    padding: 20px 24px;
  }

  #discography article h3 {
    font-size: 1.25rem;
  }

  .song-title {
    font-size: 1.2rem;
    padding: 18px 24px;
    padding-right: 48px;
  }

  .song-lyrics blockquote {
    padding-left: 20px;
  }

  footer {
    padding: 44px 0 36px;
  }

  #back-to-top {
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }
}

/* ---------- Адаптивность: Планшет (768–1024px) ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    padding: 0 28px;
  }

  main {
    max-width: 100%;
    padding: 44px 0;
  }

  header {
    padding: 40px 0 22px;
  }

  header h1 {
    font-size: 2.4rem;
    text-shadow: 0 0 40px rgba(204, 0, 0, 0.2);
  }

  header .subtitle {
    font-size: 1rem;
    margin-bottom: 26px;
  }

  /* Навигация: обычное горизонтальное меню (не бургер) */
  .burger-btn {
    display: none;
  }

  nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  nav a {
    font-size: 0.95rem;
    padding: 8px 14px;
  }

  section {
    margin-bottom: 60px;
  }

  section h2 {
    font-size: 1.7rem;
    padding-left: 14px;
  }

  section h2::before {
    width: 4px;
  }

  #discography article h3 {
    font-size: 1.05rem;
  }

  .song-title {
    padding: 14px 18px;
    padding-right: 42px;
  }

  #back-to-top {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}

/* ---------- Адаптивность: Планшет (вертикальная ориентация) и маленькие планшеты (480–768px) ---------- */
@media (max-width: 768px) {
  body {
    padding: 0 16px;
  }

  header {
    padding: 30px 0 18px;
  }

  header h1 {
    font-size: 2rem;
    text-shadow: 0 0 30px rgba(204, 0, 0, 0.2);
  }

  header .subtitle {
    font-size: 0.9rem;
  }

  /* Навигация: бургер-меню */
  .burger-btn {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
    width: 100%;
  }

  nav ul.open {
    max-height: 300px;
    padding: 8px 0;
  }

  nav a {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.95rem;
    border-radius: 6px;
  }

  nav a::after {
    display: none;
  }

  nav a:hover {
    background: rgba(204, 0, 0, 0.15);
  }

  section {
    margin-bottom: 50px;
  }

  section h2 {
    font-size: 1.5rem;
    padding-left: 12px;
  }

  section h2::before {
    width: 3px;
  }

  #discography article h3 {
    font-size: 1rem;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

/* ---------- Адаптивность: Мобильные (320–480px) ---------- */
@media (max-width: 480px) {
  body {
    padding: 0 10px;
  }

  header {
    padding: 24px 0 14px;
  }

  header h1 {
    font-size: 1.6rem;
    letter-spacing: 0.04em;
  }

  header .subtitle {
    font-size: 0.82rem;
    margin-bottom: 16px;
  }

  nav a {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  section {
    margin-bottom: 40px;
  }

  section h2 {
    font-size: 1.3rem;
    padding-left: 10px;
    padding-bottom: 8px;
  }

  section h2::before {
    top: 2px;
    bottom: 8px;
    width: 3px;
  }

  #biography article h3 {
    font-size: 1.05rem;
  }

  #biography article p {
    font-size: 0.95rem;
  }

  .song-title {
    font-size: 1rem;
    padding: 14px 16px;
    padding-right: 40px;
  }

  .song-title::after {
    right: 16px;
    font-size: 1.2rem;
  }

  .song-lyrics {
    padding: 0 16px 16px;
  }

  .song-lyrics blockquote {
    padding-left: 12px;
  }

  #discography article {
    padding: 12px 14px;
  }

  #discography article h3 {
    font-size: 0.95rem;
  }

  footer {
    padding: 24px 0 20px;
    font-size: 0.8rem;
  }

  #back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* ---------- Адаптивность: Экстремально маленькие экраны (320px и ниже) ---------- */
@media (max-width: 360px) {
  body {
    padding: 0 8px;
  }

  header {
    padding: 18px 0 12px;
  }

  header h1 {
    font-size: 1.3rem;
    letter-spacing: 0.02em;
  }

  header .subtitle {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }

  nav a {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  nav ul.open {
    max-height: 260px;
  }

  section {
    margin-bottom: 32px;
  }

  section h2 {
    font-size: 1.1rem;
    padding-left: 8px;
    padding-bottom: 6px;
  }

  section h2::before {
    width: 2px;
    top: 2px;
    bottom: 6px;
  }

  #biography article h3 {
    font-size: 0.95rem;
    margin-top: 16px;
  }

  #biography article p {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }

  .song-title {
    font-size: 0.92rem;
    padding: 12px 14px;
    padding-right: 36px;
  }

  .song-title::after {
    right: 12px;
    font-size: 1rem;
  }

  .song-lyrics {
    padding: 0 12px 12px;
  }

  .song-lyrics blockquote {
    padding-left: 8px;
  }

  .song-lyrics blockquote p {
    font-size: 0.85rem;
  }

  #discography article {
    padding: 10px 12px;
  }

  #discography article h3 {
    font-size: 0.88rem;
  }

  #discography article p {
    font-size: 0.8rem;
  }

  #photo svg {
    width: 100%;
    height: auto;
  }

  footer {
    padding: 18px 0 16px;
    font-size: 0.72rem;
  }

  #back-to-top {
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ---------- Доступность (prefers-reduced-motion) ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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