/* Корневые переменные */
:root {
  --main-color: #12204D;
  --secondary-color: #12204DA6;
  --secondary-color-link: #12204DD9;
  --light-main-color: #eceffb;
  --dark-grey-h3-color: #777777;
  --black: #333333;
  --white: #ffffff;
}

/* Базовые стили */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  box-sizing: border-box;
  font-family: 'Google Sans', sans-serif;
}

/* Сброс стилей для ссылок */
a {
  text-decoration: none;
}

/* Header */
header { 
  display: flex; 
  gap: 24px; 
  align-items: center; 
  justify-content: space-between; 
  width: 100%; 
  padding: 24px; 
  font-weight: 400; 
  color: var(--dark-grey-h3-color); 
  font-size: 24px; 
  position: absolute;
  left: 0;
  top: 0; 
  background-color: transparent; 
  box-sizing: border-box; 
}

/* Логотип и иконки */
.logo-container {
  display: flex;
  align-items: center;
  gap: 24px;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
}
.logo-a {
  height: 60px;
}
.logo-a img {
  height: 60px;
}
h3 {
  font-weight: 400;
}
.icon-container {
  display: flex;
  gap: 24px;
}
.icon-container div {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}
.calendar-icon {
  width: 60px;
  background-color: var(--main-color);
  border-radius: 16px;
}
.calendar-icon a {
  width: 36px;
  height: 38px;
}
.calendar-icon img {
  width: 36px;
  height: 38px;
}

/* Кнопка и иконка меню */
#button {
  position: relative;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
}
#icon {
  position: absolute;
  top: 0;
  right: 1rem;
  left: 1rem;
  width: auto;
  height: 100%;
}
.lines,
.lines:before,
.lines:after {
  position: absolute;
  display: block;
  width: 100%;
  left: 0;
  background: #FFFFFF;
  transition: 0.3s;
}
.lines {
  height: 3px;
  margin-top: -2px;
  top: 50%;
}
.lines:before,
.lines:after {
  content: '';
  height: 93%;
  transform-origin: 5rem center;
}
.lines:before {
  top: 8px;
}
.lines:after {
  top: -8px;
}
.close {
  transform: scale3d(0.8, 0.8, 0.8);
}
.close .lines {
  background: transparent;
}
.close .lines:before,
.close .lines:after {
  top: 0;
  transform-origin: 50% 50%;
}
.close .lines:before {
  transform: rotate3d(0, 0, 1, 45deg);
}
.close .lines:after {
  transform: rotate3d(0, 0, 1, -45deg);
}

/* Меню */
.menu-icon {
  width: 60px;
  background-color: var(--main-color);
  border-radius: 16px;
  z-index: 9999;
}
.menu {
  display: grid;
  grid-template-rows: 64px 80px 80px 80px 80px 80px 80px;
  border: 2px solid var(--main-color);
  border-radius: 16px;
  position: fixed;
  top: 36px;
  right: -405px;
  width: 400px;
  height: calc(480px + 64px);
  background-color: var(--main-color);
  transition: right 0.3s ease;
  z-index: 9998;
}
.menu-title {
  width: 100%;
  height: 64px;
  color: var(--main-color);
  font-size: 24px;
}
.menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.959);
  padding: 0 24px;
  font-size: 32px;
}
.menu a:hover {
  text-decoration: none;
  box-sizing: border-box;
  color: var(--main-color);
  background-color: rgb(255, 255, 255);
  padding: 0 24px;
  transition: 0.05s;
}
.menu a:last-child:hover {
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
}
.menu.active {
  right: 24px;
}

/* Меню пользователя*/
.nav {
  display: flex;
  justify-content: center;
  max-width: 225px;
  height: 60px;
  color: #ffffff;
  z-index: 9997;
}

.nav [type="checkbox"] {
  position: absolute;
  left: -9999px;
}

.nav [type="checkbox"] + label {
  width: 225px;
  height: 60px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  cursor: pointer;
  z-index: 1;
  background: var(--main-color);
  border-radius: 16px;
  transition: all 0.2s;
}

.nav-user-photo {
    width: 60px;
    height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;


}

.nav-user-photo img {
    width: 50px;
    height: 50px;
    /* border: 1px solid var(--white); */
        border-radius: 12px;
    object-fit: cover;
}

.nav-user-name {
    width: 165px !important; 
    height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.nav [type="checkbox"] + label:hover {
  background: var(--main-color);
}
.user-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.user-menu li {
  position: absolute;
  top: 45px;
  transform: translateX(-220px);
  transition: ease-in-out 0.5s;

  height: 50px;

  display: flex;
  justify-content: space-between;
}

.user-menu li:nth-child(1) {
  transition-delay: 0.2s;
}

.user-menu li:nth-child(2) {
  transition-delay: 0.15s;
}

.user-menu li a {
  width: 215px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--light-main-color);
  border-radius: 12px;

  color: inherit;
  text-decoration: none;
}
li .user-menu-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

li .user-menu-icon img {
    width: 30px;
    height: 30px;
}

li .user-menu-text {
  width: 165px;
  height: 50px;

  display: flex;
  justify-content: center;
  align-items: center;
}
li .user-menu-text span{
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--black);
  font-weight: bold;
  text-align: center;
}

/* .nav input:checked + label {
  transform: translateY(calc(-10% + 4px));
} */

.nav input:checked ~ .user-menu li:nth-child(1) {
  top: 110px;
  transition-delay: 0.2s;
}

.nav input:checked ~ .user-menu li:nth-child(2) {
  top: 170px;
  transition-delay: 0.1s;
}

.nav input:checked ~ .user-menu li a span {
  opacity: 1;
  transition-delay: 0.3s;
}

.log-button {
  width: 225px;
  height: 60px;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--main-color);
  color: #ffffff;

  border-radius: 16px;
}
.log-button {
  width: 180px;

  display: flex;
  justify-content: center;
  align-items: center;

  text-decoration: none;
  text-align: center;

  font-size: 20px;
}

/* Footer */
.footer {
  height: 50px;
  background-color: var(--main-color);
  color: #fff;
  text-align: center;
  padding: 20px 0 40px;
  font-size: 24px;
}