/* ================================
   RESET & BASE
================================ */
html,
body {
    touch-action: manipulation;

    overscroll-behavior: none;

    -webkit-text-size-adjust: 100%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    background: #000;

    font-family: Arial, sans-serif;

    overflow-x: hidden;
}

.app {
    overflow-y: auto;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-height: 100vh;

    position: relative;

    background: #000;
}

/* ================================
   SCREENS
================================ */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* ================================
   WELCOME SCREEN
================================ */
#welcome-screen {
    flex-direction: column;
    justify-content: flex-start;  /* равномерно: лого вверх, кнопка вниз */
    align-items: flex-start;
    padding: 150px 28px 40px;         /* контролируемые отступы */
    min-height: 100vh;

    background:
        linear-gradient(
            to right,
            rgba(3, 0, 0, 0.93) 42%,
            rgba(3, 0, 0, 0.45) 75%,
            rgba(3, 0, 0, 0.1) 100%
        ),
        url("assets/bar-bg.jpg") right center / cover no-repeat;
    background-color: #050000;
}



.logo {
    width: 180px;
    display: block;          /* меньше */
    margin: 0 0 28px 0;    /* только отступ вниз до SCAN */
    align-self: flex-start; /* прижать влево */
}
/* ================================
   STEPS
================================ */
.welcome-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-bottom: 28px;   /* отступ до кнопки */
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-icon {
      filter:
    brightness(0)
    saturate(100%)
    invert(16%)
    sepia(100%)
    saturate(7480%)
    hue-rotate(356deg)
    brightness(111%)
    contrast(130%);
  width: 62px;
  height: 62px;
  object-fit: contain;
  color: #ff1f1f;
}

.step-text h3 {
justify-content: center;
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff; 
  margin-bottom: 3px;
}

.step-text p {
  font-size: 14px;
  color: #888;
  line-height: 1.4;
}

/* ================================
   ENTER BUTTON
================================ */
.enter-btn {
    width: 100%;
    height: 62px;
    border-radius: 14px;
    border: 2px solid #cc0000;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
}

.enter-btn:hover {
  background: #cc0000;
  box-shadow: 0 0 24px rgba(204, 0, 0, 0.4);
}

.welcome-top {
    width: 100%;
}

/* =========================
   CATEGORIES SCREEN
========================= */

#categories-screen {
  min-height: 100vh;
  background: #000;
  padding: 20px;
}

.categories-header {
  position: relative;

  height: 190px;

  overflow: hidden;
}

.small-logo {
  width: 120px;
  margin-bottom: 14px;
}

.categories-banner {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 18px;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 18px;

  background: rgba(10,10,10,0.92);

  border: 1px solid #161616;
  border-radius: 22px;

  padding: 14px 18px;
  margin-bottom: 10px;

  min-height: 90px;

  transition: 0.25s;
}

.category-card:active {
  transform: scale(0.98);
}

.category-icon {
        filter:
    brightness(0)
    saturate(100%)
    invert(16%)
    sepia(100%)
    saturate(7480%)
    hue-rotate(356deg)
    brightness(111%)
    contrast(130%);
  width: 42px;
  height: 42px;
  object-fit: contain;
  color: #ff1f1f;
}

.category-info {
  flex: 1;
}

.category-info h2 {
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}

.category-info p {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: #8f8f8f;
}

.arrow {
  margin-left: auto;

  color: #d0d0d0;

  font-size: 46px;
  font-weight: 300;
}

html, body {
  overflow-x: hidden;
  overflow-y: auto;
}

.back-home {
  background: transparent;
  border: none;

  color: white;

  font-size: 18px;

  margin-bottom: 20px;

  cursor: pointer;
}

/* =========================
   HERO HEADER
========================= */

.categories-hero {

  height: 150px;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.2),
      rgba(0,0,0,0.7)
    ),

    url('assets/header.jpg');

  background-size: cover;
  background-position: center;

  border-radius: 28px;

  padding: 24px;

  margin-bottom: 24px;

  position: relative;

  overflow: hidden;
}

.hero-top {

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-logo {
 position: absolute;

  left: 24px;
  top: 24px;

  width: 140px;
}

.menu-btn {

  background: transparent;
  border: none;

  color: white;

  font-size: 36px;

  cursor: pointer;
}

