@charset "UTF-8";

:root {
  --font-family: "Roboto", sans-serif;
  --second-family: "Inter", sans-serif;
  --bg-body-color: #101010;
  --ff-to-33: #fff;
  --transition: .3s ease-in-out;
  --main-bg-color: #1A1A1A;
  --card-bg-color: #252525;
  --card-padding: 24px 28px;
  --86-to-33: #868686;
  --tools-color: rgba(255, 255, 255, 0.5);
  --cats-color: #404040;
  --scrollbar-color: #525252;
  --line-item-posts: #303030;
  --98-to-33: #989898;
  --modal-bg-color: #191919;
  --modal-theme-select: #242424;
  --input-bg-color: #2a2a2a;
  --input-placeholder-color: #cacaca;
  --cats-color-hover: #4f4f4f;
  --btn-bg: #2c2c2c;
}
[data-theme="light"] {
  --bg-body-color: #A2A2A2;
  --ff-to-33: #333333;
  --main-bg-color: #DDDDDD;
  --card-bg-color: #cacaca;
  --86-to-33: #333333;
  --tools-color: rgba(36, 36, 36, 0.7);
  --cats-color: #bebebe;
  --scrollbar-color: #afafaf;
  --line-item-posts: rgba(0, 0, 0, 0.06);
  --98-to-33: #333333;
  --modal-bg-color: #ffffff;
  --modal-theme-select: #fff;
  --input-bg-color: #b7b7b7;
  --input-placeholder-color: #303030;
  --cats-color-hover: #cccaca;
  --btn-bg: transparent;
}

/* Техническая часть */

*,
*::after,
*::before,
html {
  box-sizing: border-box;
}

body {
  padding-top: 88px;
  background-color: var(--bg-body-color);
}
a {
  text-decoration: none;
}
a[href^="tel"]{
  text-decoration:none;
}
ul,
li {
  list-style: none;
}
/* Стили для wpDiscuz */
.single-commentary {
  font-family: var(--font-family);
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.comments-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.comments-count {
  margin-bottom: 25px;
  padding: 12px 20px;
  background: var(--card-bg-color);
  border-radius: 8px;
  font-size: 16px;
  color: #555;
}

.comments-count .count-number {
  font-weight: 700;
  color: #a128fe;
  font-size: 18px;
}

/* Интеграция с темной темой */
[data-theme="dark"] .single-commentary {
  border-top-color: #444;
}

[data-theme="dark"] .comments-title {
  color: #eee;
}

[data-theme="dark"] .comments-count {
  background: #2d2d2d;
  color: #bbb;
}

/* Стрелка вверх */
/* Кнопка "Наверх" */
.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--card-bg-color);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  box-shadow: 
      0 6px 20px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(161, 40, 254, 0.1),
      inset 0 2px 10px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--card-bg-color);
  transform: translateY(-4px);
  box-shadow: 
      0 10px 25px rgba(0, 0, 0, 0.2),
      0 0 0 2px rgba(161, 40, 254, 0.2),
      inset 0 2px 12px rgba(255, 255, 255, 0.15);
}

.scroll-to-top:active {
  transform: translateY(-2px) scale(0.98);
  transition: transform 0.1s ease;
}

/* Анимация стрелки при наведении */
.scroll-to-top:hover .scroll-to-top-icon {
  transform: translateY(-2px);
  animation: bounce 2s infinite;
}

/* Иконка стрелки */
.scroll-to-top-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

/* Эффект свечения вокруг кнопки */
.scroll-to-top::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 40, 254, 0.15) 0%, transparent 70%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.scroll-to-top:hover::before {
  opacity: 1;
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Анимация стрелки при наведении */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
  }
  40% {
      transform: translateY(-5px);
  }
  60% {
      transform: translateY(-3px);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .scroll-to-top {
      bottom: 25px;
      right: 20px;
      width: 48px;
      height: 48px;
  }
  
  .scroll-to-top-icon {
      width: 20px;
      height: 20px;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
      bottom: 20px;
      right: 15px;
      width: 44px;
      height: 44px;
  }
  
  .scroll-to-top-icon {
      width: 18px;
      height: 18px;
  }
}

/* Для темной темы - дополнительная стилизация */
@media (prefers-color-scheme: dark) {
  .scroll-to-top {
      box-shadow: 
          0 6px 20px rgba(0, 0, 0, 0.3),
          0 0 0 1px rgba(161, 40, 254, 0.15),
          inset 0 1px 3px rgba(255, 255, 255, 0.05);
  }
  
  .scroll-to-top:hover {
      box-shadow: 
          0 10px 25px rgba(0, 0, 0, 0.4),
          0 0 0 2px rgba(161, 40, 254, 0.25),
          inset 0 1px 4px rgba(255, 255, 255, 0.1);
  }
}

/* Адаптация wpDiscuz под тему */
#wpcomm .wc-comment-label {
  background: #0073aa !important;
  color: white !important;
  border-radius: 4px !important;
}

#wpcomm .wc-comment-text {
  font-size: 15px !important;
  line-height: 1.6 !important;
}

#wpcomm .wc-reply-button,
#wpcomm .wc_vote_add {
  background: #0073aa !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  transition: background 0.3s !important;
}

#wpcomm .wc-reply-button:hover,
#wpcomm .wc_vote_add:hover {
  background: #005a87 !important;
}

#wpcomm .wc-form-wrapper {
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

[data-theme="dark"] #wpcomm .wc-form-wrapper {
  background: #2d2d2d !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

/* Стили для боковой колонки с комментариями */
.content-right-comments-area {
  margin-top: 20px;
}
.comment-content {
  display: flex;
  flex-direction: column;
  font-family: var(--second-family);
  gap: 15px;
}
.comment-post-title {
  font-size: 14px;
  color: var(--98-to-33);
}
.recent-comments-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.recent-comment-item {
  display: flex;
  gap: 13px;
}
.comment-avatar img {
  border-radius: 100%;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 20px;
}
.comment-author {
  font-weight: 400;
  color: var(--ff-to-33);
}
.comment-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
  color: var(--ff-to-33);
  font-size: 13px;
  opacity: .5;
}
.comment-avatar img{
  width: 48px;
  object-fit: cover;
  height: 48px;
}

.comment-excerpt {
  color: var(--ff-to-33);
  font-size: 14px;
}
.content-right-comments-area .recent-comment {
  padding: 15px;
  margin-bottom: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #0073aa;
}

[data-theme="dark"] .content-right-comments-area .recent-comment {
  background: #2d2d2d;
  border-left-color: #005a87;
}

.content-right-comments-area .recent-comment-author {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

[data-theme="dark"] .content-right-comments-area .recent-comment-author {
  color: #eee;
}
.no-comments-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 15px;
  color: var(--86-to-33);
}
.content-right-comments-area .recent-comment-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8px;
}

[data-theme="dark"] .content-right-comments-area .recent-comment-excerpt {
  color: #aaa;
}

.content-right-comments-area .recent-comment-post {
  font-size: 13px;
  color: #0073aa;
  text-decoration: none;
}

.content-right-comments-area .recent-comment-post:hover {
  text-decoration: underline;
}
/* Модальное окно выбора темы */
.modal-theme {
  backdrop-filter: blur(4px);
  top: 0;
  display: none;
  position: fixed;
  z-index: 99;
  background-color: rgba(0, 0, 0, 0.6);
  left: 0;
  right: 0;
  height: 100%;
}
.modal-theme-active {
  display: block;
}
.modal-theme-content {
  position: absolute;
  z-index: 9;
  padding: 54px;
  left: 50%;
  width: 628px;
  height: 578px;
  right: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  background: var(--main-bg-color);
  box-shadow: rgba(0, 0, 0, 0.16) 0px 20px 64px 8px;
}

.modal-theme-title {
  margin-top: 40px;
  font-family: var(--second-family);
  font-weight: 300;
  font-size: 31px;
  text-align: center;
  color: var(--ff-to-33);
}
.icon-close {
  cursor: pointer;
  position: absolute;
  right: 38px;
  color: var(--ff-to-33);
}
.themes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 34px;
  margin-top: 45px;
}
.themes-item {
  padding: 11px 0px 11px 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  border-radius: 16px;
  background: var(--modal-theme-select);
  font-family: var(--second-family);
  font-weight: 300;
  font-size: 16px;
  color: var(--ff-to-33);
  width: 476px;
}
/* Модальное окно поиска статьи */
.modal-search {
  backdrop-filter: blur(4px);
  top: 0;
  display: none;
  position: fixed;
  z-index: 99;
  background-color: rgba(0, 0, 0, 0.6);
  left: 0;
  right: 0;
  height: 100%;
}
.modal-search-active {
  display: block;
}
.modal-search-content {
  padding: 54px;
  position: absolute;
  z-index: 11;
  left: 50%;
  width: 1250px;
  height: 806px;
  right: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  background: var(--main-bg-color);
}
.search-posts-block {
  height: 368px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-color) transparent;
  padding-bottom: 15px; 
}
.search-posts-block::-webkit-scrollbar {
  height: 6px;
  background: transparent; 
}

.search-posts-block::-webkit-scrollbar-track {
  background: transparent; 
  margin: 0 15px; 
}

.search-posts-block::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-color);
  border-radius: 10px;
}

.search-posts-block {
  scrollbar-color: var(--scrollbar-color) transparent;
  scrollbar-width: thin;
}
.modal-search-close {
  position: absolute;
  top: 26px;
  right: 38px;
  cursor: pointer;
}
.modal-search-title {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 30px;
  text-transform: uppercase;
  color: var(--ff-to-33);
  margin-bottom: 77px;
}
.modal-search-input {
  position: relative;
}
.modal-search-input input{
  position: relative;
  border: none;
  width: 100%;
  padding: 14px 25px 14px 50px;
  color: var(--ff-to-33);
  font-size: 17px;
  outline: transparent;
  background: var(--input-bg-color);
}
.modal-search-input::before {
  content: "";
  background-image: url('../img/search-icon-input.svg');
  width: 24px;
  z-index: 6;
  height: 24px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 15px;
}
.modal-search-input::placeholder {
  font-family: var(--second-family);
  font-weight: 300;
  font-size: 17px;
  color: var(--input-placeholder-color);
}
.modal-search-cats-title {
  margin-top: 27px;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  text-transform: capitalize;
  color: var(--ff-to-33);
}
.modal-search-categories {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 35px;
  overflow-x: auto;

  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-color) transparent;
  padding-bottom: 15px; 
}
.modal-search-categories .categories-item {
  transition: all 0.3s ease;
}
.search-message {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  color: var(--ff-to-33);
}
.modal-search-categories .categories-item:hover {
  background: var(--cats-color-hover);
}

.modal-search-categories .categories-item.active {
  background: rgba(161, 40, 254, 0.18);
  color: #a128fe;
  font-weight: 500;
}
.modal-search-categories::-webkit-scrollbar {
  height: 6px;
  background: transparent; 
}

.modal-search-categories::-webkit-scrollbar-track {
  background: transparent; 
  margin: 0 15px; 
}

.modal-search-categories::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-color);
  border-radius: 10px;
}

.modal-search-categories {
  scrollbar-color: var(--scrollbar-color) transparent;
  scrollbar-width: thin;
}
.content-post-item-img.content-post-search-item-img {
  width: 243px;
  height: 146px;
}
.ad {
  display: none;
  width: 100%;
  height: 300px;
  border-radius: 16px;
}
.ad + .ad {
  margin-top: 30px;
}
.container {
    max-width: 1290px;
    padding: 0 15px;
    margin: 0 auto;
}
.none {
    display: none;
}

/* Header */
/* ФИКСИРОВАННЫЙ ХЕДЕР - ПРОСТАЯ ВЕРСИЯ */
.header {
  position: fixed; /* Фиксированная позиция */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 95;
  padding: 22px 0;
  background-color: #252525;
  transition: all 0.3s ease;
  transform: translateY(0); /* Всегда видим */
}

/* Эффект при скролле (уменьшение и тень) */
.header.scrolled {
  padding: 20px 0;
  background-color: rgba(37, 37, 37, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
/* Светлая тема */
[data-theme="light"] .header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}



/* Улучшаем видимость подменю при фиксированном хедере */
.header__nav .sub-menu {
  z-index: 1001; /* Выше хедера */
}

/* Фикс для мобильного меню */
.header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1001; /* Выше основного хедера */
  padding-top: 80px; /* Отступ под хедер */
}

/* Плавное появление тени */
@keyframes shadowAppear {
  from {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  to {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
}
.header.scrolled {
  animation: shadowAppear 0.3s ease;
}
/* Burger menu styles */
.header__burger {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 20;
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Animation to cross */
.header__burger.active .header__burger-line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.header__burger.active .header__burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.header__burger.active .header__burger-line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile menu styles */
.header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px; /* Adjust width as needed */
  height: 100vh;
  background-color: #252525;
  transform: translateX(-100%);
  transition: transform 0.4s ease-in-out;
  z-index: 10;
  padding: 100px 20px 20px; /* Space for header */
  overflow-y: auto;
}

.header__mobile-menu.active {
  transform: translateX(0);
  box-shadow: 15px 0 15px rgba(0, 0, 0, .4);
}

.header__mobile-menu .header__list {
  flex-direction: column;
  gap: 30px;
}
.header__mobile-menu .header-btns {
  display: none;
}
.header__mobile-menu .header__list-link {
  font-size: 16px; /* Larger for mobile */
}


.header__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__list {
  display: flex;
  gap: 50px;
}
.header__list-link {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  color: #fff;
}
.header__list-link:hover {
  color: #a128fe;
  transition: var(--transition)
}
.header__btns {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header__tools {
  background: none;
  outline: none;
  padding: 0;
  border: none;
  cursor: pointer;
}
/* Общее */
.menu-item-has-children {
  position: relative;
}

/* Ссылка с подменю — flex, стрелка всегда по центру строки */
.header__list-link.has-submenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.menu-link-text {
  flex-grow: 1;
}

.submenu-arrow {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__list--desktop {
  display: flex;
  gap: 25px;
}

.header__nav .menu-item-has-children:hover > .header__list-link .submenu-arrow {
  opacity: 1;
  transform: rotate(180deg);
}

/* Подменю десктоп */
.header__nav .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: translateY(10px);
  min-width: 260px;
  background: var(--card-bg, #1e1e1e);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 9999;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.08);
}

.header__nav .menu-item-has-children:hover > .sub-menu,
.header__nav .menu-item-has-children.open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header__nav .sub-menu .header__list-link {
  padding: 0px 19px;
  font-size: 16px;
}

/* === МОБИЛЬНОЕ — теперь идеально === */
.header__list--mobile {
  flex-direction: column;
  gap: 30px;
}

.header__list--mobile .header__list-link {
  font-size: 18px;
}

.header__list--mobile .has-submenu {
  gap: 20px;
}

.header__list--mobile .submenu-arrow.rotated {
  transform: rotate(180deg);
  opacity: 1;
}

.header__mobile-menu .sub-menu {
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  height: 0;                    /* важно */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  transition: 
      transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
      padding-top 0.55s cubic-bezier(0.4, 0, 0.2, 1),
      padding-bottom 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 13px;
  margin-top: 8px;
}

.header__mobile-menu .submenu-open > .sub-menu {
  transform: scaleY(1);
  opacity: 1;
  height: auto;
  padding-top: 16px !important;
  padding-bottom: 20px !important;
}

.header__mobile-menu .sub-menu .header__list-link {
  font-size: 16px;
  opacity: 0.9;
}
/* Main */
.main {
  
  margin-top: 59px;
  
}
.main__wrap {
  padding: 16px 30px 30px 30px;
  background-color: var(--main-bg-color);
}
.main-banner img {
  border-radius: 16px;
}
.main-banner-single {
  margin-bottom: 20px;
}
.main-banner-single-img,
.main-banner-duo-img,
.content-post-item-img {
  overflow: hidden;
  position: relative;
  border-radius: 16px;
}
.main-banner-single-img img,
.main-banner-duo-img img,
.content-post-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px; /* ✅ добавляем сюда тоже */
  transition: transform 0.3s ease-in-out;
  transform-origin: center center;
  will-change: transform;
}
.main-banner-single-img {
  cursor: pointer;
  width: 100%;
  height: 345px;
}
.main-banner-single-img:hover img,
.main-banner-duo-img:hover img,
.content-post-item-img:hover img {
  transform: scale(1.1);
}
.main-banner-single-img::before,
.main-banner-duo-img::before,
.content-post-item-img::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px; /* ✅ обязательно! */
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease-in-out;
  z-index: 1;
}
.main-banner-single-img:hover::before,
.main-banner-duo-img:hover::before,
.content-post-item-img:hover::before {
  background: rgba(0, 0, 0, 0.2);
}
.main-banner-duo-img {
  cursor: pointer;

  width: 100%;
  height: 330px;
}
.main-banner-duo__wrap {
  display: flex;
  align-items: center;
  gap: 27px;
}
.main-banner-duo-item {
  flex-basis: 0;
  flex-grow: 1;
}
.main-banner-info {
  z-index: 2;
  position: absolute;
  padding-right: 20px;
  bottom: 30px;
  left: 20px;
  max-width: 500px;
  font-family: var(--second-family);
  color: #fff;
}
.main-banner-info-top {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.main-banner-info-cat {
  border-radius: 16px;
  padding: 8px 17px;
  background-color: rgba(161, 40, 254, 0.85);
  font-weight: 400;
  font-size: 14px;
}
.main-banner-info-title {
  
  font-weight: 500;
  font-size: 21px;
  
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 117%;
  text-overflow: ellipsis;
}
.main-banner-info-date {
  font-weight: 300;
  font-size: 12px;
}
.main-banner-info-comment {
  font-weight: 300;
  font-size: 12px;
  padding-left: 21px;
  position: relative;
}
.main-banner-info-comment::before {
  content: "";
  position: absolute;
  background-image: url('../img/comment-icon.svg');
  background-repeat: no-repeat;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16.54px;
  width: 16.54px;
}
.main-banner-single-img::after,
.main-banner-duo-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 46%;
  border-radius: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Other block */

/* Content Section */
.content-wrap {
  display: flex;
  justify-content: space-between;
  gap: 26px;
}
.content-left {
  flex: 1 1 720px; /* можно задать базовую ширину */
}
.content-right {
  flex: 1 1 calc(720px - 190px);
}
.content-news {
  padding: var(--card-padding);
  background-color: var(--card-bg-color);
  border-radius: 16px;
}
.content {
  margin-top: 20px;
  margin-bottom: 50px;
}
.content-news__title {
  font-family: var(--second-family);
font-weight: 400;
font-size: 20px;
color: var(--ff-to-33);
}
.content-news-block {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-news-block-title {
  max-width: 540px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 15px;
  color: var(--86-to-33);
}
.content-news-block-title a {
  color: var(--86-to-33);
}
.content-news-block-title a:hover {
  color: rgba(180, 83, 255, 0.7);
  transition: color .3s ease-in-out;
}
.content-news-tools {
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 12px;
  color: var(--tools-color);
}
.content-news-tools a {
  color: var(--tools-color);
}
.content-news-show, .content-news-load, .content-news-all, .content-posts-news-all, .content-posts-news-load {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}
.loading {
  font-size: 14px;
  margin: 14px 0;
  color: var(--ff-to-33);
  font-family: var(--second-family);
}
.content-news-tools-icon path {
  fill: var(--tools-color);
}
.right-comments-head {
  background-color: var(--card-bg-color);
  border-radius: 16px;
  padding: var(--card-padding);
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 20px;
  color: var(--ff-to-33);
}
.content-right-comments-area {
  margin-top: 20px;
  background-color: var(--card-bg-color);
  border-radius: 16px;
  padding: var(--card-padding);
  min-height: 450px;
  margin-bottom: 30px;
}
/* Посты с категорией */
.content-posts {
  background-color: var(--card-bg-color);
  padding: var(--card-padding);
  border-radius: 16px;
  margin-top: 24px;
}
.no-posts {
  font-family: var(--font-family);
  font-weight: 500;
  margin-top: 10px;
  font-size: 15px;
  color: var(--86-to-33);
}
.content-categories {
  width: 646px;
  overflow-x: auto;
  display: flex;
  gap: 20px;
  margin-bottom: 40px;

  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-color) transparent;
  padding-bottom: 15px; 
}
.content-categories::-webkit-scrollbar {
  height: 6px;
  background: transparent; 
}

.content-categories::-webkit-scrollbar-track {
  background: transparent; 
  margin: 0 15px; 
}

.content-categories::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-color);
  border-radius: 10px;
}

.content-categories {
  scrollbar-color: var(--scrollbar-color) transparent;
  scrollbar-width: thin;
}

.categories-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 12px;
  color: var(--ff-to-33);
  background: var(--cats-color);
  border-radius: 16px;
  padding: 11px 11px;
  min-width: 102px;
}
.categories-item:hover {
  transition: background .3s ease-in-out;
  background: var(--cats-color-hover);
}
.categories-item span {
  max-width: 100%;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 1;
  white-space: nowrap
}
.content-posts-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 20px;
  color: var(--ff-to-33);
}
.content-posts-item {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.content-posts-item::before {
  content: "";
  height: 1px;
  position: absolute;
  display: block;
  top: -15px;
  background-color: var(--line-item-posts);
  width: 100%;
}
.content-posts-item-info {
  display: flex;
  flex-direction: column;
}
.content-post-item-img {
  flex-shrink: 0;
  cursor: pointer;
  width: 200px;
  height: 130px;
}
.loading-posts {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  color: var(--ff-to-33);
  padding-top: 20px;

}
.content-post-item-img img {
  width: 100%;
  height: 100%;
}
.post-tag {
  display: flex;
  justify-content: center;
  width: 60px;
  padding: 6px 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  color: #fff;
  border-radius: 16px;
  background: rgba(161, 40, 254, 0.85);
  margin-bottom: 12px;
}
.post-title {
  cursor: pointer;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  color: var(--ff-to-33);
  margin-bottom: 17px;
}
.post-title:hover {
  color: #a128fe;
  transition: var(--transition)
}
.post-info {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  color: var(--tools-color);
  display: flex;
  gap: 23px;
}
.post-info-time, .post-info-comment {
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-info-time svg path {
  fill: var(--tools-color);
}

.post-info-comment svg path{
  fill: var(--tools-color);
}


/* Main Slider */
.main-slider-title{
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  margin-bottom: 26px;
}
.main-slider-title a, svg {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 20px;
  color: var(--ff-to-33);
  
}
.mains-slider-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  overflow: hidden;
  padding-bottom: 5px;
}
.main-slider-item {
  cursor: pointer;
  width: 380px;
  display: inline-block;
}
.main-slider-img {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  width: 100%;              /* ✅ ширина сохранена */
  height: 222px;
  transition: transform 0.3s ease-in-out;
}
.main-slider-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease-in-out;
  transform-origin: center center;
  will-change: transform;
}
.main-slider-item:hover .main-slider-img img {
  transform: scale(1.1);
}
.main-slider-img::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease-in-out;
  z-index: 1;
}
.main-slider-item:hover .main-slider-img::before {
  background: rgba(0, 0, 0, 0.2);
}

/* Градиентное затемнение снизу (аналог main-banner::after) */
.main-slider-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 46%;
  border-radius: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
  z-index: 1;
}
.main-slider-item-title {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  cursor: pointer;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 15px;
  line-height: 114%;
  color: var(--ff-to-33);
  transition: color 0.3s ease-in-out;
}
.main-slider-item-title a {
  line-height: 114%;
  color: var(--ff-to-33);
  transition: color 0.3s ease-in-out;
}
.main-slider-info {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 14px;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 12px;
  color: var(--98-to-33);
}
.main-slider-comment {
  position: relative;
}
.main-slider-comment::before {
  content: "";
  position: absolute;
  background-image: url('../img/slider-comment.svg');
  width: 16.23px;
  height: 16.23px;
  top: 50%;
  transform: translateY(-50%);
  left: -19px;
}
.main-slider-date {
  position: relative;
}
.main-slider-date::before {
  content: "";
  position: absolute;
  background-image: url('../img/slider-date.svg');
  width: 16px;
  height: 16px;
  top: 50%;
  transform: translateY(-50%);
  left: -19px;
}
.main-slider-item-title:hover, 
.main-slider-item-title a:hover {
  color: #a128fe;
}
.main-slider-item-title:hover ~ .main-slider-img img {
  transform: scale(1.1);
}
.main-slider-img:hover + .main-slider-item-title{
  color: #a128fe;
}
.main-slider-img:hover + .main-slider-item-title a{
  color: #a128fe;
}
.section-row {
  display: grid;
  gap: 50px;
}
/* Posts Banner */
.posts-banner-wrap {
  display: flex;
  gap: 27px;
}

/* Footer */
.footer {
  margin-top: 50px;
  background-color: #252525;
  padding: 50px 0;
}
.footer__wrap {
  display: flex;
  gap: 230px;
}
.footer__logo {
  margin-bottom: 30px;
}
.footer__info p{
  margin-bottom: 20px;
  
  font-family: var(--font-family);
font-weight: 400;
font-size: 14px;
color: rgba(255, 255, 255, 0.5);
}
.underline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 100%;
  margin-bottom: 20px;
}
.footer__socials {
  display: flex;
  align-items: center;
  gap: 19px;
}
.footer__socials img {
  cursor: pointer;
}
.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  grid-template-rows: 1fr 1fr;
}
.footer__nav-title {
  margin-bottom: 11px;
} 
.footer__nav-title a{
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.7);
}
.footer__nav-item li a{
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__nav-item li a:hover {
  color: #a128fe;
  transition: color .3s ease-in-out;
}
.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.age-footer {
  margin-bottom: 20px;
}

/* CATEGORIES PAGE */
.categories-wrap {
  margin-top: 35px;
  display: grid;
  grid-template-areas:
    "nav nav"
    "content commentary";
  gap: 20px;
  grid-template-columns: 70% 28%;
}

/* Верхний блок на всю ширину */
.categories-navigation {
  grid-area: nav;
  background: var(--card-bg-color);
  font-family: var(--second-family);
  font-size: 16px;
  padding: var(--card-padding);
  color: var(--ff-to-33);
  border-radius: 16px;
}
.categories-navigation a, svg {
  font-weight: 400;
  cursor: pointer;
  color: var(--ff-to-33);
}
.categories-navigation span {
  color: rgba(161, 40, 254, 0.85);
}
.breadcrumb-arrow {
  margin: 0 4px; /* расстояние между элементами — подгони под дизайн */
  flex-shrink: 0; /* не сжимается */
}
/* Левая часть — контент */
.categories-content {
  background-color: var(--card-bg-color);
  padding: var(--card-padding);
  border-radius: 16px;
  grid-area: content;
}
.categories-content-wrap {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 25px;
}
.categories_underline {
  height: 1px;
  width: 190px;
  background-color: var(--98-to-33);
  margin: 37px auto 19px auto;
}
.categories-content-btn {
  display: flex;
  justify-content: center;
}
.categories-content-btn button {
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid #383838;
  background: var(--btn-bg);
  font-family: var(--second-family);
font-weight: 400;
font-size: 13px;
color: var(--ff-to-33);
width: 130px;
padding: 8px 0;
}
/* Правая часть — комментарии */
.categories-commentary {
  grid-area: commentary;
}

.categories-content-item.main-slider-item{
  width: 266px;
}

.categories-content__img {
  display: inline-block;
  width: 266px;
  height: 163px;
}

.categories-content__img img{
  width: 100%;
  object-fit: cover;
  height: 100%;
  border-radius: 16px;
}
.categories-item-title {
  font-size: 14px;
  width: 241px;
}
.categories-content-info {
  font-family: var(--second-family);
font-weight: 300;
font-size: 12px;
color: #989898;
}
.categories-info-commentary {
  position: relative;
}
.categories-info-commentary::before {
  content: "";
  position: absolute;
}


/* Single.php */
.single-wrap {
  grid-area: content;
}
.single-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card-bg-color);
  padding: var(--card-padding);
  border-radius: 16px;
  font-family: var(--second-family);
  font-weight: 300;
  font-size: 15px;
  color: var(--98-to-33);
}
.single-info-date,
.single-info-time {
  display: flex;
  align-items: center;
  gap: 6px;
}
.single-banner {
  margin-top: 13px;
  border-radius: 16px;
  background-color: var(--card-bg-color);
}
.single-banner-img {
  width: 100%;
  height: 283px;
}
.single-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  image-rendering: -webkit-optimize-contrast; /* для WebKit */
}
.single-banner-title {
  margin-top: 13px;
  color: var(--ff-to-33);
  font-family: var(--second-family);
  font-weight: 300;
  font-size: 21px;
  padding: 0 21px 13px 21px;
  line-height: 114%;
}
/* === Стили для контента внутри Single */
.single-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-family: var(--second-family);
  color: var(--ff-to-33);
  margin-top: 27px;
  max-width: 100vw;
}
.single-img-container {
  width: 100%;
  height: 382px;
}
.single-img-container img{
  object-fit: cover;
  cursor: pointer;
  border-radius: 16px;
  width: 100%;
  height: 100%;
}

.single-content p {
  font-weight: 300;
  line-height: 120%;
  opacity: .7;
  font-size: 16px;
}
.single-content h2 {
  
  font-weight: 300;
  font-size: 24px;
}
.single-content h3 {

  font-weight: 300;
  font-size: 21px;
}
.single-content ul li {
  opacity: .7;
  position: relative;
  padding-left: 19px;
}
.single-content ol {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}
.single-content ol li {
  opacity: .7;
  counter-increment: item;
  position: relative;
  padding-left: 2.5em;
  padding-left: 19px;
}
.single-content ol li::before {
  content: counter(item) ".";  
  position: absolute;
  left: 0;                     
  top: 0;
  font-weight: 300;
  color: var(--ff-to-33);    
  
  border-radius: 50%;          
  font-size: 16px;
}
.single-content li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 300;
  line-height: 120%;
  font-size: 16px;
}
.single-content ul li::before {
  content: "";
  position: absolute;
  height: 10px;
  width: 10px;
  border: 2px solid #a128fe;
  border-radius: 100%;
  background: transparent;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.content-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 27px;
}
.content-duo img {
  max-width: 100%;
}
/* Стили для блока "Поделиться с друзьями" */
.single-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  padding: 20px;
  font-family: var(--font-family);
  background-color: var(--card-bg-color);
  border-radius: 8px;
  border-left: 4px solid #a128fe;
}

.single-share-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--ff-to-33);
}

.single-share-icons {
  display: flex;
  gap: 15px;
}

.single-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.single-share-icon:hover {
  transform: translateY(-3px);
}

/* Цвета иконок при наведении */
.single-share-icon.vk {
  background-color: #4a76a8;
  color: white;
}

.single-share-icon.vk:hover {
  background-color: #3a5f8a;
}

.single-share-icon.ok {
  background-color: #f58220;
  color: white;
}

.single-share-icon.ok:hover {
  background-color: #d46a15;
}

.single-share-icon.tg {
  background-color: #2aabee;
  color: white;
}

.single-share-icon.tg:hover {
  background-color: #2298d4;
}

.single-share-icon.youtube {
  background-color: #ff0000;
  color: white;
}

.single-share-icon.youtube:hover {
  background-color: #cc0000;
}

.single-share-icon.twitter {
  background-color: #000000;
  color: white;
}

.single-share-icon.twitter:hover {
  background-color: #333333;
}

.single-share-icon.reddit {
  background-color: #ff4500;
  color: white;
}

.single-share-icon.reddit:hover {
  background-color: #d43a00;
}

/* Адаптивность */
@media (max-width: 768px) {
  .single-share {
      flex-direction: column;
      gap: 20px;
      text-align: center;
  }
  
  .single-share-icons {
      flex-wrap: wrap;
      justify-content: center;
  }
}
/* Стили для рекомендаций внутри single.php */
.single-recomendations {
  margin-top: 40px;
}
.single-recomendations-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.single-recomendations-title {
  font-family: var(--second-family);
  font-weight: 500;
  margin-bottom: 40px;
  font-size: 24px;
  color: var(--ff-to-33);
}
.single-recomendations-item {
  width: 283px;
  height: 291px;
  background-color: var(--card-bg-color);
  border-radius: 16px;
}
.single-recomendations-img {
  display: inline-block;
  width: 100%;
  height: 150px;
}
.single-img-container {
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.single-img-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.modal-image {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-image.active {
  display: flex;
}

.modal-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.modal-image-content {
  position: relative;
  max-width: 96vw;
  max-height: 96vh;
}

.modal-image-img {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  border-radius: 12px;
}

.modal-image-close {
  position: absolute;
  top: -27px;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.single-recomendations-img img {
  object-fit: cover;
  cursor: pointer;
  border-radius: 16px;
  width: 100%;
  height: 100%;
}
.single-recomendations-item-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.single-recomendations-item-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  
}
.single-recomendations-item-title a {
  color: var(--ff-to-33);
}
.single-recomendations-date {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 13px;
  color: var(--98-to-33);
}
.single-recomendations-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 13px;
  color: var(--98-to-33);
}
.single-recomendations-cat,
.single-recomendations-all {
  cursor: pointer;
}
.single-recomendations-all {
  
  display: flex;
  align-items: center;
  gap: 4px;
}
.single-recomendations-all a {
  color: var(--98-to-33);
}
/* 404.php */
.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  overflow: hidden;
}
.not-found h1 {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 150px;
  color: #fff;
}
.not-found h2 {
  font-family: var(--second-family);
font-weight: 400;
font-size: 32px;
color: #989898;
}
.not-found button {
  margin-top: 25px;
  border-radius: 16px;
  border: none;
  outline: transparent;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(161, 40, 254, 0.85);
  height: 29px;
}

/* АДАПТИВ */
@media (max-width: 1300px) {
  .modal-search-content {
    width: 80%;
  }
  .content-post-item-img.content-post-search-item-img {
    width: 165px;
    flex-shrink: 0;
    height: 127px;
  }
  .categories-content-wrap {
    justify-content: center;
  }
  .mains-slider-wrap {
    justify-content: center;
  }
}
@media (max-width: 1100px) {
  .header {
    padding: 28px 0;
  }
  .header__nav {
    display: none; /* Hide desktop nav */
  }

  .header__burger {
    display: flex; /* Show burger on mobile */
  }

  .header__wrap {
    justify-content: space-between;
  }

  .header__btns {
    display: none;
  }
  .header__mobile-menu .header__btns {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
  }
  .main {
    margin-top: 30px;
  }
  .content-right {
    display: none;
  }
  .main-banner-single-img {
    height: 285px;
  }
  .main-banner-duo-img {
    height: 277px;
  }
  .main-banner-info-title {
    font-size: 18px;
  }
  .content-left {
    flex: 1 1 100%; /* Занимает всю ширину, игнорируя базовую 720px */
    width: 100%; /* Для надёжности, если flex-контейнер wrap'нется */
    max-width: 100%;
  }

  .content-categories {
    width: 100%; /* Теперь следует за .content-left */
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap; /* Сохраняем горизонтальный скролл */
  }

  .content-posts {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Если нужно скрыть overflow */
  }
}
@media (max-width: 968px) {
  .categories-wrap {
    grid-template-areas:
      "nav"
      "content"
      "commentary";
    grid-template-columns: 1fr;
  }
  .single-banner-title {
    font-size: 19px;
  }
  .single-banner-img {
    height: 235px;
  }
  .single-recomendations-item {
    width: 100%;
  }
  .single-content li img {
    width: 100%;
  }
}
@media (max-width: 900px) {
  .modal-search-content {
    height: 680px;
  }
  .search-posts-block {
    height: 314px;
  }
  .modal-search-categories {
    margin-bottom: 10px;
  }
  .modal-search-title {
    font-size: 24px;
    margin-bottom: 45px;
  }
  .categories-item {
    font-size: 12px;
    padding: 9px 11px;
    min-width: 85px;
  }
  
  .footer__wrap {
    gap: 111px;
  }
  .main-slider-item {
    width: 328px;
  }
  .main-slider-img {
    height: 189px;
  }
}
@media (max-width: 820px) {
  .modal-theme-content {
    width: 514px;
    height: 488px;
  }
  .modal-theme-close {
    top: 15px;
  }
  .icon-close {
    width: 15px;
  }
  .modal-theme-title {
    margin-top: 23px;
    font-size: 25px;
  }
  .themes-item {
    padding: 9px 0px 9px 19px;
    font-size: 14px;
    width: 434px;
  }
  .themes-item img{
    width: 33px;
    height: 33px;
  }
  .modal-search-content {
    padding: 45px 25px 30px 25px;
  }
  .content-news-tools {
    margin-top: 52px;
  }
  .modal-search-input input {
    padding: 10px 25px 10px 50px;
    font-size: 16px;
  }
  .modal-search-input input::placeholder {
    font-size: 16px;
  }
  .content-post-item-img.content-post-search-item-img {
    width: 143px;
    height: 108px;
  }
  .modal-search-close {
    top: 14px;
    right: 25px;
  }
  .content-news-tools {
    margin-top: 30px;
  }
  .main {
    margin-top: 10px;
  }
  .main-banner-info-cat {
    padding: 6px 12px;
    font-size: 11px;
}
.main__wrap {
  padding: 16px 15px 30px 15px;
}
.main-banner-single-img {
  height: 225px;
}
.main-banner-duo-img {
  height: 207px;
}
.main-banner-info-top {
  margin-bottom: 10px;
}

.main-banner-duo__wrap {
  flex-direction: column;
}
.main-banner-duo-item {
  width: 100%;
}
.main-banner-duo-img {
  height: 225px;
}
.content-post-item-img {
  width: 150px;
  flex-shrink: 0;
  height: 113px;
}
.post-title {
  font-size: 14px;
}
.posts-banner-wrap {
  flex-direction: column;
}
}
@media (max-width: 648px) {
  .single-img-container {
    height: 274px;
  }
  .single-content li img {
    border-radius: 16px;
    object-fit: cover;
    height: 258px;
  }
  .single-banner-title {
    font-size: 14px;
  }
  .single-banner-img {
    height: 177px;
  }
  .single-content p {
    font-size: 13px;
  }
  .single-content h2 {
    font-size: 20px;
  }
  .single-content {
    gap: 15px;
  }
  .single-content li {
    font-size: 13px;
  }
  .single-recomendations-img {
    height: 110px;
  }
  .single-recomendations-item-info {
    padding: 12px;
  }
  .single-recomendations-item-title {
    font-size: 13px;
  }
  .single-recomendations-date {
    font-size: 11px;
  }
  .single-recomendations-nav {
    font-size: 10px;
  }
  .right-comments-head {
    font-size: 17px;
  }
  .single-info {
    font-size: 13px;
  }
  .categories-navigation {
    font-size: 14px;
  }
  .single-recomendations-title {
    margin-bottom: 19px;
    font-size: 21px;

}
  .footer__wrap {
    flex-direction: column;
  }
  .footer__info {
    display: flex;
    align-items: center;
    flex-direction: column;
    order: 1;
  }
  .footer__info p {
    text-align: center;
  }
  .single-recomendations-item {
    height: 236px;
  }
}
@media (max-width: 542px) {
  .modal-theme-content {
    width: 95%;
    height: 488px;
  }

  .themes-item {
    width: 100%;
    padding: 9px;
    gap: 7px;
  }
  .icon-close {
    top: 22px;
    right: 20px;
  }
  .modal-theme-title {
    font-size: 18px;
  }
  .modal-search-content {
    padding: 50px 25px 30px 25px;
    height: 560px;
  }
  .modal-search-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .search-posts-block {
    height: 226px;
  }
  .modal-search-categories {
    gap: 15px;
  }
  .content-post-item-img.content-post-search-item-img {
    width: 114px;
    height: 91px;
  }
  .footer__nav-list {
    justify-content: center;
  }
  .footer__nav-title {
    text-align: center;
  }
  .single-recomendations-img {
    height: 95px;
  }
  .single-recomendations-item-title {
    -webkit-line-clamp: 2;
    font-size: 12px;
  }
  .single-recomendations-all svg{
      display: none;
  }
}
@media (max-width: 475px) {
  .single-recomendations-wrap {
    flex-direction: column;
    gap: 14px;
  }
  .single-recomendations-img {
    height: 201px;
  }
  .categories-navigation {
    font-size: 12px;
}
.single-info {
  font-size: 10px;
}
.single-recomendations-item {
  height: auto;
}
.single-recomendations-item-title {
  font-size: 14px;
}
.single-recomendations-date {
  font-size: 12px;
}
.single-recomendations-nav {
  font-size: 12px;
}
}
@media (max-width: 440px) {
  :root {
    --card-padding: 20px 18px;
  }
  .custom-logo{
    width: 168px;
  }
  .content-news__title {
    font-size: 18px;
  }
  .content-news-block-title {
    font-size: 13px;
  }
  .content-news-tools {
    font-size: 11px;
  }
  .content-posts-title {
    font-size: 18px;
  }
  .content-categories {
    gap: 12px;
    margin-bottom: 10px;
  }
  .categories-item {
    font-size: 11px;
    padding: 9px 11px;
    min-width: 76px;
}
  .post-tag {
    padding: 4px 0;
    font-size: 11px;
    margin-bottom: 10px;
  }

  .post-info {
    flex-direction: column;
    font-size: 11px;
    gap: 8px;
  }
  .post-title {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .content-post-item-img {
    width: 124px;
    height: 101px;
  }
  .categories-content-item.main-slider-item {
    width: 243px;
  }
  .categories-content__img {
    width: 243px;
  } 
  .right-comments-head {
    font-size: 16px;
  }
  .single-banner-title {
    font-size: 12px;
  }
  .single-img-container {
    height: 183px;
}
.single-content li img {
  height: 218px;
}
.single-info {
  flex-direction: column;
  align-items: flex-start;
  font-size: 12px;
  gap: 9px;
}
.single-banner-img {
  height: 145px;
}
.not-found h1 {
  font-size: 125px;
}
.not-found h2 {
  font-size: 21px;
}
.main-slider-item-title {
  font-size: 14px;
}
.main-slider-item {
  width: 100%;
}
.main-slider-img {
  height: 166px;
}
.main-banner-info-title {
  font-size: 16px;
}
}
@media (max-width: 350px) {
  .main-banner-single-img,
  .main-banner-duo-img {
    height: 200px;
  }
  .modal-search-title {
    font-size: 18px;
  }
  .modal-search-cats-title {
    font-size: 14px;
  }
  .modal-search-content {
    padding: 50px 20px 30px 20px;
  }
  .single-recomendations-img {
    height: 162px;
  }
}