.page-body {
  background-color: #fafafa;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
* {
  margin: 0;
  padding: 0;
}
.page {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.page-body--header {
  width: 90vw;
  margin: 0 auto;
  background-color: #F7CE28;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
}
.page-body--header img {
  width: 80px;
  display: block;
  padding: 10px 0 10px 0;
}
.nav-wrapper-index {
  width: 100%;
  order: 4;
  background: #F7CE28;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 99;
}
.nav-wrapper-index.active {
  max-height: 90vh;
}
.nav-list-index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nav-list-index li {
  font-family: 'Oswald', 'Arial', sans-serif;
  font-size: 20px;
  border-bottom: 1px solid #000000;
  width: 100%;
}
.nav-list-index li:last-child {
  border-bottom: none;
}
.nav-list-index a {
  display: block;
  padding: 15px;
}
.nav-list-index a:hover {
  color: #000000;
  background-color: #e8bf1b;
}
.nav-list-index a.active {
  color: #000000;
  background-color: #e8bf1b;
}
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #F7CE28;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.compact-header {
  display: none;
}
@media (min-width: 768px) {
  .main-header {
    position: relative;
  }
  .page-body--header img {
    width: 20vw;
    margin: 0 auto;
    display: block;
    max-width: 300px;
    padding: 10px 0 0 0;
  }
  .compact-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #F7CE28;
    z-index: 1000;
    transform: translateY(-100%);
    /* скрыт за верхним краем */
    transition: transform 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  }
  .compact-header.visible {
    transform: translateY(0);
    transition-delay: 0.1s;
  }
  .compact-header .page-body--header {
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    max-width: 1100px;
  }
  .compact-header img {
    display: flex;
    width: 90px;
    margin: 0;
    padding: 0;
  }
  .compact-header .nav-wrapper-index {
    width: auto;
    display: flex;
    justify-content: flex-end;
  }
  .compact-header .nav-list-index {
    display: flex;
    justify-content: flex-end;
  }
  .compact-header .nav-list-index a {
    color: black;
    padding: 20px 15px;
    transition: all 0.3s ease;
  }
  .nav-wrapper-index {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    order: 2 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transition: none !important;
    display: flex;
    justify-content: center;
  }
  .nav-list-index {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: nowrap;
  }
  .nav-list-index a {
    color: black;
    padding: 23px 20px 23px 20px;
    transition: all 0.3s ease;
    position: relative;
  }
  .nav-list-index li {
    font-size: 16px;
    border-bottom: none;
  }
  .nav-list-index a:hover {
    background-color: #F7CE28;
  }
  .nav-list-index a.active {
    color: #000000;
    background-color: #F7CE28;
  }
  .nav-list-index a::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    right: 50%;
    height: 0;
    border-top: 2px solid black;
    background: black;
    transition: all 0.3s ease;
    transform: translateY(-50%);
  }
  .nav-list-index a::after {
    content: '';
    position: absolute;
    bottom: 11px;
    left: 50%;
    right: 50%;
    height: 0;
    border-bottom: 2px solid black;
    background: black;
    transition: all 0.3s ease;
    transform: translateY(-50%);
  }
  .nav-list-index a:hover::before,
  .nav-list-index a:hover::after {
    left: 10%;
    right: 10%;
  }
  .nav-list-index a.active::before,
  .nav-list-index a.active::after {
    left: 10%;
    right: 10%;
  }
  .compact-header .nav-list-index a::after {
    content: '';
    position: absolute;
    bottom: 11px;
    left: 50%;
    right: 50%;
    height: 0;
    border-bottom: 2px solid black;
    background: black;
    transition: all 0.3s ease;
    transform: translateY(50%);
  }
  .compact-header .nav-list-index a:hover::before,
  .compact-header .nav-list-index a:hover::after {
    left: 10%;
    right: 10%;
  }
  .compact-header .nav-list-index a.active::before,
  .compact-header .nav-list-index a.active::after {
    left: 10%;
    right: 10%;
  }
}
@media (min-width: 960px) {
  .page-body--header img {
    margin: 0 auto;
    display: block;
    max-width: 400px;
  }
  .nav-list-index li {
    font-size: 18px;
  }
  .nav-list-index a {
    padding: 23px;
  }
  .compact-header .nav-list-index a {
    padding: 20px;
  }
}
@media (min-width: 1200px) {
  .page-body--header img {
    max-width: 450px;
  }
  .nav-list-index li {
    font-size: 20px;
  }
  .nav-list-index a {
    padding: 23px 30px 23px 30px;
  }
  .compact-header .nav-list-index a {
    padding: 20px 25px;
  }
}
.page-main {
  margin: 0 auto;
  width: 90vw;
  flex: 1;
}
.main-article--container img {
  min-width: 350px;
  width: 100%;
  margin-bottom: 10px;
}
.article--container img {
  min-width: 350px;
  width: 100%;
  margin-bottom: 10px;
}
.page-main--section--top {
  font-family: 'Kanit', 'Arial', sans-serif;
  font-style: italic;
  font-weight: 300;
  text-align: center;
  font-size: 14px;
  color: #555555;
  margin-bottom: 30px;
}
article {
  margin-bottom: 50px;
}
article h1 {
  margin-bottom: 10px;
  font-family: 'Roboto', 'Arial', sans-serif;
}
article h2 {
  margin-bottom: 10px;
  font-family: 'Roboto', 'Arial', sans-serif;
}
article p {
  margin-bottom: 50px;
  font-family: 'Roboto', 'Arial', sans-serif;
}
.article {
  margin-bottom: 50px;
}
.main-article--container p {
  font-size: 16px;
}
.article--container p {
  font-size: 16px;
}
.right-side {
  display: flex;
  justify-content: end;
  font-size: 16px;
  font-family: 'Roboto', 'Arial', sans-serif;
}
.no-wrap {
  white-space: nowrap;
}
@media (min-width: 768px) {
  .page-main--section--top {
    font-size: 16px;
  }
  .main-article--container p {
    font-size: 18px;
  }
  .article--container p {
    font-size: 18px;
  }
  .right-side {
    font-size: 19px;
  }
}
@media (min-width: 960px) {
  .page-main {
    margin: 0 auto;
    width: 90vw;
    max-width: 1100px;
  }
  .page-main--section {
    flex: 2;
  }
  .page-main--section--top {
    font-family: 'Kanit', 'Arial', sans-serif;
    font-style: italic;
    font-weight: 300;
    text-align: center;
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
  }
  .main-article--container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    flex: 1;
  }
  .main-article--container p {
    font-size: 18px;
    flex: 1;
  }
  .main--container {
    display: flex;
    column-gap: 40px;
    margin-bottom: 40px;
  }
  .main--container h2 {
    margin-bottom: 20px;
  }
  article {
    margin-bottom: 30px;
  }
  article p {
    font-size: 18px;
  }
  .article {
    flex: 0 1 calc(50% - 25px);
  }
  .article-pic {
    width: 100%;
    margin-bottom: 20px;
  }
}
@media (min-width: 1200px) {
  .main-article--container {
    display: flex;
    gap: 40px;
    margin-bottom: auto;
  }
  .article--container {
    display: flex;
    column-gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
  }
  .main-article--container img {
    width: 360px;
  }
  .main-article--container p {
    font-size: 20px;
  }
  .main-article--container .right-side {
    margin-top: 50px;
  }
  #div-1 {
    margin-bottom: 50px;
  }
  .right-side {
    font-size: 19px;
  }
}
header {
  background-color: #F7CE28;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.second-fix {
  position: sticky;
  top: 0;
  z-index: 100;
}
.page-body--header--second {
  margin: 0 auto;
  width: 90vw;
  background-color: #F7CE28;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
}
.page-body--header--second img {
  width: 80px;
  display: block;
  margin: 0;
  padding: 10px 0 10px 0;
}
.nav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nav-list li {
  font-family: 'Oswald', 'Arial', sans-serif;
  font-size: 20px;
  border-bottom: 1px solid #000000;
  width: 100%;
}
.nav-list li:last-child {
  border-bottom: none;
}
.nav-list a {
  display: block;
  padding: 15px;
}
.menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 26px;
  position: relative;
  padding: 0;
}
.menu-toggle::before,
.menu-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #000;
}
/* Верхняя полоса */
.menu-toggle::before {
  top: 5px;
  box-shadow: 0 8px 0 #000;
  /* средняя полоса */
}
/* Нижняя полоса */
.menu-toggle::after {
  bottom: 2px;
}
/* Крестик при открытом меню */
.menu-toggle.active::before {
  top: 11px;
  transform: rotate(45deg);
  box-shadow: none;
}
.menu-toggle.active::after {
  bottom: 11px;
  transform: rotate(-45deg);
}
/* Меню-тогл становится крестиком при открытии */
.menu-toggle {
  position: relative;
  z-index: 1002;
}
.nav-wrapper {
  width: 100%;
  order: 3;
  /* Перемещаем вниз под лого и бургером */
  background: #F7CE28;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 99;
}
.nav-wrapper.active {
  max-height: 90vh;
}
.nav-list a:hover {
  color: #000000;
  background-color: #e8bf1b;
}
.nav-list a.active {
  color: #000000;
  background-color: #e8bf1b;
}
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  .page-body--header--second {
    background-color: #F7CE28;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    max-width: 1100px;
  }
  .page-body--header--second img {
    width: 90px;
    display: block;
    padding: 0;
  }
  .nav-wrapper {
    position: static !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    order: 2 !important;
    /* Возвращаем на вторую позицию */
    padding: 0 !important;
    border-radius: 0 !important;
    transition: none !important;
  }
  .nav-list {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: nowrap;
  }
  .nav-list li {
    font-size: 16px;
    border-bottom: none;
  }
  .nav-list a {
    padding: 20px 15px;
    transition: all 0.3s ease;
    position: relative;
  }
  .nav-list a:hover {
    background-color: #F7CE28;
  }
  .nav-list a.active {
    color: #000000;
    background-color: #F7CE28;
  }
  .nav-list a::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    right: 50%;
    height: 0;
    border-top: 2px solid black;
    background: black;
    transition: all 0.3s ease;
    transform: translateY(-50%);
  }
  .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: 50%;
    right: 50%;
    height: 0;
    border-bottom: 2px solid black;
    background: black;
    transition: all 0.3s ease;
    transform: translateY(-50%);
  }
  .nav-list a:hover::before,
  .nav-list a:hover::after {
    left: 10%;
    right: 10%;
  }
  .nav-list a.active::before,
  .nav-list a.active::after {
    left: 10%;
    right: 10%;
  }
}
@media (min-width: 960px) {
  .page-body--header--second img {
    width: 90px;
  }
  .nav-list li {
    font-size: 18px;
  }
  .nav-list a {
    padding: 20px;
  }
}
@media (min-width: 1200px) {
  .nav-list li {
    font-size: 20px;
  }
  .nav-list a {
    padding: 20px 25px;
  }
  .random-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #a16b38;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    margin: 10px 0;
  }
  .random-btn:hover {
    background: #3a6698;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 118, 168, 0.3);
  }
}
.top ul {
  display: flex;
  list-style: none;
  margin-bottom: -20px;
}
.top li {
  padding-right: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #AC7420;
}
.top li:last-child {
  color: black;
}
.top a {
  color: #AC7420;
  text-decoration: none;
}
.top a:visited {
  color: #AC7420;
}
.article-main--pic--second {
  width: 100%;
  margin-bottom: 20px;
}
article p {
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 26px;
}
@media (min-width: 768px) {
  .top ul {
    display: flex;
    list-style: none;
    margin-bottom: 20px;
  }
  .top li {
    padding-right: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #AC7420;
  }
  .top li:last-child {
    color: black;
  }
  .top a {
    color: #AC7420;
    text-decoration: none;
  }
  .top a:visited {
    color: #AC7420;
  }
  .article-main--pic--second {
    width: 100%;
    margin-bottom: 20px;
  }
  article p {
    font-size: 20px;
  }
}
.options label {
  display: block;
  padding: 10px;
  border: solid 1px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 0 4px 1px #838383;
  font-family: 'Kurale', 'Times New Roman', serif;
  font-weight: 500;
}
.kurale {
  font-family: 'Kurale', 'Times New Roman', serif;
}
.clarification {
  font-size: 18px;
}
.wrong-context li {
  margin-bottom: 20px;
}
.question {
  font-size: 18px;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 30px;
}
.correct {
  background-color: #7ffb69;
}
.wrong {
  background-color: #f96262;
}
.test h3 {
  margin-bottom: 10px;
  font-size: 24px;
  background-color: #f8e1a8;
  padding: 20px;
  font-family: 'Roboto', 'Arial', sans-serif;
}
.test h4 {
  margin-bottom: 10px;
  font-size: 24px;
}
.question {
  margin-bottom: 20px;
}
.test p {
  margin-bottom: 10px;
}
.test {
  background-color: #f3f3f3;
}
.context h3 {
  font-size: 24px;
  margin-bottom: 10px;
  background-color: #f8e1a8;
  padding: 20px;
  font-family: 'Roboto', 'Arial', sans-serif;
}
.context ul {
  font-size: 20px;
  list-style-type: none;
  margin-bottom: 30px;
  line-height: 26px;
  padding-left: 20px;
  padding-right: 20px;
}
.context li {
  margin-left: 20px;
  padding: 5px;
}
.context {
  background-color: #f3f3f3;
  padding-bottom: 5px;
}
.example li {
  margin-bottom: -7px;
}
.context-title {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Playfair Display SC', Times, serif;
}
label input {
  display: none;
}
@media (min-width: 768px) {
  .options label {
    width: 90%;
  }
  .question {
    font-size: 22px;
  }
  .context ul {
    font-size: 22px;
  }
  .context-title {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Playfair Display SC', Times, serif;
  }
}
aside {
  flex: 0.8;
  margin-top: 30px;
}
nav {
  margin-bottom: 40px;
}
.article-main--aside--pic {
  max-width: 300px;
  max-height: 100%;
  margin-bottom: 20px;
  margin-top: 20px;
}
.side ul {
  list-style: none;
}
.search-container {
  margin-bottom: 20px;
}
.search-input {
  width: 100%;
  padding: 10px;
  font-size: 20px;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.search-wrapper {
  position: relative;
  top: 4px;
  display: flex;
  align-items: center;
}
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}
.search-container--header {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  min-width: 300px;
  display: flex;
  gap: 10px;
}
.search-container--header.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-input--header {
  padding: 8px;
}
.search-button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.search-button a {
  font-size: 20px;
}
.random-button {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 12px 0;
  font-size: 18px;
  font-family: 'Roboto', 'Arial', sans-serif;
  cursor: pointer;
  background: #dfdfdf;
  color: #000000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #b2b2b2;
  box-shadow: 0 4px 12px rgba(163, 163, 163, 0.467);
}
.random-button:hover {
  background: #cbcaca;
  transform: translateY(-2px);
  box-shadow: 0 7px 15px rgba(123, 123, 123, 0.444);
}
.hover a:hover {
  text-decoration: underline;
}
.tag {
  font-size: 18px;
}
.text-decoration {
  text-decoration: none;
}
.category h3 {
  margin-bottom: 10px;
  font-size: 24px;
}
.category li {
  margin-bottom: 5px;
  font-size: 22px;
}
@media (min-width: 768px) {
  aside {
    margin-top: 0;
  }
  .category h3 {
    margin-top: 20px;
  }
}
@media (min-width: 960px) {
  .category h3 {
    margin-top: 0;
  }
}
@media (min-width: 1200px) {
  aside {
    display: block;
    flex: 1;
    max-width: 300px;
  }
  .side ul {
    list-style: none;
  }
  .search-container {
    margin-bottom: 20px;
  }
  .search-input {
    width: 100%;
    padding: 10px;
    font-size: 20px;
    margin-bottom: 15px;
    box-sizing: border-box;
  }
  .search-button {
    width: 100%;
  }
  .article-main--aside--pic {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    margin-bottom: 20px;
  }
}
.result h1 {
  margin-bottom: 20px;
  font-size: 24px;
}
.result h2 {
  margin-bottom: 10px;
  font-size: 21px;
  font-family: 'Roboto', 'Arial', sans-serif;
}
.result p {
  font-family: 'Roboto', 'Arial', sans-serif;
  font-size: 14px;
}
.result ul {
  margin-bottom: 10px;
  list-style: none;
}
.result li {
  margin-bottom: 20px;
}
.result-tag h1 {
  margin-bottom: 20px;
  font-size: 28px;
}
.result-tag h2 {
  margin-bottom: 10px;
  font-size: 21px;
  font-family: 'Roboto', 'Arial', sans-serif;
}
.result-tag p {
  font-family: 'Roboto', 'Arial', sans-serif;
  font-size: 14px;
}
.result-tag ul {
  margin-bottom: 10px;
  list-style: none;
}
.result-tag li {
  margin-bottom: 10px;
}
.result-tag-ul a:hover {
  text-decoration: underline;
}
.records {
  display: flex;
  min-height: 175px;
}
.records div {
  padding-left: 15px;
}
.gradient {
  position: relative;
  max-height: 175px;
  overflow: hidden;
}
.gradient p {
  position: relative;
  color: black;
}
.gradient ::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, rgba(250, 250, 250, 0), #fafafa);
  z-index: 1;
}
.records img {
  width: 135px;
  height: 135px;
}
.right-side-result {
  display: none;
}
@media (min-width: 768px) {
  .records img {
    width: 200px;
    height: 200px;
  }
  .records div {
    padding-left: 20px;
  }
  .result h2 {
    font-size: 28px;
  }
  .right-side-result {
    display: flex;
    justify-content: end;
    font-size: 20px;
    margin-top: -40px;
    margin-bottom: 40px;
    margin-right: 30px;
  }
  .result p {
    line-height: 22px;
    font-size: 18px;
  }
  .result h1 {
    font-size: 28px;
  }
  .result-tag-ul li {
    font-size: 18px;
  }
}
.pagination-buttons {
  width: 40px;
  padding: 10px;
  margin: 4px;
  border-radius: 50%;
  border-width: 1px;
  font-weight: bold;
  border-color: #808080;
  cursor: pointer;
}
.current-page-button {
  width: 40px;
  padding: 10px;
  margin: 4px;
  border-radius: 50%;
  border-width: 1px;
  font-weight: bold;
  cursor: auto;
  background-color: #e2e2e2;
}
.current-page-button:hover {
  background-color: #e2e2e2;
  cursor: auto;
}
.current-page-button:active {
  background-color: #e2e2e2;
  cursor: auto;
}
.pagination-buttons:hover {
  background-color: #d0d0d0;
}
.pagination a {
  border: none;
  outline: none;
  text-decoration: none;
}
ul a {
  color: #AC7420;
  text-decoration: none;
}
a {
  color: #AC7420;
}
.page-body--header--second a {
  color: black;
}
.page-body--header a {
  color: black;
}
.text-decoration {
  text-decoration: none;
}
footer {
  background-color: #000000;
  padding: 30px 0 25px 0;
  color: #fffefe;
}
.footer-width-wrapper {
  margin: 0 auto;
  width: 90vw;
  flex: 1;
}
.social-icons {
  background-repeat: no-repeat;
  background-position: 50%;
  background-position-x: 50%;
  background-position-y: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #000000;
  transition: all 0.2s ease;
}
.telegram {
  background-color: #adacbb;
  background-image: url(/img/socials/telegram2.svg);
  background-size: 25px 25px;
  margin: 2px;
  background-position: center calc(50% - 1px);
}
.telegram:hover {
  background-color: #4f4f4f;
}
.vk {
  background-color: #adacbb;
  background-image: url(/img/socials/vk2.svg);
  background-size: 20px 20px;
  margin: 2px;
}
.vk:hover {
  background-color: #4f4f4f;
}
.dzen {
  background-color: #adacbb;
  background-image: url(/img/socials/dzen.svg);
  background-size: 15px 15px;
  margin: 2px;
}
.dzen:hover {
  background-color: #4f4f4f;
}
.footer-color {
  color: #9a9a9a;
}
.footer-color li {
  padding: 2px;
}
.no-dots {
  list-style: none;
}
.social-wrapper {
  width: 120px;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
.footer-wrapper {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}
footer a {
  color: #9a9a9a;
}
footer a:hover {
  color: #797979;
}
.footer-color:last-child {
  margin-top: 20px;
}
.logo-and-social-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.roboto {
  font-family: 'Roboto', 'Arial', sans-serif;
}
.footer-records {
  display: flex;
  margin-bottom: 30px;
}
.footer-records div {
  padding-left: 15px;
}
.footer-records h3 {
  margin-bottom: 7px;
}
.footer-records p {
  font-size: 15px;
}
@media (min-width: 768px) {
  .footer-articles-wrapper {
    display: flex;
    justify-content: space-around;
    flex-grow: 2;
  }
  .footer-color:last-child {
    margin-top: 0;
  }
  p.footer-color:last-child {
    margin-top: 20px;
  }
  .logo-and-social-wrapper {
    align-items: center;
    flex-grow: 1;
  }
  .footer-color {
    font-size: 18px;
  }
}
@media (min-width: 960px) {
  .footer-color {
    font-size: 20px;
  }
}
.sort-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: end;
  align-items: baseline;
}
.sort-buttons p {
  display: none;
}
.sort-buttons a {
  font-size: 13px;
}
.btn {
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.btn-active {
  background-color: #ac7420;
  color: white;
  cursor: default;
}
.btn-inactive {
  background-color: #f8f9fa;
  color: #333;
  border: 2px solid #ddd;
}
.btn-inactive:hover {
  background-color: #e9ecef;
}
@media (min-width: 768px) {
  .sort-buttons a {
    font-size: 15px;
  }
  .sort-buttons p {
    font-weight: bold;
    display: block;
  }
}
.search-wrapper {
  display: flex;
  align-items: center;
}
/* МОБИЛЬНАЯ ВЕРСИЯ (до 767px) - поле видно сразу */
@media (max-width: 767px) {
  .search-wrapper {
    width: 100%;
    margin-bottom: 5px;
  }
  .search-toggle {
    display: none !important;
  }
  .search-container--header {
    position: static !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: auto !important;
  }
  .search-input--header {
    flex: 1;
    border: 1px solid #000000;
    border-radius: 4px;
    font-size: 16px;
    background: white;
  }
  .search-button {
    cursor: pointer;
    white-space: nowrap;
  }
}
@media (min-width: 768px) {
  .search-wrapper {
    width: auto;
    position: relative;
  }
  .search-toggle {
    display: block !important;
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    padding: 20px;
    position: relative;
    transition: color 0.2s;
  }
  .search-toggle::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: black;
    transition: all 0.3s ease;
  }
  .search-toggle::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: black;
    transition: all 0.3s ease;
  }
  .search-toggle:hover::before,
  .search-toggle:hover::after {
    left: 10%;
    right: 10%;
  }
  /* Форма скрыта по умолчанию */
  .search-container--header {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }
  /* Когда активно - показываем */
  .search-container--header.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .search-input--header {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
  }
  .search-button {
    padding: 10px 20px;
    cursor: pointer;
    white-space: nowrap;
  }
}
@media (min-width: 960px) {
  .search-container--header {
    min-width: 350px;
  }
}
@media (min-width: 1200px) {
  .search-container--header {
    min-width: 400px;
  }
  .search-toggle {
    padding: 20px 25px;
  }
  .search-toggle::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #000000;
    transition: all 0.3s ease;
  }
  .search-toggle::after {
    content: '';
    position: absolute;
    bottom: 11px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: black;
    transition: all 0.3s ease;
  }
}
.share-buttons {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.share-buttons p {
  font-weight: 600;
  color: #333;
  font-size: 18px;
  font-family: 'Roboto', 'Arial', sans-serif;
}
.social-wrapper-aside {
  display: flex;
  margin-top: 10px;
  max-width: 300px;
  justify-content: space-between;
}
.social-wrapper a {
  cursor: pointer;
}
.social-icons-aside {
  background-repeat: no-repeat;
  background-position: 50%;
  background-position-x: 50%;
  background-position-y: center;
  width: 50px;
  height: 50px;
  border-radius: 9px;
  color: #000000;
  transition: all 0.2s ease;
}
.telegram-aside {
  background-color: #0088cc;
  background-image: url(/img/socials/telegram-white.svg);
  background-size: 35px 35px;
  margin: 2px;
}
.telegram-aside:hover {
  background-color: #0d91e2;
}
.vk-aside {
  background-color: #4a76a8;
  background-image: url(/img/socials/vk-white.svg);
  background-size: 20px 20px;
  margin: 2px;
}
.vk-aside:hover {
  background-color: #3a6698;
}
.copylink-aside {
  background-color: #676767;
  background-image: url(/img/socials/link-white.svg);
  background-size: 23px 23px;
  margin: 2px;
}
.copylink-aside:hover {
  background-color: #404040;
}
.odno-aside {
  background-color: #ff9800;
  background-image: url(/img/socials/odno-white.svg);
  background-size: 27px 27px;
  margin: 2px;
}
.odno-aside:hover {
  background-color: #c97902;
}
.whatsapp-aside {
  background-color: #40C351;
  background-image: url(/img/socials/whatsapp-white.svg);
  background-size: 25px 25px;
  margin: 2px;
}
.whatsapp-aside:hover {
  background-color: #2f923d;
}
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #AC7420;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(150%);
  transition: transform 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast.show {
  transform: translateX(0);
}
.toast-text {
  font-weight: 500;
  font-size: 14px;
  font-family: 'Raleway';
}
@media (max-width: 768px) {
  .share-links {
    flex-direction: column;
  }
  .share-btn {
    justify-content: center;
  }
}
#realContent {
  display: none;
}
#realArtContent {
  display: none;
}
#realTagContent {
  display: none;
}
.skeleton-container {
  width: 100%;
}
.skeleton-article {
  margin-bottom: 50px;
  animation: skeleton-loading 1.5s infinite ease-in-out;
}
/* Главный скелетон-статья */
.skeleton-main {
  margin-bottom: 40px;
}
.skeleton-main .skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Контейнер для скелетон-статей */
.skeleton-articles {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
/* Элементы скелетона */
.skeleton-title {
  height: 28px;
  width: 70%;
  margin-bottom: 15px;
  background: #e0e0e0;
  border-radius: 4px;
}
.skeleton-image {
  width: 100%;
  height: 200px;
  background: #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
}
.skeleton-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skeleton-line {
  height: 16px;
  background: #e0e0e0;
  border-radius: 4px;
}
.skeleton-line--short {
  width: 60%;
}
/* Анимация */
@keyframes skeleton-loading {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}
.skeleton-tag-container {
  width: 100%;
  animation: skeleton-pulse 1.5s infinite ease-in-out;
}
/* Анимация пульсации */
@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}
/* Контейнер результата */
.skeleton-tag-result {
  padding: 20px 0;
}
/* Заголовок страницы */
.skeleton-title {
  height: 32px;
  width: 60%;
  background: #e0e0e0;
  border-radius: 6px;
  margin-bottom: 30px;
}
.skeleton-line--wide {
  width: 70%;
}
/* Список статей */
.skeleton-tag-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
/* Элемент статьи */
.skeleton-tag-item {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
/* Изображение */
.skeleton-tag-image {
  width: 135px;
  height: 135px;
  background: #e0e0e0;
  border-radius: 8px;
  flex-shrink: 0;
}
/* Контент статьи */
.skeleton-tag-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Заголовок статьи */
.skeleton-tag-headline {
  height: 24px;
  width: 50%;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 10px;
}
/* Текст статьи */
.skeleton-tag-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-line {
  height: 16px;
  background: #e0e0e0;
  border-radius: 4px;
}
.skeleton-line--short {
  width: 70%;
}
.skeleton-line--button {
  width: 120px;
  height: 20px;
  background: #e0e0e0;
  border-radius: 20px;
  align-self: flex-end;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .skeleton-image {
    height: 250px;
  }
  .skeleton-tag-item {
    gap: 20px;
    padding-bottom: 20px;
  }
  .skeleton-tag-image {
    width: 200px;
    height: 200px;
  }
  .skeleton-tag-headline {
    height: 28px;
  }
  .skeleton-line {
    height: 18px;
  }
  .skeleton-title {
    height: 36px;
    margin-bottom: 40px;
  }
  .skeleton-line--button {
    margin-top: 30px;
    margin-bottom: 20px;
  }
}
@media (min-width: 960px) {
  .skeleton-main .skeleton-content {
    flex-direction: row;
  }
  .skeleton-main .skeleton-image {
    width: 50%;
    height: 300px;
  }
  .skeleton-main .skeleton-text {
    width: 50%;
  }
  .skeleton-articles {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
  }
  .skeleton-articles .skeleton-article {
    flex: 0 1 calc(50% - 15px);
  }
  .skeleton-articles .skeleton-image {
    height: 200px;
  }
}
@media (min-width: 1200px) {
  .skeleton-main .skeleton-image {
    width: 360px;
    height: 360px;
  }
  .skeleton-articles .skeleton-article {
    flex: 0 1 calc(33.333% - 34px);
  }
  .skeleton-articles .skeleton-image {
    width: 360px;
    height: 360px;
  }
}
