/* ============================================= */
/* АДАПТИВНЫЕ РАЗМЕРЫ И ОРИЕНТАЦИЯ */
/* ============================================= */

/* Ультра широкие мониторы (2560px и больше) */
@media (min-width: 2560px) {
  html,
  body {
    padding: 2rem;
  }
  
  main {
    max-width: 950px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 1.5rem;
  }
  
  img {
    max-width: 140px;
  }
  
  h1 {
    font-size: 2.5rem;
    margin-top: 1.5rem;
  }
  
  h1::after {
    width: 100px;
    bottom: -10px;
  }
  
  h2 {
    font-size: 1.4rem;
    margin-top: 1rem;
  }
  
  p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 1.2rem 0 1.5rem;
  }
  
  menu {
    margin: 2rem 0 0;
  }
  
  li {
    padding: 1.4rem 2rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
  }
  
  li::after {
    width: 28px;
    height: 28px;
    left: 1.8rem;
  }
  
  .video-container {
    margin: 2rem auto 1.5rem;
    border-radius: 1rem;
  }
  
  .video-text {
    margin-top: 1.5rem;
  }
  
  .video-text::before {
    width: 50px;
    top: -10px;
  }
  
  .music-btn {
    padding: 14px 26px;
    font-size: 15px;
    bottom: 30px;
    right: 30px;
  }
}

/* Большие десктопы (1601px - 1920px) */
@media (min-width: 1601px) and (max-width: 1919px) {
  html,
  body {
    padding: 1.5rem;
  }
  
  main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.2rem;
    border-radius: 1.3rem;
  }
  
  img {
    max-width: 130px;
  }
  
  h1 {
    font-size: 2.3rem;
    margin-top: 1.3rem;
  }
  
  h1::after {
    width: 90px;
    bottom: -9px;
  }
  
  h2 {
    font-size: 1.3rem;
    margin-top: 0.9rem;
  }
  
  p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1.1rem 0 1.4rem;
  }
  
  menu {
    margin: 1.8rem 0 0;
  }
  
  li {
    padding: 1.3rem 1.8rem;
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
    border-radius: 0.9rem;
  }
  
  li::after {
    width: 26px;
    height: 26px;
    left: 1.6rem;
  }
  
  .video-container {
    margin: 1.8rem auto 1.3rem;
    border-radius: 0.9rem;
  }
  
  .video-text {
    margin-top: 1.3rem;
  }
  
  .video-text::before {
    width: 45px;
    top: -9px;
  }
  
  .music-btn {
    padding: 13px 24px;
    font-size: 14px;
    bottom: 25px;
    right: 25px;
  }
}

/* Средние десктопы (1440px - 1600px) */
@media (min-width: 1440px) and (max-width: 1600px) {
  html,
  body {
    padding: 1.2rem;
  }
  
  main {
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1.2rem;
  }
  
  img {
    max-width: 120px;
  }
  
  h1 {
    font-size: 2.1rem;
    margin-top: 1.2rem;
  }
  
  h1::after {
    width: 85px;
    bottom: -8px;
  }
  
  h2 {
    font-size: 1.2rem;
    margin-top: 0.8rem;
  }
  
  p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 1rem 0 1.3rem;
  }
  
  menu {
    margin: 1.6rem 0 0;
  }
  
  li {
    padding: 1.2rem 1.7rem;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    border-radius: 0.8rem;
  }
  
  li::after {
    width: 24px;
    height: 24px;
    left: 1.5rem;
  }
  
  .video-container {
    margin: 1.6rem auto 1.2rem;
    border-radius: 0.8rem;
  }
  
  .video-text {
    margin-top: 1.2rem;
  }
  
  .video-text::before {
    width: 42px;
    top: -8px;
  }
  
  .music-btn {
    padding: 12px 22px;
    font-size: 13px;
    bottom: 22px;
    right: 22px;
  }
}

/* Стандартные десктопы (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  html,
  body {
    padding: 1rem;
  }
  
  main {
    max-width: 500px;
    margin: 0 auto;
    padding: 1.8rem;
    border-radius: 1.1rem;
  }
  
  img {
    max-width: 110px;
  }
  
  h1 {
    font-size: 2rem;
    margin-top: 1.1rem;
  }
  
  h1::after {
    width: 80px;
    bottom: -7px;
  }
  
  h2 {
    font-size: 1.1rem;
    margin-top: 0.7rem;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0.9rem 0 1.2rem;
  }
  
  menu {
    margin: 1.5rem 0 0;
  }
  
  li {
    padding: 1.1rem 1.6rem;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
    border-radius: 0.7rem;
  }
  
  li::after {
    width: 22px;
    height: 22px;
    left: 1.4rem;
  }
  
  .video-container {
    margin: 1.5rem auto 1.1rem;
    border-radius: 0.7rem;
  }
  
  .video-text {
    margin-top: 1.1rem;
  }
  
  .video-text::before {
    width: 40px;
    top: -7px;
  }
  
  .music-btn {
    padding: 11px 20px;
    font-size: 13px;
    bottom: 20px;
    right: 20px;
  }
}

/* Маленькие десктопы (1025px - 1279px) */
@media (min-width: 1025px) and (max-width: 1279px) {
  html,
  body {
    padding: 0.8rem;
  }
  
  main {
    max-width: 350px;
    margin: 0 auto;
    padding: 1.6rem;
    border-radius: 1rem;
  }
  
  img {
    max-width: 100px;
  }
  
  h1 {
    font-size: 1.9rem;
    margin-top: 1rem;
  }
  
  h1::after {
    width: 75px;
    bottom: -7px;
  }
  
  h2 {
    font-size: 1.05rem;
    margin-top: 0.6rem;
  }
  
  p {
    font-size: 0.98rem;
    line-height: 1.5;
    margin: 0.8rem 0 1.1rem;
  }
  
  menu {
    margin: 1.4rem 0 0;
  }
  
  li {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    margin-bottom: 0.7rem;
    border-radius: 0.7rem;
  }
  
  li::after {
    width: 21px;
    height: 21px;
    left: 1.3rem;
  }
  
  .video-container {
    margin: 1.4rem auto 1rem;
    border-radius: 0.7rem;
  }
  
  .video-text {
    margin-top: 1rem;
  }
  
  .video-text::before {
    width: 38px;
    top: -7px;
  }
  
  .music-btn {
    padding: 10px 18px;
    font-size: 12px;
    bottom: 18px;
    right: 18px;
  }
}

/* Планшеты горизонтально (835px - 1024px) */
@media (min-width: 835px) and (max-width: 1024px) {
  html,
  body {
    padding: 0.7rem;
  }
  
  main {
    max-width: 500px;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: 0.9rem;
    max-height: 93vh;
  }
  
  img {
    max-width: 95px;
  }
  
  h1 {
    font-size: 1.8rem;
    margin-top: 0.9rem;
  }
  
  h1::after {
    width: 70px;
    bottom: -6px;
  }
  
  h2 {
    font-size: 1rem;
    margin-top: 0.5rem;
  }
  
  p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.7rem 0 1rem;
  }
  
  menu {
    margin: 1.3rem 0 0;
  }
  
  li {
    padding: 0.9rem 1.4rem;
    font-size: 0.98rem;
    margin-bottom: 0.6rem;
    border-radius: 0.6rem;
  }
  
  li::after {
    width: 20px;
    height: 20px;
    left: 1.2rem;
  }
  
  .video-container {
    margin: 1.3rem auto 0.9rem;
    border-radius: 0.6rem;
  }
  
  .video-text {
    margin-top: 0.9rem;
  }
  
  .video-text::before {
    width: 35px;
    top: -6px;
  }
  
  .music-btn {
    padding: 9px 16px;
    font-size: 11px;
    bottom: 15px;
    right: 15px;
  }
}

/* Планшеты вертикально (769px - 834px) */
@media (min-width: 769px) and (max-width: 834px) {
  html,
  body {
    padding: 0.6rem;
  }
  
  main {
    max-width: 350px;
    margin: 0 auto;
    padding: 1.4rem;
    border-radius: 0.8rem;
    max-height: 94vh;
  }
  
  img {
    max-width: 90px;
  }
  
  h1 {
    font-size: 1.7rem;
    margin-top: 0.8rem;
  }
  
  h1::after {
    width: 65px;
    bottom: -5px;
  }
  
  h2 {
    font-size: 0.98rem;
    margin-top: 0.4rem;
  }
  
  p {
    font-size: 0.93rem;
    line-height: 1.5;
    margin: 0.6rem 0 0.9rem;
  }
  
  menu {
    margin: 1.2rem 0 0;
  }
  
  li {
    padding: 0.8rem 1.3rem;
    font-size: 0.96rem;
    margin-bottom: 0.5rem;
    border-radius: 0.6rem;
  }
  
  li::after {
    width: 19px;
    height: 19px;
    left: 1.1rem;
  }
  
  .video-container {
    margin: 1.2rem auto 0.8rem;
    border-radius: 0.6rem;
  }
  
  .video-text {
    margin-top: 0.8rem;
  }
  
  .video-text::before {
    width: 33px;
    top: -5px;
  }
  
  .music-btn {
    padding: 8px 15px;
    font-size: 11px;
    bottom: 14px;
    right: 14px;
  }
}

/* Мобильные горизонтально (569px - 768px) */
@media (min-width: 569px) and (max-width: 768px) {
  html,
  body {
    padding: 0.5rem;
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    background-image: 
      linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 100%),
      url('../images/background/backg_multilink.webp');
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    align-items: flex-start;
  }

  body::before {
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    filter: blur(10px) brightness(0.9);
  }

  body::after {
    backdrop-filter: blur(1px);
  }

  main {
    padding: 1.6rem 1.4rem;
    border-radius: 0.9rem;
    max-width: 100%;
    max-height: 94vh;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px) saturate(160%);
    overflow-y: auto;
    box-shadow: 
      0 15px 35px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 0 30px rgba(209, 240, 93, 0.12);
    margin: 0.5rem auto;
    animation: mobileContainerReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  /* Улучшенная ориентация для маленьких экранов */
  .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  img {
    max-width: 95px;
    margin-bottom: 0.4rem;
    animation: mobileAvatarPop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    opacity: 0;
    transform: scale(0.9);
  }

  h1 {
    font-size: 1.8rem;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    text-align: center;
    width: 100%;
    animation: mobileTitleReveal 0.7s ease-out 0.4s both;
    opacity: 0;
    transform: translateY(15px);
  }

  h1::after {
    width: 80px;
    height: 2px;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    animation: mobileLineExpand 0.6s ease-out 0.8s both;
  }

  h2 {
    font-size: 1.1rem;
    margin-top: 0.7rem;
    text-align: center;
    width: 100%;
    animation: mobileSubtitleReveal 0.6s ease-out 0.5s both;
    opacity: 0;
    transform: translateX(-10px);
  }

  p {
    margin: 0.8rem 0 1.1rem;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    width: 100%;
    animation: mobileTextReveal 0.6s ease-out 0.6s both;
    opacity: 0;
    transform: translateY(10px);
  }

  menu {
    margin: 1.4rem 0 0;
    width: 100%;
    padding: 0;
    list-style: none;
  }

  li {
    padding: 1.1rem 1.2rem;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    border-radius: 0.7rem;
    backdrop-filter: blur(12px);
    animation: mobileMenuItemReveal 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 60px;
  }

  li a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
  }

  li:nth-child(1) { animation-delay: 0.8s; }
  li:nth-child(2) { animation-delay: 0.9s; }
  li:nth-child(3) { animation-delay: 1.0s; }
  li:nth-child(4) { animation-delay: 1.1s; }
  li:nth-child(5) { animation-delay: 1.2s; }
  li:nth-child(6) { animation-delay: 1.3s; }

  li::after {
    width: 22px;
    height: 22px;
    left: 1.2rem;
    position: absolute;
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
  }

  li span {
    margin-left: 3rem;
    display: block;
    width: calc(100% - 4rem);
    text-align: left;
  }

  .video-container {
    margin: 1.4rem auto 0.9rem;
    border-radius: 0.7rem;
    animation: mobileVideoReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
    opacity: 0;
    transform: scale(0.95);
    width: 100%;
    max-width: 100%;
  }

  .video-container iframe {
    border-radius: 0.7rem;
    width: 100%;
    height: 200px;
  }

  .video-text {
    margin-top: 1rem;
    animation: mobileTextReveal 0.6s ease-out 1.0s both;
    width: 100%;
    text-align: center;
  }

  .video-text::before {
    width: 40px;
    height: 2px;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
  }

  .video-text p {
    font-size: 12.5px;
    margin: 0 0 10px;
  }

  main::-webkit-scrollbar {
    width: 10px;
  }

  main::-webkit-scrollbar-thumb {
    background: linear-gradient(
      to bottom,
      var(--primary-color),
      #a8c93a
    );
  }
  
  .music-btn {
    display: none !important;
  }
}

/* Маленькие мобильные (391px - 480px) */
@media (min-width: 391px) and (max-width: 480px) {
  html,
  body {
    padding: 0.35rem;
    background-attachment: fixed;
    background-image: 
      linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%),
      url('../images/background/backg_multilink.webp');
  }

  body::before {
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    filter: blur(9px) brightness(0.91);
  }

  body::after {
    backdrop-filter: blur(0.8px);
  }

  main {
    padding: 1.5rem 1.3rem;
    border-radius: 0.9rem;
    margin: 0.35rem auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .content-wrapper {
    width: 100%;
  }

  img {
    max-width: 88px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    font-size: 1.7rem;
    text-align: center;
  }

  h1::after {
    width: 75px;
    left: 50%;
    transform: translateX(-50%);
  }

  h2 {
    font-size: 1.05rem;
    text-align: center;
  }

  p {
    text-align: center;
  }

  menu {
    width: 100%;
    padding: 0;
  }

  li {
    padding: 1.1rem 1.1rem;
    font-size: 1.06rem;
    width: 100%;
    box-sizing: border-box;
  }

  li::after {
    width: 21px;
    height: 21px;
  }

  li span {
    margin-left: 2.8rem;
  }

  .video-container {
    width: 100%;
  }

  .video-container iframe {
    height: 180px;
  }

  .video-text {
    text-align: center;
  }

  .video-text::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .video-text p {
    font-size: 12.5px;
  }
}

/* Маленькие мобильные (361px - 390px) */
@media (min-width: 361px) and (max-width: 390px) {
  html,
  body {
    padding: 0.3rem;
  }

  main {
    padding: 1.4rem 1.2rem;
    border-radius: 0.85rem;
    width: 100%;
  }

  .content-wrapper {
    width: 100%;
  }

  img {
    max-width: 85px;
  }

  h1 {
    font-size: 1.65rem;
  }

  h1::after {
    width: 72px;
  }

  h2 {
    font-size: 1.03rem;
  }

  li {
    padding: 1.05rem 1rem;
    font-size: 1.04rem;
    min-height: 55px;
  }

  li::after {
    width: 20px;
    height: 20px;
    left: 1rem;
  }

  li span {
    margin-left: 2.5rem;
  }

  .video-container iframe {
    height: 160px;
  }
}

/* Очень маленькие устройства (320px - 360px) */
@media (min-width: 320px) and (max-width: 360px) {
  html,
  body {
    padding: 0.25rem;
  }

  main {
    padding: 1.3rem 1.1rem;
    border-radius: 0.8rem;
    width: 100%;
    max-width: 100%;
  }

  .content-wrapper {
    width: 100%;
  }

  img {
    max-width: 80px;
  }

  h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  h1::after {
    width: 70px;
  }

  h2 {
    font-size: 1rem;
    line-height: 1.3;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  menu {
    margin: 1.2rem 0 0;
  }

  li {
    padding: 1rem 0.95rem;
    font-size: 1.02rem;
    margin-bottom: 0.7rem;
    min-height: 50px;
  }

  li::after {
    width: 19px;
    height: 19px;
    left: 0.95rem;
  }

  li span {
    margin-left: 2.3rem;
    font-size: 0.98rem;
  }

  .video-container {
    margin: 1.2rem auto 0.8rem;
  }

  .video-container iframe {
    height: 140px;
  }

  .video-text p {
    font-size: 11px;
    line-height: 1.3;
  }
}

/* Меньше 320px (экстремально маленькие) */
@media (max-width: 319px) {
  html,
  body {
    padding: 0.2rem;
  }

  main {
    padding: 1.2rem 1rem;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 100%;
  }

  .content-wrapper {
    width: 100%;
  }

  img {
    max-width: 75px;
  }

  h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  h1::after {
    width: 65px;
  }

  h2 {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0.6rem 0 0.9rem;
  }

  menu {
    margin: 1rem 0 0;
  }

  li {
    padding: 0.95rem 0.9rem;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    min-height: 45px;
  }

  li::after {
    width: 18px;
    height: 18px;
    left: 0.9rem;
  }

  li span {
    margin-left: 2.1rem;
    font-size: 0.95rem;
  }

  .video-container {
    margin: 1rem auto 0.6rem;
  }

  .video-container iframe {
    height: 120px;
  }

  .video-text p {
    font-size: 10px;
    line-height: 1.2;
  }
}

/* iPad Pro 12.9" (1024x1366) */
@media (width: 1024px) and (height: 1366px) {
  html,
  body {
    padding: 1.5rem;
  }
  
  main {
    max-width: 800px;
    max-height: 90vh;
    padding: 2rem;
  }
  
  img {
    max-width: 120px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  li {
    padding: 1.2rem 1.8rem;
  }
}

/* iPad Pro горизонтально (1366x1024) */
@media (width: 1366px) and (height: 1024px) {
  html,
  body {
    padding: 1rem;
  }
  
  main {
    max-width: 850px;
    max-height: 88vh;
  }
  
  menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
  
  li {
    margin-bottom: 0;
  }
}

/* Surface Pro 12.3" (2736x1824) */
@media (width: 2736px) and (height: 1824px) {
  html,
  body {
    padding: 2rem;
  }
  
  main {
    max-width: 900px;
    padding: 2.5rem;
  }
  
  img {
    max-width: 140px;
  }
  
  h1 {
    font-size: 2.4rem;
  }
  
  li {
    padding: 1.3rem 2rem;
  }
}

/* Широкоформатные мониторы 21:9 (3440x1440) */
@media (min-width: 3440px) and (min-aspect-ratio: 21/9) {
  html,
  body {
    padding: 2.5rem;
  }
  
  main {
    max-width: 1000px;
    padding: 3rem;
    border-radius: 1.8rem;
  }
  
  img {
    max-width: 150px;
  }
  
  h1 {
    font-size: 2.6rem;
  }
  
  h1::after {
    width: 110px;
  }
  
  li {
    padding: 1.5rem 2.2rem;
    font-size: 1.25rem;
  }
}

/* Очень низкие экраны в ландшафте (до 450px высоты) */
@media (max-height: 450px) and (orientation: landscape) {
  html,
  body {
    padding: 0.25rem;
    background-size: auto 140%;
  }

  body::before {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    filter: blur(5px) brightness(0.85);
  }

  main {
    max-height: 86vh;
    padding: 1rem;
  }

  .content-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  img {
    max-width: 60px;
    margin-right: 1rem;
  }

  .header-content {
    flex: 1;
    min-width: 200px;
  }

  h1 {
    font-size: 1.5rem;
    text-align: left;
  }

  h1::after {
    left: 0;
    transform: none;
  }

  h2 {
    font-size: 0.9rem;
    text-align: left;
  }

  p {
    font-size: 0.85rem;
    text-align: left;
  }

  menu {
    margin: 1rem 0 0;
    width: 100%;
  }

  li {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    min-height: 40px;
  }

  .video-container {
    margin: 1rem auto 0.6rem;
    width: 100%;
  }

  .video-container iframe {
    height: 120px;
  }

  .video-text {
    text-align: left;
  }

  .video-text::before {
    left: 0;
    transform: none;
  }

  .video-text p {
    font-size: 11px;
    text-align: left;
  }
}

/* Улучшенная адаптация для очень маленьких экранов в портрете */
@media (max-width: 400px) and (orientation: portrait) {
  main {
    padding: 1.2rem 1rem;
  }
  
  menu {
    margin: 1rem 0 0;
  }
  
  li {
    padding: 0.9rem 0.9rem;
    margin-bottom: 0.7rem;
  }
  
  li span {
    font-size: 0.95rem;
  }
  
  .video-container iframe {
    height: 150px;
  }
}

/* Оптимизация для квадратных экранов (например, 1:1 соотношение) */
@media (max-aspect-ratio: 1/1) and (max-width: 600px) {
  main {
    padding: 1.4rem;
  }
  
  img {
    max-width: 80px;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  menu {
    margin: 1.2rem 0 0;
  }
  
  li {
    padding: 1rem 1rem;
    margin-bottom: 0.8rem;
  }
}

/* Retina дисплеи 2x */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  html,
  body {
    background-image: 
      linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 100%),
      url('../images/background/backg_multilink@2x.webp');
  }
}

/* Retina дисплеи 3x */
@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
  html,
  body {
    background-image: 
      linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 100%),
      url('../images/background/backg_multilink@3x.webp');
  }
}

/* Высокая контрастность */
@media (prefers-contrast: high) {
  main {
    border: 2px solid var(--primary-color);
  }
  
  li {
    border: 1px solid var(--primary-color);
  }
  
  h1, h2, p, li {
    text-shadow: 0 0 1px var(--primary-color);
  }
}

/* Режим экономии данных */
@media (prefers-reduced-data: reduce) {
  html,
  body {
    background-image: 
      linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
  }
  
  * {
    transition-duration: 0.1s !important;
    animation-duration: 0.3s !important;
  }
}

/* Темная тема системы */
@media (prefers-color-scheme: dark) {
  html,
  body {
    background-image: 
      linear-gradient(135deg, rgb(0, 0, 0) 100%, rgb(0, 0, 0) 100%),
      url('../images/background/backg_multilink.webp');
  }
}

/* Светлая тема системы */
@media (prefers-color-scheme: light) {
  html,
  body {
    background-image: 
      linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%),
      url('../images/background/backg_multilink_light.webp');
  }
  
  main {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 
      0 15px 35px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(0, 0, 0, 0.06),
      0 0 20px rgba(209, 240, 93, 0.2);
  }
  
  li {
    background-color: rgba(255, 255, 255, 0.85);
    color: #222;
  }
  
  h1, h2, p {
    color: #222;
  }
  
  .video-text p {
    color: #555;
  }
}

/* Уменьшенное потребление энергии */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  li:hover,
  li:active {
    transform: none;
  }
  
  .video-container:hover {
    transform: none;
  }
  
  img:hover {
    transform: none;
  }
  
  main {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  img, h1, h2, p, li, .video-container {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Плавные переходы */
main,
img,
h1,
h2,
p,
li,
.video-container,
.music-btn {
  transition: all 0.3s ease;
}

/* Сохранение анимаций */
@keyframes mobileContainerReveal {
  0% { opacity: 0; transform: translateY(25px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mobileAvatarPop {
  0% { opacity: 0; transform: scale(0.9) rotate(-10deg); }
  70% { opacity: 1; transform: scale(1.05) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes mobileTitleReveal {
  0% { opacity: 0; transform: translateY(15px); filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes mobileLineExpand {
  0% { width: 0; opacity: 0; }
  100% { width: 80px; opacity: 1; }
}

@keyframes mobileSubtitleReveal {
  0% { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes mobileTextReveal {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0.9; transform: translateY(0); }
}

@keyframes mobileMenuItemReveal {
  0% { opacity: 0; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mobileVideoReveal {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}