html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #f8fafd;
}
body {
  min-height: 100vh;
  min-width: 100vw;
  overflow: hidden;
}
.admin-btn {
  display: inline-block;
  margin-top: 9px;
  padding: 7px 18px;
  font-size: 1.04rem;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(90deg,#3966ed,#367be2 90%);
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 2px 10px #b6cfff18;
  transition: background .15s;
  border: none;
}
.admin-btn:active, .admin-btn:hover {
  background: #25479a;
  color: #fff !important;
}
/* Главный контейнер */
.tgapp-container {
  height: 100vh;
  width: 100vw;
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 30px rgba(60, 100, 190, 0.10);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.profile-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0 10px 0;
}
.profile-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 16px;
  background: #e0e4ec;
  box-shadow: 0 4px 18px #bcd6ff30;
  display: block;
}

/* Контент прокручивается внутри .page-content */
.page-content {
  flex: 1 1 auto;
  overflow-y: auto;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 0 0 90px 0; /* Отступ под меню! */
}

/* Фиксированное нижнее меню */
.bottom-menu-inblock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-around;
  background: #f8fafd;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 32px #e7edfa;
  margin: 0 auto;
  padding: 8px 0 6px 0;
  width: 100vw;
  max-width: 430px;
  z-index: 33;
  gap: 2px;
  left: 50%;
  transform: translateX(-50%);
}
.bottom-menu-inblock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0px;
  color: #3c5dd1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 8px 0 4px 0;
  border-radius: 13px;
  background: none;
  transition: background .13s, color .13s;
  gap: 1px;
  min-width: 48px;
}
.bottom-menu-inblock a.active, .bottom-menu-inblock a:active {
  background: #e4eeff;
  color: #25479a;
}
.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  margin-bottom: 1px;
}
.menu-icon svg {
  display: block;
}

/* Универсальный заголовок для разделов */
.section-title {
  text-align: center;
  font-size: 1.18rem;
  color: #25479a;
  font-weight: 700;
  margin: 16px 0 16px 0;
  letter-spacing: 0.01em;
}

.form-block {
  background: #f8fafd;
  border-radius: 16px;
  box-shadow: 0 2px 10px #e7eefd18;
  padding: 16px 10px 14px 10px;
  margin: 0 0 16px 0;
  width: 100%;
  box-sizing: border-box;
}
.form-block label {
  display: block;
  font-size: 1.03rem;
  color: #25479a;
  margin-bottom: 7px;
  margin-top: 13px;
  font-weight: 500;
}
.form-block input,
.form-block select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1.5px solid #e1eafd;
  font-size: 1.07rem;
  margin-bottom: 8px;
  margin-top: 2px;
  background: #fff;
  transition: border .14s;
}
.form-block input:focus,
.form-block select:focus {
  border-color: #3966ed;
  outline: none;
}
.btn-main {
  width: 100%;
  background: linear-gradient(90deg,#3966ed,#367be2 90%);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 11px;
  padding: 13px 0;
  box-shadow: 0 3px 14px #3966ed24;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 0;
  transition: background .2s;
}
.btn-main:active { background: #25479a; }

@media (max-width: 500px) {
  .tgapp-container { max-width: 100vw; border-radius: 0; box-shadow: none; }
  .bottom-menu-inblock { width: 100vw; }
}
