/* CSS переменные для тем */
:root {
    /* Светлая тема (по умолчанию) */
    --bg-color: rgba(255, 255, 255, 0.95);
    --text-color: #333;
    --text-secondary: #666;
    --card-bg: white;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --button-bg: #f5f5f5;
    --button-hover: #e5e5e5;
    --button-text: #333;
    --telegram-blue: #0088cc;
    --footer-text: rgba(255, 255, 255, 0.9);
    --overlay-bg: rgba(0, 0, 0, 0.1);
    --overlay-dark-bg: rgba(0, 0, 0, 0.5);
    --toggle-bg: rgba(255, 255, 255, 0.2);
    --toggle-border: rgba(255, 255, 255, 0.5);
    --border-radius: 16px; /* Увеличенное скругление */
  }
  
  /* Темная тема */
  [data-theme="dark"] {
    --bg-color: rgba(18, 18, 18, 0.85);
    --text-color: #e0e0e0;
    --text-secondary: #aaaaaa;
    --card-bg: #1e1e1e;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --button-bg: #333333;
    --button-hover: #444444;
    --button-text: #e0e0e0;
    --telegram-blue: #1a9cd6;
    --footer-text: rgba(255, 255, 255, 0.7);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --overlay-dark-bg: rgba(0, 0, 0, 0.7);
    --toggle-bg: rgba(0, 0, 0, 0.4);
    --toggle-border: rgba(255, 255, 255, 0.2);
  }
  
  /* Сброс стилей */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html,
  body {
    height: 100%;
    overflow-x: hidden;
  }
  
  body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Open Sans",
      "Helvetica Neue", sans-serif;
    color: var(--text-color);
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  /* Контейнер страницы для правильного позиционирования футера */
  .page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  /* Слайд-шоу */
  .slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
  }
  
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    z-index: -1;
  }
  
  .slide.active {
    opacity: 1;
    z-index: -1;
  }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  /* Затемнение для слайдов */
  .slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    transition: background-color 0.3s ease;
  }
  
  /* Затемнение для темного режима */
  [data-theme="dark"] .slide::after {
    background-color: var(--overlay-dark-bg);
  }
  
  /* Основной контент - центрирование по вертикали и горизонтали */
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Центрирование по вертикали */
    min-height: 100%; /* Занимает всю доступную высоту */
    padding: 1rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
  }
  
  /* Общие стили для карточек */
  .card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 600px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Профильная карточка */
  .profile-card {
    padding: 3rem; /* Увеличенные отступы */
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-image {
    width: 120px; /* Увеличенное фото */
    height: 120px; /* Увеличенное фото */
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
  }
  
  .profile-username {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    transition: color 0.3s ease;
  }
  
  .social-links {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
  }
  
  .social-links a {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .social-links a:hover {
    color: #cccccc;
  }
  
  /* Telegram карточка */
  .telegram-card {
    padding: 2rem; /* Увеличенные отступы */
    display: flex;
    align-items: center;
  }
  
  .telegram-icon {
    position: relative;
    width: 78px;
    height: 69px;
    margin-right: 1.2rem;
    flex-shrink: 0;
  }
  
  .telegram-icon-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .telegram-info {
    flex: 1;
    padding: 0 0.5rem;
  }
  
  .telegram-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    transition: color 0.3s ease;
  }
  
  .telegram-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
  }
  
  .subscribe-button {
    background-color: var(--button-bg);
    border: none;
    border-radius: 8px; /* Увеличенное скругление */
    padding: 0.5rem 1rem; /* Увеличенные отступы */
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--button-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    margin-left: 1rem; /* Добавлен отступ слева */
  }
  
  .subscribe-button:hover {
    background-color: var(--button-hover);
  }
  
  /* Футер - обновленные стили */
  .footer {
    width: 100%;
    max-width: 600px; /* Такая же ширина как у блоков выше */
    text-align: center;
    font-size: 0.75rem;
    color: var(--footer-text);
    padding: 2rem 0;
    margin: 0 auto 1.5rem; /* Добавлен отступ снизу */
    transition: color 0.3s ease;
    align-self: center;
  }
  
  /* Переключатель темы */
  .theme-toggle {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  }
  
  .theme-toggle a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .theme-toggle a:hover {
    text-decoration: underline;
  }
  
  /* Анимации */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .profile-card,
  .telegram-card {
    animation: fadeIn 0.5s ease forwards;
  }
  
  .telegram-card {
    animation-delay: 0.2s;
  }
  
  /* Адаптивность для разных устройств */
  /* Десктопы (большие экраны) */
  @media (min-width: 992px) {
    .content {
      padding: 1rem;
    }
  }
  
  /* Планшеты (средние экраны) */
  @media (max-width: 768px) {
    .profile-card,
    .telegram-card,
    .footer {
      max-width: 90%;
    }
  }
  
  /* Мобильные устройства (маленькие экраны) */
  @media (max-width: 480px) {
    .profile-card {
      padding: 2rem 1.5rem;
    }
  
    .profile-image {
      width: 100px;
      height: 100px;
    }
  
    .profile-name {
      font-size: 1.25rem;
    }
  
    .telegram-card {
      flex-direction: column;
      text-align: center;
      padding: 1.5rem;
    }
  
    .telegram-icon {
      margin-right: 0;
      margin-bottom: 1rem;
    }
  
    .telegram-info {
      margin-bottom: 1rem;
      text-align: center;
    }
  
    .subscribe-button {
      margin-left: 0;
    }
  
    .footer {
      padding: 1.5rem 0.5rem;
      font-size: 0.7rem;
      margin-bottom: 1rem;
    }
  }
  
  /* Очень маленькие экраны */
  @media (max-width: 320px) {
    .profile-card,
    .telegram-card {
      padding: 1.5rem 1rem;
    }
  
    .profile-image {
      width: 90px;
      height: 90px;
    }
  
    .social-links {
      font-size: 0.75rem;
    }
  
    .telegram-title {
      font-size: 0.9rem;
    }
  
    .telegram-description {
      font-size: 0.8rem;
    }
  
    .subscribe-button {
      padding: 0.5rem 0.8rem;
      font-size: 0.8rem;
    }
  }
  
  /* Ориентация экрана */
  @media (orientation: landscape) and (max-height: 500px) {
    .profile-image {
      width: 80px;
      height: 80px;
      margin-bottom: 0.5rem;
    }
  
    .profile-name {
      font-size: 1.2rem;
      margin-bottom: 0.1rem;
    }
  
    .profile-username {
      margin-bottom: 0.75rem;
    }
  
    .footer {
      padding-top: 1rem;
      margin-bottom: 0.5rem;
    }
  }
  