:root {
  --bg-color: #01213F;
  --menu-bg: #003060;
  --text-color: white;
  --hover-bg: rgba(255,255,255,0.1);
  --hover-text: white;
}

html, body {						/* html,  */
  margin: 0;
  font-family: sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  height: 100%;						/* added - Важно для работы flex */  
}

.wrapper {
    display: flex; 				/* Включаем Flexbox */
    flex-direction: column; 	/* Располагаем элементы вертикально */
    min-height: 100vh;			 /* Минимальная высота контейнера равна высоте видимой области */
}

header {					/* header, footer */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2%;
  background-color: var(--menu-bg);
  color: var(--text-color);
  height: 180px;					/* последнее (общее) было height: 150px; */
}

footer {						/* и тут он опять разделил хидер с футером :( а там ви... */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2%;
  background-color: var(--menu-bg);
  color: var(--text-color);
  height: 200px;
}

.header-left {							/* .header-left, .header-right */
  width: 15%;							/* 15% */
}

/* надо же, до чего докатился костЫлевский */

.footer-left, .footer-right {			/* added */
  width: 25%;
}

.header-center {						/* added */
  width: 70%;
  text-align: center;
}

.footer-center {						/* added */
  width: 50%;
  text-align: center;
}

.nav-container {
  position: relative;
  width: 100%;
}

.burger-checkbox {
  position: absolute;
  visibility: hidden;
}

.burger {
  position: relative;
  z-index: 2;
  cursor: pointer;
  display: block;
  top: 10px;
  left: 10px;
  background: transparent;
  width: 32px;
  height: 26px;
}

.menu-toggle:hover {
  outline: 2px solid white;
  outline-offset: 11px;
  border-radius: 1px;
}

.burger::before,
.burger::after {
  content: '';
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: #fff;
}

.burger::before {
  top: 0;
  box-shadow: 0 11px 0 #fff;
  transition: box-shadow .3s .15s, top .3s .15s, transform .3s;
}

.burger::after {
  bottom: 0;
  transition: bottom .3s .15s, transform .3s;
}

.burger-checkbox:checked + .burger::before {
  top: 11px;
  transform: rotate(45deg);
  box-shadow: 0 6px 0 rgba(0,0,0,0);
  transition: box-shadow .15s, top .3s, transform .3s .15s;
}

.burger-checkbox:checked + .burger::after {
  bottom: 11px;
  transform: rotate(-45deg);
  transition: bottom .3s, transform .2s .15s;
}

.menu-list {
  position: absolute;				/* fixed - будет разъезжаться с гамбургером */
  top: -10vh;						/* 0; костыль, чтоб поднять -9vh; */
  left: -2vw;						/* 0; костыль, сдвинул влево */
  width: 100vw;						/* 100vw или 100vmin - кто более матери-истории ценен? (гориз.скролл) */
  height: 120vmax;					/* 100vh */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  background-color: var(--menu-bg);
  z-index: 1;
  padding: 62px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  pointer-events: none;
  opacity: 0;    
}

.burger-checkbox:checked ~ .menu-list {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease;
}

.menu-item {
  font-size: 18px;
  padding: 6px 12px;
  cursor: pointer;
}

.menu-item-none {
  font-size: 18px;
  font-weight: 600;  
  padding: 6px 12px;
  cursor: none;
}

.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  flex-direction: column;
  background-color: var(--menu-bg);
  padding-left: 16px;
  margin-top: 4px;
}

.submenu li a {
  padding: 4px 8px;
  font-size: 16px;
  color: var(--text-color);
  text-decoration: none;
}

.submenu li a:hover {
  background-color: var(--hover-bg);
}

.back-to-top {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu-list a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list .menu-item a {
  color: var(--text-color) !important;
  text-decoration: none;
}

.menu-item:hover {
  background-color: var(--hover-bg);
}

@media (min-width: 360px) {
.header-right {
  width: 2vw;
   }
}

/* Размер шрифта для средних экранов */
@media (min-width: 768px) {
.header-right {
  width: 8vw;
   }
}

/* Размер шрифта для больших экранов */
@media (min-width: 1200px) {
.header-right {
  width: 10vw;
    }
}
