html,
body {
  font-family: Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start; 
  z-index: 0;
  width: 100%;
  background-color: var(--body-color);
}

.abstract {
  position: fixed;
  z-index: 0;
}

.abstract--max-shape-1 {
  top: 0;
  left: 0;
  width: 8%;
  height: 65vh;
  clip-path: polygon(0 0, 0 100%, 100% 0);
  background: var(--abstract-max-shape-1-color);
}

.abstract--max-shape-2 {
  left: 0;
  width: 100%;
  bottom: 0;
  height: 29vh;
  clip-path: polygon(0 70%, 0 100%, 100% 100%, 100% 0%);
  background: var(--abstract-max-shape-2-color);
}

.abstract--mini-shape-1 {
  top: 0;
  left: 0;
  width: 25vw;
  height: 100vh;
  clip-path: polygon(0 0, 0 100%, 38% 100%, 75% 0);
  background-color: var(--abstract-mini-shape-1-color);
}

.abstract--mini-shape-2 {
  bottom: 6vh;
  left: 0;
  width: 100%;
  height: 65vh;
  clip-path: polygon(0 50%, 0 72%, 100% 70%, 100% 12%);
  background-color: var(--abstract-mini-shape-2-color);
}

.window,
.window-mini,
.window-app {
  font-size: var(--font-size-def);
  display: inline-block;
  position: relative;
  background-color: var(--content-bg-color);
  box-sizing: border-box;
  z-index: 1;
  overflow: hidden;
}

.window {
  width: var(--width-main-container);
  padding: 0 var(--pad-lr-window) var(--pad-lr-window) var(--pad-lr-window);
  height: auto;
  min-height: calc(100% - var(--height-header-bar) - var(--height-nav-bar) + 1rem);
}

.window-mini {
  position: absolute;
  padding: 0 calc(var(--pad-lr-window) * 2) calc(var(--pad-lr-window) * 2) calc(var(--pad-lr-window) * 2);
  width: auto;
  top: 50%;
  transform: translateY(-50%);
}

.window-app {
  width: var(--width-main-container);
  min-height: 100vh;
  height: auto;
  /* padding: 0 var(--pad-lr-window); */
  padding: calc(1.5rem * 3 + 2.3rem) var(--pad-lr-window) 0 var(--pad-lr-window);
}

.grecaptcha-badge {
  z-index: 1 !important;
}

.page-header {
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.1rem solid var(--hr-color);
  margin-bottom: 1.5rem;
  background-color: var(--content-bg-color);
  box-sizing: border-box;
}

.window-app .page-header {
  position: fixed;
  top: 0;
  z-index: 4;
  width: calc(var(--width-main-container) - 2 * var(--pad-lr-window));
}

.page-header h3,
.page-header h1 {
  display: inline-block;
}

.page-header h3 {
  margin: 1.5rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  user-select: none;
  line-height: 1;
  font-weight: 500;
}

h1,
h2,
h3,
h4,
.alert-header,
.confirm-header {
  color: var(--h-color);
  
}

h1 {
  font-size: 2.3rem; /* 2.4rem */
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin-top: 1.5rem;
}

h3,
.alert-header,
.confirm-header {
  font-size: 2.1rem;
}

h4,
h5,
#header-input-chat-mn {
  font-size: 1.8rem;
}

h6 {
  font-size: var(--font-size-def);
  font-weight: 600;
}

h2,
h3,
h4,
h5,
h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

p {
  margin: 0 0 1rem;
}

.btn-scroll {
  --width: 4rem;
  width: var(--width);
  position: fixed;
  bottom: var(--pad-lr-window);
  background-color: var(--btn-scroll-bg-color);
  color: var(--btn-scroll-color);
  z-index: 10;
  left: calc(((100vw - var(--width-main-container)) / 2) + var(--width-main-container) + 1.5rem);
  box-sizing: content-box;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  border-radius: calc(var(--width) / 2);
}

.btn-scroll > div {
  --size: 3rem;
  height: var(--size);
  width: var(--size);
  border-radius: calc(var(--size) / 2);
  font-size: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-bar-wide .btn-account,
.top-bar-mobile .btn-account {
  background-color: var(--color-black-300);
  color: white;
}

.top-bar-wide .btn-account {
  --size: 3.5rem;
  height: var(--size); 
  width: var(--size);
  min-width: var(--size);
  border-radius: calc(var(--size) / 2);
  font-size: 1.7rem;
}

.top-bar-mobile .btn-account {
  height: var(--height-btn-round); 
  width: var(--height-btn-round);
  min-width: var(--height-btn-round);
  border-radius: calc(var(--height-btn-round) / 2);
  font-size: 2.1rem;
}

.top-bar-wide {
  width: 100%;
  background-color: var(--color-black-600);
  font-size: var(--font-size-def);
  z-index: 3;
}

.top-bar-wide .header {
  display: flex;
  width: 100%;
  height: var(--height-header-bar);
  justify-content: center;
  clip-path: polygon(0 0, 0 35%, 100% 100%, 100% 0);
  background-color: var(--color-black-500);
}

.top-bar-wide .menu {
  display: flex;
  width: 100%;
  background-color: var(--color-black-600);
  height: var(--height-nav-bar);
  justify-content: center;
  margin-top: -1rem;
}

.top-bar-wide .content {
  width: 100%;
  max-width: var(--width-main-container);
  padding: 0 1.5rem 0 0;
  box-sizing: border-box;
}

.top-bar-wide .header .content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 1rem;
}

.top-bar-wide .header .right {
  display: flex;
  justify-content: flex-end;
}

.top-bar-wide .header a,
.top-bar-mobile .header a {
  display: inline-block;
  padding: 0 0.75rem;
  color: var(--color-orange-400);
  user-select: none;
}

.top-bar-wide .header a {
  --size: 3.2rem;
  line-height: var(--size);
  height: var(--size);
  padding: 0 1.5rem;
  clip-path: polygon(0.6rem 0, 0 100%, calc(100% - 0.6rem) 100%, 100% 0);
}

.top-bar-mobile .header a {
  --size: 3.5rem;
  line-height: var(--size);
  height: var(--size);
}

.top-bar-wide .menu .content {
  display: flex;
  justify-content: space-between;
}

.top-bar-wide .menu .right {
  display: flex;
  justify-content: flex-end;
  position: relative;
}

#account-menu {
  top: 1rem;
  right: 0;
}

.top-bar-wide .iteam {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-black-600);
  height: 100%;
  padding: 0 1.5rem 0.5rem 1.5rem;
  text-align: center;
  font-size: var(--font-size-def);
  color: white;
  cursor: pointer;
  letter-spacing: 0.15rem;
  box-sizing: border-box;
  user-select: none;
  clip-path: polygon(0.7rem 0, 0 100%, 0.7rem 100%, 100% 100%, calc(100% - 0.7rem) 0);
}

.top-bar-wide .iteam.selected {
  color: var(--color-orange-400);
}

.top-bar-wide .social {
  display: inline-flex;
  gap: 1rem;
  /* padding-right: 1rem; */
}

.top-bar-wide .social a,
.top-bar-mobile .social a {
  display: inline-flex;
  cursor: pointer;
  font-size: 2.5rem;
  align-items: center;
  color: var(--color-gray-700);
}

.top-bar-mobile .social a {
  font-size: 3rem;
}

.top-bar-mobile {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
}

.top-bar-mobile .content {
  background-color: var(--color-black-600);
  font-size: var(--font-size-def);
  z-index: 4;
  position: fixed;
  width: 100%;
}

.background-top-bar-mobile {
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  position: fixed;
  background-color: rgba(0, 0, 0, var(--modal-opacity));
  backdrop-filter: blur(0.4rem);
  -webkit-backdrop-filter: blur(0.4rem);
}

.top-bar-mobile .block-account {
  background-color: var(--color-black-500);
  padding: 1.5rem 1.5rem 3rem 1.5rem;
  clip-path: polygon(0 0, 0 calc(100% - 2rem), 100% 100%, 100% 0);
}

.top-bar-mobile .account {
  padding-top: 1.5rem;
  color: var(--color-gray-700);
}

.top-bar-mobile .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-mobile .header .left {
  position: relative;
  left: -0.75rem;
}

.top-bar-mobile .iteam {
  height: var(--height-btn-round);
  line-height: var(--height-btn-round);
  display: inline-block;
  min-width: 40%;
  user-select: none;
  padding: 0 0.75rem;
  position: relative;
  left: -0.75rem;
}

.top-bar-mobile .menu {
  padding: 0 1.5rem;
}

.top-bar-mobile .menu .iteam {
  color: white;
  font-size: 1.8rem;
}

.top-bar-mobile .social {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: -1rem;
}

@media (max-width: 500px), /* стили для смартфонов */
(min-width: 501px) and (max-width: 1366px) { /* стили для планшетов */

  :root {
    --pad-lr-window: 1.5rem;
  }
    
  .top-bar-wide .content,
  .window,
  .window-app {
    width: 100vw;
    max-width: 100vw;
  }
  
  .btn-scroll {
    display: none;
  }

  body > .abstract {
    display: none;
  }
  
  .window-app .page-header {
    width: calc(100% - 2 * var(--pad-lr-window));
  }
  
}

@media (max-width: 500px), (max-height: 500px) { /* стили для смартфонов */
  
  :root {
    --font-size-def: 1.55rem;
    --small-font-size: 1.2rem;
  }
  
  .window-mini {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    top: 0;
    transform: translateY(0);
    padding: calc(1.5rem * 3 + 2.3rem) var(--pad-lr-window) 0 var(--pad-lr-window);
  }
  
  .window {
    padding: calc(1.5rem * 3 + 2.3rem) var(--pad-lr-window) 0 var(--pad-lr-window);
  }
  
  .page-header {
    position: fixed;
    top: 0;
    z-index: 4;
    width: calc(100% - 2 * var(--pad-lr-window));
  }
  
  html,
  body {
    background-color: var(--content-bg-color);
  }
  
  body::before,
  body::after,
  .top-bar-wide {
    display: none;
  }
       
}

@media (min-width: 501px) and (max-width: 1366px) { /* стили для планшетов */
    
  .top-bar-wide .header {
    clip-path: polygon(0 0, 0 55%, 100% 100%, 100% 0);
  }
  
}

@media (hover: hover) and (pointer: fine) {
  
  .top-bar-wide .header a:hover {
    background-color: var(--color-black-400);
  }
  
  .top-bar-wide .iteam:hover {
    background-color: var(--color-black-500);
  }
  
  .top-bar-wide .social a:hover {
    color: var(--color-gray-800);
  }
  
  .btn-scroll > div:hover {
    background-color: var(--btn-scroll-hov-color);
  }
  
  .btn-account:hover {
    background-color: var(--color-black-400);
  }
  
}