body {
  margin: 0;
  padding: 0;
  font-family: "Unbounded", sans-serif;
  font-style: normal;
  background-color: #f4f4f4;
  color: #282828;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* Верхняя панель */

  .top-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 20px 20px 0 20px;
    background: #f4f4f4;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;

    .top-bar-inner {
      display: grid;
      grid-template-columns: 1fr auto 1fr;

      .top-bar-left,
      .top-bar-right {
        display: inline-flex;
        gap: 3px;
      }

      .top-bar-title {
        margin: 0;
        font-size: 20px;
        font-weight: 500;
        line-height: 20px;
        text-align: center;
      }

      .top-bar-right {
        justify-self: end;
      }

      .icon-info,
      .icon-profile {
        background: none;
        border: none;
        padding: 0;
      }
    }
  }

  /* Контент страницы */

  .main-content {
    flex: 1;
    padding: 20px 20px 0 20px;
    box-sizing: border-box;
  }

  /* Нижняя панель */

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 74px;
    border: 1px solid #34D17B;
    border-radius: 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
    backdrop-filter: blur(4px);

    svg path {
      fill: currentColor;
    }

    .lock {
      position: relative;
      transform-origin: 50% 80%;
      animation: lock-bounce 60s ease-in-out infinite;
      animation-delay: 20s;

      &::after {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 16px;
        box-shadow: 0 0 0 0 var(--accent);
        opacity: .18;
        animation: lock-pulse 60s ease-out infinite;
        pointer-events: none;
      }
    }

    .nav-btn {
      color: #9e9e9e;

      &.active {
        scale: 1.2;
        color: #34d17b;
      }
    }
  }
}

/* Модалка */

.ad-modal.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ad-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  min-width: 400px;
  background-color: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  z-index: 999;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
  pointer-events: none;

  .ad-modal-content {
    max-width: 350px;
    margin: 0 auto;

    .close {
      float: right;
      font-size: 24px;
      cursor: pointer;
    }
  }
}

.ad-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.ad-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Модалка платного контента */
.sheet-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 95svh;
  max-height: 95vh;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .2);
  z-index: 999;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;

  .sheet-header {
    padding: 12px 16px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
  }

  .sheet-body {
    padding: 16px;
    overflow: auto;
    flex: 1;
  }

  .sheet-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 22px;
    line-height: 32px;
    cursor: pointer;
  }
}

.sheet-modal.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Баннер для скачки приложения */
.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #7EF29D 0%, #34D17B 100%);
  color: #000;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  animation: slideUp 1.5s ease;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;

  .banner-content {
    position: relative;

    .banner-button {
      margin-top: 10px;
      background-color: #fff;
      color: #4CAF50;
      border: none;
      padding: 6px 14px;
      border-radius: 6px;
      cursor: pointer;
      font-weight: bold;
      margin-left: 5px;
    }

    .banner-close {
      position: absolute;
      top: 0;
      right: 0;
      background: transparent;
      border: none;
      color: #000;
      font-size: 18px;
      cursor: pointer;
    }
  }
}

/* Анимация для install-banner */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.install-banner.slide-out {
  animation: slideDown 0.6s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Анимация для замочка: подпрыгивания + лёгкий наклон */
@keyframes lock-bounce {
  0% {
    transform: translateY(0) rotate(0);
  }
  1% {
    transform: translateY(-5px) rotate(-2deg);
  }
  2% {
    transform: translateY(0) rotate(0);
  }
  3% {
    transform: translateY(-4px) rotate(2deg);
  }
  4% {
    transform: translateY(0) rotate(0);
  }
  5% {
    transform: translateY(-3px);
  }
  6% {
    transform: translateY(0) rotate(0);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes lock-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent);
    opacity: .22;
  }
  5% {
    box-shadow: 0 0 0 14px rgba(56, 229, 142, 0);
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 229, 142, 0);
    opacity: 0;
  }
}

/* Тач-эффекты */
