/* ============================================
   КОРНЕВЫЕ ПЕРЕМЕННЫЕ
   ============================================
   Цвета, размеры, тени — всё в одном месте.
   Меняешь здесь — меняется везде.
   ============================================ */

:root {
  /* Основные цвета */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;

  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #555570;

  --accent: #6c5ce7;
  --accent-light: #a29bfe;

  /* Цвета рангов — ГЛАВНАЯ фишка визуала */
  --rank-e: #6b7280;      /* Серый — новичок */
  --rank-e-glow: rgba(107, 114, 128, 0.3);

  --rank-d: #22c55e;      /* Зелёный — начинающий */
  --rank-d-glow: rgba(34, 197, 94, 0.3);

  --rank-c: #3b82f6;      /* Синий — уверенный */
  --rank-c-glow: rgba(59, 130, 246, 0.3);

  --rank-b: #a855f7;      /* Фиолетовый — опытный */
  --rank-b-glow: rgba(168, 85, 247, 0.3);

  --rank-a: #f97316;      /* Оранжевый — эксперт */
  --rank-a-glow: rgba(249, 115, 22, 0.3);

  --rank-s: #ef4444;      /* Красный — мастер */
  --rank-s-glow: rgba(239, 68, 68, 0.4);
  --rank-s-gold: #fbbf24; /* Золотой акцент для S */

  /* Стрик */
  --streak-fire: #ff6b35;
  --streak-glow: rgba(255, 107, 53, 0.4);

  /* Размеры */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Тени */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* Анимации */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Отступы для safe area (iPhone notch и т.п.) */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}


/* ============================================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Убираем синий блик при нажатии */
}

html, body {
  height: 100%;
  overflow: hidden; /* Скролл будет внутри content */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}


/* ============================================
   ЭКРАН ЗАГРУЗКИ
   ============================================ */

.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  z-index: 9999;
  transition: opacity var(--transition-slow);
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  font-size: 64px;
  margin-bottom: 16px;
  animation: pulse 2s ease-in-out infinite;
}

.loading-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.loading-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--bg-card);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}


/* ============================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ============================================ */

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 500px;    /* Ограничиваем ширину — это мобильное приложение */
  margin: 0 auto;
}

.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  padding-bottom: calc(80px + var(--safe-bottom)); /* Место под таб-бар */

  /* Плавный скролл на iOS */
  -webkit-overflow-scrolling: touch;

  /* Скроллбар стилизация */
  scrollbar-width: thin;
  scrollbar-color: var(--bg-card) transparent;
}

.content::-webkit-scrollbar {
  width: 4px;
}

.content::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}


/* ============================================
   НИЖНЯЯ НАВИГАЦИЯ (таб-бар)
   ============================================ */

.tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 64px;
  padding-bottom: var(--safe-bottom);
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  z-index: 100;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.tab-item.active {
  color: var(--accent-light);
}

.tab-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.tab-label {
  font-size: 10px;
  font-weight: 500;
}

/* Центральная кнопка чекина — больше и ярче */
.checkin-tab {
  position: relative;
}

.tab-icon-large {
  font-size: 32px;
  position: relative;
  top: -8px;
  background: var(--bg-secondary);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--streak-fire);
  box-shadow: 0 0 20px var(--streak-glow);
  animation: fire-pulse 2s ease-in-out infinite;
}

@keyframes fire-pulse {
  0%, 100% { box-shadow: 0 0 15px var(--streak-glow); }
  50% { box-shadow: 0 0 25px var(--streak-glow), 0 0 40px rgba(255, 107, 53, 0.2); }
}


/* ============================================
   КАРТОЧКА ПРОФИЛЯ — Главный элемент дизайна
   ============================================
   Карточка подсвечивается цветом ранга.
   У S-ранга — золотое свечение с анимацией.
   ============================================ */

.profile-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: var(--card-glow-gradient, linear-gradient(135deg, var(--rank-e), transparent));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Свечение карточки за пределами рамки */
.profile-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: var(--card-glow-gradient, none);
  opacity: 0.15;
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* ---- Стили по рангам ---- */

.profile-card.rank-e {
  --card-glow-gradient: linear-gradient(135deg, var(--rank-e), transparent 60%);
}

.profile-card.rank-d {
  --card-glow-gradient: linear-gradient(135deg, var(--rank-d), transparent 60%);
  box-shadow: 0 0 20px var(--rank-d-glow);
}

.profile-card.rank-c {
  --card-glow-gradient: linear-gradient(135deg, var(--rank-c), var(--rank-c-glow) 50%, transparent);
  box-shadow: 0 0 25px var(--rank-c-glow);
}

.profile-card.rank-b {
  --card-glow-gradient: linear-gradient(135deg, var(--rank-b), var(--accent) 50%, transparent);
  box-shadow: 0 0 30px var(--rank-b-glow);
}

.profile-card.rank-a {
  --card-glow-gradient: linear-gradient(135deg, var(--rank-a), #fbbf24 50%, transparent);
  box-shadow: 0 0 35px var(--rank-a-glow);
}

/* S-ранг — особый: золотая анимированная рамка */
.profile-card.rank-s {
  --card-glow-gradient: linear-gradient(
    135deg,
    var(--rank-s),
    var(--rank-s-gold),
    var(--rank-s),
    var(--rank-s-gold)
  );
  box-shadow:
    0 0 40px var(--rank-s-glow),
    0 0 80px rgba(251, 191, 36, 0.15);
  animation: s-rank-glow 3s ease-in-out infinite;
}

@keyframes s-rank-glow {
  0%, 100% {
    box-shadow:
      0 0 40px var(--rank-s-glow),
      0 0 80px rgba(251, 191, 36, 0.15);
  }
  50% {
    box-shadow:
      0 0 50px var(--rank-s-glow),
      0 0 100px rgba(251, 191, 36, 0.25),
      0 0 120px rgba(239, 68, 68, 0.1);
  }
}


/* ---- Содержимое карточки ---- */

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  object-fit: cover;
  background: var(--bg-secondary);
}

/* Рамка аватара по рангу */
.rank-e .card-avatar { border-color: var(--rank-e); }
.rank-d .card-avatar { border-color: var(--rank-d); }
.rank-c .card-avatar { border-color: var(--rank-c); }
.rank-b .card-avatar { border-color: var(--rank-b); }
.rank-a .card-avatar { border-color: var(--rank-a); }
.rank-s .card-avatar {
  border-color: var(--rank-s-gold);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.card-info {
  flex: 1;
}

.card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.card-username {
  font-size: 13px;
  color: var(--text-secondary);
}

.card-rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
  color: white;
}

.card-rank-badge.rank-e { background: var(--rank-e); }
.card-rank-badge.rank-d { background: var(--rank-d); }
.card-rank-badge.rank-c { background: var(--rank-c); }
.card-rank-badge.rank-b { background: var(--rank-b); }
.card-rank-badge.rank-a { background: var(--rank-a); }
.card-rank-badge.rank-s {
  background: linear-gradient(135deg, var(--rank-s), var(--rank-s-gold));
  animation: badge-shine 2s ease-in-out infinite;
}

@keyframes badge-shine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

/* Статистика под карточкой */
.card-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-stat {
  text-align: center;
}

.card-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
}


/* ============================================
   ПРОГРЕСС-БАР XP
   ============================================ */

.xp-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}

.xp-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--transition-slow);
  background: var(--accent);
}

.xp-bar-fill.rank-e { background: var(--rank-e); }
.xp-bar-fill.rank-d { background: var(--rank-d); }
.xp-bar-fill.rank-c { background: var(--rank-c); }
.xp-bar-fill.rank-b { background: var(--rank-b); }
.xp-bar-fill.rank-a { background: var(--rank-a); }
.xp-bar-fill.rank-s {
  background: linear-gradient(90deg, var(--rank-s), var(--rank-s-gold));
}

.xp-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}


/* ============================================
   НАВЫКИ — список и элементы
   ============================================ */

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.skill-item:active {
  transform: scale(0.98);
  background: var(--bg-card-hover);
}

.skill-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
}

.skill-info {
  flex: 1;
  min-width: 0; /* Чтобы текст обрезался а не выходил за пределы */
}

.skill-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.skill-rank {
  font-size: 16px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: white;
}

.skill-rank.rank-e { background: var(--rank-e); }
.skill-rank.rank-d { background: var(--rank-d); }
.skill-rank.rank-c { background: var(--rank-c); }
.skill-rank.rank-b { background: var(--rank-b); }
.skill-rank.rank-a { background: var(--rank-a); }
.skill-rank.rank-s {
  background: linear-gradient(135deg, var(--rank-s), var(--rank-s-gold));
}

/* Стрик-индикатор на навыке */
.skill-streak {
  font-size: 12px;
  color: var(--streak-fire);
  display: flex;
  align-items: center;
  gap: 2px;
}


/* ============================================
   ЧЕКИН — экран ежедневной отметки
   ============================================ */

.checkin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.checkin-item.checked {
  opacity: 0.6;
  border-left: 3px solid var(--rank-d);
}

.checkin-item.unchecked {
  border-left: 3px solid var(--streak-fire);
}

.checkin-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--streak-fire);
  background: transparent;
  color: var(--streak-fire);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkin-button:active {
  transform: scale(0.9);
}

.checkin-button.done {
  background: var(--rank-d);
  border-color: var(--rank-d);
  color: white;
}

.checkin-potential {
  font-size: 12px;
  color: var(--streak-fire);
  font-weight: 600;
}


/* ============================================
   ЛЕНТА СОБЫТИЙ
   ============================================ */

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.feed-icon {
  font-size: 28px;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.feed-body {
  flex: 1;
}

.feed-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feed-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.feed-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ============================================
   ПОИСК
   ============================================ */

.search-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
}


/* ============================================
   ПОЛЬЗОВАТЕЛЬ В СПИСКЕ (результаты поиска, подписки)
   ============================================ */

.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.user-item:active {
  background: var(--bg-card-hover);
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
}

.user-name {
  font-size: 15px;
  font-weight: 600;
}

.user-rank {
  font-size: 12px;
}


/* ============================================
   КНОПКИ
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:active {
  background: var(--accent-light);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger {
  background: var(--rank-s);
  color: white;
}

.btn-follow {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}


/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end; /* Снизу — как в мобильных приложениях */
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-height: 85vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  animation: modal-slide-up var(--transition-normal);
}

@keyframes modal-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 1;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 0 20px 20px;
}


/* ============================================
   TOAST (уведомление)
   ============================================ */

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 300;
  animation: toast-in var(--transition-normal);
  max-width: 90%;
}

.toast.fade-out {
  animation: toast-out var(--transition-normal);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

.toast-icon {
  font-size: 20px;
}

.toast-text {
  font-size: 14px;
  font-weight: 500;
}


/* ============================================
   СЕКЦИИ И ЗАГОЛОВКИ
   ============================================ */

.section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-action {
  font-size: 13px;
  color: var(--accent-light);
  background: none;
  border: none;
  cursor: pointer;
}


/* ============================================
   КАТЕГОРИИ (выбор навыков)
   ============================================ */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-item {
  padding: 16px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.category-item:active {
  transform: scale(0.97);
  background: var(--bg-card-hover);
}

.category-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.category-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}


/* ============================================
   ДОСТИЖЕНИЯ
   ============================================ */

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.achievement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  text-align: center;
}

.achievement-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.achievement-name {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.2;
}


/* ============================================
   КАЛЕНДАРЬ СТРИКОВ (как GitHub)
   ============================================ */

.streak-calendar {
  display: grid;
  grid-template-columns: repeat(13, 1fr); /* 13 недель ≈ 90 дней */
  gap: 3px;
}

.streak-day {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.streak-day.active {
  background: var(--rank-d);
  box-shadow: 0 0 4px var(--rank-d-glow);
}


/* ============================================
   ПУСТЫЕ СОСТОЯНИЯ
   ============================================ */

.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}


/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* На очень маленьких экранах */
@media (max-width: 350px) {
  .card-stats { flex-wrap: wrap; gap: 8px; }
  .achievement-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: 1fr; }
}

/* На планшетах и десктопе */
@media (min-width: 500px) {
  .app {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }
}