/* Главная АваСука Mobile — mobile-first */

:root {
  --bg:        #140f1c;
  --card:      #1f1829;
  --card-2:    #281f35;
  --line:      rgba(255, 255, 255, 0.07);
  --text:      #f6eff9;
  --muted:     #a99bb8;
  --pink:      #ff95c6;
  --grad:      linear-gradient(135deg, #ff9a8b 0%, #ff95d5 100%);
  --radius:    20px;
  --tabbar-h:  64px;
  --safe-b:    env(safe-area-inset-bottom, 0px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Шапка ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(20, 15, 28, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.topbar-logo img { height: 34px; width: auto; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}
.icon-btn img { width: 22px; height: 22px; }

/* ─── Контент ─── */
.home {
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 16px calc(var(--tabbar-h) + var(--safe-b) + 24px);
  animation: rise .45s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.lang-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
}
.lang-hint[hidden] { display: none; }
.lang-hint p { margin: 0; }
.inline-icon { display: inline; width: 14px; vertical-align: -2px; }

/* ─── Баннер ─── */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  background: var(--card);
  box-shadow: 0 18px 40px -18px rgba(255, 120, 190, 0.45);
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 15, 28, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

.title {
  margin: 20px 0 6px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

/* ─── Скачать ─── */
.download { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }

.dl {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 14px 12px 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .12s ease;
}
.dl:active { transform: scale(.98); }
.dl-icon { width: 28px; height: 28px; flex: none; }
#dlIos:not(.primary) .dl-icon { filter: invert(1); }
.dl-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dl-text b { font-size: 16px; font-weight: 800; }
.dl-text small { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }

.dl.primary {
  min-height: 72px;
  background: var(--grad);
  border: 0;
  color: #2a1029;
  box-shadow: 0 12px 28px -12px rgba(255, 140, 190, 0.8);
}
.dl.primary .dl-text small { color: rgba(42, 16, 41, 0.7); }
.dl.primary .dl-icon { filter: brightness(0) saturate(100%) invert(10%) sepia(30%) saturate(1500%) hue-rotate(280deg); }
.dl.primary .chev { stroke: #2a1029; }

.chev {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Фичи ─── */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.f-icon { font-size: 24px; line-height: 1; }
.feature b { font-size: 14px; line-height: 1.25; font-weight: 800; }

/* ─── Премиум ─── */
.premium-card {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 149, 213, 0.35), transparent 60%),
    linear-gradient(160deg, #3a2148 0%, #22172e 100%);
  border: 1px solid rgba(255, 149, 213, 0.25);
}
.premium-head { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 900; }
.premium-star {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grad);
  color: #2a1029;
  font-size: 16px;
}
.premium-card ul { margin: 12px 0 16px; padding: 0; list-style: none; }
.premium-card li {
  position: relative;
  padding: 5px 0 5px 22px;
  color: #e6d9ee;
  font-size: 14px;
  line-height: 1.35;
}
.premium-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--pink);
  font-weight: 900;
}
.premium-btn {
  display: block;
  padding: 14px;
  border-radius: 14px;
  background: var(--grad);
  color: #2a1029;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
}

/* ─── Список ─── */
.list {
  margin-top: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 700;
}
.list a + a { border-top: 1px solid var(--line); }
.list a:active { background: var(--card-2); }
.list a > span:nth-child(2) { flex: 1; }
.l-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--card-2);
  font-size: 17px;
}
.l-tg img { width: 18px; height: 18px; }

.foot {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ─── Нижняя панель ─── */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(24, 18, 33, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex;
  flex: 1;
  max-width: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.tabbar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabbar a.active { color: var(--pink); }

/* ─── Большие экраны: просто центрированная колонка ─── */
@media (min-width: 600px) {
  .title { font-size: 30px; }
  .tabbar { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border-radius: 20px 20px 0 0; border: 1px solid var(--line); }
}
