/* ============================= */
/*   БАЗОВІ СТИЛІ ТА КОЛЬОРИ     */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
 
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background-color: #1c1c1e; /* темно-сірий фон */
  color: #fff;
  /* Забороняємо глобальний горизонтальний скрол,
     щоб рухались лише потрібні блоки */
  overflow-x: hidden;
}

/* ============================= */
/*           ШАПКА (header)      */
/* ============================= */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c2c2e;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #3a3a3c;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.store-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-search input {
  background-color: #3a3a3c;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #fff;
  width: 180px;
}

/* Кнопка "бургер" – прихована на десктопах */
.burger-menu {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
}

/* ============================= */
/*   КОНТЕЙНЕР: aside + main     */
/* ============================= */
.app-container {
  display: flex;
  min-height: calc(100vh - 60px); /* висота екрану мінус шапка (приблизно) */
}

/* ============================= */
/*          САЙДБАР (aside)      */
/* ============================= */
.sidebar {
  width: 220px;
  background-color: #2c2c2e;
  border-right: 1px solid #3a3a3c;
  padding: 1rem 0;
  transition: transform 0.3s ease;
  /* За замовчуванням "відкритий" на десктопі */
  transform: translateX(0);
}

.sidebar nav ul {
  list-style-type: none;
}

.sidebar nav li {
  margin-bottom: 0.5rem;
}

.sidebar nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background-color: #464648;
}

/* ============================= */
/*          ОСНОВНИЙ main        */
/* ============================= */
main {
  flex: 1;
  padding: 1rem;
  /* Прокрутка, якщо контент завеликий */
  overflow-y: auto;
}

/* ----------------------------- */
/* Блок з інформацією про апку   */
/* ----------------------------- */
.app-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app-icon img {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
}

.app-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.app-details h2 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.age-label {
  font-size: 0.8rem;
  color: #ccc;
}

.app-subtitle {
  font-size: 1rem;
  color: #ccc;
}

.app-dev a {
  color: #0a84ff;
  text-decoration: none;
}

.app-ranking {
  font-size: 0.9rem;
  color: #ccc;
}

.app-price {
  font-weight: bold;
  margin: 0.2rem 0;
}

.app-download-btn {
  background-color: #007aff; /* синя кнопка */
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: 0.4rem;
}

.app-download-btn:hover {
  background-color: #005bb5;
}

/* ----------------------------- */
/* Галерея скриншотів           */
/* ----------------------------- */
.section-heading {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: #fff;
}

/* Обгортка для скриншотів.
   На десктопі можна лишати "звичайний" вигляд (флекс-wrap),
   а якщо бажаєте "карусель" і на десктопі, то винесіть стилі за @media. */
.screenshots-wrapper {
  /* Тут поки без overflow, 
     у @media зробимо overflow-x: auto */
  width: 100%;
  margin-bottom: 2rem;
}

.app-screenshots {
  display: flex;
  flex-wrap: wrap;  /* Десктоп: розбиває на кілька рядків */
  gap: 1rem;
}

.screenshot-item {
  width: 150px;
  text-align: center;
}

.screenshot-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.screenshot-item figcaption {
  font-size: 0.85rem;
  color: #ccc;
}

/* ----------------------------- */
/* SEO-контент */
.seo-content {
  margin-top: 2rem;
  line-height: 1.5;
}
.seo-content h1,
.seo-content h2 {
  margin-bottom: 1rem;
}
.seo-content p {
  margin-bottom: 1rem;
}
.seo-content ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

/* ----------------------------- */
/* Кетфіш-банер (sticky bar)    */
/* ----------------------------- */
.catfish-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #2c2c2e;  /* темний фон */
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catfish-bottom {
  bottom: 0;
}

.catfish-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.crown-icon svg {
  width: 32px;
  height: 32px;
}

.catfish-download-btn {
  background-color: #FFCC00; 
  color: #1c1c1e;      
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  display: inline-block;
}

.catfish-download-btn:hover {
  filter: brightness(0.9);
}

.catfish-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
}

/* ============================= */
/*        АДАПТИВНІСТЬ          */
/* ============================= */
@media (max-width: 768px) {

  /* Показуємо бургер, ховаємо сайдбар */
  .burger-menu {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 60px;  /* під шапкою */
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    z-index: 1000;
  }
  .sidebar.open {
    transform: translateX(0);
  }

  /* Основний контейнер стає 1-колонним */
  .app-container {
    flex-direction: column;
  }

  /* Вертикальне розташування блоку з інформацією */
  .app-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Обгортка для скриншотів:
     тепер горизонтальний скрол */
  .screenshots-wrapper {
    overflow-x: auto;         /* увімкнули горизонтальну прокрутку */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* Самі скриншоти в один ряд (nowrap) */
  .app-screenshots {
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 2rem;
  }

  .screenshot-item {
    flex: 0 0 auto; /* забороняємо стискатись */
    width: 150px;   /* або 200px */
    text-align: center;
  }
}
table {
  table-layout: fixed; 
  width: 100%;
}
td {
  word-wrap: break-word; 
  overflow-wrap: break-word;
}
    th, td { border: 1px solid #ccc; padding: 8px; text-align: center; }
    th { background-color: #000; }

    .instruction {
      background-color: #000;
      border: 1px solid #ddd;
      padding: 15px;
      border-radius: 5px;
      margin-bottom: 20px;
    }
    .step {
      margin-bottom: 10px;
    }
    .step strong {
      color: #04cfa4;
    }