* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #faf7f5;
  color: #330000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
}

.header {
  width: 100%;
  background-color: #7b0000;
  color: white;
  padding: 0.8rem 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.05);
  margin-top: 5rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #7b0000;
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.8rem;
  color: #4a0000;
}

.subtitle {
  color: #7b0000;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.tagline {
  color: #444;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.social {
  color: #7b0000;
  transition: color 0.3s;
}

.social:hover {
  color: #330000;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.btn {
  display: block;
  text-align: center;
  padding: 0.9rem;
  border-radius: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn.maroon {
  background: #7b0000;
  color: white;
}

.btn.maroon:hover {
  background: #600000;
}

.btn.light {
  background: #e9e9e9;
  color: #7b0000;
}

.btn.light:hover {
  background: #d6d6d6;
}

.btn.border {
  border: 2px solid #7b0000;
  color: #7b0000;
}

.btn.border:hover {
  background: #7b0000;
  color: white;
}

.footer {
  text-align: center;
  padding: 1rem 0;
  color: #555;
  font-size: 0.8rem;
}
/* 🎵 Стили для аудио-плеера */
.audio-player {
  width: 100%;            /* по умолчанию занимает всю ширину контейнера */
  max-width: 400px;       /* максимальная ширина */
  margin: 1.5rem auto;    /* выравнивание по центру */
  display: flex;
  justify-content: center;
}

audio {
  width: 100%;
  border-radius: 10px;
  background-color: #f7f3f2; /* светлый фон под стиль сайта */
  outline: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin: 5px 0;
}

/* Если нужно сдвинуть влево или вправо: */
.audio-left {
  margin-left: 0;
  margin-right: auto;
}

.audio-right {
  margin-left: auto;
  margin-right: 0;
  display: block;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgb(183 0 0 / 68%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* мягкая тень */
  object-fit: cover; /* изображение не искажается */
  margin-bottom: 1rem;
}
/* ===== HEADER ===== */
.header {
  width: 100%;
  background-color: #7b0000;   /* фирменный бордовый фон */
  height: 80px;                /* фиксируем высоту шапки */
  position: relative;          /* чтобы можно было позиционировать логотип */
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: visible;           /* позволяет лого "вылезать" за границы */
}

/* ===== LOGO ===== */
.logo {
  position: absolute;          /* теперь позиционируем независимо */
  top: 100%;                    /* по центру по вертикали */
  left: 50%;                   /* по центру по горизонтали */
  transform: translate(-50%, -50%); /* идеально центрируем */
}

.logo img {
  height: 130px;               /* увеличиваем размер логотипа */
  width: auto;
  display: block;
  border: none;
  box-shadow: none;
  filter: none;
}

/* ===== Fallback-текст (если логотип не загрузится) ===== */
.logo span {
  display: block;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.socials {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 2.5rem !important;
  margin: 2rem 0 !important;
}

.socials a {
  width: 45px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.socials a:hover {
  transform: scale(1.15) !important;
  background: rgba(255, 255, 255, 0.25) !important;
}

.socials a i {
  font-size: 28px !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

/* Ховеры по цветам */
.socials a:nth-child(1):hover i {
  color: #E4405F !important; /* Instagram */
}

.socials a:nth-child(2):hover i {
  color: #0088cc !important; /* Telegram */
}

.socials a:nth-child(3):hover i {
  color: #9c27b0 !important; /* Website */
}

.card {
  position: relative !important; /* важно, чтобы стрелка позиционировалась внутри */
}

/* стрелка внутри карточки */
.back-arrow {
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 2px solid #7b0000 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  transition: all 0.3s ease !important;
}

.back-arrow svg {
  width: 22px !important;
  height: 22px !important;
  fill: #7b0000 !important;
  transition: all 0.3s ease !important;
}

.back-arrow:hover {
  background: #7b0000 !important;
}

.back-arrow:hover svg {
  fill: #fff !important;
  transform: translateX(-3px) !important;
}

.avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: 16% 3%;
  border-radius: 81px;
}

.socials {
  display: flex !important;
  gap: 38px !important;
  overflow: visible !important;
}

.social {
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /*color: #5a0707 !important; !* яркий цвет для теста *!*/
  background: #000000 !important; /* чёрный фон, чтобы иконка точно была видна */
}

.social svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
