/* Публичный сайт PlumNet внутри SPA (/app/) */

body.public-site-active {
  overflow-x: hidden;
  overflow-y: auto;
  background: #220022;
  --header-height: 60px;
  --public-header-height: 60px;
  --public-main-gap: 40px;
  --footer-bg: #330033;
}

/* Legacy page CSS вешает padding/height на body — в SPA layout на .public-site */
body.public-site-active.index-body,
body.public-site-active.contacts-body,
body.public-site-active.desktop-body,
body.public-site-active.privacy-body,
body.public-site-active.terms-body,
body.public-site-active.updates-body {
  padding: 0 !important;
  height: auto !important;
  min-height: 100%;
}

body.public-site-active .line2 {
  position: relative !important;
  bottom: auto !important;
  margin-top: 0 !important;
}

.public-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #220022;
}

.public-site__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding-top: var(--public-header-height);
  padding-bottom: var(--public-main-gap);
}

.public-site__main--embed {
  padding-bottom: 16px;
}

/* Header — полные стили (index.css не дублирует .line, а :root SPA даёт 50px) */
.public-site .line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--public-header-height);
  background-color: #330033;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  padding-left: 10px;
  z-index: 100;
  box-sizing: border-box;
}

.public-site .line .logotext {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.public-site .line img {
  width: 50px;
  flex-shrink: 0;
}

.public-site .texttop {
  color: #fff;
  margin-left: 10px;
  font-size: 32px;
  white-space: nowrap;
}

.public-site .line2 {
  flex-shrink: 0;
  width: 100%;
  background-color: #330033;
}

/* Главная: контент по центру по вертикали при малом объёме */
.public-site__main--home {
  justify-content: center;
  min-height: 0;
}

body.public-site-active .index-content {
  min-height: 0;
  flex: 0 1 auto;
}

.site-embed-frame {
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

@media (max-width: 768px) {
  body.public-site-active {
    --public-main-gap: 32px;
  }

  .public-site .texttop {
    font-size: 28px;
  }
}
