* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
	/* Однородный цвет фона */
    background-color: #091023;
    /* Наложенная картинка */
    background-image: url("images/b1116.png");
    background-position: center 0px; /* Позиция картинки по центру */
    background-size: 600px; /* Растягиваем картинку на весь фон */
    background-repeat: no-repeat; /* Запрещаем повторение картинки */
    font-family: "Inter", sans-serif;
    color: white;
}


nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #3C4345;
    background-color: #0B1416;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    gap: 10px;
}

ol {
    padding-left: 14px;
}

 hr {
    border: none; /* Убираем границу */
    background-color: red; /* Цвет линии */
    color: red; /* Цвет линии для IE6-7 */
    height: 2px; /* Толщина линии */
}

a {
    color: white;
	text-decoration: none;
}

.login {cursor: pointer;}


.container {
    max-width: 598px;
    padding: 0px 10px;
    margin: 10px auto 40px auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.container img {
    max-width: 100%;
    height: auto;
}

.menu {
    position: fixed;
    left: 0;
    top: 71px;
    padding-right: 10px;
    border-right: 1px solid #3C4345;
    background-color: #1e2333;
    height: 100%;
}

.logo {
    display: block; /* Блочный элемент (для старых браузеров) */
    text-align: center; /* Выравнивание по центру */
    margin-top: 5px; /* Отступ сверху */
    margin-bottom: 5px; /* Отступ снизу */
   }

.back {max-width: 260px !important;}

.sidebar {
    position: absolute;
    right: -285px;
    top: 0;
}

h1 {
    font-weight: 800;
    font-size: 23px;
    line-height: 25px;
	text-align: center; /* Выравнивание текста по центру */
}

h2 {
    font-weight: 700;
    font-size: 20px;
    line-height: 25px;
	text-align: center; /* Выравнивание текста по центру */
}

p,
ol li {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
}

k {
    font-weight: 400;
    font-size: 17px;
    line-height: 221px;
	text-align: center; /* Выравнивание текста по центру */
}

button {
    outline: none;
    border: none;
    border-radius: 1000px;
    padding: 12px 40px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    background-color: #3789e1;
    cursor: pointer;
    max-width: 500px;
    margin: 0 auto;
}

button:hover {
    background-color: #3ebf9f;
}

.btn {
  display: inline-block;
  margin: 0 auto;
  padding: 12px 40px;
  background-color: #3789e1;
  color: white;
  font-size: 17px;
  font-weight: 600;
  border-radius: 1000px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #2f76c2;
}


.register {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 40px;
    background: linear-gradient(#0b1938, #123474);
    border-radius: 20px;

}

.register-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blue {
    font-size: 27px;
    line-height: 31px;
    font-weight: 900;
    color: #53a6ff;
}

.linka {
    font-size: 17px;
    line-height: 20px;
    font-weight: 600;
    color: #53a6ff;
}

.comments {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 40px;
}

.comment-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar img {
    max-width: 100% !important;
    height: auto;
}

.questions-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.questions-title h3 {
    font-weight: 700;
    font-size: 0.75rem;
}

.questions-title span {
    font-size: 0.75rem;
    color: #576F76;
}

.question-controls {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.question-controls span {
    font-weight: 400;
    font-size: 12px;
}

.question-controls span,
.question-controls img {
    cursor: pointer;
}

.ml-20 {
    margin-left: 20px;
}

.ml-40 {
    margin-left: 40px;
}

.comments img {
    max-width: 320px;
}

.rotating-words {
  display: inline-block;
  height: 1.6em;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
  padding-top: 0.1em;
  padding-bottom: 0.1em;
}

.rotating-words .word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-100%); /* Начинает сверху */
  transition: opacity 0.5s ease, transform 0.5s ease;
  color: #71b6ff; /* Цвет */
}

.rotating-words .word.active {
  opacity: 1;
  transform: translateY(0%);
  position: relative;
}

.rotating-words .word.out {
  opacity: 0;
  transform: translateY(100%); /* Уходит вниз */
  position: absolute;
}


.burger-menu {
    display: none;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
    z-index: 11;
    padding: 6px;
    border-radius: 6px;
    margin-right: 20px;
}

.burger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 60%;
    background: white;
    opacity: 1;
    left: 7px;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger-menu span:nth-child(1) {
    top: 10px;
    transform-origin: left center;
}

.burger-menu span:nth-child(2) {
    top: 17px;
    transform-origin: left center;
}

.burger-menu span:nth-child(3) {
    top: 24px;
    transform-origin: left center;
}

.search {
    background-color: #1A282D;
    border-radius: 100px;
    padding: 10px;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search span {
    color: #82959B;
    font-size: 10px;
    font-weight: 400;
}

.logo-2 {
    display: none;
} 

@media (max-width: 1200px) {
    .menu {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .container {
        max-width: calc(100% - 284px);
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .container {
        max-width: 100%;
    }
    
    .sidebar {display: none;}
}

@media (max-width: 760px) {
    .login,
    .logo {display: none;}

    .logo-2 {
        display: block;
    }    
}

@media (max-width: 460px) {
    .search img{
        display: none;
    }
}

