*{box-sizing:border-box;}
body {
    font-family: sans-serif;
    margin: 0;
    min-height: 100vh;
    background: var(--tg-theme-bg-color, #212327);
    color: var(--tg-theme-text-color, #fff);
    transition: background 0.3s, color 0.3s;
}
#app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2em 1em 1em 1em;
}
#user-info { margin-top: 1em; }

.tg-buttons-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 20px 0 0 0;
}

.btn-1-3 { grid-column: span 2; }
.btn-1-2 { grid-column: span 3; }
.btn-1   { grid-column: 1 / -1; } /* На всю ширину */

.tg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--tg-theme-button-color, #232c38);
    color: var(--tg-theme-button-text-color, #fff);
    box-shadow: none;
    margin: 0;
    padding: 0 8px;
    cursor: pointer;
    transition: background 0.15s;
    outline: none;
}
.tg-btn:active,
.tg-btn.active {
    background: var(--tg-theme-secondary-bg-color, #2f3d51);
}

.tg-btn-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* padding-left сюда не задаём */
}

.tg-btn-icon {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tg-btn-text {
  padding-left: 0.6em; /* отступ между иконкой и текстом */
  white-space: nowrap;
  display: inline-block;
  text-decoration:none;
}

#contacts-content { padding:20px 0;display:flex;flex-direction:column;gap:8px; }

.scroll-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(80,50,150,0.15);
    padding: 0;
    background: var(--tg-theme-button-color, #a773d2);
    color: var(--tg-theme-button-text-color, #fff);
    opacity: 0.93;
    transition: opacity 0.25s, visibility 0.25s;
}
.scroll-top-btn[hidden], .scroll-top-btn[style*="display: none"] {
    pointer-events: none;
    opacity: 0;
}

/*кнопки секции контакты*/
.contact-icon {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  border-radius: 50%;
  background: transparent;
  display: inline-block;
}


