/* ============================================================
   1.css — 1.html (Главная) — чисто, без Tailwind
   ============================================================ */

/* ─────────────────────────────────────────
 * Скроллбар body
 * ───────────────────────────────────────── */
body::-webkit-scrollbar {
  width: 6px;
}

body::-webkit-scrollbar-track {
  background: #0d0d0e;
}

body::-webkit-scrollbar-thumb {
  background: #3a3a3c;
  border-radius: 6px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  background: #000;
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, p { margin: 0; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a { color: inherit; text-decoration: none; }

.hidden { display: none !important; }

/* dynamic paddings for fixed chrome */
:root{
  --header-h: 270px;
  --bottom-h: 76px;
}

.page-home{
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
}

/* Brand */
.mb-gradient{
  background-image: linear-gradient(90deg, #f27e02, #454447);
  display: inline-block;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.header-gradient { background: linear-gradient(to top, #151517, #2f2f32); }
.bottom-gradient { background: linear-gradient(to bottom, #151517, #2f2f32); }

/* Header */
.home-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: #000;
  padding-top: env(safe-area-inset-top);
}

.home-header-pad{
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 12px;
}

.home-hero{
  border-radius: 15px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-logo{
  width: 80px;
  max-height: 80px;
  height: auto;
  opacity: 1;
  margin-bottom: 8px;
  user-select: none;
  transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
}

.home-title{
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-subtitle{
  margin-top: 10px;
  font-size: 14px;
  line-height: 17px;
  color: #9ca3af;
  font-weight: 500;
}

/* Shrink header */
.shrink-header{
  transition:
    padding 0.0s ease,
    transform 0.5s ease,
    border-radius 0.5s ease,
    background 0.5s ease;
  transform-origin: top center;
}

.shrink-header.shrink-header--compact{
  padding: 4px 0 !important;
  transform: scale(0.75) translateY(-6px);
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.shrink-header--compact .home-logo{
  opacity: 0;
  max-height: 0;
  margin: 0;
}

.shrink-header--compact .home-subtitle{
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
}

/* tweak */
.shrink-header.shrink-header--compact .home-title{
  font-size: 1.9rem;
  line-height: 2.2rem;
}

/* Tabs */
.home-tabs-wrap{
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 12px;
  padding-bottom: 6px;
}

.home-tabs{
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px -4px rgba(0,0,0,0.35);
}

.home-nav-btn{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  color: rgba(255,255,255,0.70);
  transition: 0.2s;
}

.home-nav-btn.is-active{
  background: rgba(255,255,255,0.15);
  box-shadow: 0 4px 16px -4px rgba(0,0,0,0.45);
  color: #fff;
}

/* Main */
.home-main{
  padding-left: 16px;
  padding-right: 16px;
}

.home-sections{
  margin-bottom: 40px;
}

.home-section{ margin-top: 8px; }
.home-section > * + * { margin-top: 24px; }
.home-section-compact > * + * { margin-top: 16px; }

.home-divider{
  width: 95%;
  height: 1px;
  margin: 6px auto 18px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

/* Card */
.card-glass{
  border-radius: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px -6px rgba(0,0,0,0.40);
}

.card-title{
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.text-body{
  font-size: 14px;
  line-height: 20px;
  color: #d1d5db;
}

.text-muted{
  font-size: 14px;
  line-height: 20px;
  color: #9ca3af;
}

.text-strong{
  color: #fff;
  font-weight: 500;
}

.text-strong-muted{
  color: #e5e7eb;
  font-weight: 600;
}

.mb-8{ margin-bottom: 8px; }
.mb-12{ margin-bottom: 12px; }
.mb-16{ margin-bottom: 16px; }

/* Lists */
.list-gap > * + * { margin-top: 8px; }

.list-item{
  display: flex;
  gap: 8px;
}

.list-bullet{
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.40);
}

/* Buttons FAQ*/
.btn-primary {
  width: 100%;
  padding: 12px 0;
  border-radius: 9999px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0A84FF;
  color: #fff;
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.45);
  transition: 0.2s;
}

.btn-primary:hover {
  background: #0a78e0;
}

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

.btn-secondary {
  margin-top: 10px;
  width: 100%;
  padding: 12px 0;
  border-radius: 9999px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f3f4f6;
  transition: 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
}

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

/* Bottom nav */
.bottom-nav{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  border-top: 1px solid #1f2937;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding-top: 8px;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
}

.bottom-row{
  display: flex;
  justify-content: space-around;
}

.bottom-link{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 12px;
  color: #6b7280;
}

.bottom-link:hover{ color: #d1d5db; }
.bottom-link.is-active{ color: #ff9f0a; }

.bottom-link i{
  font-size: 20px;
  line-height: 1;
}

.bottom-link span{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
}
